Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

UDP (User Datagram Protocol) checksum calculating method

A calculation method and constant technology, applied in the field of Ethernet user data packet protocol, can solve problems such as low efficiency, and achieve the effect of simplifying the packet group process, avoiding low efficiency, improving transmission efficiency and real-time performance

Inactive Publication Date: 2012-08-15
苏州攀星光电科技有限公司
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Under the existing protocol, all data that needs to be sent needs to be processed twice, and the efficiency is relatively low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • UDP (User Datagram Protocol) checksum calculating method
  • UDP (User Datagram Protocol) checksum calculating method
  • UDP (User Datagram Protocol) checksum calculating method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

[0032] The inventive method is deduced, calculated and summarized according to the existing UDP checksum calculation method, and the inventive method principle and derivation process are as follows:

[0033] The traditional UDP packet grouping process is as follows: figure 1 As shown, when using UDP packets to transmit data, you must first read the data to be sent, calculate the checksum, and backfill it to the UDP header; then read the data to be sent again, and form a complete UDP packet with other information to send. The calculation method of UDP checksum is: add the pseudo header, UDP header (UDP checksum is set to 0) and data segments in 16bit groups, add the carry to the ones digit of this operation, and invert the final result by bit. like image 3 As shown, the formula is (CheckSum in the formula represents UDP checksum):

[0034]...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a UDP (User Datagram Protocol) checksum calculating method, which improves the prior art to improve transmission efficiency of a UDP packet. The method provided by the invention comprises the main steps of: setting a UDP checksum as a constant; then calculating according to the traditional UDP checksum calculating method; and finally, adding an obtained result on the tail of a UDP data section. With the adoption of the calculating method, a packing flow of the UDP packet is greatly simplified, so that all data can be packed and sent immediately by only reading once. Therefore, the transmission efficiency and the instantaneity of the UDP packet can be greatly improved.

Description

technical field [0001] The invention relates to the communication field of local area network, especially the user data packet protocol of Ethernet. Background technique [0002] Ethernet is the most common communication protocol standard used by existing LANs today. There are multiple protocols available at the transport layer, among which the UDP protocol is widely used on the LAN because of its simplified structure and low transmission overhead. The format of the Ethernet packet is (the following data lengths are from left to right: 7 bytes, 1 byte, 6 bytes, 6 bytes, 2 bytes, 46~1500 bytes, 4 bytes): [0003] Preamble guide code SFD destination MAC address source MAC address Ethernet type data segment CRC [0004] UDP packet (User Data Packet Protocol) is to fill the data segment in the Ethernet packet with an IP header and UDP segment (including UDP header and data segment). The format of the IP header is as follows (the following data lengths ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06
Inventor 许琨杨峰
Owner 苏州攀星光电科技有限公司
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More