Understand Difference Between TCB and socket:
TCB (Transmission Control Block) and socket are both fundamental concepts in networking, but they serve different purposes:
1. TCB:
● TCB is a data structure used by the TCP (Transmission Control Protocol) to manage the state of each active connection.
● It holds information such as sequence numbers, window sizes, connection state, and other parameters required for reliable communication between two hosts.
● TCB is managed by the operating system's TCP/IP stack.
2. Socket:
● A socket is an endpoint for communication between two machines over a network.
● It is identified by an IP address and a port number.
● Sockets are used by applications to establish connections and exchange data over the network.
● There are two types of sockets: stream sockets, typically used with TCP, and datagram sockets, typically used with UDP (User Datagram Protocol).
In summary, TCB is an internal data structure used by the TCP protocol to manage connections, while a socket is an abstraction provided to applications for network communication. The socket interfaces with the TCB to establish and manage connections.
#tcp #tcb #socket #networkengineer #Cisco #learning #pmnetworking
Director, Utility Systems & Infrastructure
2moIt's great to see this excellent product evolving 👏