Application Application Data Transport TH Data Asynchronous routed path Network Data Link Control Physical Interface PH Data Synchronous unreliable bit pipe End Node Data Asynchronous reliable bit pipe FH Physical Link Transport Asynchronous routed path Network Data Link Control Physical Interface Router PH Network Data Asynchronous reliable bit pipe FH Data Synchronous unreliable bit pipe Physical Link Data Link Control Physical Interface End Node 01 2 3 2 6 6 6 5 7 68 8 8 809 4 2 2 36 A B 6 6 B 36 A B 6 A BB 5 C 5 6 A 5 5 6 A TOC Transport TCP Steps C E 4 A I 6F FJ H F 6 G1 E 6 G1 E G1 E G1 E 6 6 D 6 65 6 C y H x G K 6 6 H H FH 1F L I 6F FJ H 6 A 65 B 6F 7 6 A8 6F 809 6F H 6 5 6 HH 7 2 9 7 2 09 6M server socket to create socket bind to a receiving port recvfrom Sendto bind to any port recvfrom Sendto client socket to create socket 6M server socket bind to a receiving port listen to socket accept connection send recv client socket bind to any port connect To server send recv N N 6 1 H F 02 6 02 O 1 H P B 2 6 1 L2 1 2 4 F G 1 6 1 5 5 6 6 N 5 K O Q C 6 65 1 2 6 5 F Q5 M M 1 F M Q
View Full Document