CN100438500C - Transmission method for fixed-length data packet - Google Patents
Transmission method for fixed-length data packet Download PDFInfo
- Publication number
- CN100438500C CN100438500C CNB2005100358417A CN200510035841A CN100438500C CN 100438500 C CN100438500 C CN 100438500C CN B2005100358417 A CNB2005100358417 A CN B2005100358417A CN 200510035841 A CN200510035841 A CN 200510035841A CN 100438500 C CN100438500 C CN 100438500C
- Authority
- CN
- China
- Prior art keywords
- fixed
- length data
- bag
- data bag
- data packet
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a method for transmitting a data packet with fixed length. The method comprises: A, correctness judgment is carried out in the process of inputting data of a data packet with fixed length; corresponding marking bits are set according to judgment results, and the data packet with fixed length and marking bits is written in a first-level cache; B, the data packet with fixed length in the first-level cache is read out, and judgement is formed according to corresponding marking bits; the data packet with fixed length is then written in a second-level cache or is directly discarded. A data packet with fixed length and marking bits thereof are processed by the same cache by transmiting the data packet with fixed length by the method provided by the present invention. The present invention effectively avoids transmission errors of data packets due to the uncorrespondence of data packets and marking bits. Meanwhile, the present invention adopts the same cache for processing, and simplifies the process of discarding erroneous data packets by a data packet with fixed length and the internal logic for processing data.
Description
Technical field
The present invention relates to a kind of data transmission method, be specifically related to a kind of transmission method of fixed-length data bag.
Background technology
In data communication field, between router and the router, and the transmission of data in the plate between this body of router, it is unavoidable to make a mistake in transmission course, whether each device within each equipment, the equipment between the veneer, in the plate all can detect in the data transmission procedure according to the data verification method in the transmission course makes mistakes, if detecting this packet makes mistakes, usually need abandon known mistake bag, with this wrong bag termination, in order to avoid continue to transmit back one-level device or equipment are impacted.So abandoning erroneous packets in the transmission course just becomes application-specific integrated circuit ASIC (Application Special Integrated Circuit)/on-site programmable gate array FPGA (Field Programmable Gate Array) and must carry out an important component part of data processing.
In the prior art, the transmission method of packet mainly may further comprise the steps: after 1) receiving packet, these data are carried out buffer memory; 2) in the process of buffer memory, the correctness of packet is judged, judge whether this bag is wrong; 3) be surrounded by mistake if find this, produce bag error flag position, if bag is correct, produce bag accurate indication position, will wrap error flag position and accurate indication position simultaneously and be cached in the flag bit buffer queue, each flag bit is a bag in the corresponding data buffer memory all; 4) in the time of read data packet, remove to read the flag bit of this bag in the flag bit buffer memory of arriving, if be correct, then this bag is sent out, if for wrong, then reading this bag from buffer memory, this bag abandons.Fig. 1 shows the processing block diagram of data pack transmission method in the prior art.
There is following defective in the transmission method of packet in the prior art: that is exactly that data pack buffer and bag correct and wrong sign buffer memory must be corresponding one by one, if correspondence does not once take place, mistake has taken place, so all bags are not corresponding with its flag bit, after mistake has taken place, can recover never, and self can not detect.This situation exists too for the fixed-length data bag.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of transmission method of fixed-length data bag, is used to solve fixed-length data bag transmission course flag bit and the not corresponding data transmission fault problem that causes of packet.
For achieving the above object, the invention provides following technical scheme:
A kind of transmission method of fixed-length data bag wherein, is expanded one with the data bit width of described fixed-length data bag, is used to deposit the flag bit of fixed-length data bag, and described method is further comprising the steps of:
A, in the data input process of fixed-length data bag, carry out correctness and judge,, corresponding marker bit is set, and the fixed-length data bag that will be provided with flag bit writes level cache according to judged result;
B, the fixed-length data bag in the level cache is read, and judged, then correct fixed-length data bag is write L2 cache or the fixed-length data bag of mistake is directly abandoned according to corresponding marker bit;
C, the fixed-length data bag in the L2 cache is begun to read in order from packet header.
Described flag bit is arranged on the bag tail of fixed-length data bag.
Described flag bit comprises accurate indication position and error flag position.
Described step B further comprises:
B1, with the fixed-length data bag in the level cache from the bag tail to the packet header reading of data;
B2, judge, as be then execution in step B3 of accurate indication position according to corresponding marker bit, otherwise, directly abandon;
B3, with the fixed-length data bag from the bag tail to packet header write L2 cache.
Utilize method transmission fixed-length data bag provided by the invention, fixed-length data bag and its flag bit are adopted same caching process, avoided the not corresponding data packet transmission mistake of bringing of packet and flag bit effectively, simultaneously, adopt same caching process to simplify the internal logic that the fixed-length data bag abandons the flow process and the data processing of misdata bag.
Description of drawings
Fig. 1 is the processing block diagram of data pack transmission method in the prior art;
Fig. 2 is fixed-length data bag of the present invention and its flag bit storage mode schematic diagram;
Fig. 3 is fixed-length data bag transfer process figure of the present invention.
Embodiment
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Because the fixed-length data bag is packet header and the bag tail that can accurately locate a packet, so metadata cache can be divided into different zones according to the size of packet.
Do not make a mistake when judging in order to solve the flag bit packet corresponding with it, cause irrecoverable error, one of the data bit width expansion of fixed-length data bag can be used for preserving flag bit, store together with the fixed-length data bag, concrete storage mode as shown in Figure 2.
As shown in Figure 2: one of data-bus width expansion is used for depositing flag bit, each fixed-length data bag and its flag bit all are one to one like this, even there is the processing of a fixed-length data bag to make a mistake, also can not influence the processing of next fixed-length data bag.
For data packet transmission, have only and to judge after the bag tail of a packet is received whether this packet is correct, so for the flag bit of fixed-length data bag, only the flag bit corresponding to this fixed-length data bag bag tail just has practical meaning.How to read the fixed-length data bag and the fixed-length data bag of mistake just abandoned and become a difficult problem.If read from the packet header of fixed-length data bag, packet leading portion content has sent out, if the back segment content has been found mistake, this packet just can not abandon.So the present invention reads earlier from the bag tail of fixed-length data bag, and judges its flag bit, if be the accurate indication position, then this fixed-length data bag is sent out, if be the error flag position, then directly abandon.Export by normal order in order to guarantee correct fixed-length data bag data, then when reading, reads the upper level buffer memory when this correct fixed-length data bag from bag tail to packet header, when writing the next stage buffer memory, the data content of reading is earlier begun to write from afterbody, and when the fixed-length data bag data in the next stage buffer memory are exported, read in order from packet header, so just can guarantee that the data of fixed-length data bag are exported in the normal order.
Be illustrated in figure 3 as the transmission method flow chart of fixed-length data bag of the present invention, concrete steps are as follows:
Step 1: the input of fixed-length data bag data, and judge whether it is correct.In the transmission course of packet, whether each device within each equipment, the equipment between the veneer, in the plate all can detect in the data transmission procedure according to the data verification method in the transmission course makes mistakes.
Step 2: according to judged result, corresponding marker bit is set, and the fixed-length data bag is write level cache.The data bit width of each fixed-length data bag is all expanded a flag bit that is used to deposit this fixed-length data bag, therefore, can for each fixed-length data bag corresponding accurate indication position or error flag position be set according to the judged result in the step 1.In data transmission procedure, have only and could judge after the bag tail of a packet is received whether it is correct, therefore,, flag bit is arranged on the bag tail of fixed-length data bag for fixed-length data Bao Eryan.Simultaneously, the fixed-length data bag that is provided with corresponding flag bit is write level cache.
Step 3: the fixed-length data bag in the level cache is read from bag tail to packet header, and judged whether its flag bit is correct.Owing in the data transmission procedure, have only and to confirm after whole the receiving of a packet whether this bag makes mistakes, therefore,, can wrap tail from it and begin to read for the fixed-length data Bao Eryan that is provided with corresponding flag bit.When the flag bit of reading is the error flag position, then the fixed-length data bag of mistake directly can be abandoned; When the flag bit of reading is the accurate indication position, then it is write L2 cache.When writing L2 cache, the correct fixed-length data bag that will from level cache, read from the bag tail to packet header write L2 cache.The fixed-length data bag read from bag tail to packet header can solve after a part sends out before the packet, a back part is found the problem that can't abandon when wrong.Simultaneously, when writing L2 cache, the fixed-length data bag is write the fixed-length data bag data that can guarantee the L2 cache from bag tail to packet header and be normal order.
Step 4: the fixed-length data bag data in the L2 cache are begun output from packet header.Because that is deposited in the L2 cache is correct fixed-length data bag, and order is normal sequence, therefore, the fixed-length data bag data in the L2 cache are begun from packet header to export can guarantee that correct fixed-length data bag data export in the normal order.
The above only is process of the present invention and method embodiment, in order to restriction the present invention, all any modifications of being made within the spirit and principles in the present invention, is not equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (4)
1, a kind of fixed-length data package transmission method is characterized in that, the data bit width of described fixed-length data bag is expanded one, is used to deposit the flag bit of fixed-length data bag, and described method is further comprising the steps of:
A, in the data input process of fixed-length data bag, carry out correctness and judge,, corresponding marker bit is set, and the fixed-length data bag that will be provided with flag bit writes level cache according to judged result;
B, the fixed-length data bag in the level cache is read, and judged, then correct fixed-length data bag is write L2 cache or the fixed-length data bag of mistake is directly abandoned according to corresponding marker bit;
C, the fixed-length data bag in the L2 cache is begun to read in order from packet header.
2, method according to claim 1 is characterized in that, described flag bit is arranged on the bag tail of fixed-length data bag.
3, method according to claim 2 is characterized in that, described flag bit comprises accurate indication position and error flag position.
4, method according to claim 3 is characterized in that, described step B further comprises:
B1, with the fixed-length data bag in the level cache from the bag tail to the packet header reading of data;
B2, judge, as be then execution in step B3 of accurate indication position according to corresponding marker bit, otherwise, directly abandon;
B3, with the fixed-length data bag from the bag tail to packet header write L2 cache.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100358417A CN100438500C (en) | 2005-07-07 | 2005-07-07 | Transmission method for fixed-length data packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100358417A CN100438500C (en) | 2005-07-07 | 2005-07-07 | Transmission method for fixed-length data packet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1859274A CN1859274A (en) | 2006-11-08 |
CN100438500C true CN100438500C (en) | 2008-11-26 |
Family
ID=37298138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100358417A Expired - Fee Related CN100438500C (en) | 2005-07-07 | 2005-07-07 | Transmission method for fixed-length data packet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100438500C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103220168B (en) * | 2013-03-29 | 2015-11-25 | 西安空间无线电技术研究所 | A kind of processing method based on fixed length protocol data packet length exception |
CN106878196B (en) * | 2017-01-16 | 2021-02-05 | 许继集团有限公司 | Data processing method and device of ADC plug-in |
CN108153511A (en) * | 2017-11-30 | 2018-06-12 | 西安空间无线电技术研究所 | A kind of burr filtering method of spaceborne fixed length digital signal |
CN114301992A (en) * | 2021-12-29 | 2022-04-08 | 北京半导体专用设备研究所(中国电子科技集团公司第四十五研究所) | Data transmission method and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1238648A (en) * | 1998-04-28 | 1999-12-15 | 日本电气株式会社 | Radio paging receiver with error indicating function |
US20040194001A1 (en) * | 2002-12-31 | 2004-09-30 | Yao Ting | CRC checking and error tagging system and method for audio data |
CN1612252A (en) * | 2003-10-31 | 2005-05-04 | 浙江中控技术股份有限公司 | Real-time data on-line compression and decompression method |
-
2005
- 2005-07-07 CN CNB2005100358417A patent/CN100438500C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1238648A (en) * | 1998-04-28 | 1999-12-15 | 日本电气株式会社 | Radio paging receiver with error indicating function |
US20040194001A1 (en) * | 2002-12-31 | 2004-09-30 | Yao Ting | CRC checking and error tagging system and method for audio data |
CN1612252A (en) * | 2003-10-31 | 2005-05-04 | 浙江中控技术股份有限公司 | Real-time data on-line compression and decompression method |
Also Published As
Publication number | Publication date |
---|---|
CN1859274A (en) | 2006-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7792014B2 (en) | Method of skipping nullified packets during mass replay from replay buffer | |
US7676617B2 (en) | Posted memory write verification | |
CN100438500C (en) | Transmission method for fixed-length data packet | |
CN108306835A (en) | A kind of the input-buffer structure and data forwarding method of Ethernet switch | |
CN104866454A (en) | Write message prospect processing method and device facing board-level high-speed bus | |
JPH09179721A (en) | Marker detection for first-in first-out memory | |
CN106487673B (en) | A kind of error detection re-transmission fault tolerance rout ing unit based on triplication redundancy | |
US20030118022A1 (en) | Reconfigurable data packet header processor | |
CN107786471A (en) | Data processing method and conversion equipment between more fpga chips | |
US6442161B1 (en) | Data packet transmission | |
CN100375466C (en) | Data packet forwarding controller and method | |
JP2013034133A (en) | Transmission apparatus, transmitting-receiving system, and control method | |
JP3757204B2 (en) | Error detection / correction method and control device using the method | |
US20050144339A1 (en) | Speculative processing of transaction layer packets | |
JPH077511A (en) | Measuring method of performance parameter of atm network and its execution device | |
CN105933244A (en) | Channel aligning de-skew device and method | |
CN100468375C (en) | Method for raising writing speed of memory card | |
CN101594305A (en) | A kind of message processing method and device | |
CN106911530A (en) | A kind of crucial test command transmission system and method based on serial ports redundancy strategy | |
CN103220168B (en) | A kind of processing method based on fixed length protocol data packet length exception | |
CN109347607A (en) | High efficient and reliable transmission control method and system | |
CN110321256A (en) | A kind of test method, test equipment and computer storage medium storing equipment | |
US8413017B2 (en) | Method for transmitting a data transfer block and method and system for transferring a data transfer block | |
CN113934650A (en) | 1553B memory dynamic allocation method based on CCSDS | |
CN100361090C (en) | Method and apparatus for a modified parity check |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081126 Termination date: 20170707 |
|
CF01 | Termination of patent right due to non-payment of annual fee |