Detailed description of the invention
And monitoring inconsistent with physical device service traffics is shown in order to solve data on flows in prior art
The problem that granularity is bigger, the invention provides a kind of service traffics monitoring method and device, to ensure Business Stream
The efficiency of amount monitoring, concordance that data shows and promptness and service traffics monitor the scalable of granularity
Property.Below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that this
Specific embodiment described by place, only in order to explain the present invention, does not limit the present invention.
Embodiment of the method
According to embodiments of the invention, it is provided that a kind of service traffics monitoring method, Fig. 1 is that the present invention implements
The flow chart of the service traffics monitoring method of example, as it is shown in figure 1, service traffics according to embodiments of the present invention
Monitoring method includes processing as follows:
Step 101, creates one or more monitored object, and arranges corresponding with one or more monitored object
Monitoring range;Wherein, the monitoring range of setting includes: test point, performance item type, performance item, with
And the time interval of capturing service data on flows.Such as, test point is set to: No. 3 groove position SE plates 2
The VLAN (Virtual Local Area Network, referred to as VLAN) of port, performance item type
It is set to: byte number is correlated with, and performance item is set to: ring 1 forwards byte number, time interval to be set to:
20 seconds.
Specifically, in a step 101, need to generate different monitored object according to different classs of business,
The corresponding thread of each monitored object or process, after creating monitored object, need establishment
Monitored object adds monitored object managing listings, and the institute created it by this monitored object managing listings to
Monitored object is had to be managed, in addition it is also necessary to be that each monitored object is arranged according to concrete monitoring demand
Different monitoring ranges, i.e. arranges different monitoring granularities, it is achieved the controllability of monitoring granularity.
Step 102, starts one or more monitored object, by one or more monitored object to corresponding prison
Service traffics data in the range of control are acquired and process, and according to the service traffics data pair after processing
Service traffics in monitoring range show.
In a step 102, when starting one or more monitored object, need to start one or more monitoring
Thread that object is corresponding or process.After starting monitored object, by one or more monitored object to phase
Answer the service traffics data in monitoring range to be acquired, be converted into unified for the service traffics data of collection
The communication interface message format pre-set;Subsequently, call graphical display interface, according to the business after converting
Service traffics in monitoring range are shown by data on flows.
As a example by MSTP business, in actual applications, monitored object first has to the MSTP business to association
Service traffics data on (performance item) equipment carry out Real-time Collection.Subsequently, monitored object is advised according to business
Then, the MSTP service traffics data gathered are processed according to unified communication interface (that is, it is converted into
Unified communication interface message format), after MSTP service traffics data are converted, monitored object
Call the service traffics pre-set and show interface, intuitively represent the traffic conditions of each MSTP appliance services.
In the process above, the Business Stream of the MSTP equipment that each monitored object is responsible in monitoring range belonging to oneself
Amount data acquisition, it is achieved that point-to-point services, improves data acquisition efficiency;Additionally, monitored object provides
Various service traffics methods of exhibiting, it is possible to represent the service traffics situation of each MSTP equipment intuitively.
Preferably, in embodiments of the present invention, when needs stop being monitored certain monitoring range, stop
The operation of the monitored object corresponding with this monitoring range, and exit the thread corresponding with this monitored object or enter
Journey;When monitored object deleted by needs, delete monitored object from monitored object managing listings, and discharge monitoring
Resource shared by object.
Below in conjunction with Fig. 2, the handling process of monitored object in step 102 is described in detail.Fig. 2 is
The process chart of the monitored object of the embodiment of the present invention, as in figure 2 it is shown, include processing as follows:
Step 201, starts monitored object;
Step 202, monitored object capturing service data;
Step 203, business datum is changed by monitored object;
Step 204, monitored object display service traffics;
Step 205, stops monitored object.
Below as a example by MSTP business and combine Fig. 3 and Fig. 4, the above-mentioned technical side to the embodiment of the present invention
Case is described in detail, and Fig. 3 is the MSTP service traffics multi-point monitoring schematic diagram of the embodiment of the present invention,
As it is shown on figure 3, include: transmission network management system and MSTP equipment, wherein, transmission network management system includes:
Transmission network management system client, transmission network management system service end, MSTP equipment includes: MSTP equipment 1,
MSTP equipment 2 ..., MSTP equipment N;Wherein, transmission network management system is provided with MSTP business
Traffic monitoring management module and monitored object, monitored object includes: service traffics data acquisition module,
Service traffics data processing module, service traffics data disaply moudle.Fig. 4 is the MSTP of the embodiment of the present invention
The flow chart of service traffics monitoring, as shown in Figure 4, including processing as follows:
Step 401, sets up monitored object.According to different monitoring demand, by MSTP service traffics monitoring pipe
Reason module creation monitored object, and the monitored object created is added monitored object managing listings, each monitoring
Object is only responsible for the monitor task in oneself monitoring range.
Step 402, starts monitored object.Each monitoring is started right by MSTP service traffics monitoring management module
The execution of elephant, after each monitored object is activated, corresponding service traffics data acquisition module BOB(beginning of block) gathers number
According to, and reporting service traffics data processing module in time, collection is come up by service traffics data processing module
Data process according to unified communication interface, pass to service traffics data disaply moudle.
Step 403, service traffics show.Service traffics data disaply moudle processes according to service traffics data
The data notification of module, calls graphic user interface (Graphical User Interface, referred to as GUI)
Test pattern interface, represents service traffics change in real time.
Step 404, stops service traffics monitoring.When needs stop service traffics monitoring, by MSTP industry
Business traffic monitoring management module stops each monitored object, and the service traffics data acquisition module of monitored object stops
Gathering data, service traffics data processing module, service traffics data disaply moudle quit work.
Step 405, it may be judged whether need to restart monitored object, if needing to restart monitored object,
Perform step 402;Otherwise, step 406 is performed.
Step 406, deletes monitored object.When user is no longer necessary to monitor MSTP equipment, can delete
The monitored object specified, is deleted the finger in monitored object managing listings by MSTP service traffics monitoring management mould
Determine monitored object, and discharge the resource that this monitored object takies.
In the following description, be a transmission network management system to No. 2, No. 3 numbers of slots of S385 equipment according to plate
The embodiment that the MSTP service traffics of (SE plate) are monitored, Fig. 5 is the MSTP of the embodiment of the present invention
Service traffics monitoring system structural representation.The process carrying out MSTP service traffics monitoring includes locating as follows
Reason:
Step 1, sets up two monitored object: monitored object A and monitored object B, wherein, and monitored object
Monitoring range corresponding for A includes: test point selects: No. 1 port veneer protocol frame of No. 2 groove position SE plates,
Performance item type selecting: frame number and bag number are relevant, performance item selects: receive Simple Network Management Protocol
(Simple Network Management Protocol, referred to as SNMP) frame number, time interval selects:
10 seconds, subsequently, monitored object A is added monitored object managing listings.The monitoring that monitored object B is corresponding
Scope includes: test point selects: the VLAN of No. 3 groove position No. 2 ports of SE plate, performance item type selecting:
Byte number is correlated with, and performance item selects: ring 1 forwards the byte number, time interval to be: 20 seconds, subsequently, and will
Monitored object B adds monitored object managing listings.
Step 2, starts monitored object A, and thread corresponding for monitored object A starts the monitoring model according to oneself
Enclose collecting performance data, and report the service traffics data of monitored object A to process mould the data collected
Block, the service traffics data processing module of monitored object A processes data according to F mouth message format,
Pass to service traffics data disaply moudle.In like manner, monitored object B, also according to above control flow, is carried out
Work.
Step 3, the service traffics data disaply moudle of monitored object A and monitored object B is according to respective business
The F mouth message data notice that data on flows processing module reports, calls ILV graphical control interface, in transmission
Service traffics change is represented in real time in network management system.
Step 4, monitored object management module stops monitored object A and the work of monitored object B, and it is right to monitor
As A and each module from service of monitored object B, thread corresponding with monitored object B for monitored object A moves back
Go out.
Step 5, if selecting to restart monitored object A and/or monitored object B, then returns to step 2
Reset monitor object A and/or monitored object B, otherwise, performs step 6.
Step 6, user selects to delete monitored object A and/or monitored object B, and MSTP service traffics monitor
Management mould deletes the monitored object A in monitored object managing listings and/or monitored object B, and discharges prison
The resource that control object A and/or monitored object B object take.
From above-mentioned process it can be seen that the embodiment of the present invention is by creating monitored object, and to its monitoring range
Interior MSTP equipment performance is monitored, and solves data on flows in prior art and shows and physical device industry
The problem that business flow is inconsistent and monitoring granularity is bigger, it is possible to increase the efficiency of monitoring, and ensure flow
Data show the concordance with physical device service traffics and promptness, additionally, the technology of the embodiment of the present invention
Scheme supports the establishment of multiple monitored object, and the monitoring range of each monitored object is by user setup, it is possible to
Ensure controllability and the motility of service traffics monitoring granularity.
Device embodiment
According to embodiments of the invention, it is provided that a kind of service traffics supervising device, Fig. 6 is that the present invention implements
The structural representation of the service traffics supervising device of example, as shown in Figure 6, business according to embodiments of the present invention
Flow-monitoring device includes: management module 60, monitored object 62.Below to each of the embodiment of the present invention
Module is described in detail.
Specifically, management module 60 is (corresponding to the MSTP service traffics monitoring management in embodiment of the method
Module) it is used for creating one or more monitored object, and the prison corresponding with one or more monitored object is set
Control scope, and start one or more monitored object;Wherein, the monitoring range bag that management module 60 is arranged
Include: test point, performance item type, performance item and the time interval of capturing service data on flows.Such as,
Test point is set to: the VLAN of No. 3 groove position No. 2 ports of SE plate, and performance item type is set to: byte
Number is relevant, and performance item is set to: ring 1 forwards byte number, time interval to be set to: 20 seconds.
Specifically, management module 60 needs to generate different monitored object, often according to different classs of business
One corresponding thread of monitored object or process, after creating monitored object, need the prison that will create
Control object adds monitored object managing listings to, and by this monitored object managing listings to owning that it creates
Monitored object is managed.Management module 60 also needs to according to concrete monitoring demand be each monitored object
Different monitoring ranges is set, different monitoring granularities is i.e. set, it is achieved the controllability of monitoring granularity.This
Outward, when starting one or more monitored object, it is right that management module 60 needs to start one or more monitoring
As corresponding thread or process.
Monitored object 62 is used for the service traffics data in corresponding monitoring range are acquired and are processed, and
According to the service traffics data after processing, the service traffics in monitoring range are shown.
Preferably, monitored object 62 specifically includes: service traffics data acquisition module, service traffics data
Processing module and service traffics data disaply moudle.Wherein, service traffics data acquisition module, it is used for
Service traffics data in corresponding monitoring range are acquired, and notify the business in this monitored object in time
Data on flows processing module;Service traffics data processing module, for turning the service traffics data of collection
Turn to the communication interface message format pre-set, and the service traffics number being timely transmitted in this monitored object
According to display module, owing to have employed unified communication interface alternately, therefore with service traffics data disaply moudle
Business rule is transparent to service traffics data disaply moudle;Service traffics data disaply moudle, is used for
Call graphical display interface, according to the service traffics data after converting, the service traffics in monitoring range are entered
Row display.
As a example by MSTP business, in actual applications, the service traffics data acquisition module of monitored object 62
Service traffics data on MSTP business (performance item) equipment of association to be adopted by block first group in real time
Collection.Subsequently, the service traffics data processing module of monitored object 62 is according to business rule, to the MSTP gathered
Service traffics data carry out processing according to unified communication interface and (that is, are converted into unified communication interface message
Form), after MSTP service traffics data are converted by service traffics data processing module, it is right to monitor
Service traffics data disaply moudle as 62 calls the service traffics pre-set and shows interface, intuitively represents
The traffic conditions of each MSTP appliance services.In the process above, each monitored object 62 is responsible for oneself institute
The service traffics data acquisition of the MSTP equipment in genus monitoring range, it is achieved that point-to-point services, improves
Data acquisition efficiency;Additionally, monitored object 62 provides various service traffics methods of exhibiting, it is possible to straight
The service traffics situation representing each MSTP equipment seen.
In embodiments of the present invention, when needs stop being monitored certain monitoring range, module 60 is managed
Stop the operation of the monitored object corresponding with this monitoring range, and exit the thread corresponding with this monitored object or
Person's process;When monitored object deleted by needs, management module 60 deletes monitoring from monitored object managing listings
Object, and discharge the resource shared by monitored object.
Monitored object 62 process Fig. 2, Fig. 3, Fig. 4 of being referred in embodiment of the method for operation and
Fig. 5 understands, does not repeats them here.
From above-mentioned process it can be seen that the embodiment of the present invention is by creating monitored object in its monitoring range
MSTP equipment performance is monitored, and solves data on flows in prior art and shows and physical device Business Stream
Measure inconsistent and that monitoring granularity is bigger problem, it is possible to increase the efficiency of monitoring, and ensure data on flows
Show the concordance with physical device service traffics and promptness, additionally, the technical scheme of the embodiment of the present invention
Supporting the establishment of multiple monitored object, the monitoring range of each monitored object is by user setup, it is possible to ensure
The controllability of service traffics monitoring granularity and motility.
Although being example purpose, having been disclosed for the preferred embodiments of the present invention, those skilled in the art will
It is also possible for recognizing various improvement, increasing and replace, therefore, on the scope of the present invention should be not limited to
State embodiment.