Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

A method and device for transmitting data

A data transmission and encoding technology, applied in the field of data transmission, can solve the problems of high CPU resource utilization, high network bandwidth occupation, and inability to transmit data, etc., and achieve the effect of reducing network bandwidth occupation and CPU resource utilization

Active Publication Date: 2019-10-22
CHINA MOBILE GROUP JIANGSU +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

These shortcomings lead to problems such as low parsing efficiency, high network bandwidth occupation, and high CPU resource usage during message communication.
[0004] In addition, due to the use of XML and JSON to transmit data, the communication protocol versions of the two parties must be consistent, otherwise the data cannot be transmitted normally
[0005] To sum up, in the prior art, data cannot be transmitted when the versions of the communication protocols of the two parties are inconsistent, and when data is transmitted when the versions of the communication protocols of the two parties are consistent, the network bandwidth is high and the CPU resource usage is high.

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
  • A method and device for transmitting data
  • A method and device for transmitting data
  • A method and device for transmitting data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 3

[0228] The technical effect of the device for providing data transmission in Embodiment 3 is the same as that of the corresponding method embodiment in Embodiment 1, and details are not repeated here.

[0229] Figure 7 It is a schematic structural diagram of a device for transmitting data in the fourth embodiment of the present invention. Embodiment 4 is a device corresponding to Embodiment 2, specifically including:

[0230] A protocol auto-negotiation manager 701, configured to be backward compatible with the communication protocol version through handshaking;

[0231] The command encoder / decoder 702 is used to receive the encoding result, and decode the encoding result to obtain the message command according to the order of the field type according to the communication protocol version.

[0232] Specifically, the protocol auto-negotiation manager 701 is also configured to learn that the communication protocol version is different through the handshake, and adop...

Embodiment 4

[0238] The technical effect of the device for transmitting data provided in Embodiment 4 is the same as that of the corresponding method embodiment in Embodiment 2, and details are not repeated here.

[0239] see Figure 8 It is a schematic diagram of the data exchange between the sending end and the receiving end, which specifically includes the following steps:

[0240] When performing data interaction, the automatic negotiation of the communication protocol between the two parties is first carried out:

[0241] Step 1: When the message sending end initiates a connection request message to the message receiving end, the protocol auto-negotiation manager 601 sends the protocol negotiation command to the command encoder / decoder 602, and the command encoder / decoder 602 encodes the protocol negotiation command into bytes array and write to the network.

[0242] Step 2: When the message receiving end reads the byte array from the network, the command encoder / decoder ...

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 provides a data transmission method. The method comprises the following steps: carrying out backward compatibility on a communication protocol version through handshaking; coding a message command according to the communication protocol version and a sequence of a field type, so as to obtain a coding result; and sending the coding result. The embodiment of the invention further discloses a data transmission device; data transmission can be realized under the condition that the communication protocol versions of both parties are inconsistent; and meanwhile, the occupied network bandwidth and the CPU (Central Processing Unit) resource utilization rate are effectively reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for transmitting data. Background technique [0002] Existing technical solutions for data transmission mainly use general data exchange formats such as Extensible Markup Language (XML) and Object Notation (JSON) as communication protocols to complete cross-platform message communication and data exchange. Furthermore, some auxiliary functions will be provided, such as the function of generating communication protocol interfaces based on metadata description files. [0003] Text protocols such as XML and JSON have the disadvantages of redundant data and complex analysis. The reason is that when they transmit data, in addition to valid data, they also need to transmit a series of redundant data such as XML or JSON tags. When parsing, it is also necessary to perform tag matching before extracting valid data. These shortcomings lead to problems such as low parsing effi...

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 Patents(China)
IPC IPC(8): H04L29/06
Inventor 王鑫邵森
Owner CHINA MOBILE GROUP JIANGSU
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products