DCC Chapter 5 Notes - Ur Engineering Friend (2nd)
DCC Chapter 5 Notes - Ur Engineering Friend (2nd)
OSI stands for Open Systems Interconnection. It has been developed by ISO –
‘International Organization of Standardization‘, in the year 1984. It is a 7
layer architecture with each layer having specific functionality to perform. All
these 7 layers work collaboratively to transmit the data from one person to
another across the globe.
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
transmitting individual bits from one node to the next. 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 two sub layers :
Network layer works for the transmission of data from one host to the other
located in different networks. It also takes care of packet routing i.e. selection of
the shortest path to transmit the packet, from the number of routes available.
The sender & receiver’s IP address are placed in the header by the network
layer.
The functions of the Network layer are :
Transport layer provides services to application layer and takes services from
network layer. The data in the transport layer is referred to as Segments. It is
responsible for the End to End Delivery of the complete message. The transport
layer also provides the acknowledgement of the successful data transmission
and re-transmits the data if an error is found.
• At sender’s side:
Transport layer receives the formatted data from the upper layers, performs
Segmentation and also implements Flow & Error control to ensure proper
data transmission. It also adds Source and Destination port number in its header
and forwards the segmented data to the Network Layer.
Note: The sender need to know the port number associated with the receiver’s
application.
Generally, this destination port number is configured, either by default or
manually. For example, when a web application makes a request to a web
server, it typically uses port number 80, because this is the default port assigned
to web applications. Many applications have default port assigned.
• At receiver’s side:
Transport Layer reads the port number from its header and forwards the Data
which it has received to the respective application. It also performs sequencing
and reassembling of the segmented data.
1. Segmentation and Reassembly: This layer accepts the message from the
(session) layer , breaks the message into smaller units . Each of the
segment produced has a header associated with it. The transport layer at
the destination station reassembles the message.
2. Service Point Addressing: In order to deliver the message to correct
process, transport layer header includes a type of address called service
point address or port address. Thus by specifying this address, transport
layer makes sure that the message is delivered to the correct process.
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.
The functions of the presentation layer are :
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 services to access the network and for
displaying the received information to the user.
1. Process/Application Layer
2. Host-to-Host/Transport Layer
3. Internet Layer
4. Network Access/Link Layer
This layer corresponds to the combination of Data Link Layer and Physical
Layer of the OSI model. It looks out for hardware addressing and the protocols
present in this layer allows for the physical transmission of data.
We just talked about ARP being a protocol of Internet layer, but there is a
conflict about declaring it as a protocol of Internet Layer or Network access
layer. It is described as residing in layer 3, being encapsulated by layer 2
protocols.
2. Internet Layer –
This layer parallels the functions of OSI’s Network layer. It defines the
protocols which are responsible for logical transmission of data over the entire
network. The main protocols residing at this layer are :
3. Host-to-Host Layer –
This layer is analogous to the transport layer of the OSI model. It is responsible
for end-to-end communication and error-free delivery of data. It shields the
upper-layer applications from the complexities of data. The two main protocols
present in this layer are :
4. Application Layer –
This layer performs the functions of top three layers of the OSI model:
Application, Presentation and Session Layer. It is responsible for node-to-
node communication and controls user-interface specifications. Some of
the protocols present in this layer are: HTTP, HTTPS, FTP, TFTP,
Telnet, SSH, SMTP, SNMP, NTP, DNS, DHCP, NFS, X Window, LPD.
Have a look at protocols in application layer for some information about
these protocols. Protocols other than those present in the linked article are
:
TCP/IP OSI
IP Addressing:
IP addressing provides mechanism to differentiate between hosts and network.
Because IP addresses are assigned in hierarchical manner, a host always resides
under a specific network.The host which needs to communicate outside its
subnet, needs to know destination network address, where the packet/data is to
be sent.
Hosts in different subnet need a mechanism to locate each other. This task can
be done by DNS. DNS is a server which provides Layer-3 address of remote
host mapped with its domain name or FQDN. When a host acquires the Layer-3
Address (IP Address) of the remote host, it forwards all its packet to its
gateway. A gateway is a router equipped with all the information which leads to
route packets to the destination host.
Routers take help of routing tables, which has the following information:
Routers upon receiving a forwarding request, forwards packet to its next hop
(adjacent router) towards the destination.
The next router on the path follows the same thing and eventually the data
packet reaches its destination.
What is IPv4?
What is IPv6?
IPv6 is the most recent version of the Internet Protocol. This new IP address
version is being deployed to fulfill the need for more Internet addresses. It was
aimed to resolve issues that are associated with IPv4. With 128-bit address
space, it allows 340 undecillion unique address space. IPv6 is also called IPng
(Internet Protocol next generation).
Connectionless Protocol
Allow creating a simple virtual communication layer over diversified
devices
It requires less memory, and ease of remembering addresses
Already supported protocol by millions of devices
Offers video libraries and conferences
Features of IPv6