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
-
Located after the destination MAC and Tag is always 0x0800
-
It is located after the Ether Type
-
Located after the source MAC and Tag is always 0x8100
-
Located after the destination MAC and Tag is always 0x8100
C
Correct answer
Explanation
The 802.1Q VLAN tag is inserted after the source MAC address, and the Tag Protocol Identifier (TPID) is 0x8100.
-
1 byte field that uses same protocol numbers as IPv4
-
1 byte field that uses different protocol numbers than IPv4
-
2 byte field that uses same protocol numbers as IPv4
-
2 byte field that uses different protocol numbers than IPv4
A
Correct answer
Explanation
The Next Header field in IPv6 is 1 byte and uses the same protocol numbers as the Protocol field in IPv4.
-
Data Link - Frames
-
Network - Packets
-
Transport - Segments/Datagrams
-
Session - Bits
D
Correct answer
Explanation
The OSI model defines PDUs for different layers: bits for Physical, frames for Data Link, packets for Network, and segments for Transport. The Session layer does not use bits as its PDU; bits are the PDU for the Physical layer.
D
Correct answer
Explanation
The TCP 3-way handshake uses SYN, SYN-ACK, and ACK flags to establish a connection. ACK-FIN is used during the connection termination process, not the handshake.
D
Correct answer
Explanation
SSH (Secure Shell) requires a reliable, connection-oriented transport to ensure data integrity and order, which is provided by TCP. TFTP, DNS, and DHCP are typically connectionless and use UDP.
-
Broadcasted - RA
-
Multicasted - RS
-
Multicasted - RA
-
Broadcasted - RS
B
Correct answer
Explanation
When an IPv6 device joins a network, it sends a Router Solicitation (RS) message to the all-routers multicast address to request a Router Advertisement (RA). The RS is multicasted, not broadcasted.
-
192.168.255.254
-
10.9.1.12
-
172.17.22.9
-
172.32.255.254
D
Correct answer
Explanation
RFC 1918 defines private address ranges as 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. 172.32.x.x falls outside the 172.16.0.0/12 range (which ends at 172.31.255.255).
-
169.254.0.0/16
-
127.0.0.1
-
192.168.0.0/16
-
168.255.0.0/16
A
Correct answer
Explanation
APIPA (Automatic Private IP Addressing) addresses are in the 169.254.0.0/16 range. This is used by clients when they cannot reach a DHCP server.
-
Network administratively prohibited
-
Host administratively prohibited
-
Destination network unreachable
-
Destination port unreachable
C
Correct answer
Explanation
When a packet is dropped by an ACL, the router typically sends an ICMP 'Administratively Prohibited' message. 'Destination network unreachable' is generally used for routing table issues, not ACL drops.
-
Destination Unreachable
-
Source Quench
-
Redirect Message
-
Time exceeded
D
Correct answer
Explanation
When an IPv4 packet's Time to Live (TTL) field reaches zero, the router discards the packet and sends an ICMP 'Time Exceeded' message back to the source.
B
Correct answer
Explanation
An ICMP Echo Request (the initial ping) is defined as Type 8, Code 0.
-
Next Header
-
Ethertype
-
Protocol
-
Type of Service
C
Correct answer
Explanation
The IPv4 header contains a 'Protocol' field (8 bits) that indicates the next level protocol (e.g., 6 for TCP, 17 for UDP) encapsulated in the packet.
-
When DNS querys keep failing
-
When conducting zone transfer
-
Upon inital DNS connection request
-
DNS cannot use TCP
B
Correct answer
Explanation
DNS primarily uses UDP for queries. However, it switches to TCP for zone transfers (between servers) or when the response size exceeds the 512-byte UDP limit.
A
Correct answer
Explanation
FTP uses two ports: port 21 for the control connection (commands) and port 20 for the data connection.
-
TCP 68/69
-
TCP 67/68
-
UDP 68/69
-
UDP 67/68
D
Correct answer
Explanation
DHCP uses UDP port 67 for the server and UDP port 68 for the client.