zoukankan      html  css  js  c++  java
  • UDP protocol

    Characteristics of the UDP protocol

    The UDP protocol (User Datagram Protocol) is a connectionless orientated protocol of the transport layer of the TCP/IP model. This protocol is very simple given that it does not provide error detection (it is not connection orientated...).

    The UDP segment header is therefore very simple:

     

    Source port
    (16 bits):
    Destination port
    (16 bits):
    Total length 
    (16 bits)
    Header checksum 
    (16 bits)
    Data 
    (variable length)

    Meanings of the different fields

     

      • Source port: this is the port number relating to the originator application of the UDP segment. This field represents a response address for the recipient. So, this field is optional, which means that if the source port is not specified the 16 bits of this field will be set to zero, in which case the recipient will not be able to respond (this is not strictly necessary, in particular for one way messages).
      • Destination port: This field contains the port corresponding to the application on the recipient machine to which it is sent.
      • Length: This field specifies the total length of the segment, header included, however, the header has a length of 4 x 16 bits (which is 8x8 bits) so the field length is necessarily greater than or equal to 8 bytes.
      • Checksum: This is a checksum conducted in such a way as to be able to check the integrity of the segment.
  • 相关阅读:
    linux命令(3)top
    linux命令(2)vmstat
    学习okhttp wiki--Connections.
    你可以更幸福(转载)
    Android中多表的SQLite数据库(译)
    怎样写有效的设计文档(译)
    Material Design说明
    Android原生Calendar代码阅读(一)
    Android Studio tips and tricks 翻译学习
    Material Calendar View 学习记录(二)
  • 原文地址:https://www.cnblogs.com/Daniel-G/p/3216378.html
Copyright © 2011-2022 走看看