Computer Knowledge
Computer Networks
2,614 Questions
Computer networks involve the architecture, protocols, and security measures used for digital communication. This collection covers OSI model layers, IP addressing, data transmission, and cryptographic standards. These concepts are vital for the computer knowledge sections of banking and government exams.
OSI model layersNetwork protocolsIP subnet maskingData encryption standardsServer configurationsNetwork commands
Computer Networks Questions
-
ifconfig
-
ipconfig
-
nslookup
-
ethconfig
A
Correct answer
Explanation
The ifconfig (interface config) command is used in Unix/Linux systems to configure, control, and query TCP/IP network interface parameters. ipconfig is the Windows equivalent, nslookup queries DNS servers, and ethconfig is not a valid command.
-
netstat
-
ifconfig/all
-
ipconfig/all
-
nslookup
A
Correct answer
Explanation
The netstat command displays active network connections, routing tables, and interface statistics across various operating systems. While ipconfig /all is used on Windows to view IP configuration details, it is written here with an incorrect syntax (ipconfig/all). nslookup is restricted specifically to querying DNS servers.
-
ifconfig
-
ipconfig
-
nslookup
-
ethconfig
A
Correct answer
Explanation
ifconfig (interface config) is the standard Unix/Linux command to configure or display network interface parameters. ipconfig is the Windows equivalent, nslookup queries DNS records, and ethconfig is not a valid command.
-
netstat
-
ifconfig/all
-
ipconfig/all
-
nslookup
A
Correct answer
Explanation
netstat (network statistics) displays network connections, routing tables, interface statistics, and masquerade connections. ifconfig/all is not a valid command syntax, ipconfig/all is Windows-specific, and nslookup only queries DNS.
-
Framing
-
Data packaging
-
Conversion
-
Clocking
-
Encapsulation
E
Correct answer
Explanation
Encapsulation is the process where each layer of the networking model wraps (encapsulates) the received data with its own protocol information (headers, trailers) before passing it down. For example, TCP adds its header to data, then IP adds its header, then Ethernet adds frame header and trailer. This creates a nested structure like an onion.
-
The physical layer
-
The transport layer
-
The data link layer
-
The network layer
C
Correct answer
Explanation
Layer 2 of the OSI model is the Data Link Layer, responsible for node-to-node data transfer and physical addressing (MAC addresses). Layer 1 is Physical (electrical/signaling), Layer 3 is Network (routing, IP addressing), and Layer 4 is Transport (end-to-end communication like TCP/UDP).
-
The physical layer
-
The transport layer
-
The data link layer
-
The network layer
B
Correct answer
Explanation
Layer 4 of the OSI model is the Transport Layer. It provides end-to-end communication services, including error recovery and flow control. Layers from bottom to top: Physical (1), Data Link (2), Network (3), Transport (4), Session (5), Presentation (6), Application (7).
-
The application layer
-
The internet layer
-
The network access layer
-
The transport layer
D
Correct answer
Explanation
The Transport Layer (Layer 4) in TCP/IP handles reliability (through TCP acknowledgments and retransmissions), flow control (managing data transmission rates), and error correction. TCP provides these services, while UDP is a simpler protocol without them.
-
Data-link
-
Session
-
Transport
-
Network
B
Correct answer
Explanation
The TCP/IP Application Layer combines the top 3 OSI layers: Application (Layer 7), Presentation (Layer 6), and Session (Layer 5). The Session layer establishes, manages, and terminates connections between applications.
B
Correct answer
Explanation
IP (Internet Protocol) is the universal protocol that provides the addressing and routing mechanism for all internet communication. Every device on the internet has an IP address, enabling global connectivity. TCP, HTTP, and FTP all build on top of IP.
-
The physical layer
-
The application layer
-
The presentation layer
-
The network layer
B
Correct answer
Explanation
The Application Layer (Layer 7) is the top OSI layer that directly interfaces with user applications outside the OSI model. It provides network services like file transfer, email, and web browsing to applications. Lower layers (Physical, Network) handle technical transmission aspects, while Presentation handles data formatting. The Application Layer is the only layer that applications directly interact with.
D
Correct answer
Explanation
The OSI reference model consists of exactly 7 layers: Physical (1), Data Link (2), Network (3), Transport (4), Session (5), Presentation (6), and Application (7). This 7-layer architecture is a fundamental concept in networking. Options A (2), B (3), and C (5) are all incorrect - they don't represent the complete OSI model structure.
-
The physical layer
-
The transport layer
-
The data link layer
-
The network layer
D
Correct answer
Explanation
Layer 3 of the OSI reference model is the Network Layer. This layer handles routing, logical addressing (IP addresses), and path determination between networks. It's responsible for forwarding packets to their destination across multiple networks. The Physical layer is Layer 1, Transport is Layer 4, and Data Link is Layer 2 - so options A, B, and C are incorrect.
-
The physical layer
-
The transport layer
-
The data link layer
-
The network layer
A
Correct answer
Explanation
Layer 1 of the OSI reference model is the Physical Layer. This layer deals with the physical connection between devices and transmission of raw bit streams over the network medium. It specifies electrical, mechanical, and procedural requirements for activating and deactivating physical connections. Transport is Layer 4, Data Link is Layer 2, and Network is Layer 3.
-
Segments
-
Logical addresses
-
Frames
-
Protocol data units
-
Data
D
Correct answer
Explanation
In layered architecture, each layer communicates with its peer layer on another device. The data unit exchanged between peer layers is called a Protocol Data Unit (PDU). Different layers have different PDU names - segments at transport layer, packets at network layer, frames at data link layer - but collectively they're all PDUs.