A kind of network performance data collecting method
Technical field
The present invention relates to a kind of network performance data collecting method, relate in particular to a kind of acquisition method of service-level agreement collection network performance data that is.
Background technology
Service-level agreement (SLA, the i.e. abbreviation of Service Level Agreement) is meant paying certain expense and require operator to guarantee a specific service feature and an agreement of reliability with regard to the user of reaching between operator and the user.Traditional service-level agreement generally includes the assurance of professional availability and customer support services, as technical support center to guarantee settling time of customer problem, to the assurance of service disconnection number of times and time etc.In recent years, along with the fast development based on the service application of the Internet, increasing user has proposed the requirement that service feature guarantees to service-level agreement, as: network/service response time, throughput, packet loss etc.At present, the method for testing at network performance mainly contains two kinds: initiatively measure and passive measurement.
Initiatively measuring is to inject test pack to come the test network characteristic in network, during test, a reference node need be set in network, by node of applied in network performance test instrument test network to IP network performance with reference to the network link the end points.Initiatively the advantage of measuring be controllability to measuring process than higher, flexible, motor-driven, be easy to carry out IP network performance measurement end to end; Shortcoming is the ruuning situation that the measurement flow of injection can change network itself, makes result and the actual conditions measured have certain deviation, and the measurement flow also can increase network burden.Initiatively measurement is used very extensive in the measurement of performance parameter.The instrument of initiatively measuring has at present: IxChariot testing software of American I XIA company, the AppManager of U.S. NetIQ company
TMSuite testing software etc.Wherein IxChariot is present unique IP network and network equipment application layer test macro that becomes the industrial quarters standard.
The IxChariot test philosophy is by active quantitative test mode, produces real flow, network apparatus test or network system performance end to end under true the application.Simultaneously, IxChariot adopts distributed structure, can carry out performance test to the network of any scale or form, and its test structure is seen Fig. 1.Different with traditional physical layer test, IxChariot comes the test network and the network equipment by simulating various real network application flows, promptly adopts the application layer test.The benefit of doing like this is to verify network or the performance of the network equipment when concrete the application, because for any network or the network equipment, if its performance performance when practical application is good, we can think that the everyway of this network system is good, and this also is the characteristics place of application layer test.
The IxChariot test has following characteristics:
1, supports various protocols.
IxChariot supports TCP, UDP, IPX, SPX, RTP, APPC and Ipv6 agreements such as (TCP, UDP, RTP).
2, support multiple application.
The supported application of IxChariot comprises
1) benchmark test: as file transfer, high-performance testing throughput, database application;
2) the commercial application: as ActiveDirectory, Mail, Exchange, SQL, Oracle, SAP, Lotus etc.;
3) Internet uses: as FTP, HTTP, NNTP, POP3, SMTP, Telnet;
4) Streaming Media is used: as the authentication of IPTV, NetMeeting, Realmedia and process CISCO, Microsoft, Real;
5) application of P2P: as application such as MSN, yahoo.
3, test result.
1) IxChariot comprises at the test result of network and performance of network equipments: throughput (Throughput), response time (Response Time), transaction rate (Transaction Rate);
2) IxChariot comprises at the test result of Streaming Media: single channel postpones (One-Way Delay), packet loss (Loss Data), packet loss (Consecutive Lost Datagrams), maximum packet loss (Maximum Consecutive Lost Datagrams) continuously, shake Jitter (DelayVariation) RFC1889, shake maximum Jitter (Delay Variation) Maximum, MOS value adopt E_model pattern (ITU G.107) at VoIP continuously.
Because IxChariot can only provide manual mode and API (Application ProgrammingInterface API) to carry out network performance measurement at present, manual mode is manually to measure, measuring all operations can only be undertaken by manual mode, and measurement result also can only be kept in the file of IXIA oneself definition.For the service feature that service-level agreement is proposed guarantees, need monitor in real time user's network condition.Consider that network traffics have the short-term stability characteristics, and the real-time of measuring and the feasibility requirement of system, need be every the initial data of measuring intervals of TIME Tm (generally can be made as 10min) collection network performance.Thereby IxChariot can't be service-level agreement collection network performance data.
Though the API that application program of user can use IxChariot to provide drives IxChariot and finishes the similar function of manual mode, and can obtain the baseline results that IxChariot tests by API.But, at present also not about how using the method for IxChariot API as service-level agreement collection network performance data.
Summary of the invention
The object of the invention provides and a kind ofly can be the acquisition method of service-level agreement collection network performance data, and its acquisition method that has solved the existing network performance data is the very limited technical problem of function of IxChariot collection network performance data especially.
Technical solution of the present invention is:
A kind of network performance data collecting method may further comprise the steps:
1] test assignment is set:,, and store database into for it generates all test assignments at each client; Test assignment was distributed by the time, and the measuring intervals of TIME Tm of appointment in service-level agreement generates a test assignment record;
2] timer is set: a timer is set, and time interval T can be specified by the user;
3] whether test assignment is arranged in the Query Database: timer is triggered, and every time interval T Query Database whether test assignment is arranged;
4] if any test assignment, the IxChariot test parameter is set then:,, the test parameter of this test is set by API according to test assignment if test assignment is arranged; Otherwise this time operation is withdrawed from;
5] start the IxChariot test: after test parameter is set finishes, IxChariot tests by API Calls;
Whether 6] finish every specified time interval inquiry test: every designated time intervals t, whether inquiry IxChariot test finishes, if EOT continues next step, otherwise continues inquiry;
7] if test is finished, obtain after IxChariot test data: IxChariot test finishes, obtain original test result by API Calls IxChariot;
8] store test data is to database: original test result is saved in the database.
Above-mentionedly the IxChariot test parameter is set and IxChariot test process concrete steps are as follows:
1] test parameter is set
2] control end starts test: the IxChariot control end sends to end points 1 according to test parameter with information;
3] connect test: after end points 1 is received above-mentioned parameter, connect according to relevant parameter and end points 2 and to test;
4] feedback test result and show: after test finished, end points 1 fed back to control end with test result, after control end is received test result, test result is shown;
5] EOT.
Above-mentioned test assignment record comprises: the test time started, and user network access node IP, test reference end points IP, script name is used in test, the communication protocol that test is used, the relevant information of service-level agreement.
Above-mentioned test parameter comprises: the script that the communication protocol of using when the IP address of end points 1, the IP address of end points 2, test, test are used, transmission rate, transmission bag size etc.
The present invention has following advantage:
1, can test automatically.Whether the inventive method can have test assignment every time interval T Query Database according to the timer of setting; If test assignment is arranged,, the test parameter of this test is set and tests automatically by API according to test assignment.
2, can be service-level agreement collection network performance data.The inventive method be owing to can test automatically, thus can carry out the primary network performance data collection every the regular hour, and carry out the assessment of Grade of Service agreement according to these data.
3, can obtain original test result.The present invention can obtain original test result by calling IxChariot API, and preserves test result in database, can only be kept in the file that IXIA oneself defines with respect to the measurement result of IxChariot to have good practicability.
The explanation of accompanying drawing drawing
Fig. 1 is the test structure figure of IxChariot;
Fig. 2 is a method flow diagram of the present invention.
Wherein: 1 is that end points 1,2 is that end points 2,3 is the tested network equipment, and 4 is control end.
Embodiment
Test structure figure of the present invention sees Fig. 1, for the tested network equipment is tested, it is connected between end points 1 and the end points 2, and control end 4 is controlled it.
Implementation process of the present invention comprises:
The first step generates test assignment in database: at each client, for it generates all test assignments, test assignment was distributed by the time, and the measuring intervals of TIME Tm of appointment in service-level agreement generates a test assignment record; The test assignment record comprises: the test time started, and user network access node IP, test reference end points IP, script name is used in test, the communication protocol that test is used, the relevant information of service-level agreement etc.
In second step, test and preserve test result by test assignment: a timer is set, and time interval T can be specified by the user; Timer is triggered, and every time interval T Query Database whether test assignment is arranged; If test assignment is arranged,, the test parameter of this test is set by API according to test assignment; Otherwise this time operation is withdrawed from; After test parameter is set finishes, IxChariot tests by API Calls; Every designated time intervals t, whether inquiry IxChariot test finishes, if EOT continues next step, otherwise continues inquiry; After the IxChariot test finishes, obtain original test result, and preserve test result in database by calling IxChariot API; Finish and withdraw from this time operation.
The concrete test process of IxChariot is seen Fig. 2:
Step 1, triggering timer: a timer is set, and time interval T can be specified by the user.
Step 2, Query Database: after timer is triggered, whether test assignment is arranged every time interval T Query Database;
Step 3, the IxChariot test parameter is set:,,, the test parameter of this test is set by API according to test assignment if test assignment is arranged by Query Database; Otherwise this time operation is withdrawed from; Test parameter comprises the IP address of end points 1, the IP address of end points 2, the communication protocol of using when testing, the script of testing use, transmission rate, transmission bag size etc.;
Step 4, control end startup IxChariot test: the IxChariot control end sends to end points 1 according to test parameter with information such as the IP address of end points 2, the communication protocol of using when testing, the script of testing use, transmission rate, transmission bag sizes; After end points 1 is received above-mentioned parameter, connect according to relevant parameter and end points 2 and to test;
Whether step 5, inquiry test finish: whether the inquiry test finishes every 3 seconds;
Step 6, obtain test data: after test finished, end points 1 fed back to control end with test result;
Step 7, store test results: after control end is received test result, test result is shown and stores in the database.
Step 8, EOT.
By above-mentioned test, get final product equipment under test or network of network performance information in the resolution chart 1.