Transport Service
Transport Service
● M
arshalling/Unmarshalling: Packing and unpacking data to be sent
over a network.
● M
arshalling: Converting parameters into a byte stream to send over
a network.
● U
nmarshalling: Converting received byte stream back into usable
data.
TCP Protocol
CP segment header page no, 10.14
T
Connection establishment.connection page no. 10.20
odelling TCP Connection Management
M
TCP connection managementcan be modeled using aFinite State
Machine (FSM)to describe how a TCP connection transitions through
differentstatesduringestablishment,data transfer, andtermination.
Each participant in the communication (client and server) goes through
specific states triggered by events like sending/receivingSYN,ACK, orFIN
flags.
Each connection starts in the CLOSED state. It leaves that state when it
does either a passive open (LISTEN) or an active open (CONNECT). If the
other side does the opposite one, a connection is established and the state
becomes ESTABLISHED. Connection release can be initiated by either
side. When it is complete, the state returns to CLOSED.