DCN - Lecture 4 - OSI Models (1-2)
DCN - Lecture 4 - OSI Models (1-2)
OSI Models
(1-2)
Review
• Layered Tasks
• Hierarchy
• THE OSI MODEL
• Layered Architecture
• Peer-to-Peer Processes
• Encapsulation
Keywords
28
2-3 LAYERS IN THE OSI MODEL
2.29
Physical Layer
• The physical layer is responsible for carrying
individual bits in a frame across the link and medium.
• It deals with the mechanical and electrical
specifications of the interface and transmission
medium.
• It also defines the procedures and functions that
physical devices and interfaces have to perform for
transmission to occur.
• Figure 2.5 shows the position of the physical layer with
respect to the transmission medium and the data link
layer.
2.30
Figure 2.5 Physical layer
2.31
Physical Layer
3. Data rate.
• The transmission rate is the number of bits sent each
second
• is also defined by the physical layer.
• In other words, the physical layer defines the
duration of a bit, which is how long it lasts.
•
2.33
Physical Layer
4. Synchronization of bits.
• The sender and receiver not only must use the same
bit rate.
• but also must be synchronized at the bit level.
• In other words, the sender and the receiver clocks
must be synchronized.
2.34
Physical Layer
5. Line configuration.
• The physical layer is concerned with the connection of
devices to the media.
• In a point-to-point configuration,
• two devices are connected through a dedicated link.
• In a multipoint configuration,
• a link is shared among several devices.
2.35
Physical Layer
6. Physical topology.
• It defines how devices are connected to make a
network.
• Devices can be connected by using a mesh topology ,
a star topology , etc.
7. Transmission mode.
• The physical layer also defines the direction of
transmission between two devices:
• simplex, half-duplex, or full-duplex.
2.36
Note
2.37
Data Link Layer
2.38
Figure 2.6 Data link layer
2.39
Note
2.40
Data Link Layer
1. Framing.
• The data link layer divides the stream of bits received
from the network layer into manageable data units
called frames.
2. Physical addressing.
• If frames are to be distributed to different systems on the
network, the data link layer adds a header to the frame
to define the sender and/or receiver of the frame.
• If the frame is intended for a system outside the sender’s
network, the receiver address is the address of the device
that connects the network to the next one.
2.41
Data Link Layer
3. Flow control.
• If the rate at which the receiver absorbs the data is
less than the rate at which data are produced in the
sender,
• the data link layer imposes a flow control
mechanism to avoid overwhelming the receiver.
2.42
Data Link Layer
4. Error control.
• The data link layer adds reliability to the physical
layer by adding mechanisms to detect and
retransmit damaged or lost frames.
• It also uses a mechanism to recognize duplicate
frames.
• Error control is normally achieved through a
trailer added to the end of the frame.
2.43
Data Link Layer
5. Access control.
• When two or more devices are connected to the same
link, data link layer protocols are necessary to
determine which device has control over the link at
any given time.
2.44
Figure 2.7 Hop-to-hop delivery
2.45
Data Link Layer
• As the figure shows,
• communication at the data link layer occurs between two
adjacent nodes.
• To send data from A to F, three partial deliveries are made.
• First, the data link layer at A sends a frame to the data link
layer at B (a router).
• Second, the data link layer at B sends a new frame to the
data link layer at E.
• Finally, the data link layer at E sends a new frame to the
data link layer at F.
2.46
Data Link Layer
• Note that the frames that are exchanged between the three nodes
have different values in the headers.
• The frame from A to B has B as the destination address and A
as the source address.
• The frame from B to E has E as the destination address and B
as the source address.
• The frame from E to F has F as the destination address and E
as the source address.
• The values of the trailers can also be different if error
checking includes the header of the frame.
2.47
Network Layer
2.48
Network Layer
2.49
to the data link and transport layers.
Figure 2.8 Network layer
2.50
Note
2.51
Network Layer
1. Logical addressing.
• The physical addressing implemented by the data link
layer handles the addressing problem locally.
• If a packet passes the network boundary, we need
another addressing system to help distinguish the
source and destination systems.
• The network layer adds a header to the packet coming
from the upper layer that, among other things, includes
the logical addresses of the sender and receiver.
2.52
Network Layer
2. Routing.
• When independent networks or links are connected
to create internetworks (network of networks) or a
large network, the connecting devices (called
routers or switches) route or switch the packets to
their final destination.
• One of the functions of the network layer is to
provide this mechanism.
2.53
Figure 2.9 Source-to-destination delivery
2.54
Network Layer
As the figure shows,
• now we need a source-to-destination delivery.
• The network layer at A sends the packet to the network layer at B.
• When the packet arrives at router B, the router makes a decision
based on the final destination (F) of the packet.
• Router B uses its routing table to find that the next hop is
router E.
• The network layer at B, therefore, sends the packet to the network
layer at E.
• The network layer at E, in turn, sends the packet to the network
layer at F.
2.55
Assignment 3
1.56