UDP is a basal message-oriented Transport Band agreement that is accurate in IETF RFC 768.
UDP provides no guarantees to the high band agreement for bulletin supply and the UDP agreement band retains no accompaniment of UDP letters already sent. For this reason, UDP is sometimes referred to as Unreliable Datagram Protocol.3
UDP provides appliance multiplexing (via anchorage numbers) and candor analysis (via checksum) of the attack and payload.4 If manual believability is desired, it accept to be implemented in the user's application.
offset (bits) 0 – 15 16 – 31
0 Source Anchorage Amount Destination Anchorage Number
32 Length Checksum
64+
Data
The UDP attack consists of 4 fields, anniversary of which is 2 bytes (16 bits).1 The use of two of those is alternative in IPv4 (pink accomplishments in table). In IPv6 alone the antecedent anchorage is alternative (see below).
Source anchorage amount
This acreage identifies the sender's anchorage if allusive and should be affected to be the anchorage to acknowledgment to if needed. If not used, again it should be zero. If the antecedent host is the client, the anchorage amount is acceptable to be an brief anchorage number. If the antecedent host is the server, the anchorage amount is acceptable to be a acclaimed anchorage number.2
Destination anchorage amount
This acreage identifies the receiver's anchorage and is required. Similar to antecedent anchorage number, if the applicant is the destination host again the anchorage amount will acceptable be an brief anchorage amount and if the destination host is the server again the anchorage amount will acceptable be a acclaimed anchorage number.2
Length
A acreage that specifies the breadth in bytes of the absolute datagram: attack and data. The minimum breadth is 8 bytes back that's the breadth of the header. The acreage admeasurement sets a abstract absolute of 65,535 bytes (8 byte attack + 65,527 bytes of data) for a UDP datagram. The applied absolute for the abstracts breadth which is imposed by the basal IPv4 agreement is 65,507 bytes (65,535 − 8 byte UDP attack − 20 byte IP header).2
In IPv6 Jumbograms it is accessible to accept UDP packets of admeasurement greater than 65,535 bytes.5 This allows for a best breadth amount of 4,294,967,295 bytes (2^32 - 1) with 8 bytes apery the attack and 4,294,967,287 bytes for data.
Checksum
The checksum acreage is acclimated for error-checking of the attack and data. If no checksum is generated by the transmitter, the acreage uses the amount all-zeros.6 This acreage is not alternative for IPv6.7
UDP provides no guarantees to the high band agreement for bulletin supply and the UDP agreement band retains no accompaniment of UDP letters already sent. For this reason, UDP is sometimes referred to as Unreliable Datagram Protocol.3
UDP provides appliance multiplexing (via anchorage numbers) and candor analysis (via checksum) of the attack and payload.4 If manual believability is desired, it accept to be implemented in the user's application.
offset (bits) 0 – 15 16 – 31
0 Source Anchorage Amount Destination Anchorage Number
32 Length Checksum
64+
Data
The UDP attack consists of 4 fields, anniversary of which is 2 bytes (16 bits).1 The use of two of those is alternative in IPv4 (pink accomplishments in table). In IPv6 alone the antecedent anchorage is alternative (see below).
Source anchorage amount
This acreage identifies the sender's anchorage if allusive and should be affected to be the anchorage to acknowledgment to if needed. If not used, again it should be zero. If the antecedent host is the client, the anchorage amount is acceptable to be an brief anchorage number. If the antecedent host is the server, the anchorage amount is acceptable to be a acclaimed anchorage number.2
Destination anchorage amount
This acreage identifies the receiver's anchorage and is required. Similar to antecedent anchorage number, if the applicant is the destination host again the anchorage amount will acceptable be an brief anchorage amount and if the destination host is the server again the anchorage amount will acceptable be a acclaimed anchorage number.2
Length
A acreage that specifies the breadth in bytes of the absolute datagram: attack and data. The minimum breadth is 8 bytes back that's the breadth of the header. The acreage admeasurement sets a abstract absolute of 65,535 bytes (8 byte attack + 65,527 bytes of data) for a UDP datagram. The applied absolute for the abstracts breadth which is imposed by the basal IPv4 agreement is 65,507 bytes (65,535 − 8 byte UDP attack − 20 byte IP header).2
In IPv6 Jumbograms it is accessible to accept UDP packets of admeasurement greater than 65,535 bytes.5 This allows for a best breadth amount of 4,294,967,295 bytes (2^32 - 1) with 8 bytes apery the attack and 4,294,967,287 bytes for data.
Checksum
The checksum acreage is acclimated for error-checking of the attack and data. If no checksum is generated by the transmitter, the acreage uses the amount all-zeros.6 This acreage is not alternative for IPv6.7
No comments:
Post a Comment