ICT Networking Models and Protocols — Questions and Answers
Question 1: Which OSI layer is responsible for establishing, maintaining, and terminating communication sessions between applications?
- Transport layer
- Session layer (Correct answer)
- Presentation layer
- Application layer
Correct answer: Session layer
The Session layer (Layer 5) manages dialog control and synchronization between communicating systems.
Question 2: In the TCP/IP model, which layer corresponds most closely to both the OSI Session and Presentation layers?
- Network Access layer
- Internet layer
- Transport layer
- Application layer (Correct answer)
Correct answer: Application layer
The TCP/IP Application layer combines the functions of the OSI Application, Presentation, and Session layers.
Question 3: What is the primary purpose of the Presentation layer in the OSI model?
- Routing packets between networks
- Data encryption, compression, and format translation (Correct answer)
- Error detection and retransmission
- Physical signal transmission
Correct answer: Data encryption, compression, and format translation
The Presentation layer (Layer 6) handles data formatting, encryption, and compression so the Application layer can interpret the data.
Question 4: Which protocol operates at the OSI Network layer and is responsible for logical addressing and routing?
- Ethernet
- IP (Correct answer)
- TCP
- HTTP
Correct answer: IP
IP (Internet Protocol) operates at Layer 3 and handles logical (IP) addressing and routing of packets.
Question 5: A network technician needs to capture and analyze packets on a network segment. Which OSI layer do packet sniffers primarily operate at?
- Layer 7 – Application
- Layer 4 – Transport
- Layer 2 – Data Link (Correct answer)
- Layer 1 – Physical
Correct answer: Layer 2 – Data Link
Packet sniffers capture frames at the Data Link layer (Layer 2), though they can decode information from all encapsulated layers.
Question 6: Which of the following best describes the concept of 'encapsulation' in networking?
- Encrypting data before transmission
- Adding headers and trailers as data moves down the OSI layers (Correct answer)
- Compressing data to reduce bandwidth usage
- Converting analog signals to digital
Correct answer: Adding headers and trailers as data moves down the OSI layers
Encapsulation is the process of adding protocol-specific headers (and sometimes trailers) at each OSI layer as data moves from sender to receiver.
Question 7: UDP differs from TCP primarily because UDP:
- Guarantees packet delivery with acknowledgments
- Is connection-oriented and uses a three-way handshake
- Is connectionless and does not guarantee delivery (Correct answer)
- Operates at the Network layer
Correct answer: Is connectionless and does not guarantee delivery
UDP is a connectionless Transport layer protocol that sends datagrams without establishing a connection or guaranteeing delivery.
Question 8: What does the acronym 'PDU' stand for in networking?
- Protocol Data Unit (Correct answer)
- Packet Delivery Unit
- Physical Data Upload
- Primary Distribution Utility
Correct answer: Protocol Data Unit
PDU stands for Protocol Data Unit, the generic term for data at each OSI layer (e.g., segment at Transport, packet at Network, frame at Data Link).
Question 9: Which protocol is used to automatically assign IP addresses to devices on a network?
- DNS
- DHCP (Correct answer)
- ARP
- ICMP
Correct answer: DHCP
DHCP (Dynamic Host Configuration Protocol) automatically assigns IP addresses, subnet masks, default gateways, and DNS server addresses to clients.
Question 10: The three-way handshake used by TCP involves which sequence of messages?
- SYN → ACK → FIN
- SYN → SYN-ACK → ACK (Correct answer)
- ACK → SYN → FIN
- SYN → FIN → ACK
Correct answer: SYN → SYN-ACK → ACK
TCP establishes a connection with SYN from client, SYN-ACK from server, then ACK from client — a three-way handshake.
Question 11: Which OSI layer adds a MAC address header to data, creating a frame?
- Physical layer
- Data Link layer (Correct answer)
- Network layer
- Transport layer
Correct answer: Data Link layer
The Data Link layer (Layer 2) encapsulates packets into frames and adds source and destination MAC addresses.
Question 12: In IPv4, what is the purpose of the subnet mask?
- To encrypt IP packets during transmission
- To identify the network and host portions of an IP address (Correct answer)
- To route packets to the default gateway
- To convert domain names to IP addresses
Correct answer: To identify the network and host portions of an IP address
A subnet mask distinguishes the network portion from the host portion of an IPv4 address, enabling proper routing decisions.
Question 13: Which protocol resolves IP addresses to MAC addresses on a local network segment?
- DNS
- DHCP
- ARP (Correct answer)
- RARP
Correct answer: ARP
ARP (Address Resolution Protocol) broadcasts a request on the local segment to discover the MAC address associated with a known IP address.
Question 14: A user can ping a server by IP address but not by hostname. Which protocol is most likely failing?
- ARP
- DHCP
- DNS (Correct answer)
- ICMP
Correct answer: DNS
DNS (Domain Name System) resolves hostnames to IP addresses; if ping by IP works but hostname fails, DNS resolution is the issue.
Question 15: Which TCP/IP model layer is responsible for moving bits across the physical medium?
- Internet layer
- Transport layer
- Network Access layer (Correct answer)
- Application layer
Correct answer: Network Access layer
The Network Access layer (also called Link layer) in the TCP/IP model handles physical transmission and data framing, equivalent to OSI Layers 1 and 2.
Question 16: Port 443 is associated with which protocol?
- HTTP
- FTP
- HTTPS (Correct answer)
- SMTP
Correct answer: HTTPS
HTTPS (HTTP Secure) uses port 443 for encrypted web communication via TLS/SSL.
Question 17: Which routing protocol is classified as a distance-vector protocol?
- OSPF
- IS-IS
- RIP (Correct answer)
- BGP
Correct answer: RIP
RIP (Routing Information Protocol) is a distance-vector protocol that uses hop count as its metric and shares its entire routing table with neighbors.
Question 18: What is the maximum hop count allowed by RIPv2 before a route is considered unreachable?
- 8
- 15 (Correct answer)
- 30
- 255
Correct answer: 15
RIPv2 has a maximum hop count of 15; a hop count of 16 is considered infinite and marks the route as unreachable.
Question 19: Which of the following is a link-state routing protocol that uses Dijkstra's algorithm?
- RIP
- EIGRP
- OSPF (Correct answer)
- BGP
Correct answer: OSPF
OSPF (Open Shortest Path First) is a link-state protocol that builds a complete network topology map and uses Dijkstra's shortest path algorithm.
Question 20: ICMP is primarily used for which networking function?
- Assigning IP addresses dynamically
- Resolving MAC addresses from IP addresses
- Sending error messages and diagnostics (e.g., ping) (Correct answer)
- Encrypting network traffic
Correct answer: Sending error messages and diagnostics (e.g., ping)
ICMP (Internet Control Message Protocol) is used for network diagnostics and error reporting, including the ping and traceroute utilities.
Question 21: Which layer of the OSI model do switches primarily operate at?
- Layer 1 – Physical
- Layer 2 – Data Link (Correct answer)
- Layer 3 – Network
- Layer 4 – Transport
Correct answer: Layer 2 – Data Link
Traditional switches operate at the Data Link layer (Layer 2), forwarding frames based on MAC address tables.