ch02 Lecture 2 Netowrk Model LIU Fall 2021 Last
ch02 Lecture 2 Netowrk Model LIU Fall 2021 Last
Network Models
2.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Models
◼ Network Architecture:
◼ A) Hardware: at the core of any network; e.g.) Tx/Rx
devices, modems, codecs, physical links, switches
◼ B) Software: to derive the core H/W to communicate
end users. The S/W is so complex as its task. Hence it
is divided into
◼ subtasks each of which is confined to a set of related
processes to perform a specific function.
◼ Each subtask is called a “Layer”
◼ Layers are stacked over each other forming
the net model stack, e.g., OSI, TCP/IP
2-1 LAYERED TASKS
2.3
Figure 2.1 A three Layer Protocol
2.4
Advantages of Protocol Layering
◼ Protocol layering enables us to divide a complex task
into several smaller and simpler tasks
◼ Protocol layering is allows us to separate the services
from the implementation.
◼ A layer needs to be able to receive a set of services from
the lower layer and to give the services to the upper layer;
we don’t care about how the layer is implemented.
◼ In Internet, there are intermediate systems that need
only some layers, but not all layers.
◼ If we did not use protocol layering, we would have to make
each intermediate system as complex as the end systems,
which makes the whole system more expensive.
2.5
Principles of Protocol Layering
◼ The first principle dictates that if we want
bidirectional communication, we need to make
each layer so that it is able to perform two
opposite tasks, one in each direction
◼ The second layer needs to be able to encrypt and
decrypt
◼ The second principle is that the two objects
under each layer at both sites should be
identical.
◼ For example, the object under layer 3 at both sites
should be a plaintext letter.
2.6
Logical Connection
◼ Logical (imaginary) connection between each layer as
shown in Figure
◼ Layer-to-layer communication.
2.7
2-2 THE OSI MODEL
2.8
Note
2.9
Layered Architecture
2.10
Figure 2.2 Seven layers of the OSI model
2.11
Figure 2.3 The interaction between layers in the OSI model
2.12
Network Models (cont..)
2.13
Encapsulation
◼ “Encapsulation”: Each layer has its own PDU
that’s passes (as a parameter) to the layer
beneath, which in turn adds a “ header ” (at
layer 2 also adds trailer”) before assign to the
next layer (except the physical layer).
◼ Why “header” and “trailer”?
◼ Physical movement of information PDU is
“vertical” yet the user thinks (At each peer–to-
peer) layer that info moves” horizontal” (pipe)
2.14
Figure 2.4 An exchange using the OSI model
2.15
2-3 LAYERS IN THE OSI MODEL
2.16
Figure 2.5 Physical layer
2.17
Physical Layer
◼ Physical Layer: PDU, bit stream.
◼ Moves bit sequence over a physical link.
◼ Defines the followings:
◼ Physical characteristics of EIA interfaces and medium.
◼ Bit representation: encoding/decoding, electrical/optical.
◼ Data rate: (b/s or bps) and (Tx bit duration)
◼ Bits synch: sender and receiver clock synch and same
data rate.
◼ Line configuration: Point-to-point, Multipoint
◼ Physical Topology: Mesh, star, ring, bus, and hybrid.
◼ Transfer mode: Simplex, F/d, and H/d
2.18
Note
2.19
Figure 2.6 Data link layer
2.20
Data Link Layer
◼ PDU: frame with header/trailer
◼ Functions:
◼ Framing
◼ Physical Addressing: Sender/receiver addresses
in the frame header.
◼ Flow Control: To prevent fast sender from
flooding a slower receiver with frames.
◼ Error Control: To increase physical layer reliability
by adding mechanism to detect and ReTx damages
and lost frames. (Trailer)
◼ Access Control: Control the access to the physical
medium among all connected devices.
2.21
Note
2.22
Figure 2.7 Hop-to-hop delivery
2.23
Figure 2.8 Network layer
2.24
Network Layer
◼ PDU packets (headers only)
◼ Responsible for the source to destination delivery
of packet, possibly across multiple networks.
2.25
Network Layer (cont..)
2.26
Note
2.27
Figure 2.9 Source-to-destination delivery
2.28
Figure 2.10 Transport layer
2.29
Transport Layer
2.30
Transport Layer: (cont..)
◼ Responsibilities:
◼ a) Service Access Point Addressing: (SAP)
2.31
Transport Layer: (cont..)
◼ b) Segmentation and reassembly: of segments => packets
◼ c) Connection control:
◼ 1) Connectionless unreliable service (-no ACK, -no
guarantee)
◼ 2) In connection oriented TCP, guarantees delivery in
order with ACK of segments (reliable service).
2.32
Note
2.33
Figure 2.11 Reliable process-to-process delivery of a message
2.34
Figure 2.12 Session layer
2.35
Session Layer
◼ Session Layer: (Network dialog controller)
◼ It establishes, maintains and synchronizes
the interaction among communicating
system.
◼ a. Dialog Controls H/Duplex or F/Duplex
◼ b. Synchronization: Checkpoints are added to
data streams for dividing into units of
independent ACK. Communication robustness
in case of crashes.
2.36
Note
2.37
Figure 2.13 Presentation layer
2.38
Note
2.39
Presentation Layer
◼ Presentation Layer:
◼ a. Translation: ASCII, EBCDIC. Abstract
syntax notation (ASN).
2.40
Figure 2.14 Application layer
2.41
Note
2.42
Application Layer
2.43
Figure 2.15 Summary of layers
2.44
OSI
2.45
2-4 TCP/IP PROTOCOL SUITE
2.47
◼ 1) Physical Layer: Very Vague, it can be
LAN, MAN, WAN.
◼ 2) Network Layer:
2.49
◼ 3) Transport Layer: Proc-to-Proc
client/server.
A) User Datagram Protocol: UDP
--- Connectionless unreliable Transport
Protocol, with very limited error checking
(checksum)
--- No error/ flow control
2.50
◼ B) Transmission Control Protocol: TCP
◼ Reliable connection oriented (stream) transport protocol.
◼ Establishes connection src_dest, before data Tx.
◼ Ordered/ ACK segment Tx with segment numbers.
2.51
2-5 ADDRESSING
2.52
Figure 2.17 Addresses in TCP/IP
2.53
Figure 2.18 Relationship of layers and addresses in TCP/IP
2.54
Physical Address
◼ Physical address (Link address) is the address of
a node as defined by its LAN or WAN.
◼ Lowest level address
◼ Have authority over the LAN or WAN nwks.
◼ The size and format of these addresses vary
depending on the nwk.
◼ Eg : Ethernet uses 6-byte physical address.
2.55
Example 2.1
2.57
Example 2.2
07:01:02:01:2C:4B
2.58
Logical Address
◼ Necessary for universal communications
that are independent of underlying physical
networks.
◼ Different networks can have different
address format.
◼ An address defined in network layer.
◼ Logical address in the internet is 32-bit
address
2.59
Example 2.3
2.60
Figure 2.20 IP addresses
2.61
Port addresses
2.62
Example 2.4
2.63
Figure 2.21 Port addresses
2.64
Note
2.65
Example 2.5
753
2.66
Note
2.67
Exercise 1
◼ Figure 1, shows an internet path between two hosts
involves a hop across network A, a packet-switching
network, to a router and then another hop across
packet-switching network B. Suppose that packet
switching network A carries the packet between the
first host and the router over a two-hop path involving
one intermediate packet switch. Suppose also that
the second network is an Ethernet LAN.
◼ Sketch the sequence of IP and non-IP packets and
frames that are generated as an IP packet goes from
host 1 to host 2.
2.68
Figure 1
2.69