CN103595504B - The method for packing and method of calibration of packet - Google Patents
The method for packing and method of calibration of packet Download PDFInfo
- Publication number
- CN103595504B CN103595504B CN201310533289.9A CN201310533289A CN103595504B CN 103595504 B CN103595504 B CN 103595504B CN 201310533289 A CN201310533289 A CN 201310533289A CN 103595504 B CN103595504 B CN 103595504B
- Authority
- CN
- China
- Prior art keywords
- packet
- data
- base band
- band frame
- field
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012856 packing Methods 0.000 title claims abstract description 17
- 230000005540 biological transmission Effects 0.000 claims abstract description 31
- 238000005538 encapsulation Methods 0.000 claims abstract description 18
- 238000012795 verification Methods 0.000 claims description 8
- 238000004422 calculation algorithm Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 6
- 239000012634 fragment Substances 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 239000011248 coating agent Substances 0.000 description 2
- 238000000576 coating method Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0083—Formatting with frames or packets; Protocol or part of protocol for error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L2001/0092—Error control systems characterised by the topology of the transmission link
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Communication Control (AREA)
Abstract
The method for packing and method of calibration of a kind of packet, the method for packing of wherein packet include:Filled by packet to more than one or individual base band frame data domain, and record current packet waiting for transmission by the information of piecemeal number of times;Information code based on the packet and the packet are by the data message of piecemeal number of times to generate the check field of the packet;The check field is spliced to the end of the information code of the packet to complete the encapsulation of the packet.The technical program improves packet(Especially packet is divided into the case that several data blocks are carried in different base band frames)Reliability when broadcast communication channel is transmitted.
Description
Technical field
The present invention relates to the method for packing and method of calibration in digital television broadcasting field, more particularly to packet.
Background technology
New-generation digital television broadcasting system can support the Various types of data including audio, video to transmit, and its is specific
Method is to insert packet waiting for transmission in base band frame data domain successively, and composition can be by digital television broadcasting system wide
Broadcast the base band frame structure that channel is transmitted.
During being packaged to packet, when the length of a packet is larger and available more than current data field
, can be by packet segmentation into several fragments during space, each fragment is transmitted using a base band frame.Receiving terminal exists
Receive and belong to after all fragments of the packet, then by these fragments spliced to obtain original packet again.
But, due to reasons such as channel disturbances, base band frame may be made in the transmitting procedure from transmitting terminal to receiving terminal
Into distorting and producing error code, the packet that such receiving terminal is obtained after receiving base band frame and decoding it will not be original
Packet.And in the case where channel disturbance is serious, receiving terminal may lose whole base band frame or even continuously lose multiple bases
Band frame.
There is error code for a base band frame in, by after packet additional check field can largely solve
This problem.But, in a data coating, piecemeal number of times is into several data blocks and these data blocks are carried on different bases
In the case of band frame, if receiving terminal lost one of base band frame and cause data block leakage receipts, only by attached after packet
Plus the mode of check field can not solve this problem well.
The content of the invention
What the present invention was solved is when the packet is carried on not by piecemeal number of times into several data blocks and these data blocks
During same base band frame is transmitted, the problem of receiving terminal may leak receipts data block.
To solve the above problems, the embodiments of the invention provide a kind of method for packing of packet, including:To currently it treat
During the packet of transmission is sequentially filled to one or more base band frame data domains, the packet is recorded by piecemeal number of times
Data message;Information code based on the packet and the packet are by the data message of piecemeal number of times to generate the school of the packet
Test field;The check field is spliced to the end of the information code of the packet to complete the encapsulation of the packet.
Optionally, described that current data waiting for transmission are sequentially filled to one or more base band frame data domains, record should
Packet is included by the data message of piecemeal number of times:
Step 1):Judge whether the free space in current base band frame data domain is enough to carry current data waiting for transmission
Bag, the packet includes information code and reserved check field length;
Step 2):If the judged result is no, the packet is split to form first half data block with after
Half part data block, wherein the first half data block is suitable to fill up the free space, the latter half data block will be filled out
It is charged to next base band frame data domain;
Circulation performs above-mentioned steps 1)With step 2), work as until the free space in current base band frame data domain is enough to carry
Preceding packet waiting for transmission;
Based on above-mentioned steps 1)With step 2)Circulation perform number of times and determine current packet waiting for transmission by piecemeal number of times
Data message.
Optionally, the information code based on the packet and the packet by the data message of piecemeal number of times to generate this
The step of check field of packet, includes:The packet is attached to the information of the packet by the data message of piecemeal number of times
The end of code is to form packet to be verified;The packet to be verified is carried out using the first default check field generating mode
Processing is to generate the first check field, and wherein the first default check field generating mode is by transmitting terminal and receiving terminal are Lai common true
It is fixed.
Optionally, the information code based on the packet and the packet by the data message of piecemeal number of times to generate this
The step of check field of packet, includes:The first default check field generating mode is used to handle with life the packet
Into intermediate data;The packet is attached to the end of the intermediate data by the data message of piecemeal number of times, then it is pre- using first
If check field generating mode is handled aforementioned data to generate the second check field;Wherein, the first default check word
Section generating mode is determined jointly by transmitting terminal and receiving terminal.
Optionally, the information code based on the packet and the packet by the data message of piecemeal number of times to generate this
The step of check field of packet, includes:The first default check field generating mode is used to handle with life the packet
Into intermediate data;Using the second default check field generating mode to the intermediate data and the packet by the data of piecemeal number of times
Information is handled to generate the 3rd check field;Wherein, the first default check field generating mode and the second default verification
Field generating mode is determined jointly by transmitting terminal and receiving terminal.
Optionally, the described first default check field generating mode is CRC.
Optionally, the described second default check field generating mode includes XOR, add operation, subtraction and multiplied
Any of method computing computing mode.
The embodiment of the present invention additionally provides a kind of method of calibration of packet, and the wherein packet is according to above-mentioned packet
Method for packing encapsulation after fill to base band frame transmit in the channel after receiving terminal recover obtain, the method for calibration includes:
Obtain complete packet from one or more base band frame data domains, the complete packet include information code and
Check field;
The default check field generating mode and check word indicated in checking algorithm flag bit in base band frame frame head
Segment length, check field is intercepted from the end of the packet, and the remaining content of packet is used as information code;
To the information code of packet that receives and packet by the data message of piecemeal number of times carry out verification calculate with
Obtain check field to be compared;
Whether compare the check field to be compared consistent with the check field that gets;
If both are consistent, it is determined that the packet receives correct.
Optionally, it is described to obtain complete packet from one or more base band frame data domains and comprise the following steps:
Packet is successively read since the original position in current base band frame data domain, wherein the original position is by base
Determined with the original position field in frame frame head;
By the long field of bag positioned at data packet header whether be zero come judge the packet whether be intactly carried on work as
Preceding base band frame data domain;
If the packet is not carried on current base band frame data intactly, by current base band frame start position start to
All data at data field end continue to read from several follow-up base band frame data domains as first piece of the packet
Take the remaining piecemeal of the packet and spliced to obtain the information code of the packet with first piece of the packet in order
And check field, the remaining piecemeal of the wherein packet is original position field and data field length in base band frame frame head
Relation between field is determined;
If the packet is intactly carried on current base band frame data, the start bit from current base band frame data domain
Put and start and according to the long information code and check field for obtaining the packet of bag of the data packet header;
Record assembles the number of the information code of the packet and the base band frame of check field to determine the packet by piecemeal
The data message of number of times;
Optionally, original position field and data field of the remaining piecemeal of the packet in base band frame frame head are long
Relation between degree field determines to include following situation:
1)If the original position field in some base band frame frame head is more than data field length field, it is determined that the base band frame number
It is completely used for carrying a data block in the remaining piecemeal of packet according to domain, and the transmission of the packet is not completed;
2)If the original position field in some base band frame frame head is equal to data field length field, it is determined that the base band frame number
It is completely used for carrying the packet according to domain, and the transmission of the packet has been completed;
3)If the original position field in some base band frame frame head is less than data field length field, the base band base data domain
Head to the data between original position are last data block in the remaining piecemeal of the packet.
The embodiment of the present invention additionally provides a kind of transmission method of packet, including:Will current packet waiting for transmission according to
It is secondary to fill to one or more base band frame data domains;The check field of the packet is generated, wherein the check field is according to this
The information code of packet and the packet come true during filling is to base band frame data domain by the data message of piecemeal number of times
It is fixed;The check field is spliced to the end of the information code of the packet to complete the encapsulation of the packet;The number will be carried on
According to one or more base band frames of bag via transmission to receiving terminal.
Compared with prior art, technical solution of the present invention has the advantages that:
The method for packing of the packet provided according to embodiments of the present invention, when generating the check field of packet, it is considered to
Packet is filled to base band frame data domain by the data message of piecemeal number of times, so in receiving terminal to the number that receives
According to bag carry out resolving in, also will combine data be coated with piecemeal number of times data message come whether packet is properly received into
Row verification, so as to improve packet(Especially packet is divided into the feelings that several data blocks are carried in different base band frames
Under condition)Reliability when broadcast communication channel is transmitted.
The method of calibration of the packet provided according to embodiments of the present invention, receiving terminal is from the base band frame data domain received
During middle read data packet, judge whether the packet intactly carries by the long field of bag positioned at data packet header
Complete packet and check word is obtained in different ways in current base band frame data domain, and for different situations
Section, and when the packet to receiving is verified, it is contemplated that the packet is by the data message of piecemeal number of times, so as to carry
High reliability of the packet when broadcast communication channel is transmitted.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the embodiment of the method for packing of packet of the present invention;
Fig. 2 is the basic structure schematic diagram for the base band frame that will be formed after packet encapsulation;
Fig. 3 A are the not segmented base band frame structure schematic diagrames being packaged into of packet;
Fig. 3 B are the bases that packet is packaged into the case that each data block is carried on different base band frames respectively after singulated
Band frame structure schematic diagram;
Fig. 4 is a kind of schematic flow sheet of the embodiment of the method for calibration of packet of the present invention.
Embodiment
Inventor has found in the prior art, when the packet is divided into several data blocks and these data blocks are carried on not
During same base band frame is transmitted, if receiving terminal lost the problem of one of base band frame will cause data block leakage receipts.
In view of the above-mentioned problems, inventor passes through research there is provided a kind of method for packing of packet and method of calibration, pass through
Packet is considered during being packaged to packet by the data message of piecemeal number of times, so as to improve packet(Especially
It is that packet is divided into several data blocks and is carried in different base band frames)Reliability when broadcast communication channel is transmitted.
It is understandable to enable the above objects, features and advantages of the present invention to become apparent, below in conjunction with the accompanying drawings to the present invention
Embodiment be described in detail.
As shown in Fig. 1 the schematic flow sheet of the embodiment of the method for packing of a kind of packet of the invention.
With reference to Fig. 1, the method for packing of the packet comprises the following steps:
Step S11:It is sequentially filled by current packet waiting for transmission to the process in one or more base band frame data domains
In, the packet is recorded by the data message of piecemeal number of times;
Step S12:Information code based on the packet and the packet are by the data message of piecemeal number of times to generate the number
According to the check field of bag;
Step S13:The check field is spliced to the end of the information code of the packet to complete the encapsulation of the packet.
Unlike the prior art, generate packet check field when, not only for packet information code in itself, enter
One step considers packet during filling to one or more base band frame data domains by the data message of piecemeal number of times.Example
Such as, a packet filling to during base band frame data domain by piecemeal number of times into three data blocks, then by piecemeal
Several data messages is twice.
In a particular embodiment, as described in step S11, it is sequentially filled by current packet waiting for transmission to one or many
During individual base band frame data domain, the packet is recorded by the data message of piecemeal number of times, following steps are specifically included:
Step 1):Judge whether the free space in current base band frame data domain is enough to carry current data waiting for transmission
Bag, the packet includes information code and reserved check field length;
Step 2):If the judged result is no, the packet is split to form first half data block with after
Half part data block, wherein the first half data block is suitable to fill up the free space, the latter half data block will be filled out
It is charged to next base band frame data domain.
In above-mentioned steps 1)In, by the data field length shared by the relatively free space in current base band frame data domain with
Magnitude relationship between the length of current packet waiting for transmission can determine whether the free space is enough to carry the packet.
It should be noted that in this step, it is necessary to after the information code of packet reserve check field position, for example reserve 2
Individual byte length, includes information code and reserved check field length with the length of the zero padding reserved location, therefore the packet.
Such as step 2)It is described, if the number shared by the long free space more than current base band frame data domain of bag of the packet
According to length of field, it is determined that current base band frame data domain is not enough to carry whole packet, it is necessary to split packet.Point
Packet after cutting is divided into first half data block and latter half data block, wherein first half data block can fill up this can
With space, remaining latter half data block will be filled into next base band frame data domain.
For the latter half data block, it will continue according to above-mentioned steps 1)Judged, that is, continue to judge that this is latter half of
Whether divided data block is enough to be carried on current base band frame data domain(Relative to next base band of that base band frame before
Frame).And when judged result is no, then according to above-mentioned steps 2)Described, the latter half data block is divided into by continuation again
First half data block in two parts data block, this two parts data block can fill up the free space in base band frame data domain,
Latter half data block will be filled into next base band frame data domain.
So circulation performs above-mentioned steps 1)With step 2), until the free space in current base band frame data domain is enough to hold
Carry last remaining data block.
Further, the circulation in whole process, which performs number of times, can determine current packet waiting for transmission by piecemeal
The data message of number of times.If for example, above-mentioned steps 1)With step 2)Circulation is performed twice, then can be determined current waiting for transmission
Packet has been split twice, and the packet divide into three data blocks and be carried on continuous three base band frame data domain respectively
In.
If above-mentioned steps 1)Judged result be that the free space in yes, i.e., current base band frame data domain is enough to carry current
Packet waiting for transmission, then need not split to the packet(It is 0 i.e. by the data message of piecemeal number of times), the packet
To intactly it be carried in current base band frame data domain.
Then, as described in step S12, information code and the packet based on the packet are by the data message of piecemeal number of times
To generate the check field of the packet.As described in step S13, the check field is spliced to the end of the information code of the packet
Tail is to complete the encapsulation of the packet.
In the prior art, during the check field of one packet of generation, the information code of packet is only participated in into generation school
In the computing for testing field, and in the present embodiment, then packet is further contemplated by the data message of piecemeal number of times.It is specific next
Say, the present embodiment includes following three instantiation:
1)In a detailed embodiment, the step S12 comprises the following steps:
School is treated to be formed in the end that the packet is attached to the information code of the packet by the data message of piecemeal number of times
Test packet;
The first default check field generating mode is used to handle to generate check field the packet to be verified,
Wherein the first default check field generating mode is determined jointly by transmitting terminal and receiving terminal.
For example, the check field that CHK=F (DATA, SEG)=H ([DATA, SEG]), wherein CHK obtain for calculating;DATA is
The information code of packet;SEG be packet by the data message of piecemeal number of times, H (x) is the described first default check field generation
Mode.
Correspondingly, the step S13 comprises the following steps:First check field is spliced to the information of the packet
The end of code is to complete the encapsulation of the packet.
2)In the another embodiment of this step, the step S12 comprises the following steps:
The first default check field generating mode is used to be handled the packet to generate intermediate data;
The packet is attached to the end of the intermediate data by the data message of piecemeal number of times, then using the first default school
Field generating mode is tested aforementioned data is handled to generate the second check field;
Wherein, the first default check field generating mode is determined jointly by transmitting terminal and receiving terminal.
For example, the check field that CHK=F (DATA, SEG)=H ([H (DATA), SEG]), wherein CHK obtain for calculating;
DATA is the information code of packet, and H (DATA) is intermediate data;SEG be packet by the data message of piecemeal number of times, H (x) is
Described first default check field generating mode.
Correspondingly, the step S13 comprises the following steps:Second check field is spliced to the information of the packet
The end of code is to complete the encapsulation of the packet.
3)In the another embodiment of this step, the step S12 comprises the following steps:
The first default check field generating mode is used to be handled the information code of the packet to generate mediant
According to;
The intermediate data and the packet are believed by the data of piecemeal number of times using the second default check field generating mode
Breath is handled to generate the 3rd check field;
Wherein, the first default check field generating mode and second is preset check field generating mode by transmitting terminal and connect
Receiving end is jointly determined.
For example, the check field that CHK=F (DATA, SEG)=G (H (DATA), SEG), wherein CHK obtain for calculating;DATA
For the information code of packet;SEG be packet by the data message of piecemeal number of times, H (x) is the described first default check field life
Into mode.
G (x, y) is the second default check field generating mode, in actual applications, G (x, y) can be it is conventional can be with
The function of two input datas of reception, function G (x, y)=x XOR y of such as XOR, the function G (x, y) of add operation=
X+y, function G (x, y)=x * y of function G (x, y)=x-y either multiplyings of subtraction.
Correspondingly, the step S13 comprises the following steps:3rd check field is spliced to the information of the packet
The end of code is to complete the encapsulation of the packet.
In above three embodiment, the described first default check field generating mode is CRC,
That is CRC check.
As shown in Fig. 2 by the basic structure schematic diagram of the base band frame formed after packet encapsulation.With reference to Fig. 2, base band
Frame includes base band frame frame head, data field and for zero filling and the region of in-band signaling.
Wherein, base band frame frame head specifically includes MATYPE fields(2 bytes), DFL fields(2 bytes), SYNCD fields
(2 bytes), INDICATORS fields(1 byte)And CRC-8 fields(1 byte).INDICATORS fields also include
CRCI fields(2 bits)With others fields(6 bits).Data field is used to fill each packet, and packet can be IP
Packet either TS data stream packets etc..
As shown in Figure 3A be the not segmented base band frame structure schematic diagram being packaged into of packet.With reference to Fig. 3 A, base band frame
Including base band frame frame head and data field.Multiple packets are carried in data field(Such as packet N, packet N+1), according to
The technical program provide packet method for packing to packet after encapsulation, in the information code of each packet(Do not show
Go out)End spliced respective check field, for example, packet N and check field N, packet N+1 and check field N+1.
These packets are carried in a base band frame data domain.
As shown in Figure 3 B be that packet is sealed in the case that each data block is carried on different base band frames respectively after singulated
The base band frame structure schematic diagram dressed up.With reference to Fig. 3 B, packet N be divided into 3 data blocks, i.e. data block 1, data block 2 and
Data block 3, these three data blocks are carried in continuous three base band frame data domain respectively.Each base band frame includes base band frame frame
Head and data field.The packet is spliced at the end of the information code of data block 3(That is packet N)Check field N.
Transmitting terminal dresses up data envelope the method for packing of the packet provided using the technical program after base band frame, will
Each base band frame is transmitted to receiving terminal via broadcast communication channel, and receiving terminal will parse each number from the base band frame received
According to, and whether the reception of each packet is correctly verified.
A kind of method of calibration of packet provided in an embodiment of the present invention, the packet is the number provided by above-described embodiment
Fill to base band frame to transmit in the channel after encapsulating according to encapsulation method and recover to obtain after receiving terminal.As described in Figure 4 be this
A kind of schematic flow sheet of the embodiment of the method for calibration of packet of invention.
With reference to Fig. 4, the method for calibration of packet comprises the following steps:
Step S21:Packet is successively read since the original position in current base band frame data domain, wherein the starting
Position is determined by the original position field in base band frame frame head;
Step S22:Judge the packet whether intactly by the way that whether the long field of bag positioned at data packet header is zero
It is carried on current base band frame data domain;
Step S23:If the packet is not carried on current base band frame data intactly, by current base band start of frame bits
Put and start to all data at data field end as first piece of the packet, and continue from several follow-up base band frame numbers
According to the remaining piecemeal that the packet is read in domain and spliced in order with first piece of the packet to obtain the packet
Information code and check field, the remaining piecemeal of the wherein packet is the original position field sum in base band frame frame head
Determined according to the relation between length of field field;
Step S24:If the packet is intactly carried on current base band frame data, from current base band frame data domain
Original position start and according to the long information code and check field for obtaining the packet of bag of the data packet header;
Step S25:Record assembles the number of the information code of the packet and the base band frame of check field to determine the data
It is coated with the data message of piecemeal number of times;
Step S26:The default check field generating mode indicated in checking algorithm flag bit in base band frame frame head
With check field length, check field is intercepted from the end of the packet, the remaining content of packet is used as information code;
Step S27:The packet information code and packet received is verified by the data message of piecemeal number of times
Calculate to obtain check field to be compared;
Step S28:Whether compare the check field to be compared consistent with the check field that gets
Step S29:If both are consistent, it is determined that the packet receives correct.
In the present embodiment, as described in step S21, it is successively read since the original position in current base band frame data domain
Packet.
In actual applications, receiving terminal is received after a series of continuous base band frames, by according to the sequencing of reception from
The original position in first base band frame data domain starts to read first complete packet.The original position is by base band frame frame
Original position field in head(Such as the SYNCD fields in Fig. 2)To determine, receiving terminal is according to the information recorded in SYNCD fields
The original position of the packet can be determined to store in data field.
As described in step S22, whether the packet is judged by the way that whether the long field of bag positioned at data packet header is zero
Intactly it is carried on current base band frame data domain.
In the present embodiment, the long field of bag is provided with packet header portion, the bag for recording the packet is long.At this
In the case that packet is intactly carried on a base band frame data domain, the bag of the whole packet of the long field record of the bag is long;And
In the case that the packet is not carried on a base band frame data domain intactly, the long field default setting of the bag is zero.Therefore,
Receiving terminal can judge the number by reading the long field of bag positioned at data packet header according to whether the numerical value of its record is zero
Current base band frame data domain whether is intactly carried on according to bag.
As described in step S23, if the packet is not carried on current base band frame data intactly, by current base band frame
Original position starts to all data at data field end as first piece of the packet, and continues from several follow-up bases
With the remaining piecemeal that the packet is read in frame data domain and spliced in order with first piece of the packet to be somebody's turn to do
The information code and check field of packet.
Longer in packet, in the case of not being carried on a base band frame data domain intactly, receiving terminal is needed from some
Each data block for belonging to the packet is extracted in individual base band frame, and each data block for belonging to same packet will be carried on
In several continuous base band frames.Therefore, receiving terminal is obtaining this from current base band frame start position to data field end
After first data block of packet, continuation is read to the remaining piecemeal of the packet from follow-up base band frame data domain.
Further, the remaining piecemeal of the packet is that original position field and data field in base band frame frame head are long
Relation between degree field is determined.Specifically, receiving terminal is by judging in the original position field in base band frame frame head
Size between the total length of the original position in the base band frame data domain of record and the data field of data field length field record is closed
It is to determine whether to have got last data block of the packet.
Specifically include following situation:
1)If the original position field in some base band frame frame head is more than data field length field, it is determined that the base band frame number
It is completely used for carrying a data block in the remaining piecemeal of packet according to domain, and the transmission of the packet is not completed.Receiving terminal
It will continue to obtain remaining data block from follow-up base band frame data domain.
2)If the original position field in some base band frame frame head is equal to data field length field, it is determined that the base band frame number
It is completely used for carrying the packet according to domain, and the transmission of the packet has been completed.
3)If the original position field in some base band frame frame head is less than data field length field, the base band base data domain
Head to the data between original position are last data block in the remaining piecemeal of the packet.
As described in step S24, if the packet is intactly carried on current base band frame data, from current base band frame
The original position of data field starts and according to the long information code and check field for obtaining the packet of bag of the data packet header.
Wherein, the length information of the information code of packet can by positioned at data packet header length field directly or by
Simple computation is obtained indirectly, and the length of check field is then the pact according to transmitting terminal and receiving terminal to check field computational algorithm
Surely obtain.
As described in step S25, record assembles the number of the information code of the packet and the base band frame of check field to determine
The packet is by the data message of piecemeal number of times.
In the present embodiment, it is necessary to consider that packet is divided when receiving terminal is subsequently verified to the packet received
The data message of block number of times.Therefore, after complete packet is got, receiving terminal, which also needs to record, assembles the packet
Information code and check field base band frame number.
The situation in current base band frame data domain it is not carried on intactly for packet, receiving terminal can record acquisition
The several base band frames of span are total to during whole packet, may thereby determine that the packet is divided into several data blocks,
And thereby determine that the packet by the data message of piecemeal number of times.And current base band frame number is intactly carried on for packet
According to the situation in domain, the data message by piecemeal number of times is as zero by piecemeal number of times.
As described in step S26, the default check field life indicated in the checking algorithm flag bit in base band frame frame head
Into mode and check field length, check field is intercepted from the end of the packet, the remaining content of packet is used as information code.
Specifically, receiving terminal includes information code and check field in the whole packet got, and both are merged one
Rise.Therefore, receiving terminal needs therefrom to obtain information code and check field respectively.Wherein, the length of check field can basis
The default check field generating mode indicated in checking algorithm flag bit in base band frame frame head is determined with check field length.
And the information code of packet is then the remaining content of the packet after check field has been intercepted.
As described in step S27, the packet information code and packet received is entered by the data message of piecemeal number of times
Row verification calculates to obtain check field to be compared.
Specifically, receiving terminal should by the information code with reference to the packet received and according to determined by above-mentioned steps S25
Packet carries out verification computing by the data message of piecemeal number of times, to obtain check field to be compared.Wherein, the verification computing
Specific implementation process be the default check field generating mode indicated in the checking algorithm flag bit in base band frame frame head
To determine.And for same packet, transmitting terminal and receiving terminal use identical and preset check field generating mode
Information code to the packet is handled to obtain check field respectively.
For different default check field generating modes, the processing mode to the information code of packet is referred to above
Step S12 embodiment, will not be repeated here described in the embodiment of Fig. 1 descriptions.
Whether as described in step S28, it is consistent with the check field that gets to compare the check field to be compared.
As described in step S29, if both are consistent, it is determined that the packet receives correct.Conversely, if both are inconsistent,
Determine that the packet receives mistake.
The embodiment of the present invention additionally provides a kind of transmission method of packet, specifically includes following steps:
Step S31:Current packet waiting for transmission is sequentially filled to one or more base band frame data domains;
Step S32:Generate the check field of the packet, wherein the check field according to the information code of the packet and
The packet is determined during filling is to base band frame data domain by the data message of piecemeal number of times;
Step S33:The check field is spliced to the end of the information code of the packet to complete the encapsulation of the packet;
Step S34:One or more base band frames of the packet will be carried on via transmission to receiving terminal.
In summary, the packet encapsulation method and method of calibration provided using the technical program, transmitting terminal is in generation number
According to bag check field when, it is contemplated that packet is filled to base band frame data domain by the data message of piecemeal number of times, this
Sample is carried out in receiving terminal to the packet received in resolving, is also carried out the data message for combining data coating piecemeal number of times
Verified to whether packet is properly received, so as to improve packet(Especially packet is divided into several data blocks and held
In the case of being loaded in different base band frames)Reliability when broadcast communication channel is transmitted.
Although the present invention is disclosed as above with preferred embodiment, it is not for limiting the present invention, any this area
Technical staff without departing from the spirit and scope of the present invention, may be by the methods and techniques content of the disclosure above to this hair
Bright technical scheme makes possible variation and modification, therefore, every content without departing from technical solution of the present invention, according to the present invention
Any simple modifications, equivalents, and modifications made to above example of technical spirit, belong to technical solution of the present invention
Protection domain.
Claims (5)
1. a kind of method for packing of packet, it is characterised in that including:
During current packet waiting for transmission is sequentially filled to one or more base band frame data domains, the data are recorded
It is coated with the data message of piecemeal number of times;
Information code based on the packet and the packet are by the data message of piecemeal number of times to generate the check word of the packet
Section;
The check field is spliced to the end of the information code of the packet to complete the encapsulation of the packet,
Wherein, the information code based on the packet and the packet by the data message of piecemeal number of times to generate the packet
Check field the step of include:
The first default check field generating mode is used to be handled the packet to generate intermediate data;
The packet is attached to the end of the intermediate data by the data message of piecemeal number of times, then using the first default check word
Section generating mode is handled aforementioned data to generate the second check field;
Wherein, the first default check field generating mode is determined jointly by transmitting terminal and receiving terminal.
2. the method for packing of packet as claimed in claim 1, it is characterised in that described to incite somebody to action current data waiting for transmission successively
Filling is to one or more base band frame data domains, and record the packet is included by the data message of piecemeal number of times:
Step 1):Judge whether the free space in current base band frame data domain is enough to carry current packet waiting for transmission, should
Packet includes information code and reserved check field length;
Step 2):If the judged result is no, the packet is split to form first half data block and latter half of
Divided data block, wherein the first half data block is suitable to fill up the free space, the latter half data block will be filled extremely
Next base band frame data domain;
Circulation performs above-mentioned steps 1) and step 2), until the free space in current base band frame data domain is enough to carry and currently treated
The packet of transmission;
Based on above-mentioned steps 1) and step 2) circulation perform number of times and determine current packet waiting for transmission by the number of piecemeal number of times
It is believed that breath.
3. the method for packing of packet as claimed in claim 1, it is characterised in that the described first default check field generation side
Formula is CRC.
4. a kind of method of calibration of packet, it is characterised in that encapsulation of the packet as the packet described in claim 1
Fill to base band frame to transmit in the channel after method encapsulation and recover to obtain after receiving terminal, the method for calibration includes:
Complete packet is obtained from one or more base band frame data domains, the complete packet includes information code and verification
Field;
The default check field generating mode indicated in checking algorithm flag bit in base band frame frame head and check word segment length
Degree, check field is intercepted from the end of the packet, and the remaining content of packet is used as information code;
Verification is carried out to the information code of packet and packet received by the data message of piecemeal number of times to calculate to obtain
Check field to be compared;
Whether compare the check field to be compared consistent with the check field that gets;
If both are consistent, it is determined that the packet receives correct,
Wherein, it is described to obtain complete packet from one or more base band frame data domains and comprise the following steps:
Packet is successively read since the original position in current base band frame data domain, wherein the original position is by base band frame
Original position field in frame head is determined;
Judge it is current whether the packet is intactly carried on by the way that whether the long field of bag positioned at data packet header is zero
Base band frame data domain;
If the packet is not carried on current base band frame data intactly, current base band frame start position is started to data
All data at domain end are as first piece of the packet, and continue to read from several follow-up base band frame data domains should
The remaining piecemeal of packet and in order with first piece of the packet information code and school spliced to obtain the packet
Field is tested, the remaining piecemeal of the wherein packet is original position field and data field length field in base band frame frame head
Between relation determine;
If the packet is intactly carried on current base band frame data, opened from the original position in current base band frame data domain
Begin and according to the long information code and check field for obtaining the packet of bag of the data packet header;
Record assembles the number of the information code of the packet and the base band frame of check field to determine the packet by piecemeal number of times
Data message.
5. the method for calibration of packet as claimed in claim 4, it is characterised in that the remaining piecemeal of the packet according to
The relation between original position field and data field length field in base band frame frame head determines to include following situation:
If 1) the original position field in some base band frame frame head is more than data field length field, it is determined that the base band frame data domain
It is completely used for carrying a data block in the remaining piecemeal of packet, and the transmission of the packet is not completed;
If 2) the original position field in some base band frame frame head is equal to data field length field, it is determined that the base band frame data domain
It is completely used for carrying the packet, and the transmission of the packet has been completed;
If 3) the original position field in some base band frame frame head is less than data field length field, the base band base data domain head
It is last data block in the remaining piecemeal of the packet to the data between original position.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310533289.9A CN103595504B (en) | 2013-11-04 | 2013-11-04 | The method for packing and method of calibration of packet |
CN201710088195.3A CN106850143B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
CN201710094996.0A CN107017966B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
PCT/CN2014/089784 WO2015062503A1 (en) | 2013-11-04 | 2014-10-29 | Data packet encapsulation method and check method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310533289.9A CN103595504B (en) | 2013-11-04 | 2013-11-04 | The method for packing and method of calibration of packet |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710088195.3A Division CN106850143B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
CN201710094996.0A Division CN107017966B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103595504A CN103595504A (en) | 2014-02-19 |
CN103595504B true CN103595504B (en) | 2017-07-28 |
Family
ID=50085501
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310533289.9A Active CN103595504B (en) | 2013-11-04 | 2013-11-04 | The method for packing and method of calibration of packet |
CN201710094996.0A Active CN107017966B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
CN201710088195.3A Active CN106850143B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
Family Applications After (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710094996.0A Active CN107017966B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
CN201710088195.3A Active CN106850143B (en) | 2013-11-04 | 2013-11-04 | Data packet packaging method and verification method |
Country Status (2)
Country | Link |
---|---|
CN (3) | CN103595504B (en) |
WO (1) | WO2015062503A1 (en) |
Families Citing this family (31)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103595504B (en) * | 2013-11-04 | 2017-07-28 | 上海数字电视国家工程研究中心有限公司 | The method for packing and method of calibration of packet |
WO2016015222A1 (en) * | 2014-07-29 | 2016-02-04 | 华为技术有限公司 | Data encryption and transmission method and device |
CN105812335B (en) * | 2014-12-31 | 2019-07-23 | 上海数字电视国家工程研究中心有限公司 | The analytic method of function field |
WO2017008401A1 (en) * | 2015-07-10 | 2017-01-19 | 华为技术有限公司 | Protocol frame transmission method and device, node equipment and system |
CN106452660A (en) * | 2015-08-06 | 2017-02-22 | 鸿富锦精密工业(深圳)有限公司 | Data transfer system and method |
CN106484690A (en) * | 2015-08-24 | 2017-03-08 | 阿里巴巴集团控股有限公司 | A kind of verification method of Data Migration and device |
CN106028397A (en) * | 2016-05-10 | 2016-10-12 | 国网新疆电力公司经济技术研究院 | High reliability massive data wireless transmission system |
CN106686526B (en) * | 2016-12-16 | 2020-10-30 | 美的智慧家居科技有限公司 | Method and device for acquiring routing information of electric appliance |
CN106850149A (en) * | 2017-04-21 | 2017-06-13 | 深圳怡化电脑股份有限公司 | A kind of data transmission method, device, equipment and storage medium |
CN107426770B (en) * | 2017-07-21 | 2021-09-14 | 广东美的制冷设备有限公司 | Data communication method, data terminal and system based on data link layer |
CN108039936A (en) * | 2017-12-14 | 2018-05-15 | 华南智能机器人创新研究院 | A kind of communication protocol data bag and communication system for unmanned operation equipment |
CN108173623B (en) * | 2018-01-16 | 2020-08-14 | 四川安迪科技实业有限公司 | User-defined baseband frame packaging method based on sliding CRC |
CN109587112B (en) | 2018-10-25 | 2021-02-12 | 华为技术有限公司 | Data sending method, data receiving method, equipment and system |
CN109586846A (en) * | 2018-11-20 | 2019-04-05 | 湖南晨威高科有限公司 | Mainboard and from the communication means between plate inside a kind of direct-current charging post |
CN110297871A (en) * | 2019-06-20 | 2019-10-01 | 常州冰鉴信息科技有限公司 | A kind of method that isomeric data acquires in real time |
CN110442044A (en) * | 2019-08-19 | 2019-11-12 | 哈尔滨工业大学 | A kind of semi-physical emulation platform for aircraft guidance control algorithm validation |
CN110649937B (en) * | 2019-09-23 | 2021-03-02 | 明格(上海)信息技术有限公司 | Ultrasonic wave emission control method, and transmission and reception control method and device |
CN112839003A (en) * | 2019-11-22 | 2021-05-25 | 上海哔哩哔哩科技有限公司 | Data verification method and system |
CN111147931A (en) * | 2019-12-31 | 2020-05-12 | 深圳Tcl新技术有限公司 | Transmission method, device and equipment of TLV (threshold Length value) data packet and readable storage medium |
CN114696944A (en) * | 2020-12-25 | 2022-07-01 | 深圳Tcl新技术有限公司 | Data packet processing method and device, intelligent terminal and computer readable storage medium |
CN113572578B (en) * | 2021-07-28 | 2023-06-30 | 南方电网数字电网研究院有限公司 | TCP data transmission method, device, equipment and medium based on data center |
CN113346980B (en) * | 2021-08-02 | 2023-08-11 | 浙江国利信安科技有限公司 | Method, electronic device and computer storage medium for message forwarding |
CN114257338B (en) * | 2021-11-26 | 2022-12-20 | 力同科技股份有限公司 | Data processing method and device, communication system and communication device, equipment and medium |
CN114337929A (en) * | 2022-01-05 | 2022-04-12 | 深圳市泛海三江科技发展有限公司 | A high-reliability communication verification method |
CN114615354B (en) * | 2022-04-12 | 2024-09-13 | 支付宝(杭州)信息技术有限公司 | Method and device for processing message |
CN114741231B (en) * | 2022-04-19 | 2023-06-27 | 深圳鲲云信息科技有限公司 | Data reading and writing method, device, equipment and storage medium based on memory |
CN114884624B (en) * | 2022-07-08 | 2022-12-09 | 广州思德医疗科技有限公司 | Data processing method and device |
CN116846546B (en) * | 2023-04-24 | 2024-03-22 | 广州智臣信息科技有限公司 | Information loss-proof and repetition-proof cross-network data exchange system |
CN116506326B (en) * | 2023-06-21 | 2023-11-24 | 季华实验室 | Sub-thread data receiving method, data monitoring method, upper computer and robot |
CN117692106B (en) * | 2024-01-31 | 2024-05-03 | 北京中科网芯科技有限公司 | Communication data redundancy check method |
CN117749912B (en) * | 2024-02-19 | 2024-05-10 | 浙江双元科技股份有限公司 | Data transmission control method and system based on FPGA module |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193284A (en) * | 2007-12-27 | 2008-06-04 | 北京中星微电子有限公司 | Validation method, system and device for transmission integrity of compressed file |
CN101212267A (en) * | 2007-12-21 | 2008-07-02 | 北京创毅视讯科技有限公司 | FTP service data based method, system, and device for broadcast system |
CN102098125A (en) * | 2009-12-15 | 2011-06-15 | 上海贝尔股份有限公司 | Method and device for processing parallel baseband |
CN102571272A (en) * | 2011-12-14 | 2012-07-11 | 展讯通信(上海)有限公司 | Method and device for receiving service data in communication system, and baseband chip |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4278850A (en) * | 1978-04-11 | 1981-07-14 | Kokusai Denshin Denwa Co., Ltd. | Monitoring system for optical transmission line repeaters |
JPH10190705A (en) * | 1996-10-22 | 1998-07-21 | Sony Corp | Transmission device/method and reception device/method |
EP1365548A1 (en) * | 2002-05-21 | 2003-11-26 | Alcatel | Method for encapsulating variable length packets, and related data packet encapsulator and decapsulator |
CA2423896A1 (en) * | 2003-03-28 | 2004-09-28 | Norsat International Inc. | Highly integrated and compact baseband apparatus for portable newsgathering |
EP1555788A1 (en) * | 2004-01-15 | 2005-07-20 | Alcatel | Method for improving the quality of an encoded video bit stream transmitted over a wireless link, and corresponding receiver |
CN100539677C (en) * | 2006-12-29 | 2009-09-09 | 雷科通技术(杭州)有限公司 | Utilize cable television network to carry out the method and apparatus of remote both way communications |
CN101296055B (en) * | 2007-04-29 | 2013-01-09 | 华为技术有限公司 | Data package dispatching method and device |
CN101321336B (en) * | 2007-06-06 | 2012-11-14 | 锐迪科微电子(上海)有限公司 | High-capacity data interchange method between mobile terminal and smart card |
CN101459490B (en) * | 2007-12-13 | 2012-01-11 | 中兴通讯股份有限公司 | Data transmission method and device |
CN101286945B (en) * | 2008-05-22 | 2011-06-22 | 北京星网锐捷网络技术有限公司 | Method and apparatus for processing of data fragmentation |
US8068423B2 (en) * | 2008-09-09 | 2011-11-29 | Ericsson Television, Inc | Packet scheduling system for digital video broadcasting |
CN101916173B (en) * | 2010-08-27 | 2013-08-28 | 杭州华三通信技术有限公司 | RAID (Redundant Array of Independent Disks) based data reading and writing method and system thereof |
CN101969359B (en) * | 2010-09-29 | 2012-11-14 | 航天东方红卫星有限公司 | Method for uploading and processing electric load task on small satellite |
CN103595504B (en) * | 2013-11-04 | 2017-07-28 | 上海数字电视国家工程研究中心有限公司 | The method for packing and method of calibration of packet |
-
2013
- 2013-11-04 CN CN201310533289.9A patent/CN103595504B/en active Active
- 2013-11-04 CN CN201710094996.0A patent/CN107017966B/en active Active
- 2013-11-04 CN CN201710088195.3A patent/CN106850143B/en active Active
-
2014
- 2014-10-29 WO PCT/CN2014/089784 patent/WO2015062503A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212267A (en) * | 2007-12-21 | 2008-07-02 | 北京创毅视讯科技有限公司 | FTP service data based method, system, and device for broadcast system |
CN101193284A (en) * | 2007-12-27 | 2008-06-04 | 北京中星微电子有限公司 | Validation method, system and device for transmission integrity of compressed file |
CN102098125A (en) * | 2009-12-15 | 2011-06-15 | 上海贝尔股份有限公司 | Method and device for processing parallel baseband |
CN102571272A (en) * | 2011-12-14 | 2012-07-11 | 展讯通信(上海)有限公司 | Method and device for receiving service data in communication system, and baseband chip |
Also Published As
Publication number | Publication date |
---|---|
CN106850143B (en) | 2020-08-18 |
CN106850143A (en) | 2017-06-13 |
CN107017966A (en) | 2017-08-04 |
WO2015062503A1 (en) | 2015-05-07 |
CN107017966B (en) | 2020-06-09 |
CN103595504A (en) | 2014-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103595504B (en) | The method for packing and method of calibration of packet | |
JP6452013B2 (en) | Transmission method, transmission apparatus and system | |
JP5169449B2 (en) | Wireless communication apparatus and reception method | |
JP5676589B2 (en) | Encryption detection using error detection on received data | |
CN109257194B (en) | Handle method, apparatus, equipment and the system of the OAM Information of bearer path | |
CN112367680A (en) | External communication test method and device based on intelligent electric meter and computer equipment | |
CN105847961A (en) | Audio data processing method and apparatus | |
CN104698479A (en) | Method and device for decoding navigation messages | |
CN110099036B (en) | Data encapsulation method based on fusion transmission system | |
CN117395185B (en) | Data processing method, device, equipment and medium of Asub interface | |
CN107566085A (en) | A kind of bit error code method of testing and system based on FC buses | |
CN103957070B (en) | The localization method of a kind of Frame and device | |
CN114760375A (en) | Data sending method and device for multi-screen vehicle-mounted system, data transmission method and vehicle | |
KR102645325B1 (en) | Apparatus and method for acquiring synchrophasor data from different pmus | |
US20040068689A1 (en) | Method and apparatus for CRC size reduction | |
US6021133A (en) | Communication processing method using a buffer array as a virtually circular buffer | |
US8427960B2 (en) | Method and device for analyzing data | |
CN111885637B (en) | Method, device and system for testing signal strength of base station and storage medium | |
CN106293978A (en) | A kind of method and apparatus of data feedback | |
CN116016721B (en) | Message processing method, device, electronic device and computer readable storage medium | |
CN118488120B (en) | Network security transmission method, system, equipment and storage medium | |
CN119323975A (en) | Method for audio frame dynamic reorganization and audio quality analysis | |
EP2194668A2 (en) | Apparatus and method for generating frame for mpe-fec decoding | |
CN120050016A (en) | A data extraction and insertion method and system | |
US20070261031A1 (en) | Apparatus and method for encoding the execution of hardware loops in digital signal processors to optimize offchip export of diagnostic data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Room 1018, block B, No. three East Bridge Road, Pudong New Area, Shanghai, 200125, China Applicant after: Shanghai NERC-DTV National Engineering Research Center Co., Ltd. Address before: 200125 Shanghai East Road, Pudong New Area, No. three, No. 1018 Applicant before: Shanghai NERC-DTV National Engineering Research Center Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |