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)
- What is longest prefix matching?
- Compare static and dynamic routing.
- What is count-to-infinity?
- What is PAT?
- Compare TCP and UDP.
- What is the three-way handshake?
- Distinguish flow control and congestion control.
- What is slow start?
- Compare IntServ and DiffServ.
- What is a VPN?
Medium Answer Questions (5 marks each)
- Explain RIP, OSPF and BGP.
- Apply Dijkstra's algorithm to a given network.
- Explain the types of NAT with a translation table.
- Explain TCP connection setup and termination.
- Trace cwnd for TCP Reno with given events.
- Explain firewalls and their types.
Long Answer Questions (15 marks each)
- Explain static and dynamic routing, routing protocols RIP, OSPF and BGP, and NAT.
- Explain TCP and UDP, the TCP handshake, reliability and flow control.
- Explain TCP congestion control: slow start, congestion avoidance, fast retransmit and recovery, Reno and Vegas.
- Explain QoS (IntServ and DiffServ) and network security: firewalls, VPNs and encryption.
Sources
- Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit III
