Call detail record inverse-checking method and system
Technical field
The present invention relates to monitoring and the analytical technology of communication network transmission performance, refer more particularly to call detail record inverse-checking method and system in communication network monitoring and analytical technology.
Background technology
In technology of communication network monitoring, normal employing analyzed the information interaction of a certain calling procedure, thereby monitors the ruuning situation of network, obtains the monitoring index of network communication quality.For accurately monitoring and analyze the information interaction situation of each calling procedure, need to call out synthetic.So-called calling is synthetic classifies to every the message collecting exactly, tell the corresponding calling procedure of every a piece of news, and obtain the call detail record (English Call Detail Record, referred to as CDR) of this calling procedure, and store CDR and the corresponding message of this CDR.And, call out synthetic in, also need synthetic complete CDR to carry out real-time statistics.Prior art is when carrying out real-time statistics to CDR, and the method for employing is, after CDR synthesizes, to send to statistic record administration module, and statistic record administration module generates statistic record in real time.It should be noted that, statistic record administration module, when CDR is processed, need to define CDR structure and statistic record structure, and makes to form corresponding relation between CDR structure and statistic record structure.Accordingly, prior art adopts CDR administration module that the network information is called out alternately synthetic and CDR is managed, and adopts statistic record administration module process synthetic complete CDR and statistic record is managed.
In the process that a certain calling procedure information interaction is analyzed, usually need to inquire about CDR (counter the looking into of CDR that is commonly called statistic record) by statistic record.So-called CDR is counter to be looked into and refers to according to a certain statistic record synthetic complete CDR is inquired about, and obtains all CDR set that meet this statistic record condition.Obviously, just inquire about and must set up the corresponding relation between statistic record and CDR, and obtain qualified CDR set according to this corresponding relation.When prior art carries out that CDR is counter to be looked into, conventionally according to the corresponding relation of statistic record structure and CDR structure, build querying condition expression formula, inquire about all synthetic complete CDR, then, return to qualified CDR set.For example, when CDR inquiry is carried out in the statistic record (being rel_cause0) that release cause is 0 in need to be to the statistic record of isup agreement, the expression formula of its querying condition is: isup_cdr.opc==isup_statistic.opc & & isup_cdr.dpc==isup_statistic.dpc & & rel_cause==0.In formula, struct isup_cdr is the isup CDR structure of definition, and struct isup_statistic is the isup statistic record structure of definition.
Prior art adopts statistic record structure and CDR structure to realize corresponding relation between the two, and the functional module of definition or statement statistic record structure and CDR structure is separately positioned in statistic record administration module and CDR administration module, cause the degree of coupling of statistic record administration module and CDR administration module higher, the small change of statistic record administration module all needs the appropriate section of CDR administration module to change, and makes the very inconvenience of code maintenance of CDR administration module and statistic record administration module.In addition, the generating mode of prior art querying condition expression formula is determined when code compilation, when making to revise or increasing querying condition, need to recompilate source program, very complicated and expend larger.
Summary of the invention
For solve between prior art statistic record administration module and CDR administration module the degree of coupling higher, to the increase of querying condition or revise complexity and expend the problems such as larger, the present invention proposes a kind of call detail record inverse-checking method and system.Call detail record inverse-checking method of the present invention adopts CDR description list and statistic record collection description list to realize the corresponding relation between statistic record and CDR, adopts statistic record collection description list to be configured CDR querying condition expression formula.Call detail record of the present invention is counter, and to look into the CDR administration module of system completely separated with statistic record administration module, when needs increase or revise querying condition, only need statistic record collection description list be modified or be increased and can be realized, therefore, greatly improved development efficiency, reduce development cost, it is very convenient to safeguard.
Call detail record inverse-checking method of the present invention adopts CDR description list and statistic record collection description list respectively CDR administration module and statistic record administration module to be configured; Adopt CDR label to set up the corresponding relation between statistic record and CDR; Adopt statistic record collection description list to be configured querying condition expression formula and using querying condition expression formula and CDR label as querying condition; Wherein, CDR label is generated by system, can be letter, numeral, character string or its combination.
Call detail record inverse-checking method of the present invention adopts CDR description list and statistic record collection description list respectively CDR administration module and statistic record administration module to be configured, comprise: in CDR administration module outside, set up CDR description list, CDR administration module can read the information of CDR description list and according to this CDR attribute increased or revised; In statistic record administration module outside, set up statistic record collection description list, statistics management module can read the information of statistic record collection description list and according to this attribute of statistic record increased or revised.
The CDR description list of call detail record inverse-checking method of the present invention, content comprises: CDR label and CDR attribute description, wherein, CDR attribute description comprises again field type, field length, Field Sanitization name and the field display name of CDR.
The statistic record collection description list of call detail record inverse-checking method of the present invention, content comprises: statistic record collection information is described and statistic record collection field information is described, wherein:
Statistic record collection information is described, and comprising: record set title, CDR label and index;
Statistic record collection field information is described, and comprising: the CDR querying condition expression formula of the field type of field, Field Sanitization name and field in record set; Wherein, CDR querying condition expression formula is the CDR filter condition existing with character string forms.
Call detail record inverse-checking method of the present invention adopts CDR label to set up the corresponding relation between statistic record and CDR, comprise: before calling is synthetic, system generates CDR label and adopts this label to identify synthetic complete CDR, a corresponding CDR of CDR label, and in CDR description list and statistic record collection description list, set up CDR tab indexes respectively.
Call detail record inverse-checking method of the present invention adopts statistic record collection description list to be configured querying condition expression formula and usings querying condition expression formula and CDR label as querying condition, comprise: according to statistic record field to be checked, determine that the corresponding statistic record set name of this statistic record field claims, the statistic record collection description list corresponding according to this statistic record collection name acquiring, according to the description of the CDR querying condition of this statistic record field in statistic record collection description list, generate CDR querying condition expression formula and obtain corresponding CDR label in statistic record collection description list, using aforementioned CDR querying condition expression formula and CDR label as querying condition, wherein, described CDR querying condition expression formula is the CDR filter condition existing with character string forms.
Call detail record inverse-checking method of the present invention, when carrying out that call detail record is counter to be looked into, comprises the following steps:
1, statistic record administration module determines that according to statistic record field to be checked corresponding statistic record set name claims;
2, statistic record administration module is according to the corresponding statistic record collection of statistic record collection name acquiring description list;
3, statistic record administration module generates CDR querying condition expression formula according to the description of the CDR querying condition of this statistic record field in statistic record collection description list, and CDR querying condition expression formula is the CDR filter condition existing with character string forms;
4, statistic record administration module obtains the CDR label that this statistic record collection description list is corresponding;
5, statistic record administration module sends the CDR inquiry request that includes aforementioned CDR querying condition expression formula and CDR label to CDR administration module;
6, CDR administration module obtains corresponding CDR description list according to CDR label;
7, CDR administration module reads successively and has whole CDR of this CDR label and obtain the CDR set that meets CDR querying condition expression formula.
The anti-system of looking into of call detail record of the present invention, comprising: CDR description list, CDR administration module, calling synthesis module, statistic record collection description list, statistic record administration module, statistical module and man-machine interface, wherein:
CDR description list is for being described and being transferred to CDR administration module to the CDR attribute of different specification agreement;
CDR administration module can obtain the information of CDR description list and according to this CDR attribute increased or revised; The CDR label generating according to system identifies and sets up CDR tab indexes to calling out synthetic complete CDR; According to CDR querying condition expression formula and CDR label, CDR is inquired about;
Calling out synthesis module requires network signal to call out synthetic according to the instruction of CDR administration module and protocol specification;
Statistic record collection description list can be described and be transferred to statistic record administration module to the statistic record of different specification agreement, statistic record set attribute; According to the description of the CDR querying condition of statistic record field to be checked and this statistic record field, generate CDR querying condition expression formula; Generation includes the CDR querying condition of CDR querying condition expression formula and CDR label; According to CDR label, statistic record is identified and is set up CDR tab indexes;
Statistic record administration module can obtain the information of statistic record collection description list and according to this attribute of statistic record, statistic record collection increased or revised;
Statistical module requires CDR to add up according to the instruction of statistic record administration module and protocol specification;
Man-machine interface can receive artificial control command and control command is transferred to CDR description list or statistic record collection description list; Show Query Result information.
Accompanying drawing explanation
Accompanying drawing 1 is the schematic diagram of call detail record inverse-checking method isup Embodiment C DR description list of the present invention;
Accompanying drawing 2 is schematic diagrames of call detail record inverse-checking method isup embodiment statistic record collection description list of the present invention;
The schematic flow sheet that accompanying drawing 3 is call detail record inverse-checking methods of the present invention when carrying out that call detail record is counter to be looked into;
Accompanying drawing 4 is the counter structural representations of looking into system of call detail record of the present invention.
Below in conjunction with drawings and the specific embodiments, call detail record inverse-checking method of the present invention and system are described further.
Embodiment
Specific embodiment 1
Accompanying drawing 1 is the schematic diagram of call detail record inverse-checking method isup Embodiment C DR description list of the present invention.As seen from the figure, CDR description list is used for describing CDR, comprising: CDR label and CDR attribute description.In the present embodiment, CDR label has adopted the value of CDR_TYPE to explain, as the 4th row " cdr_type=15 0 " of CDR description list in accompanying drawing 1; CDR attribute description comprises: the field type of each attribute of CDR, field length, Field Sanitization name and field display name, and as the CDRITEM part in accompanying drawing 1.As the 11st row of CDR description list in accompanying drawing 1 " 4=call_num; 9; 50; Calling Party Number, calling number ", the Property Name of the field that to have described call number be 0 is call_num, data type is 9 (character string types), field length is 50, field English " Calling Party Number " by name, field Chinese " calling number " by name.
Specific embodiment 2
Accompanying drawing 2 is schematic diagrames of call detail record inverse-checking method isup embodiment statistic record collection description list of the present invention.As seen from the figure, statistic record collection description list, for descriptive statistics record set, comprises, the description of statistic record collection information and the description of statistic record collection field information, wherein:
Statistic record collection information is described, and comprising: record set title, CDR label and index;
Statistic record collection field information is described, and comprising: the CDR querying condition expression formula of the field type of field, Field Sanitization name and field in record set; Wherein, CDR querying condition expression formula is the CDR filter condition existing with character string forms.
In the present embodiment, the statstic_cfg of accompanying drawing 2 part (the 1st, 2,3 row in accompanying drawing 2):
“statistic_name=ISUP_SPC”
" sub_statistic_name=isup_call_statistic " described the title of call statistics record set.
" relook_cdrtype=150 " (the 5th row in accompanying drawing 2) described the CDR label of this statistic record.
And Record has partly comprised the description to static fields, for example (eighth row in accompanying drawing 2):
" 0=1300m_uDstAddr Original Signaling Point-" described the field that call number is 0, data type is 9 (signalling point forms, length is 4), in record, side-play amount is 0, field length is 0 (can determine by data type), field English " m_uDstAddr " by name, field Chinese " Original Signaling Point " by name.Querying condition expression formula is "-" ("-" represents not define querying condition).For every statistic record, can obtain by these description lists value and the querying condition of the field of appointment in statistic record.
In addition, in the display part (the 17th row in accompanying drawing 2) of the present embodiment, also minute set condition of the display Name of field, statistic record collection etc. is described.In function_colum part (the 28th row in accompanying drawing 2), user-defined statistical items has been described.
The schematic flow sheet that accompanying drawing 3 is call detail record inverse-checking methods of the present invention when carrying out that call detail record is counter to be looked into.As seen from the figure, call detail record inverse-checking method of the present invention comprises the following steps:
1, statistic record administration module determines that according to statistic record field to be checked corresponding statistic record set name claims;
2, statistic record administration module is according to the corresponding statistic record collection of statistic record collection name acquiring description list;
3, statistic record administration module generates CDR querying condition expression formula according to the description of the CDR querying condition of this statistic record field in statistic record collection description list, and CDR querying condition expression formula is the CDR filter condition existing with character string forms;
4, statistic record administration module obtains the CDR label that this statistic record collection description list is corresponding;
5, statistic record administration module sends the CDR inquiry request that includes aforementioned CDR querying condition expression formula and CDR label to CDR administration module;
6, CDR administration module obtains corresponding CDR description list according to CDR label;
7, CDR administration module reads successively and has whole CDR of this CDR label and obtain the CDR set that meets CDR querying condition expression formula.
From above step, call detail record inverse-checking method of the present invention mainly comprises three technical characteristics: 1, adopt CDR description list and statistic record collection description list respectively CDR administration module and statistic record administration module to be configured; 2, adopt CDR label to set up the corresponding relation between statistic record and CDR; 3, adopt statistic record collection description list to be configured querying condition expression formula and using querying condition expression formula and CDR label as querying condition; Wherein, CDR label is generated by system, can be letter, numeral, character string or its combination.Wherein:
Adopt CDR description list and statistic record collection description list respectively CDR administration module and statistic record administration module to be configured, comprise: in CDR administration module outside, set up CDR description list, CDR administration module can read the information of CDR description list and according to this CDR attribute increased or revised; In statistic record administration module outside, set up statistic record collection description list, statistics management module can read the information of statistic record collection description list and according to this attribute of statistic record increased or revised.The content of described CDR description list comprises: CDR label and CDR attribute description, wherein, CDR attribute description comprises again field type, field length, Field Sanitization name and the field display name of CDR.The content of described statistic record collection description list comprises: statistic record collection information is described and statistic record collection field information is described, wherein: statistic record collection information is described and comprised: record set title, CDR label and index; Statistic record collection field information is described and is comprised: the CDR querying condition expression formula of the field type of field, Field Sanitization name and field in record set; Wherein, CDR querying condition expression formula is the CDR filter condition existing with character string forms.
Adopt CDR label to set up the corresponding relation between statistic record and CDR, comprise: before calling is synthetic, system generates CDR label and adopts this label to identify synthetic complete CDR, a corresponding CDR of CDR label, and in CDR description list and statistic record collection description list, set up CDR tab indexes respectively.
Adopt statistic record collection description list to be configured querying condition expression formula and using querying condition expression formula and CDR label as querying condition, comprise: according to statistic record field to be checked, determine that the corresponding statistic record set name of this statistic record field claims, the statistic record collection description list corresponding according to this statistic record collection name acquiring, according to the description of the CDR querying condition of this statistic record field in statistic record collection description list, generate CDR querying condition expression formula and obtain corresponding CDR label in statistic record collection description list, using aforementioned CDR querying condition expression formula and CDR label as querying condition, wherein, described CDR querying condition expression formula is the CDR filter condition existing with character string forms.
Accompanying drawing 4 is the counter structural representations of looking into system of call detail record of the present invention.As seen from the figure, the anti-system of looking into of call detail record of the present invention, comprising: CDR description list, CDR administration module, calling synthesis module, statistic record collection description list, statistic record administration module, statistical module and man-machine interface, wherein:
CDR description list is for being described and being transferred to CDR administration module to the CDR attribute of different specification agreement;
CDR administration module can obtain the information of CDR description list and according to this CDR attribute increased or revised; The CDR label generating according to system identifies and sets up CDR tab indexes to calling out synthetic complete CDR; According to CDR querying condition expression formula and CDR label, CDR is inquired about;
Calling out synthesis module requires network signal to call out synthetic according to the instruction of CDR administration module and protocol specification;
Statistic record collection description list can be described and be transferred to statistic record administration module to the statistic record of different specification agreement, statistic record set attribute; According to the description of the CDR querying condition of statistic record field to be checked and this statistic record field, generate CDR querying condition expression formula; Generation includes the CDR querying condition of CDR querying condition expression formula and CDR label; According to CDR label, statistic record is identified and is set up CDR tab indexes;
Statistic record administration module can obtain the information of statistic record collection description list and according to this attribute of statistic record, statistic record collection increased or revised;
Statistical module requires CDR to add up according to the instruction of statistic record administration module and protocol specification;
Man-machine interface can receive artificial control command and control command is transferred to CDR description list or statistic record collection description list; Show Query Result information.
Obviously, because call detail record inverse-checking method of the present invention and system adopt external file CDR description list and statistic record collection description list, CDR administration module and statistic record administration module are configured, in system, CDR administration module is completely separated with statistic record administration module, do not have coupled relation between the two, it is very convenient to safeguard.In addition, owing to adopting statistic record collection description list to be configured querying condition expression formula and usining querying condition expression formula and CDR label as querying condition, when increasing or revise statistical indicator, only need external file CDR description list and statistic record collection description list be modified or be increased and can be realized, therefore, greatly improve development efficiency, reduced development cost.