Network Layer
Network Layer
PRACTICAL 1
Aim :
To compare OSI model and TCP/IP model
Theory :
OSI Model
The lowest layer of the OSI reference model is the physical layer. It is
responsible for the actual physical connection between the devices. The
physical layer contains information in the form of bits. It is responsible
for the actual physical connection between the devices. When receiving
data, this layer will get the signal received and convert it into 0s and 1s
and send them to the Data Link layer, which will put the frame back
together.
The data link layer is responsible for the node to node delivery of the
message. The main function of this layer is to make sure data transfer
is error free from one node to another, over the physical layer. When a
packet arrives in a network, it is the responsibility of DLL to transmit
it to the Host using its MAC address. Data Link Layer is divided into
Network layer works for the transmission of data from one host to the
other located in different networks. It also takes care of packet rout-
ing i.e. selection of the shortest path to transmit the packet, from the
number of routes available. The sender and receiver’s IP address are
placed in the header by network layer.
It is Also Responsible for the following:
-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 dis-
tinguish 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.
-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.
Presentation layer is also called the Translation layer.The data from the
application layer is extracted here and manipulated as per the required
format to transmit over the network.
It is Also Responsible for the following:
-Translation:The processes (running programs) in two systems are usu-
ally 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 be-
tween these different encoding methods.
-Compression:Data compression reduces the number of bits contained
in the information. Data compression becomes particularly important
in the transmission of multimedia such as text, audio, and video.
-Encryption:To carry sensitive information, a system must be able to
ensure privacy. Encryption means that the sender transforms the orig-
inal information to another form and sends the resulting message out
over the network. Decryption reverses the original process to transform
the message back to its original form
At the very top of the OSI Reference Model stack of layers, we find
Application layer which is implemented by the network applications.
These applications produce the data, which has to be transferred over
the network. This layer also serves as a window for the application ser-
vices to access the network and for displaying the received information
to the user.
It is Also Responsible for the following:
-Network Virtual Terminal:A network virtual terminal is a software
version of a physical terminal, and it allows a user to log on to a re-
mote host. To do so, the application creates a software emulation of a
terminal at the remote host. The user’s computer talks to the software
terminal which, in turn, talks to the host, and vice versa. The remote
host believes it is communicating with one of its own terminals and
allows the user to log on.
-Mail Services:This application provides the basis for e-mail forwarding
and storage.
-Directory Services:This application provides distributed database sources
and access for global information about various objects and services.
TCP/IP MODEL:
TCP/IP features:
- The popularity of the TCP/IP protocols did not grow rapidly just
because the protocols were there, or because connecting to the Inter-
net mandated their use. They met an important need (worldwide data
communication) at the right time, and they had several important fea-
tures that allowed them to meet this need. These features are:
- Open protocol standards, freely available and developed indepen-
dently from any specific computer hardware or operating system. Be-
Network Access Layer is the first layer of the four layer TCP/IP model.
Network Access Layer defines details of how data is physically sent
through the network, including how bits are electrically or optically
signaled by hardware devices that interface directly with a network
medium, such as coaxial cable, optical fiber, or twisted pair copper wire.
The protocols included in Network Access Layer are Ethernet, Token
Ring, FDDI, X.25, Frame Relay etc. The most popular LAN archi-
tecture among those listed above is Ethernet. Ethernet uses an Access
Method called CSMA/CD (Carrier Sense Multiple Access/Collision De-
tection) to access the media, when Ethernet operates in a shared me-
dia. An Access Method determines how a host will place data on the
medium.
Internet Layer is the second layer of the four layer TCP/IP model.
The position of Internet layer is between Network Access Layer and
Transport layer. Internet layer pack data into data packets known as
Transport Layer is the third layer of the four layer TCP/IP model.
The position of the Transport layer is between Application layer and
Internet layer. The purpose of Transport layer is to permit devices on
the source and destination hosts to carry on a conversation. Transport
layer defines the level of service and status of the connection used when
transporting data.
The main protocols included at Transport layer are TCP (Transmis-
Application layer is the top most layer of four layer TCP/IP model.
Application layer is present on the top of the Transport layer. Applica-
tion layer defines TCP/IP application protocols and how host programs
interface with Transport layer services to use the network.
Application layer includes all the higher-level protocols like DNS (Do-
main Naming System), HTTP (Hypertext Transfer Protocol), Telnet,
SSH, FTP (File Transfer Protocol), TFTP (Trivial File Transfer Proto-
col), SNMP (Simple Network Management Protocol), SMTP (Simple
Mail Transfer Protocol) , DHCP (Dynamic Host Configuration Proto-
col), X Windows, RDP (Remote Desktop Protocol) etc.
-HTTP:HTTP is the underlying protocol used by the World Wide Web
and this protocol defines how messages are formatted and transmitted,
and what actions Web servers and browsers should take in response to
various commands.
-POP3:POP3 (Post Office Protocol 3) is the most recent version of a
standard protocol for receiving e-mail. POP3 is a client/server protocol
in which e-mail is received and held for you by your Internet server.
-SMTP:SMTP is a push protocol and is used to send the mail whereas
POP (post office protocol) or IMAP (internet message access protocol)
are used to retrieve those mails at the receiver’s side.
STP:The Spanning Tree Protocol (STP) is a network protocol that
builds a loop-free logical topology for Ethernet networks. The basic
function of STP is to prevent bridge loops and the broadcast radiation
that results from them. Spanning tree also allows a network design to
Conclusion :
References :