CN102802198A - Data alignment method and device - Google Patents

Data alignment method and device Download PDF

Info

Publication number
CN102802198A
CN102802198A CN2011101368977A CN201110136897A CN102802198A CN 102802198 A CN102802198 A CN 102802198A CN 2011101368977 A CN2011101368977 A CN 2011101368977A CN 201110136897 A CN201110136897 A CN 201110136897A CN 102802198 A CN102802198 A CN 102802198A
Authority
CN
China
Prior art keywords
queues
sequence number
bag sequence
packet
bag
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.)
Granted
Application number
CN2011101368977A
Other languages
Chinese (zh)
Other versions
CN102802198B (en
Inventor
陈诗军
马书宇
陆海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110136897.7A priority Critical patent/CN102802198B/en
Publication of CN102802198A publication Critical patent/CN102802198A/en
Application granted granted Critical
Publication of CN102802198B publication Critical patent/CN102802198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a data alignment method and a data alignment device. The method comprises the following steps of: acquiring received data; aligning data packets in each queue group of the data according to packet sequence numbers and clocks; and transmitting the aligned data packets. By using the technical scheme, the data packets can be adaptively aligned, the sequence numbers of the data packets transmitted by each processing node under timing signals are ensured to be consistent, the data of an asynchronous system and a synchronous system can be synchronized, the received data can be quickly aligned, and the problem of great input time sequence differences of subsequent functional modules is solved.

Description

Alignment of data method and device
Technical field
The present invention relates to field of mobile communication, particularly relate to a kind of alignment of data method and device.
Background technology
Improving constantly of Along with people's life and production demand, the user also constantly proposes higher requirement to the disposal ability of processor.Not only occur network processing unit at present, also multiple nucleus system occurred.In addition, along with the continuous development of integrated system, what system became becomes increasingly complex, and a system often is made up of a plurality of separate, co-operating processing units, accomplishes complicated work.
Aspect the signal Synchronization requirement, system can be divided into synchro system and asynchronous system, and along with the development of communication, two kinds of systems all are widely used in practice.
Fig. 1 is the structural representation of transfer of data between synchro system and the asynchronous system in the prior art; As shown in Figure 1, between two synchro systems, need through transmitting network; This transmission network is an asynchronous system; Under the network architecture as shown in Figure 1, exist at the same time under the situation of synchro system and asynchronous system, what the system of complicated multiplied unit how can be effectively handles synchronize feature data and asynchronous nature data is a urgent problem.
Summary of the invention
The present invention provides a kind of alignment of data method and device, with solve prior art can not be effectively in the system of complicated multiplied unit to synchronize feature data and asynchronous nature data handle problem.
The present invention provides a kind of alignment of data method, comprising:
Obtain the data that receive;
Packet in each set of queues of data is alignd according to bag sequence number and clock;
Send the packet after aliging.
Preferably, each set of queues of data is adjusted, the packet in the set of queues is alignd according to bag sequence number and clock specifically to be comprised:
First timing mark signal is set;
Obtain the bag sequence number of carrying in the queue heads of each set of queues, select the maximum set of queues of the bag sequence number of carrying in the queue heads, with this set of queues as set of queues the soonest;
It is poor with the Bale No. of the fastest set of queues to calculate other set of queues;
Based on label difference and first timing mark signal packet in other set of queues is alignd with packet in the set of queues the soonest according to bag sequence number and first timing mark signal.
Preferably, said method also comprises:
The second timing signal sign is set;
Obtain the bag sequence number of the current packet that need to send of each set of queues, and preserve respectively should the bag sequence number, under second timing signal sign situation then, send in each set of queues and the corresponding packet of preserving of bag sequence number.
Preferably, said method also comprises:
When the second timing signal sign is set,, then adds up and/or report to the police if there has been the second timing signal sign.
Preferably, obtain the bag sequence number of the current packet that need to send of each set of queues, and preserve respectively should the bag sequence number, under second timing signal sign situation then, sends in each set of queues and specifically comprise with the corresponding packet of preserving of bag sequence number:
Whether inspection exists the second timing signal sign, if exist, judges then whether the bag sequence number of the packet of a transmission on bag sequence number and this set of queues of the current packet that needs to send of each set of queues is continuous;
For discontinuous set of queues, the bag sequence number that this set of queues is preserved is updated to the current bag sequence number that needs the packet of transmission of this set of queues, and the corresponding packet of bag sequence number that sends and preserve;
For continuous set of queues, judge the bag sequence number whether bag sequence number that this set of queues preserves preserves smaller or equal to other set of queues, if be judged as not; Then judge pre-determined number continuously; If still be judged as not, then remove the second timing signal sign, wait for regularly next; If judge the bag sequence number that the bag sequence number of this set of queues preservation is preserved smaller or equal to other set of queues, then send this set of queues packet corresponding, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission with the bag sequence number of preservation;
If also having packet in each set of queues waits to send out; Then judge the bag sequence number whether bag sequence number that this set of queues preserves preserves less than other set of queues; If be judged as be; The corresponding packet of bag sequence number that then abandons and preserve, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission;
Remove the second timing signal sign, wait for regularly next.
The present invention also provides a kind of alignment of data device, comprising:
Acquisition module is used to obtain the data that receive;
Alignment module is used for the packet of set of queues is alignd according to bag sequence number and clock;
Sending module is used to send the packet after the alignment.
Preferably, alignment module specifically is used for:
First timing mark signal is set;
Obtain the bag sequence number of carrying in the queue heads of each set of queues, select the maximum set of queues of the bag sequence number of carrying in the queue heads, with this set of queues as set of queues the soonest;
It is poor with the Bale No. of the fastest set of queues to calculate other set of queues;
Based on label difference and first timing mark signal packet in other set of queues is alignd with packet in the set of queues the soonest according to bag sequence number and first timing mark signal.
Preferably, said apparatus also comprises:
Clock module is used to be provided with the second timing signal sign;
Information exchange unit is used to obtain the bag sequence number of the packet that the current needs of each set of queues send, and preserve respectively should the bag sequence number, under second timing signal sign situation then, sends in each set of queues and the corresponding packet of preserving of bag sequence number.
Preferably, device also comprises: detection module, be used for when the second timing signal sign is set, and if there has been the second timing signal sign, then adds up and/or report to the police.
Preferably, information exchange unit specifically is used for:
Whether inspection exists the second timing signal sign, if exist, judges then whether the bag sequence number of the packet of a transmission on bag sequence number and this set of queues of the current packet that needs to send of each set of queues is continuous;
For discontinuous set of queues, the bag sequence number that this set of queues is preserved is updated to the current bag sequence number that needs the packet of transmission of this set of queues, and the corresponding packet of bag sequence number that sends and preserve;
For continuous set of queues, judge the bag sequence number whether bag sequence number that this set of queues preserves preserves smaller or equal to other set of queues, if be judged as not; Then judge pre-determined number continuously; If still be judged as not, then remove the second timing signal sign, wait for regularly next;
If judge the bag sequence number that the bag sequence number of this set of queues preservation is preserved smaller or equal to other set of queues, then send this set of queues packet corresponding, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission with the bag sequence number of preservation;
If also having packet in each set of queues waits to send out; Then judge the bag sequence number whether bag sequence number that this set of queues preserves preserves less than other set of queues; If be judged as be; The corresponding packet of bag sequence number that then abandons and preserve, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission;
Remove the second timing signal sign, wait for regularly next.
Beneficial effect of the present invention is following:
Through the data in each set of queues are alignd; Solved in the prior art in the system of complicated multiplied unit can not be effectively to synchronize feature data and asynchronous nature data handle problem; The embodiment of the invention can be carried out the packet alignment adaptively; The sequence number that guarantees the packet that each processing node sends under timing signal is consistent; Can make data sync between asynchronous system and the synchro system, the data that rapid abutting joint is received are alignd, and have avoided the big problem of input timing difference of follow-up functional module.
Description of drawings
Fig. 1 is the structural representation of transfer of data between synchro system and the asynchronous system in the prior art;
Fig. 2 is the flow chart of the alignment of data method of the embodiment of the invention;
Fig. 3 is the synchronously preceding data time sequence figure of the embodiment of the invention;
Fig. 4 is the synchronous back data time sequence figure of the embodiment of the invention;
Fig. 5 is that the data-bag lost of the embodiment of the invention is asked the data time sequence figure that handles under the condition;
Fig. 6 is the data time sequence figure that handles under the inhomogeneous situation of the packet of the embodiment of the invention;
Fig. 7 is the process chart that the reception of the alignment of data method of the embodiment of the invention is alignd;
Fig. 8 is the sketch map that regularly triggers flow process in the transmission registration process of the embodiment of the invention;
Fig. 9 is the detail flowchart of the transmission registration process of the embodiment of the invention;
Figure 10 is the scene sketch map of the embodiment of the invention;
Figure 11 is the sketch map of the data time sequence of base band data in formation that send three base stations of some moment before the embodiment of the invention reception alignment;
Figure 12 is the sketch map of the data time sequence of base band data in formation that sent three base stations of some moment before the transmission of the embodiment of the invention was alignd;
Figure 13 is the structural representation of the alignment of data device of the embodiment of the invention;
Figure 14 is the network architecture sketch map of the embodiment of the invention;
Figure 15 is the preferred structure sketch map of the alignment of data device of the embodiment of the invention;
Figure 16 is the information exchange unit and the mutual sketch map of each processing unit of the embodiment of the invention.
Embodiment
For solve existing skill prior art can not be effectively in the system of complicated multiplied unit to synchronize feature data and asynchronous nature data handle problem; The invention provides a kind of alignment of data method and device; Below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, does not limit the present invention.
Method embodiment
According to embodiments of the invention, a kind of alignment of data method is provided, Fig. 2 is the flow chart of the alignment of data method of the embodiment of the invention, and is as shown in Figure 2, comprises following processing according to the alignment of data method of the embodiment of the invention:
Step 201 is obtained the data that receive;
Step 202 is adjusted each set of queues of data, that is, the packet in each set of queues of data is alignd according to bag sequence number and clock;
Step 202 specifically comprises following processing:
1, first timing mark signal is set;
2, obtain the bag sequence number of carrying in the queue heads of each set of queues, select the maximum set of queues of the bag sequence number of carrying in the queue heads, with this set of queues as set of queues the soonest;
3, it is poor with the Bale No. of the fastest set of queues to calculate other set of queues;
4, according to the label difference and first timing mark signal pointer of other set of queues is adjusted, that is, the packet in other set of queues is alignd with packet in the set of queues the soonest according to bag sequence number and first timing mark signal (being above-mentioned clock).
Step 203 is sent the packet after aliging.
After step 203, also comprise the processing of sending alignment, specifically comprise the steps:
Step 1, the second timing signal sign is set; Wherein, when the second timing signal sign is set,, then adds up and/or report to the police if there has been the second timing signal sign.
Need to prove that the frequency that the fixed time interval of second timing signal sign and packet send is consistent, timing signal need be same timer clock source, mainly is used for to the transmission of aliging of the first packet of each processing unit.
Step 2, obtain the bag sequence number of the current packet that need to send of each set of queues, and preserve respectively should the bag sequence number, under second timing signal sign situation then, send in each set of queues and the corresponding packet of preserving of bag sequence number.
Step 2 specifically comprises following processing:
1, whether inspection exists the second timing signal sign, if exist, judges then whether the bag sequence number of the packet of a transmission on bag sequence number and this set of queues of the current packet that needs to send of each set of queues is continuous;
2, for discontinuous set of queues, the bag sequence number that this set of queues is preserved is updated to the current bag sequence number that needs the packet of transmission of this set of queues, and the corresponding packet of bag sequence number that sends and preserve;
3,, judge the bag sequence number whether bag sequence number that this set of queues preserves preserves smaller or equal to other set of queues, if be judged as not for continuous set of queues; Then judge pre-determined number continuously; If still be judged as not, then remove the second timing signal sign, wait for regularly next; If judge the bag sequence number that the bag sequence number of this set of queues preservation is preserved smaller or equal to other set of queues, then send this set of queues packet corresponding, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission with the bag sequence number of preservation;
If also having packet in 4 each set of queues waits to send out; Then judge the bag sequence number whether bag sequence number that this set of queues preserves preserves less than other set of queues; If be judged as be; The corresponding packet of bag sequence number that then abandons and preserve, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission;
5, remove the second timing signal sign, wait for regularly next.
Fig. 3 is the synchronously preceding data time sequence figure of the embodiment of the invention, and Fig. 4 is the synchronous back data time sequence figure of the embodiment of the invention, can find out that from Fig. 3 and Fig. 4 the synchronously preceding irregular packet that does not rise after aliging through said method, has been realized the synchronous of packet.
Fig. 5 is that the data-bag lost of the embodiment of the invention is asked the data time sequence figure that handles under the condition, and is as shown in Figure 5, if some data-bag losts of some set of queues, then handle according to as shown in Figure 5.The embodiment of the invention can adjusted under the situation of a certain road packet loss adaptively, in the almost adjustment insusceptibly of next cycle of packet loss.
Fig. 6 is the data time sequence figure that handles under the inhomogeneous situation of the packet of the embodiment of the invention, and is as shown in Figure 6, if the packet of a certain set of queues packet loss not; Be wrap inhomogeneous; Earlier rare back is thick, and promptly one-period does not wrap, and next cycle comes the situation of two bags; Then handle, can in 2 cycles, adjust adaptively according to as shown in Figure 6; If earlier thick back is rare, then unaffected.
Below in conjunction with accompanying drawing, the technique scheme of the embodiment of the invention is elaborated.
Fig. 7 is the process chart that the reception of the alignment of data method of the embodiment of the invention is alignd, and is as shown in Figure 7, comprises following processing:
Step 701 receives the data in the set of queues;
Step 702 is checked all set of queues, according to the bag sequence number of queue heads, finds out the fastest formation, and wherein, what the bag sequence number was maximum is the fastest formation;
Step 703, the Bale No. of formation is poor relatively the soonest to calculate other formations;
Step 704 judges whether said Bale No. difference equals 0, if equal 0, then execution in step 708, otherwise, execution in step 705;
Step 705 judges whether the bag number in the formation is poor greater than said Bale No., if be judged as is, then execution in step 706, otherwise, execution in step 707;
Step 706 is directly according to the Bale No. difference queue pointer that moves forward, execution in step 708;
Step 707 directly arrives rear of queue, execution in step 708 to pointer movement;
Whether step 708, the queue heads of judging all formations must wrap sequence number and equate, if be judged as are execution in step 709;
Step 709 is handled data;
Step 710, the pointer of all formations that move forward.
Fig. 8 is the sketch map that regularly triggers flow process in the transmission registration process of the embodiment of the invention, and is as shown in Figure 8, comprises following processing:
The hardware timing signal of step 801 and the same frequency of synchronization packets is come;
Step 802 is provided with timing mark signal, and carries out abnormality detection, when timing mark signal is provided with, then this kind situation is added up or is alarmed, and this situation explanation is sent main flow and occurred unusually, and it is excessive that perhaps the main flow processing delay is sent in explanation.
Fig. 9 is the detail flowchart of the transmission registration process of the embodiment of the invention, and is as shown in Figure 9, comprises following processing:
Step 901 reads timing index;
Step 902 judges whether to exist timing index, if exist, then execution in step 903, otherwise, execution in step 901;
Step 903 judges whether the Bale No. in the formation equals the Bale No. NEXTNUM of the current packet that will send; If be judged as be, then execution in step 904, otherwise, execution in step 913;
Step 904, the number of times M of execution in step 903 is set to 0 once more;
Step 905 is judged under formation has data conditions, and whether NEXTNUM smaller or equal to the bag sequence number of other formations, if be judged as be, then execution in step 906, otherwise, execution in step 908;
Step 906, M is set to M+1;
Step 907 judges that whether M is greater than maximum times TRYNUM; If be judged as be, then execution in step 915, otherwise, execution in step 905;
Step 908 is updated to NEXTNUM bag sequence number+1 of packet;
Step 909 is sent the packet corresponding with NEXTNUM;
Step 910 judges whether that packet does not send in addition, is that then execution in step 911 if be judged as;
Step 911, whether the NEXTNUM that judges this processing unit is that then execution in step 912 if be judged as less than the NEXTNUM of other processing units;
Step 912 abandons this packet, and upgrades NEXTNUM; Execution in step 915;
Step 913 is updated to NEXTNUM Bale No.+1 of packet;
Step 914 is sent the packet corresponding with NEXTNUM;
Step 915 is removed timing index.
Below the technique scheme of the embodiment of the invention is illustrated.
Figure 10 is the scene sketch map of the embodiment of the invention, and is shown in figure 10, and main the completion handled the baseband signal between 3 base stations, 3 users (UE).The time domain baseband signal of 3 base stations receives registration process through behind the optical fiber transmission network, handles through transmitting channel module behind the alignment of data, sends registration process then, issues UE.The signal received of all UE all is the baseband signal of alignment synchronously like this.
Figure 11 is the sketch map of the data time sequence of base band data in formation that send three base stations of some moment before the embodiment of the invention reception alignment, and shown in figure 11, it is following to receive the queue processing process:
Step 1 is found out the fastest formation, and the Bale No. of the fastest formation is 24.
Step 2, the Bale No. of formation is poor relatively the soonest to calculate other formations, is respectively:
Formation 1 Bale No. is poor=and-3
Formation 2 Bale No.s are poor=and 0
Formation 3 Bale No.s are poor=and-1
Step 3 is carried out queue pointer's adjustment to other formations according to the Bale No. difference, and then queue head pointer all can point to the bag that Bale No. equals 24.
Step 4 equals Bale No. 24 packet and issues follow-up resume module.
Figure 12 is the sketch map of the data time sequence of base band data in formation that sent three base stations of some moment before the transmission of the embodiment of the invention was alignd, and is shown in figure 12, NEXTNUM1=1, NEXTNUM2=1, NEXTNUM3=1.
Step 1, main flow circular test timing index;
Step 2, A constantly, it is continuous to satisfy Bale No., simultaneously less than the condition of other NEXTNUM, sends three Bale No.s and be 1 packet; B constantly, the second tunnel with Third Road to satisfy Bale No. continuous, simultaneously less than the condition of other NEXTNUM, send Bale No. respectively and be 2 packet.C constantly, first via Bale No. is discontinuous, directly sends Bale No. and be 3 packet, simultaneously NEXTNUM1=4.Simultaneously the second the tunnel attempt detecting other roads NEXTNUM continuously with Third Road, this moment NEXTNUM1=4, so the second the tunnel with Third Road all can to satisfy Bale No. continuous, simultaneously less than the condition of other NEXTNUM, send three Bale No.s and be 3 packet; It is continuous that D, E, F satisfy Bale No. constantly, simultaneously less than the condition of other NEXTNUM, sends Bale No. respectively and be 4,5,6 packet.
The embodiment of the invention can be carried out the packet alignment adaptively; Do not need to set aside some time in advance; And the sequence number that guarantees the packet that each processing node sends under timing signal is consistent; Can make data sync between asynchronous system and the synchro system, the data that rapid abutting joint is received are alignd, and have avoided the big problem of input timing difference of follow-up functional module.
Device embodiment
According to embodiments of the invention; A kind of alignment of data device is provided; Figure 13 is the structural representation of the alignment of data device of the embodiment of the invention; Shown in figure 13, comprise according to the alignment of data device of the embodiment of the invention: acquisition module 130, alignment module 132, sending module 134, below carry out detailed explanation to each module of the embodiment of the invention.Particularly:
Acquisition module 130 is used to obtain the data that receive;
Alignment module 132 is used for each set of queues of data is adjusted, that is, the packet in each set of queues of data is alignd according to bag sequence number and clock;
Particularly, alignment module 132 specifically is used for:
1, first timing mark signal is set;
2, obtain the bag sequence number of carrying in the queue heads of each set of queues, select the maximum set of queues of the bag sequence number of carrying in the queue heads, with this set of queues as set of queues the soonest;
3, it is poor with the Bale No. of the fastest set of queues to calculate other set of queues;
4, according to the label difference and first timing mark signal pointer of other set of queues is adjusted, that is, the packet in other set of queues is alignd with packet in the set of queues the soonest according to bag sequence number and first timing mark signal (being above-mentioned clock).
Sending module 134 is used to send the packet after the alignment.
Said apparatus can also comprise:
Clock module is used to be provided with the second timing signal sign;
Information exchange unit is used to obtain the bag sequence number of the packet that the current needs of each set of queues send, and preserve respectively should the bag sequence number, under second timing signal sign situation then, sends in each set of queues and the corresponding packet of preserving of bag sequence number.
That is to say that information exchange unit is used for each processing unit swapping data and sends process.Each processing unit is put into the bag sequence number NEXTNUM of current transmission in the information exchange unit.
Detection module is used for when the second timing signal sign is set, if there has been the second timing signal sign, then adds up and/or reports to the police.
Wherein, information exchange unit specifically is used for:
1, whether inspection exists the second timing signal sign, if exist, judges then whether the bag sequence number of the packet of a transmission on bag sequence number and this set of queues of the current packet that needs to send of each set of queues is continuous;
2, for discontinuous set of queues, the bag sequence number that this set of queues is preserved is updated to the current bag sequence number that needs the packet of transmission of this set of queues, and the corresponding packet of bag sequence number that sends and preserve;
3,, judge the bag sequence number whether bag sequence number that this set of queues preserves preserves smaller or equal to other set of queues, if be judged as not for continuous set of queues; Then judge pre-determined number continuously; If still be judged as not, then remove the second timing signal sign, wait for regularly next;
If 4 judge the bag sequence number of the bag sequence number of this set of queues preservation smaller or equal to other set of queues preservations, then send this set of queues packet corresponding, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission with the bag sequence number of preservation;
If also having packet in 5 each set of queues waits to send out; Then judge the bag sequence number whether bag sequence number that this set of queues preserves preserves less than other set of queues; If be judged as be; The corresponding packet of bag sequence number that then abandons and preserve, and the bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission;
6, remove the second timing signal sign, wait for regularly next.
Figure 14 is the network architecture sketch map of the embodiment of the invention, and is shown in figure 14, transmitting between network and the synchro system, and the alignment of data device of the embodiment of the invention is set.
Figure 15 is the preferred structure sketch map of the alignment of data device of the embodiment of the invention; Shown in figure 15; Comprise and receive alignment module and send alignment module; Wherein, receive acquisition module 130, alignment module 132, sending module 134 that alignment module is equivalent to the embodiment of the invention, send clock module, information exchange unit and detection module that alignment module is equivalent to the embodiment of the invention.
Figure 16 is the information exchange unit and the mutual sketch map of each processing unit of the embodiment of the invention; Shown in figure 16; Comprise processing unit 1, processing unit 2, processing unit 3 and information exchange unit; In information exchange unit, processing unit 1 current Bale No., the processing unit 2 current Bale No. and the processing unit 3 current Bale No.s that will send packet that will send packet that will send packet have been preserved.
Receive alignment module and send corresponding description and the accompanying drawing 5-accompanying drawing 9 that the alignment of data processing procedure of alignment module can reference method embodiment and understand, repeat no more at this.Need to prove; The alignment of data device of the embodiment of the invention is mainly used in the interface in synchro system and asynchronous system; Two functional modules promptly receive alignment module and can use separately with the transmission alignment module; Also can unite use, join other functional modules between reception alignment module and the transmission alignment module.
The embodiment of the invention is through aliging to the data in each set of queues; Solved in the prior art in the system of complicated multiplied unit can not be effectively to synchronize feature data and asynchronous nature data handle problem; The embodiment of the invention can be carried out the packet alignment adaptively; The sequence number that guarantees the packet that each processing node sends under timing signal is consistent; Can make data sync between asynchronous system and the synchro system, the data that rapid abutting joint is received are alignd, and have avoided the big problem of input timing difference of follow-up functional module.
Although be the example purpose, the preferred embodiments of the present invention are disclosed, it also is possible those skilled in the art will recognize various improvement, increase and replacement, therefore, scope of the present invention should be not limited to the foregoing description.

Claims (10)

1. an alignment of data method is characterized in that, comprising:
Obtain the data that receive;
Packet in each set of queues of said data is alignd according to bag sequence number and clock;
Send the said packet after aliging.
2. the method for claim 1 is characterized in that, each set of queues of said data is adjusted, and the packet in the said set of queues is alignd according to bag sequence number and clock specifically to be comprised:
First timing mark signal is set;
Obtain the bag sequence number of carrying in the queue heads of said each set of queues, select the maximum set of queues of the bag sequence number of carrying in the said queue heads, with this set of queues as set of queues the soonest;
The Bale No. that calculates other set of queues and said set of queues the soonest is poor;
According to said label difference and said first timing mark signal packet in said other set of queues is alignd with packet in the said set of queues the soonest according to bag sequence number and said first timing mark signal.
3. the method for claim 1 is characterized in that, said method also comprises:
The second timing signal sign is set;
Obtain the bag sequence number of the current packet that need to send of said each set of queues, and preserve respectively should the bag sequence number, under said second timing signal sign situation then, sends in said each set of queues the corresponding packet of said bag sequence number with preservation.
4. method as claimed in claim 3 is characterized in that, said method also comprises:
When said second timing signal sign is set,, then adds up and/or report to the police if there has been said second timing signal sign.
5. method as claimed in claim 3; It is characterized in that; Obtain the current bag sequence number that needs the packet of transmission of said each set of queues; And preserve respectively should bag sequence number, under said second timing signal sign situation then, sends in said each set of queues and specifically comprises with the corresponding packet of said bag sequence number of preservation:
Whether inspection exists said second timing signal sign, if exist, judges then whether the bag sequence number of the packet of a transmission on bag sequence number and this set of queues of the current packet that needs to send of said each set of queues is continuous;
For discontinuous set of queues, the said bag sequence number that this set of queues is preserved is updated to the current bag sequence number that needs the packet of transmission of this set of queues, and the corresponding packet of said bag sequence number that sends and preserve;
For continuous set of queues, judge the said bag sequence number whether said bag sequence number that this set of queues preserves preserves smaller or equal to other set of queues, if be judged as not; Then judge pre-determined number continuously; If still be judged as not, then remove said second timing signal sign, wait for regularly next;
If judge the said bag sequence number that the said bag sequence number of this set of queues preservation is preserved smaller or equal to other set of queues; Then send the corresponding packet of said bag sequence number of this set of queues and preservation, and upgrade the bag sequence number that the said bag sequence number of preserving be the packet of next one needs transmission;
If also having packet in each set of queues waits to send out; Then judge the said bag sequence number whether said bag sequence number that this set of queues preserves preserves less than other set of queues; If be judged as be; The corresponding packet of said bag sequence number that then abandons and preserve, and the said bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission;
Remove said second timing signal sign, wait for regularly next.
6. an alignment of data device is characterized in that, comprising:
Acquisition module is used to obtain the data that receive;
Alignment module is used for the packet of each set of queues of said data is alignd according to bag sequence number and clock;
Sending module is used to send the said packet after the alignment.
7. device as claimed in claim 6 is characterized in that, said alignment module specifically is used for:
First timing mark signal is set;
Obtain the bag sequence number of carrying in the queue heads of said each set of queues, select the maximum set of queues of the bag sequence number of carrying in the said queue heads, with this set of queues as set of queues the soonest;
The Bale No. that calculates other set of queues and said set of queues the soonest is poor;
According to said label difference and said first timing mark signal packet in said other set of queues is alignd with packet in the said set of queues the soonest according to bag sequence number and said first timing mark signal.
8. device as claimed in claim 6 is characterized in that, said device also comprises:
Clock module is used to be provided with the second timing signal sign;
Information exchange unit; Be used to obtain the bag sequence number of the packet that the current needs of said each set of queues send; And preserve respectively should bag sequence number, under said second timing signal sign situation then, sends in said each set of queues the corresponding packet of said bag sequence number with preservation.
9. device as claimed in claim 8 is characterized in that, said device also comprises: detection module, be used for when said second timing signal sign is set, and if there has been said second timing signal sign, then adds up and/or report to the police.
10. device as claimed in claim 8 is characterized in that, said information exchange unit specifically is used for:
Whether inspection exists said second timing signal sign, if exist, judges then whether the bag sequence number of the packet of a transmission on bag sequence number and this set of queues of the current packet that needs to send of said each set of queues is continuous;
For discontinuous set of queues, the said bag sequence number that this set of queues is preserved is updated to the current bag sequence number that needs the packet of transmission of this set of queues, and the corresponding packet of said bag sequence number that sends and preserve;
For continuous set of queues, judge the said bag sequence number whether said bag sequence number that this set of queues preserves preserves smaller or equal to other set of queues, if be judged as not; Then judge pre-determined number continuously; If still be judged as not, then remove said second timing signal sign, wait for regularly next;
If judge the said bag sequence number that the said bag sequence number of this set of queues preservation is preserved smaller or equal to other set of queues; Then send the corresponding packet of said bag sequence number of this set of queues and preservation, and upgrade the bag sequence number that the said bag sequence number of preserving be the packet of next one needs transmission;
If also having packet in each set of queues waits to send out; Then judge the said bag sequence number whether said bag sequence number that this set of queues preserves preserves less than other set of queues; If be judged as be; The corresponding packet of said bag sequence number that then abandons and preserve, and the said bag sequence number that renewal is preserved is the bag sequence number that the next one needs the packet of transmission;
Remove said second timing signal sign, wait for regularly next.
CN201110136897.7A 2011-05-25 2011-05-25 Data alignment method and device Active CN102802198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110136897.7A CN102802198B (en) 2011-05-25 2011-05-25 Data alignment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110136897.7A CN102802198B (en) 2011-05-25 2011-05-25 Data alignment method and device

Publications (2)

Publication Number Publication Date
CN102802198A true CN102802198A (en) 2012-11-28
CN102802198B CN102802198B (en) 2015-09-16

Family

ID=47201139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110136897.7A Active CN102802198B (en) 2011-05-25 2011-05-25 Data alignment method and device

Country Status (1)

Country Link
CN (1) CN102802198B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106793056A (en) * 2016-12-27 2017-05-31 京信通信技术(广州)有限公司 A kind of channel transmission signal alignment method and apparatus
CN111083143A (en) * 2019-12-17 2020-04-28 北京思维造物信息科技股份有限公司 Request response method, device, equipment and storage medium
CN111107165A (en) * 2019-12-30 2020-05-05 深圳市其乐游戏科技有限公司 Disconnection reconnection method, disconnection reconnection device and computer readable storage medium
CN111597239A (en) * 2020-04-10 2020-08-28 中科驭数(北京)科技有限公司 Data alignment method and device
CN111970351A (en) * 2020-08-11 2020-11-20 震坤行工业超市(上海)有限公司 Data alignment-based multi-dimensional sensing optimization method and system for Internet of things

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009581A (en) * 2006-01-24 2007-08-01 北京畅通达通信技术有限公司 Line non-loss automatic switching method and device based on analysis on the transfer quality
CN101048006A (en) * 2006-03-31 2007-10-03 三星电子株式会社 Method and apparatus of acquiring time information in a mobile communication terminal
CN101053182A (en) * 2005-01-05 2007-10-10 Sk电信有限公司 Controlling method and data call handover method for dual bandual mode mobile communication terminal
CN101511042A (en) * 2009-03-23 2009-08-19 中兴通讯股份有限公司 Data synchronization method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101053182A (en) * 2005-01-05 2007-10-10 Sk电信有限公司 Controlling method and data call handover method for dual bandual mode mobile communication terminal
CN101009581A (en) * 2006-01-24 2007-08-01 北京畅通达通信技术有限公司 Line non-loss automatic switching method and device based on analysis on the transfer quality
CN101048006A (en) * 2006-03-31 2007-10-03 三星电子株式会社 Method and apparatus of acquiring time information in a mobile communication terminal
CN101511042A (en) * 2009-03-23 2009-08-19 中兴通讯股份有限公司 Data synchronization method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106793056A (en) * 2016-12-27 2017-05-31 京信通信技术(广州)有限公司 A kind of channel transmission signal alignment method and apparatus
CN106793056B (en) * 2016-12-27 2019-07-23 京信通信***(中国)有限公司 A kind of channel transmission signal alignment method and apparatus
CN111083143A (en) * 2019-12-17 2020-04-28 北京思维造物信息科技股份有限公司 Request response method, device, equipment and storage medium
CN111107165A (en) * 2019-12-30 2020-05-05 深圳市其乐游戏科技有限公司 Disconnection reconnection method, disconnection reconnection device and computer readable storage medium
CN111597239A (en) * 2020-04-10 2020-08-28 中科驭数(北京)科技有限公司 Data alignment method and device
CN111970351A (en) * 2020-08-11 2020-11-20 震坤行工业超市(上海)有限公司 Data alignment-based multi-dimensional sensing optimization method and system for Internet of things
CN111970351B (en) * 2020-08-11 2021-06-22 震坤行工业超市(上海)有限公司 Data alignment-based multi-dimensional sensing optimization method and system for Internet of things

Also Published As

Publication number Publication date
CN102802198B (en) 2015-09-16

Similar Documents

Publication Publication Date Title
US9307563B2 (en) Evolved packet core less direct mode communication system and communication attaching method thereof
CN102307060B (en) A kind of method and apparatus transmitting data
EP2833683B1 (en) Time synchronization method and system using wifi-direct
CN102802198A (en) Data alignment method and device
US10959048B2 (en) System and method for simultaneous location tracking of multiple wireless terminals
CN103916315A (en) Radio Over Ethernet for Radio Access Network and Cloud-RAN
RU2013139301A (en) METHOD AND DEVICE FOR IMPLEMENTATION OF TIME SYNCHRONIZATION
CN102932083B (en) A kind of method and apparatus during microwave synchronization pair
CN109996325A (en) A kind of clock system and method for wireless sensor network
CN106604383B (en) Time synchronization method, master time synchronization device and communication system
CN106341879A (en) GPS time reference-based multi-point synchronous communication method and device
CN107105496A (en) A kind of method and device, system for obtaining, returning to uplink timing advance
CN102244603A (en) Method, equipment and system for transmitting message bearing time
CN103582186A (en) Method and device for BBU interframe data interaction in wireless soft base station
CN106712885A (en) Clock synchronization method, network device and network system
CN104703164A (en) Method of acquiring synchronous references, method of transmitting synchronous information and equipment
CN106549724A (en) A kind of processing method and processing device of time synchronized message
CN108259105B (en) time synchronization processing method and device and synchronization network
CN103533630B (en) Eat dishes without rice or wine method for synchronizing time and system, wireless device, radio equipment controller
CN205657845U (en) Based on GPS time reference multi -point synchronization communication device
CN102769859B (en) A kind of wireless system adjustment method and device
WO2020147660A1 (en) Data transmission method, related device and system
CN104202812A (en) High precision time synchronization method suitable for precise positioning system
CN102761407A (en) Machine frame straddling system and implementation method and device of time and frequency passthrough thereof
CN106792907B (en) A kind of LTE baseband processing unit real-time scheduling method based on antennal interface

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