Header Ads

TCP/IP Question and Answers

1. 
Which of the following services use TCP?
  1. DHCP
  2. SMTP
  3. HTTP
  4. TFTP
  5. FTP
A.1 and 2
B.2, 3 and 5
C.1, 2 and 4
D.1, 3 and 4
Answer & Explanation
Answer: Option B
Explanation:
SMTP, HTTP and FTP use TCP.


2. 
What layer in the TCP/IP stack is equivalent to the Transport layer of the OSI model?
A.Application
B.Host-to-Host
C.Internet
D.Network Access
Answer & Explanation
Answer: Option B
Explanation:
The four layers of the TCP/IP stack (also called the DoD model) are Application/Process, Host-to-Host, Internet, and Network Access. The Host-to-Host layer is equivalent to the Transport layer of the OSI model.


3. 
Which of the following describe the DHCP Discover message?
  1. It uses FF:FF:FF:FF:FF:FF as a layer 2 broadcast.
  2. It uses UDP as the Transport layer protocol.
  3. It uses TCP as the Transport layer protocol.
  4. It does not use a layer 2 destination address.
A.1 only
B.1 and 2
C.3 and 4
D.4 only
Answer & Explanation
Answer: Option B
Explanation:
A client that sends out a DHCP Discover message in order to receive an IP address sends out a broadcast at both layer 2 and layer 3. The layer 2 broadcast is all Fs in hex, orFF:FF:FF:FF:FF:FF. The layer 3 broadcast is 255.255.255.255, which means all networks and all hosts. DHCP is connectionless, which means it uses User Datagram Protocol (UDP) at the Transport layer, also called the Host-to-Host layer.


4. 
You want to implement a mechanism that automates the IP configuration, including IP address, subnet mask, default gateway, and DNS information. Which protocol will you use to accomplish this?
A.SMTPB.SNMP
C.DHCPD.ARP
Answer & Explanation
Answer: Option C
Explanation:
Dynamic Host Configuration Protocol (DHCP) is used to provide IP information to hosts on your network. DHCP can provide a lot of information, but the most common is IP address, subnet mask, default gateway, and DNS information.


5. 
Which of the following is private IP address?
A.12.0.0.1B.168.172.19.39
C.172.15.14.36D.192.168.24.43
Answer & Explanation
Answer: Option D
Explanation:
Class A private address range is 10.0.0.0 through 10.255.255.255. Class B private address range is 172.16.0.0 through 172.31.255.255, and Class C private address range is 192.168.0.0 through 192.168.255.255.
6. 
Which of the following allows a router to respond to an ARP request that is intended for a remote host?
A.Gateway DP
B.Reverse ARP (RARP)
C.Proxy ARP
D.Inverse ARP (IARP)
Answer & Explanation
Answer: Option C
Explanation:
Proxy ARP can help machines on a subnet reach remote subnets without configuring routing or a default gateway.


7. 
The DoD model (also called the TCP/IP stack) has four layers. Which layer of the DoD model is equivalent to the Network layer of the OSI model?
A.Application
B.Host-to-Host
C.Internet
D.Network Access
Answer & Explanation
Answer: Option C
Explanation:
The four layers of the DoD model are Application/Process, Host-to-Host, Internet, and Network Access. The Internet layer is equivalent to the Network layer of the OSI model.


8. 
Which of the following services use UDP?
  1. DHCP
  2. SMTP
  3. SNMP
  4. FTP
  5. HTTP
  6. TFTP
A.1, 3 and 6
B.2 and 4
C.1, 2 and 4
D.All of the above
Answer & Explanation
Answer: Option A
Explanation:
DHCP, SNMP, and TFTP use UDP.


9. 
Which class of IP address provides a maximum of only 254 host addresses per network ID?
A.Class A
B.Class B
C.Class C
D.Class D
Answer & Explanation
Answer: Option C
Explanation:
A Class C network address has only 8 bits for defining hosts: 28 - 2 = 254.


10. 
If you use either Telnet or FTP, which is the highest layer you are using to transmit data?
A.ApplicationB.Presentation
C.SessionD.Transport
Answer & Explanation
Answer: Option A
Explanation:
Both FTP and Telnet use TCP at the Transport layer; however, they both are Application layer protocols, so the Application layer is the best answer.
11. 
Which of the following is the decimal and hexadecimal equivalents of the binary number 10011101?
A.155, 0x9B
B.157, 0x9D
C.159, 0x9F
D.185, 0xB9
Answer & Explanation
Answer: Option B
Explanation:
To turn a binary number into decimal, you just have to add the values of each bit that is a 1. The values of 10011101 are 128, 16, 8, 4, and 1. 128 + 16 + 8 + 4 + 1 = 157.
Hexadecimal is a base-16 number system. The values of hexadecimal are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F-16 characters total, from which to create all the numbers you'll ever need. So, if 1001 in binary is 9, then the hexadecimal equivalent is 9. Since we then have 1101, which is 13 in binary, the hexadecimal answer is D and the complete hexadecimal answer is 0x9D.


12. 
Which statements are true regarding ICMP packets?
  1. They acknowledge receipt of a TCP segment.
  2. They guarantee datagram delivery.
  3. They can provide hosts with information about network problems.
  4. They are encapsulated within IP datagrams.
A.1 only
B.2 and 3
C.3 and 4
D.2, 3 and 4
Answer & Explanation
Answer: Option C
Explanation:
Internet Control Message Protocol (ICMP) is used to send error messages through the network, but they do not work alone. Every segment or ICMP payload must be encapsulated within an IP datagram (or packet).


13. 
Which of the following are layers in the TCP/IP model?
  1. Application
  2. Session
  3. Transport
  4. Internet
  5. Data Link
  6. Physical
A.1 and 2
B.1, 3 and 4
C.2, 3 and 5
D.3, 4 and 5
Answer & Explanation
Answer: Option B
Explanation:
This seems like a hard question at first because it doesn't make sense. The listed answers are from the OSI model and the question asked about the TCP/IP protocol stack (DoD model). However, let's just look for what is wrong. First, the Session layer is not in the TCP/IP model; neither are the Data Link and Physical layers. This leaves us with the Transport layer (Host-to-Host in the DoD model), Internet layer (Network layer in the OSI), and Application layer (Application/Process in the DoD).


14. 
Which layer 4 protocol is used for a Telnet connection?
A.IPB.TCP
C.TCP/IPD.UDP
Answer & Explanation
Answer: Option B
Explanation:
Although Telnet does use TCP and IP (TCP/IP), the question specifically asks about layer 4, and IP works at layer 3. Telnet uses TCP at layer 4.


15. 
Which statements are true regarding ICMP packets?
  1. ICMP guarantees datagram delivery.
  2. ICMP can provide hosts with information about network problems.
  3. ICMP is encapsulated within IP datagrams.
  4. ICMP is encapsulated within UDP datagrams.
A.1 only
B.2 and 3
C.1 and 4
D.All of the above
Answer & Explanation
Answer: Option B
Explanation:
ICMP is used for diagnostics and destination unreachable messages. ICMP is encapsulated within IP datagrams, and because it is used for diagnostics, it will provide hosts with information about network problems.
16. 
Which of the following are TCP/IP protocols used at the Application layer of the OSI model?
  1. IP
  2. TCP
  3. Telnet
  4. FTP
  5. TFTP
A.1 and 3
B.1, 3 and 5
C.3, 4 and 5
D.All of the above
Answer & Explanation
Answer: Option C
Explanation:
Telnet, File Transfer Protocol (FTP), and Trivial FTP (TFTP) are all Application layer protocols. IP is a Network layer protocol. Transmission Control Protocol (TCP) is a Transport layer protocol.


17. 
What protocol is used to find the hardware address of a local device?
A.RARPB.ARP
C.IPD.ICMP
Answer & Explanation
Answer: Option B
Explanation:
Address Resolution Protocol (ARP) is used to find the hardware address from a known IP address.


18. 
Which of the following protocols uses both TCP and UDP?
A.FTPB.SMTP
C.TelnetD.DNS
Answer & Explanation
Answer: Option D
Explanation:
DNS uses TCP for zone exchanges between servers and UDP when a client is trying to resolve a hostname to an IP address.


19. 
What is the address range of a Class B network address in binary?
A.01xxxxxx
B.0xxxxxxx
C.10xxxxxx
D.110xxxxx
Answer & Explanation
Answer: Option C
Explanation:
The range of a Class B network address is 128-191. This makes our binary range10xxxxxx.

No comments