Summary of the invention
The technical problem that the present invention solves is to provide a kind of decoding realization method and system of signaling tracing, realizes the decoding of signaling tracing message code stream by dynamic link library.
For solving the problems of the technologies described above, the invention provides a kind of decoding realization method of signaling tracing, described method comprises:
Its signaling tracing decoding program is packaged into dynamic link library by tracing object, and provide corresponding decoding interface function to network management system; In the time receiving the tracing task that network management system issues, report tracking message to network management system;
When network management system is received the tracking message that tracing object reports, by the signaling tracing decoding interface function that calls dynamic link library, tracking message is decoded.
Further, tracing object generates signaling tracing decoding program by the compiling of scanning message structure.
Further, tracking message comprises: the message content of summary decoding descriptor and transparent transmission.
Further, summary decoding descriptor comprises tracking type;
Network management system is determined tracing object according to the tracking type of tracking message, and calls corresponding dynamic link library.
Further, signaling tracing decoding program is packaged into dynamic link library, and provides corresponding decoding interface function to network management system, specifically refer to:
Each tracing object is packaged into dynamic link library by its signaling tracing decoding program respectively, and provides respectively corresponding decoding interface function to network management system;
Or, the signaling tracing decoding program of all tracing objects is encapsulated in a dynamic link library, and provides unified decoding interface function to network management system.
Further, signaling tracing decoding program adopts extensible markup language (XML) language to be described message structure; Network management system becomes XML form by loading dynamic link library by tracking message code stream analyzing, and presents the tracking message code stream of XML form.
Further, a kind of decoding of signaling tracing realizes system, and system comprises: tracing object and network management system, and tracing object comprises that dynamic link library provides module and tracking message reporting module, network management system comprises tracking message decoder module, wherein,
Dynamic link library provide module for, the signaling tracing decoding program of tracing object is packaged into dynamic link library, and provides corresponding decoding interface function to network management system;
Tracking message reporting module is used for, and the tracing task issuing according to the network management system of receiving, reports tracking message to network management system;
Tracking message decoder module is used for, and while receiving the tracking message that tracing object reports, by the signaling tracing decoding interface function that calls dynamic link library, tracking message is decoded.
Further, dynamic link library provides module to be further used for, and generates the signaling tracing decoding program of tracing object by the compiling of scanning message structure.
Further, the tracking message that tracking message reporting module reports comprises: the message content of summary decoding descriptor and transparent transmission, and wherein summary decoding descriptor comprises tracking type;
Tracking message decoder module is further used for, and determines tracing object according to the tracking type of tracking message, and calls corresponding dynamic link library.
Further, dynamic link library provides module to be further used for, and respectively the signaling tracing decoding program of each tracing object is packaged into dynamic link library, and provides respectively corresponding decoding interface function to network management system; Or, the signaling tracing decoding program of all tracing objects is encapsulated in a dynamic link library, and provides unified decoding interface function to network management system.
In sum, the present invention provides dynamic link library respective version, that adopt XML format analysis tracing object message content by tracing object to webmaster, webmaster is by calling the signaling tracing decoding interface function of this dynamic link library, the signaling tracing message code stream reporting is resolved to XML form, so that show on network management platform.
Embodiment
The problem existing for solving existing signaling tracing decoding process, basic conception of the present invention is as follows:
On the one hand, the dynamic link library that webmaster adopts tracing object to provide is decoded to message code stream, that is: by each tracing object, according to message structure, compiling generates dynamic link library, and offer webmaster, when webmaster receives the message that each tracing object reports, can, by loading dynamic link library file, the message content reporting be decoded, thereby make webmaster without being concerned about associated code flow message structure script, realize the decoupling zero with tracing object;
On the other hand, adopt the decoding presentation mode of unified signaling tracing.Due to XML (ExtensibleMarkup Language, extensible markup language) technology is convenient to the expression of data, not only be easy to presenting flexibly of constantly expansion and data, also be conducive to data transmits and changes between different application programs, therefore, the present invention's unification adopts XML mode, signaling tracing message code stream is converted to the data of XML form that is:, webmaster backstage presents signaling tracing content according to the data of XML form, and need not be concerned about the particular content of resolving message.
Based on above-mentioned design, the invention provides a kind of decoding realization method of signaling tracing, specifically adopt following technical scheme:
Its signaling tracing decoding program is packaged into dynamic link library by tracing object, and provide corresponding decoding interface function to network management system; In the time receiving the tracing task that described network management system issues, report tracking message to described network management system;
When described network management system is received the tracking message that tracing object reports, by the signaling tracing decoding interface function that calls described dynamic link library, described tracking message is decoded.
Further, described tracing object generates described signaling tracing decoding program by the compiling of scanning message structure.
Further, described tracking message comprises: the message content of summary decoding descriptor and transparent transmission.
Further, described summary decoding descriptor comprises tracking type;
Described network management system is determined tracing object according to the tracking type of tracking message, and calls corresponding dynamic link library.
Further, described signaling tracing decoding program is packaged into dynamic link library, and provides corresponding decoding interface function to network management system, specifically refer to:
Each tracing object is packaged into dynamic link library by its signaling tracing decoding program respectively, and provides respectively corresponding decoding interface function to described network management system;
Or, the signaling tracing decoding program of all tracing objects is encapsulated in a dynamic link library, and provides unified decoding interface function to described network management system.
Further, described signaling tracing decoding program adopts XML language to be described message structure; Described network management system becomes XML form by loading dynamic link library by tracking message code stream analyzing, and presents the tracking message code stream of XML form.
Clearer for what the object, technical solutions and advantages of the present invention were expressed, below in conjunction with accompanying drawing and preferred embodiment, the present invention is done to further description.
As shown in Figure 2, network management system mainly comprises webmaster signaling tracing function, 3G (3
rdgeneration, 3G (Third Generation) Moblie technology) platform XML decode logic, business XML decode logic.Wherein, between webmaster signaling tracing function and XML decode logic, be function calling relationship.It should be noted that, for ease of understanding intuitively signaling tracing business, Fig. 2 is signaling tracing service interaction figure, there is no the system architecture of imbody network management platform and business platform in Fig. 2.
In the present invention, tracing object provides dynamic link library respective version, that adopt XML format analysis tracing object message content to webmaster, webmaster is by calling the signaling tracing decoding interface function of this dynamic link library, the signaling tracing message code stream reporting is resolved to XML form, so that show on network management platform.
In addition, in prior art, for the nested decoding function of signaling tracing, because the upper strata source code flow of business is carried in the bottom signaling source code flow of 3G platform, and there is no direct function calling relationship between the XML decode logic signaling that platform provides and the decode logic signaling of business, therefore, for the signaling tracing source code flow of business module, need webmaster to coordinate therein, to realize the function of nested decoding upper-layer service code stream.For the signaling tracing source code flow of 3G platform, if need nested decoding in business module inside, directly realize by intrinsic function call-by mechanism.
And in the present invention, the dynamic link library providing by platform can be by bottom code stream analyzing out, the dynamic link library that calling upper-layer service provides again parses the upper-layer protocol field contents comprising in bottom code stream, thereby make bottom source code flow can automatically parse the upper-layer protocol field contents in code stream, realized nested decoding function.
Fig. 3 shows tracing object provides the schematic diagram of dynamic link library.As shown in Figure 3, business, agreement and platform, this three is the relation from upper strata to bottom, the sending order of signaling tracing message is business-> agreement-> platform, wherein, each tracing object is (as supported the business module of signaling tracing, protocol module etc.) its signaling tracing decoding program (is for example packaged into dynamic link library that network management platform can load, the operating system of network management platform is linux system, dynamic link library is to exist in the mode of so file), and provide the corresponding signaling tracing decoding interface of webmaster function.
In addition, for the dynamic link library of signaling tracing decoding, identical with the released version of business platform.Because if the tracing object of business platform is different from signaling tracing decoding dynamic link library version, can cause decoding error because of tracing object code stream format change.
In the time of issuing service platform software version, be the dynamic link libraries for signaling tracing decoding of all signaling tracing object publishings of this business platform with version simultaneously.This dynamic link library is by all message structures that need to report webmaster of scan tracing object, and with XML formatted output, generates the signaling tracing decoding program of its corresponding XML form, has encapsulated.
In the time making software version, tracing object carries out structure scanning to following the tracks of the message reporting, and provides dynamic link library to call for webmaster, thereby the signaling tracing code stream that oneself reports webmaster can be parsed with XML.
The present invention also provides a kind of decoding of signaling tracing to realize system, be illustrated in figure 4 the decode system of the signaling tracing of the embodiment of the present invention, it mainly comprises: network management system and tracing object (tracing object 1, ... tracing object is n), wherein, tracing object comprises that dynamic link library provides module and tracking message reporting module, and described network management system comprises tracking message decoder module
Dynamic link library provide module for, the signaling tracing decoding program of tracing object is packaged into dynamic link library, and provides corresponding decoding interface function to network management system;
Tracking message reporting module is used for, and the tracing task issuing according to the described network management system of receiving, reports tracking message to described network management system;
Tracking message decoder module is used for, and while receiving the tracking message that tracing object reports, by the signaling tracing decoding interface function that calls described dynamic link library, described tracking message is decoded.
Wherein, described dynamic link library provides module to be further used for, and generates the signaling tracing decoding program of described tracing object by the compiling of scanning message structure.
Wherein, the described tracking message that described tracking message reporting module reports comprises: the message content of summary decoding descriptor and transparent transmission, and wherein said summary decoding descriptor comprises tracking type;
Described tracking message decoder module is further used for, and determines tracing object according to the tracking type of tracking message, and calls corresponding dynamic link library.
Wherein, described dynamic link library provides module to be further used for, and respectively the signaling tracing decoding program of each tracing object is packaged into dynamic link library, and provides respectively corresponding decoding interface function to described network management system; Or, the signaling tracing decoding program of all tracing objects can also be encapsulated in a dynamic link library, and provide unified decoding interface function to described network management system.
As shown in Figure 5, the decoding of the signaling tracing of application example of the present invention realizes in system, network management system comprises that above-mentioned tracking message decoder module can be applied in existing this signaling tracing function for dynamic link library and the signaling tracing function of signaling tracing decoding; And tracing object comprises IMS (IPMultimedia Subsystem, IP Multimedia System) the IMS business that need to implement signaling tracing, SIP (Session Initiation Protocol, Session initiation Protocol) protocol stack and 3G platform etc. in system.
Before system operation, the subsystems such as IMS business in IMS system, Session Initiation Protocol stack, 3G platform must provide corresponding version, by the dynamic link library file of XML format analysis tracing object message content to webmaster.This dynamic link library is that the signaling tracing decoding program encapsulation being generated according to the concrete message structure compiling of tracing object by each subsystem forms.In the time that webmaster receives the reporting message of each tracing object, by loading dynamic link library file, the tracking message content reporting is resolved, and present according to the form of XML.
The implementing procedure of the signaling tracing below in conjunction with Fig. 4 to the embodiment of the present invention is specifically described.
As shown in Figure 4, the flow process of the signaling tracing of the embodiment of the present invention mainly comprises the steps:
Step 1, in system running, user sets up signaling tracing task on network management interface, network management system sends tracing task by procotol and sets up message to IMS system, and each subsystem tracing object of IMS system will store to own relevant information of tracking task;
Step 2, tracing object, self sending or when receipt message, judging whether to meet tracing task according to the information of tracking task of storage, need to follow the tracks of time, send tracking message to webmaster through 3G platform by procotol;
Wherein, the message content that tracing object reports webmaster is divided into following two parts: a part is that NTLV (Name Type Length Value, name type length value) is a kind of binary format of self-explanatory, for describing summary decoded information; Another part is the message content of transparent transmission, and this content is transparent to webmaster, and webmaster is indifferent to its content.
Which tracing object tracking type judgement in the message that step 3, webmaster report according to tracing object is, the corresponding dynamic link library file of dynamic load again, using the original transparency bit stream in reporting message, message number, message-length as entering ginseng, call dynamic decoder bank interface function;
Wherein, tracing object, in the time making version, provides dynamic link library file to webmaster, and the dynamic link library file of receiving is stored in this locality by webmaster.
Step 4, dynamic link library are according to the message number and the message-length that enter in ginseng, the XML form that original transparency bit stream is resolved to corresponding message structure returns to webmaster signaling tracing function as going out ginseng, and the code stream information that shows normalized tracing object on network management interface is checked for user.
One of ordinary skill in the art will appreciate that all or part of step in said method can carry out instruction related hardware by program and complete, described program can be stored in computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuits.Correspondingly, the each module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.