Unit 2 Highlighted
Unit 2 Highlighted
UNIT – 2
Subject Code: 4340703
The Reference Model for network
Subject Name: Computer Networking
communication
Prepared By:
Mr. Shaktisinh S. Parmar (Lecturer)
Department of Computer Engineering, C.U.S.P., Surendranagar
1
LEARNING OUTCOME(S) (LOs) OF THIS UNIT
Students are able to:
• List all layers of OSI and TCP/IP.
• Describe functions of each layer.
• Compare OSI and TCP/IP Model.
2
OSI Model
• OSI stands for Open System Interconnection is a reference model that
describes how information from a software application in one computer moves
through a physical medium to the software application in another computer.
• OSI consists of seven layers, and each layer performs a particular function(s).
• OSI model was developed by the International Organization for
Standardization (ISO) in 1984, and it is now considered as an architectural
model for the inter-computer communications.
• OSI model divides the whole task into seven smaller and manageable tasks. Each
layer is assigned a particular task.
• Each layer is self-contained, so that task assigned to each layer can be performed
independently.
• The basic idea behind layered architecture is to divide the design into smaller
pieces. Most networks are organized in a series of layers to reduce the design
complexity.
3
Seven Layers of OSI Model UPPER LAYERS: Software, Host
LOWER LAYERS: Hardware, Network
• The OSI model is divided into two layers: Upper
layers and Lower layers.
• The upper layer of the OSI model mainly deals
with the application related issues, and they are
implemented only in the software. The application
layer is closest to the end user. Both the end user
and the application layer interact with the
software applications. An upper layer refers to the
layer just above another layer.
• The lower layer of the OSI model deals with the
data transport issues. The data link layer and the
physical layer are implemented in hardware and
software. The physical layer is the lowest layer of
the OSI model and is closest to the physical
medium. The physical layer is mainly responsible
for placing the information on the physical
medium.
4
Seven Layers of OSI model
Application Layer
• It is the final and highest layer of the OSI model
• This layer allows access for network resources to users.
• It provides user interface and supports services like E-mail, remote file access,
database management and other distributed information services.
• This layer taking care of availability of resources.
• The data unit at this layer is ‘data’.
5
Functions of Application layer
o Network Virtual Terminal: allows a user to log on to a remote host.
o Mail services: provides services like email storage and forwarding.
o Directory services: access of global information and distributed database.
• Hardware used at this layer are: gateway, application switch, proxy server,
content filtering firewall, etc.
• Protocols and standards of this layer are: HTTP, FTP, DNS, SMTP, POP3, SNMP,
DHCP etc.
Presentation Layer
• The presentation layer is concerned with the syntax (format of data) and semantics
(meaning of each section of bits) of the information exchanged between two
systems.
• This layer structures the data passed down from the application layer into a format
suitable for network layer.
• The data unit at this layer is ‘data’.
6
Eva system jema 2 devices communicate kari shake
Session Layer
• It is responsible for establishing, maintaining and terminating the connection
between two communicating devices.
• It also provides dialog control between devices.
• It offers different communication modes like: simplex, half duplex and full duplex.
• The data unit at this layer is ‘data’.
7
process of establishing and managing communication between two systems
Transport Layer
• It is responsible for source to destination delivery of a entire message, while
network layer is responsible for source to destination delivery of individual
packets.
• Network layer doesn’t recognize any relationship between packets, while in case of
transport layer, it ensures that whole message arrives in order and it also checks
error control and flow control.
• The data unit at this layer is ‘segment’.
8
Functions of Transport layer
o Segmentation and reassembly: a message divided into segments, each segment
contains a sequence number which enables transport layer to reassemble at
destination.
o Synchronization of data: this layer ensures that data must be received in the
sequence in which it was sent.
o This layer provides error correction of data and ensures error free
transmission.
o Flow control: this layer performs end-to-end flow control while data link layer
do it across the link.
o Connection control: this layer performs connection less or connection oriented
with the destination machine.
• Hardware used at this layer are: gateway, proxy server, content filtering firewall,
etc.
• Protocols and standards of this layer are: TCP (Transmission Control Protocol)
and UDP (User Datagram Protocol).
TCP = TRANSMISSION CONTROL PROTOCOL
UDP = USER DATAGRAM PROTOCOL
9
Connection oriented v/s Connection less services
20
10
Basis Transmission Control Protocol (TCP) User Datagram Protocol (UDP)
TCP is a connection-oriented protocol. Connection orientation UDP is the Datagram-oriented protocol. This is because there is
means that the communicating devices should establish a no overhead for opening a connection, maintaining a connection,
Type of Service
connection before transmitting data and should close the or terminating a connection. UDP is efficient for broadcast and
connection after transmitting the data. multicast types of network transmission.
TCP is reliable as it guarantees the delivery of data to the The delivery of data to the destination cannot be guaranteed in
Reliability
destination router. UDP.
Error checking TCP provides extensive error-checking mechanisms. It is UDP has only the basic error-checking mechanism
mechanism because it provides flow control and acknowledgment of data. using checksums.
Acknowledgment An acknowledgment segment is present. No acknowledgment segment.
Sequencing of data is a feature of Transmission Control Protocol There is no sequencing of data in UDP. If the order is required, it
Sequence
(TCP). this means that packets arrive in order at the receiver. has to be managed by the application layer.
Speed TCP is comparatively slower than UDP. UDP is faster, simpler, and more efficient than TCP.
There is no retransmission of lost packets in the User Datagram
Retransmission Retransmission of lost packets is possible in TCP, but not in UDP.
Protocol (UDP).
Weight TCP is heavy-weight. UDP is lightweight.
Handshaking
Uses handshakes such as SYN, ACK, SYN-ACK It’s a connectionless protocol i.e. No handshake
Techniques
Broadcasting TCP doesn’t support Broadcasting. UDP supports Broadcasting.
Protocols TCP is used by HTTP, HTTPs , FTP , SMTP and Telnet . UDP is used by DNS , DHCP , TFTP, SNMP , RIP , and VoIP .
Stream Type The TCP connection is a byte stream. UDP connection is a message stream.
Overhead Low but higher than UDP. Very low.
This protocol is primarily utilized in situations when a safe and This protocol is used in situations where quick communication is
Applications trustworthy communication procedure is necessary, such as in necessary but where dependability is not a concern, such as VoIP,
email, on the web surfing, and in military services. game streaming, video, and music streaming, etc.
11
Network Layer
• The network layer is responsible for the source-to-destination delivery of a packet
across multiple networks (links). Whereas the data link layer oversees the delivery of
the packet between two systems on the same network (links).
• It is responsible for the deliver of packets from
12
Data Link Layer
• It is the second layer of the OSI model in which raw bits are grouped into frames.
• It makes the physical layer appear error free to upper layer (network).
• It uses CRC (Cyclic Redundancy Check) to detect errors.
• Data unit at this layer is ‘frame’.
13
Functions of Data Link layer
o Framing: converts packets received from network layers into frames and also
converts bits from physical layer into frames.
o Flow control: it provides data flow control when sender and receiver have
different data rates.
o Physical addressing: when frames are sent to different LANs, this layer adds
sender and receiver address into header.
o Error control: it provides facility of error control to retransmit the damaged and
lost frames.
o Access control: provide access control when multiple devices are connected to
same link
Data link layer has two sub layers
o Logical Link Control (LLC) it deals with protocols, flow control and error
control.
o Media Access Control (MAC) it deals with the control of medium.
27
• Hardware used at this layers are: switch, gateway, firewall, proxy servers etc.
14
Physical Layer
• It is the lowest layer or first layer of the OSI model.
• It is concerned with the transmission of raw bits over a communication channel.
• It accept incoming stream of data and passes to the upper layer and also accept
frames from upper layer (data link) and converts into bits.
• Data unit at this layer is ‘bit’.
30
15
Advantages of the OSI model
• Using the OSI model, various other layered models are developed (for
example - TCP/IP).
• Using the OSI model, we can see the big picture of the communication of
data over the network.
• Each layer of the OSI model handles a specific job; hence can be handled
and tested separately.
• The OSI model depicts how hardware and software work together.
• The OSI model can be used to compare the basic functional relationship
on a different network.
• The OSI model provides abstraction so we can change any layer without
thinking about other layers; hence, it can be easily used to incorporate
new technologies.
16
TCP/IP Model (Internet Model)
• TCP/IP stands for Transmission Control Protocol / Internet Protocol.
• TCP/IP model was developed before to the OSI model.
• Therefore, the layers in the TCP/IP protocol suite do not exactly match those in the
OSI model.
• This model consist of set of protocols that allow communication across multiple
different networks.
• There are mainly four layers in this model Host-to-network layer (Link layer),
Internet layer , Transport layer and Application layer.
• The first two layers (physical and data link) of OSI model are represented as host-to-
network (link) layer in TCP/IP model and last three layers (session, presentation,
application) of OSI model are represented as application layer in TCP/IP model.
17
TCP / IP model
18
The internet layer describes the packet format and protocol. This is Internet Protocol (IP).
Internet layer describes protocols for routing of data packets, which are maintained in routers.
The objective of the internet layer is to transmit the packets to whatever destination it
supposed to go.
The function of network layer is explained by following protocols
IP (Internetwork protocol)
• It is connection less and unreliable protocol.
• It doesn’t provide error checking and packet tracing.
ARP (Address Resolution Protocol)
• ARP is used to find the physical 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 of the node when its physical address is known.
ICMP (Internet Control Message Protocol)
• It is network diagnostic and error reporting protocol.
IGMP (Internet Group Message Protocol)
• It is used provide facility for multicast transmission.
Transport layer
• It supports communication of multiple devices across different networks.
• It also defines how data should flow between different hosts.
• This layer ensures data delivery between hosts is in order or not and also it is responsible for end-to-
end delivery.
• Major protocols of this layer are: TCP and UDP. Both these protocols are used for port-to-port
communication.
19
Application Layer
• It is the final and highest layer in TCP/IP model which is equal to the combined session,
presentation and application layer of OSI model.
• The functions of this model are explained by the following protocols.
SMTP (Simple Mail Transfer Protocol)
• It is used to transfer electronic mail (E-mail) from one user to another.
HTTP (Hyper Text Transfer Protocol)
• Is provides a standard for web users and servers to communicate.
FTP (File Transfer Protocol)
• FTP is the most widely used protocol for file transfer over the network.
• It is reliable and simple.
• It uses TCP/IP for communication and it works on TCP port 21.
SNMP (Simple Network Management Protocol)
• It provides a set of operations for monitoring and maintaining devices in the internet.
TELNET (Terminal Network)
• It is a general purpose protocol used for remote login.
DNS (Domain Name Server)
• It resolves an IP address into textual address for hosts connected over a network.
39
20
Disadvantages of the TCP/IP model
• TCP/IP is a complicated model to set up and manage.
• The shallow/overhead of TCP/IP is higher-than IPX (Internetwork
Packet Exchange).
• In this, model the transport layer does not guarantee delivery of
packets.
• Replacing protocol in TCP/IP is not easy.
• It has no clear separation from its services, interfaces, and
protocols.
Ensures reliable, ordered, and error-checked Provides addressing and routing of packets
Purpose
delivery of data between applications. across networks.
Manages data transmission between devices, Routes packets of data from the source to the
Function
ensuring data integrity and order. destination based on IP addresses.
Yes, includes error checking and recovery No, IP itself does not handle errors; relies on
Error Handling
mechanisms. upper-layer protocols like TCP.
Breaks data into smaller packets and Breaks data into packets but does not handle
Data Segmentation
reassembles them at the destination. reassembly.
21
Comparison of OSI and TCP/IP models
OSI Model TCP/IP Model
- Full form: Open System Interconnection Model. - Full form: Transmission Control Protocol /
Internet Protocol Model.
- It has seven layers. - It has four layers.
- OSI model developed after TCP/IP model. - It is developed before OSI model.
- In this model, transport layer guarantees the delivery of - In this model, transport layer does not
packets. guarantees delivery of packets.
- It follows vertical approach. - It follows horizontal approach.
- OSI model has separate presentation layer and session - TCP/IP model does not have separate
layer. presentation and session layer.
- Network layer in this model provides both connection - Network layer in this model provides only
less and connection oriented service. connection less service.
- In it, services, interface and protocols are clearly - In it, services, interface and protocols are not
separated. clearly separated.
- It is just a reference model through which various - It is the implementation of OSI model.
networks are built. For example, the TCP/IP model is built
from the OSI model. It is also referred to as a guidance tool.
Data Encapsulation: Data Encapsulation is the process in which some extra information is
added to the data item to add some features to it.
Data De-encapsulation: Data De-encapsulation is the reverse process of data encapsulation.
The encapsulated information is removed from the received data to obtain the original data.
22
23
24