Notes For Computer Network
Notes For Computer Network
networks
In packet switching, the amount of time taken for a packet to go from source to destination is known as a delay. It is
also known as Network Delay or end-to-end delay. It refers to the time taken for the processing of a packet in the
network. Delays in packet switching are classified into 4 types, such as transmission delay, propagation delay,
queuing delay, and processing delay.
Transmission Delay: It refers to the rate of transmission of a network interface. The amount of time taken to send
the data packet from the source/host to the transmission medium or communication link is known as transmission
delay. It depends on the data packet size and the bandwidth of the communication link. If the data packet consists of
length L bits with a transmission medium capacity of B bits/sec, then the transmission delay is given as,
T = L/B
As the bandwidth of the transmission medium increases, the transmission delay decreases.
If the transmission link is shared to multiple network devices, then the MAC protocol controls the delay.
Transmitting and receiving the data packets involved in context switching in the operating system, which
takes limited time.
This delay is more significant when there are multiple active links.
Propagation Delay: When the data packet is transmitted through the transmission medium to reach the destination,
the time taken for the last bit of the data packet to reach the destination is known as propagation delay. It depends
on the distance between the transmitter (sender) and received; propagation speed of the signal. If ‘D’ is the distance
between the sender and receiver, and ‘S’ is the propagation speed of the signal, then the propagation delay is
calculated from the formula given below,
When the distance between the sender and receiver is high or the distance of the transmission medium is
longer, then the propagating time of the packet to reach its destination is more.
The data packet reaches its destination very fastly only when the speed of the signal is high.
Queuing Delay: When the data packet arrives at the destination, it is not processed immediately. It has to wait in a
queue in the buffer. The amount of time that the packet waits in the queue for processing is known as Queuing
Delay. There is no formula to calculate the queuing delay. It depends on the arrived data packets at the destination,
the transmission capacity of the communication medium, and the network’s traffic.
The queuing delay is high when the size of the queue is large. The queuing delay is zero when the queue is
empty and all the data packets are processed.
If the data packets arrive in a short period, then the queuing delay will be high
The limited number of communication links leads to a greater queuing delay.
Processing Delay: The time taken for the packet to be processed by the switch is called processing delay. The
time taken by the processor to process the data packet is the time required by the routers to decide the best path to
forward the packet to its destination. It depends on the speed of the processor and there is no formula to calculate.
The speed of the processing varies from network to network.
Layered Architecture
The OSI model is made up of seven layers: Physical, Data link, Network, Transport, Session, Presentation
and Application. These layers are involved when a message is sent from one computer to other computer.
When the message travels from source to destination, it pass through many intermediate nodes.
These intermediate nodes involve the first three layers of the OSI model.
Each layer defines particular network functions.
OSI Model
o 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.
o OSI consists of seven layers, and each layer performs a particular network function.
o 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.
o OSI model divides the whole task into seven smaller and manageable tasks. Each layer is assigned a
particular task.
o Each layer is self-contained, so that task assigned to each layer can be performed independently.
Characteristics of OSI Model:
o The OSI model is divided into two layers: upper layers and lower layers.
o 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.
o 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.
1. Physical Layer
2. Data-Link Layer
3. Network Layer
4. Transport Layer
5. Session Layer
6. Presentation Layer
7. Application Layer
Physical layer
o The main functionality of the physical layer is to transmit the individual bits from one node to another
node.
o It is the lowest layer of the OSI model.
o It establishes, maintains and deactivates the physical connection.
o It specifies the mechanical, electrical and procedural network interface specifications.
Data-Link Layer
o Physical Addressing: The Data link layer adds a header to the frame that contains a destination
address. The frame is transmitted to the destination address mentioned in the header.
o Flow Control: Flow control is the main functionality of the Data-link layer. It is the technique through
which the constant data rate is maintained on both the sides so that no data get corrupted. It ensures
that the transmitting station such as a server with higher processing speed does not exceed the
receiving station, with lower processing speed.
o Error Control: Error control is achieved by adding a calculated value CRC (Cyclic Redundancy Check)
that is placed to the Data link layer's trailer which is added to the message frame before it is sent to the
physical layer. If any error seems to occurr, then the receiver sends the acknowledgment for the
retransmission of the corrupted frames.
o Access Control: When two or more devices are connected to the same communication channel, then
the data link layer protocols are used to determine which device has control over the link at a given
time.
Network Layer
o It is a layer 3 that manages device addressing, tracks the location of devices on the network.
o It determines the best path to move data from source to the destination based on the network
conditions, the priority of service, and other factors.
o The Data link layer is responsible for routing and forwarding the packets.
o Routers are the layer 3 devices, they are specified in this layer and used to provide the routing services
within an internetwork.
o The protocols used to route the network traffic are known as Network layer protocols. Examples of
protocols are IP and Ipv6.
Transport Layer
o The Transport layer is a Layer 4 ensures that messages are transmitted in the order in which they are
sent and there is no duplication of data.
o The main responsibility of the transport layer is to transfer the data completely.
o It receives the data from the upper layer and converts them into smaller units known as segments.
o This layer can be termed as an end-to-end layer as it provides a point-to-point connection between
source and destination to deliver the data reliably.
Session Layer
o A Presentation layer is mainly concerned with the syntax and semantics of the information exchanged
between the two systems.
o It acts as a data translator for a network.
o This layer is a part of the operating system that converts the data from one presentation format to
another format.
o The Presentation layer is also known as the syntax layer.
o An application layer serves as a window for users and application processes to access network service.
o It handles issues such as network transparency, resource allocation, etc.
o An application layer is not an application, but it performs the application layer functions.
o This layer provides the network services to the end-users.
Host-to-network
At the Internet level, TCP/IP supports IP, ARP, RARP, ICMP and IGMP protocols.
All these protocols handle machine to machine communication.
IP – IP is the primary protocol, which is used to transport data in packets (datagrams). Each packet is
transported separately.
ARP – The Address Resolution Protocol is used to associate a logical address with a physical address.
RARP – The Reserve Address Resolution Protocol is used to discover host's Internet address when it
knows only its physical address.
ICMP – The hosts and gateways use the ICMP (Internet Control Message Protocol) mechanism to
send notification of datagram problems back to the sender.
IGMP – The Internet Group Message Protocol is used for simultaneous transmission of a message to
a group of recipients.
Transport layer
The application layer protocols are: SMTP, FTP, HTTP, DNS, SNMP TELNET and so on.
TELNET is the Network Terminal Protocol, which provides remote login over the network.
SMTP is used to deliver the electronic mail.
FTP is used for interactive file transfer.