Quiz · Medium
TCP behaviour, subnet calculations, longest-prefix routing, IPv6 notation and header fields.
Which statement best describes TCP?
Connectionless and unreliable
Connection-oriented with reliable, ordered delivery
Only used for DNS
A layer 2 protocol
TCP sets up a connection, numbers bytes, retransmits losses and delivers data in order.
What is the correct order of the TCP three-way handshake?
SYN, ACK, SYN
SYN, SYN + ACK, ACK
ACK, SYN, SYN + ACK
SYN + ACK, SYN, ACK
The client sends SYN, the server answers SYN + ACK, then the client sends ACK.
In the diagram, what acknowledgment number does the final ACK carry if the server's sequence number was y?
x + 1
y
y + 1
y - 1
The client acknowledges the next byte it expects from the server, y + 1.
Three duplicate ACKs trigger which TCP behaviour?
Slow start
Fast retransmit
Connection reset
Window scaling
The sender infers a segment was lost and resends it without waiting for the timeout.
Which mechanism limits the sender based on the receiver's buffer space?
Congestion window
Flow control using the receiver window
Slow start threshold
TTL
The receiver advertises how much data it can accept; the sender never exceeds it.
How many usable host addresses does 192.168.1.0/26 provide?
30
62
64
126
A /26 has 2^6 = 64 addresses; minus the network and broadcast addresses leaves 62.
What are the network and broadcast addresses of 10.1.1.77/26?
10.1.1.0 and 10.1.1.63
10.1.1.64 and 10.1.1.127
10.1.1.64 and 10.1.1.255
10.1.1.76 and 10.1.1.78
Blocks of 64: 0, 64, 128, 192. 77 is in the block starting at 64, which ends at 127.
Which subnet mask corresponds to /20?
255.255.240.0
255.255.248.0
255.255.224.0
255.240.0.0
20 = 8 + 8 + 4: the third octet has its top 4 bits set, which is 240.
A company needs 50 hosts in one subnet. What is the smallest prefix that fits?
/25
/26
/27
/28
/26 gives 62 usable hosts. /27 gives only 30.
Which route is used for destination 10.2.3.4 if the table holds 10.0.0.0/8, 10.2.0.0/16 and 0.0.0.0/0?
10.0.0.0/8
10.2.0.0/16
0.0.0.0/0
They are load balanced
Longest prefix match: /16 is more specific than /8 and the default route.
Which is the correct shortened form of 2001:0db8:0000:0000:0000:0000:0000:0001?
2001:db8::1
2001:db8:0:1
2001::db8::1
2001:db8::0001
Leading zeros are dropped and one run of zero groups becomes ::.
Which field in the diagram of the IPv4 header is decremented at every router?

Protocol
TTL
Identification
Header checksum
TTL protects against routing loops; the header checksum is recomputed because TTL changes.
How large is the IPv4 header without options?

8 bytes
20 bytes
40 bytes
60 bytes
IHL = 5 words of 4 bytes = 20 bytes. IPv6's fixed header is 40 bytes.
What is subnetting in the figure doing to the Host ID?

Increasing it
Splitting off some of its bits as a Subnet ID
Replacing it with the Network ID
Removing the Reserved bits
Bits are borrowed from the host part to create subnets.
Which protocol does ping use?
TCP
UDP
ICMP
ARP
Ping sends ICMP echo requests and waits for echo replies.
A 1500-byte packet is sent on a 100 Mbps link. What is the transmission delay?
0.12 ms
1.2 ms
12 ms
15 ms
1500 bytes = 12,000 bits; 12,000 / 100,000,000 = 0.00012 s = 0.12 ms.
What does port address translation (NAT overload) do?
Encrypts traffic
Lets many private hosts share one public IP by rewriting ports
Assigns IPv6 addresses
Resolves names
The NAT device keeps a table mapping internal address and port pairs to ports on the shared public address.
Why is UDP favoured for live voice and video?
It guarantees delivery
It has lower latency since it does not retransmit or reorder
It encrypts data
It uses larger packets
Late data is useless in real time, so retransmission delay is worse than a small loss.
Which pair is correct?
Well-known ports: 1024 to 49151
Well-known ports: 0 to 1023
Ephemeral ports: 0 to 1023
Registered ports: 49152 to 65535
Well-known 0 to 1023, registered 1024 to 49151, dynamic 49152 to 65535.
How are 192.168.0.0/24 and 192.168.1.0/24 aggregated?
192.168.0.0/22
192.168.0.0/23
192.168.0.0/25
They cannot be aggregated
Two adjacent /24 blocks (starting on an even boundary) combine into one /23.