Movatterモバイル変換


[0]ホーム

URL:


CN101145893A - Data frame receiving method and device for call bill data, and billing gateway - Google Patents

Data frame receiving method and device for call bill data, and billing gateway
Download PDF

Info

Publication number
CN101145893A
CN101145893ACNA2007101631241ACN200710163124ACN101145893ACN 101145893 ACN101145893 ACN 101145893ACN A2007101631241 ACNA2007101631241 ACN A2007101631241ACN 200710163124 ACN200710163124 ACN 200710163124ACN 101145893 ACN101145893 ACN 101145893A
Authority
CN
China
Prior art keywords
frame
data
sequence number
packet
data frame
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
CNA2007101631241A
Other languages
Chinese (zh)
Other versions
CN101145893B (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.)
Li Yanli
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CN2007101631241ApriorityCriticalpatent/CN101145893B/en
Publication of CN101145893ApublicationCriticalpatent/CN101145893A/en
Application grantedgrantedCritical
Publication of CN101145893BpublicationCriticalpatent/CN101145893B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明涉及移动通信系统的计费技术,尤其涉及一种对话单数据的数据帧处理技术。本发明实施例公开了一种话单数据的数据帧接收方法、装置及计费网关,在新接收到数据帧时能够及时丢弃重复的数据帧,保证保存的话单数据不重复。其中,话单数据的数据帧接收方法,包括:接收数据帧,所述数据帧包括话单数据和帧序列号;判断是否已经记录了该到达的数据帧的帧序列号,如果是则丢弃该到达的数据帧,否则,接收该到达的数据帧,并记录该到达的数据帧的帧序列号。话单数据的数据帧接收装置包括:帧序列号存储单元、控制单元和数据帧缓存单元。本发明实施例还提供了一种计费网关,包括所述话单数据的数据帧接收装置。

Figure 200710163124

The present invention relates to the billing technology of the mobile communication system, in particular to a data frame processing technology of dialogue list data. The embodiment of the invention discloses a data frame receiving method and device for bill data, and a billing gateway, which can discard duplicate data frames in time when a new data frame is received, so as to ensure that the saved bill data is not repeated. Wherein, the data frame receiving method of bill data comprises: receiving data frame, and described data frame comprises bill data and frame sequence number; Judging whether the frame sequence number of the data frame of this arrival has been recorded, if so then discarding this An arriving data frame, otherwise, receive the arriving data frame, and record the frame sequence number of the arriving data frame. The data frame receiving device of bill data includes: a frame serial number storage unit, a control unit and a data frame buffer unit. The embodiment of the present invention also provides a billing gateway, including a data frame receiving device for bill data.

Figure 200710163124

Description

Frame method of reseptance, device and the charging gateway of call bill data
Technical field
The present invention relates to the billing technology of mobile communication system, relate in particular to a kind of processing technology of data frames of phone bill data.
Background technology
(the 3rd Generation Partnership Project of 3G (Third Generation) Moblie standardization body, 3GPP) technical specification has been formulated GPRS (the General Packet RadioService that strides Gn and gp interface, GPRS) tunnel protocol (GPRS Tunnel Protocol, GTP) standard.GTP ' agreement is based on the charging protocol of GTP agreement, charging gateway (Charging Gateway, CG) and GPRS Support Node (GPRS Support Node GSN) defines on the interface between the node.According to the 3GPP technical specification, GTP ' agreement can be based on transmission control protocol (Transmission Control protocol, TCP) or User Datagram Protoco (UDP) (User Datagram Protocol, UDP), but, be insecure under the situation of being transmitted in of data based on udp protocol generally based on udp protocol.
Regulation according to GTP ' agreement, the GSN node in GTP ' protocol data frame mode to CG transmit telephone bill data, hereinafter to be referred as " GTP ' protocol data frame " be " Frame ", each Frame comprises call bill data and unique number of frames, and CG sends the response that successfully receives this Frame in reception and after successfully preserving Frame to the GSN node.Receive response if the GSN node receives successfully, will regularly retransmit this Frame, and number of frames and call bill data are constant when retransmitting.If CG has received and has successfully preserved certain Frame, do not respond evening or GSN node and do not receive successfully to receive and respond but send response or sends successfully to receive to the GSN node, can cause CG to receive this Frame that the GSN node repeats to send.The repeating data frame that CG preserves can be wasted memory space, should abandon, and the process that abandons the repeating data frame is called picks heavily.In addition, hardware and software failure such as CG exists that network connect to interrupt, the equipment burst is restarted, system's power down, software process are withdrawed from unusually, when CG breaks down, can the loss of phone bill data.
A kind of method of picking weight behind the Frame of preserving is provided in the prior art, has solved the repeating data frame problem that CG preserves.Handling process is that CG receives and preserve all Frames earlier to external memory unit, then the repeating data frame of preserving is picked retry.In the method that prior art provides receiving course with pick heavy process and separate, it is bigger to the IO visit capacity of external memory unit to pick heavy process, it is slow to cause picking heavy speed, simultaneously owing to pick heavy opportunity and lag behind, can't respond the GSN end timely and effectively after receiving the repeating data frame.
Summary of the invention
The embodiment of the invention provides a kind of Frame method of reseptance, device and charging gateway of call bill data, can in time abandon the Frame of repetition when newly receiving Frame, guarantees that the call bill data of preserving does not repeat.
The embodiment of the invention provides a kind of Frame method of reseptance of call bill data, comprising:
Receiving data frames, described Frame comprises call bill data and number of frames;
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.
The embodiment of the invention provides a kind of Frame receiving system of call bill data, comprising:
Receiving element is used for receiving data frames, and described Frame comprises call bill data and number of frames;
Control unit: 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 the Frame of this arrival, and write down the number of frames of the Frame of this arrival.
The embodiment of the invention also discloses a kind of charging gateway, comprise the Frame receiving system of call bill data.
Frame method of reseptance, device and the charging gateway of the call bill data that the embodiment of the invention provides, can when newly receiving Frame, in time abandon the repeating data frame, guarantee that the call bill data of preserving does not repeat, the opportunity that abandons the repeating data frame is reasonable, and method is simply efficient.
Description of drawings
Fig. 1 is the Frame receiving system block diagram of call bill data in the embodiment of the invention;
Fig. 2 is the Frame method of reseptance flow chart of call bill data in the embodiment of the invention;
Fig. 3 is a Frame state transition schematic diagram in the embodiment of the invention;
Fig. 4 picks heavy-duty machine system schematic diagram for Frame in the embodiment of the invention;
Fig. 5 is the storage ensuring method flow chart in the call bill data storing process in the embodiment of the invention;
Fig. 6 is the packet state persistence object schematic diagram under theabnormal conditions 1 and 3 in the embodiment of the invention;
Fig. 7, Fig. 9 and Figure 10 are respectively the data accepted frame state formation contrast schematic diagram beforeabnormal conditions 1,2,3 generations and after the data recovery in the embodiment of the invention;
Fig. 8 is the packet state persistence object schematic diagram under theabnormal conditions 2 in the embodiment of the invention;
Figure 11 is the length control method schematic diagram of data accepted frame state formation in the embodiment of the invention;
Figure 12 is the Frame receiving system structural representation of call bill data in the embodiment of the invention.
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.

Claims (21)

Translated fromChinese
1.一种话单数据的数据帧接收方法,其特征在于,包括:1. A data frame receiving method of bill data, characterized in that, comprising:接收数据帧,所述数据帧包括话单数据和帧序列号;Receive a data frame, the data frame includes bill data and a frame sequence number;判断是否已经记录了该到达的数据帧的帧序列号,如果是则丢弃该到达的数据帧,否则,接收该到达的数据帧,并记录该到达的数据帧的帧序列号。Judging whether the frame sequence number of the arriving data frame has been recorded, if so, discarding the arriving data frame, otherwise, receiving the arriving data frame, and recording the frame sequence number of the arriving data frame.2.如权利要求1所述的方法,其特征在于,还包括:2. The method of claim 1, further comprising:提取至少一个已接收的数据帧组成数据包,并为所述数据包生成唯一的包序列号;Extracting at least one received data frame to form a data packet, and generating a unique packet sequence number for the data packet;提交保存所述数据包,记录所述包序列号与各数据帧的帧序列号之间的对应关系;并Submit and save the data packet, record the correspondence between the packet sequence number and the frame sequence number of each data frame; and在所述各数据帧的话单数据成功保存后,向GSN节点返回已成功接收所述各数据帧的响应。After the bill data of each data frame is successfully saved, a response that each data frame has been successfully received is returned to the GSN node.3.如权利要求2所述的方法,其特征在于,所述向GSN节点返回已成功接收所述各数据帧的响应,包括:3. The method according to claim 2, wherein the response of returning the successfully received data frames to the GSN node comprises:根据被成功保存话单数据的数据包的包序列号,在所述对应关系中查询对应的各数据帧的帧序列号;According to the packet sequence number of the data packet of the bill data successfully saved, query the frame sequence number of each corresponding data frame in the corresponding relationship;根据查询到的各帧序列号向GSN节点返回已成功接收各数据帧的响应,该响应中携带有对应的帧序列号。Return to the GSN node a response that each data frame has been successfully received according to the inquired frame sequence numbers, and the response carries the corresponding frame sequence numbers.4.如权利要求2或3所述的方法,其特征在于,还包括:根据所述已接收的数据帧的状态,对应数据帧的帧序列号记录数据帧的状态信息,其中:4. The method according to claim 2 or 3, further comprising: according to the state of the received data frame, recording the state information of the data frame corresponding to the frame sequence number of the data frame, wherein:当所述已接收的数据帧未提交保存时,该数据帧的状态信息为所述第一状态信息,所述第一状态信息用于指示所述已接收的数据帧为已接收但未提交保存状态;When the received data frame is not submitted for storage, the status information of the data frame is the first status information, and the first status information is used to indicate that the received data frame is received but not submitted for storage state;当所述已接收的数据帧被提交保存后,该数据帧的状态信息刷新为第二状态信息,所述第二状态信息用于指示所述已接收的数据帧为已接收并已提交保存状态;After the received data frame is submitted for storage, the status information of the data frame is refreshed as second status information, and the second status information is used to indicate that the received data frame is received and submitted for storage ;当所述已接收的数据帧的话单数据被成功保存后,该数据帧的状态信息刷新为第三状态信息,所述第三状态信息用于指示所述已接收的数据帧为已接收并已保存成功状态。After the bill data of the received data frame is successfully saved, the state information of the data frame is refreshed as third state information, and the third state information is used to indicate that the received data frame has been received and Save the successful state.5.如权利要求2或3所述的方法,其特征在于,根据所述已接收的数据帧的状态,所述已接收的数据帧的帧序列号被分别记录在不同的帧序列号队列中,其中:5. The method according to claim 2 or 3, characterized in that, according to the state of the received data frame, the frame sequence numbers of the received data frame are respectively recorded in different frame sequence number queues ,in:当所述已接收的数据帧未提交保存时,将该数据帧的帧序列号保存在所述第一帧序列号队列,所述第一帧序列号队列用于记录已接收但未提交保存的数据帧的帧序列号;When the received data frame is not submitted for preservation, the frame sequence number of the data frame is stored in the first frame sequence number queue, and the first frame sequence number queue is used to record the received but not submitted for preservation The frame sequence number of the data frame;当所述已接收的数据帧被提交保存后,将该数据帧的帧序列号保存在所述第二帧序列号队列中,所述第二帧序列号队列用于记录已接收并已提交保存的数据帧的帧序列号;After the received data frame is submitted for storage, the frame sequence number of the data frame is stored in the second frame sequence number queue, and the second frame sequence number queue is used to record that it has been received and submitted for storage The frame sequence number of the data frame;当所述已接收的数据帧的话单数据被成功保存后,将该数据帧的帧序列号保存在所述第三帧序列号队列中,所述第三帧序列号队列用于记录已接收并已保存成功的数据帧的帧序列号。After the bill data of the received data frame is successfully preserved, the frame sequence number of the data frame is stored in the third frame sequence number queue, and the third frame sequence number queue is used to record the received and The frame sequence number of the successfully saved data frame.6.如权利要求4所述的方法,其特征在于,如果到达的数据帧的状态信息为所述第三状态信息,所述方法还包括:向GSN节点返回表示已成功接收该数据帧的响应。6. The method according to claim 4, wherein, if the state information of the data frame arriving is the third state information, the method further comprises: returning a response indicating that the data frame has been successfully received to the GSN node .7.如权利要求5所述的方法,其特征在于,如果到达的数据帧的帧序列号记录在所述第三帧序列号队列中,所述方法还包括:向GSN节点返回表示已成功接收该数据帧的响应。7. The method according to claim 5, wherein if the frame sequence number of the arriving data frame is recorded in the third frame sequence number queue, the method further comprises: returning to the GSN node to indicate that it has been successfully received The response for this data frame.8.如权利要求2或3所述的方法,其特征在于,所述在各数据帧的话单数据成功保存后,还包括:8. The method according to claim 2 or 3, wherein, after the bill data of each data frame is successfully saved, further comprising:根据所述对应关系计算除包序列号的最小值之外其它包序列号对应的数据帧总数;Calculate the total number of data frames corresponding to other packet sequence numbers except the minimum value of the packet sequence number according to the correspondence relationship;当所述数据帧总数超过设置的长度阈值时,在记录的已接收的数据帧的帧序列号中删除包序列号的最小值对应的各帧序列号;并When the total number of data frames exceeds the set length threshold, delete each frame sequence number corresponding to the minimum value of the packet sequence number in the frame sequence numbers of the recorded received data frames; and在所述对应关系中删除包序列号的最小值及其对应的各数据帧的帧序列号。The minimum value of the packet sequence number and the corresponding frame sequence numbers of each data frame are deleted from the corresponding relationship.9.如权利要求4所述的方法,其特征在于,还包括:9. The method of claim 4, further comprising:记录已经被成功保存话单数据的最后一个数据包的包序列号;Record the packet sequence number of the last data packet that has successfully saved the bill data;异常情况发生后,当判断出所述对应关系中记录的包序列号的最大值与所述最后一个数据包的包序列号不相等时,在所述对应关系中删除包序列号的最大值及其对应的各数据帧的帧序列号;After the abnormal situation occurs, when it is judged that the maximum value of the packet sequence number recorded in the correspondence relationship is not equal to the packet sequence number of the last data packet, delete the maximum value of the packet sequence number and the packet sequence number in the correspondence relationship. The frame sequence number of each data frame corresponding to it;将所述对应关系中记录的各帧序列号重新记录在已接收的数据帧的帧序列号中,并将各帧序列号对应的数据帧的状态信息设置为第三状态信息。Re-recording the frame sequence numbers recorded in the corresponding relationship in the frame sequence numbers of the received data frames, and setting the state information of the data frames corresponding to the frame sequence numbers as the third state information.10.如权利要求5所述的方法,其特征在于,还包括:10. The method of claim 5, further comprising:记录已经被成功保存话单数据的最后一个数据包的包序列号;Record the packet sequence number of the last data packet that has successfully saved the bill data;异常情况发生后,当判断出所述对应关系中记录的包序列号的最大值与所述最后一个数据包的包序列号不相等时,在所述对应关系中删除包序列号的最大值及其对应的各数据帧的帧序列号;After the abnormal situation occurs, when it is judged that the maximum value of the packet sequence number recorded in the correspondence relationship is not equal to the packet sequence number of the last data packet, delete the maximum value of the packet sequence number and the packet sequence number in the correspondence relationship. The frame sequence number of each data frame corresponding to it;将所述对应关系中记录的各帧序列号重新记录到所述第三帧序列号队列。Re-recording each frame sequence number recorded in the corresponding relationship into the third frame sequence number queue.11.一种话单数据的数据帧接收装置,其特征在于,包括:11. A data frame receiving device of bill data, characterized in that, comprising:接收单元:用于接收数据帧,所述数据帧包括话单数据和帧序列号;Receiving unit: used to receive a data frame, the data frame includes bill data and frame sequence number;控制单元:用于判断是否已经记录了该到达的数据帧的帧序列号,如果是则丢弃该到达的数据帧,否则,接收该到达的数据帧,并记录该到达的数据帧的帧序列号。Control unit: for judging whether the frame sequence number of the arriving data frame has been recorded, if so, discarding the arriving data frame, otherwise, receiving the arriving data frame, and recording the frame sequence number of the arriving data frame .12.如权利要求11所述的装置,其特征在于,还包括:12. The apparatus of claim 11, further comprising:帧序列号存储单元:用于保存该到达的数据帧的帧序列号;Frame sequence number storage unit: used to save the frame sequence number of the arriving data frame;数据帧缓存单元:用于缓存所述控制单元已接收的数据帧。Data frame buffering unit: used for buffering the data frames received by the control unit.13.如权利要求12所述的装置,其特征在于,还包括:数据包提交单元、第一持久化存储单元、存储保证单元和话单数据存储单元,其中:13. The device according to claim 12, further comprising: a data packet submission unit, a first persistent storage unit, a storage guarantee unit and a bill data storage unit, wherein:所述数据包提交单元用于从数据帧缓存单元中提取至少一个数据帧组成数据包,并为所述数据包生成唯一的包序列号,提交保存组成该数据包的各数据帧,将所述包序列号与各数据帧的帧序列号之间的对应关系记录到所述第一持久化存储单元;The data packet submitting unit is used to extract at least one data frame from the data frame cache unit to form a data packet, and generate a unique packet sequence number for the data packet, submit and save each data frame forming the data packet, and submit the The corresponding relationship between the packet sequence number and the frame sequence number of each data frame is recorded in the first persistent storage unit;所述第一持久化存储单元用于保存已提交保存的数据包的包序列号与各数据帧的帧序列号之间的对应关系;The first persistent storage unit is used to store the correspondence between the packet serial number of the submitted data packet and the frame serial number of each data frame;所述存储保证单元用于接收所述数据包提交单元提交的数据包并将各数据帧的话单数据保存到话单数据存储单元,在所述各数据帧的话单数据成功保存后,向控制单元返回已成功保存各数据帧的话单数据的响应;The storage guarantee unit is used to receive the data packet submitted by the data packet submitting unit and save the bill data of each data frame to the bill data storage unit, after the bill data of each data frame is successfully saved, send to the control unit Return the response that the bill data of each data frame has been successfully saved;所述控制单元还用于在接收到存储保证单元返回的已成功保存各数据帧的话单数据的响应后,返回表示已成功接收各数据帧的响应;The control unit is further configured to return a response indicating that each data frame has been successfully received after receiving the response returned by the storage guarantee unit that the bill data of each data frame has been successfully stored;所述话单数据存储单元用于保存所述存储保证单元发送的话单数据。The bill data storage unit is used for storing the bill data sent by the storage guarantee unit.14.如权利要求13所述的装置,其特征在于,还包括第一管理指示单元,其中:14. The device according to claim 13, further comprising a first management instruction unit, wherein:所述数据包提交单元还用于在提交保存组成数据包的各数据帧时向所述第一管理指示单元发送已接收并已提交保存的数据帧的帧序列号,在数据包中的话单数据保存成功时向所述第一管理指示单元发送已接收并已保存成功的数据帧的帧序列号;The data packet submission unit is also used to send the frame sequence number of the data frame that has been received and submitted to the first management instruction unit when submitting and saving each data frame that makes up the data packet, and the bill data in the data packet When the storage is successful, send the frame sequence number of the received and successfully stored data frame to the first management instruction unit;所述控制单元将该到达的数据帧的帧序列号输出给第一管理指示单元,所述第一管理指示单元将接收的所述帧序列号保存到帧序列号存储单元,并将对应数据帧的状态信息设置为第一状态信息;将数据包提交单元发送的已接收并已提交保存的数据帧的帧序列号对应数据帧的状态信息刷新为第二状态信息;将数据包提交单元发送的已接收并已保存成功的数据帧的帧序列号对应数据帧的状态信息刷新为第三状态信息。The control unit outputs the frame sequence number of the arriving data frame to the first management instruction unit, and the first management instruction unit saves the received frame sequence number to the frame sequence number storage unit, and stores the corresponding data frame The state information of the state information is set as the first state information; the state information corresponding to the frame sequence number of the frame sequence number of the data frame sent by the data packet submission unit that has been received and submitted for storage is refreshed as the second state information; the data packet submission unit is sent The state information of the data frame corresponding to the frame sequence number of the data frame that has been received and stored successfully is refreshed as the third state information.15.如权利要求13所述的装置,其特征在于,还包括第二管理指示单元,其中:15. The device according to claim 13, further comprising a second management instruction unit, wherein:所述数据包提交单元还用于在提交保存组成数据包的各数据帧时向所述第二管理指示单元发送已接收并已提交保存的数据帧的帧序列号,在数据包中的话单数据保存成功时向所述第二管理指示单元发送已接收并已保存成功的数据帧的帧序列号;The data packet submission unit is also used to send the frame sequence number of the data frame received and submitted to the second management instruction unit to the second management instruction unit when submitting and saving each data frame forming the data packet, and the bill data in the data packet When the storage is successful, send the frame sequence number of the received and successfully stored data frame to the second management instruction unit;所述控制单元将该到达的数据帧的帧序列号输出给第二管理指示单元,所述第二管理指示单元将接收的所述帧序列号保存到帧序列号存储单元中的第一帧序列号队列;将数据包提交单元发送的已接收并已提交保存的数据帧的帧序列号保存到帧序列号存储单元中的第二帧序列号队列;将数据包提交单元发送的已接收并已保存成功的数据帧的帧序列号保存到帧序列号存储单元中的第三帧序列号队列。The control unit outputs the frame sequence number of the arriving data frame to the second management instruction unit, and the second management instruction unit saves the received frame sequence number into the first frame sequence number in the frame sequence number storage unit number queue; the frame sequence number of the received and submitted data frame sent by the data packet submission unit is saved to the second frame sequence number queue in the frame sequence number storage unit; the received and submitted data frame sent by the data packet submission unit The frame sequence number of the successfully saved data frame is saved to the third frame sequence number queue in the frame sequence number storage unit.16.如权利要求14所述的装置,其特征在于,所述控制单元还用于当判断出到达的数据帧的状态信息为第三状态信息时,向GSN节点返回表示已成功接收该数据帧的响应。16. The device according to claim 14, wherein the control unit is further configured to return to the GSN node to indicate that the data frame has been successfully received when it is determined that the state information of the arriving data frame is the third state information the response to.17.如权利要求15所述的装置,其特征在于,所述控制单元还用于当判断出到达的数据帧的帧序列号保存在第三帧序列号队列时,向GSN节点返回表示已成功接收该数据帧的响应。17. The device according to claim 15, wherein the control unit is further configured to return to the GSN node to indicate success when it is determined that the frame sequence number of the arriving data frame is stored in the third frame sequence number queue Receive the response for this data frame.18.如权利要求13所述的装置,其特征在于,还包括:18. The apparatus of claim 13, further comprising:长度控制单元:用于根据所述第一持久化存储单元保存的对应关系计算除包序列号的最小值之外其它包序列号对应的数据帧总数,并当所述数据帧总数超过设置的长度阈值时,由所述控制单元删除帧序列号存储单元中保存的包序列号的最小值对应的各帧序列号,并由所述数据包提交单元在第一持久化存储单元中删除包序列号的最小值及其对应的各数据帧的帧序列号。Length control unit: used to calculate the total number of data frames corresponding to other packet sequence numbers except the minimum value of the packet sequence number according to the correspondence stored in the first persistent storage unit, and when the total number of data frames exceeds the set length When the threshold is reached, the control unit deletes each frame sequence number corresponding to the minimum value of the packet sequence number stored in the frame sequence number storage unit, and deletes the packet sequence number in the first persistent storage unit by the data packet submission unit The minimum value of and the corresponding frame sequence number of each data frame.19.如权利要求14所述的装置,其特征在于,还包括第二持久化存储单元和第一帧序列号恢复单元,其中:19. The device according to claim 14, further comprising a second persistent storage unit and a first frame sequence number recovery unit, wherein:所述存储保证单元还用于将已经被成功保存话单数据的最后一个数据包的包序列号记录在第二持久化存储单元;The storage guarantee unit is also used to record the packet sequence number of the last data packet that has successfully saved the bill data in the second persistent storage unit;所述第二持久化存储单元用于保存已经被成功保存话单数据的最后一个数据包的包序列号;The second persistent storage unit is used to save the packet sequence number of the last data packet that has successfully saved the bill data;所述第一帧序列号恢复单元用于在异常情况发生后,判断所述第一持久化存储单元中保存的包序列号的最大值与所述第二持久化存储单元中保存的包序列号是否相等,如果是则将第一持久化存储单元中保存的各帧序列号重新保存到帧序列号存储单元,并将各帧序列号对应数据帧的状态信息设置为第三状态信息,如果否则由该数据包提交单元在第一持久化存储单元中删除包序列号的最大值及其对应的各数据帧的帧序列号,并将第一持久化存储单元中保存的其余各帧序列号重新保存到帧序列号存储单元,并将其余各帧序列号对应数据帧的状态信息设置为第三状态信息。The first frame sequence number recovery unit is used to determine the maximum value of the packet sequence number stored in the first persistent storage unit and the packet sequence number stored in the second persistent storage unit after an abnormal situation occurs. Whether they are equal, if yes, re-save the frame sequence numbers stored in the first persistent storage unit to the frame sequence number storage unit, and set the state information of the data frame corresponding to each frame sequence number as the third state information, if otherwise The data packet submission unit deletes the maximum value of the packet sequence number and the frame sequence numbers of the corresponding data frames in the first persistent storage unit, and renews the remaining frame sequence numbers stored in the first persistent storage unit. Save to the frame sequence number storage unit, and set the state information of the data frames corresponding to the remaining frame sequence numbers as the third state information.20.如权利要求15所述的装置,其特征在于,还包括第二持久化存储单元和第二帧序列号恢复单元,其中:20. The device according to claim 15, further comprising a second persistent storage unit and a second frame sequence number recovery unit, wherein:所述存储保证单元还用于将已经被成功保存话单数据的最后一个数据包的包序列号记录在第二持久化存储单元;The storage guarantee unit is also used to record the packet sequence number of the last data packet that has successfully saved the bill data in the second persistent storage unit;所述第二持久化存储单元用于保存已经被成功保存话单数据的最后一个数据包的包序列号;The second persistent storage unit is used to save the packet sequence number of the last data packet that has successfully saved the bill data;所述第二帧序列号恢复单元用于在异常情况发生后,判断所述第一持久化存储单元中保存的包序列号的最大值与所述第二持久化存储单元中保存的包序列号是否相等,如果是则将第一持久化存储单元中记录的各帧序列号重新保存到所述第三帧序列号队列,如果否则由该数据包提交单元在第一持久化存储单元中删除包序列号的最大值及其对应的各数据帧的帧序列号,并将第一持久化存储单元中保存的其余各帧序列号重新保存到所述第三帧序列号队列。The second frame sequence number recovery unit is used to determine the maximum value of the packet sequence number stored in the first persistent storage unit and the packet sequence number stored in the second persistent storage unit after an abnormal situation occurs. Whether they are equal, if so, re-save the frame sequence numbers recorded in the first persistent storage unit to the third frame sequence number queue, if otherwise, delete the packet in the first persistent storage unit by the data packet submission unit The maximum value of the sequence number and the corresponding frame sequence numbers of each data frame, and re-save the remaining frame sequence numbers stored in the first persistent storage unit to the third frame sequence number queue.21.一种计费网关,其特征在于,包括权利要求13至20任一所述的装置。21. A billing gateway, comprising the device according to any one of claims 13-20.
CN2007101631241A2007-10-082007-10-08Receiving method, device and billing gateway for CDR data frameExpired - Fee RelatedCN101145893B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN2007101631241ACN101145893B (en)2007-10-082007-10-08Receiving method, device and billing gateway for CDR data frame

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN2007101631241ACN101145893B (en)2007-10-082007-10-08Receiving method, device and billing gateway for CDR data frame

Publications (2)

Publication NumberPublication Date
CN101145893Atrue CN101145893A (en)2008-03-19
CN101145893B CN101145893B (en)2010-10-13

Family

ID=39208211

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN2007101631241AExpired - Fee RelatedCN101145893B (en)2007-10-082007-10-08Receiving method, device and billing gateway for CDR data frame

Country Status (1)

CountryLink
CN (1)CN101145893B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101753254A (en)*2008-12-162010-06-23四零四科技股份有限公司 Transmission system, device and method for preventing data loss
WO2010096981A1 (en)*2009-02-252010-09-02中兴通讯股份有限公司Monthly rent bill repetition preventing method and apparatus
CN102932277A (en)*2012-10-122013-02-13深信服网络科技(深圳)有限公司Data cache method and system
CN103108295A (en)*2011-11-112013-05-15中兴通讯股份有限公司Handling method and system for phone bill package
CN107493585A (en)*2017-08-162017-12-19上海顺舟智能科技股份有限公司Traffic storm suppressing method in a kind of Wireless MESH network
CN110299971A (en)*2018-03-232019-10-01天地融科技股份有限公司A kind of data message method of reseptance and device
CN110299974A (en)*2018-03-232019-10-01天地融科技股份有限公司A kind of data receiver method and device
CN110299973A (en)*2018-03-232019-10-01天地融科技股份有限公司A kind of method of reseptance and device of data scrolling transmission

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1145327C (en)*2001-06-052004-04-07华为技术有限公司Method for universal grouped radio business network node to transmit telephone bill to charge network
JP2006238158A (en)*2005-02-252006-09-07Nec CorpRadio communications system, base station control apparatus, radio terminal, and radio communications method
CN100466506C (en)*2006-02-172009-03-04华为技术有限公司 A method of data transmission

Cited By (15)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101753254A (en)*2008-12-162010-06-23四零四科技股份有限公司 Transmission system, device and method for preventing data loss
WO2010096981A1 (en)*2009-02-252010-09-02中兴通讯股份有限公司Monthly rent bill repetition preventing method and apparatus
CN101494695B (en)*2009-02-252013-02-27中兴通讯股份有限公司Method and apparatus for preventing month lease call ticket from repeating
US9332092B2 (en)2011-11-112016-05-03Zte CorporationMethod and system for processing data record packet
CN103108295B (en)*2011-11-112017-10-27中兴通讯股份有限公司A kind of processing method and system of ticket bag
CN103108295A (en)*2011-11-112013-05-15中兴通讯股份有限公司Handling method and system for phone bill package
WO2013067975A1 (en)*2011-11-112013-05-16中兴通讯股份有限公司Method and system for data record packet processing
CN102932277B (en)*2012-10-122015-05-13深信服网络科技(深圳)有限公司Data cache method and system
CN102932277A (en)*2012-10-122013-02-13深信服网络科技(深圳)有限公司Data cache method and system
CN107493585A (en)*2017-08-162017-12-19上海顺舟智能科技股份有限公司Traffic storm suppressing method in a kind of Wireless MESH network
CN110299971A (en)*2018-03-232019-10-01天地融科技股份有限公司A kind of data message method of reseptance and device
CN110299974A (en)*2018-03-232019-10-01天地融科技股份有限公司A kind of data receiver method and device
CN110299973A (en)*2018-03-232019-10-01天地融科技股份有限公司A kind of method of reseptance and device of data scrolling transmission
CN110299973B (en)*2018-03-232022-04-05天地融科技股份有限公司Receiving method and device for data rolling transmission
CN110299971B (en)*2018-03-232022-04-08天地融科技股份有限公司Data message receiving method and device

Also Published As

Publication numberPublication date
CN101145893B (en)2010-10-13

Similar Documents

PublicationPublication DateTitle
CN101145893A (en) Data frame receiving method and device for call bill data, and billing gateway
CN104156380B (en)A kind of distributed memory hash indexing method and system
US8788591B2 (en)Asynchronous mechanism and message pool
CN104092717B (en)Message treatment method and system, message destination equipment
CN101635682B (en)Storage management method and storage management system
CN112817544A (en)Data processing method, storage system and storage device
CN109787722A (en)Data transmission method, device and server
CN109814811A (en) A method for reducing the impact of NVMe SSD response delay on the writing speed of high-speed data storage devices
CN111049857A (en)Network storage system and method based on UDP protocol
CN105824846A (en)Data migration method and device
CN107678892B (en) Continuous data protection method based on hop recovery chain
WO2021212438A1 (en)Data transmission method, apparatus and system, terminal device, and storage medium
JP2015156071A (en)Data storing method, data storage system, program and storage device
CN106095850A (en)A kind of data processing method and equipment
CN102238206A (en)Image file packet retransmission method
CN104012056A (en) Reduce TCP timeouts due to incast crashes at network switches
CN101610477B (en)Multimedia messaging service processing system and method
CN109347746A (en)A kind of MAC address learning method and device
CN111914116A (en)Video data storage method and device, terminal equipment and readable storage medium
CN113660066B (en)Data transmission method based on sliding window, network card equipment and storage medium
KR101221992B1 (en)Apparatus for logging data
CN105095197B (en)A kind of method and device for handling data
CN106326034A (en)Method and device for storage of data backup
CN112015761A (en)Flow control method based on time wheel
CN107656936A (en)A kind of terminal data base construction method in instant messaging field

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20170921

Address after:The 5 District 065000 Langfang city of Hebei province Guangyang District Pipeline Bureau 6 Building 2 unit 302 room

Patentee after:Li Yanli

Address before:518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before:Huawei Technologies Co., Ltd.

CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20101013

Termination date:20171008


[8]ページ先頭

©2009-2025 Movatter.jp