Network protocol format based on visible characters, and encoding and decoding method and system thereof

An encoding and decoding method and network protocol technology, applied in transmission systems, electrical components, etc., can solve problems such as unfavorable network data transmission, large occupation size, unfavorable encoding and decoding, etc., to improve decoding efficiency, small occupation size, and facilitate transmission. Effect

Active Publication Date: 2016-10-12
WUHAN DOUYU NETWORK TECH CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the actual use process, it is found that because JSON itself uses more characters for format control, such as:, {, }, [,], "," and other characters, the encoding and decoding process takes too much time It is not conducive to the realization of encoding and decoding, and the occupied size after encoding is large, which is not conducive to the transmission of network data

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
  • Network protocol format based on visible characters, and encoding and decoding method and system thereof
  • Network protocol format based on visible characters, and encoding and decoding method and system thereof
  • Network protocol format based on visible characters, and encoding and decoding method and system thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0039] The embodiment of the present invention provides a network protocol format based on visible characters. The network protocol format includes several data items, and adjacent data items are separated by data item separators; each data item is represented by a key-value pair, and the key The value pair is divided into a key-value pair and a key-value pair without a key; a key-value pair is composed of a key (key) and a value (value), the key represents the name of the data, and the value represents the specific value of the data, and the key The value is separated by the key-value delimiter; the key-value pair without a key is only composed of the value (value). A keyed data item can be obtained by the key, and an unkeyed data item can only be obtained by its position in the protocol. Usually, either all data items have keys, th...

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 network protocol format based on visible characters, and an encoding and decoding method and system thereof, and relates to the technical field of encoding and decoding of the network protocol format. The network protocol format comprises a plurality of data items; adjacent data items are segmented by data item separators; each data item is expressed by a key value; the key values are divided into key values with keys and key values without keys; the key values with keys are composed of keys and values; the keys express names of data; the values express specific values of the data; the keys and values are segmented by key value separators; and the key values without keys are only composed of values. According to the network protocol format, the method and the system, the encoding and decoding efficiency is high, thereby facilitating encoding and decoding; and the occupation size of the encoded data is relatively small, thereby facilitating transmission of the network data.

Description

technical field [0001] The invention relates to the technical field of encoding and decoding of network protocol formats, in particular to a network protocol format based on visible characters and its encoding and decoding method and system. Background technique [0002] In the field of communication, in order to achieve the purpose of transmitting data on the network, it is usually necessary to use network protocols. Currently, the most widely used network protocol format in the design of network protocols is JSON (JavaScript Object Notation). The JSON format is a lightweight data exchange format based on the JavaScript Programming Language (JavaScript programming language), a subset of the Standard ECMA-262 3rd Edition-December1999 standard, which uses a completely language-independent text format, but also uses It adopts a habit similar to the C language family (including C, C++, C#, Java, JavaScript, Perl, Python, etc.). Because the JSON format is a format based on vis...

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
CPCH04L69/03
Inventor 杨俊
Owner WUHAN DOUYU NETWORK TECH CO LTD
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
Try Eureka
PatSnap group products