Computer Networks
Computer Networks
Computer Networks
Ans: ARP (Address Resolution Protocol) is an important protocol that plays an important role in the
networking world.
When working with your network systems, this protocol helps to identify specified network devices
and find their addresses.
Its main purpose is to duly transport data packets over the network, allowing them to move between
devices connected to your heritage network.
1. When a device wants to communicate with another device on a network, it sends an ARP
request with the IP address of the destination device.
3. The device with the matching IP address responds with its MAC address.
4. The sender device stores the MAC address in its ARP cache for future reference.
2)/3) What is congestion control? Explain open loop and closed loop congestion control
policy.
Ans:
Congestion control is a crucial concept in computer networks.
It refers to the methods used to prevent network overload and ensure smooth data flow.
When too much data is sent through the network at once, it can cause delays and data
loss.
Congestion control techniques help manage the traffic, so all users can enjoy a stable
and efficient network connection.
These techniques are essential for maintaining the performance and reliability of modern
networks.
Protocols Using Congestion Control:
1. TCP (Transmission Control Protocol)
2. ATM (Asynchronous Transfer Mode)
3. MPLS (Multiprotocol Label Switching)
4. DCCP (Datagram Congestion Control Protocol)
Effective congestion control:
1. Ensures reliable data transfer
2. Prevents network downtime
3. Optimizes network performance
4. Enhances user experience
Open loop congestion control policy:
Open loop congestion control policies are applied to prevent congestion before it
happens. The congestion control is handled either by the source or the destination.
Policies adopted by open loop congestion control –
1. Backpressure :
Backpressure is a technique in which a congested node stops
receiving packets from upstream node. This may cause the
upstream node or nodes to become congested and reject
receiving data from above nodes. Backpressure is a node-to-
node congestion control technique that propagate in the
opposite direction of data flow. The backpressure technique can
be applied only to virtual circuit where each node has
information of its above upstream node.
4. Explicit Signaling :
In explicit signaling, if a node experiences congestion it can
explicitly sends a packet to the source or destination to inform
about congestion. The difference between choke packet and
explicit signaling is that the signal is included in the packets that
carry data rather than creating a different packet as in case of
choke packet technique.
Explicit signaling can occur in either forward or backward
direction.
Forward Signaling : In forward signaling, a signal is sent
in the direction of the congestion. The destination is warned
about congestion. The receiver in this case adopt policies to
prevent further congestion.
Backward Signaling : In backward signaling, a signal is
sent in the opposite direction of the congestion. The source
is warned about congestion and it needs to slow down.
4)Explain IPV4 header format in detail.
Ans:
Class A
IP addresses belonging to class A are assigned to the
networks that contain a large number of hosts.
The network ID is 8 bits long.
The host ID is 24 bits long.
Class B
IP address belonging to class B is assigned to networks that
range from medium-sized to large-sized networks.
The network ID is 16 bits long.
The host ID is 16 bits long.
Class C
IP addresses belonging to class C are assigned to small-
sized networks.
The network ID is 24 bits long.
The host ID is 8 bits long.
Class D
IP address belonging to class D is reserved for multi-
casting. The higher-order bits of the first octet of IP
addresses belonging to class D is always set to 1110. The
remaining bits are for the address that interested hosts
recognize.
Class E
IP addresses belonging to class E are reserved for
experimental and research purposes. IP addresses of class
E range from 240.0.0.0 – 255.255.255.255. This class
doesn’t have any subnet mask. The higher-order bits of the
first octet of class E are always set to 1111.
Classless IPV4 Address:
Subnetting
Dividing a large block of addresses into several contiguous
sub-blocks and assigning these sub-blocks to different
smaller networks is called subnetting. It is a practice that is
widely used when classless addressing is done.
A subnet or subnetwork is a network inside a network.
Subnets make networks more efficient. Through subnetting,
network traffic can travel a shorter distance without passing
through unnecessary routers to reach its destination.
Classless Addressing
To reduce the wastage of IP addresses in a block, we use
sub-netting. What we do is that we use host id bits as net id
bits of a classful IP address. We give the IP address and
define the number of bits for mask along with it (usually
followed by a ‘/’ symbol), like, 192.168.1.1/28. Here, subnet
mask is found by putting the given number of bits out of 32
as 1, like, in the given address, we need to put 28 out of 32
bits as 1 and the rest as 0, and so, the subnet mask would
be 255.255.255.240. A classless addressing system or
classless interdomain routing (CIDR or supernetting) is the
way to combine two or more class C networks to create
a/23 or a /22 supernet. A classless addressing system or
classless interdomain routing (CIDR) is an improved IP
addressing system. In a classless addressing system the
block of IP address is assigned dynamically based on
specific rules.
Some Values Calculated in Subnetting:
1. Number of subnets : 2(Given bits for mask – No. of bits in
default mask)
2. Subnet address : AND result of subnet mask and the
given IP address
3. Broadcast address : By putting the host bits as 1 and
retaining the network bits as in the IP address
4. Number of hosts per subnet : 2(32 – Given bits for
mask) – 2
5. First Host ID : Subnet address + 1 (adding one to the
binary representation of the subnet address)
6. Last Host ID : Subnet address + Number of Hosts