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.
Correct. TCP establishes a connection and provides ordered, reliable byte-stream delivery.
Incorrect. This describes UDP.
Incorrect. This describes UDP.
Incorrect. This describes ICMP diagnostics and error reporting.
Incorrect. This describes ICMP diagnostics and error reporting.
Incorrect. Hostname resolution is DNS's role.
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
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.