Unit 1 B
Unit 1 B
Unit 1 B
.
LAYERED TASKS
2.6
OSI Reference Model
Describes the mechanical, electrical, functional and procedural means to activate, maintain and
deactivate physical connection for bit transmission to and from a network
TCP/IP model
Note
Physical Layer
Data Link Layer
Network Layer
Transport Layer
Session Layer
Presentation Layer
Application Layer
Figure 5 Physical layer
Note
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.
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.
Physical layer
Physical topology:-
The physical topology defines how devices are connected to
make a network.
Devices can be connected by using a mesh topology, a star
Transmission mode:-
The physical layer also defines the direction of transmission
Framing:-
The data link layer divides the stream of bits received from the network layer
into manageable data units called frames.
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.
Flow control:-
If the rate at which the data are absorbed by the receiver 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.
Responsibilities of the data link layer
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.
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.
Figure 7 Hop-to-hop delivery
Figure 8 Network layer
Note
Routing:-
When independent networks or links are connected to create intemetworks
(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.
Figure 9 Source-to-destination delivery
Figure 10 Transport layer
Note
Connection control:-
The transport layer can be either connectionless or connectionoriented.
A connectionless transport layer treats each segment as an independent packet and
delivers it to the transport layer at the destination machine.
A connectionoriented transport layer makes a connection with the transport layer at the
destination machine first before delivering the packets.
After all the data are transferred,the connection is terminated.
Flow control:-
Like the data link layer, the transport layer is responsible for flow
control.
However, flow control at this layer is performed end to end rather
than across a single link.
Error control:-
Like the data link layer, the transport layer is responsible for error
control.
However, error control at this layer is performed process-to process
rather than across a single link.
The sending transport layer makes sure that the entire message
arrives at the receiving transport layer without error (damage, loss,
or duplication).
Error correction is usually achieved through retransmission.
Figure 12 Session layer
Note
Dialog control:-
The session layer allows two systems to enter into a dialog.
It allows the communication between two processes to take place in either halfduplex
(one way at a time) or full-duplex (two ways at a time) mode.
Synchronization:-
The session layer allows a process to add checkpoints, or synChronization
points, to a stream of data.
For example, if a system is sending a file of 2000 pages, it is advisable to insert
checkpoints after every 100 pages to ensure that each 100-page unit is received and
acknowledged independently.
In this case,if a crash happens during the transmission of page 523, the only pages
that need to be resent after system recovery are pages 501 to 523. Pages previous to
501 need not be resent.
Figure 13 Presentation layer
Note
Translation:-
The processes (running programs) in two systems are usually exchanging
information in the form of character strings, numbers, and so on.
The infonnation must be changed to bit streams before being transmitted.
Because different computers use different encoding systems, the
presentation layer is responsible for interoperability between these different
encoding methods.
The presentation layer at the sender changes the information from its
sender-dependent format into a common format.
The presentation layer at the receiving machine changes the common
format into its receiver-dependent format.
Responsibilities of the presentation layer
Encryption:-
Compression:-
Mail services:-
This application provides the basis for e-mail forwarding and storage.
File transfer, access, and management:-
This application allows a user to access files in a remote host (to make
changes or read data), to retrieve files from a remote computer for use in
the local computer, and to manage or control files in a remote computer
locally.
Directory services:-
This application provides distributed database sources and access for global
information about various objects and services.
Figure 15 Summary of layers
TCP/IP PROTOCOL SUITE
1. Creation of data at the application layer of the originating source end device
3. Generation of the data onto the media at the network access layer of the
stack
4. Transportation of the data through the internetwork, which consists of
media and any intermediary devices
5. Reception of the data at the network access layer of the destination end
device
The form that a piece of data takes at any layer is called a Protocol
Data Unit (PDU). During encapsulation, each succeeding layer
encapsulates the PDU that it receives from the layer above in
accordance with the protocol being used. At each stage of the
process, a PDU has a different name to reflect its new appearance.
Although there is no universal naming convention for PDUs, in this
course, the PDUs are named according to the protocols of the
TCP/IP suite.
Data - The general term for the PDU used at the Application layer
Segment - Transport Layer PDU
Packet - Internetwork Layer PDU
Frame - Network Access Layer PDU
Bits - A PDU used when physically transmitting data over the
medium
Process of sending and receiving
messages
When sending messages on a network, the protocol stack on a host
operates from top to bottom.
In the web server example, we can use the TCP/IP model to
illustrate the process of sending an HTML web page to a client.
Next, the IP packet is sent to the Network Access layer Ethernet protocol
where it is encapsulated within a frame header and trailer. Each frame
header contains a source and destination physical address. The physical
address uniquely identifies the devices on the local network. The trailer
contains error checking information. Finally the bits are encoded onto the
Ethernet media by the server NIC.
This process is reversed at the receiving host. The data is decapsulated as it
moves up the stack toward the end user application.
Compare OSI and TCP/IP model
Addressing and Naming Schemes
07:01:02:01:2C:4B
753