Unit2 CN
Unit2 CN
Unit 2
The Reference Model for Network Communication
2.1 OSI model & function of each Layer
2.2 TCP/ IP model
2.3 Comparison of OSI & TCP/IP Models
2.4 Connection oriented v/s Connectionless approach
Its aim was developing commonly excepted networking protocols. It is a model for
understanding and designing a network architecture that is flexible, strong and interoperable.
OSI model has seven layers are Application, Presentation, Session, Transport, Network, Data-
Link and Physical Layers. Each layer represents categories of related task.
Physical Layer
It is a bottom layer of OSI model. It is related with transmitting raw bits over a physical
medium. It defines transmission media, signal methods, representation and synchronization of
bits and topology, mechanical and electrical specifications for using transmission medium.
Network Layer
The network layer is responsible for the source to destination delivery of a packet across
multiple networks. It is responsible for logical addressing and routing, establish and close
connection and paths between two nodes on a network.
Transport Layer
The transport layer is responsible for source to destination delivery of the complete message.
It is responsible for flow control, packet sequencing, error handling, multiplexing and
establish path and session between two communicating devices.
Session Layer
The session layer establishes, maintains and closes the connection between communicating
systems. It creates communication channels called sessions.
Presentation Layer
The presentation layer is responsible for the syntax (format of data) and semantics (meaning
of each section of bits) between two systems. It is responsible for translation, data encryption,
data decryption, data compression, data decompression and character set conversion.
Application Layer
The application layer allows user to access the network. It provides user interfaces and
support for services like e-mail, remote file access and transfer, shared database management,
and other types of distributed information services.
Protocols in this layer are HTTP (Hyper Text Transfer Protocol), FTP (File Transfer
Protocol), POP (Post Office Protocol), SMTP (Simple Mail Transfer Protocol) etc.
Host-to-Host Layer
Its functionality is almost same as physical layer and data link layer in OSI model.
IP (Internet Protocol): It is responsible for delivering packets from the source to the
destination by looking at the IP addresses in the packet headers. Packet in IP layer is
called Datagram. It is connection less and unreliable protocol.
ICMP (Internet Control Message Protocol): It is used to handle control and error
messages in the IP layer.
ARP (Address Resolution Protocol): It is used to find physical address of the node
when IP address is known.
Transport Layer
The transport layer is responsible for the reliability, flow control and correction of data that is
sent through the network. The protocols in this layer are:
TCP (Transmission Control Protocol): It provides a full transport layer services to
applications. It is connection oriented and reliable protocol. The packet in TCP is
called segment.
Application Layer
It is responsible for handling high level protocols and issues of representation. It allows user
to interact with the application.The protocols in this layer are:
SMTP (Simple Mail Transfer Protocol): SMTP is used to send data to another e-
mail address.
FTP (File Transfer Protocol): FTP is used for copies files from one computer to
another computer.
TFTP (Trivial File Transfer Protocol): TFTP Simplified version of the FTP
protocol. It has no security features. TFTP copies the file. There are two operations.
Reading: It means copying a file from server to client.
Writing: It means copying a file from client to server.
Connection oriented service gives a guarantee of reliability. In this service, packets follow
the same path to reach their destination.
Advantages
It is reliable.
There is no duplication of data packets.
Sequencing of data packets is guaranteed.
There are no chances of congestion.
Disadvantages
Allocation of resources is required before communication.
The speed of connection is slow.
In case network congestion or router failures, it has no any path for data transmission.
Connection less Service does not give a guarantee of reliability. In this service, packets do
not follow the same path to reach their destination.
Advantages
There are generally low overheads.
It helps to broadcast or multicast messages to multiple receivers.
There is no circuit setup. It takes a piece of a time to establish a connection.
In case network congestion or router failures, it has other path for data transmission.
Disadvantages
There is congestion in the network.
It is not reliable as there is the chance of data packet loss, wrong delivery of packets
or duplication is high.
Each data packet needs lengthy fields because these are supposed to hold all the
destination addresses and the routing information.