Basics of Networking: The OSI Layer
Basics of Networking: The OSI Layer
Each layer has been designed to do a specific task. Starting from the top layer (7) we will
see how the data which you type gets converted into segments, the segments into
datagrams and the datagrams into packets, the packets into frames and then the frames
are sent down the wire, usually twisted pair, to the receiving computer.
This layer helps us in identifying whether we have a link up situation with end systems.
The Physical layer's connectors (RJ-45, BNC etc.) and different physical topologies (Bus,
Star, Hybrid networks) are defined by the OSI as standards, allowing different systems to
communicate.
The Data-link ensures that messages are delivered to the proper device and
translates messages from the Network layer into bits for the Physical layer to
transmit.
It formats the message into data frames and adds a customized header
containing the hardware destination and source address.
The Datalink layer is subdivided into two other sub layers, the Media Access
Control (MAC) and the Logical Link Control (LLC).
You will come across 2 addressing terms, Logical addressing & Physical addressing.
Logical addressing is basically the address which is given by software e.g IP address.
Physical addressing is an address which is given not by the software, but the hardware.
Every network card has a "MAC" address which is burnt into the card's EPROM and this
special address is used to uniquely identify your computer's network card from all the others
on the network.
This sub layer is responsible for identifying Network layer protocols and then encapsulating
them when they are about to be transmitted onto the network or decapsulate them when it
receives a packet from the network and pass it onto the layer above it, which is the Network
layer.
Some common protocols which work at the Datalink layer are: ARP, RARP, DCAP.
The Network layer is responsible for transporting traffic between devices that are not
locally attached. Routers, or other layer-3 devices, are specified at the Network layer and
provide routing services in an internetwork.
Some common protocols which work at the Network layer are: IP, DHCP, ICMP, IGRP,
EIGRP, RIP, RIP2.
The Presentation Layer gets its name from its purpose: It presents data to the Application
layer. It's basically a translator and provides coding and conversion functions. A successful
data transfer technique is to adapt the data into a standard format before transmission.
Computers are configured to receive this generically formatted data and then convert the
data back into its native format for reading. By providing translation services, the
Presentation layer ensures that data transferred from the Application layer of one system
can be read by the Application layer of another host.
The OSI has protocol standards that define how standard data should be formatted. Tasks
like data compression, decompression, encryption and decryption are associated with this
layer. Some Presentation layer standards are involved in multimedia operations. The
following serve to direct graphic and visual image presentation :
JPEG
MIDI
MPEG
There are no protocols which work specifically at the Presentation layer, but the protocols
which work at the Application layer are said to work on all 3 upper layers.
The Application layer of the OSI model is where users communicate with the computer. The
Application layer is responsible for identifying and establishing the availability of the intended
communication partner and determining if sufficient resources for the intended communication
exist. The user interfaces with the computer at the application layer.
There are various protocols which are used at this layer. FTP, TFTP, Telnet, SMTP and other
protocols work on the first three layers of the OSI model, which obviously includes the
Application layer.