CN_CH-2
CN_CH-2
Model
Explain OSI (Open Systems Interconnect) model and their Functions.
International standard organization (ISO- Year 1947) established a committee in 1977 to develop
an architecture for computer communication.
Open Systems Interconnection (OSI) reference model is the result of this effort.
In 1984, the Open Systems Interconnection (OSI) reference model was approved as an
international standard (IS) for computer communications architecture.
The OSI model describes how information or data makes its way from application
programme(such as spreadsheets (excel)) through a network medium (such as wire) to another
application programme located on another network.
The OSI reference model divides the problem of moving information between computers over a
network medium into SEVEN smaller and more manageable problems.
This separation into smaller more manageable functions is known as layering.
Physical (layer1), Data link (layer2), Network (layer3) Transport (layer4), Session (layer5),
presentation (layer6) Application (layer7)
Layers:
Designer identified which networking functions had related uses and collected those functions
into discrete groups that became the layers.
The OSI model allows complete interoperability between otherwise incompatible systems.
The Each layer uses the services of the layer immediately below it.
Data is Encapsulated (Data + Header) with the necessary protocol information as it moves down
the layers before network transit.
1
Fig: An exchange using the OSI model
Functions:
2
The physical layer defines the characteristics of the interface between devices and the
transmission media, including its type.
The physical layer data consist of a stream of bits without any interpretation. To be transmitted,
bits must be encoded into signals –electrical or optical-. The physical layer defines the type of
encoding.
The physical layer defines the transmission rate, the number of bits sent each second.
Synchronization of bits:
Line configuration:
The physical layer is concerned with the connection of devices to the medium.
Physical topology:
Example: Bus,Star,Mesh,Tree,Ring
Transmission mode:
The data link layer is responsible for moving frames from one hop (node) to the next.
Functions:
3
Framing:
Divides the stream of bits received from the network layer into frames.
Physical addressing:
Flow control:
Sender’s Data send speed must be same as the Receiver’s Receiving speed.
Error control:
Tailer is responsible for the detection of error frame/ lost frame and retransmit that frames.
Access control:
When two devices are connected to the same link,which device has control over the link at any
given time.
The network layer is responsible for the delivery of individual packets from the source host to
the destination host.
Functions:
Logical addressing: The network layer adds a header to the packet coming from the upper layer,
among other things, includes the logical address of the sender and receiver.
Routing: When independent networks or links are connected together to create a network of
networks or a large network, the connecting devices (called routers or gateways) route or switch the
packets to their final destination.
The transport layer is responsible for the delivery of a message from one process to another.
4
Functions:
A message is divided into transmittable segments, each having a sequence number. These
numbers enable the transport layer to reassemble the message correctly upon arrival at the
destination.
Connection control:
Connectionless transport layer: It treats each segment as an independent packet and delivers it to
the transport layer at the destination machine.
Connection-oriented transport layer: It 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:
The transport layer performs a flow control end to end. The data link layer performs flow control
across a single link.
Error control:
The transport layer performs error control end to end. The data link layer performs control across
a single link.
Port Addressing:
Computer often run several processes (running programs) at the same time. Process-to-process
delivery means delivery from a specific process on one computer to a specific process on the other.
5
Functions:
Dialog Control:
It defines how to start, control and end conversations (called sessions) between applications.
Session Management:
Connection Estabilished, Maintained, Terminated : This layer requests for a logical connection to
be established on an end-user’s request. Any necessary logon or password validation is also handled
by this layer. When requirements complete it just terminate the connection.
Synchronization (Check-points):
If a failure of some sort occurs between checkpoints, all data can be retransmitted from the last
checkpoint.
Example: If system is sending a file of 2000 pages, here put checkpoints after every 100 pages to
ensure that each 100 page unit is received and acknowledged independently. If crash happens during
transmission of page 786 page,then resend only 701 to 786 only, not resend from 1 to 786 pages.
6
Functions:
The presentation layer at the sender side changes the information from its senderdependent
format into a comman format and the presentation layer at the receiving machine changes the
common format into its receiver-dependent format.
To carry sensitive information, a system must be able to ensure privacy. Encryption means that the
sender transforms thye original information to another form and sends the resulting message out
over the network.
Decryption means it reverse the original process to transform the message back to its original form.
Functions:
It is a software version of a physical terminal, and it allows a user to log on to a remote host.
7
File transfer, access, and management:
It allows user to access files in a remote host (to read /to make changes),to retrieve files from a
remote computer for use in the local computer.
Mail services:
Directory services:
It provides distributed database sources and access for global information about various objects &
services.
Summary of Layers:-
TCP/IP(Transmission Control Protocol/Internet Protocol): model was developed before the OSI
model in 1970.
The layers in the TCP/IP protocol suite do not exactly match those in the OSI model.
The original TCP/IP protocol suite was defined as having four layers: host-to-network, internet,
transport, and application.
However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of
five layers: physical, data link, network, transport, and application.
8
Fig: Basic structure of TCP/IP and OSI model
9
Data rate: transmission rate
Synchronization of bits
Line configuration
Physical topology
Transmission mode
Functions of Data Link Layer:
Framing
Physical addressing
Flow control
Error control
Access control
Hop-to-hop (node-to-node) delivery
This layer is located above the host to host and below the Transport layer.
This layer is called the internet layer and it holds the whole architecture.
The task of these layers is to allow the host to insert packets into any network and then make
them travel independently to the destination.
The internet layer defines a packet format and a protocol is called internet protocol (IP).
The internet layer is supposed to deliver IP packets to their destination. So, routing of packets
and congestion control are important issues related to this layer.
The protocols are located on this layer are IP, ICMP, IGMP. ARP, RARP.
IP (Internetworking Protocol)(Internet Protocol):
It is a host-to-host protocol.
It is Connectionless & Unreliable Protocol.
Packets in the IP layer called Datagram.
ARP (Address Resolution Protocol)
It is used to find the Physical address (MAC Address) of the node when the Logical
address (IP Address) is known.
RARP (Reverse Address Resolution Protocol)
It is used to find the Logical address (IP Address) of the node when its Physical
address (MAC Address)is known.
ICMP (Internet Control Message Protocol)
It is used to handle control and error messages in this layer.
IGMP (Internet Group Message Protocol)
It provides two multicasting.
Multicasting means one computer sometimes need to send the same message to the
number of computers at same time.
Example: Send one e-mail to the group (multiple e-mail id).
10
(3) Transport Layer
This is the layer above the internet layer.
Its function are same those of a transport layer in OSI model.
Transport layer is responsible for host to host delivery.
The transport layer was represented in by two protocols: TCP and UDP.
TCP and UDP are transport level protocols responsible for delivery of a message from a
process to another process.
TCP/IP model does not have session or presentation layer, because they are of little
importance in most application.
This layer on top of transport layer is called as application layer.
The protocol related to this layer are all high level protocols such as virtual terminal(TELNET),
file transfer protocol(FTP), and electronics mail(E-MAIL).
11
Writing:- Copying a file from the client site to the server site.
10 It has a problem of protocol fitting into The model does not fit any other protocol
a model. stack.
12