CN102820997A - Method and device for storage and reduction of CDR (calling detail records) process packets - Google Patents

Method and device for storage and reduction of CDR (calling detail records) process packets Download PDF

Info

Publication number
CN102820997A
CN102820997A CN2012102999995A CN201210299999A CN102820997A CN 102820997 A CN102820997 A CN 102820997A CN 2012102999995 A CN2012102999995 A CN 2012102999995A CN 201210299999 A CN201210299999 A CN 201210299999A CN 102820997 A CN102820997 A CN 102820997A
Authority
CN
China
Prior art keywords
pdu
bag
protocol layer
reorganization
original packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102999995A
Other languages
Chinese (zh)
Other versions
CN102820997B (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.)
BEIJING ETERN Co Ltd
Original Assignee
BEIJING ETERN 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 BEIJING ETERN Co Ltd filed Critical BEIJING ETERN Co Ltd
Priority to CN201210299999.5A priority Critical patent/CN102820997B/en
Publication of CN102820997A publication Critical patent/CN102820997A/en
Application granted granted Critical
Publication of CN102820997B publication Critical patent/CN102820997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a method and a device for storage and reduction of CDR (calling detail records) process packets. The method includes steps of distributing original packet identity (ID) codes for each acquired original packets; decoding protocol stacks; in a protocol layer with PDU (protocol data unit) reorganization, recording organization relation between reorganized PDU and an information packet before PDU reorganization in the protocol layer; and storing data comprising the ID of the original packets and the organization relations as CDR process packets. The method and the device solve the problems of inaccurate storage and excessive occupancy of storage spaces of the CDR process packets in the prior art, and realize accurate and space-saving storage of the CDR process packets.

Description

A kind of storage of CDR flow process bag and method of reducing and device
Technical field
The present invention relates to the communication monitoring field, more particularly, relate to a kind of storage and method of reducing and device of CDR flow process bag.
Background technology
CDR (Calling Detail Records, call detail record) flow process bag is the composition information unit of record CDR procedure information.In the storing process of CDR flow process bag; For call flow of complete preservation; Need know the real source of each PDU (Protocol Data Unit, protocol Data Unit), promptly the PDU of protocal layers is from which or which original packet; So that network condition is analyzed intuitively, make things convenient for network positions and optimize research.
In order to know the real source of each PDU, prior art mainly contains the storage mode of two kinds of CDR flow process bags, and first kind of storage mode is: only preserve original packet; Be defaulted as the corresponding original packet of each PDU; Because the situation such as IP (Internet Protocol, net association) burst reorganization takes place in message regular meeting in transmittance process, so the PDU of original packet and certain protocol layer that really will analyze concerns one to one; Possibly be the corresponding PDU of a plurality of original packet; Also maybe one the corresponding a plurality of PDU of original packet, the storage mode of this kind CDR flow process bag is simple thinks the corresponding original packet of each PDU, the storage of CDR flow process bag is inaccurate; Second kind of storage mode is: with all storing with related each original packet of each PDU in the flow process, though the storage mode of second kind of CDR flow process bag has improved accuracy for relative first kind, taken too much memory space.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of storage and method of reducing and device of CDR flow process bag, with solve the storage of CDR flow process bag inaccurate with the problem that takies too much memory space.
For realizing above-mentioned purpose, the embodiment of the invention provides following technical scheme:
A kind of storage means of CDR flow process bag is characterized in that, comprising:
For each original packet of obtaining is distributed original packet ID;
Carry out the protocol stack decoding, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place;
The data that will comprise said original packet ID and said component relationship are stored as CDR flow process bag.
The embodiment of the invention also provides a kind of method of reducing of CDR flow process bag, comprising:
From CDR flow process bag, extract original packet ID and PDU after the reorganization in the protocol layer of PDU reorganization and the component relationship that the message bag before the PDU reorganization takes place take place;
Confirm the original packet that protocal layers PDU is corresponding according to said original packet ID and component relationship.
The embodiment of the invention also provides a kind of storage system of CDR flow process bag, comprising:
The ID distribution module is used to each original packet of obtaining and distributes original packet ID;
Decoder module is used for carrying out the protocol stack decoding by protocol hierarchy;
Logging modle is used for the decode procedure at said decoder module, at the protocol layer that the PDU reorganization takes place, and the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place;
Memory module, the packet that will comprise said original packet ID and said component relationship is stored as CDR flow process bag.
The embodiment of the invention also provides a kind of restoring system of CDR flow process bag, comprising:
First extraction module is used for extracting original packet ID and PDU after the reorganization in the protocol layer of PDU reorganization and the component relationship that the message bag before the PDU reorganization takes place taking place from CDR flow process bag;
Recovery module is confirmed the original packet that protocal layers PDU is corresponding according to said original packet ID and component relationship.
Based on technique scheme; The storage means of the CDR flow process bag that the embodiment of the invention provides; For each original packet is distributed original packet ID, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place; The data that will comprise said original packet ID and said component relationship are stored as CDR flow process bag; Thereby can know initial original packet situation through original packet ID, the component relationship of the message bag before recombinating through PDU after the reorganization and generation PDU is known the constituent relation of the PDU after the reorganization, so just can confirm the real source of each PDU.The invention solves the storage of CDR flow process bag in the prior art inaccurate with the problem that takies too much memory space, the CDR flow process bag storage that has realized accurately and saved memory space.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The flow chart of the storage means of a kind of CDR flow process bag that Fig. 1 provides for the embodiment of the invention;
The PDU reorganization sketch map that Fig. 2 provides for the embodiment of the invention;
The method flow diagram of the distribution original packet ID that Fig. 3 provides for the embodiment of the invention;
The method flow diagram of the record component relationship that Fig. 4 provides for the embodiment of the invention;
Another flow chart of the method for the record component relationship that Fig. 5 provides for the embodiment of the invention;
Another sketch map that the PDU that Fig. 6 provides for the embodiment of the invention recombinates;
The another sketch map that the PDU that Fig. 7 provides for the embodiment of the invention recombinates
The sketch map of the tree structure template that Fig. 8 provides for the embodiment of the invention;
Another flow chart of the storage means of a kind of CDR flow process bag that Fig. 9 provides for the embodiment of the invention;
The flow chart of the method for reducing of the CDR flow process bag that Figure 10 provides for the embodiment of the invention;
The structured flowchart of the storage system of the CDR flow process bag that Figure 11 provides for the embodiment of the invention;
Another structured flowchart of the storage system of the CDR flow process bag that Figure 12 provides for the embodiment of the invention;
The structured flowchart of the restoring system of the CDR flow process bag that Figure 13 provides for the embodiment of the invention;
Another structured flowchart of the restoring system of the CDR flow process bag that Figure 14 provides for the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The flow chart of the storage means of a kind of CDR flow process bag that Fig. 1 provides for the embodiment of the invention, with reference to Fig. 1, this method can comprise:
Step S10, each original packet distribution original packet ID (IDentity, identify label number) for obtaining;
The original packet that reads when original packet that the original packet of being obtained collects when comprising real-time monitoring the and playback.Each original packet that collects during monitoring in real time can be preserved earlier, simultaneously for each original packet is provided with corresponding original packet ID, with the original packet that unique identification was obtained; The original packet that reads during playback can be provided with corresponding original packet ID, in order to the original packet that unique identification read when whenever reading an original packet.
Step S20, carry out protocol stack decoding,, write down PDU after the reorganization in the said protocol layer and the component relationship that the message bag before the PDU reorganization takes place at the protocol layer that the PDU reorganization takes place;
Network communication protocol layer of the present invention is a multilayer; The superiors are for being the protocol layer of system applies aspect generally, like HTTP (Hyper Text Transfer Protocol, HTTP); The bottom is a protocol layer of pressing close to the system physical aspect, like the data link layer; The protocol layer of the alleged generation of the present invention PDU reorganization is not limited to take place the protocol layer of IP agreement reorganization, can also be the protocol layer that other agreement reorganization take place;
In successively up carrying out the process of protocol stack decoding, if exist PDU by the protocol layer of burst, at this protocol layer PDU will take place so and recombinate, on the basis of the PDU of next protocol layer of this protocol layer, obtain the PDU that conforms to this protocol layer.With reference to Fig. 2, the protocol layer of PDU reorganization for taking place in the N protocol layer among Fig. 2, and the PDU after the reorganization of N protocol layer is based on the PDU of N-1 protocol layer, and the PDU 1 that recombinates like the N protocol layer can be combined with PDU 3 by the PDU 2 of N-1 protocol layer.It should be noted that; PDU after the N protocol layer reorganization also can based on; The N-1 protocol layer is toward the PDU of the arbitrary protocol layer that in the scope of the protocol layer that the PDU reorganization took place, (comprises the protocol layer that the PDU reorganization took place); Because the PDU of each protocol layer in these scopes also is not the de-fragmentation service mistake of the PDU of upper-layer protocol layer; Therefore the content of the PDU of each protocol layer in these scopes comes down to identically, and promptly the flesh and blood that each PDU transmitted of each protocol layer in these scopes equates.As shown in Figure 2; The N-3 protocol layer is the protocol layer that the PDU reorganization took place; The PDU of N-3 protocol layer reorganization is based on the PDU of N-4 protocol layer; PDU reorganization did not take place in N-1 protocol layer and N-2 protocol layer, the PDU of N-1 protocol layer then, and the flesh and blood of each PDU of the PDU of N-2 protocol layer and the PDU of N-3 protocol layer equates; Therefore the PDU of the N protocol layer reorganization PDU that can be not limited to by the N-1 protocol layer combines, also can be based on the PDU of N-2 protocol layer or the PDU of N-3 protocol layer.Obviously, if the protocol layer of PDU reorganization did not down take place the N-1 protocol layer, then the PDU of N protocol layer reorganization also can be based on the original packet of being obtained.
Described and can be known by epimere, the message bag before the generation PDU reorganization of indication of the present invention is: the PDU of the protocol layer identical with the flesh and blood of each PDU of next protocol layer of the protocol layer that the PDU reorganization takes place, or, original packet.
Write down in the said protocol layer PDU that PDU and the component relationship that the message bag before the PDU reorganization takes place after the reorganization can write down after the reorganization and which flesh and blood that the message bag before the PDU reorganization takes place is made up of, the position in the message bag of this flesh and blood before the PDU reorganization takes place concerns.
Optional, can write down original position and length information in the message bag of the PDU after the reorganization before the PDU reorganization takes place in the said protocol layer, with the purpose of the PDU after the reorganization in the said protocol layer of realization record with the component relationship that the message bag before PDU recombinates takes place.As shown in Figure 2; The PDU 1 of N protocol layer is combined with PDU 3 by the PDU 2 of N-1 protocol layer; Wherein, the left diagonal line hatches of PDU 2 partly is the flesh and blood of PDU 2, and blank parts is the data frame header of PDU 2 etc. and the irrelevant signaling of transmission flesh and blood; The straight line dash area of PDU 3 is identical with PDU 2 with the implication of blank parts; Then write down original position and the length information of PDU 1 at the N-1 protocol layer, promptly write down original position and the length of flesh and blood in PDU 2 of the left diagonal line hatches part of PDU 1, the situation of the straight line dash area of PDU 1 is identical with left diagonal line hatches part.
Obviously; The original position and the length information that write down in the message bag of PDU before the PDU reorganization takes place after recombinating in the said protocol layer are merely a kind of optional implementation that writes down said component relationship; Other optional modes can also for: write down in the said protocol layer final position and length information in the message bag of PDU before the PDU reorganization takes place after the reorganization; Or, original position and final position;
Optional; In the protocol layer that the PDU reorganization takes place; The component relationship of the message bag before PDU after only record is recombinated and the generation PDU reorganization; Because taking place in the protocol layer of PDU reorganization is not that the flesh and blood of PDU of reorganization is identical with the flesh and blood of a certain PDU of next protocol layer, therefore can not write down the component relationship of its preceding message bag with the PDU reorganization takes place.
Step S30, the data that will comprise said original packet ID and said component relationship are stored as CDR flow process bag.
The storage means of the CDR flow process bag that the embodiment of the invention provides; For each original packet is distributed original packet ID; At the protocol layer that the PDU reorganization takes place; Write down PDU after the reorganization and the component relationship that the message bag before PDU recombinates takes place in the said protocol layer, the data that will comprise said original packet ID and said component relationship are stored as CDR flow process bag, thereby can know initial original packet situation through original packet ID; Know the constituent relation of the PDU after the reorganization through the PDU after the reorganization and the component relationship that the message bag before the PDU reorganization takes place, so just can confirm the real source of each PDU.The invention solves the storage of CDR flow process bag in the prior art inaccurate with the problem that takies too much memory space, the CDR flow process bag storage that has realized accurately and saved memory space.
Because when carrying out the protocol stack decoding; Might not there be the protocol layer that the PDU reorganization takes place; Therefore when not having the protocol layer that the PDU reorganization takes place; Can think the corresponding original packet of each PDU, only store original packet ID, the data that will comprise said original packet ID are stored as CDR flow process bag and are got final product.
It should be noted that; In a CDR flow process, generally there are some CDR flow process bags; This some CDR flow process bag is formed the formation of CDR flow process bag; Therefore the formation of a CDR flow process bag possibly exist the CDR flow process bag of storing said original packet ID and said component relationship and the CDR flow process bag of only storing said original packet ID simultaneously.
The optional implementation of distributing original packet ID for each original packet of obtaining of introducing below that the embodiment of the invention provides.
The method flow diagram of the distribution original packet ID that Fig. 3 provides for the embodiment of the invention, with reference to Fig. 3, this method can comprise:
Step S101, the filename of setting up the storage original packet and the mapping relations of original packet ID obtain storing the file identification of original packet, and obtain the original position of original packet in institute's files stored;
Step S102, the said file identification of integration and said original position obtain original packet ID.
Set up the filename of storage original packet and the mapping relations of original packet ID, be about to a filename and be mapped on the shaping data, obtain the sign of original packet place file; Optional, these mapping relations can be recorded in the fixed disk file so that inquiry, and can use specific suffix name to distinguish.
Can when original packet writes file, (monitor situation in real time) or from file, during the playback original packet (playback situation), obtain the original position of original packet in institute's files stored.
Can above-mentioned mapping relations first field as original packet ID with second field of the original position of original packet in institute's files stored as original packet ID, be realized the integration of said mapping relations and said original position, obtain original packet ID.
" write down PDU after the reorganization and the component relationship that the message bag before PDU recombinates takes place in the said protocol layer " among the step S20 shown in Figure 1 and have following two kinds of situation at least: first kind of situation does; Carrying out protocol stack when decoding, the message bag of a current parsing PDU of current protocol layer inadequately is required; Second kind of situation do, when carrying out the protocol stack decoding, the message bag of current parsing is required more than a PDU of current protocol layer, but the rest segment of the message bag of being resolved another PDU of current protocol layer is required inadequately.
For first kind of situation; Fig. 4 shows a solution; The method flow diagram of the record component relationship that Fig. 4 provides for the embodiment of the invention; Fig. 4 has provided a kind of concrete implementation of " at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place " shown in Figure 1, and this method can comprise:
Step S201: carrying out protocol stack when decoding, if the message bag of finding current parsing inadequately a PDU of current protocol layer take, the PDU that judges current protocol layer is by burst;
The part PDU that step S202, record parse and the component relationship of current message bag of resolving at next message bag, until a complete PDU who parses current protocol layer, and the component relationship of complete PDU that record parses and the message bag of being resolved.
As shown in Figure 2, when resolving PDU 2, the not enough PDU of the content of PDU 21 is required, then the part PDU and the component relationship of PDU 2 of the PDU 1 that parses of record earlier, the i.e. left diagonal line hatches of PDU 1 component relationship in PDU 2 partly; Resolve PDU 3, the straight line dash area of PDU 3 is resolved among the PDU 1, obtain complete PDU 1, complete PDU 1 that record parses and the component relationship of PDU that is resolved 2 and PDU 3, this mode of accordinging to parses the PDU of all reorganization.
For second kind of situation; Fig. 5 shows a solution; Another flow chart of the method for the record component relationship that Fig. 5 provides for the embodiment of the invention; Fig. 5 has provided a kind of concrete implementation of " at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place " shown in Figure 1, and this method can comprise:
Step S211, carrying out protocol stack when decoding,, writing down the complete PDU that parses and the component relationship of current message bag of resolving if the message bag of finding current parsing takes more than a PDU of current protocol layer;
The rest segment of step S212, the message bag of being resolved is that current protocol layer is by the part of the PDU of burst; The part PDU that record parses and the component relationship of current message bag of resolving; Resolve next message bag; Until a complete PDU who parses current protocol layer, the component relationship of complete PDU that record parses and the message bag of being resolved.
As shown in Figure 6; The PDU reorganization takes place in the N protocol layer; The PDU 1 of N layer protocol layer partly is made up of the left diagonal line hatches of the PDU 3 of N-1 protocol layer; The PDU 2 of N layer protocol layer partly is made up of the straight line dash area of the PDU 3 of N-1 protocol layer and the right diagonal line hatches of PDU 4, for the component relationship of PDU1, and the component relationship of left diagonal line hatches part in PDU 3 of record PDU 1; For the component relationship of PDU2, the component relationship of the straight line dash area of record PDU 2 in PDU 3 and the component relationship of right diagonal line hatches part in PDU 4 of PDU 2; Parse the PDU of all reorganization according to this mode.
It should be noted that; Above-mentioned first kind of situation and second kind of situation possibly exist simultaneously; For first kind of situation and second kind of simultaneous situation of situation; Can combine Fig. 4 and method shown in Figure 5, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place.
The concrete realization means of above-mentioned record component relationship are merely optional implementation; Those skilled in the art can be under enlightenment of the present invention; Draw or conversion draws the concrete realization means of other record component relationship, the concrete realization means that this draws or conversion draws also should belong to invention which is intended to be protected.
Because the message bag that the present invention takes place before the PDU reorganization does, the PDU of the protocol layer identical with the flesh and blood of each PDU of next protocol layer of the protocol layer that the PDU reorganization takes place, or, original packet; Therefore at the protocol layer that the PDU reorganization takes place, the recording mode of the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place can according to concrete condition and be divided into following 3 kinds of concrete modes at least:
First kind; When the protocol layer that the PDU reorganization takes place when the protocol layer of PDU reorganization takes place first for, write down the PDU after the reorganization in the said protocol layer and be specially: write down the PDU after the reorganization and the component relationship of original packet in the said protocol layer with the component relationship that the message bag before the PDU reorganization takes place.
As shown in Figure 7, if the N protocol layer is for the protocol layer of PDU reorganization takes place first, promptly the PDU reorganization did not all take place in N protocol layer protocol layer down, then write down the PDU after the reorganization and the component relationship of original packet in the N protocol layer.
Second kind; When the protocol layer that the PDU reorganization takes place is the non-protocol layer that the PDU reorganization takes place first, writes down the PDU after the reorganization in the said protocol layer and be specially: the component relationship that writes down the PDU of the lower layer protocol layers that the PDU after the reorganization and adjacent generation PDU recombinate in the said protocol layer with the component relationship that the message bag before the PDU reorganization takes place.
As shown in Figure 2; N protocol layer and N-3 protocol layer are the protocol layer that adjacent generation PDU recombinates, and the N-3 protocol layer early than the N protocol layer PDU reorganization takes place, and is the lower layer protocol layers of N protocol layer; Because the PDU reorganization did not take place in the protocol layer between N protocol layer and the N-3 protocol layer; Therefore the flesh and blood of each PDU of N-3 protocol layer to the N-1 protocol layer is identical, as preferably, writes down the component relationship of the PDU of the PDU after the reorganization and N-3 protocol layer in the N protocol layer; Obviously, the present invention also can write down in the N protocol layer component relationship of the PDU of PDU and N-2 protocol layer or N-1 protocol layer after the reorganization.
The third, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place comprises:
Write down the component relationship of each PDU and original packet in first protocol layer;
In the process of carrying out the protocol stack decoding by protocol hierarchy, the component relationship of the PDU of the PDU of record protocal layers and next protocol layer of protocal layers;
The component relationship that is write down comprises: the PDU after the reorganization of protocol layer of PDU reorganization takes place, with the component relationship of the PDU of next protocol layer of the protocol layer that the PDU reorganization takes place.
The third mode is the mode that successively writes down; End from the superiors' agreement of bottom agreement to appointment; The component relationship of the PDU of record protocal layers and the PDU of its next protocol layer; Thereby in the relation that is write down, comprise the PDU after the reorganization of the protocol layer that the PDU reorganization takes place, with the component relationship of the PDU of next protocol layer of the protocol layer that the PDU reorganization takes place.
It should be noted that; The recording mode of component relationship can be not limited to above-mentioned three kinds of situation; As long as can write down in the protocol layer that the PDU reorganization takes place, the PDU after the reorganization should be in protection scope of the present invention with the recording mode of the component relationship that the message bag before PDU recombinates takes place.
Said original packet ID that writes down for making and said component relationship are more clear directly perceived; Can preestablish the tree structure template; Through said original packet ID of tree structure template record and said component relationship; With reference to Fig. 8; A kind of optional implementation is: said original packet ID is recorded in the bottom of preset tree structure template, the protocol layer that the PDU reorganization takes place is recorded in the node place of said tree structure template, the component relationship of the message bag before said node place writes down the PDU after the reorganization in the said protocol layer and the PDU reorganization takes place.
Optional; Can carry out record successively through the tree structure template; The component relationship of the PDU of the PDU of record protocal layers and next protocol layer of protocal layers; Thereby make the component relationship that writes down in the tree structure template comprise: the PDU after the reorganization of protocol layer of PDU reorganization to take place, with the component relationship of the PDU of next protocol layer of the protocol layer that the PDU reorganization takes place.
When said original packet ID and said component relationship are recorded in the tree structure template, can the tree structure template of said original packet ID of record and said component relationship be stored as CDR flow process bag.
Be compatible prior art; Write down the tree structure template of said original packet ID and said component relationship; Record original packet ID to quote the form that bag and the PDU bag that records the PDU content can the virtual data bag compatible mutually, the three distinguishes through the specific identifier of virtual data bag.
A kind of optional concrete manifestation form of virtual data bag can be as shown in the table:
Figure BDA00002037788100101
In the last table, when type=0, represent that in fact this virtual is one and quotes bag; Its bag content is the ID that quotes of an original packet; In fact meaning i.e. this virtual is exactly an original packet, but because original packet is stored already, there is no need repeated storage; So quote ID for one that only stores corresponding original packet, structure is the RefPKTID in the last table.
When type=1; Represent that this virtual is not an in esse bag; This virtual is the PDU that has complete meaning through on certain protocol hierarchy that forms after some original packet burst combined treatment; Which protocol hierarchy this PDU belongs to, and is identified by the initiation protocol ID in this virtual structure.
Add the pktStamp field in the virtual structural design, represent the timestamp of this PDU.If want to check original original packet; Only need go to have searched just in the original packet according to this PDU timestamp; Original packet just (contained this timestamp) before this timestamp, be timestamp because the PDU timestamp is timestamp with last original packet of forming this PDU.
When type=2, represent that this bag is a tree virtual, the PDU of each layer protocol can be obtained by the PDU of several (one or more) its lower-layer protocols; Because certain layer PDU content must be present in the middle of the PDU of one deck under several, (, show corresponding to the component relationship among each PDU of lower floor from this original position like original position in the PDU of lower floor and length L en as long as remember each part of certain PDU; Len the byte in back all belongs to the PDU of this layer); Just reduciblely go out this layer PDU, recurrence thus is up to the PDU of the bottom; It is original packet; And being stored in of original packet accomplished when obtaining, and be the same during as type=0, in program, representes with a RefPKTID.Obviously, the PDU after the reorganization is merely a kind of optional implementation with the component relationship that the message bag before PDU recombinates takes place in the described record protocol layer of this section.
In the last table, C aType=1 or 2 is worked as in expression, when promptly virtual is PDU bag or tree virtual, and the Optional Field that just can occur; C bExpression type=0, when promptly virtual is wrapped for quoting, the Optional Field that just can occur.Obviously, can for dissimilar virtual Optional Field be set according to actual needs, the present invention does not limit this yet, and last table is merely a kind of optional form of expression of virtual data bag.
With reference to Fig. 9, under the situation of having set up above-mentioned virtual data bag, method shown in Figure 1 can also comprise:
The virtual data bag formation of step S40, formation, the formation of said virtual data bag are the formation of CDR flow process bag, the virtual data bag formation that forms is write in the file, with the ID that writes file with write the data directory of the position of file as the CDR flow process;
Step S50, with the field of said data directory as CDR information.
Preamble has been stated and in a CDR flow process, has generally been had some CDR flow process bags; Some CDR flow process bags are formed the formation of CDR flow process bag; Therefore on the basis of setting up the virtual data bag; Can with CDR flow process bag abstract be virtual, in order to a compatible CDR flow process bag promptly be a raw data packets quote ID, a CDR flow process bag promptly is that a PDU, a CDR flow process bag promptly are these the three kinds of situation of tree structure template that record said original packet ID and said component relationship.On this basis; The formation of formed virtual data bag is the formation of CDR flow process bag; The formation of virtual data bag is write in the file; With the ID that writes file with write the data directory of the position of file as the CDR flow process, said data directory is together stored as field of CDR information and other information of CDR, so that the reduction of follow-up inquiry and CDR flow process bag.
The clear complete storage means to the CDR flow process bag that the embodiment of the invention provided of preceding text has been carried out detailed explanation; To introduce the method for reducing of CDR flow process bag below; The method of reducing of this CDR flow process bag is the inverse process of storage means of the CDR flow process bag of above-mentioned introduction, but both cross-references.
The flow chart of the method for reducing of the CDR flow process bag that Figure 10 provides for the embodiment of the invention, with reference to Figure 10, this method can comprise:
Step S100, from CDR flow process bag, extract original packet ID and PDU after the reorganization in the protocol layer of PDU reorganization and the component relationship that the message bag before the PDU reorganization takes place take place;
Step S200, confirm the original packet that protocal layers PDU is corresponding according to said original packet ID and component relationship.
Optional, step S200 can also comprise: the PDU that re-assemblies out protocal layers.
On the basis of the component relationship of the message bag before the PDU after having obtained original packet ID and reorganization recombinates with generation PDU, can learn the original packet of protocal layers PDU correspondence, and then begin successively up to re-assembly out the PDU of protocal layers from original packet.
Wherein, the component relationship of PDU after the reorganization and the message bag before the generation PDU reorganization is chosen as in the protocol layer of said generation PDU reorganization:
Original position and length information in the message bag of PDU after the reorganization before the PDU reorganization takes place take place in the protocol layer of PDU reorganization.
Optional; When said original packet ID and said component relationship are recorded in the preset tree structure template; And said tree structure template with record original packet ID quote bag and record the PDU bag of PDU content compatible mutually with the form of virtual data bag; When the three distinguished through the specific identifier of virtual data bag, method shown in Figure 10 can also comprise:
From CDR information, extract the formation of virtual data bag and write the ID of file and the data directory of writing position;
Find the virtual data bag that records said original packet ID and said component relationship according to said data directory, this virtual data bag is a CDR flow process bag.
Concrete, owing in each its field of concrete CDR its package informatin of information description is arranged all, like CDR package informatin file ID; With CDR package informatin cell position Pos, then can find corresponding C DR record through CDRID, therefrom find distant station numbering and front end plane No. then; Thereby unique definite machine through CDR package informatin file ID, can find corresponding C DR package informatin file again; Again through CDR package informatin cell position pos; Then can in corresponding file, find said data directory, the positional information of each virtual data bag has been write down in the inside, thereby can in corresponding virtual data bag storage file, determine the particular content of each virtual data bag; Then can find corresponding original packet if quote the bag type; If record the virtual data bag of said original packet ID and said component relationship, then can determine under PDU reorganization situation the original packet that protocal layers PDU is corresponding.
Introduce the storage system of CDR flow process bag below, this storage system is corresponding with the storage means of CDR flow process bag mentioned above, can carry out reference each other, and shown in figure 11, this system can comprise:
ID distribution module 10 is used to each original packet of obtaining and distributes original packet ID;
Decoder module 20 is used for carrying out the protocol stack decoding by protocol hierarchy;
Logging modle 30 is used for the decode procedure at decoder module 20, at the protocol layer that the PDU reorganization takes place, and the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place;
Memory module 40, the packet that will comprise said original packet ID and said component relationship is stored as CDR flow process bag.
Optional; When said original packet ID and said component relationship are recorded in the preset tree structure template; And said tree structure template with record original packet ID quote bag and record the PDU bag of PDU content compatible mutually with the form of virtual data bag, when the three distinguishes through the specific identifier of virtual data bag, with reference to Figure 12; On the basis of system shown in Figure 11, can also comprise:
Virtual data bag writing module 50 is used for the virtual data bag formation that forms is write file, and the formation of said virtual data bag is the formation of CDR flow process bag;
Data directory generation module 60 is used for writing the ID of file and writing the data directory of the position of file as the CDR flow process with the formation of virtual data bag;
Field is incorporated module 70 into, is used for the field of said data directory as CDR information.
Optional, the storage system of the CDR flow process bag that the embodiment of the invention provides can be applicable to Gb mouth network synthesis analyzer, in the devices such as wlan network monitoring and analytical system.
Introduce the restoring system of CDR flow process bag below, this restoring system is corresponding with the method for reducing of CDR flow process bag mentioned above, can carry out reference each other, and shown in figure 13, this system can comprise:
First extraction module 100 is used for extracting original packet ID and PDU after the reorganization in the protocol layer of PDU reorganization and the component relationship that the message bag before the PDU reorganization takes place taking place from CDR flow process bag;
Recovery module 200 is confirmed the original packet that protocal layers PDU is corresponding according to said original packet ID and component relationship.
Optional, recovery module 200 can also be used to re-assembly out the PDU of protocal layers.
Optional; When said original packet ID and said component relationship are recorded in the preset tree structure template; And said tree structure template with record original packet ID quote bag and record the PDU bag of PDU content compatible mutually with the form of virtual data bag, when the three distinguishes through the specific identifier of virtual data bag, with reference to Figure 14; On the basis of system shown in Figure 13, can also comprise:
Second extraction module 300 is used for extracting the formation of virtual data bag from CDR information and writes the ID of file and the data directory of writing position;
Search module 400, be used for finding the virtual data bag that records said original packet ID and said component relationship according to said data directory, this virtual data bag is a CDR flow process bag.
The embodiment of the invention provides a kind of storage and method of reducing and device of CDR flow process bag; Wherein the storage means of CDR flow process bag is through distributing original packet ID for each original packet; At the protocol layer that the PDU reorganization takes place; Write down in the said protocol layer PDU and the component relationship that the message bag before the PDU reorganization takes place after the reorganization, realized the knowing of real source of each PDU, accurately and save memory space carrying out the storage of CDR flow process bag.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part is partly explained referring to method and is got final product.
The professional can also further recognize; The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (18)

1. the storage means of a call detail record CDR flow process bag is characterized in that, comprising:
For each original packet of obtaining is distributed original packet identify label sign indicating number ID;
Carry out the protocol stack decoding, at the protocol layer that protocol Data Unit PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place;
The data that will comprise said original packet ID and said component relationship are stored as CDR flow process bag.
2. method according to claim 1 is characterized in that, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place comprises:
Carrying out protocol stack when decoding, if the message bag of finding current parsing inadequately a PDU of current protocol layer take, the PDU that judges current protocol layer is by burst;
The part PDU that record parses and the component relationship of current message bag of resolving at next message bag, until a complete PDU who parses current protocol layer, and the component relationship of complete PDU that record parses and the message bag of being resolved.
3. method according to claim 1 is characterized in that, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place comprises:
When carrying out the protocol stack decoding, a PDU more than current protocol layer takes as if the message bag of finding current parsing, the complete PDU that record parses and the component relationship of current message bag of resolving;
The rest segment of the message bag of being resolved is that current protocol layer is by the part of the PDU of burst; The part PDU that record parses and the component relationship of current message bag of resolving; Resolve next message bag; Until a complete PDU who parses current protocol layer, the component relationship of complete PDU that record parses and the message bag of being resolved.
4. method according to claim 1 is characterized in that, when the protocol layer that the PDU reorganization takes place when the protocol layer of PDU reorganization takes place first for, write down the PDU after the reorganization in the said protocol layer and be specially with the component relationship that the message bag before the PDU reorganization takes place:
Write down in the said protocol layer PDU and the component relationship of original packet after the reorganization.
5. method according to claim 1 is characterized in that, the component relationship of the message bag before the protocol layer that the PDU reorganization takes place is the non-protocol layer that the PDU reorganization takes place first, writes down the PDU after recombinating in the said protocol layer and the PDU reorganization takes place is specially:
Write down in the said protocol layer component relationship of the PDU of the lower layer protocol layers that PDU and adjacent generation PDU after the reorganization recombinate.
6. method according to claim 1 is characterized in that, at the protocol layer that the PDU reorganization takes place, the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place comprises:
Write down the component relationship of each PDU and original packet in first protocol layer;
In the process of carrying out the protocol stack decoding by protocol hierarchy, the component relationship of the PDU of the PDU of record protocal layers and next protocol layer of protocal layers;
The component relationship that is write down comprises: the PDU after the reorganization of protocol layer of PDU reorganization takes place, with the component relationship of the PDU of next protocol layer of the protocol layer that the PDU reorganization takes place.
7. method according to claim 1 is characterized in that, the component relationship of the message bag that the PDU in the said protocol layer of said record after the reorganization is preceding with the PDU reorganization takes place comprises:
Write down original position and length information in the message bag of the PDU after the reorganization before the PDU reorganization takes place in the said protocol layer.
8. method according to claim 1 is characterized in that, distributes original packet ID for each original packet of obtaining and comprises:
Set up the filename of storage original packet and the mapping relations of original packet ID, obtain storing the file identification of original packet, and obtain the original position of original packet in institute's files stored;
Integrate said mapping relations and said original position, obtain original packet ID.
9. method according to claim 1 is characterized in that, also comprises:
In the process of carrying out the protocol stack decoding, when not having the protocol layer that the PDU reorganization takes place, the data that will comprise said original packet ID are stored as CDR flow process bag.
10. according to each described method of claim 1 to 9; It is characterized in that; Also comprise: the bottom that said original packet ID is recorded in preset tree structure template; The protocol layer that the PDU reorganization takes place is recorded in the node place of said tree structure template, the component relationship of the message bag before said node place writes down the PDU after the reorganization in the said protocol layer and the PDU reorganization takes place;
The said packet that will comprise said original packet ID and said component relationship is stored as CDR flow process bag and is specially:
The tree structure template of said original packet ID of record and said component relationship is stored as CDR flow process bag.
11. method according to claim 10; It is characterized in that; Write down the tree structure template of said original packet ID and said component relationship; Record original packet ID to quote bag compatible mutually with the form of virtual data bag with the PDU bag that records the PDU content, the three distinguishes through the specific identifier of virtual data bag;
Said method also comprises:
Form the formation of virtual data bag, the formation of said virtual data bag is the formation of CDR flow process bag, the virtual data bag formation that forms is write in the file, with the ID that writes file with write the data directory of the position of file as the CDR flow process;
With the field of said data directory as CDR information.
12. the method for reducing of a call detail record CDR flow process bag is characterized in that, comprising:
From CDR flow process bag, extract original packet identify label sign indicating number ID and PDU after the reorganization in the protocol layer of protocol Data Unit PDU reorganization and the component relationship that the message bag before the PDU reorganization takes place take place;
Confirm the original packet that protocal layers PDU is corresponding according to said original packet ID and component relationship.
13. method according to claim 12 is characterized in that, the component relationship of the message bag before PDU in the protocol layer of said generation PDU reorganization after the reorganization and the generation PDU reorganization is specially:
Original position and length information in the message bag of PDU after the reorganization before the PDU reorganization takes place take place in the protocol layer of PDU reorganization.
14. method according to claim 12; It is characterized in that; When said original packet ID and said component relationship are recorded in the preset tree structure template; And said tree structure template with record original packet ID quote bag and record the PDU bag of PDU content compatible mutually with the form of virtual data bag, when the three distinguished through the specific identifier of virtual data bag, said method also comprised:
From CDR information, extract and record the formation of virtual data bag and write the ID of file and the data directory of writing position;
Find the virtual data bag that records said original packet ID and said component relationship according to said data directory, this virtual data bag is a CDR flow process bag.
15. the storage system of a call detail record CDR flow process bag is characterized in that, comprising:
Identify label sign indicating number ID distribution module is used to each original packet of obtaining and distributes original packet ID;
Decoder module is used for carrying out the protocol stack decoding by protocol hierarchy;
Logging modle is used for the decode procedure at said decoder module, at the protocol layer that protocol Data Unit PDU reorganization takes place, and the component relationship of the message bag before writing down the PDU after recombinating in the said protocol layer and the PDU reorganization taking place;
Memory module, the packet that will comprise said original packet ID and said component relationship is stored as CDR flow process bag.
16. system according to claim 15; It is characterized in that; When said original packet ID and said component relationship are recorded in the preset tree structure template; And said tree structure template with record original packet ID quote bag and record the PDU bag of PDU content compatible mutually with the form of virtual data bag, when the three distinguished through the specific identifier of virtual data bag, said system also comprised:
Virtual data bag writing module is used for the virtual data bag formation that forms is write file, and the formation of said virtual data bag is the formation of CDR flow process bag;
The data directory generation module is used for writing the ID of file and writing the data directory of the position of file as the CDR flow process with the formation of virtual data bag;
Field is incorporated module into, is used for the field of said data directory as CDR information.
17. the restoring system of a call detail record CDR flow process bag is characterized in that, comprising:
First extraction module is used for extracting original packet identify label sign indicating number ID and PDU after the reorganization in the protocol layer of protocol Data Unit PDU reorganization and the component relationship that the message bag before the PDU reorganization takes place taking place from CDR flow process bag;
Recovery module is confirmed the original packet that protocal layers PDU is corresponding according to said original packet ID and component relationship.
18. system according to claim 17; It is characterized in that; When said original packet ID and said component relationship are recorded in the preset tree structure template; And said tree structure template with record original packet ID quote bag and record the PDU bag of PDU content compatible mutually with the form of virtual data bag, when the three distinguished through the specific identifier of virtual data bag, said system also comprised:
Second extraction module is used for extracting the formation of virtual data bag from CDR information and writes the ID of file and the data directory of writing position;
Search module, be used for finding the virtual data bag that records said original packet ID and said component relationship according to said data directory, this virtual data bag is a CDR flow process bag.
CN201210299999.5A 2012-08-21 2012-08-21 Method and device for storage and reduction of CDR (calling detail records) process packets Active CN102820997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210299999.5A CN102820997B (en) 2012-08-21 2012-08-21 Method and device for storage and reduction of CDR (calling detail records) process packets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210299999.5A CN102820997B (en) 2012-08-21 2012-08-21 Method and device for storage and reduction of CDR (calling detail records) process packets

Publications (2)

Publication Number Publication Date
CN102820997A true CN102820997A (en) 2012-12-12
CN102820997B CN102820997B (en) 2015-03-25

Family

ID=47304868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210299999.5A Active CN102820997B (en) 2012-08-21 2012-08-21 Method and device for storage and reduction of CDR (calling detail records) process packets

Country Status (1)

Country Link
CN (1) CN102820997B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097822A (en) * 2023-10-19 2023-11-21 北京浩瀚深度信息技术股份有限公司 Method, system and storage medium for stream type recombination network data package

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394451A (en) * 2008-11-06 2009-03-25 北京中创信测科技股份有限公司 Storage method for call detailed recorded data, indication method and system
US7925913B1 (en) * 2007-05-04 2011-04-12 Altera Corporation CDR control architecture for robust low-latency exit from the power-saving mode of an embedded CDR in a programmable integrated circuit device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7925913B1 (en) * 2007-05-04 2011-04-12 Altera Corporation CDR control architecture for robust low-latency exit from the power-saving mode of an embedded CDR in a programmable integrated circuit device
CN101394451A (en) * 2008-11-06 2009-03-25 北京中创信测科技股份有限公司 Storage method for call detailed recorded data, indication method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程方,杨力,黄建,蒲伟: "LTE网络GTPv2协议检测技术的设计与实现", 《电信科学》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117097822A (en) * 2023-10-19 2023-11-21 北京浩瀚深度信息技术股份有限公司 Method, system and storage medium for stream type recombination network data package
CN117097822B (en) * 2023-10-19 2024-01-19 北京浩瀚深度信息技术股份有限公司 Method, system and storage medium for stream type recombination network data package

Also Published As

Publication number Publication date
CN102820997B (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN110691034B (en) Method and device for transmitting service flow of flexible Ethernet
US8489548B2 (en) Method, system, and device for data synchronization
CN108090064A (en) A kind of data query method, apparatus, data storage server and system
CN103049355B (en) Method and equipment for database system recovery
CN104756450A (en) Packet format and communication method of network node for IP routing compatibility and the network node
CN103618792B (en) Data stream identification method and device
CN102750326A (en) Log management optimization method of cluster system based on downsizing strategy
CN104320679B (en) A kind of user information acquiring method and server based on HLS protocol
CN108241642B (en) File analysis method and device
CN103535011A (en) Routing method, device, and system in content delivery network (CDN)
CN109710439A (en) Fault handling method and device
CN114363320A (en) Cross-network data returning method, storage medium and system
CN103825918A (en) Data synchronization method, terminal equipment, server and data synchronization system
CN102884834B (en) The system and method that control information in media access control protocol data unit is encoded and decodes
US20150112993A1 (en) Method and Apparatus for Importing and Exporting Contact
CN106936852B (en) Data sending and receiving method, equipment and data transmission system
CN102820997A (en) Method and device for storage and reduction of CDR (calling detail records) process packets
CN109934584A (en) Block chain account trading method and apparatus
CN104424316A (en) Data storage method, data searching method, related device and system
CN112965980A (en) Information storage method and device
CN106488055A (en) Calling list rearrangement method, back end equipment and routing node device
CN102868775B (en) Method for expanding capacity of address resolution protocol table, and message forwarding method and device
CN110019347A (en) A kind of data processing method, device and the terminal device of block chain
CN108881124A (en) Method, system, storage medium and the equipment of high performance communication are realized in intermodule
CN104639585B (en) A kind of real-time data transmission system and its method of data synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant