Question 1
EasyWhich transport protocol is connection-oriented and reliable?
- A.
TCP
- B.
ICMP
- C.
IP
- D.
UDP
Show answer and explanation
Answer: A
TCP sets up a connection and guarantees ordered, error-checked delivery with retransmission.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Computer Networks
Which transport protocol is connection-oriented and reliable?
TCP
ICMP
IP
UDP
Answer: A
TCP sets up a connection and guarantees ordered, error-checked delivery with retransmission.
Which transport protocol is connectionless and has no delivery guarantee?
SCTP
HTTP
UDP
TCP
Answer: C
UDP just sends datagrams. It is fast and light, which suits DNS, streaming and games.
What is the default port number for HTTP?
25
443
80
21
Answer: C
HTTP uses port 80; HTTPS uses 443.
What does a port number identify?
A physical socket on the computer
A specific process or service on a host
A router
A network cable
Answer: B
IP addresses identify hosts; ports identify the application on that host.
Which application usually uses UDP rather than TCP?
Loading a web page over HTTP/1.1
Live video calls
Downloading a file
Sending email
Answer: B
For real-time media, a late packet is useless, so retransmission isn't worth it.
What does a TCP acknowledgement (ACK) number tell the sender?
The total file size
The number of packets lost
The sender's port
The next byte the receiver expects
Answer: D
TCP acknowledgements are cumulative: ACK = n means all bytes before n have arrived.
What is a socket?
A physical network card
A type of cable
The combination of an IP address and a port number
A routing table entry
Answer: C
A TCP connection is identified by the pair of sockets at its two ends.
How many packets/messages are exchanged during the standard connection establishment phase (handshake) of the Transmission Control Protocol (TCP)?
2-way handshake (SYN, ACK)
3-way handshake (SYN, SYN-ACK, ACK)
4-way handshake (SYN, ACK, FIN, ACK)
No handshake (Connectionless)
Answer: B
TCP uses a 3-way handshake to establish a reliable connection before data transfer:
What does TCP guarantee that UDP does not?
Encryption of data
Reliable, in-order delivery of data
Faster delivery
Delivery without any headers
Answer: B
TCP uses acknowledgements, sequence numbers and retransmission; UDP does none of these.
What is the correct order of messages in the TCP three-way handshake?
ACK, SYN, FIN
SYN, ACK, FIN
SYN, SYN-ACK, ACK
FIN, ACK, SYN
Answer: C
The client sends SYN, the server replies SYN-ACK and the client confirms with ACK.