TCP: connection-oriented transmission 三種溝通方式

Standard
TCP is connection-oriented. A connection-oriented transport protocol establishes a connection between the source and destination. All of the segments belonging to a message are then sent over this virtual path. A connection-oriented transmission requires three phases: connection establishment, data transfer, and connection termination.

A is client, B is server.

1.Connection Establishment (SYN)(a.k.a. three-way handshake)


2.Data Transfer (using telnet demo)


3-1.Connection Termination (FIN)
In connection Termination : it takes four segments to terminate a connection since a FIN and an ACK are required in each direction.

3-2.Connection Termination (RST)


0 comments:

張貼留言

留言