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

A communication text data transmission method based on a TCP protocol

A text data and transmission method technology, applied in the Internet field, can solve the problems of multiple system resources, occupation, and reduce system efficiency, and achieve the effects of avoiding system resources, simple implementation, and strong scalability

Active Publication Date: 2019-05-28
广州禹龙信息科技有限公司
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Compared with XML, JSON (JavaScript Object Notation) data format is lighter in data format and has a clear hierarchical structure of data. However, the parsing of JSON data must follow the syntax requirements of JSON format. In the case of high data transmission performance requirements, JSON The serial number and reverse serial number operations of the data need to parse the JSON syntax format, which occupies more system resources and reduces the efficiency of the system

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 communication text data transmission method based on a TCP protocol
  • A communication text data transmission method based on a TCP protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] see figure 1 According to the present invention, the TCP protocol is used to transmit data between the client and the server, the client uses a certain data format to encode the data, and then sends the encoded data to the server, and the server decodes the data after receiving the data.

[0032] see figure 2 , the present invention transmits the text data between the client and the server by customizing the message format, and then transmits the text data after converting the text data into the format of the data unit. The message includes data header, data body length and data body 3 parts. The data header is the positioning mark, and the length of the data body records the number of bytes occupied by the data body. The data body is composed of several data units, and each data unit includes three types of information: field code, field length and field content. All data in the message is in binary format, in which the data header, data body length, and "field code...

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 communication text data transmission method based on a TCP protocol. text data is transmitted at the client and the server through Message format customizing; the text data is converted into a format of a data unit and then transmitting the text data; a message comprises a data header, a data body length and a data body; the Data head is taken as positioning mark, the data body length records the byte number of the space occupied by the data body; The data body is composed of a plurality of data units. each data unit comprises a field code, a field length and a fieldcontent, all data in the message is in a binary format, the field codes of the data head, the data length and the data unit are binary numbers with fixed lengths, and the analysis of the text data isrealized by establishing a field name and a field code.

Description

technical field [0001] The invention relates to Internet data transmission, in particular to a communication text data transmission method based on TCP protocol, which belongs to the Internet field. Background technique [0002] The TCP protocol is a connection-oriented, reliable, and byte-stream-based transport layer communication protocol for end-to-end reliable data transmission, defined by IETF's RFC793, including sorting, repeated packet discarding, and packet loss retransmission , flow control and congestion control functions, the TCP protocol is an important foundation of the Internet. [0003] Microservice is an organizational method of computer systems. A large complex software application consists of one or more microservice units. In the microservice architecture, each microservice unit has independent process space and resources, and each microservice has its own communication mechanism, which can be deployed on a single or multiple servers. The microservice ar...

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 广州禹龙信息科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products