Review the basic properties of TCP as a transport protocol over IP.
Which description is correct?
TCP is connection-oriented and provides a reliable byte stream using sequencing, acknowledgements, and retransmission.
Detailed explanation
Correct. TCP establishes a connection and provides ordered, reliable byte-stream delivery.
Incorrect. This describes UDP.
Incorrect. This describes ICMP diagnostics and error reporting.
Incorrect. Hostname resolution is DNS's role.
Try it yourself
An example you can run in a temporary verification environment.
python3 -c "import socket; print(socket.getprotobyname('tcp'), socket.SOCK_STREAM)"Expected result
6 1(TCPのプロトコル番号とストリームソケット種別)Key points
- Connection-oriented
- Sequencing and retransmission
- Byte-stream service
Notes
- Environment: Python 3 socket / 外部通信なし
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Network prefix
The part of an IP address that identifies the network rather than a host.
Transport protocol
TCP and UDP provide different delivery, reliability, and connection semantics.
Service port
A numbered endpoint used to deliver traffic to a network service.