Sample questions
Question 1Easy
How does traceroute discover the routers along a path?
- It reads DNS records for every hop
- It asks each router along the path to send back its complete routing table and interface list
- It uses ARP to find each router
- It sends packets with increasing TTL values and reads the ICMP Time Exceeded replies
Answer: D. It sends packets with increasing TTL values and reads the ICMP Time Exceeded replies
Explanation
TTL 1 expires at the first router, TTL 2 at the second, and so on; each router identifies itself in its ICMP reply.
Step-by-step solution
- traceroute sends a sequence of probe packets with increasing TTL values, starting at 1.
- A probe with TTL = N dies at the Nth router, which sends back an ICMP Time Exceeded message revealing its own address.
- Repeating with higher TTLs reveals each router along the path in order, until the probe finally reaches the destination.
Why the other options are wrong
- A. DNS records have nothing to do with discovering routers on a path.
- B. Routers do not share their routing table or interface list with random probes; that would be a serious security risk.
- C. ARP only resolves addresses on the local link; it does not work across multiple routers.
Question 2Easy
Which device works at the network layer of the OSI model?
- Hub
- Repeater
- Layer-2 switch
- Router
Answer: D. Router
Explanation
Routers forward packets between networks using IP addresses.
Step-by-step solution
- Each device type is defined by which address it reads to make its forwarding decision.
- A router reads IP (network layer) addresses to decide where to send a packet next.
- Hubs and repeaters work below addressing entirely, and layer-2 switches use MAC addresses instead.
Why the other options are wrong
- A. A hub is a physical-layer device with no address awareness at all.
- B. A repeater just regenerates signals at the physical layer.
- C. A layer-2 switch forwards using MAC addresses, one layer below a router.
Tip: Router = layer 3 (IP addresses); switch = layer 2 (MAC addresses).
Question 3Easy
What does the IPv4 TTL field do when a router forwards a packet?
- It is reset to 64 by each router on the path
- It is left unchanged
- Decremented by 1; dropped at 0
- It is incremented by 1 at every router
Answer: C. Decremented by 1; dropped at 0
Explanation
TTL limits how many hops a packet can take; when it hits 0 the router drops it and sends ICMP Time Exceeded.
Step-by-step solution
- Every router that forwards an IPv4 packet decrements its TTL field by exactly 1.
- If TTL reaches 0, the router discards the packet instead of forwarding it.
- The dropping router typically sends back an ICMP Time Exceeded message, which tools like traceroute rely on.
Why the other options are wrong
- A. TTL is never reset by routers along the path; it only ever decreases.
- B. TTL is never left unchanged; every forwarding router decrements it.
- D. TTL is decremented, not incremented, as the packet travels.
Tip: TTL counts down hops, not seconds, despite the name 'Time To Live'.
Question 4Easy
Which of these is an unguided (wireless) transmission medium?
- Coaxial cable
- Microwave
- Optical fibre
- Twisted pair
Answer: B. Microwave
Explanation
Guided media use a physical conductor; radio and microwave propagate through free space.
Step-by-step solution
- Guided media confine a signal to a physical conductor, like a cable.
- Unguided media broadcast the signal through free space instead.
- Microwave links use radio waves travelling through the air, so they are unguided.
Why the other options are wrong
- A. Coaxial cable is a guided (wired) medium.
- C. Optical fibre is a guided medium, carrying light through glass or plastic.
- D. Twisted pair is a guided (wired) medium.
Tip: Anything travelling through a physical wire or fibre is guided; radio, microwave and infrared are unguided.
Question 5Medium
Which statement about the maximum size of an IPv4 datagram is correct?
- 1500 bytes, the Ethernet MTU
- 576 bytes, the minimum every host must accept
- 65,535 bytes
- 4 GB, limited by the 32-bit address fields
Answer: C. 65,535 bytes
Explanation
Total Length is 16 bits; the 1500-byte figure is the Ethernet MTU, not the IP limit.
Step-by-step solution
- The IPv4 Total Length field, which bounds the whole datagram's size, is 16 bits wide.
- That gives a theoretical maximum of
2^16 - 1 = 65,535 bytes.
- Real networks almost always fragment well before that limit because of much smaller link MTUs like Ethernet's 1500 bytes.
Why the other options are wrong
- A. 1500 bytes is the common Ethernet MTU, a link-layer limit, not IP's own theoretical maximum.
- B. 576 bytes is a historical minimum every host must be able to reassemble, not the maximum size.
- D. IPv4's address fields do not limit datagram size at all; the separate Total Length field does.
Tip: IP's own ceiling: 2^16 - 1 bytes. The real-world limit almost always comes from the link's MTU instead.
Question 6Medium
Which IPv4 header fields does the destination use to reassemble fragments?
- TTL and protocol
- Source port and destination port of the TCP header
- Type of service and header checksum
- Identification, MF flag and offset
Answer: D. Identification, MF flag and offset
Explanation
Fragments of one datagram share an Identification value; the offset places each piece and MF = 0 marks the last one.
Step-by-step solution
- Fragments that belong to the same original datagram all share one Identification value.
- The Offset field tells the receiver exactly where this fragment's data belongs within the original payload.
- The More Fragments (MF) flag is set on every fragment except the last, where it is 0, signalling reassembly is complete.
Why the other options are wrong
- A. TTL and protocol identify the packet's lifespan and payload type, unrelated to reassembly.
- B. TCP source and destination ports belong to the transport layer and have nothing to do with IP-level reassembly.
- C. Type of service and header checksum do not help identify or order fragments.
Tip: Remember the trio: Identification (which datagram), Offset (where), MF (is this the last piece?).
Question 7Medium
Which address is used at each layer: transport, network, data link?
- Port number, IP address, MAC address
- IP address, MAC address, port number
- Port number, MAC address, IP address
- MAC address, port number, IP address
Answer: A. Port number, IP address, MAC address
Explanation
Ports identify processes, IP addresses identify hosts across networks, MAC addresses identify interfaces on a link.
Step-by-step solution
- Addressing gets more specific the lower you go in the stack.
- Transport layer uses port numbers to identify a process on a host.
- Network layer uses IP addresses to identify a host across networks, and data link uses MAC addresses to identify an interface on one physical link.
Why the other options are wrong
- B. This mismatches the layers: IP belongs to the network layer and the port to transport, but here the port is placed last.
- C. This swaps the positions of MAC and IP address.
- D. This mismatches every layer: MAC is a data link address, not transport, and the port is not a network address.
Question 8Medium
In the TCP/IP model, the OSI session, presentation and application layers are combined into which layer?
- Application layer
- Network access layer
- Internet layer
- Transport layer
Answer: A. Application layer
Explanation
The TCP/IP model has four layers: Network Access (Link), Internet, Transport and Application. Its application layer covers OSI layers 5 to 7.
Step-by-step solution
- The TCP/IP model has only four layers: Network Access, Internet, Transport and Application.
- Its single Application layer does the job of OSI's top three layers combined.
- In practice, protocols like HTTP handle session, formatting and application logic all themselves.
Why the other options are wrong
- B. The network access (link) layer corresponds to OSI's data link and physical layers, not the top three.
- C. The internet layer corresponds to OSI's network layer alone.
- D. The transport layer corresponds to OSI's transport layer alone, not the top three combined.
Question 9Hard
The theoretical maximum data rate of a noiseless 3 kHz channel using 4 signal levels (Nyquist) is:
- 12 kbps
- 6 kbps
- 3 kbps
- 24 kbps
Answer: A. 12 kbps
Explanation
Nyquist: C = 2B log2(L)
= 2 x 3000 x log2 4
= 2 x 3000 x 2
= 12,000 bps.
Step-by-step solution
- Nyquist's formula gives the maximum data rate of a noiseless channel as C = 2B log2(L).
- Here bandwidth B = 3000 Hz and the number of signal levels L = 4, so log2(4) = 2.
- C = 2 x 3000 x 2
= 12,000 bps
= 12 kbps.
Why the other options are wrong
- B. That uses only 1 bit per symbol (2 levels), not the 2 bits per symbol that 4 levels actually give.
- C. That omits the factor of 2 from the Nyquist formula entirely.
- D. That doubles the correct value, as if there were 16 signal levels instead of 4.
Tip: C = 2B log2(L); doubling the number of levels adds exactly 1 more bit per symbol.
Question 10Hard
A 4000-byte IPv4 datagram (20-byte header, no options) must cross a link with MTU 1500. What is the fragment offset field value of the last fragment?
- 740
- 370
- 2960
- 185
Answer: B. 370
Explanation
Each fragment carries 1480 data bytes: data sizes 1480, 1480, 1020. The last starts at byte 2960, and the offset is in 8-byte units: 2960 / 8 = 370.
Step-by-step solution
- The 4000-byte datagram has 20 header bytes, leaving 3980 bytes of data to fragment.
- Each fragment can carry at most 1480 data bytes over a 1500-byte MTU link (1500 - 20 header bytes).
- Two fragments carry 1480 bytes each (2960 total), leaving 1020 bytes for the last fragment, which starts at byte 2960; the offset field value is 2960 / 8 = 370.
Why the other options are wrong
- A. This divides 2960 by 4 instead of 8; the field is in 8-byte units.
- C. That is the raw byte offset without dividing by 8 into the field's actual units.
- D. That is the offset of the second fragment (1480 / 8), not the last.
Tip: Offset field value = (data bytes before this fragment) / 8.
Practise all 37 questions free
The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.
Open this topic in the app →