Unit summary

  • Routers forward packets using routing tables and the longest prefix match; routes are static or dynamic.
  • RIP is distance vector, OSPF is link state with Dijkstra, and BGP is path vector between autonomous systems.
  • NAT and PAT let many private hosts share public addresses, at the cost of end-to-end connectivity.
  • TCP is connection-oriented and reliable; UDP is connectionless and fast.
  • TCP uses a three-way handshake, a receive window for flow control, and slow start, congestion avoidance, fast retransmit and fast recovery for congestion control.
  • QoS gives traffic classes different service through IntServ or DiffServ; firewalls, VPNs and encryption secure networks.

Glossary

Term Meaning
Autonomous system Networks under one administration.
BGP Path-vector protocol between autonomous systems.
cwnd The sender's congestion window.
DiffServ Per-class QoS using DSCP marks.
Dynamic routing Routes learned by a routing protocol.
Fast retransmit Resending after three duplicate ACKs.
Firewall A traffic filter between networks.
Longest prefix match Choosing the most specific matching route.
NAT Translation between private and public addresses.
OSPF Link-state protocol using Dijkstra's algorithm.
PAT NAT using port numbers to share one address.
Port number A 16-bit identifier of a process.
QoS Differentiated treatment of traffic.
RIP Distance-vector protocol using hop count.
Routing table A router's list of destinations and next hops.
rwnd The receiver's advertised window.
Slow start Exponential growth of cwnd.
Static routing Manually configured routes.
TCP Reliable, connection-oriented transport.
Three-way handshake SYN, SYN-ACK and ACK.
UDP Fast, connectionless transport.
VPN An encrypted tunnel over a public network.

Question bank

Short Answer Questions (2 marks each)

  1. What is longest prefix matching?
  2. Compare static and dynamic routing.
  3. What is count-to-infinity?
  4. What is PAT?
  5. Compare TCP and UDP.
  6. What is the three-way handshake?
  7. Distinguish flow control and congestion control.
  8. What is slow start?
  9. Compare IntServ and DiffServ.
  10. What is a VPN?

Medium Answer Questions (5 marks each)

  1. Explain RIP, OSPF and BGP.
  2. Apply Dijkstra's algorithm to a given network.
  3. Explain the types of NAT with a translation table.
  4. Explain TCP connection setup and termination.
  5. Trace cwnd for TCP Reno with given events.
  6. Explain firewalls and their types.

Long Answer Questions (15 marks each)

  1. Explain static and dynamic routing, routing protocols RIP, OSPF and BGP, and NAT.
  2. Explain TCP and UDP, the TCP handshake, reliability and flow control.
  3. Explain TCP congestion control: slow start, congestion avoidance, fast retransmit and recovery, Reno and Vegas.
  4. Explain QoS (IntServ and DiffServ) and network security: firewalls, VPNs and encryption.

Sources

  • Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit III