🇮🇳 GATE CS & IT Engineering · subject

GATE CS & IT Engineering Computer Networks Syllabus

The Computer Networks syllabus for GATE CS & IT Engineering in full: 8 chapters and 26 topics, every one listed below, plus 51 Computer Networks flashcards with answers.

8Chapters
26Topics
51Flashcards

Computer Networks syllabus: all 8 chapters

Expand any chapter to see its topics and sub-topics.

  1. Concept of Layering

    2 topics
    • OSI and TCP/IP Protocol Stacks
    • Basics of Packet, Circuit and Virtual Circuit-Switching
  2. Data Link Layer

    4 topics
    • Framing
    • Error Detection
    • Medium Access Control
    • Ethernet Bridging
  3. Routing Protocols

    4 topics
    • Shortest Path
    • Flooding
    • Distance Vector Routing
    • Link State Routing
  4. Fragmentation and IP Addressing

    2 topics
    • IPv4
    • CIDR Notation
  5. Basics of IP Support Protocols

    3 topics
    • ARP
    • DHCP
    • ICMP
  6. Network Address Translation (NAT)

    1 topic
    • NAT
  7. Transport Layer

    5 topics
    • Flow Control
    • Congestion Control
    • UDP
    • TCP
    • Sockets
  8. Application Layer Protocols

    5 topics
    • DNS
    • SMTP
    • HTTP
    • FTP
    • Email

GATE CS & IT Engineering Computer Networks flashcards — 51 questions with answers

  1. How many layers are in the OSI reference model, and what are they from top to bottom?

    7 layers: Application, Presentation, Session, Transport, Network, Data Link, Physical (top to bottom).

  2. How do the layers of the TCP/IP model map onto the OSI model?

    TCP/IP has 4 layers: Application (OSI Application+Presentation+Session), Transport, Internet/Network (OSI Network), and Network Access/Link (OSI Data Link+Physical).

  3. Which OSI layer is responsible for end-to-end reliable delivery, and what is its Protocol Data Unit (PDU)?

    The Transport layer; its PDU is the segment (TCP) or datagram (UDP). It handles end-to-end error control, flow control, and multiplexing via port numbers.

  4. Name the Protocol Data Unit (PDU) at the Network, Data Link, and Physical layers.

    Network layer: packet (datagram); Data Link layer: frame; Physical layer: bit.

  5. Compare circuit switching and packet switching on resource reservation and delay.

    Circuit switching reserves a dedicated path before transfer (constant delay, no congestion once set up, but wastes idle capacity). Packet switching forwards packets independently with no reservation (statistical multiplexing, efficient, but variable/queuing delay possible).

  6. What distinguishes a virtual-circuit network from a datagram (pure packet-switched) network?

    A virtual circuit sets up a connection and a fixed path; each packet carries a small Virtual Circuit Identifier (VCI), packets arrive in order. A datagram network is connectionless; each packet carries the full destination address and is routed independently, so packets may take different paths and arrive out of order.

  7. In circuit switching, what are the three phases of a communication session?

    Circuit establishment (setup), data transfer, and circuit teardown (disconnection).

  8. What is framing, and what problem does it solve at the data link layer?

    Framing groups the stream of bits from the physical layer into discrete units (frames) so the receiver can identify where each frame begins and ends, enabling per-frame error and flow control.

  9. Describe byte/character stuffing used in framing.

    A special FLAG byte marks frame boundaries. If the FLAG (or the ESC byte) appears in the data, an ESC byte is inserted before it (stuffed). The receiver removes the stuffed ESC bytes to recover the original data.

  10. Explain bit stuffing as used in HDLC framing.

    The flag is the bit pattern $01111110$. To prevent this pattern appearing in data, the sender inserts a $0$ after every five consecutive $1$s in the payload; the receiver removes a $0$ that follows five consecutive $1$s.

  11. For a single parity bit, what error-detection capability does it provide?

    A single parity bit detects all odd numbers of bit errors but fails to detect any even number of bit errors; it cannot correct errors.

  12. In CRC error detection, how is the codeword formed from a message $M(x)$ and generator $G(x)$ of degree $r$?

    Append $r$ zeros to the message: compute $M(x)\cdot x^{r}$, divide by $G(x)$ modulo-2 to get remainder $R(x)$, and transmit $T(x)=M(x)\cdot x^{r}+R(x)$, which is exactly divisible by $G(x)$. The receiver flags an error if $T(x)\bmod G(x)\neq 0$.

  13. What is the minimum Hamming distance of a code, and how many errors can it detect and correct?

    For minimum Hamming distance $d$: it detects up to $d-1$ errors and corrects up to $\left\lfloor \frac{d-1}{2} \right\rfloor$ errors.

  14. What does the Internet checksum (used in IP/TCP/UDP) compute?

    The 16-bit one's complement of the one's complement sum of all 16-bit words in the data; the receiver sums all words including the checksum and the result should be all $1$s if no error.

  15. What is the purpose of Medium Access Control (MAC), and name the three broad categories of MAC protocols.

    MAC arbitrates which station may use a shared broadcast channel to avoid/handle collisions. Categories: (1) Channel partitioning (TDMA, FDMA, CDMA), (2) Random access (ALOHA, CSMA/CD, CSMA/CA), (3) Taking turns (polling, token passing).

  16. What are the maximum channel utilizations of pure ALOHA and slotted ALOHA?

    Pure ALOHA: maximum efficiency $\frac{1}{2e}\approx 18.4\%$ at offered load $G=0.5$. Slotted ALOHA: maximum efficiency $\frac{1}{e}\approx 36.8\%$ at $G=1$.

  17. In CSMA/CD, what is the relation between frame transmission time and propagation delay, and why?

    Transmission time must satisfy $T_{frame}\geq 2T_{prop}$ (one round-trip time), so a sender is still transmitting when a collision signal returns and can detect it. Hence minimum frame size $=2\times$ (propagation delay) $\times$ (bandwidth).

  18. What is the difference between CSMA/CD and CSMA/CA, and where is each used?

    CSMA/CD detects collisions while transmitting (used in wired Ethernet). CSMA/CA avoids collisions using backoff, interframe spacing, and optionally RTS/CTS, since wireless cannot reliably detect collisions (used in 802.11 Wi-Fi).

  19. In Ethernet's binary exponential backoff, after the $n$-th collision how is the backoff time chosen?

    The station waits $k$ slot times where $k$ is chosen uniformly at random from $\{0,1,\dots,2^{m}-1\}$ with $m=\min(n,10)$; the number of collisions is capped at 16 attempts before aborting.

  20. What is a transparent bridge and how does it learn forwarding entries?

    A transparent bridge connects LAN segments at the data link layer and is invisible to hosts. It uses backward learning: it associates a frame's source MAC with the incoming port to build a filtering table, and floods frames whose destination is unknown.

Show the other 31 Computer Networks flashcards
  1. Why do bridged/switched Ethernet networks run the Spanning Tree Protocol (STP)?

    To eliminate loops in a topology with redundant links. Loops would cause broadcast storms and multiple frame copies; STP disables redundant ports to create a single loop-free active topology (a spanning tree) while keeping backups for failover.

  2. Contrast a collision domain and a broadcast domain in switched Ethernet.

    Each switch/bridge port is its own collision domain (full-duplex switching eliminates collisions). All ports of a switch are in one broadcast domain; a router (or VLAN boundary) separates broadcast domains.

  3. State Dijkstra's algorithm time complexity for shortest paths and its key restriction.

    With a binary heap, $O((V+E)\log V)$; with an adjacency-matrix/array, $O(V^{2})$. It computes single-source shortest paths but requires non-negative edge weights.

  4. What is the Bellman-Ford equation that underlies distance-vector routing?

    $d_x(y)=\min_{v}\{c(x,v)+d_v(y)\}$, where $d_x(y)$ is the least cost from $x$ to $y$, the minimum is over neighbors $v$, and $c(x,v)$ is the link cost from $x$ to neighbor $v$.

  5. How does flooding forward packets, and what techniques prevent infinite duplication?

    Flooding sends each incoming packet out on every link except the one it arrived on. To bound it: a hop-count/TTL field, sequence numbers to drop already-seen packets, or selective/reverse-path flooding.

  6. In distance-vector routing, what is the count-to-infinity problem?

    When a link fails, routers may slowly increment their distance estimates via each other (believing a path still exists), counting up toward infinity. It results from slow propagation of bad news in DV routing.

  7. Name three techniques used to mitigate the count-to-infinity problem in distance-vector routing.

    Split horizon (don't advertise a route back on the interface it was learned from), split horizon with poison reverse (advertise it back with infinite cost), and hold-down timers / triggered updates / defining a small value as infinity.

  8. Compare distance-vector and link-state routing on what is shared and with whom.

    Distance vector: each router shares its entire distance table only with directly-connected neighbors, periodically (e.g., RIP). Link state: each router floods the cost of only its directly-connected links to all routers, then each independently runs Dijkstra on the full topology (e.g., OSPF).

  9. Which routing protocol family does RIP belong to, and what is its metric and infinity value?

    RIP is a distance-vector protocol. Its metric is hop count, and it defines $16$ as infinity (unreachable), limiting network diameter to $15$ hops.

  10. What is the size of an IPv4 address, the header's min/max length, and the total address space?

    IPv4 addresses are $32$ bits, giving $2^{32}\approx 4.3\times 10^{9}$ addresses. The header is $20$ bytes minimum and $60$ bytes maximum (with options).

  11. State the classful IPv4 ranges for Class A, B, and C and their default network mask lengths.

    Class A: first bit $0$, $0.0.0.0$-$127.255.255.255$, mask $/8$. Class B: first bits $10$, $128.0.0.0$-$191.255.255.255$, mask $/16$. Class C: first bits $110$, $192.0.0.0$-$223.255.255.255$, mask $/24$.

  12. For a CIDR block with prefix length $n$, how many total addresses and usable hosts does it contain (IPv4)?

    Total addresses $=2^{32-n}$. Usable hosts $=2^{32-n}-2$ (subtracting the network address and the broadcast address).

  13. Given the block $172.16.0.0/20$, how many addresses does it span and what is the subnet mask in dotted decimal?

    $2^{32-20}=2^{12}=4096$ addresses ($4094$ usable). Mask $/20 = 255.255.240.0$.

  14. What is the role of the subnet mask, and how is the network address obtained from an IP address?

    The subnet mask separates network and host portions. The network (subnet) address is obtained by a bitwise AND of the IP address with the subnet mask.

  15. What does ARP do, and at which layers does it operate?

    Address Resolution Protocol maps a known IPv4 (layer-3) address to a MAC (layer-2) address on the same LAN. It works between the network and data link layers; the request is broadcast and the reply is unicast.

  16. Describe the ARP request/reply mechanism briefly.

    A host broadcasts an ARP request ("Who has IP X? Tell IP Y") to all stations on the LAN; only the host owning IP X replies with a unicast ARP reply containing its MAC address, which the requester caches in its ARP table.

  17. What are the four messages in the DHCP address-assignment handshake (DORA)?

    Discover (client broadcast), Offer (server offers an address), Request (client requests the offered address), Acknowledge (server confirms the lease). Order: Discover -> Offer -> Request -> Ack.

  18. Why must the initial DHCP Discover message be broadcast, and what addresses are used?

    The client has no IP address yet and doesn't know the server, so it broadcasts to $255.255.255.255$ with source $0.0.0.0$ so any DHCP server on the LAN can respond.

  19. What is ICMP used for, and name two common ICMP message types.

    Internet Control Message Protocol reports errors and provides diagnostics for IP. Common messages: Echo Request/Reply (used by ping), Destination Unreachable, Time Exceeded (used by traceroute), and Redirect.

  20. How do ping and traceroute use ICMP?

    Ping sends ICMP Echo Request and measures the Echo Reply round-trip time. Traceroute sends packets with increasing TTL; each router that drops a packet (TTL$=0$) returns an ICMP Time Exceeded, revealing the path hop by hop.

  21. What is NAT, and what problem does it solve?

    Network Address Translation maps multiple private IP addresses to one (or few) public IP address(es), conserving the scarce IPv4 public address space and adding isolation for the private network.

  22. In NAPT (PAT), what does the NAT table use to distinguish multiple internal connections sharing one public IP?

    It uses the combination of (public IP, port number): the NAT box rewrites the source IP and source port and records the mapping {private IP:port <-> public IP:new port}, demultiplexing returning traffic by the translated port.

  23. What is the difference between flow control and congestion control?

    Flow control prevents a fast sender from overwhelming a slow receiver (an end-to-end, receiver-driven limit). Congestion control prevents senders from overwhelming the network's internal capacity (router buffers/links).

  24. In a sliding-window protocol, what window sizes do Go-Back-N and Selective Repeat use given an $n$-bit sequence-number field?

    Go-Back-N: sender window up to $2^{n}-1$, receiver window $=1$. Selective Repeat: sender and receiver windows each up to $2^{n-1}$.

  25. Define link utilization (efficiency) for a sliding-window protocol with window size $W$.

    Efficiency $=\dfrac{W\cdot T_t}{T_t+2T_p}$ (capped at $1$), where $T_t$ is transmission time and $T_p$ is propagation delay. For full utilization, $W\geq \dfrac{T_t+2T_p}{T_t}=1+2a$ with $a=\frac{T_p}{T_t}$.

  26. In TCP congestion control, how does the congestion window evolve in slow start versus congestion avoidance?

    Slow start: cwnd grows exponentially, doubling each RTT until it reaches the threshold $ssthresh$. Congestion avoidance: cwnd grows linearly, increasing by about $1$ MSS per RTT (additive increase).

  27. What is TCP's AIMD strategy and how does cwnd respond to loss events?

    Additive Increase, Multiplicative Decrease: increase cwnd by $1$ MSS per RTT with no loss. On a triple duplicate ACK (fast recovery), set $ssthresh=\frac{cwnd}{2}$ and halve cwnd. On timeout, set cwnd to $1$ MSS and restart slow start.

  28. What congestion-control function does the leaky bucket algorithm provide?

    The leaky bucket shapes/polices traffic by outputting packets at a constant rate regardless of bursty input; packets that overflow the fixed-capacity bucket are discarded, smoothing flow into the network.

  29. How does the token bucket differ from the leaky bucket for traffic shaping?

    Token bucket allows bursts: tokens accumulate at a fixed rate up to capacity $b$, and a packet may be sent only if a token is available, so a burst of up to $b$ can be sent at once. Maximum output over time $t$ is bounded by $b+r\cdot t$ (token rate $r$). Leaky bucket enforces a strictly constant output rate with no bursts.

  30. Distinguish 1-persistent, non-persistent, and p-persistent CSMA.

    1-persistent: sense the channel and transmit immediately when idle (probability 1). Non-persistent: if busy, wait a random time then re-sense (fewer collisions, lower utilization). p-persistent (slotted): when idle, transmit with probability $p$ and defer to the next slot with probability $1-p$.

  31. What is the maximum throughput efficiency of a non-persistent vs 1-persistent CSMA compared to ALOHA, qualitatively?

    CSMA outperforms ALOHA because carrier sensing reduces collisions; non-persistent CSMA achieves higher maximum throughput than 1-persistent CSMA (which can approach high utilization at low load but degrades under heavy load), and both exceed slotted ALOHA's $\frac{1}{e}\approx 36.8\%$.

GATE CS & IT Engineering Computer Networks FAQ

What is in the GATE CS & IT Engineering Computer Networks syllabus?

GATE CS & IT Engineering Computer Networks is split into 8 chapters: Concept of Layering, Data Link Layer, Routing Protocols, Fragmentation and IP Addressing, Basics of IP Support Protocols, Network Address Translation (NAT), Transport Layer and Application Layer Protocols. Together they contain 26 topics.

How many chapters are in GATE CS & IT Engineering Computer Networks?

8 chapters, containing 26 topics. The largest chapter is Transport Layer, with 5 topics.

Are there flashcards for GATE CS & IT Engineering Computer Networks?

Yes — a 51-card Computer Networks deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.