Computer Networks Questions & Answers – Network Layer
This set of Computer Networks Multiple Choice Questions & Answers (MCQs) focuses on “Network Layer”.
1. Which of the following is not correct in relation to multi-destination routing?
a) is same as broadcast routing
b) contains the list of all destinations
c) data is not sent by packets
d) there are multiple receivers
Explanation: In multi-destination routing, there is more than one receiver, and the routing algorithm must find the path for each destination in a list of destinations. Broadcasting also uses multi-destination routing.
2. A subset of a network that includes all the routers but contains no loops is called ________
a) spanning tree
b) spider structure
c) spider tree
d) special tree
Explanation: The Spanning Tree Protocol (STP) is a network protocol for ethernet networks that generates a loop-free logical architecture. It’s a layer 2 protocol that’s used on switches and bridges. The fundamental goal of STP is to prevent loops from forming in your network when you have redundant pathways.
3. Which one of the following algorithm is not used for congestion control?
a) traffic aware routing
b) admission control
c) load shedding
d) routing information protocol
Explanation: The network layer employs the Routing Information Protocol (RIP) to do dynamic routing. To deal with congestion, congestion control focuses on the flow of traffic in the network and applies algorithms such as traffic aware routing, admission control, and load shedding.
4. The network layer protocol for internet is __________
b) internet protocol
c) hypertext transfer protocol
d) file transfer protocol
Explanation: The Network layer employs a number of protocols. IP, ICMP, CLNP, ARP, IPX, HRSP, and others are among them. The application layer uses the hypertext transfer protocol, whereas the data link layer uses the ethernet protocol.
5. ICMP is primarily used for __________
a) error and diagnostic functions
Explanation: Networking devices use the ICMP abbreviation for Internet Control Message Protocol to send error messages and operational information indicating that a host or router cannot be reached. Because IP cannot report faults on its own, ICMP acts over the IP packet to provide error reporting features.
6. The network layer is concerned with __________ of data.
Explanation: Data from the application layer is transmitted to the transport layer and converted to segments in computer networks. These segments are eventually sent to the network layer, where they are referred to as packets. Following that, the packets are transmitted to the data link layer, where they are packed into frames. After that, the frames are moved to the physical layer, where they are transformed to bits.
7. Which one of the following is not a function of network layer?
c) congestion control
d) error control
Explanation: The third layer in the OSI model is the network layer, which offers data routing channels for network communications. The data link layer and the transport layer are responsible for error control.
8. A 4 byte IP address consists of __________
a) only network address
b) only host address
c) network address & host address
d) network address & MAC address
Explanation: An IP address that is 32 bits long, or 4 bytes, is made up of a network and host part that is determined by the address class. In classful IP addressing, the size of the host address and network address is determined by the address class.
9. In virtual circuit network each packet contains ___________
a) full source and destination address
b) a short VC number
c) only source address
d) only destination address
Explanation: In a connection oriented circuit switched network, a short VC number, also known as VCID (virtual circuit identifier), is a sort of identifier that is used to identify between various virtual circuits. Each virtual circuit transports data across a wider packet switched network.
10. Which of the following routing algorithms can be used for network layer design?
a) shortest path algorithm
b) distance vector routing
c) link state routing
d) all of the mentioned
Explanation: The routing algorithm is responsible for determining where a packet should be sent next. Shortest path algorithm, static and dynamic routing, decentralised routing, distance vector routing, link state routing, Hierarchical routing, and so on are some of the routing strategies available. Routing algorithms are inextricably linked to the activities of all routers in a network. In these algorithms, the routers are the major players.
The network layer is layer 3 in the seven-layer OSI model of computer networking. Packet forwarding, including routing through additional routers, is handled by the network layer. The network layer allows variable-length network packets to be transferred from a source to a target host through one or more networks. The network layer responds to service requests from the transport layer and issues service requests to the data link layer, according to the OSI network technology’s service layering semantics.