Client Socket Interactions
Client Socket Interactions
This sequence diagram was generated with EventStudio System Designer (http://www.EventHelix.com/EventStudio).
TCP (Transmission Control Protocol) provides a reliable end to end service that delivers packets over the Internet. Packets are
delivered in sequence without loss or duplication.
This sequence diagram explores following: (1) The three-way handshake to establish a TCP (2) Data transfer using the byte
oriented sequence numbers (3) Release of a TCP connection.
The TCP socket creation and deletion on the server and client is also covered.
Socket initialization
Server awaits client socket connections.
Data transfer phase: Here a short data transfer takes place, thus TCP slow
start has little impact
Split data into TCP segments This TCP connection limits TCP segments to 512
bytes, thus the received data is split into 2 TCP
segments
TCP Segment The first TCP segment is sent with a sequence
seq_num = 1, number of 1. This is the sequence number for the
len = 512 first byte in the segment.
(Note that unlike other protocols, TCP maintains
sequence numbers at byte level. The sequence
number field in the TCP header corresponds to the
first byte in the segment.)
TCP Segment Bytes in the first TCP segment correspond to 1 to
seq_num = 513, 512 sequence numbers. Thus, the second TCP
len = 512 segment contains data starting with 513 sequence
number
ACK
ack_num = 1025
delete
This sequence diagram was generated with EventStudio System Designer (http://www.EventHelix.com/EventStudio).