CN112073385A - Protocol format quick coding method based on reference cache multi-state construction - Google Patents
Protocol format quick coding method based on reference cache multi-state construction Download PDFInfo
- Publication number
- CN112073385A CN112073385A CN202010828351.7A CN202010828351A CN112073385A CN 112073385 A CN112073385 A CN 112073385A CN 202010828351 A CN202010828351 A CN 202010828351A CN 112073385 A CN112073385 A CN 112073385A
- Authority
- CN
- China
- Prior art keywords
- pointer
- cache
- data
- priority information
- coded data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 238000010276 construction Methods 0.000 title claims abstract description 9
- 230000005540 biological transmission Effects 0.000 claims abstract description 36
- 239000000872 buffer Substances 0.000 claims abstract description 19
- 239000012536 storage buffer Substances 0.000 claims abstract description 9
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Abstract
The invention discloses a protocol format quick coding method based on reference cache multi-state construction, which comprises a data coding strategy, a data coding strategy and a cache pointer database, wherein the cache pointer database comprises a plurality of data sets, and each data set comprises a first cache pointer, a second cache pointer and a third cache pointer; the data coding strategy comprises a data coding algorithm and a data coding algorithm, wherein the data coding algorithm is used for obtaining a data sub-packet, a breakpoint continuous transmission condition, a flow control condition and a permission control condition, obtaining a corresponding first buffer pointer, a corresponding second buffer pointer and a corresponding third buffer pointer, and copying first coded data, second coded data and third coded data pointed by the first buffer pointer, the second buffer pointer and the third buffer pointer to a storage buffer area in a control head part of the data sub-packet to obtain a new control head part.
Description
Technical Field
The invention relates to the technical field of information packet transmission, in particular to a protocol format quick coding method based on reference cache multi-state construction.
Background
A network protocol refers to a set of rules that must be followed in exchanging information between peer entities communicating with each other in a computer network.
TCP/IP is a formal network protocol of the Internet, is a group of protocols providing interconnection functions among a plurality of independent host systems, standardizes transmission, interpretation, execution and interoperation when all computers on the Internet are interconnected, solves the interconnection, intercommunication and operability of computer systems, and is an international industrial standard of a recognized network communication protocol. TCP/IP is a packet switching protocol in which information is divided into packets for transmission over the network, and the packets are reassembled into the original information upon arrival at the receiver.
When software processes protocol data, it is usually necessary to divide a file to be transmitted into several data sub-packets, and divide each data sub-packet into a control header and actual data. Taking 100MB file as an example, the payload of one data sub-packet of TCP is calculated with 1400 bytes, and 100x1024 × 1024/1400-74898 data sub-packets need to be sent. In order to realize transmission conditions such as breakpoint continuous transmission, flow control, authority control and the like, each data sub-packet adds coded data such as first coded data, second coded data, third coded data and the like corresponding to the breakpoint continuous transmission, the flow control and the authority control respectively to a storage buffer area in a corresponding control header to form a new control header. How to quickly and accurately copy the first encoded data, the second encoded data, the third encoded data, and other encoded data into the corresponding control header is a problem to be solved.
Disclosure of Invention
The invention aims to provide a method for quickly coding a protocol format based on reference cache multi-state construction, which can quickly and accurately copy coded data such as first coded data, second coded data, third coded data and the like into corresponding control headers.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for quickly coding a protocol format based on reference cache multi-state construction comprises a data coding strategy,
the data coding strategy is configured with a cache pointer database, the cache pointer database comprises a plurality of data sets, the data sets comprise a first cache pointer, a second cache pointer and a third cache pointer, the first cache pointer obtains and points to first coded data according to a breakpoint continuous transmission condition, the second cache pointer obtains and points to second coded data according to a flow control condition, and the third cache pointer obtains and points to third coded data according to an authority control condition;
the data encoding strategy includes a data encoding algorithm,
and the data coding algorithm is used for obtaining a data sub-packet, a breakpoint continuous transmission condition, a flow control condition and an authority control condition, searching in a cache pointer database by taking the breakpoint continuous transmission condition, the flow control condition and the authority control condition as indexes to obtain a corresponding first cache pointer, a second cache pointer and a third cache pointer, and copying first coded data, second coded data and third coded data pointed by the first cache pointer, the second cache pointer and the third cache pointer to a storage cache region in a control head part of the data sub-packet to obtain a new control head part.
Preferably, the cache pointer database is built according to a database building algorithm,
the method comprises the steps that a database establishment algorithm is used for obtaining breakpoint continuous transmission conditions, flow control conditions and authority control conditions under different transmission environments, arranging and combining the breakpoint continuous transmission conditions, flow control conditions and authority control conditions to obtain a plurality of data sets in a cache pointer database, and editing according to the breakpoint continuous transmission conditions to obtain corresponding first cache pointers and first coded data pointed by the first cache pointers; editing according to the flow control conditions to obtain a corresponding second cache pointer and second coded data pointed by the second cache pointer; and editing according to the authority control condition to obtain a corresponding third cache pointer and third coded data corresponding to the third cache pointer.
Preferably, in the database establishing algorithm, the first-level priority information, the second-level priority information and the third-level priority information are obtained by editing the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition in the data set, and the first-level priority information, the second-level priority information and the third-level priority information are respectively matched with the first coded data, the second coded data and the third coded data according to the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition in the data set;
in the data coding algorithm, the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition is further obtained, the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition is used as an index to search in a buffer pointer database, and corresponding first-level priority information, second-level priority information and third-level priority information are obtained, the first-level priority information, the second-level priority information and the third-level priority information are respectively matched with the first coded data, the second coded data and the third coded data, and the matched first coded data, first-level priority information, second coded data, third-level priority information and third coded data are copied to a storage buffer area in a control header of a data sub-packet to obtain a new control header.
Preferably, the first cache pointer points to a first storage cache region corresponding to the first encoded data, the first cache pointer also points to a second pointer storage region, and the second cache pointer storage region stores a second cache pointer; the second cache pointer points to a second storage cache region corresponding to the second coded data, the second cache pointer also points to a third pointer cache region, and a third cache pointer is stored in the third cache pointer storage region; and the third buffer pointer points to a third storage buffer area corresponding to the third coded data.
Compared with the prior art, the invention has the beneficial effects that: when the file is not required to be sent, a buffer pointer database is established, and when the file is required to be sent, the coded data such as the first coded data, the second coded data, the third coded data and the like can be copied to the corresponding control header quickly and accurately.
Drawings
FIG. 1 is a schematic flow chart of a database building algorithm;
fig. 2 is a flow chart of a data encoding algorithm.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. In which like parts are designated by like reference numerals. It should be noted that as used in the following description, the terms "front," "back," "left," "right," "upper," and "lower" refer to directions in the drawings, and the terms "bottom" and "top," "inner," and "outer" refer to directions toward and away from, respectively, the geometric center of a particular component.
Example 1:
as shown in fig. 2, a method for quickly encoding a protocol format based on a reference cache polymorphism construction includes a data encoding strategy,
the data coding strategy is configured with a cache pointer database, the cache pointer database comprises a plurality of data sets, the data sets comprise a first cache pointer, a second cache pointer and a third cache pointer, the first cache pointer obtains and points to first coded data according to a breakpoint continuous transmission condition, the second cache pointer obtains and points to second coded data according to a flow control condition, and the third cache pointer obtains and points to third coded data according to an authority control condition;
the data encoding strategy includes a data encoding algorithm,
and the data coding algorithm is used for obtaining a data sub-packet, a breakpoint continuous transmission condition, a flow control condition and an authority control condition, searching in a cache pointer database by taking the breakpoint continuous transmission condition, the flow control condition and the authority control condition as indexes to obtain a corresponding first cache pointer, a second cache pointer and a third cache pointer, and copying first coded data, second coded data and third coded data pointed by the first cache pointer, the second cache pointer and the third cache pointer to a storage cache region in a control head part of the data sub-packet to obtain a new control head part.
A database of cache pointers is established according to a database establishment algorithm,
the method comprises the steps that a database establishment algorithm is used for obtaining breakpoint continuous transmission conditions, flow control conditions and authority control conditions under different transmission environments, arranging and combining the breakpoint continuous transmission conditions, flow control conditions and authority control conditions to obtain a plurality of data sets in a cache pointer database, and editing according to the breakpoint continuous transmission conditions to obtain corresponding first cache pointers and first coded data pointed by the first cache pointers; editing according to the flow control conditions to obtain a corresponding second cache pointer and second coded data pointed by the second cache pointer; and editing according to the authority control condition to obtain a corresponding third cache pointer and third coded data corresponding to the third cache pointer.
As shown in fig. 1, in the database establishment algorithm, the first-level priority information, the second-level priority information, and the third-level priority information are obtained by editing the arrangement sequence of the breakpoint resume condition, the flow control condition, and the permission control condition in the data set, and the first-level priority information, the second-level priority information, and the third-level priority information are respectively matched with the first encoded data, the second encoded data, and the third encoded data according to the arrangement sequence of the breakpoint resume condition, the flow control condition, and the permission control condition in the data set;
in the data coding algorithm, the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition is further obtained, the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition is used as an index to search in a buffer pointer database, and corresponding first-level priority information, second-level priority information and third-level priority information are obtained, the first-level priority information, the second-level priority information and the third-level priority information are respectively matched with the first coded data, the second coded data and the third coded data, and the matched first coded data, first-level priority information, second coded data, third-level priority information and third coded data are copied to a storage buffer area in a control header of a data sub-packet to obtain a new control header.
The first cache pointer points to a first storage cache region corresponding to the first coded data, the first cache pointer also points to a second pointer storage region, and a second cache pointer is stored in the second cache pointer storage region; the second cache pointer points to a second storage cache region corresponding to the second coded data, the second cache pointer also points to a third pointer cache region, and a third cache pointer is stored in the third cache pointer storage region; and the third buffer pointer points to a third storage buffer area corresponding to the third coded data.
While one embodiment of the present invention has been described in detail, the description is only a preferred embodiment of the present invention and should not be taken as limiting the scope of the invention. All equivalent changes and modifications made within the scope of the present invention shall fall within the scope of the present invention.
Claims (4)
1. A method for quickly coding a protocol format based on reference cache multi-state construction is characterized by comprising a data coding strategy,
the data coding strategy is configured with a cache pointer database, the cache pointer database comprises a plurality of data sets, the data sets comprise a first cache pointer, a second cache pointer and a third cache pointer, the first cache pointer obtains and points to first coded data according to a breakpoint continuous transmission condition, the second cache pointer obtains and points to second coded data according to a flow control condition, and the third cache pointer obtains and points to third coded data according to an authority control condition;
the data encoding strategy includes a data encoding algorithm,
the data coding algorithm obtains a data sub-packet, a breakpoint continuous transmission condition, a flow control condition and an authority control condition, searches in the buffer pointer database by taking the breakpoint continuous transmission condition, the flow control condition and the authority control condition as indexes to obtain a corresponding first buffer pointer, a corresponding second buffer pointer and a corresponding third buffer pointer, and copies the first coded data, the second coded data and the third coded data pointed by the first buffer pointer, the second buffer pointer and the third buffer pointer to a storage buffer area in a control header of the data sub-packet to obtain a new control header.
2. The method for rapidly encoding the protocol format built based on the reference cache polymorphism according to claim 1, wherein the cache pointer database is built according to a database building algorithm,
the database establishment algorithm is used for obtaining breakpoint continuous transmission conditions, flow control conditions and authority control conditions under different transmission environments, arranging and combining the breakpoint continuous transmission conditions, flow control conditions and authority control conditions to obtain a plurality of data sets in the cache pointer database, and editing according to the breakpoint continuous transmission conditions to obtain the corresponding first cache pointer and the first coded data pointed by the first cache pointer; editing according to the flow control condition to obtain the corresponding second cache pointer and the second coded data pointed by the second cache pointer; and editing according to the authority control condition to obtain the corresponding third cache pointer and the third coded data corresponding to the third cache pointer.
3. The method according to claim 2, wherein in the database establishment algorithm, the first-level priority information, the second-level priority information, and the third-level priority information are obtained by editing according to the arrangement order of the breakpoint retransmission condition, the flow control condition, and the permission control condition in the data set, and the first-level priority information, the second-level priority information, and the third-level priority information are respectively matched with the first encoded data, the second encoded data, and the third encoded data according to the arrangement order of the breakpoint retransmission condition, the flow control condition, and the permission control condition in the data set;
in the data coding algorithm, the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition is also obtained, searching in the cache pointer database by using the arrangement sequence of the breakpoint continuous transmission condition, the flow control condition and the authority control condition as an index to obtain the corresponding first-level priority information, the second-level priority information and the third-level priority information, the primary priority information, the secondary priority information, and the tertiary priority information are respectively matched with the first encoded data, the second encoded data, and the third encoded data, and copying the matched first coded data and the first-level priority information, the second-level priority information and the second coded data, and the third-level priority information and the third coded data to a storage buffer area in a control header of the data sub-packet to obtain a new control header.
4. The method for protocol format fast coding based on reference cache multi-state construction is characterized in that the first cache pointer points to a first storage cache region corresponding to first coded data, the first cache pointer also points to a second pointer storage region, and the second cache pointer storage region stores a second cache pointer; the second cache pointer points to a second storage cache region corresponding to second encoded data, the second cache pointer also points to a third pointer cache region, and a third cache pointer is stored in the third cache pointer storage region; and the third buffer pointer points to a third storage buffer area corresponding to third coded data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010828351.7A CN112073385A (en) | 2020-08-17 | 2020-08-17 | Protocol format quick coding method based on reference cache multi-state construction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010828351.7A CN112073385A (en) | 2020-08-17 | 2020-08-17 | Protocol format quick coding method based on reference cache multi-state construction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112073385A true CN112073385A (en) | 2020-12-11 |
Family
ID=73661275
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010828351.7A Pending CN112073385A (en) | 2020-08-17 | 2020-08-17 | Protocol format quick coding method based on reference cache multi-state construction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112073385A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187564A (en) * | 2015-10-14 | 2015-12-23 | 中科宇图天下科技有限公司 | Method for breakpoint resuming of mobile phone side file |
US20160044143A1 (en) * | 2014-08-11 | 2016-02-11 | Oracle International Corporation | Data structure and associated management routines for tcp control block (tcb) table in network stacks |
US9407726B1 (en) * | 2013-03-15 | 2016-08-02 | Juniper Networks, Inc. | Caching objects identified by dynamic resource identifiers |
CN107798122A (en) * | 2017-11-10 | 2018-03-13 | 中国航空工业集团公司西安飞机设计研究所 | A kind of unstructured data analytic method |
CN109299087A (en) * | 2018-08-14 | 2019-02-01 | 中国平安财产保险股份有限公司 | Data cache method, device, computer equipment and storage medium |
CN109587232A (en) * | 2018-11-28 | 2019-04-05 | 陕西天诚软件有限公司 | Document breakpoint transmission method based on iOS network |
CN110336871A (en) * | 2019-07-01 | 2019-10-15 | 江苏满运软件科技有限公司 | A kind of document handling method, device, storage medium and electronic equipment |
-
2020
- 2020-08-17 CN CN202010828351.7A patent/CN112073385A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9407726B1 (en) * | 2013-03-15 | 2016-08-02 | Juniper Networks, Inc. | Caching objects identified by dynamic resource identifiers |
US20160044143A1 (en) * | 2014-08-11 | 2016-02-11 | Oracle International Corporation | Data structure and associated management routines for tcp control block (tcb) table in network stacks |
CN105187564A (en) * | 2015-10-14 | 2015-12-23 | 中科宇图天下科技有限公司 | Method for breakpoint resuming of mobile phone side file |
CN107798122A (en) * | 2017-11-10 | 2018-03-13 | 中国航空工业集团公司西安飞机设计研究所 | A kind of unstructured data analytic method |
CN109299087A (en) * | 2018-08-14 | 2019-02-01 | 中国平安财产保险股份有限公司 | Data cache method, device, computer equipment and storage medium |
CN109587232A (en) * | 2018-11-28 | 2019-04-05 | 陕西天诚软件有限公司 | Document breakpoint transmission method based on iOS network |
CN110336871A (en) * | 2019-07-01 | 2019-10-15 | 江苏满运软件科技有限公司 | A kind of document handling method, device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7636767B2 (en) | Method and apparatus for reducing network traffic over low bandwidth links | |
US5187708A (en) | Communication device for layered protocols | |
EP2835938B1 (en) | Message publishing and subscribing method and apparatus | |
AU2001238189B8 (en) | System and method for representing and maintaining redundant data sets utilizing DNA transmission and transcription techniques | |
CN101009656A (en) | Routing system and method for managing rule entry thereof | |
US20090245114A1 (en) | Methods for collecting and analyzing network performance data | |
US7120152B2 (en) | Method of routing a packet in a routing device | |
WO2021051541A1 (en) | Method and apparatus for achieving simultaneous gray release based on microservice framework, and computer device | |
US20150006623A1 (en) | Method and System for Transmitting Network File | |
US20070255823A1 (en) | Method for low-overhead message tracking in a distributed messaging system | |
US8532331B2 (en) | Method for monitoring a picture or multimedia video pictures in a communication system | |
CN109005170A (en) | A kind of conversion method of RapidIO agreement to FC agreement | |
CN1703890A (en) | Method for protocol recognition and analysis in data networks | |
Zhang et al. | Partialsync: Efficient synchronization of a partial namespace in ndn | |
CN112073385A (en) | Protocol format quick coding method based on reference cache multi-state construction | |
EP2208317B1 (en) | Compressing null columns in rows of the tabular data stream protocol | |
WO2003001766A2 (en) | Efficient data transmissions based on a policy | |
CN108040041A (en) | A kind of image difference transport protocol design system and method based on business-driven | |
CN109743362B (en) | Data storage method applied to full-format data structure | |
KR101573150B1 (en) | Method for managing consistency between flow tables in software defined network environment | |
EP1388972A1 (en) | Multi-layer multicast user management method | |
US7089234B2 (en) | Communicating state information in a network employing extended queries and extended responses | |
CN115174496B (en) | Processing terminal and switch for intra-network combined transmission | |
CN111611348A (en) | ICN network information name searching method based on learning bloom filter | |
EP4064633A1 (en) | Data compression method and apparatus, network device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201211 |