Question Bank 3 and 4 Unit
Question Bank 3 and 4 Unit
3. Consider a source computer (S) transmitting a file of size 106 bits to a destination
computer (D) over a network of two routers (R1 and R2) and three links (L1, L2 and L3).
L1 connects S to R1;L2 connects R1 to R2; and L3 connects R2 to D. Let each link be of
length 100km. Assume signals travel over each link at a speed of 10^8 meters per
second. Assume that the link bandwidth on each link is 1Mbps. Let the file be broken
down into 1000 packets each of size 1000 bits. Find the total sum of transmission and
propagation delays in transmitting the file from S to D?
4. Consider a CSMA/CD network that transmits data at a rate of 100 Mbps (10^8 bits per
second) over a 1 km (kilometer) cable with no repeaters. If the minimum frame size
required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable?
5. Consider building a CSMA/CD network running at 1 Gbps over a 1 km cable with no
repeaters. The signal speed in the cable is 200000km/sec. What is the minimum frame
size?
6. In a sliding window ARQ scheme, the transmitter’s window size is N and the receiver’s
window size is M. The minimum number of distinct sequence numbers required to
ensure correct operation of the ARQ scheme is________
7. Write in detail about ALOHA and its variants.
https://www.prepbytes.com/blog/computer-network/aloha-in-computer-networks
https://www.prepbytes.com/blog/computer-network/carrier-sense-multiple-access-
csma/
https://www.geeksforgeeks.org/stop-and-wait-arq/
https://www.tutorialspoint.com/sliding-window-protocol
https://bhavanakhivsara.files.wordpress.com/2015/01/sliding-window-protocol.pdf
https://www.javatpoint.com/go-back-n-arq
11. Write in detail about single bit parity, two dimensional parity with example.
https://www.geeksforgeeks.org/error-detection-in-computer-networks/
https://www.tutorialspoint.com/error-detecting-codes-checksums
1. Explain how the Distance Vector Routing protocol works and provide an
example to help illustrate your explanation. (6 marks)
2. Describe how the Link State Routing protocol operates and give an example to
show how it is used in networks. (6 marks)
3. What is Path Vector Routing? Explain it in detail and highlight how it is different
from other routing methods. (6 marks)
4. Compare RIP Version 1 and Version 2. What are the key differences between
the two versions? (4 marks)
5. What is the ALOHA protocol? Explain its purpose and describe the different
types (variants) of ALOHA. (4 marks)
6. Describe the different types of CSMA protocols. How do they work to control
access to the network? (4 marks)
7. What is the Stop-and-Wait ARQ protocol? Explain how it works for error control
in data transmission. (4 marks)
8. Explain how the Sliding Window protocol functions and describe how it
manages the flow of data and handles errors. (6 marks)
9. What is single-bit parity? Explain how it detects errors and use an example to
show how it works. What about two-dimensional parity? Explain that as well
with an example. (6 marks)
10. Explain the checksum method with an example. How does it help in detecting
errors in data transmission? (4 marks)
11. Describe the Cyclic Redundancy Check (CRC) method with an example. How
does CRC detect and correct errors? (6 marks)
12. What is Hamming Code? Explain how it works with an example, and show how
it can correct errors in data. (6 marks)
13. Describe the OSPF (Open Shortest Path First) protocol. How does it help routers
find the best path for data to travel in large networks? (4 marks)
14. Explain the BGP (Border Gateway Protocol) and describe how it manages data
routing between different networks (autonomous systems). (4 marks)
15. What is EIGRP (Enhanced Interior Gateway Routing Protocol)? Explain how it
simplifies routing and describe its advantages in network communication. (6
marks)
16. Describe the structure of IPv6 addressing. How does it differ from IPv4? Why is
IPv6 important? (4 marks)
17. What is a Token Ring network? Explain how it works and describe its
importance in network design. (4 marks)
18. Compare static and dynamic routing. What are the differences between them,
and when would you use each type? (4 marks)
Answer :
As soon as N2−N3 reduces to 2, both N2 and N3 instantly updates their distance
to N3 and N2 to 2 respectively.
So, N2: (1,0,2,7,3), N3: (7,2,0,2,6) becomes this.
After this starts first round of update in which each node shares its table with their
respective neighbors ONLY.
N1: (0,1,7,8,4),
N2: (1,0,2,7,3),
N3: (7,2,0,2,6),
N4: (8,7,2,0,4),
N5: (4,3,6,4,0).
SEE at this time all the entries are old EXCEPT in N2 and N3 where value changes
to 2 instead of 6.
N3 receives tables from N2: (1,0,2,7,3) and N4: (8,7,2,0,4). Using THIS ONLY
original N3: (7,2,0,2,6) updates to N3(3,2,0,2,5). (For updation and forming the tables
for this refer FOROUZAN.)
2. How to find Shortest Paths from Source to all Vertices using Dijkstra’s Algorithm
Given a weighted graph and a source vertex in the graph, find the shortest paths from
the source to all the other vertices in the given graph.
https://www.geeksforgeeks.org/dijkstras-shortest-path-algorithm-greedy-algo-7/
Note: The given graph does not contain any negative edge.
Examples:
Input: src = 0, the graph is shown below.
Output: 0 4 12 19 21 11 9 8 14
Explanation: The distance from 0 to 1 = 4.
The minimum distance from 0 to 2 = 12. 0->1->2
The minimum distance from 0 to 3 = 19. 0->1->2->3
The minimum distance from 0 to 4 = 21. 0->7->6->5->4
The minimum distance from 0 to 5 = 11. 0->7->6->5
The minimum distance from 0 to 6 = 9. 0->7->6
The minimum distance from 0 to 7 = 8. 0->7
The minimum distance from 0 to 8 = 14. 0->1->2->8
3. Consider a source computer (S) transmitting a file of size 106 bits to a destination
computer (D) over a network of two routers (R1 and R2) and three links (L1, L2 and L3).
L1 connects S to R1;L2 connects R1 to R2; and L3 connects R2 to D. Let each link be of
length 100km. Assume signals travel over each link at a speed of 10^8 meters per
second. Assume that the link bandwidth on each link is 1Mbps. Let the file be broken
down into 1000 packets each of size 1000 bits. Find the total sum of transmission and
propagation delays in transmitting the file from S to D?
4. Consider a CSMA/CD network that transmits data at a rate of 100 Mbps (10^8 bits per
second) over a 1 km (kilometer) cable with no repeaters. If the minimum frame size
required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable?
5. Consider building a CSMA/CD network running at 1 Gbps over a 1 km cable with no
repeaters. The signal speed in the cable is 200000km/sec. What is the minimum frame
size?
Frame Size S >= 2BL/P
Where,