Background technology
OAM (Operations, Administration and Maintenance) function is very important in public telecom network, and it can simplify network operation, supervising network performance and reduction network operation cost.In the network of service quality that provides safeguard, OAM(Operation Administration Maintenance) is particularly important.Actual needs according to the carrier network operation is divided into three major types with Network Management work usually, and wherein, operation and management mainly are meant finishes daily network and professional analysis, prediction, planning and the configuration effort that carries out; Maintenance mainly is the regular job activity that the test of network and business thereof and fault management etc. are carried out.OAM mechanism not only will be prevented the generation of network failure, and need to realize rapid diagnosis and location to network failure, finally improves the availability of network and to quality of services for users.
In order to strengthen the telecommunications characteristic of Ethernet, a kind of new Ethernet OAM (IEEE802.3ah standard) mechanism is disclosed in the prior art.The substandard OAM mechanism of this new IEEE802.3ah, mainly be between traditional MAC (medium access control) layer and PHY (physics) layer, to have introduced an OAM sublayer, and by between equipment, transmitting OAM information, and then realization is to the monitoring of network, the basic principle of this OAM and message format, specifically as shown in Figure 1.
As shown in Figure 1, the substandard OAM of this IEEE802.3ah sublayer mainly be to insert the OAM message at outbound course, resolve and shunting OAM message at input direction.Wherein the OAM message is consistent with traditional ethernet frame format, just redetermination a kind of OAM type.This OAM mechanism specifically can be monitored link by modes such as physics PING, loopback and remote alarms.
The process of link being monitored by physics PING is as shown in Figure 2:
PE (Provider Edge) equipment is initiated a PING request, and CE (client edge) this request of device responds after PE equipment is received and replied, obtains subscriber's line and judges normally.In actual use, PE equipment is the equipment of telecommunication bureau side, and CE equipment is the equipment in the user family, as the IPTN in the user family (IP Telecommunication Network) terminal etc.Need to prove that the PING here is a kind of PING operation of physical layer, it is different from IP PING operation commonly used, at be MAC Address, having only target MAC (Media Access Control) address is that oneself subscriber equipment just can produce and replys.The main purpose of physics PING is to check whether the link of subscribers feeder and terminal device is working properly.
Line loopback also is a kind of common positioning means, and receiving terminal is directly linked transmitting terminal, and transmit leg just can be checked the same that whether data of reception send with oneself like this, thereby judges whether it is that the internal processes of receiving equipment itself has problem.When packet loss and error code appear in user link, actually or can cause by the circuit that loopback comes failure judgement equipment to cause is set.
Remote alarm is meant that the circuit when a direction breaks down, and when detecting bigger error code such as subscriber equipment, can construct special OAM message, and from notifying PE equipment in the other direction, its process as shown in Figure 3.
Though these OAM mechanism have strengthened the fault location ability of Ethernet to a certain extent, Ethernet OAM has following two problems still unresolved:
The one, this standard just defines one section network condition that a physical link directly links to each other, and can't solve the situation of a plurality of directly connected subnets of leap of a physical network;
The 2nd, Ethernet OAM can only detect the OAM situation of physical layer, and can't solve the network actual conditions that (comprise IP (Internet Protocol) layer, TCP/UDP (transmission control protocol/user datagram protocol) layer and higher level) more than the MAC layer.
Summary of the invention
The purpose of this invention is to provide a kind of network QoS test method, can't provide the multistage physical network of crossing over a plurality of networks and the OAM(Operation Administration Maintenance) of the above network of MAC layer in the prior art to overcome, realize based on the broadband real network, OAM test end to end.
Another object of the present invention provides a kind of network service quality test system, to realize rapid diagnosis and the location to network failure, improves the availability of network and to quality of services for users.
For this reason, the invention provides following technical scheme:
A kind of network QoS test method, described method comprises step:
A, the generation one test data stream same with the Business Stream that needs test;
B, described test data stream is mail to the test terminal point from the test starting point of described network;
C, the test data of obtaining in described test terminal point basis flow the service quality that detects described network.
Described step B comprises:
B1, insert described test data stream at the inbound port place of described test starting point;
B2, between the node of described network, transmit described test data stream according to the normal forwarding process of business.
Alternatively, described step B1 is specially:
By predetermined ratio described test data stream is inserted in the regular traffic data flow, or
Be inserted into speed in the regular traffic data flow according to the described test data stream of flow size adjustment of described test data stream, or
End to insert described test data stream after the regular traffic data flow.
Preferably, when inserting described test data stream, insert the test stream identifier and the time stamp of its correspondence among the described step B1.
Described step C comprises:
The access control list of C1, pre-configured test terminal point outbound port;
C2, extract described test data stream at the outbound port place of described test terminal point according to described access control list;
C3, the test data stream that extracts is carried out the Operation, Administration and Maintenance statistics.
Described step C also comprises:
C4, when needs carry out loop back processing being to described test data stream, the test data stream that extracts is handled;
C5, the test data stream after will handling are looped back to described test starting point;
C6, the test data of obtaining in described test starting point basis flow the service quality that detects described network.
Described test data stream need be through the repeating process between the one or many network node to testing terminal point from the test starting point of described network.
A kind of network service quality test system comprises: the test that links to each other by network link plays point device and test end device and test and management equipment, wherein,
Described test and management equipment is used to finish described test is played point device and the parameter configuration of test end device and the management of test process;
Described test plays point device and is used for inserting test data stream according to the parameter information of configuration, and described test data stream is mail to described test end device;
Described test end device is used for extracting described test data stream according to the parameter information of configuration, and detects the service quality of described network according to the test data stream that extracts.
Described test plays point device and comprises:
The test data memory cell is used to store the test data stream information that described test and management equipment sends;
Test stream inserts the unit, is coupled in described test data memory cell, is used for the test data stream of described storage is inserted into the general traffics that described test plays the point device transmission.
Described test end device comprises:
Test stream characteristic information memory cell is used to store the test stream characteristic information that described test and management equipment sends;
Test stream extraction unit is coupled in described test stream characteristic information memory cell, is used for extracting corresponding test data stream according to the general traffics that described test stream characteristic information receives from described test end device;
The test processes unit is coupled in described test stream characteristic information memory cell and described test stream extraction unit respectively, is used for according to described test stream characteristic information the test data stream that extracts being done Performance Detection and statistical disposition.
Described system also comprises:
By network link with tested point device and one or more apparatus for network node of linking to each other of test end device, be used to transmit the test data that sends to described test end device from described test point device and flow and general traffics.
Described test plays point device and described test end device is respectively the network equipment with CPU and memory function.
By above technical scheme provided by the invention as can be seen, the input direction of the Business Stream inbound port of the present invention by playing point device at network test, the test data stream that simulation is identical with the Service stream formats that needs test is inserted into the test end device that mails to test data stream in the general traffics; This test data stream is the same with general traffics, to the normal forwarding process of testing the real network equipment between terminal point, arrives the test end device through the test starting point; Outbound port at the test end device extracts this test data stream, and it is carried out the OAM statistics, thereby has realized the professional OAM test of network end-to-end, such as, continuity testing, packet loss test, bandwidth test etc.Because test data stream is identical with actual Service stream formats, thereby can detect the OAM(Operation Administration Maintenance) of the above network of MAC layer; If desired test data stream is carried out loop back processing being, after this test data stream can also being handled, be looped back to up processing, further detect the situation of back haul link from the outbound port of testing end device.Therefore, utilize the present invention, can for user or Virtual network operator provide based on real network, OAM test end to end, comprehensively, rapidly, diagnosis and locating network fault exactly, and then improve the availability of network and to quality of services for users.
Embodiment
Core of the present invention is to rise at network test the input direction of the Business Stream inbound port of point device, and the test data stream that simulation is identical with the Service stream formats that needs test is inserted into the test end device that mails to test data stream in the general traffics; This test data stream is the same with general traffics, to the normal forwarding of testing the one or more real network node devices between terminal point, arrives the test end device through the test starting point; Outbound port at the test end device extracts this test data stream, and it is carried out the OAM statistics, thereby realizes the professional OAM test of network end-to-end, such as, continuity testing, packet loss test, bandwidth test etc.When if desired test data stream being carried out loop back processing being, after the test data stream that extracts being carried out respective handling at the outbound port of testing end device, again it is looped back in the up link and handles, extract at the test data stream of the outbound port of having tested point device loopback, it is carried out the OAM statistics, further detect the situation of back haul link.
In order to make those skilled in the art person understand the present invention program better, the present invention is described in further detail below in conjunction with drawings and embodiments.
The present technique field personnel know, continuous lifting and the development of Ethernet bandwidth technology and the raising of whole net QOS (service quality) supportability along with user's request, network has been a kind of requirement and trend to the business that the user provided end to end, had SLA (service-level agreement) guarantee, but how to verify whether business that network provides satisfies the requirement of SLA, also there is not a kind of method at present, can realize that the service quality that network is provided realizes test end to end, the present invention promptly adapts to this demand and proposes.
Difference according to the actual requirements, communication network can have multiple different networking mode, such as, local area network (LAN), metropolitan area network and wide area network etc.Local area network (LAN) is opened up at network and mainly is divided into three kinds of bus-type, ring-like and hub-and-spoke configurations on the external structure.On Network Transfer Media, local area network (LAN) mainly adopts twisted-pair feeder, coaxial cable and optical fiber, and wireless technology.A most widely used class local area network (LAN) is an Ethernet at present, and along with improving constantly of user's request, more the local area network (LAN) of high bandwidth has also obtained development fast in succession as Fast Ethernet and gigabit Ethernet.
Realize internetwork interconnected by network interconnection device, these equipment mainly contain: repeater, bridge, router, gateway, switch etc., they are at the different layers of realizing in being connected of LAN (local area network (LAN)) and LAN with respect to OSI (Open Systems Interconnection, Open System Interconnection system) reference model.Business datum is transmitted in these networks, handles that by the forwarding of these equipment business data flow is sent to terminal point from starting point, thereby realizes the communication between the different network terminals equipment.
The present invention realize based on testing scheme real network, the teleservice OAM(Operation Administration Maintenance), before the test beginning, at first need having tested point device and having tested end device and carry out the test parameter configuration, such as, information such as the source port number of transmit leg and recipient's address information, test stream and destination slogan, and the detection action message (such as, be communicated with letter inspection, packet loss inspection, loopback action etc.).These information are generally by test and management center or webmaster, are managed for configuration realization by the test and management passage to having tested point device and test terminal equipment.
With reference to the flow chart of the inventive method shown in Figure 4, the inventive method may further comprise the steps:
At first, in step 401: generate test data stream.Input direction at the Business Stream inbound port of having tested point device, simulation generates a test data stream identical with the Service stream formats that needs test, like this, this test data stream just can comprise MAC layer some information of above (comprising IP layer, TCP/UDP layer and higher level).
Step 402: insert test data stream at the inbound port place of test starting point.
Consider the transmission of regular traffic, can before the normal forwarding process of business data packet, by a certain percentage test data stream be inserted in the regular traffic data flow, respectively account for 50% flow as test data stream and general traffics.Can certainly end to insert test data stream after the regular traffic data flow.
In technical solution of the present invention, the insertion of test data stream cooperates by hardware to be finished, and detailed process is as follows:
Packet attribute byte content with the test data stream that generates, content as certain byte before the packet header: information such as target MAC (Media Access Control) address, source MAC, length/type, subtype, version number, coding write test service stream feature register, hardware reads these feature register, and insert payload automatically and fill word and the current flag information of test stream, as information such as packet ID and current time stamps, after filling up other guide according to the long demand of test pack, do corresponding verification, it is joined in the normal input port data flow then.When inserting test data stream, can insert the current flag information of test automatically, as packet ID and current time stamp, so that provide more information for test analysis.
The required payload data of test stream packets is in advance in the write memory, read the payload data of respective length according to the data packet length information in the test service stream feature register from memory during insertion, also can produce the required payload data of test stream packets at random.
The insertion speed of test data stream can be regulated according to the flow size of test data stream.
These test data streams are the same with general traffics, mail to the test end device by having tested point device.The front is mentioned, and difference according to actual needs can have various networking modes, and network interconnection device also has multiple, and business datum arrives destination node through the forwarding of these apparatus for network node from source node.Because the form of test data stream is identical with the form of the Business Stream that needs test, at apparatus for network node, as general traffics, according to its destination interface address that comprises, carries out the forwarding process of general traffics.
Be step 403: between the node of network, transmit described test data stream according to the normal forwarding process of business.
,, may need to transmit to testing terminal point in the test starting point through the one or many of internetwork device according to different network topology structures.Certainly according to the test needs, test starting point and test terminal point also may be two adjacent nodes on the network, at this moment do not need the repeating process through intermediate link, just test data stream directly can be sent to the test end device from the test point device.
After the test data circulation is dealt into the test end device, just these data flow can be extracted, it is analyzed, thereby determine network operation situation.
Step 404: the service quality that detects network at the test terminal point according to the test data stream that obtains.
In order to realize unified management to network, can be by the access control list of the pre-configured test terminal point of network management center outbound port, information such as ID are flowed in the address information, the test that comprise transmit leg and recipient in this table.Outbound port place in testing equipment, testing equipment goes out corresponding test data stream according to these information extractions, then, the test data stream that extracts is carried out the Operation, Administration and Maintenance statistics, such as, the connectedness of network, error statistics, packet loss statistics (according to the number of bag or the ID order of time stamp correspondence) etc.
Statistics connective and packet loss can compare acquisition according to the packet number of packet number that receives in the certain hour and transmission.Go out the number of the packet that receives in the certain hour by hardware statistics, calculate packet loss by software according to the number that hardware statistics goes out again.
To some test service,, also can judge packet loss according to the order of time stamp as LSP (label switched path) of MPLS (multiprotocol label switching) etc.
The calculating of utilized bandwidth also can be calculated according to the service traffics that receive in the unit interval and be obtained.
In order further to detect the situation of back haul link, can also carry out loop back processing being to the test data stream that extracts:
At the test terminal point, the packet that the test data of extracting flows is handled, change corresponding source, destination address, and stamp corresponding time stamp, and if desired, some the professional byte in the also replaceable bag, then, test data after handling stream is mail to the test starting point from the outbound port of test end device, after test point device and receiving this test data stream, just can flow the service quality of detection network according to this test data testing starting point.Equally, also can detect the connectedness of network, carry out operations such as error statistics, packet loss statistics in the test starting point.
The present invention is for different operational trialss, and the test data identical with this business data flow by simulation flows, thus realized to any business, based on the end-to-end test of real network, for the OOS of network provides better monitoring means.
Fig. 5 is the networking schematic diagram of system of the present invention:
This system comprises: test and management equipment 500, tested point device 501 and test end device 502, these equipment link to each other by network link, such as, coaxial cord, optical cable etc.
The different apparatus for network node of interconnected needs of heterogeneous networks realizes that business datum may just need the forwarding of a plurality of node devices from the source node to the destination node.According to the difference of network topology structure, testing point device 501 and test has one or more apparatus for network node (not shown)s between the end device 502, such as, repeater, bridge, router, gateway, the network switch etc.
Test and management equipment 500 is finished having tested point device and the parameter configuration of test end device and the management of test process.
Carrying out network service quality when test, at first test and management passage or the webmaster of information such as the test data stream that will be needed to insert by test and management equipment, performance that needs detect and statistical information, test starting point, test terminal point by the special use physical channel of using sends to and has tested point device and tested end device.At the outbound port place that has tested point device, insert test data stream according to the parameter information that disposes, and test data stream is mail to the test end device with business data flow.These test data streams are the same with Business Stream, after having tested the apparatus for network node forwarding between point device and the test end device, arrive the test end device.
After these data received in the test end device, the test data that extracts wherein according to the parameter information that disposes flowed, and detected the service quality of network according to the test data stream that extracts.Usually, can before test, outbound port ACL be sent to the test end device by test and management equipment 500, the test end device identifies the feature of test service stream and makes corresponding test processes according to this outbound port ACL, such as, carry out operations such as error statistics, packet loss statistics according to transmit leg and recipient's address information, the test data stream id information etc. of configuration.
Owing to testing point device and testing the processing that end device all needs some softwares, therefore, tested point device and the test end device all needs to have CPU (CPU) and memory function, such as, have the network switch or other network equipments of CPU.
As shown in Figure 5, having tested point device further comprises: test data memory cell 511 and test stream insert unit 512.
After having tested point device and receiving the configuration information that test and management equipment sends, be stored in the test storage unit, when needing to insert, insert the unit at its outbound port place by test stream and read these data, and it is inserted in the normal Business Stream by a certain percentage.
The test end device further comprises: test stream characteristic information memory cell 521, test stream extraction unit 522 and test processes unit 523.
After the test end device receives the configuration information of test and management equipment transmission, be stored in the test stream characteristic information memory cell, after receiving that apparatus for network node is transmitted next Business Stream, from these Business Streams, extract corresponding test data stream according to stored configuration information (comprising test stream characteristic information).Test processes unit 523 is coupled in respectively in test stream characteristic information memory cell 521 and the test stream extraction unit 522, according to test stream characteristic information the test data stream that extracts is done Performance Detection and statistical disposition.
If need do loop back processing being to test data stream, then can the loopback demand be sent to the test end device by outbound port ACL by test and management equipment, after the test end device extracts corresponding test data stream, action according to ACL, make corresponding processing data packets,, replace some bytes in the packet header as according to the action indication, and stamp corresponding time stamp content, be looped back to the test point device from the outbound port of testing end device.Tested point device and done network performance detection and statistical disposition, thereby can learn the operation conditions of back haul link according to this data flow of receiving.
System of the present invention can be applied in the multiple network, such as, Ethernet, RPR (Resilient Packet Ring) net etc.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, wish that appended claim comprises these distortion and variation and do not break away from spirit of the present invention.