TCP socket

What is TCP/IP?

What is TCP, UDP, and IP?

What is TCP socket?


What is TCP/IP?

TCP stands for Transmission Control Protocol and IP stands for Internet Protocol. TCP is like "truck" which brings all data.

What is TCP, UDP, and IP?

TCP garuntees packets sending data without missing any single piece. To make sure connection is established, TCP does three handshakes process between the client and the server such as SYN(Synchronize), SYN-ACK(Synchronize-Acknowledge), and (ACK) Acknowledge. At first, the client sends SYN to the server and the server responses SYN-ACK. After the client gets SYN-ACK, it sends ACK to the server.

On the other hand, UDP does not require reliable delivery and extra overhead. but it has fewer fields and is faster than TCP.

IP does routing base on IP address. IP packet is Header, Data (payload), sender IP address, receiver IP address.

IP address(IPv4) is 32bit divided into 4 parts. It consists of network and host. IPv6 is created because the number of devices are increasing and IPv4 is running out.

Subnet represents Network

What is TCP socket?

TCP socket is an endpoint and consists of three information. TCP connection is defined by two socket.

  1. An IP address

  2. A transport protocol

  3. A port number
IP Address 172.10.1.2
Transport Protocol TCP
Port Number 80

https://stackoverflow.com/questions/152457/what-is-the-difference-between-a-port-and-a-socket

results matching ""

    No results matching ""