Embodiment
The embodiment of the invention provides a kind of Frame method of reseptance, device and charging gateway of call bill data, when newly receiving Frame, judge, can in time abandon the repeating data frame, guarantee that the call bill data of preserving does not repeat, further when the Frame that repeats to send that receives, can in time return response, further realize the automatic recovery after abnormal conditions take place to GSN.
As shown in Figure 1, the embodiment of the invention at first provides a kind ofcharging gateway 100, compriseFrame receiving system 101,Frame receiving system 101 can be implemented in to be judged when newly receiving Frame and in time abandons the repeating data frame, and further can in time return to GSN at the Frame that repeats to send that receives and successfully receive response;
Charging gateway 100 can also comprisestorage assurance device 102 andexternal memory 103,external memory 103 is arranged on outside thecharging gateway 100,external memory 103 is permanence storage equipments such as hard disk, disk, andstorage assurance device 102 andexternal memory 103 are realized the automatic recovery after abnormal conditions take place.Wherein:
Frame receiving system 101: be used to receive the Frame that comprises call bill data and number of frames, and judge whether to have write down the number of frames of the Frame of this arrival, if then abandon the Frame of this arrival, otherwise, receive the Frame of this arrival, and write down the number of frames of the Frame of this arrival.
AdoptingFrame receiving system 101 can be implemented in when newly receiving Frame judges, in time abandon the repeating data frame, can guarantee that the call bill data of preserving does not repeat, increasestorage assurance device 102 andexternal memory 103 in order to realize reliable, the efficient storage of call bill data, wherein:
Frame receiving system 101: the number of frames that also is used to preserve the Frame that has received, extract at least one Frame that has received and form packet, and be that packet generates unique packet number, submit to and preserve each Frame of forming this packet, corresponding relation between the number of frames of record packet number and each Frame, and after the call bill data of each Frame is successfully preserved in learning this packet, return the response that successfully receives each Frame to the GSN node; The Frame that comprises setting data in each packet, it is for example one or more to set number;
Storage assurance device 102: be used for the packet that receiving dataframes receiving system 101 is submitted to, the call bill data of each Frame in the packet is saved inexternal memory 103, and successfully preserves the call bill data of successfully preserving each Frame is returned in response from the back toFrame receiving system 101 at the call bill data of each Frame;
External memory 103: be used to preserve the call bill data thatstorage assurance device 102 sends.
The embodiment of the invention provides a kind of Frame method of reseptance of call bill data, and the Frame receiving system records the number of frames of the Frame that has received, as shown in Figure 2, comprises step:
To CG transmit telephone bill data, Frame comprises call bill data and unique number of frames in the Frame mode for S201, GSN node;
S202, when Frame arrives, the Frame receiving system is according to the number of frames of the Frame that has received of the number of frames of the Frame that arrives and record, judge whether to have write down the number of frames of the Frame of this arrival, if then abandon the Frame of this arrival; Otherwise, receive the Frame of this arrival, and write down its number of frames.
In time abandon the repeating data frame in the time of can being implemented in new receiving data frames according to S201 and S202, guarantee that the call bill data of preserving does not repeat, in order to guarantee reliable, the efficient storage of call bill data, further comprising the steps of:
S203, Frame receiving system extract at least one Frame that has received and form packet, and are that described packet generates unique packet number; Should be appreciated that also can be that preservation submitted to by unit with the Frame;
S204, Frame receiving system submit to the storage assurance device and preserve this packet, write down the corresponding relation between the number of frames of the packet number of this packet and each Frame;
S205, storage assurance device submit the Frame receiving system to the call bill data of each Frame in the packet of preserving to be saved in external memory;
S206, storage assurance device return the response of the call bill data of successfully preserving each Frame to the Frame receiving system after successfully preserving call bill data, notification data frame receiving system it submit to the call bill data of each Frame in the packet of preserving successfully to be saved in external memory;
S207, Frame receiving system are learnt after its call bill data of submitting each Frame in the packet of preserving to is preserved successfully and are sent the response that each Frame successfully receives to the GSN node.
For the Frame that guarantees call bill data can rapidly and efficiently abandon the repeating data frame when receiving, and the call bill data of the Frame that can reliable memory have received, the embodiment of the invention further provides following solution, will describe in detail below.
The Frame that in the embodiment of the invention Frame receiving system is received is divided into following four kinds of Frame states, comprises not accepting state, receives but do not submit preservation state to, receive and submitted to preservation state and received and preserved success status.As shown in Figure 3, provide Frame state transition schematic diagram, for the new Frame that sends of a GSN node, if the Frame receiving system never received this Frame, then this Frame is " not receiving " state; This Frame is received the back state by the Frame receiving system and changes into " having received but submission preservation " state; The Frame receiving system can be regularly formed the Frame of some " receive but submit to and preserve " states packet and is submitted to the storage assurance device, and state is changed into " received and submitted to preservation state " state after Frame is submitted; After the storage assurance device was successfully preserved the call bill data and notification data frame receiving system of this Frame, the state of this Frame was changed into " having received and preserved success " state.
Have the formation of a data accepted frame state in the Frame receiving system, the formation of data accepted frame state is kept at the memory headroom of CG, writes down the number of frames of all Frames that received and to Frame state that should number of frames.The formation of data accepted frame state can have multiple implementation method, a kind of more excellent method is the state according to the Frame that has received, the state information of the Frame that corresponding number of frames record has received, state information comprises: first state information, the Frame state of expression corresponding data frame are for receiving but do not submit preservation state to; Second state information, the Frame state of expression corresponding data frame is for receiving and submitted to preservation state; The Frame state of third state information representation corresponding data frame is for receiving and preserved success status.
Another kind of more excellent method is according to the state of the Frame that has received, and number of frames is recorded three number of frames formations respectively, the first number of frames formation, and record has received but has not submitted the number of frames of the Frame of preserving to; The second number of frames formation, record has received and has submitted to the number of frames of the Frame of preservation; The 3rd number of frames formation, record has received and has preserved the number of frames of successful Frame.When the Frame that has received is not submitted to when preserving, the number of frames of this Frame is kept at the first number of frames formation; After the submitted preservation of the Frame that has received, the number of frames of this Frame is kept in the second number of frames formation, and in the first number of frames formation number of frames of this Frame of deletion; After the call bill data of the Frame that has received is successfully preserved, the number of frames of this Frame is kept in the 3rd number of frames formation, and in the second number of frames formation number of frames of this Frame of deletion.
Based on the formation of data accepted frame state, the embodiment of the invention provides a kind of Frame method of reseptance of call bill data, CG preserves the number of frames of the Frame that has received in certain hour scope or the certain number of frames scope and the Frame state of corresponding data frame, when CG newly receives Frame, number of frames according to this Frame judges whether record, if, think that then this Frame repeats, abandon this Frame, and take corresponding operating according to the Frame state, otherwise receive this Frame, as shown in Figure 4, comprising:
S401, when receiving the Frame that the GSN node sends, in the formation of data accepted frame state, search this Frame according to number of frames and whether be recorded in this formation, and take respective handling according to the Frame state, wherein be divided into following four kinds of situations:
If S402a finds the number of frames of this Frame and be not recorded in this formation, promptly this Frame is accepting state not, then receives and this Frame of buffer memory;
If S402b find the number of frames of this Frame be recorded in this formation and the Frame state for receiving but do not submit preservation state to, then abandon this Frame;
If S402c find the number of frames of this Frame be recorded in this formation and the Frame state for receiving and submitted to preservation state, then abandon this Frame;
If S402d find the number of frames of this Frame be recorded in this formation and the Frame state for receiving and preserved success status, then abandon this Frame, and return the response that successfully receives this Frame to the GSN node.
Wherein the Frame state can be judged according to the state information of the number of frames correspondence of this Frame, and perhaps the concrete number of frames state queue of preserving according to the number of frames of this Frame is judged.
The Frame method of reseptance of the repeating data frame that arrives according to the queue drop of data accepted frame state is judged when newly receiving Frame, can in time abandon the repeating data frame, guarantees that the call bill data of preserving does not repeat, and method is simply efficient; The opportunity that abandons the repeating data frame is reasonable, and can respond the GSN end timely and effectively to the repeating data frame that receives.
Behind Frame reception and the buffer memory, the Frame receiving system regularly takes out some data in buffer frame, is combined into a packet that comprises at least one Frame, is that each packet generates unique packet number.The Frame receiving system is submitted Frame with data packet form to the storage assurance device; the call bill data of each Frame is stored assurance device and sequentially is saved in external memory in the packet; adopted two states persistence object; guarantee the reliability of call bill data storage; state persistence object is kept in the permanence storage equipments such as hard disk; can adopt the form of file or database to preserve; two states persistence object comprises packet state persistence object and packet preservation location status persistence object, wherein:
Packet state persistence object comprises the number of frames of each Frame in the packet of submission, and packet of every submission can generate a packet state persistence object, and comprises packet number in the title of packet state persistence object;
Packet is preserved location status persistence object and is comprised the packet number that is stored last packet that assurance device successfully preserves.
Based on formation of data accepted frame state and two states persistence object, the embodiment of the invention provides a kind of Frame of call bill data to receive store method, as shown in Figure 5, comprises step:
S501, Frame receiving system extract at least one Frame and form packet from the Frame of buffer memory, can adopt the mode of timing extraction, and are the unique packet number of packet generation;
The number of frames that S502, Frame receiving system will be formed each Frame of packet is recorded in a packet state persistence object, and packet number is write in the title of this packet state persistence object;
S503, Frame receiving system send to the storage assurance device with this packet;
S504, storage assurance device are saved in external memory with the call bill data of each Frame in the packet, after preserving successfully packet number is recorded in packet and preserves location status persistence object, and return the response of the call bill data of successfully preserving each Frame to the Frame receiving system;
S505, when the Frame receiving system receive the storage assurance device response after, can in the packet state persistence object of correspondence, search the number of frames of the Frame of success preservation according to the packet number in the response, and in the formation of data accepted frame state, these Frame corresponding data frame states are refreshed to receiving and preserved success status, and reply the response that successfully receives this Frame to the GSN host node.
The Frame store method of the call bill data that the embodiment of the invention provides, guaranteed that Frame is saved in external memory reliably, need not to pick heavily, and avoid repeating data is stored in the external memory, feasible visit capacity to external memory reduces greatly.
The embodiment of the invention provides the automatic recovery method after abnormal conditions take place simultaneously.Abnormal conditions refer to the emergency case that some expections are outer, and for example network connects and hardware and software failure such as interrupts, the equipment burst is restarted, system's power down, software process are withdrawed from unusually.After abnormal conditions take place, because data accepted frame state queue record is at the memory headroom of CG, so can lose, CG need recover to have received in the formation of data accepted frame state and the number of frames of the Frame correspondence of successful preservation state, and the repeating data frame of avoiding the GSN node to send is repeated reception because lacking comparison information.Because packet state persistence object and packet are preserved location status persistence object and are forever preserved, so all before can taking place according to packet state persistence object recovery abnormal conditions have received and the number of frames of the successful Frame of preserving, it is added the formation of data accepted frame state, and the Frame state of corresponding data frame is set to receive and preserved success status, and method comprises:
After abnormal conditions take place, whether the maximum of packet number equates with the packet number that packet is preserved location status persistence object in the judgment data bag state persistence object, if, then the number of frames that writes down in each packet state persistence object is added the formation of data accepted frame state again, and the Frame state of corresponding data frame is set to receive and preserved success status;
If not, then delete the packet state persistence object of the maximum correspondence of packet number, and the number of frames that writes down in the remainder data bag state persistence object added the formation of data accepted frame state again, and the Frame state of corresponding data frame is set to receive and preserved success status.
On the different opportunitys of taking place at abnormal conditions, the automatic recovery method after the abnormal conditions that the embodiment of the invention is provided take place is described:
Abnormal conditions 1, when submitting packet to but abnormal conditions take place when not finishing the record of packet persistence object, as shown in Figure 6, the packet number of supposing the minimum of the packet state persistence object preserved in the current system is K, maximum packet number is K+N, because the record of packet persistence object is not finished, the record of packet preservation position persistence object is consistent with maximum packet number, i.e. the packet number that writes down in the packet preservation location status persistence object also is K+N.As can be known, packet number be K to the packet of K+N all is packets that success is preserved.In this case, before taking place with respect to abnormal conditions in the data accepted frame state formation after call bill data recovers, lacked and receive but do not submit the Frame number of frames of preservation state to, as shown in Figure 7.
Abnormal conditions 2, when submitting packet to but do not finish abnormal conditions take place when packet is preserved the record of position persistence object, as shown in Figure 8, the packet number of supposing the minimum of the packet state persistence object preserved in the current device is K, maximum packet number is K+N, because packet is preserved the record of position persistence object and is not finished, the record of packet preservation position persistence object and the previous sequence number of maximum packet number are consistent, and it is K+N-1 that packet is preserved the packet number that writes down in the location status persistence object.As can be known, packet number is K to the packet of K+N-1 all is packets that success is preserved, and needs first deleted data bag persistence object K+N when call bill data recovers.In this case, before taking place with respect to abnormal conditions in the formation of call bill data recovered data frame state, lacked and receive but do not submit preservation state to and received and submitted to the number of frames information of two kinds of Frames of preservation state, shown in 9 figure.
Abnormal conditions 3, abnormal conditions when finishing that packet is preserved position persistence object record but do not take place during the state of refresh data frame, as shown in Figure 6, the packet number of the minimum of the packet state persistence object of preserving in the current device is K, maximum packet number is K+N, simultaneously, the packet number that writes down in the packet preservation location status persistence object is K+N.Though received and submitted to the state of the Frame of preservation state not refresh to receiving and preserved success status, this partial data frame is successfully preserved, so call bill data should be with its state refresh for receiving and preserved success status after recovering.As can be known, sequence number be K to the packet of K+N all is packets that success is preserved.In this case, before taking place with respect to abnormal conditions in the formation of call bill data recovered data frame state, lacked and receive but do not submit the number of frames information of the Frame of preservation state to, as shown in figure 10.Should be appreciated that number of frames and packet number can adopt the mode of increasing or decreasing to represent, is 1 to be that example can be realized with increment, and other situations are suitable for too.
Based on above description, automatically before taking place with respect to abnormal conditions in the formation of recovered data frame state, lacked receive but do not submit to preservation state Frame number of frames information and/or lacked the number of frames information that receives and submitted the Frame of preservation state to, but because this part Frame is not replied response frame, the GSN node can be retransmitted this part Frame behind certain hour, avoided losing of Frame.Simultaneously, be restored, repeat to receive when having avoided Data Receiving and preserved successful Frame owing to received and preserved the number of frames of success status.
Automatic recovery method after the abnormal conditions that the embodiment of the invention provides take place has greatly improved correctness and reliability that Frame receives.
The embodiment of the invention provides the length control method of a kind of data accepted frame state formation.The length of data accepted frame state formation can influence the speed of searching number of frames and Frame state, and queue length is long, can make seek rate slack-off, thereby the speed that causes abandoning the repeating data frame in the receiving course descends.On the other hand, sequence number and the Frame state of preserving the Frame of a large amount of preservations of success also can take a large amount of memory headrooms and external space, the formation of data accepted frame state is kept at memory headroom, and packet state persistence object is kept at external space.Therefore, the length of control data accepted frame state formation, the information that cleans out the expired Frame that receives and preserved success status in time is extremely important.
The embodiment of the invention provides a kind of data accepted frame state queue length control method, as shown in figure 11, suppose in the current system, packet number minimum in the packet state persistence object of preserving is K, the packet number that packet is preserved location status persistence object record is K+N, and this method comprises:
When packet number is the packet of K+N when preserving successfully, the Frame sum that comprises among the calculated data bag state persistence object K+1 to K+N;
When this Frame sum surpasses the length threshold L that is provided with, L is set to the length greater than GSN node send window, for example L is 1500, the number of frames that in the formation of data accepted frame state, comprises among the deleted data bag state persistence object K then, the memory headroom that i.e. cleaning takies, and deleted data bag state persistence object K, i.e. the external space that cleaning takies.
The data accepted frame state queue length control method that the embodiment of the invention provides, can effectively control the length of data accepted frame state formation, guarantee the speed that abandons the repeating data frame in the receiving course, and cleared up the interior external space that the expired Frame that receives and preserved success status takies automatically.
As shown in figure 12, the embodiment of the invention provides a kind of implementation structure of the Frame receiving system of call bill data, is arranged in the charging gateway, comprising:
Receiving element 1200: be used for receiving data frames, described Frame comprises call bill data and number of frames;
Control unit 1201: be used to judge whether write down the number of frames of the Frame of this arrival, if then abandon the Frame of this arrival, otherwise, receive and Frame that buffer memory should arrive, and write down the number of frames of the Frame of this arrival.
Said two units has realized receiving and abandoning the function of repeating data frame in receiving course, all be arranged in theFrame receiving system 101, when the call bill data of Frame is preserved in follow-up submission,Frame receiving system 101 also comprises number offrames memory cell 1202,Frame buffer unit 1203, packet commitunit 1204, packet commitunit 1204 external hard disks, disks etc. have the firstpersistent storage unit 1205 of permanent storage function,storage assurance device 102 comprises thatstorage guarantees unit 1206, storage guarantees thatunit 1206 is connected with call billdata memory cell 1207, the firstpersistent storage unit 1205 and call billdata memory cell 1207 all are arranged inexternal memory 103, wherein:
Number of frames memory cell 1202: the number of frames that is used to preserve the Frame of this arrival;
Frame buffer unit 1203: be used for the Frame that cachingcontrol unit 1201 has received;
Packet commit unit 1204: be used for extracting at least one Frame and form packet fromFrame buffer unit 1203, and be that packet generates unique packet number, submit to and preserve each Frame of forming this packet, the corresponding relation between the number of frames of packet number and each Frame is recorded the firstpersistent storage unit 1205;
The first persistent storage unit 1205: be used to preserve the corresponding relation between the number of frames of the packet number of the packet of having submitted preservation to and each Frame;
Storage guarantees unit 1206: be used to receive packet that packet commitunit 1204 submits to and the call bill data of each Frame is saved in call billdata memory cell 1207, after the call bill data of each Frame is successfully preserved, return the response of the call bill data of successfully preserving each Frame to controlunit 1201;
Control unit 1201 also is used for returning the response that successfully receives each Frame to the GSN node after the response that receives the call bill data of successfully preserving each Frame that returnsstorage assurance unit 1206;
Call bill data memory cell 1207: be used to preserve the call bill data that storage guarantees thatunit 1206 sends.
In order further to preserve the Frame state of number of frames corresponding data frame in number offrames memory cell 1202,Frame receiving system 101 also comprises the firstmanagement indicating member 1208, wherein:
Packet commit unit 1204: also be used for when submitting each Frame of preserving the composition packet to, sending the number of frames that has received and submitted to the Frame of preservation, send the number of frames that has received and preserved successful Frame to the firstmanagement indicating member 1208 when the call bill data in packet is preserved successfully to the firstmanagement indicating member 1208;
The first management indicating member 1208: describedcontrol unit 1201 is exported to the firstmanagement indicating member 1208 with number of frames, the firstmanagement indicating member 1208 is saved in number offrames memory cell 1202 with the number of frames that receives, and the state information of corresponding data frame is set to first state information; With receiving of sending of packet commitunit 1204 and to have submitted to the state information of the number of frames corresponding data frame of preserving Frame to refresh be second state information; The state information of the number of frames corresponding data frame that receives and preserved successful Frame that packet commitunit 1204 is sent refreshes and is third state information.
The firstmanagement indicating member 1208 is realized distinguishing the Frame state of preserving in the mode of state information, preserve the Frame state if adopt the mode of different number of frames formations to distinguish, then Frame receivingsystem 101 can adopt the second management indicating member to replace the firstmanagement indicating member 1208, managing indicatingmember 1208 with first among Figure 12 is that example describes, wherein:
The second management indicating member: describedcontrol unit 1201 is exported to the second management indicating member with number of frames, and the described number of frames that the second management indicating member will receive is saved in the first number of frames formation in the number offrames memory cell 1202; With receiving of sending of packet commitunit 1204 and submitted to the number of frames of preserving Frame in the first number of frames formation, to delete and be saved in the second number of frames formation in the number offrames memory cell 1202; The 3rd number of frames formation in the number offrames memory cell 1202 is deleted and be saved in to the number of frames that receives and preserved successful Frame that the packet commit unit is sent in the second number of frames formation.
The state information of judging the Frame of arrival whencontrol unit 1201 is that the sequence number of third state information or Frame is kept at the 3rd number of frames formation constantly, returns the response that successfully receives this Frame to the GSN node.
For to the data accepted frame state formation carry out length control,Frame receiving system 101 also comprises:
Length control unit 1209: the Frame sum that is used for calculating other packet number correspondence except that the minimum value of packet number according to the corresponding relation that the firstpersistent storage unit 1205 is preserved, and when the Frame sum surpasses the length threshold that is provided with, each number of frames of the minimum value correspondence of the packet number of preserving in theindication control unit 1201 delete frame sequencenumber memory cell 1202, and in the firstpersistent storage unit 1205, delete the number of frames of each Frame of the minimum value of packet number and correspondence thereof by packet commitunit 1204.
Further, in order to tackle the generation of abnormal conditions, realize that the number of frames and the Frame state of preservation take place to recover in the back number offrames memory cell 1202 abnormal conditions, storage guarantees thatunit 1206 external hard disks, disk etc. have the secondpersistent storage unit 1210 of permanent storage function, the secondpersistent storage unit 1210 also is arranged in theexternal memory 103,Frame receiving system 101 also comprises the first number of frames recovery unit 1211, wherein:
Storage guarantees unit 1206: the packet number that also is used for successfully being preserved last packet of call bill data is recorded in the secondpersistent storage unit 1210;
The second persistent storage unit 1210: the packet number that is used to preserve last packet of successfully being preserved call bill data;
The first number of frames recovery unit 1211: be used for after abnormal conditions take place, whether the packet number of preservation equates in the maximum of judging in the firstpersistent storage unit 1205 packet number of preserving and the described secondpersistent storage unit 1210, if then each number of frames of preserving in the firstpersistent storage unit 1205 is saved in number offrames memory cell 1202 again, and the state information of each number of frames corresponding data frame is set to third state information, if otherwise in the firstpersistent storage unit 1205, delete the maximum of packet number and the number of frames of corresponding each Frame thereof by packet commitunit 1204, and all the other each number of frames of preserving in the firstpersistent storage unit 1205 are saved in number offrames memory cell 1202 again, and the state information of all the other each number of frames corresponding data frames is set to third state information.
The Frame state that 1211 realizations of the first number of frames recovery unit recover to preserve in the mode of state information, if the Frame state that adopts the mode of different number of frames to recover to preserve, then Frame receivingsystem 101 can adopt the second number of frames recovery unit to replace the first number of frames recovery unit 1211, be that example describes with the first number of frames recovery unit 1211 among Figure 12, wherein:
The second number of frames recovery unit: be used for after abnormal conditions take place, whether the packet number of preservation equates in the maximum of judging in the firstpersistent storage unit 1205 packet number of preserving and the described secondpersistent storage unit 1210, if then each number of frames that writes down in the firstpersistent storage unit 1205 is saved in described the 3rd number of frames formation again, if otherwise designation data bag commitunit 1204 is deleted the maximum of packet number and the number of frames of corresponding each Frame thereof in the firstpersistent storage unit 1205, and all the other each number of frames of preserving in the firstpersistent storage unit 1205 are saved in described the 3rd number of frames formation again.
Shown in Figure 12, the firstpersistent storage unit 1205, the secondpersistent storage unit 1210 and call billdata memory cell 1207 can be arranged in an external memory, also can lay respectively in the different external memories, perhaps wherein two be arranged in an external memory, another one is arranged in other external memory.
Various processing methods, device and the charging gateway of the Frame of the phone bill certificate that the embodiment of the invention provides, when newly receiving Frame, judge, can in time abandon the repeating data frame, guarantee that the call bill data of preserving does not repeat, and can respond the GSN end timely and effectively to the repeating data frame that receives, avoid repeating sending; When preserving the call bill data of the Frame that has received, guaranteed that Frame is saved in external memory safely and reliably, when preserving the call bill data of the Frame that has received, with the packet is unit, improved the speed of preserving, and need not to pick the IO visit capacity that heavily makes to external memory reduces greatly, and owing to no longer repeat to preserve Frame, make data storage procedure reduce greatly to the IO visit capacity of external memory, and by utilizing the sequence of data frames that receives and preserved success status number in the formation of data accepted frame state, the Frame of being convenient to never preserve just can be visited external memory, makes data recovery procedure reduce greatly the IO visit capacity of external memory; At the generation of abnormal conditions such as power down, can recover the number of frames and the state information of data accepted frame automatically by two states persistence object, greatly improved correctness and reliability that Frame receives; Simultaneously, can effectively control the length of data accepted frame state formation, promptly from the data accepted frame state formation of effective length, search the Frame that whether has the same number of frames sequence number, thereby reduced the time that is relatively spent, guarantee the speed that abandons the repeating data frame in the receiving course, and cleared up the interior external space that the expired Frame that receives and preserved success status takies automatically.
Should be understood that in embodiments of the present invention, can provide more state information kind to be used to abandon the repeating data frame and promptly pick heavily, scope relatively also can strengthen.Can utilize a greater variety of state persistence objects to be used for data and recover, also variety classes state persistence object can be unified.Can be used in the method that other are used to control data accepted frame state queue length, but realization all depends on the quantity of the Frame of several state information correspondences.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise all or part of step in the foregoing description method, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.