Summary of the invention
First problem to be solved by this invention provides a kind of signalling tester and signaling testing method thereof of the TD-SCDMA of being applied to mobile communications network, can realize the functions such as supervision, statistics, the network optimization, call follow and emulation testing to the TD-SCDMA system.
Second problem to be solved by this invention is maintenance and the inconvenient defective of upgrading that overcomes software in the existing Signaling Analyzer.
The technical solution adopted for the present invention to solve the technical problems is: the general structure of this signalling tester is the industrial computer structure, data collecting card is by PCI (Peripheral Component Interconnect, Peripheral Component Interconnect) bus and industrial computer interaction data are responsible for the collection of original physical layer data flow.Pci bus interface is adopted in communication, communication buffer utilizes dual port RAM (Random-access Memory, random access storage device) realizes, use dual port RAM and between interface, set up the buffering area of a larger capacity, can be at any time read and write data to arbitrary memory cell of dual port RAM, do not need mutual wait, can full speed running.Architecture of the present invention adopts modular construction, mainly comprises with lower module:
Main control module: control and call other functional parts, read signaling message, administrative messag data, display message decoded result and statistic analysis result, and finish the scheduling of thread in the program from data acquisition interface;
Data acquisition module: be connected on Iu, the Iub and Iur interface of TD-SCDMA system to be tested, gather the signaling message in the measurand physical layer;
Source codec module:, comprise detailed decoding and preliminary decoder by the responsible source codec of message data decoding dynamic link library to receiving;
Message statistical analysis module: by message statistical analysis dynamic link library the message in the data acquisition module is carried out statistic of classification according to protocol class and type of message, for the network optimization provides decision references;
Message screening processing module: at the characteristics of TD-SCDMA mobile radio communication Iu, Iub and Iur protocol stack of the interface, to atm adaptation layer 2 AAL2 (ATM Adaptation Layer type 2-), ATM Adaptation Layer 5 AAL5 (ATM Adaptation Layer type 5-), network control layer and the wireless network layer filtering function that gives information;
The characteristic information analysis module: analyze dynamic link library by the characteristic information and the message of decoding is analyzed and extracted and call out relevant parameter;
Data backstage memory module: be responsible for not influencing under the situation of real-time analysis speed on the backstage, the message data that collects is stored on the disk, memory module places main control module, is controlled by primary control program.
Adopt loose coupling between above-mentioned all modular units, be that each functions of modules is independent, source codec, statistics, filtration etc. are independent with procedure for displaying, can reduce each other interdependent, operate in main control module relevant with the interface realizes, irrelevant with other functional modules, such modular construction helps the transplanting and the modification of software.
The present invention also provides a kind of TD-SCDMA system signaling method of testing, it is characterized in that, may further comprise the steps: step 1, and the data acquisition parts are gathered the signaling message in the TD-SCDMA Iu of system, Iub and the Iur interface; Step 2 is carried out the demarcation of cell, the processing that splits and recombinate to the signalling message data that collects, and deposits in then at communication buffer; Step 3, the first decoding to signalling message data is finished in the signalling message data deposit of data backstage memory unit after handle these on the backstage simultaneously; Step 4 is decoded in detail to first decoded results; Step 5 is to carrying out statistic of classification through decoded message data according to protocol class and type of message; At the characteristics of TD-SCDMA mobile radio communication Iu, Iub and Iur protocol stack of the interface, AAL2, AAL5, network control layer and wireless network layer are carried out message screening handle; The decoded message of message decoder module is carried out signature analysis and extracted the parameter relevant with calling; Step 6, interface display thread are notified master control unit demonstration decoding just, are decoded, reach The result of statistics in detail.
Signalling tester provided by the invention has overcome software maintenance and the inconvenient defective of upgrading in the existing signalling analysis tester; And can be at the characteristics of protocol stack of the interface in the TD-SCDMA system, from the signaling of interface, extract parameter relevant in the wireless network layer, the parameter relevant with mobile management with RRM, with the parameter relevant with call manager, after these network parameters are carried out statistical disposition, obtain the complete statistics of base station sub-system, these data provide the data support to formulating the wireless network resource optimized Measures, help solving the network coverage in the network optimization work, channel congestion, wireless parameter such as are provided with at problem such as unreasonable.
Embodiment
Below in conjunction with accompanying drawing specific implementation of the present invention is described.
Accompanying drawing 1 is universal mobile telecommunications system UMTS (Universal Mobile TelecommunicationsSystem) architecture.Mainly by core net CN (Core Network), three parts such as Universal Terrestrial Radio Access Network UTRAN (Universal Terrestrial Radio Access Network) and UE subscriber equipment (UserEquipment) are formed, wherein, it between CN and the UTRAN Iu interface, Iu also is an open interface, it is divided into system UTRAN and the responsible processing and exchanging that is used for radio communication, core net two parts of route and professional control, a core net can link to each other with several radio network controller (RNC)s, and the Iu interface between any one RNC and the core net can be divided into three territories: circuit commutative field (Iu-CS), packet-switched domain (Iu-PS) and broadcast domain (Iu-BC).
Iub interface is the interface between radio network controller (RNC) (Radio Network Controller) and the Node B, be used for transmitting the signaling between RNC and the Node B and the data of wave point, major function is the transfer resource, Node B logical O﹠M, transmission Operation and Maintenance signaling, SIM system information management, dedicated channel control, common signal channel control of managing I ub interface and regularly and management by synchronization.
The Iur interface is two logic interfacings between the RNC, is used for transmitting control signaling and user data between the RNC.The Iur interface also is an open interface, and its major function is mobility, support common channel traffic, support dedicated channel service and the back-up system management process of supporting between the concrete RNC.
Signalling tester is connected on the test analysis that carries out signaling on ATM Adaptation Layer, transport network layer and the wireless network layer on Iu, Iub and the Iur interface, and as seen from Figure 1, the whichever interface is all relevant with UTRAN.
The interface section of signalling tester just is connected on the physical layer of UTRAN, the signaling message in the acquisition interface and finish cell demarcation, split and recombinate.The message of gathering is placed on the buffering area of " origination message " after treatment, the preliminary decoder result is placed on result buffer, and decoding promptly solves the concrete implication of cell head VPI VPI (Virtual Path Identifier), virtual channel identifier VCI (Virtual ChannelIdentifier) and each byte of payload part even bit representative in detail.
The present invention adopts modular construction, and other functional modules are controlled and called to main control module according to data that read from each interface and user's operation requests, as central control assembly, finishes the scheduling of thread in the program.Each module adopts the mode of dynamic link library, does not relate to writing of concrete program interface, helps the loose coupling between each module of program like this.
Show the architectural block diagram of Signaling Analyzer of the present invention as Fig. 2, mainly constitute by following functional module:
Data acquisition module: be connected on Iu, the Iub and Iur interface of TD-SCDMA system, the signaling message in the acquisition interface, and finish cell demarcation, split and recombinate, the message of collection is placed on the buffering area of " origination message " after treatment.Data collecting card in this modular unit is connected mutual interaction data by pci bus with industrial computer, communication buffer utilizes dual port RAM to realize, between interface, set up the buffering area of a larger capacity, all can be at any time read and write data, do not need mutual wait to arbitrary memory cell of dual port RAM.The following signaling message of data collecting module collected:
1. the call identification in the data collecting module collected Iub interface, call state, call duration, set up reason and quality Q oS grade, temporary mobile subscriber identity TMSI (Temporary MobileSubscriber Identity, the sign (id number) of control radio resource controller CRNC, wireless network temporary identity S-RNTI (Radio Network Temporary Identity), service wireless network controller SRNC (Serving Radio Network Controller) sign, band of position coding, signaling messages such as CN territory, 2. gather the calling numbering in the Iu interface, session status (activation/end), COS, domain identifier (PS/CS/BC), IMSI International Mobile Subscriber Identity IMSI (International MobileSubscriber Identity), TMSI, coding/coverage, band of position sign, the Routing Area coding, settling time, the IP address, up/the downstream packets number, signaling messages such as Reason For Denial.
Source codec module: specifically comprise Iur Iu Iub interface source codec module, by the responsible source codec of message data decoding dynamic link library to receiving.
Decoding functions writes in the dynamic link library, after each Dynamic Link Library Function is write and is finished, the synthetic jointly source codec module of each dynamic link library in the decoder module is called this dynamic link library by primary control program and is reached decoding function, and the message data decoding comprises detailed decoding and preliminary decoder.
Message statistical analysis module: each protocol class of wireless network layer and wireless network layer and message statistic of classification are provided, finish the analytic function of various statisticses, for the network optimization provides decision references.By message statistical analysis dynamic link library the signaling data in the data acquisition module is carried out statistic of classification according to AAL type, protocol class and type of message, the parameter that the statistics user is concerned about.Specifically comprise: 1. AAL2 and AAL5 parametric statistics, User Part particular term statistics is extracted VPI, VCI and the Channel Identifier CID among the AAL2 (Channel Identifier) value among the AAL in data acquisition module, carry out statistical analysis.2. thresholding is added up, the upper and lower bound value of statistics is set in database, and the set upper and lower bound value of original signaling data that collects and system compares, and the data that exceed range of set value are handled, when delivering to the display demonstration,, highlight with other color marks.3. call statistics function uses call follow to estimate call statistics such as call successful rate, maximum/minimum call set-up time, maximum/minimum call duration etc.
Data backstage memory module: the message data that collects is stored on the disk, the detailed decoded result of The result of statistics, every message is converted into text to be preserved, signaling data is converted into the .dat file and preserves, and is convenient to form service recorder in the future and carries out historical data analysis.
Message screening processing module: at the characteristics of 3G mobile radio communication Iu, Iub and Iur protocol stack of the interface, the message that AAL2, AAL5, transport network layer and wireless network layer provide is filtered, comprise layering demonstration filtration, project demonstration filtration, passage demonstration filtration etc.Layering shows that filtration promptly is meant that layer protocol and the message that filters out user's care; Project shows that filtration promptly only shows some project (as shown in Figure 5); Passage shows and to refer to the source codec that only shows a certain or some passage, like this, both can check the message of a certain particular type, can also allow the decoding and displaying window only show certain type or only contain the message of certain composition.
The characteristic information analysis module: the characteristic information analysis module carries out signature analysis to the signaling message that each interface in the above-mentioned acquisition module collects, and analyzes dynamic link library by the characteristic information and the message of decoding is analyzed and extracted and calls out relevant parameter.This module provides the call follow of Iub, Iur and Iu interface, and the tracking to the complete signaling procedure of a certain calling is provided, and can carry out association to all relevant signaling processes of designated call.
The characteristic information analysis module can also provide group function, filtering function, network optimization function, call follow function, multi-protocols function, alarm function.
1. group function: all message relevant with certain bar message are provided; 2. filtering function: the user defines call follow with special parameter, for example definition Routing Area coding, IMSI number, caller called number, COS, territory etc. in the Iu interface.3. multi-protocols function: the calling in some scopes can be followed the tracks of between different agreement.4. alarm function: distinguish the mistake of the message coding of receiving, in the message watch window, show, can search the message of correct coding quickly and easily with different colors.
Main control module is finished the scheduling of thread in the program, reads the management of signaling message, message data, source codec result's demonstration, demonstration of statistic analysis result or the like from hardware.Relation between main control module and other each functional modules is a control and Be Controlled relation, main control module is according to data that read from data acquisition module and user's operation requests, call other functional modules, each functional module is accepted the relevant parameter that main control module provides, interface characteristic according to the TD-SCDMA system, to related news decode, filter, statistics, analyzing and processing, operation result is returned to main control module, primary control program is shown to the user to the result again, the not responsible any operation relevant with user interface of each functional module.
Signaling Analyzer message interface decoding parts begin constantly to receive the signalling message data of data acquisition parts from collection in worksite, and these storage in communication buffer, data backstage memory unit is deposited to these signalling message data on the backstage, finish first decoding simultaneously to the signalling message data that receives, and demonstration decoded result, after decoding just, the user can decode in detail to the message of having decoded.Functional module such as message screening and statistical analysis is independent of decoder module, and before the decoding, main control module can call other modules, realizes functions such as other filtrations, statistical analysis in advance.
This Signaling Analyzer can also carry out off-line analysis to signalling message data, the data of Signaling Analyzer processing at this moment are the signalling message data that was kept in the past on the hard disk, with respect to on-the-spot test, when Signaling Analyzer starts, saved the step of hardware fault test, when carrying out the off-line data analysis, from file, read earlier the time interval that all signaling messages produce, the user selects a section from this interval then, Signaling Analyzer begins to read the data in this section, analyzes.
The present invention takes multithreaded architecture to realize cooperation relation between each module of this signalling tester, Figure 3 shows that the relation between each thread in the modular architecture of the present invention, main thread comprises the data acquisition thread, just analyzes thread, and data deposit thread and result show thread.Having taked this multithreaded architecture is the performance bottleneck problem that system may occur when reducing the message real-time statistic analysis to greatest extent.The data acquisition thread is responsible for receiving data from hardware, for packet loss not when the two-forty, this thread is set to the thread of a high priority, the effect of this thread is to receive signalling message data from hardware, the message data that receives is stored in the big buffering area of message with certain form, the organizational form of message data is seen Fig. 4 in the big buffering area of message, the bit that this field of numeral among Fig. 4 is shared, wherein message length field represents that the SD-PDU data division adds the length of first cell head, and unit is a byte; Channel number refers to message is from which passage; Time tag represents to receive the time of message, is accurate to millisecond; The SD-PDU data division is represented the physical signaling message data received, storage be byte number.
Just analyze the responsible original signaling message that receives is decoded of thread and also decoded result is left in the first decoded result buffering area, just analyze the on-the-spot part that needs real-time decoding of extracting of thread, be shown to the user.Be illustrated in figure 5 as decoded data format just, just solve message numbering, offset address, time tag, VPI, VCI, AAL type, CID, L3 protocol class, L3 type of message, L4 protocol class, L4 type of message, feature field in the original signaling message, deposit decoded result buffering area just in, the byte number that this field of numeral among the figure is shared, the wherein regulation of feature field and Layer3, transport network layer L3, Layer4, the regulation of wireless network layer L4 is as follows:
The AAL type---the indication ATM cell is at the signaling bear adapting layer types of transport network layer;
L3 protocol class/L3 type of message---indication information element carries out dismounting through transport network layer by which kind of protocol format, for the Iu-CS protocol model, may be Service Specific Connection Oriented Protocol SSCOP (Service Specific Connection Oriented Protocol), service specific coordination function-SSCF (Service specific co-ordination function), message transfer part (broadband)-MTP3b (Message transfer part (broadband)), SCCP-SCCP (Signalling Connection Control Part), what correspondingly, the L3 message type field promptly showed is SCCP user's a certain concrete message; Also may be access link control applying portion SSCOP-SSCF-MTP3b-ALCAP (Access Link Control Application Part), then the L3 message type field shows be exactly type of message in last agreement; If signaling is through the AAL2 carrying, and pass through the user plane of this layer, the L3 protocol class then may be RRC or other Iu interface functions, and the L3 type of message promptly refers to the core message of finishing corresponding function; For the Iub protocol model, may be SSCOP (or-SSCF), correspondingly, what the L3 message type field promptly showed is the type of the protocol Data Unit in SSCOP (or SCCF) agreement; Also may be SSCOP-SSCF-ALCAP, what then the L3 message type field promptly showed be the type or the type of message of the protocol Data Unit in the superiors' agreement; For user plane, with Iub roughly the same; For the Iur protocol model, protocol class is SSCOP-SSCF-MTP3b-SCCP and SSCOP-SSCF-MTP3b-ALCAP, and situation and Iub are roughly the same; If signaling is earlier according to IP SCTP IP-SCTP (Stream Control Transmission Protocol), SS7 MTP3-User Adaptation Layer-M3UA (SS7 MTP3-User Adaptation Layer), SCCP that then walks respectively and STC-ALCAP, then separately expression of L3 type of message; Iur at the signaling tendency of transmission network user plane and Iu roughly the same.Protocol class/type of message when L4 protocol class/L4 type of message---indication information element encapsulates through wireless network layer.For the Iu-CS protocol model, then be wireless access network application protocol RANAP or Iu user plane Frame Protocol Iu UP, the L4 type of message promptly refers to the core message of finishing corresponding function; For the Iub protocol model, then be Node B application protocol NBAP or Iub user plane Frame Protocol IubUP, the L4 type of message promptly refers to the core message of finishing corresponding function; For the Iur protocol model, protocol class then is Radio Network Subsystem Application Part RNSAP (Radio Network SubsystemApplication Part), or Iur UP (Iur user plane Frame Protocol), the L4 type of message promptly is a core message of finishing this layer corresponding function;
Feature field---according to the decoding actual conditions, to the extraction of the field that the user was concerned about in some core messages, as address (or number) information, operating instruction (upgrading) etc., as then not filling a vacancy as route application, authentication, position.
Corresponding detailed decoding output format, as shown in Figure 6, total principle is hierarchical decoding, refinement gradually, asks and abandon little, dislocation demonstration greatly.
Hierarchical decoding: according to the order and the level of data encapsulation, successively decode, and represent hierarchical relationship with all kinds of titles respectively by the level of ATM Adaptation Layer, transport network layer, wireless network layer.
Refinement successively: in each layer, divide, each byte and even bit that some is special are made an explanation according to different protocol class and field.
Ask abandon greatly little: can't handle or data that intractability is excessive for running in the decode procedure, can put earlier on one side, and untreated data are shown handle (as " can't recognition data " among Fig. 6).
Dislocation shows: allow the sense that relatively has levels of detailed decoding and displaying, be convenient to the user and find the data of being concerned about fast.
The interface display thread is responsible for notifying main program to show the content of decoding just, and the interface display thread at first judges currently have that do not have can content displayed, if having, just to the message of main program transmission interface display.
Deposit thread in backstage is responsible for that the origination message storage in the big buffering area is used to reduce memory consumption on disk message on the backstage, also can do off-line analysis according to these data in the future.Because disk operating is with respect to internal memory operation, more time-consuming, overall performance for software, can take background thread, finish the deposit of signalling message data on the backstage, because Signaling Analyzer will guarantee continuous on-the-spot test, the signalling message data that is collected may be very many, if all be placed in the internal memory, the performance of system there is certain influence.
Owing to take multithreading, just certainly exist the problem of thread synchronization, the problem that thread synchronization will solve is exactly when each thread is scheduled and when hangs up.A) when the data acquisition thread is write message data in the big buffering area of storing message data, just analyze thread and also carrying out the first decoding of message data, at this moment, the message that is being written into may be also imperfect, should not participate in decoding, the message of decoding must be a complete message, when the big buffering area of message does not also have the full message of decoding, just should activate decoding thread just; When not having a full message in the big buffering area of message, the thread of just decoding should be hung up.
B) decoded thread originally when decoded result is put into just the decoded result buffering area, the interface display thread is also in the demonstration of carrying out decoded result, and at this moment incomplete result is not revealed.
C) deposit thread in backstage should guarantee that every message of storing all is complete message when message data is stored into disk, does not have the thread of deposit not covered by new information simultaneously, and for good extensibility, source codec and interface display are separately.Existing Signaling Analyzer, source codec and last the demonstration are closely-coupled, in decode procedure, directly decoded results is outputed to display interface, that is to say if revise software interface, must in the dynamic link library of decoder module, revise, this close coupling is unfavorable for the maintenance and the upgrading of software, in design of the present invention, take the distinct mode of source codec and procedure for displaying, and, divide and the minimizing complexity for the ease of function, each functional module mainly adopts the form of dynamic link library, and the function of each dynamic link library is separate, has reduced dependence each other.
The Signaling Analyzer of the present invention design according to the interface characteristic of TD-SCDMA system, is resolved three protocol stacks of the interface, and extracting has related parameter, is convenient to the mobile radio communication attendant and solves practical problem in network operation, the optimization work.And, taked a kind of multithreaded architecture to coordinate cooperation relation between each module of this Signaling Analyzer, the frame mode of each intermodule loose coupling is with good expansibility this Signaling Analyzer.