B CompE Bachelor of Computer Engineering Computer Networks 2 — Questions and Answers
Question 1: In a TCP three-way handshake, what is the correct sequence of messages?
- SYN, ACK, SYN-ACK
- SYN, SYN-ACK, ACK (Correct answer)
- ACK, SYN, SYN-ACK
- SYN-ACK, SYN, ACK
Correct answer: SYN, SYN-ACK, ACK
A TCP connection starts with SYN from the client, SYN-ACK from the server, and a final ACK from the client.
Question 2: Which routing protocol uses the Bellman-Ford algorithm?
- OSPF
- BGP
- RIP (Correct answer)
- EIGRP
Correct answer: RIP
RIP (Routing Information Protocol) uses the Bellman-Ford algorithm to calculate the shortest path based on hop count.
Question 3: What is the subnet mask for a /26 CIDR block?
- 255.255.255.0
- 255.255.255.128
- 255.255.255.192 (Correct answer)
- 255.255.255.224
Correct answer: 255.255.255.192
A /26 prefix means 26 network bits, leaving 6 host bits, which corresponds to a subnet mask of 255.255.255.192.
Question 4: Which layer does a standard switch primarily operate on in the OSI model?
- Layer 1 - Physical
- Layer 2 - Data Link (Correct answer)
- Layer 3 - Network
- Layer 4 - Transport
Correct answer: Layer 2 - Data Link
A standard switch operates at Layer 2 (Data Link), forwarding frames based on MAC addresses.
Question 5: What port number does HTTPS use by default?
- 80
- 21
- 443 (Correct answer)
- 8080
Correct answer: 443
HTTPS (HTTP Secure) uses port 443 by default to provide encrypted web communication via TLS/SSL.
Question 6: Which protocol is responsible for converting domain names to IP addresses?
- DHCP
- DNS (Correct answer)
- ARP
- ICMP
Correct answer: DNS
DNS (Domain Name System) translates human-readable domain names into their corresponding IP addresses.
In a TCP three-way handshake, what is the correct sequence of messages?