Network-Layer
Question 1 |
Classless Inter-domain Routing (CIDR) receives a packet with address 131.23.151.76. The router’s routing table has the following entries:
The identifier of the output interface on which this packet will be forwarded is ______.
The identifier of the output interface on which this packet will be forwarded is ______.
1 | |
2 | |
3 | |
4 |
Question 2 |
Assume that source S and destination D are connected through two intermediate routers labeled R. Determine how many times each packet has to visit the network layer and the data link layer during a transmission from S to D.
Network layer – 4 times and Data link layer – 4 times | |
Network layer – 4 times and Data link layer – 3 times | |
Network layer – 4 times and Data link layer – 6 times | |
Network layer – 2 times and Data link layer – 6 times |
Question 2 Explanation:
From above given diagram, its early visible that packet will visit network layer 4 times, once at each node [S, R, R, D] and packet will visit Data Link layer 6 times. One time at S and one time at D, then two times for each intermediate router R as data link layer is used for link to link communication.
One at packet reaches R and goes up from physical –DL-Network and second time when packet coming out of router in order Network –DL-Physical.
Question 3 |
In an IPv4 datagram, the M bit is 0, the value of HLEN is 10, the value of total length is 400 and the fragment offset value is 300. The position of the datagram, the sequence numbers of the first and the last bytes of the payload, respectively are
Last fragment, 2400 and 2789 | |
First fragment, 2400 and 2759 | |
Last fragment, 2400 and 2759 | |
Middle fragment, 300 and 689 |
Question 3 Explanation:
M = 0 - Means there is no fragment after this, i.e. Last fragment.
HLEN = 10 - So header length is 4×10 = 40, as 4 is constant scale factor.
Total Length = 400 (40 Byte Header + 360 Byte Payload)
Fragment Offset = 300, that means 300×8 Byte = 2400 bytes are before this last fragment.
So the position of datagram is last fragment.
Sequence number of First Byte of Payload = 2400 (as 0 to 2399 Sequence no are used)
Sequence number of Last Byte of Payload = 2400+360-1 = 2759
HLEN = 10 - So header length is 4×10 = 40, as 4 is constant scale factor.
Total Length = 400 (40 Byte Header + 360 Byte Payload)
Fragment Offset = 300, that means 300×8 Byte = 2400 bytes are before this last fragment.
So the position of datagram is last fragment.
Sequence number of First Byte of Payload = 2400 (as 0 to 2399 Sequence no are used)
Sequence number of Last Byte of Payload = 2400+360-1 = 2759
Question 4 |
Which of the following statements is FALSE regarding a bridge?
Bridge is a layer 2 device | |
Bridge reduces collision domain | |
Bridge is used to connect two or more LAN segments | |
Bridge reduces broadcast domain |
Question 4 Explanation:
Bridge devices works at the data link layer of the open system interconnected (OSI) model, connecting two different networks together and providing communication between them. So, option A, C are true.
The bridge acts as a interface between two networks and speed the traffic between them and there by reduces the collision domain.
So, option B also True.
The bridge acts as a interface between two networks and speed the traffic between them and there by reduces the collision domain.
So, option B also True.
Question 5 |
Count to infinity is a problem associated with
link state routing protocol. | |
distance vector routing protocol. | |
DNS while resolving host name. | |
TCP for congestion control. |
Question 5 Explanation:
Distance vector routing protocol uses the Bellman-Ford algorithm and Ford-Fulkerson algorithm.
The Bellman-Ford algorithm does not prevent routing loops from happening and suffers from the count-to-infinity problem.
The Bellman-Ford algorithm does not prevent routing loops from happening and suffers from the count-to-infinity problem.
There are 5 questions to complete.
