当前位置:网站首页>Yyds dry goods inventory TCP & UDP

Yyds dry goods inventory TCP & UDP

2022-07-03 20:48:00 You0tech

Connection oriented
  • TCP: Reliable transmission 、 Connection oriented ---> Slow speed , High accuracy
  • UDP: Unreliable transmission 、 Non connection oriented ---> Fast , Poor accuracy
  • If the four layers of an application layer protocol are used TCP port , Then before the formal data message transmission , You need to establish a connection first . Data can only be transferred after the connection is established .
  • Three handshakes : Connection oriented high-level protocols need to establish a connection before formally transmitting data , The process of establishing a connection requires sending three messages back and forth , We call the process of establishing a connection three handshakes
Three handshakes
  • The client sends syn package (syn=j) To the server , Request to establish a connection
      
      
At this stage ,TCP The message contains : Source port 、 Destination port 、SYN identification
  • 1.

#yyds Dry inventory #TCP&UDP_TCP

  • Server received SYN package , Must confirm customer's SYN(ack=j+1), At the same time, I also send a SYN package (syn=k), namely SYN+ACK package

#yyds Dry inventory #TCP&UDP_TCP_02

  • Client receives server's SYN+ACK package , Send confirmation package to server ACK(ack=k+1)

#yyds Dry inventory #TCP&UDP_TCP_03

原网站

版权声明
本文为[You0tech]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202142354586806.html