CN107465565B - Link test method and apparatus and system - Google Patents

Link test method and apparatus and system Download PDF

Info

Publication number
CN107465565B
CN107465565B CN201610398523.5A CN201610398523A CN107465565B CN 107465565 B CN107465565 B CN 107465565B CN 201610398523 A CN201610398523 A CN 201610398523A CN 107465565 B CN107465565 B CN 107465565B
Authority
CN
China
Prior art keywords
test
transmitter
message
equipment
reflector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610398523.5A
Other languages
Chinese (zh)
Other versions
CN107465565A (en
Inventor
窦战伟
郭俊
卢伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610398523.5A priority Critical patent/CN107465565B/en
Priority to PCT/CN2017/084951 priority patent/WO2017211169A1/en
Publication of CN107465565A publication Critical patent/CN107465565A/en
Application granted granted Critical
Publication of CN107465565B publication Critical patent/CN107465565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Abstract

The present invention provides a kind of link test method and apparatus and systems.Wherein, this method comprises: obtaining test packet by User Network Interface simulation input message, wherein test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;Test packet is sent to reflector;The response message that perception reflex device response test message is sent, wherein response message is matched with the stream matching rule of preconfigured transmitter;The test result to current ink is obtained according to response message.Through the invention, with solve the problems, such as standard TWAMP agreement dispose difficulty it is larger caused by the testing efficiency when testing network link it is lower, thus realize raising TWAMP link test efficiency effect.

Description

Link test method and apparatus and system
Technical field
The present invention relates to the communications fields, in particular to a kind of link test method and apparatus and system.
Background technique
TWAMP agreement (Two-Way Active Measurement Protocol) is a kind of agreement of IP performance metric, It is mainly used for the performance metrics such as IP network chain-circuit time delay and packet loss.TWAMP agreement is made of two parts agreement: TWAMP control Agreement (TWAMP-Control) and TWAMP test protocol (TWAMP-Test).TWAMP-Control is mainly used for initializing, open Dynamic and stopping test session.TWAMP-Test is mainly used for the interactive testing between the endpoint of test and is grouped, while carrying out IP performance Measurement.
TWAMP is usually made of 4 logic entities, and simple architectural framework is as shown in Figure 1:
1) controlling terminal (Control-Client): TWAMP test originating end sends to Server entity and establishes control company Connect request, communication pattern, the port numbers of Session-Reflector termination Acceptance Tests message of negotiation packet etc..Control- The beginning and termination of Client control TWAMP-Test session.
2) server-side (Server): the company's of the building request sent from the end Control-Client is received, with Control- Client negotiation packet communication pattern, port numbers of Session-Reflector termination Acceptance Tests message etc..Server end pipe reason One or more TEAMP-Test sessions.
3) it is sent in session transmitter (Session-Sender): TWAMP-Test session to Session-Reflector The node of test packet, while the test packet from Session-Reflector reflection meeting is received, and collect performance information, Statistical test result.
4) it in session reflector (Session-Reflector): TWAMP-Test session, receives and comes from Session- The test packet at the end Sender, and send response message.
In test phase, there is Session-Sender to send test packet (such as Fig. 2 to Session-Reflector first It is shown), the sequence number and timestamp sent comprising message in the test packet.Session-Reflector is being received After the test packet that Session-Sender is sent, test packet is reflected back Session-Sender, while in the survey of reflection It tries to add such as packet receiving timestamp of oneself, give out a contract for a project timestamp and sequence of message information (as shown in Figure 3) in message.Session- After Sender receives the test packet that Session-Reflector is transmitted back to, message information is collected, and carry out IP performance metric.
Assuming that the timestamp of giving out a contract for a project of Session-Sender in the above process is defined as T1, packet receiving timestamp is defined as The packet receiving timestamp of T4, Session-Reflector are defined as T2, and timestamp of giving out a contract for a project positions T3, then can be by with lower section The time delay of method calculating link.Chain-circuit time delay=(T4-T1)-(T3-T2).
Reflector processing delay=T3-T2.
Forward direction time delay link=T2-T1 (network clocking is significant in the case where synchronizing, meaningless in other situations).
Reverse link time delay=T4-T3 (network clocking is significant in the case where synchronizing, meaningless in other situations).Assuming that , by test process, the message number that the end Session-Sender is sent is defined as TxC for we, receives Session- The message number of Reflector transmitting is defined as RxC, then I can be calculated by TxC-RxC entirely returns losing for link Packet number.
Existing TWAMP agreement is a kind of standard agreement of IP network performance metric, in network performance metric, is needed same Shi Yunhang TWAMP control protocol and TWAMP test protocol, this requires the equipment disposed must have operation ICP/IP protocol Ability and IP transfer capability otherwise will be relatively difficult when TWAMP will be disposed.However, in the complicated networking such as PTN bearer network, Possible existing two layers of (L2) business also has three layers of (L3) business in network, such as in typical LTE networking, as shown in figure 4, access Layer use L2VPN, dispose MPLS-TP L2VPN business, core layer use L3VPN, dispose MPLS-TP L3VPN business, L2 and L3 business is by carrying out bridge joint intercommunication inside bridging device.
With the continuous improvement to performance index requirements, network operator also increasingly payes attention to from L2 access device to L3 core The heart lands the test and monitoring of the performance and connectivity of equipment room whole process link.Complicated group is off the net herein, will survey for standard TWAMP The deployment of examination agreement brings difficult and challenge, main cause as follows:
1) in the L2 network that no IP address is disposed, the network equipment is unable to run the L2 in ICP/IP protocol, such as Fig. 4 and connects Enter and aggregation networks.Due to standard TWAMP agreement be based on ICP/IP protocol, mark can not be just disposed in L2 network Quasi- TWAMP agreement carries out that L2 is end-to-end or L2 to L3 end-to-end link performance metric.
2) even if L2 access device has the ability of operation ICP/IP protocol, since each L2 access device may access greatly Base station controller or CE (Customer Edge) equipment are measured, if with standard TWAMP protocol test from L2 access device to L3 core The link performance of heart landing equipment room, it is necessary to for the one TWAMP test of each access base station controller or CE opening of device Session, and IP address is distributed for it.However, the IP address resource that can be distributed for it is limited, this is just on L2 access device Large scale deployment TWAMP detection is set to become abnormal difficult.Meanwhile extensive unlatching ICP/IP protocol is surveyed in L2, it is also possible to right The service traffics of base station controller impact, and influence user experience.
3) it when large scale deployment standard TWAMP agreement, needs to run TWAMP control protocol and test protocol simultaneously.By It is operated on control protocol in TWAMP test protocol, when control protocol exception, will lead to test protocol termination, unfavorable survey Agreement long-time uninterrupted test is tried, while being also unfavorable for the control and maintenance of TWAMP test session.
4) when some equipment only support TWAMP reflector, in the case where not supporting TWAMP control protocol, standard TWAMP It can not dispose.
That is, at present to network link carry out IP performance test when, due to standard TWAMP agreement deployment difficulty compared with Greatly, this will be so that link test range be very limited, to will lead to the testing efficiency when testing network link Lower problem.
Summary of the invention
The embodiment of the invention provides a kind of link test method and apparatus and systems, at least to solve to exist in the related technology Testing efficiency lower problem when testing network link.
According to one embodiment of present invention, a kind of link test method is provided, comprising: pass through User Network Interface mould Quasi- incoming message obtains test packet, wherein above-mentioned test packet is used for using the test in two-way active measurement agreement TWAMP Agreement tests current ink;Above-mentioned test packet is sent to reflector;Identify that above-mentioned reflector responds above-mentioned test report The response message that text is sent, wherein above-mentioned response message is matched with the stream matching rule of preconfigured transmitter;According to above-mentioned Response message obtains the test result to above-mentioned current ink.
Optionally, before obtaining test packet above by User Network Interface simulation input message, further includes: configuration The emission parameter of above-mentioned transmitter, wherein the Internet protocol using end-equipment is included at least in above-mentioned emission parameter (Internet Protocol) IP address is as virtual source IP address, wherein above-mentioned end equipment includes at least one of: Base station controller, Customer Edge router;The stream matching rule of above-mentioned transmitter is generated according to above-mentioned emission parameter;Alternatively, matching Set the emission parameter of above-mentioned transmitter, wherein the Internet protocol IP using end-equipment is included at least in above-mentioned emission parameter Address is as virtual purpose IP address, wherein above-mentioned end equipment includes at least one of: base station controller, customer edge Router;The stream matching rule of above-mentioned transmitter is generated according to above-mentioned emission parameter.
Optionally, the above-mentioned stream matching rule for generating above-mentioned transmitter according to above-mentioned emission parameter includes: according to above-mentioned survey Message information in examination message generates the stream matching rule of above-mentioned transmitter, wherein the stream matching rule of above-mentioned transmitter includes Following at least one: source IP address, purpose IP address, source user datagram protocol (User Datagram Protocol) UDP Port numbers, purpose udp user datagram protocol (User Datagram Protocol) port numbers, differentiated services code points DSCP Information.
Optionally, before obtaining test packet above by User Network Interface simulation input message, comprising: above-mentioned Two-layer equipment where transmitter configures three layer service virtual interfaces, and with configuring predetermined IP for above-mentioned three layer services virtual interface Location, wherein above-mentioned three layer services virtual interface is used in off-line test, triggers Address Resolution Protocol ARP.
Optionally, it includes: reception message that the above-mentioned reflector of above-mentioned identification, which responds the response message that above-mentioned test packet is sent,; Parameter matching is carried out to the above-mentioned message received according to the stream matching rule of above-mentioned transmitter;In parameter successful match, then Determine to identify that above-mentioned message is the above-mentioned response message that above-mentioned reflector is sent.
Optionally, above-mentioned obtained according to above-mentioned response message includes: according to above-mentioned to the test result of above-mentioned current ink Response message obtains the test time delay tested above-mentioned current ink and/or packet loss;Above-mentioned test time delay and/or on When stating packet loss and meeting preset threshold condition, the first warning information is sent.
Optionally, above-mentioned to include: to the test time delay that above-mentioned current ink is tested according to the acquisition of above-mentioned response message Obtain the following timestamp carried in above-mentioned response message: above-mentioned transmitter send above-mentioned test packet first time stamp, on State that reflector receives the second timestamp of above-mentioned test packet, above-mentioned reflector sends the third timestamp of above-mentioned response message; Obtain the 4th timestamp of the above-mentioned response message of above-mentioned transmitter receipt;According to stamp of above-mentioned first time, above-mentioned second timestamp, Above-mentioned third timestamp and above-mentioned 4th timestamp obtain following at least one test time delay: when the forward direction of above-mentioned current ink Prolong, the loop time delay of the reversed time delay of above-mentioned current ink, above-mentioned current ink.
Optionally, the above-mentioned packet loss tested according to the acquisition of above-mentioned response message above-mentioned current ink includes: to obtain It takes above-mentioned transmitter to send giving out a contract for a project for above-mentioned test packet and counts and receive the packet receiving number of above-mentioned response message;According to above-mentioned packet receiving number Above-mentioned packet loss is obtained with the above-mentioned difference for giving out a contract for a project several.
Optionally, after above-mentioned transmitter sends above-mentioned test packet to reflector, further includes: if in predetermined period not Above-mentioned response message is received, then determines that connected trouble occurs in above-mentioned current ink, sends the second warning information.
Optionally, equipment where above-mentioned transmitter includes at least one of: access device, landing equipment, bridging device, Equipment where above-mentioned reflector includes at least one of: access device, landing equipment, bridging device, wherein above-mentioned bridge joint is set Standby is the equipment for connecting two layers of aggregation networks and three layers of core network.
According to still another embodiment of the invention, a kind of link test method is additionally provided, comprising: connect by user network Mouth receives message;According to the stream matching rule of preconfigured reflector identify above-mentioned message whether be transmitter send test Message, wherein above-mentioned test packet is used to carry out current ink using the test protocol in two-way active measurement agreement TWAMP Test;When identifying is above-mentioned test packet, responds above-mentioned test packet and generate response message;It is sent to above-mentioned transmitter State response message.
Optionally, before receiving message above by User Network Interface, further includes: configure the reflection of above-mentioned reflector Parameter;The stream matching rule of above-mentioned reflector is generated according to above-mentioned reflection parameters, wherein the stream matching rule packet of above-mentioned reflector Include at least one of: source internet protocol IP address, purpose internet protocol address, the end source user datagram protocol UDP Slogan, purpose udp user datagram protocol port numbers, differentiated services code points DSCP information.
Optionally, above-mentioned to identify whether above-mentioned message is transmitter hair according to the stream matching rule of preconfigured reflector The test packet sent includes: to carry out parameter matching to the above-mentioned message received according to the stream matching rule of above-mentioned reflector;? When parameter successful match, then determine to identify that above-mentioned message is the above-mentioned test packet that above-mentioned transmitter is sent.
According to still another embodiment of the invention, a kind of link test method is additionally provided, comprising: transmitter passes through above-mentioned The User Network Interface simulation input message of transmitter obtains test packet, wherein above-mentioned test packet is used to use two-way master Test protocol in dynamic measurement agreement TWAMP tests current ink;And above-mentioned test packet is sent to reflector;It is above-mentioned Reflector receives message by the User Network Interface of above-mentioned reflector;Above-mentioned reflector is according to the stream of preconfigured reflector Matching rule identifies whether above-mentioned message is test packet that above-mentioned transmitter is sent;When identifying is above-mentioned test packet, Above-mentioned reflector responds above-mentioned test packet and generates response message, and sends above-mentioned response message to above-mentioned transmitter;Above-mentioned hair Emitter identifies the response message that above-mentioned reflector is sent, wherein above-mentioned response message and preconfigured above-mentioned transmitter Flow matching rule matching;Above-mentioned transmitter obtains the test result to above-mentioned current ink according to above-mentioned response message.
According to still another embodiment of the invention, a kind of link test device is additionally provided, above-mentioned apparatus is located at transmitter, Above-mentioned apparatus includes: analogue unit, for obtaining test packet by User Network Interface simulation input message, wherein above-mentioned Test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;First sends Unit, for sending above-mentioned test packet to reflector;Recognition unit, above-mentioned reflector responds above-mentioned test packet for identification The response message of transmission, wherein above-mentioned response message is matched with the stream matching rule of preconfigured transmitter;Acquiring unit, The test result to above-mentioned current ink is obtained according to above-mentioned response message.
Optionally, further includes: the first configuration unit, for being obtained above by User Network Interface simulation input message Before test packet, the emission parameter of above-mentioned transmitter is configured, wherein include at least in above-mentioned emission parameter and use end-equipment Internet protocol address as virtual source IP address, alternatively, use the internet protocol address of end-equipment as void Quasi- purpose IP address, wherein above-mentioned end equipment includes at least one of: base station controller, Customer Edge router;It generates Unit, for generating the stream matching rule of above-mentioned transmitter according to above-mentioned emission parameter.
Optionally, above-mentioned generation unit includes: generation module, for being generated according to the message information in above-mentioned test packet The stream matching rule of above-mentioned transmitter, wherein the stream matching rule of above-mentioned transmitter comprises at least one of the following: source IP address, Purpose IP address, source user datagram protocol UDP port number, purpose User Datagram Protocol UDP port number, differential service code Point DSCP information.
Optionally, further includes: the second configuration unit, for being obtained above by User Network Interface simulation input message Before test packet, three layer service virtual interfaces are configured in two-layer equipment where above-mentioned transmitter, and empty for above-mentioned three layer service Quasi- interface configures predetermined IP address, wherein above-mentioned three layer services virtual interface is used in off-line test, triggering address resolution association Discuss ARP.
Optionally, above-mentioned recognition unit includes: receiving module, for receiving message;Matching module, for according to above-mentioned hair The stream matching rule of emitter carries out parameter matching to the above-mentioned message received;Identification module is used in parameter successful match, Then determine to identify that above-mentioned message is the above-mentioned response message that above-mentioned reflector is sent.
Optionally, above-mentioned acquiring unit includes: the first acquisition module, for being worked as according to the acquisition of above-mentioned response message to above-mentioned The test time delay and/or packet loss that preceding link test obtains;First sending module, in above-mentioned test time delay and/or above-mentioned When packet loss meets preset threshold condition, the first warning information is sent.
Optionally, further includes: the second transmission unit, for above-mentioned transmitter to reflector send above-mentioned test packet it Afterwards, when not receiving above-mentioned response message in predetermined period, determine that connected trouble occurs in above-mentioned current ink, send the second alarm Information.
Optionally, equipment where above-mentioned transmitter includes at least one of: access device, landing equipment, bridging device, Equipment where above-mentioned reflector includes at least one of: access device, landing equipment, bridging device, wherein above-mentioned bridge joint is set Standby is the equipment for connecting two layers of aggregation networks and three layers of core network.
According to still another embodiment of the invention, a kind of link test device is additionally provided, above-mentioned apparatus is located at reflector, Above-mentioned apparatus includes: receiving unit, for receiving message by User Network Interface;Recognition unit is pre-configured with for basis Reflector stream matching rule identify above-mentioned message whether be transmitter send test packet, wherein above-mentioned test packet For using the test protocol in two-way active measurement agreement TWAMP to test current ink;First generation unit, is used for When identifying is above-mentioned test packet, responds above-mentioned test packet and generate response message;Transmission unit is used for above-mentioned transmitting Device sends above-mentioned response message.
Optionally, further includes: configuration unit is used for before receiving message above by User Network Interface, in configuration State the reflection parameters of reflector;Second generation unit, the stream for generating above-mentioned reflector according to above-mentioned reflection parameters match rule Then, wherein the stream matching rule of above-mentioned reflector includes at least one of: source internet protocol IP address, purpose internet Protocol IP address, source user datagram protocol UDP port number, purpose User Datagram Protocol UDP port number, differential service code Point DSCP information.
Optionally, above-mentioned recognition unit includes: matching module, for the stream matching rule according to above-mentioned reflector to reception The above-mentioned message arrived carries out parameter matching;Identification module identifies that above-mentioned message is in parameter successful match, then determining The above-mentioned test packet that above-mentioned transmitter is sent.
According to still another embodiment of the invention, a kind of link test system is additionally provided, comprising: set where transmitter It is standby, wherein above-mentioned transmitter for performing the following operations: test packet is obtained by User Network Interface simulation input message, Wherein, above-mentioned test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP; Above-mentioned test packet is sent to reflector;Identify that above-mentioned reflector responds the response message that above-mentioned test packet is sent, wherein on Response message is stated to match with the stream matching rule of preconfigured transmitter;It is obtained according to above-mentioned response message to above-mentioned current chain The test result on road;Equipment where above-mentioned reflector, wherein above-mentioned reflector for performing the following operations: pass through user network Interface message;According to the stream matching rule of preconfigured reflector identify above-mentioned message whether be transmitter send survey Try message, wherein above-mentioned test packet be used for using the test protocol in two-way active measurement agreement TWAMP to current ink into Row test;When identifying is above-mentioned test packet, responds above-mentioned test packet and generate response message;It is sent to above-mentioned transmitter Above-mentioned response message.
According to still another embodiment of the invention, a kind of storage medium is additionally provided.The storage medium is set as storage and uses In the program code for executing following steps: receiving message by User Network Interface;According to the stream of preconfigured reflector Identify whether above-mentioned message is test packet that transmitter is sent with rule, wherein above-mentioned test packet is used to use two-way master Test protocol in dynamic measurement agreement TWAMP tests current ink;When identifying is above-mentioned test packet, in response It states test packet and generates response message;Above-mentioned response message is sent to above-mentioned transmitter.
Through the invention, by using the test protocol in the two-way active measurement agreement TWAMP only retained to current chain Road is tested, and general not only relieves dependence of the TWAMP test to ICP/IP protocol so that standard TWAMP agreement lightweight, with Reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also TWAMP control association can not be supported some It, can also be by disposing test of the above-mentioned TWAMP test protocol completion to network link in the equipment of view.It is widened to reach TWAMP tests the test scope to network link, improves the versatility and flexibility of test, and then reaches and improve TWAMP link The efficiency of test.
Further, it when carrying out link test by large scale deployment TWAMP agreement, can also avoid running simultaneously TWAMP control protocol and test protocol.To avoid when control protocol exception, test protocol is stopped incessantly, more conducively Effective maintenance to test session.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the simple articulator composition of TWAMP agreement in the related technology;
Fig. 2 is Sender-Test message encapsulation format figure under non-authentication mode in the related technology;
Fig. 3 is Reflector-Test message encapsulation format figure under non-authentication mode in the related technology;
Fig. 4 is typical case's LTE networking in the related technology and the end-to-end detection schematic diagram of business;
Fig. 5 is the simple articulator composition of optional TWAMP of alternative embodiment according to the present invention a kind of;
Fig. 6 is a kind of flow chart of optional link test method of alternative embodiment according to the present invention;
Fig. 7 is a kind of schematic diagram of optional link test method of alternative embodiment according to the present invention;
Fig. 8 is the schematic diagram of another kind of optional link test method of alternative embodiment according to the present invention;
Fig. 9 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 10 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 11 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 12 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 13 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 14 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 15 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 16 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 17 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 18 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 19 is the schematic diagram of another optional link test method of alternative embodiment according to the present invention;
Figure 20 is the schematic diagram of another optional link test device of alternative embodiment according to the present invention;
Figure 21 is the schematic diagram of the optional link test device of another kind of alternative embodiment according to the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
In order to solve the problems, such as to encounter when disposing in complicated networking due to standard TWAMP agreement, the embodiment of the present invention is mentioned A kind of scheme that link test is realized based on lightweight TWAMP test protocol is gone out.Wherein, above-mentioned link test method can with but It is not limited to be applied to framework as shown in Figure 5, concrete scheme is as follows: the embodiment of the present invention eliminates standard during link test Control protocol in TWAMP agreement only retains test protocol, so that standard TWAMP agreement lightweight, to relieve TWAMP Dependence to ICP/IP protocol.When disposing TWAMP agreement during link test, no longer have without IP planning or IP address resource The limitation of limit expands the application scenarios range of link test while making test protocol deployment more flexible quick, into And realize the effect for improving the testing efficiency tested network link.
A kind of link test method is provided in the present embodiment.Fig. 6 is according to an embodiment of the present invention a kind of optional The flow chart of link test method, as shown in fig. 6, the process includes the following steps:
S602 obtains test packet by User Network Interface simulation input message, wherein test packet is used for using double Test protocol into active measurement agreement TWAMP tests current ink;
S604 sends test packet to reflector;
S606, the response message that perception reflex device response test message is sent, wherein response message and preconfigured hair The stream matching rule of emitter matches;
S608 obtains the test result to current ink according to response message.
Optionally, in the present embodiment, above-mentioned link test method can be, but not limited to be applied to chain drive test shown in fig. 5 In test system, in the session transmitter applied to the controlling terminal in above system.Wherein, the session transmitting in controlling terminal Device (i.e. transmitter) obtains test packet by the User Network Interface simulation input message of transmitter, wherein test packet is used Current ink is tested in using the test protocol in two-way active measurement agreement TWAMP;And it is anti-to the session of server-side Emitter (i.e. reflector) sends test packet;Reflector receives message by the User Network Interface of reflector;Reflector according to Preconfigured reflector stream matching rule identification message whether be transmitter send test packet;It is test identifying When message, reflector response test message generates response message, and sends response message to transmitter;Transmitter identifies reflection The response message that device is sent, wherein response message is matched with the stream matching rule of preconfigured transmitter;Transmitter is according to answering Receive message is answered to the test result of current ink.
Optionally, in the present embodiment, above-mentioned link test method during the test used in TWAMP can with but not It is limited to: eliminates in the two-way active measurement agreement of standard (Two-Way ActiveMeasurement Protocol, TWAMP) Control protocol only retains test protocol.That is, in the present embodiment, it is pre- in transmitter and reflector arrangement according to TWAMP First generate test stream matching rule;TWAMP transmitter passes through the Customer Premises Network interface (uni interface) of transmitter, analog subscriber Enter to message, sends test packet to reflector;Reflector identifies that transmitter sends test packet according to stream matching rule, and Response message is generated, transmitter is sent to;Transmitter identifies the response message that reflector is sent, and root according to stream matching rule The test result of current ink is obtained according to response message.By using the test protocol in light-weighted TWAMP, to relieve Limitation when TWAMP disposes the dependence of ICP/IP protocol and standard TWAMP agreement to network scenarios.It is cleverer to realize Ground living agreement deployment, and then guarantee the link under different scenes in network environment to can be achieved flexibly test, it is improved with reaching The effect of link test efficiency.
In addition, in the present embodiment, test packet can be, but not limited to as by User Network Interface (User Network Interface, UNI) analog subscriber enters and obtains to message (incoming message), further, since the message sent by UNI includes The test packet that real service message and above-mentioned simulation obtain, thus, in order to accurately distinguish TWAMP test packet and business report Text, in the present embodiment, by automatically generating stream matching rule in transmitter, to guarantee accurately to distinguish from the message transmitted Test packet reduces influence of the test process to service traffics to prevent TWAMP test packet from forwarding with service traffics.
Specifically, access layer uses L2VPN with shown in Fig. 4, the multiprotocol label switching towards transmission is disposed (Multiprotocol Label Switching-Transport Profile, MPLS-TP) two-layer virtual private network (Virtual Private Network) business (i.e. L2VPN business);Core layer uses L 3 virtual private network (Virtual Private Network) business (i.e. L3VPN business), MPLS-TP L3VPN business is disposed, L2 business and L3 business pass through bridge It connects and carries out bridge joint intercommunication inside equipment.Assuming that transmitter is arranged in the access device of access layer, core layer is arranged in reflector It lands in equipment, in embodiments of the present invention, can be, but not limited to respectively in transmitter and reflector setting TWAMP message flow It with rule, and is issued in corresponding apparatus for forwarding message, when receiving message, apparatus for forwarding message is according to configuration Stream matching rule can identify the message, carry out link performance degree to the test packet (or response message) identified to realize Amount.
It should be noted that in the present embodiment, by using the survey in the two-way active measurement agreement TWAMP only retained Examination agreement tests current ink, will be so that standard TWAMP agreement lightweight, not only relieves TWAMP test to TCP/ The dependence of IP agreement, to reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also can it is some not It, can also be by disposing survey of the above-mentioned TWAMP test protocol completion to network link in the equipment for supporting TWAMP control protocol Examination.TWAMP test is widened to the test scope of network link to reach, and improves the versatility and flexibility of test, Jin Erda To the efficiency for improving TWAMP link test.Further, when carrying out link test by large scale deployment TWAMP agreement, may be used also To avoid running TWAMP control protocol and test protocol simultaneously.To avoid when control protocol exception, test protocol is uninterrupted Ground stops, more conducively to effective maintenance of test session.
Optionally, in the present embodiment, before obtaining test packet by User Network Interface simulation input message, also Including at least one of:
1) emission parameter of transmitter is configured, wherein include at least in emission parameter and make using the IP address of end-equipment For virtual source IP address, wherein end-equipment includes at least one of: base station controller, Customer Edge router;According to hair Penetrate the stream matching rule that parameter generates transmitter;
2) emission parameter of transmitter is configured, wherein include at least in emission parameter and make using the IP address of end-equipment For virtual purpose IP address, wherein end-equipment includes at least one of: base station controller, Customer Edge router;According to The stream matching rule of emission parameter generation transmitter.
It should be noted that TWAMP test packet is identified by being then based on stream matching rule, when access device is without IP When planning or when IP address is resource-constrained, in the present embodiment, it can be, but not limited to borrow end-equipment (such as base station controller And/or the IP address of Customer Edge router (Customer Edge, CE equipment), as the virtual ip address of access device, and Test packet is obtained by uni interface simulation input message.
Wherein, when transmitter is located at access device (such as two layers of aggregation networks equipment, i.e. L2 equipment), above-mentioned borrow end The IP address of equipment will be as mode 1) in virtual source IP address;And it is located at landing equipment (such as three layers of core net in transmitter Network equipment, i.e. L3 equipment) or when bridging device, the IP address of above-mentioned borrow end-equipment will be as mode 2) in virtual purpose IP address.
Optionally, in the present embodiment, online link test not only may be implemented in above-mentioned link test method, can also be real Now offline link test.Wherein, during off-line test, transmitter can be, but not limited to virtual by three layer services configured Interface (L3VI (Virtual Interface)) triggers Address Resolution Protocol ARP, so that under off-line state, it is also available Corresponding MAC Address.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is base station controller, is connected with A equipment.A, it is disposed between B device L2VPN business, B, C equipment room dispose L3VPN business.If will be between access device (A equipment) and landing equipment (C equipment) When disposing TWAMP test, if transmitter is located at access device A, access device A initiates test, due to being off-line test, bridge joint Equipment possibly can not obtain the MAC Address of access device (A equipment), after receiving response message so as to cause by reflector The response message sent back to can not reach access device (A equipment), can not succeed so as to cause test.Therefore, in the present embodiment, It can be by being pre-configured with L3VI interface, and the IP address of the interface is configured, by the triggering gratuitous ARP study of L3VI interface, so that In off-line test, bridging device can obtain the MAC Address of access device (A equipment).
It optionally, in the present embodiment, include: according to response to the test result of current ink according to response message acquisition The test time delay and/or packet loss that Receive message tests current ink;Meet in test time delay and/or packet loss default When threshold condition, the first warning information is sent.
Optionally, in the present embodiment, after sending test packet to reflector, further includes: if in predetermined period not Response message is received, then determines that connected trouble occurs in current ink, sends the second warning information.
It should be noted that in the present embodiment, the above-mentioned test protocol using in TWAMP carries out current ink TWAMP test can be the test to connectivity of link, be also possible to the performance test to link.
Wherein, following at least one mode can include but is not limited to the test of connectivity of link:
1) by judging whether receive response message in predetermined period, to judge whether current ink is connected to;
2) by judging whether packet loss is greater than predetermined threshold, to judge whether current ink is connected to.
By the real time monitoring to connectivity of link, to realize when failure of connectivity occurs for link, in time at first Between report loss of connectivity warning information or packet loss Threshold Crossing Alert information.
It, can be as needed to prevent performance statistics from impacting to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP only carries out continuity testing at this time, when link has packet loss or packet loss of link thresholding to reach certain When value, loss of connectivity is reported to alert.
In addition, the performance test to link can include but is not limited to: when according to the test tested current ink Prolong and/or packet loss;The failure that analysis current ink occurs, to send corresponding warning information according to the failure analyzed.
It is specifically illustrated in conjunction with following example, scene as shown in Figure 7, wherein A equipment is L2 access device, and B device is Bridging device is responsible for carrying out L2 business and L3 business into bridge joint intercommunication, and C equipment is that L3 core net lands equipment, and D equipment is base station Controller (not shown) is connected with A equipment.A, L2VPN business is disposed between B device, B, C equipment room dispose L3VPN business. If will be before access device A and bridge joint landing equipment C when deployment TWAMP measurement, if initiating to survey from L2 access device A Amount, specific embodiment are as follows:
S1 specifies source IP, destination IP, source UDP port number, purpose in A device configuration lightweight TWAMP test emitter Port numbers, source MAC, purpose MAC, next-hop gateway, the optional parameters such as access interface and message DSCP, and according to the parameter of configuration Transmitter TWAMP message flow matching rule is generated, apparatus for forwarding message is handed down to.Here: in business on-line testing, source IP Location is the IP address for borrowing base station controller or CE equipment, and purpose MAC is the MAC Address of bridging device B, is needed if not specified Specify next-hop gateway address.It should be noted that the virtual IP address not traffic affecting L2 process flow borrowed.
S2 tests reflector in C device configuration lightweight TWAMP, specifies source IP, the destination IP of the reflector, the source end UDP Slogan, destination slogan, source MAC, purpose MAC, the optional parameters such as access interface and message DSCP, and according to the parameter shape of configuration At reflector TWAMP message flow matching rule, it is handed down to apparatus for forwarding message.One reflector stream matching rule, can match One TWAMP test stream, can also match a plurality of TWAMP test stream.
S3, at transmitter (Sender), when TWAMP needs business on-line testing, A equipment TWAMP protocol process module Base station or CE IP address of equipment are borrowed, as the virtual ip address of access device, by uni interface, analog subscriber enters to message (message that simulation uni interface is come in), sends test packet (Sender-Test Packet) to C, A equipment is carried in message Time stamp T of giving out a contract for a project 1, TWAMP protocol process module carry out simultaneously message give out a contract for a project counting (Txc) statistics.
S4, in reflector (Reflector), after C equipment receives message by the apparatus for forwarding message of UNI, first basis The stream matching rule issued before carries out message matching, if successful match, then it is assumed that be the Sender- of lightweight TWAMP Test test packet, C equipment lightweight TWAMP reflector generate reflector test packet (Reflector-Test packet), And it is sent to A equipment.The time stamp T 1 of giving out a contract for a project in Sender-Test message is carried in Reflector-Test message, is taken simultaneously Packet receiving time stamp T 2 with Reflector-Test test packet and time stamp T 3 of giving out a contract for a project.If matched unsuccessful, then it is assumed that be Service message continues to E-Packet according to forward rule.
S5, in transmitter, after the side A equipment UNI apparatus for forwarding message receives message, the stream matching first issued before is advised Message matching is then carried out, if successful match, then it is assumed that be the Reflector-Test test that lightweight TWAMP reflector is sent Message, TWAMP protocol process module carries out packet receiving counting (RxC) statistics, while parsing from Reflector-Test message The packet receiving time stamp T 2 of give out a contract for a project time stamp T 1 and the Reflector-Test message of Sender-Test message and timestamp of giving out a contract for a project Then T3 carries out the link performances statistics such as packet loss, positive time delay, reversed time delay, loopback delay.
S6, when A end equipment needs to carry out connectivity of link test, TWAMP protocol process module starts detection of connectivity, After transmitter has sent Sender-Test test packet, the Reflector- that reflector is reflected back is not received in one section of period Test test packet, then it is assumed that connectivity of link failure sends connectivity and alerts to user.When chain-circuit time delay or packet loss reach Threshold Crossing Alert is reported when preset threshold value.User carries out subsequent processing as needed.
By embodiment provided by the present application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement tests current ink, will be so that standard TWAMP agreement lightweight, not only relieves TWAMP test to TCP/IP The dependence of agreement, to reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also it can not be propped up some It, can also be by disposing test of the above-mentioned TWAMP test protocol completion to network link in the equipment for holding TWAMP control protocol. TWAMP test is widened to the test scope of network link to reach, and improves the versatility and flexibility of test, and then reach and mention The efficiency of high TWAMP link test.Further, it when carrying out link test by large scale deployment TWAMP agreement, can also keep away Exempt to run TWAMP control protocol and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, more conducively to effective maintenance of test session.
As a kind of optional scheme, before obtaining test packet by User Network Interface simulation input message, also Include:
1) emission parameter of transmitter is configured, wherein include at least in emission parameter and make using the IP address of end-equipment For virtual source IP address, wherein end-equipment includes at least one of: base station controller, Customer Edge router;According to hair Penetrate the stream matching rule that parameter generates transmitter;Alternatively,
2) emission parameter of transmitter is configured, wherein include at least in emission parameter and make using the IP address of end-equipment For virtual purpose IP address, wherein end-equipment includes at least one of: base station controller, Customer Edge router;According to The stream matching rule of emission parameter generation transmitter.
It should be noted that TWAMP test packet is identified by being then based on stream matching rule, when access device is without IP When planning or when IP address is resource-constrained, in the present embodiment, it can be, but not limited to borrow end-equipment (such as base station controller And/or the IP address of Customer Edge router (Customer Edge, CE equipment), as the virtual ip address of access device, and Test packet is obtained by uni interface simulation input message.
Wherein, when transmitter is located at access device, the IP address of above-mentioned borrow end-equipment will be as mode 1) in Virtual source IP address;And when transmitter is located at landing equipment or bridging device, the IP address of above-mentioned borrow end-equipment will be made For mode 2) in virtual purpose IP address.
It optionally, in the present embodiment, include: to be reported according to test according to the stream matching rule that emission parameter generates transmitter Message information in text generates the stream matching rule of transmitter, wherein the stream matching rule of transmitter comprises at least one of the following: Source IP address, purpose IP address, source UDP port number, purpose UDP port number, differentiated services code points DSCP information.
By embodiment provided by the present application, by using borrow end-equipment IP address as virtual ip address, With overcome in the prior art without IP planning or IP resource it is limited situations such as, to TWAMP test caused by test limit, to realize It releases in link test, dependence when TWAMP is disposed to TCP/IP.And then reach extension test scope, improve testing efficiency Purpose.
As a kind of optional scheme, before obtaining test packet by User Network Interface simulation input message, packet It includes:
S1, the two-layer equipment where transmitter configures three layer service virtual interfaces, and configures for three layer service virtual interfaces Predetermined IP address, wherein three layer service virtual interfaces are used in off-line test, trigger Address Resolution Protocol ARP.
It should be noted that due in off-line test, the MAC of equipment where bridging device possibly can not obtain transmitter Address, equipment where transmitter can not be reached so as to cause the response message for being reflected back toward test packet.Therefore, in the present embodiment In, it needs in device configuration L3VI interface where TWAMP transmitter and configures the interface IP address, triggered by L3VI interface free ARP study, the MAC Address of equipment where enabling bridging device to obtain transmitter.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is base station controller, is connected with A equipment.A, it is disposed between B device L2VPN business, B, C equipment room dispose L3VPN business.
If will be between access device (A equipment) and landing equipment (C equipment) when deployment TWAMP test, if transmitting Device is located at access device A, and access device A initiates test, due to being off-line test, then access device (A equipment) where transmitter It will be by being pre-configured with L3VI interface, and the IP address of the interface is configured, triggering gratuitous ARP study, so that bridging device is returning It returns before response message, the MAC Address for obtaining access device (A equipment) can be learnt.
Test is further ensured by completing TWAMP test under off-line state by embodiment provided by the present application Efficiency.
As a kind of optional scheme, the response message that reception reflector response test message is sent includes:
S1 receives message;
S2 carries out parameter matching to the message received according to the stream matching rule of transmitter;
S3 then determines to identify the response message that outgoing packet sends for reflector in parameter successful match.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is base station controller, is connected with A equipment.A, it is disposed between B device L2VPN business, B, C equipment room dispose L3VPN business.
After C equipment receives message by UNI apparatus for forwarding message, the stream matching rule first issued before is reported Text matching, if successful match, then it is assumed that be the Sender-Test test packet of lightweight TWAMP, C equipment lightweight TWAMP Reflector generates the response message (Reflector-Test packet) of reflector, and is sent to A equipment.Reflector- The time stamp T 1 of giving out a contract for a project in Sender-Test message is carried in Test message, while carrying Reflector-Test test packet Packet receiving time stamp T 2 and time stamp T 3 of giving out a contract for a project.If matched unsuccessful, then it is assumed that be service message, continued according to forward rule It E-Packets.
It realizes and service message and test is reported by the stream matching rule of pre-configuration by embodiment provided by the present application Literary (and response message) accurately distinguishes, to reach the influence for reducing test process to service traffics.
As a kind of optional scheme, include: to the test result of current ink according to response message acquisition
S1 obtains the test time delay tested current ink and/or packet loss according to response message;
S2 sends the first warning information when testing time delay and/or packet loss meets preset threshold condition.
Optionally, in the present embodiment, include: to the test time delay that current ink is tested according to response message acquisition Obtain the following timestamp carried in response message: first time stamp T1, the reflector that transmitter sends test packet are received and are surveyed Try the second time stamp T-of message, the third time stamp T 3 of reflector transmission response message;Obtain transmitter receipt response message The 4th time stamp T 4;Following at least one is obtained according to stamp, the second timestamp, third timestamp and the 4th timestamp at the first time Kind of test time delay: the positive time delay of current ink, the reversed time delay of current ink, current ink loop time delay.
Wherein, positive time delay can be, but not limited to as T2-T1, and reversed time delay can be, but not limited to as T4-T3, at reflector Reason time delay can be, but not limited to as T3-T2, and loop time delay can be, but not limited to as (T4-T1)-(T3-T2).
It optionally, in the present embodiment, include: to obtain to the packet loss that current ink is tested according to response message acquisition Transmitter is taken to send the packet receiving number RxC of give out a contract for a project several TxC and the reception response message of test packet;According to packet receiving number and give out a contract for a project several Difference obtains packet loss.
Wherein, number of dropped packets can be, but not limited to packet loss can be determined according to the number of dropped packets, for example, packet loss for TxC-RxC Rate is (TxC-RxC)/TxC.
As a kind of optional scheme, after sending test packet to reflector, further includes:
S1 determines that connected trouble occurs in current ink if not receiving response message in predetermined period, sends the second alarm Information.
By embodiment provided by the present application, after large scale deployment lightweight TWAMP, to prevent performance statistics to business Flow impacts, and can close the performance statistics such as time delay as needed, be realized by judging whether to receive response message to chain Road individually carries out continuity testing.
As a kind of optional scheme, equipment where transmitter includes at least one of: access device, landing equipment, Bridging device, equipment where reflector includes at least one of: access device, landing equipment, bridging device, wherein bridge joint Equipment is the equipment for connecting two layers of aggregation networks and three layers of core network.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is connected for base station controller, with A equipment.In this example, above-mentioned Test method can be applied to the side L2 and actively initiate access device end to landing equipment end in linear link test to the side L3 Cheng Zhong can also be applied to the side L2 and actively initiate segmentation (i.e. access device end to bridging device end) to the side L3 in downlink survey During examination, the side L2 can also be applied to and actively initiate segmentation (i.e. bridging device end to landing equipment end) to the side L3 in linear chain During drive test examination.
For example, in this example, above-mentioned test method can be applied in L2VPN network survey in downlink end to end During examination.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is connected for base station controller, with A equipment.In this example, above-mentioned Test method can be applied to the side L3 and actively initiate access device end to landing equipment end in linear link test to the side L2 Cheng Zhong can also be applied to the side L3 and actively initiate segmentation (i.e. bridging device end to access device end) to the side L2 in downlink survey During examination, the side L3 can also be applied to and actively initiate segmentation (i.e. landing equipment end to bridging device end) to the side L2 in linear chain During drive test examination.
For example, in this example, above-mentioned test method can be applied in L3VPN network survey in downlink end to end During examination.
It can be specifically illustrated in conjunction with following example:
As a kind of optional example 1): end-to-end on-line performance measurement is actively initiated to the side L3 in the side L2, such as Fig. 8 institute Show.It is TWAMP measurement actively to be initiated by L2 access device, real-time collecting statistics is linked into from L2 in the case where business is online L3 lands the performance metrics such as equipment room chain-circuit time delay, packet loss.Mainly including the following steps:
S1, such as mode illustrated in the above embodiments dispose lightweight TWAMP reflector in core landing equipment C, and refer to Determine source IP address, the purpose IP address of reflector, source UDP port number, purpose UDP port number, the optional parameters such as message DSCP.
S2 disposes lightweight TWAMP transmitter on access device A, and with specifying the source IP address of transmitter, destination IP Location, source UDP port number, purpose UDP port number, the optional parameters such as source MAC, target MAC (Media Access Control) address.Note that source IP address herein What is borrowed is base station IP address, and destination address is that L3 lands IP address of equipment.As specified purpose MAC, which is bridge joint Otherwise the MAC Address of equipment B needs specified next-hop gateway address.
S3 sends out TWAMP test on equipment A.
S4, such as mode illustrated in the above embodiments, A equipment TWAMP transmitter, by uni interface, analog subscriber enter to Message sends test packet to C equipment.
S5, such as mode illustrated in the above embodiments, in the side UNI of C equipment, apparatus for forwarding message is according to TWAMP stream With rule, it is matched to TWAMP test packet, and generates reflection report and is sent to A equipment.
S6, such as mode illustrated in the above embodiments, in the side UNI of A equipment, apparatus for forwarding message is according to TWAMP stream With rule, after being matched to TWAMP test packet, by message send to TWAMP protocol module processing, TWAMP protocol process module into Row packet loss and delay statistics.
S7, can be according to need to prevent performance statistics from impacting to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP only carries out continuity testing at this time, when link packet drop rate reaches preset threshold value, Report connectivity Threshold Crossing Alert;Alternatively, reporting loss of connectivity to alert when not receiving any response message in some cycles.
As a kind of optional example 2): end-to-end on-line performance measurement is actively initiated to the side L2 in the side L3, such as Fig. 9 institute Show, is TWAMP measurement actively to be initiated by L3 core landing equipment, real-time collecting statistics is fallen from L3 in the case where business is online Ground equipment is to the performance metrics such as chain-circuit time delay packet loss between L2 access device.Mainly including the following steps:
S1, such as mode illustrated in the above embodiments dispose lightweight TWAMP reflector in L2 access device A, and specify The source IP address of reflector, purpose IP address, source UDP port number, purpose UDP port number, the parameters such as message DSCP.
S2 disposes lightweight TWAMP transmitter, and source IP address, the mesh of specified transmitter on L3 core landing equipment C IP address, source UDP port number, purpose UDP port number, the parameters such as message DSCP.Note that purpose IP address herein is base station Or CE IP address of equipment, source address are that L3 lands IP address of equipment.
S3 sends out TWAMP test on equipment C.
S4, such as mode illustrated in the above embodiments, C equipment TWAMP transmitter, by uni interface, analog subscriber enter to Message sends test packet to A equipment.
S5, such as mode illustrated in the above embodiments, in the side L2UNI of A equipment, apparatus for forwarding message is flowed according to TWAMP Matching rule is matched to TWAMP test packet, and generates reflection report and be sent to C equipment.
S6, such as mode illustrated in the above embodiments, in the side L3UNI of C equipment, apparatus for forwarding message is flowed according to TWAMP After being matched to TWAMP test packet, message is sent to the processing of TWAMP protocol module, TWAMP protocol process module for matching rule Carry out packet loss and delay statistics.
S7, can be according to need to prevent performance statistics from impacting to service traffics after C equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP only carries out continuity testing at this time, when link packet drop rate reaches preset threshold value, Report connectivity Threshold Crossing Alert;Alternatively, reporting loss of connectivity to alert when not receiving any response message in some cycles.
As a kind of optional example 3): end-to-end offline performance measurement is actively initiated to the side L3 in the side L2, such as Figure 10 institute Show, is that TWAMP measurement is actively initiated by L2 access device, is received in real time in the case where business is offline or before business is online Collection statistics is linked into the performance metrics such as L3 landing equipment room chain-circuit time delay packet loss from L2.Mainly including the following steps:
S1, such as mode illustrated in the above embodiments dispose lightweight TWAMP reflector in core landing equipment C, and refer to Determine source IP address, the purpose IP address of reflector, source UDP port number, purpose UDP port number, the parameters such as message DSCP.
S2 disposes lightweight TWAMP transmitter on access device A, and with specifying the source IP address of transmitter, destination IP Location, source UDP port number, purpose UDP port number, the parameters such as source MAC, target MAC (Media Access Control) address.Note that source IP address herein can be with What is borrowed is that base station IP address is also possible to L3vi interface IP address, and destination address is that L3 lands IP address of equipment.When specified mesh MAC when, which is the MAC Address of bridging device B, otherwise, needs specified next-hop gateway address.
S3, due to being off-line test, bridging device possibly can not obtain the MAC Address of access device A, so as to cause anti- The test packet being emitted back towards can not reach transmitter, can not succeed so as to cause test, therefore, before test, TWAMP be needed to send out Emitter triggers gratuitous ARP study, and bridging device is enabled to learn the MAC Address to access device.Or in L2 access device Configuration L3VI interface simultaneously configures the interface IP address, by three layers of L3VI interface triggering ARP study, bridging device is obtained L2 access device MAC Address.
S4 sends out TWAMP test on equipment A.
S5, such as mode illustrated in the above embodiments, A equipment TWAMP transmitter, by uni interface, analog subscriber enter to Message sends test packet to C equipment.
S6 mode for example illustrated in the above embodiments, in the side UNI of C equipment, apparatus for forwarding message is flowed according to TWAMP to be matched Rule is matched to TWAMP test packet, and generates reflection report and be sent to A equipment.
S7, such as mode illustrated in the above embodiments, in the side UNI of A equipment, apparatus for forwarding message is according to TWAMP stream With rule, after being matched to TWAMP test packet, by message send to TWAMP protocol module processing, TWAMP protocol process module into Row packet loss and delay statistics.
S8, can be according to need to prevent performance statistics from impacting to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP value carries out continuity testing at this time, when link packet drop rate reaches preset threshold value, Report connectivity Threshold Crossing Alert;Alternatively, reporting loss of connectivity to alert when not receiving any response message in some cycles.
As a kind of optional example 4): end-to-end offline performance measurement is actively initiated to the side L2 in the side L3, such as Figure 11 institute Show, is that TWAMP measurement is actively initiated by L3 core landing equipment in the case where business is offline or before business is online, it is real When collect statistics and land equipment to the performance metrics such as chain-circuit time delay packet loss L2 access device from L3.It mainly include following step It is rapid:
S1, such as mode illustrated in the above embodiments dispose lightweight TWAMP reflector in L2 access device A, and specify The source IP address of reflector, purpose IP address, source UDP port number, purpose UDP port number, the parameters such as message DSCP.
S2 disposes lightweight TWAMP transmitter, and the source IP address of specified transmitter, purpose on core landing equipment C IP address, source UDP port number, purpose UDP port number, the parameters such as message DSCP.Note that purpose IP address herein is base station IP Address, L3VI interface IP address, source address are that L3 lands IP address of equipment.
S3, due to being off-line test, bridging device possibly can not obtain the MAC Address of access device A, so as to cause transmitting The test packet that device is sent can not reach reflector, can not succeed so as to cause test, therefore, before test, need TWAMP Reflector triggers gratuitous ARP study, and bridging device is enabled to learn the MAC Address to access device.Or it is set in L2 access Standby configuration L3VI interface simultaneously configures the interface IP address, by three layers of L3VI interface triggering ARP study, bridging device is obtained Take L2 access device MAC Address.
S4 sends out TWAMP test on equipment C.
S5, such as mode illustrated in the above embodiments, C equipment TWAMP transmitter, by uni interface, analog subscriber enter to Message sends test packet to A equipment.
S6, such as mode illustrated in the above embodiments, in the side L2UNI of A equipment, apparatus for forwarding message is flowed according to TWAMP Matching rule is matched to TWAMP test packet, and generates reflection report and be sent to C equipment.
S7, such as mode illustrated in the above embodiments, in the side L3UNI of C equipment, apparatus for forwarding message is flowed according to TWAMP After being matched to TWAMP test packet, message is sent to the processing of TWAMP protocol module, TWAMP protocol process module for matching rule Carry out packet loss and delay statistics.
S8, can be according to need to prevent performance statistics from impacting to service traffics after C equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP only carries out continuity testing at this time, when link packet drop rate reaches preset threshold value, Report connectivity Threshold Crossing Alert;Alternatively, reporting loss of connectivity to alert when not receiving any response message in some cycles.
As a kind of optional example 5): the measurement of L2 to L2 end-to-end fragmentation, as shown in figure 12, which is mainly used for In L2+L3 networking, L2 accesses side and measures to the side bridging device L2 segmented network link.It is actively to be initiated from L2 access device TWAMP measurement, real-time collecting are counted from L2 access device to the performance metrics such as chain-circuit time delay, packet loss the side bridging device L2;It is main It wants including the following steps:
S1, such as mode illustrated in the above embodiments affix one's name to TWAMP reflector in the side L2 of bridging device B, and specified anti- The source IP address of emitter, purpose IP address, source UDP port number, purpose UDP port number, source MAC, purpose MAC, message DSCP etc. Parameter.
S2 disposes lightweight TWAMP transmitter on access device A, and with specifying the source IP address of transmitter, destination IP Location, source UDP port number, purpose UDP port number, the parameters such as source MAC, target MAC (Media Access Control) address.
S3 sends out TWAMP test on equipment A.
S4, such as mode illustrated in the above embodiments, A equipment TWAMP transmitter, by uni interface, analog subscriber enter to Message sends test packet to B device.
S5, such as mode illustrated in the above embodiments, in the side L2 of bridging device B, apparatus for forwarding message is flowed according to TWAMP Matching rule is matched to TWAMP test packet, and generates reflection report and be sent to A equipment.
S6, such as mode illustrated in the above embodiments, in A equipment in the side L2UNI, apparatus for forwarding message is according to TWAMP Matching rule is flowed, after being matched to TWAMP test packet, message is sent to the processing of TWAMP protocol module, TWAMP protocol processes mould Block carries out packet loss and delay statistics.
S7, can be according to need to prevent performance statistics from impacting to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP value carries out continuity testing at this time, when link packet drop rate reaches preset threshold value, Report connectivity Threshold Crossing Alert;Alternatively, reporting loss of connectivity to alert when not receiving any response message in some cycles.
When carrying out online or off-line test, the configuration of the online and offline test scene of example 1 to 4 can refer to.
As a kind of optional example 6): the end-to-end areal survey in the side L3 to L3, as shown in figure 13, which mainly uses In L2+L3 networking, L3 lands equipment and measures to the side bridging device L3 segmented network link.It is that L3 landing equipment is actively initiated TWAMP measurement, real-time collecting statistics land equipment to the performance metrics such as chain-circuit time delay, packet loss the side bridging device L3 from L3.It is main It wants including the following steps:
S1, such as mode illustrated in the above embodiments affix one's name to TWAMP reflector in the side L3 of bridging device (B device), and The source IP address of specified reflector, purpose IP address, source UDP port number, purpose UDP port number, the parameters such as message DSCP.
S2 disposes lightweight TWAMP transmitter, and source IP address, the mesh of specified transmitter in access device (C equipment) IP address, source UDP port number, purpose UDP port number, the parameters such as DSCP.
S3 sends out TWAMP test in C equipment.
S4, such as mode illustrated in the above embodiments, C equipment TWAMP transmitter, by uni interface, analog subscriber enter to Message sends test packet to B device.
S5, such as mode illustrated in the above embodiments, in the side L3UNI of bridging device B, apparatus for forwarding message according to TWAMP flows matching rule, is matched to TWAMP test packet, and generates reflection report and be sent to C equipment.
S6, such as mode illustrated in the above embodiments, in the side L3UNI of C equipment, apparatus for forwarding message is flowed according to TWAMP After being matched to TWAMP test packet, message is sent to the processing of TWAMP protocol module, TWAMP protocol process module for matching rule Carry out packet loss and delay statistics.
S7 need to only exchange above-mentioned transmitter and reflector if to initiate to measure in the side L3 of bridging device (B device) Positional interface.
S8, can be according to need to prevent performance statistics from impacting to service traffics after C equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP value carries out continuity testing at this time, when link packet drop rate reaches preset threshold value, Report connectivity Threshold Crossing Alert;Alternatively, reporting loss of connectivity to alert when not receiving any response message in some cycles.
As a kind of optional example 7): L2VPN end-to-end measurement, as shown in figure 14, the embodiment are mainly used for L2VPN In networking, L2 accesses side to another L2 access side end-to-end link measurement.It is that TWAMP measurement is actively initiated from L2 access device, Real-time collecting is counted from the side L2 access device to the performance metrics such as chain-circuit time delay, packet loss the access device of the other side L2;Specifically Embodiment is the same as embodiment five.
As a kind of optional example 8): L3VPN end-to-end measurement, as shown in figure 15, the embodiment are mainly used for L3VPN In networking, L3 accesses side to another L3 access side end-to-end link measurement.It is that TWAMP measurement is actively initiated from L3 access device, Real-time collecting is counted from the side L3 access device to the performance metrics such as chain-circuit time delay, packet loss the access device of the other side L3;Specifically Embodiment is the same as embodiment six.
As a kind of optional example 9): in the end-to-end superposition measurement of L2 to L3, as shown in figure 16, which is used for L2 In+L3 complexity networking, L2 access device to L3 core landing equipment room end-to-end link performance metric superposition L2 network and L3 net Network is segmented end-to-end link performance metric.This measurement method is the superposition of example 1 to example 6, can monitor each section of network in real time Performance.Mainly including the following steps:
S1, configuration is directed toward the transmitter Sender1 of core landing equipment C and is directed toward bridging device B's on access device A Reflector Sender2.
S2, in the reflector reflector2 of the side L2 of bridging device B configuration Sender2.
S3, in the side L3 of bridging device B, the transmitter Sender3 of C is directed toward in configuration.
S4, in the reflector of the reflector reflector1 and Sender3 of core landing equipment C configuration Sender1 reflector3。
S5, through the above configuration, Sender1 and reflector1 measure L2 access device to L3 core landing equipment room Link performance;Sender2 and reflector2 measures L2 access device to the link performance of the side bridging device L2;Sender3 and Reflector3 measures the side bridging device L3 to the link performance of core landing equipment room.
Continuity testing is identical with the test mode in earlier examples under the scene, and details are not described herein for this example.
As a kind of optional example 10): in the end-to-end superposition measurement of L3 to L2, as shown in figure 17, which is used for In L2+L3 complexity networking, L3 core lands equipment to end-to-end link performance metric superposition L2 network and L3 between L2 access device Network segmentation end-to-end link performance metric.This measurement method is the superposition of example 1 to real example 6, can monitor each section in real time Network performance.Mainly including the following steps:
S1, configuration refers to the transmitter Sender1 of L2 access device A and is directed toward the reflection of bridging device B on access device C Device Sender2,.
S2, in the reflector reflector2 of the side L3 of bridging device B configuration Sender2.
S3, in the side L2 of bridging device B, the transmitter Sender3 of access device A is directed toward in configuration.
S4, in the reflector of the reflector reflector1 and Sender3 of L2 access device A configuration Sender1 reflector3。
S5, through the above configuration, Sender1 and reflector1 measurement L3 core landing equipment are between L2 access device Link performance;Sender2 and reflector2 measurement L3 core lands equipment to the link performance of the side bridging device L3; Sender3 and reflector3 measures the side bridging device L2 to the link performance between L2 access device.
Continuity testing is identical with the test mode in earlier examples under the scene, and details are not described herein for this example.
As a kind of optional example 11): in the side L2 to base station controller or CE equipment end-to-end measurement, such as Figure 18 institute Show, is actively to initiate TWAMP measurement in L2 access device, real-time collecting counts L2 access device to base station controller or CE equipment Between the performance metrics such as chain-circuit time delay, packet loss.Mainly including the following steps:
S1 affixes one's name to TWAMP reflector, and specified reflector in base station controller or CE upper side by above embodiment Source IP address, purpose IP address, source UDP port number, purpose UDP port number, source MAC, purpose MAC, message DSCP etc. is optional Parameter.
S2 disposes lightweight TWAMP transmitter on access device A, and with specifying the source IP address of transmitter, destination IP Location, source UDP port number, purpose UDP port number, the optional parameters such as source MAC, target MAC (Media Access Control) address.
S3 sends out TWAMP test on equipment A.
S4, by above embodiment, A equipment TWAMP transmitter sends test packet to base station controller or CE equipment.
S5, base station controller or CE equipment press above embodiment according to above-mentioned, and test packet is reflected can A equipment.
After S6, A equipment receive base station controller or the reflected test packet of CE equipment, packet loss and time delay system are carried out Meter.
Continuity testing is identical with the test mode in earlier examples under the scene, and details are not described herein for this example.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing The part that technology contributes can be embodied in the form of software products, which is stored in a storage In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
A kind of link test method is additionally provided in the present embodiment, as shown in figure 19, comprising:
S1902 receives message by User Network Interface;
S1904, according to the stream matching rule of preconfigured reflector identify message whether be transmitter send test Message, wherein test packet is for surveying current ink using the test protocol in two-way active measurement agreement TWAMP Examination;
S1906, when identifying is test packet, response test message generates response message;
S1908 sends response message to transmitter.
Optionally, it proposes in embodiments of the present invention a kind of based on the realization link test of lightweight TWAMP test protocol Scheme.Wherein, above-mentioned link test method can be, but not limited to be applied to framework as shown in Figure 5, as being applied to server-side Session reflector.Concrete scheme is as follows: the user network that the session transmitter (i.e. transmitter) in controlling terminal passes through transmitter Interface simulation input message obtains test packet, wherein test packet is used for using the survey in two-way active measurement agreement TWAMP Examination agreement tests current ink;And test packet is sent to the session reflector (i.e. reflector) of server-side;Reflector Message is received by the User Network Interface of reflector;Reflector is identified according to the stream matching rule of preconfigured reflector and is reported Text whether be transmitter send test packet;When identifying is test packet, reflector response test message generates response Message, and response message is sent to transmitter;Transmitter identify reflector send response message, wherein response message with The stream matching rule of preconfigured transmitter matches;Transmitter obtains the test result to current ink according to response message.
Optionally, in the present embodiment, the control protocol in standard TWAMP agreement is eliminated during link test, Only retain test protocol, so that standard TWAMP agreement lightweight, to relieve dependence of the TWAMP to ICP/IP protocol.In chain During drive test examination when deployment TWAMP agreement, no longer without IP planning or the limited limitation of IP address resource, making test protocol While disposing more flexible quick, the application scenarios range of link test is expanded, and then realize and improve to lattice chain drive test The effect of the testing efficiency of examination.
Optionally, in the present embodiment, above-mentioned link test method during the test used in TWAMP can with but not It is limited to: eliminates in the two-way active measurement agreement of standard (Two-Way Active Measurement Protocol, TWAMP) Control protocol, only retain test protocol.That is, by using the test protocol in light-weighted TWAMP, to relieve Dependence of the TWAMP to ICP/IP protocol.To realize that more flexible ground agreement is disposed, and then guarantee to fields different in network environment Flexibly test can be achieved in link under scape, to achieve the effect that improve link test efficiency.
In addition, in the present embodiment, test packet can be, but not limited to as by User Network Interface (User Network Interface, UNI) analog subscriber enters and obtains to message (incoming message), further, since the message sent by UNI includes The test packet that real service message and above-mentioned simulation obtain, thus, in order to accurately distinguish TWAMP test packet and business report Text, in the present embodiment, by being pre-configured with stream matching rule in transmitter, to guarantee accurately to distinguish from the message transmitted Test packet reduces influence of the test process to service traffics to prevent TWAMP test packet from forwarding with service traffics.
Optionally, in the present embodiment, before receiving message by User Network Interface, further includes: configuration reflector Reflection parameters;The stream matching rule of reflector is generated according to reflection parameters, wherein the stream matching rule of reflector includes following At least one: source IP address, purpose IP address, source UDP port number, purpose UDP port number, differentiated services code points DSCP letter Breath.
Optionally, in the present embodiment, identify whether message is hair according to the stream matching rule of preconfigured reflector The test packet that emitter is sent includes: to carry out parameter matching to the message received according to the stream matching rule of reflector;Joining When number successful match, then determine to identify the test packet that outgoing packet sends for transmitter.
By embodiment provided by the present application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement tests current ink, will be so that standard TWAMP agreement lightweight, not only relieves TWAMP test to TCP/IP The dependence of agreement, to reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also it can not be propped up some It, can also be by disposing test of the above-mentioned TWAMP test protocol completion to network link in the equipment for holding TWAMP control protocol. TWAMP test is widened to the test scope of network link to reach, and improves the versatility and flexibility of test, and then reach and mention The efficiency of high TWAMP link test.Further, it when carrying out link test by large scale deployment TWAMP agreement, can also keep away Exempt to run TWAMP control protocol and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, more conducively to effective maintenance of test session.
Embodiment 3
A kind of link test device is additionally provided in the present embodiment, and the device is real for realizing above-described embodiment and preferably Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module " The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or The realization of the combination of software and hardware is also that may and be contemplated.
Figure 20 is the structural block diagram of link test device according to an embodiment of the present invention, as shown in figure 20, above-mentioned apparatus position In transmitter, which includes:
1) analogue unit 2002, for obtaining test packet by User Network Interface simulation input message, wherein test Message is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;
2) the first transmission unit 2004, for sending test packet to reflector;
3) recognition unit 2006, the response message that reflector response test message is sent for identification, wherein response message It is matched with the stream matching rule of preconfigured transmitter;
4) acquiring unit 2008 obtain the test result to current ink according to response message.
Optionally, in the present embodiment, above-mentioned link test device can be, but not limited to be applied to chain drive test shown in fig. 5 In test system, wherein the system includes: equipment (such as server-side) where equipment (such as controlling terminal), reflector where transmitter. Optionally, in the present embodiment, above-mentioned apparatus can be, but not limited to the session transmitting for the controlling terminal being applied in above system In device.
(1) the session transmitter (i.e. transmitter) in controlling terminal is for performing the following operations: passing through User Network Interface Simulation input message obtains test packet, wherein test packet is used to assist using the test in two-way active measurement agreement TWAMP View tests current ink;Test packet is sent to reflector;The response report that perception reflex device response test message is sent Text, wherein response message is matched with the stream matching rule of preconfigured transmitter;It is obtained according to response message to current ink Test result;
(2) the session reflector (i.e. reflector) in server-side is for performing the following operations: being connect by User Network Interface Receiving text;According to the stream matching rule of preconfigured reflector identify message whether be transmitter send test packet, In, test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;It is identifying When being test packet out, response test message generates response message;Response message is sent to transmitter.
Optionally, in the present embodiment, above-mentioned link test method during the test used in TWAMP can with but not It is limited to: eliminates in the two-way active measurement agreement of standard (Two-Way ActiveMeasurement Protocol, TWAMP) Control protocol only retains test protocol.That is, in the present embodiment, it is pre- in transmitter and reflector arrangement according to TWAMP First generate test stream matching rule;TWAMP transmitter passes through the Customer Premises Network interface (uni interface) of transmitter, analog subscriber Enter to message, sends test packet to reflector;Reflector identifies that transmitter sends test packet according to stream matching rule, and Response message is generated, transmitter is sent to;Transmitter identifies the response message that reflector is sent, and root according to stream matching rule The test result of current ink is obtained according to response message.By using the test protocol in light-weighted TWAMP, to relieve Limitation when TWAMP disposes the dependence of ICP/IP protocol and standard TWAMP agreement to network scenarios.It is cleverer to realize Ground living agreement deployment, and then guarantee the link under different scenes in network environment to can be achieved flexibly test, it is improved with reaching The effect of link test efficiency.
In addition, in the present embodiment, test packet can be, but not limited to as by User Network Interface (User Network Interface, UNI) analog subscriber enters and obtains to message (incoming message), further, since the message sent by UNI includes The test packet that real service message and above-mentioned simulation obtain, thus, in order to accurately distinguish TWAMP test packet and business report Text, in the present embodiment, by automatically generating stream matching rule in transmitter, to guarantee accurately to distinguish from the message transmitted Test packet reduces influence of the test process to service traffics to prevent TWAMP test packet from forwarding with service traffics.
Specifically, access layer uses L2VPN with shown in Fig. 4, the multiprotocol label switching towards transmission is disposed (Multiprotocol Label Switching-Transport Profile, MPLS-TP) two-layer virtual private network (Virtual Private Network) business (i.e. L2VPN business);Core layer uses L 3 virtual private network (Virtual Private Network) business (i.e. L3VPN business), MPLS-TP L3VPN business is disposed, L2 business and L3 business pass through bridge It connects and carries out bridge joint intercommunication inside equipment.Assuming that transmitter is arranged in the access device of access layer, core layer is arranged in reflector It lands in equipment, in embodiments of the present invention, can be, but not limited to respectively in transmitter and reflector setting TWAMP message flow It with rule, and is issued in corresponding apparatus for forwarding message, when receiving message, apparatus for forwarding message is according to configuration Stream matching rule can identify the message, carry out link performance degree to the test packet (or response message) identified to realize Amount.
It should be noted that in the present embodiment, by using the survey in the two-way active measurement agreement TWAMP only retained Examination agreement tests current ink, will be so that standard TWAMP agreement lightweight, not only relieves TWAMP test to TCP/ The dependence of IP agreement, to reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also can it is some not It, can also be by disposing survey of the above-mentioned TWAMP test protocol completion to network link in the equipment for supporting TWAMP control protocol Examination.TWAMP test is widened to the test scope of network link to reach, and improves the versatility and flexibility of test, Jin Erda To the efficiency for improving TWAMP link test.Further, when carrying out link test by large scale deployment TWAMP agreement, may be used also To avoid running TWAMP control protocol and test protocol simultaneously.To avoid when control protocol exception, test protocol is uninterrupted Ground stops, more conducively to effective maintenance of test session.
Optionally, in the present embodiment, before obtaining test packet by User Network Interface simulation input message, also Including at least one of:
1) emission parameter of transmitter is configured, wherein include at least in emission parameter and make using the IP address of end-equipment For virtual source IP address, wherein end-equipment includes at least one of: base station controller, Customer Edge router;According to hair Penetrate the stream matching rule that parameter generates transmitter;
2) emission parameter of transmitter is configured, wherein include at least in emission parameter and make using the IP address of end-equipment For virtual purpose IP address, wherein end-equipment includes at least one of: base station controller, Customer Edge router;According to The stream matching rule of emission parameter generation transmitter.
It should be noted that TWAMP test packet is identified by being then based on stream matching rule, when access device is without IP When planning or when IP address is resource-constrained, in the present embodiment, it can be, but not limited to borrow end-equipment (such as base station controller And/or the IP address of Customer Edge router (Customer Edge, CE equipment), as the virtual ip address of access device, and Test packet is obtained by uni interface simulation input message.
Wherein, when transmitter is located at access device (such as two layers of aggregation networks equipment, i.e. L2 equipment), above-mentioned borrow end The IP address of equipment will be as mode 1) in virtual source IP address;And it is located at landing equipment (such as three layers of core net in transmitter Network equipment, i.e. L3 equipment) or when bridging device, the IP address of above-mentioned borrow end-equipment will be as mode 2) in virtual purpose IP address.
Optionally, in the present embodiment, online link test not only may be implemented in above-mentioned link test device, can also be real Now offline link test.Wherein, during off-line test, transmitter can be, but not limited to virtual by three layer services configured Interface (L3VI (Virtual Interface)) triggers Address Resolution Protocol ARP, so that under off-line state, it is also available Corresponding MAC Address.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is base station controller, is connected with A equipment.A, it is disposed between B device L2VPN business, B, C equipment room dispose L3VPN business.If will be between access device (A equipment) and landing equipment (C equipment) When disposing TWAMP test, if transmitter is located at access device A, access device A initiates test, due to being off-line test, bridge joint Equipment possibly can not obtain the MAC Address of access device (A equipment), after receiving response message so as to cause by reflector The response message sent back to can not reach access device (A equipment), can not succeed so as to cause test.Therefore, in the present embodiment, It can be by being pre-configured with L3VI interface, and the IP address of the interface is configured, by the triggering gratuitous ARP study of L3VI interface, so that In off-line test, bridging device can obtain the MAC Address of access device (A equipment).
It optionally, in the present embodiment, include: according to response to the test result of current ink according to response message acquisition The test time delay and/or packet loss that Receive message tests current ink;Meet in test time delay and/or packet loss default When threshold condition, the first warning information is sent.
Optionally, in the present embodiment, after sending test packet to reflector, further includes: if in predetermined period not Response message is received, then determines that connected trouble occurs in current ink, sends the second warning information.
It should be noted that in the present embodiment, the above-mentioned test protocol using in TWAMP carries out current ink TWAMP test can be the test to connectivity of link, be also possible to the performance test to link.
Wherein, following at least one mode can include but is not limited to the test of connectivity of link:
1) by judging whether receive response message in predetermined period, to judge whether current ink is connected to;
2) by judging whether packet loss is greater than predetermined threshold, to judge whether current ink is connected to.
By the real time monitoring to connectivity of link, to realize when failure of connectivity occurs for link, in time at first Between report loss of connectivity warning information or packet loss Threshold Crossing Alert information.
It, can be as needed to prevent performance statistics from impacting to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, TWAMP only carries out continuity testing at this time, when link has packet loss or packet loss of link thresholding to reach certain When value, loss of connectivity is reported to alert.
In addition, the performance test to link can include but is not limited to: when according to the test tested current ink Prolong and/or packet loss;The failure that analysis current ink occurs, to send corresponding warning information according to the failure analyzed.
It is specifically illustrated in conjunction with following example, scene as shown in Figure 7, wherein A equipment is L2 access device, and B device is Bridging device is responsible for carrying out L2 business and L3 business into bridge joint intercommunication, and C equipment is that L3 core net lands equipment, and D equipment is base station Controller is connected with A equipment.A, L2VPN business is disposed between B device, B, C equipment room dispose L3VPN business.If to access When disposing TWAMP measurement before equipment A and bridge joint landing equipment C, if initiating to measure from L2 access device A, specific embodiment party Case is as follows:
S1 specifies source IP, destination IP, source UDP port number, purpose in A device configuration lightweight TWAMP test emitter Port numbers, source MAC, purpose MAC, next-hop gateway, the optional parameters such as access interface and message DSCP, and according to the parameter of configuration Transmitter TWAMP message flow matching rule is generated, apparatus for forwarding message is handed down to.Here: in business on-line testing, source IP Location is the IP address for borrowing base station controller or CE equipment, and purpose MAC is the MAC Address of bridging device B, is needed if not specified Specify next-hop gateway address.It should be noted that the virtual IP address not traffic affecting L2 process flow borrowed.
S2 tests reflector in C device configuration lightweight TWAMP, specifies source IP, the destination IP of the reflector, the source end UDP Slogan, destination slogan, source MAC, purpose MAC, the optional parameters such as access interface and message DSCP, and according to the parameter shape of configuration At reflector TWAMP message flow matching rule, it is handed down to apparatus for forwarding message.One reflector stream matching rule, can match One TWAMP test stream, can also match a plurality of TWAMP test stream.
S3, at transmitter (Sender), when TWAMP needs business on-line testing, A equipment TWAMP protocol process module Base station or CE IP address of equipment are borrowed, as the virtual ip address of access device, by uni interface, analog subscriber enters to message (message that simulation uni interface is come in), sends test packet (Sender-Test Packet) to C, A equipment is carried in message Time stamp T of giving out a contract for a project 1, TWAMP protocol process module carry out simultaneously message give out a contract for a project counting (Txc) statistics.
S4, in reflector (Reflector), after C equipment receives message by the apparatus for forwarding message of UNI, first basis The stream matching rule issued before carries out message matching, if successful match, then it is assumed that be the Sender- of lightweight TWAMP Test test packet, C equipment lightweight TWAMP reflector generate reflector test packet (Reflector-Test packet), And it is sent to A equipment.The time stamp T 1 of giving out a contract for a project in Sender-Test message is carried in Reflector-Test message, is taken simultaneously Packet receiving time stamp T 2 with Reflector-Test test packet and time stamp T 3 of giving out a contract for a project.If matched unsuccessful, then it is assumed that be Service message continues to E-Packet according to forward rule.
S5, in transmitter, after the side A equipment UNI apparatus for forwarding message receives message, the stream matching first issued before is advised Message matching is then carried out, if successful match, then it is assumed that be the Reflector-Test test that lightweight TWAMP reflector is sent Message, TWAMP protocol process module carries out packet receiving counting (RxC) statistics, while parsing from Reflector-Test message The packet receiving time stamp T 2 of give out a contract for a project time stamp T 1 and the Reflector-Test message of Sender-Test message and timestamp of giving out a contract for a project Then T3 carries out the link performances statistics such as packet loss, positive time delay, reversed time delay, loopback delay.
S6, when A end equipment needs to carry out connectivity of link test, TWAMP protocol process module starts detection of connectivity, After transmitter has sent Sender-Test test packet, the Reflector- that reflector is reflected back is not received in one section of period Test test packet, then it is assumed that connectivity of link failure sends connectivity and alerts to user.When chain-circuit time delay or packet loss reach Threshold Crossing Alert is reported when preset threshold value.User carries out subsequent processing as needed.
By embodiment provided by the present application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement tests current ink, will be so that standard TWAMP agreement lightweight, not only relieves TWAMP test to TCP/IP The dependence of agreement, to reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also it can not be propped up some It, can also be by disposing test of the above-mentioned TWAMP test protocol completion to network link in the equipment for holding TWAMP control protocol. TWAMP test is widened to the test scope of network link to reach, and improves the versatility and flexibility of test, and then reach and mention The efficiency of high TWAMP link test.Further, it when carrying out link test by large scale deployment TWAMP agreement, can also keep away Exempt to run TWAMP control protocol and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, more conducively to effective maintenance of test session.
As a kind of optional scheme, further includes:
1) the first configuration unit, for matching before obtaining test packet by User Network Interface simulation input message Set the emission parameter of transmitter, wherein include at least in emission parameter and use the IP address of end-equipment as virtual source IP Location, alternatively, using the IP address of end-equipment as virtual purpose IP address, wherein end-equipment includes at least one of: Base station controller, Customer Edge router
2) generation unit, for generating the stream matching rule of transmitter according to emission parameter.
It should be noted that TWAMP test packet is identified by being then based on stream matching rule, when access device is without IP When planning or when IP address is resource-constrained, in the present embodiment, it can be, but not limited to borrow end-equipment (such as base station controller And/or the IP address of Customer Edge router (Customer Edge, CE equipment), as the virtual ip address of access device, and Test packet is obtained by uni interface simulation input message.
Wherein, when transmitter is located at access device, the IP address of above-mentioned borrow end-equipment will be as mode 1) in Virtual source IP address;And when transmitter is located at landing equipment or bridging device, the IP address of above-mentioned borrow end-equipment will be made For mode 2) in virtual purpose IP address.
Optionally, in the present embodiment, generation unit includes: generation module, for being believed according to the message in test packet Breath generates the stream matching rule of transmitter, wherein the stream matching rule of transmitter comprises at least one of the following: source IP address, mesh IP address, source UDP port number, purpose UDP port number, differentiated services code points DSCP information.
By embodiment provided by the present application, by using borrow end-equipment IP address as virtual ip address, With overcome in the prior art without IP planning or IP resource it is limited situations such as, to TWAMP test caused by test limit, to realize It releases in link test, dependence when TWAMP is disposed to TCP/IP.And then reach extension test scope, improve testing efficiency Purpose.
As a kind of optional scheme, comprising:
1) the second configuration unit, for before obtaining test packet by User Network Interface simulation input message, Two-layer equipment where transmitter configures three layer service virtual interfaces, and configures predetermined IP address for three layer service virtual interfaces, In, three layer service virtual interfaces are used in off-line test, trigger Address Resolution Protocol ARP.
It should be noted that due in off-line test, the MAC of equipment where bridging device possibly can not obtain transmitter Address, equipment where transmitter can not be reached so as to cause the response message for being reflected back toward test packet.Therefore, in the present embodiment In, it needs in device configuration L3VI interface where TWAMP transmitter and configures the interface IP address, triggered by L3VI interface free ARP study, the MAC Address of equipment where enabling bridging device to obtain transmitter.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is base station controller, is connected with A equipment.A, it is disposed between B device L2VPN business, B, C equipment room dispose L3VPN business.
If will be between access device (A equipment) and landing equipment (C equipment) when deployment TWAMP test, if transmitting Device is located at access device A, and access device A initiates test, due to being off-line test, then access device (A equipment) where transmitter It will be by being pre-configured with L3VI interface, and the IP address of the interface is configured, triggering gratuitous ARP study, so that bridging device is returning It returns before response message, the MAC Address for obtaining access device (A equipment) can be learnt.
Test is further ensured by completing TWAMP test under off-line state by embodiment provided by the present application Efficiency.
As a kind of optional scheme, receiving unit includes:
1) receiving module, for receiving message;
2) matching module, for carrying out parameter matching to the message received according to the stream matching rule of transmitter;
3) identification module identifies the response report that outgoing packet sends for reflector in parameter successful match, then determining Text.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is base station controller, is connected with A equipment.A, it is disposed between B device L2VPN business, B, C equipment room dispose L3VPN business.
After C equipment receives message by UNI apparatus for forwarding message, the stream matching rule first issued before is reported Text matching, if successful match, then it is assumed that be the Sender-Test test packet of lightweight TWAMP, C equipment lightweight TWAMP Reflector generates the response message (Reflector-Test packet) of reflector, and is sent to A equipment.Reflector- The time stamp T 1 of giving out a contract for a project in Sender-Test message is carried in Test message, while carrying Reflector-Test test packet Packet receiving time stamp T 2 and time stamp T 3 of giving out a contract for a project.If matched unsuccessful, then it is assumed that be service message, continued according to forward rule It E-Packets.
It realizes and service message and test is reported by the stream matching rule of pre-configuration by embodiment provided by the present application Literary (and response message) accurately distinguishes, to reach the influence for reducing test process to service traffics.
As a kind of optional scheme, acquiring unit includes:
1) first obtain module, for according to response message obtain the test time delay that current ink is tested and/or Packet loss;
2) the first sending module is accused for when testing time delay and/or packet loss meets preset threshold condition, sending first Alert information.
Optionally, in the present embodiment, include: to the test time delay that current ink is tested according to response message acquisition Obtain the following timestamp carried in response message: first time stamp T1, the reflector that transmitter sends test packet are received and are surveyed Try the second time stamp T-of message, the third time stamp T 3 of reflector transmission response message;Obtain transmitter receipt response message The 4th time stamp T 4;It is obtained according to stamp, the second timestamp, third timestamp and the 4th timestamp at the first time to current ink The positive time delay of test, it is reversed when extend to loop time delay.
Wherein, positive time delay can be, but not limited to as T2-T1, and reversed time delay can be, but not limited to as T4-T3, at reflector Reason time delay can be, but not limited to as T3-T2, and loop time delay can be, but not limited to as (T4-T1)-(T3-T2).
It optionally, in the present embodiment, include: to obtain to the packet loss that current ink is tested according to response message acquisition Transmitter is taken to send the packet receiving number RxC of give out a contract for a project several TxC and the reception response message of test packet;According to packet receiving number and give out a contract for a project several Difference obtains packet loss.
Wherein, number of dropped packets can be, but not limited to packet loss can be determined according to the number of dropped packets, for example, packet loss for TxC-RxC Rate is (TxC-RxC)/TxC.
As a kind of optional scheme, further includes:
1) the second transmission unit, for not received in predetermined period after transmitter sends test packet to reflector When to response message, determines that connected trouble occurs in current ink, send the second warning information.
By embodiment provided by the present application, after large scale deployment lightweight TWAMP, to prevent performance statistics to business Flow impacts, and can close the performance statistics such as time delay as needed, be realized by judging whether to receive response message to chain Road individually carries out continuity testing.
As a kind of optional scheme, equipment where transmitter includes at least one of: access device, landing equipment, Bridging device, equipment where reflector includes at least one of: access device, landing equipment, bridging device, wherein bridge joint Equipment is the equipment for connecting two layers of aggregation networks and three layers of core network.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is connected for base station controller, with A equipment.In this example, above-mentioned Test method can be applied to the side L2 and actively initiate access device end to landing equipment end in linear link test to the side L3 Cheng Zhong can also be applied to the side L2 and actively initiate segmentation (i.e. access device end to bridging device end) to the side L3 in downlink survey During examination, the side L2 can also be applied to and actively initiate segmentation (i.e. bridging device end to landing equipment end) to the side L3 in linear chain During drive test examination.
For example, in this example, above-mentioned test method can be applied in L2VPN network survey in downlink end to end During examination.
For example, it is assumed that A equipment is L2 access device, B device is bridging device, for L2 business and L3 business to be carried out bridge Intercommunication is connect, C equipment is that L3 core net lands equipment, and D equipment is connected for base station controller, with A equipment.In this example, above-mentioned Test method can be applied to the side L3 and actively initiate access device end to landing equipment end in linear link test to the side L2 Cheng Zhong can also be applied to the side L3 and actively initiate segmentation (i.e. bridging device end to access device end) to the side L2 in downlink survey During examination, the side L3 can also be applied to and actively initiate segmentation (i.e. landing equipment end to bridging device end) to the side L2 in linear chain During drive test examination.
For example, in this example, above-mentioned test method can be applied in L3VPN network survey in downlink end to end During examination.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 4
A kind of link test device is additionally provided in the present embodiment, and the device is real for realizing above-described embodiment and preferably Mode is applied, the descriptions that have already been made will not be repeated.As used below, the soft of predetermined function may be implemented in term " module " The combination of part and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or The realization of the combination of software and hardware is also that may and be contemplated.
Figure 21 is the structural block diagram of link test device according to an embodiment of the present invention, as shown in figure 21, above-mentioned apparatus position In reflector, which includes:
1) receiving unit 2102, for receiving message by User Network Interface;
2) recognition unit 2104, for identifying whether message is transmitting according to the stream matching rule of preconfigured reflector The test packet that device is sent, wherein test packet is used for using the test protocol in two-way active measurement agreement TWAMP to current Link is tested;
3) the first generation unit 2106, for when identifying is test packet, response test message to generate response message;
4) transmission unit 2108, for sending the response message to the transmitter.
Optionally, it proposes in embodiments of the present invention a kind of based on the realization link test of lightweight TWAMP test protocol Scheme.Wherein, above-mentioned link test device can be, but not limited to be applied to framework as shown in Figure 5, as being applied to server-side Session reflector.Concrete scheme is as follows: the user network that the session transmitter (i.e. transmitter) in controlling terminal passes through transmitter Interface simulation input message obtains test packet, wherein test packet is used for using the survey in two-way active measurement agreement TWAMP Examination agreement tests current ink;And test packet is sent to the session reflector (i.e. reflector) of server-side;Reflector Message is received by the User Network Interface of reflector;Reflector is identified according to the stream matching rule of preconfigured reflector and is reported Text whether be transmitter send test packet;When identifying is test packet, reflector response test message generates response Message, and response message is sent to transmitter;Transmitter identify reflector send response message, wherein response message with The stream matching rule of preconfigured transmitter matches;Transmitter obtains the test result to current ink according to response message.
Optionally, in the present embodiment, the control protocol in standard TWAMP agreement is eliminated during link test, Only retain test protocol, so that standard TWAMP agreement lightweight, to relieve dependence of the TWAMP to ICP/IP protocol.In chain During drive test examination when deployment TWAMP agreement, no longer without IP planning or the limited limitation of IP address resource, making test protocol While disposing more flexible quick, the application scenarios range of link test is expanded, and then realize and improve to lattice chain drive test The effect of the testing efficiency of examination.
Optionally, in the present embodiment, above-mentioned link test method during the test used in TWAMP can with but not It is limited to: eliminates in the two-way active measurement agreement of standard (Two-Way Active Measurement Protocol, TWAMP) Control protocol, only retain test protocol.That is, by using the test protocol in light-weighted TWAMP, to relieve Dependence of the TWAMP to ICP/IP protocol.To realize that more flexible ground agreement is disposed, and then guarantee to fields different in network environment Flexibly test can be achieved in link under scape, to achieve the effect that improve link test efficiency.
In addition, in the present embodiment, test packet can be, but not limited to as by User Network Interface (User Network Interface, UNI) analog subscriber enters and obtains to message (incoming message), further, since the message sent by UNI includes The test packet that real service message and above-mentioned simulation obtain, thus, in order to accurately distinguish TWAMP test packet and business report Text, in the present embodiment, by being pre-configured with stream matching rule in transmitter, to guarantee accurately to distinguish from the message transmitted Test packet reduces influence of the test process to service traffics to prevent TWAMP test packet from forwarding with service traffics.
Optionally, in the present embodiment, further includes: configuration unit, for being reported in described received by User Network Interface Before text, the reflection parameters of the reflector are configured;Second generation unit, for generating the reflection according to the reflection parameters The stream matching rule of device, wherein the stream matching rule of the reflector includes at least one of: source IP address, destination IP Location, source UDP port number, purpose UDP port number, differentiated services code points DSCP information.
Optionally, in the present embodiment, recognition unit includes: matching module, for the stream matching rule according to reflector Parameter matching is carried out to the message received;Identification module identifies outgoing packet for hair in parameter successful match, then determining The test packet that emitter is sent.
By embodiment provided by the present application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement tests current ink, will be so that standard TWAMP agreement lightweight, not only relieves TWAMP test to TCP/IP The dependence of agreement, to reduce limitation of the IP address to using TWAMP agreement to carry out link test.But also it can not be propped up some It, can also be by disposing test of the above-mentioned TWAMP test protocol completion to network link in the equipment for holding TWAMP control protocol. TWAMP test is widened to the test scope of network link to reach, and improves the versatility and flexibility of test, and then reach and mention The efficiency of high TWAMP link test.Further, it when carrying out link test by large scale deployment TWAMP agreement, can also keep away Exempt to run TWAMP control protocol and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, more conducively to effective maintenance of test session.
Embodiment 5
According to one embodiment of present invention, a kind of link test system is provided, comprising:
1) equipment where transmitter, wherein transmitter for performing the following operations: pass through User Network Interface simulation input Message obtains test packet, wherein test packet is used for using the test protocol in two-way active measurement agreement TWAMP to current Link is tested;Test packet is sent to reflector;The response message that perception reflex device response test message is sent, wherein Response message is matched with the stream matching rule of preconfigured transmitter;The test knot to current ink is obtained according to response message Fruit;
2) equipment where reflector, wherein reflector for performing the following operations: pass through User Network Interface and receive report Text;According to the stream matching rule of preconfigured reflector identify message whether be transmitter send test packet, wherein survey Examination message is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;It is identifying When test packet, response test message generates response message;Response message is sent to transmitter.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Embodiment 6
The embodiments of the present invention also provide a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can To be arranged to store the program code for executing following steps:
S1 obtains test packet by User Network Interface simulation input message, wherein test packet is used for using two-way Test protocol in active measurement agreement TWAMP tests current ink;
S2 sends test packet to reflector;
S3, the response message that perception reflex device response test message is sent, wherein response message and preconfigured transmitting The stream matching rule of device matches;
S4 obtains the test result to current ink according to response message.
Optionally, storage medium is also configured to store the program code for executing following steps:
S1 configures the transmitting ginseng of transmitter before obtaining test packet by User Network Interface simulation input message Number, wherein included at least in emission parameter and use the IP address of end-equipment as virtual source IP address, wherein end-equipment Including at least one of: base station controller, Customer Edge router;
S2 generates the stream matching rule of transmitter according to emission parameter;
Optionally, storage medium is also configured to store the program code for executing following steps:
S1 configures the transmitting ginseng of transmitter before obtaining test packet by User Network Interface simulation input message Number, wherein included at least in emission parameter and use the IP address of end-equipment as virtual purpose IP address, wherein end is set Standby includes at least one of: base station controller, Customer Edge router;
S2 generates the stream matching rule of transmitter according to emission parameter.
Optionally, storage medium is also configured to:
S1 receives message by User Network Interface;
S2, according to the stream matching rule of preconfigured reflector identify message whether be transmitter send test report Text, wherein test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;
S3, when identifying is test packet, response test message generates response message;
S4 sends response message to transmitter.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (23)

1. a kind of link test method characterized by comprising
Test packet is obtained by User Network Interface simulation input message, wherein the test packet is used to use two-way master Test protocol in dynamic measurement agreement TWAMP tests current ink, and the two-way active measurement agreement eliminates TWAMP Control protocol;
The test packet is sent to reflector;
Identify that the reflector responds the response message that the test packet is sent, wherein the response message be pre-configured with Transmitter stream matching rule matching;
The test result to the current ink is obtained according to the response message;
It is described test packet is obtained by User Network Interface simulation input message before, further includes:
Configure the emission parameter of the transmitter, wherein the internet using end-equipment is included at least in the emission parameter Protocol IP address is as virtual source IP address, wherein the transmitter is located in two-layer network device, and the end-equipment includes At least one of: base station controller, Customer Edge router;The stream matching of the transmitter is generated according to the emission parameter Rule;Alternatively,
Configure the emission parameter of the transmitter, wherein the internet using end-equipment is included at least in the emission parameter Protocol IP address is as virtual purpose IP address, wherein the transmitter is located in two-layer network device, the end-equipment packet Include at least one of: base station controller, Customer Edge router;The stream of the transmitter is generated according to the emission parameter With rule.
2. the method according to claim 1, wherein described generate the transmitter according to the emission parameter Flowing matching rule includes:
The stream matching rule of the transmitter is generated according to the message information in the test packet, wherein the transmitter Stream matching rule comprises at least one of the following: source IP address, purpose IP address, source user datagram protocol UDP port number, mesh User Datagram Protocol UDP port number, differentiated services code points DSCP information.
3. the method according to claim 1, wherein being obtained described by User Network Interface simulation input message To before test packet, comprising:
Three layer service virtual interfaces are configured in two-layer equipment where the transmitter, and are configured for the three layer services virtual interface Predetermined IP address, wherein the three layer services virtual interface is used in off-line test, triggers Address Resolution Protocol ARP.
4. the method according to claim 1, wherein the identification reflector responds the test packet hair The response message sent includes:
Receive message;
Parameter matching is carried out to the message received according to the stream matching rule of the transmitter;
In parameter successful match, then determine to identify that the message is the response message that the reflector is sent.
5. the method according to claim 1, wherein described obtain according to the response message to the current chain The test result on road includes:
The test time delay tested the current ink and/or packet loss are obtained according to the response message;
When the test time delay and/or the packet loss meet preset threshold condition, the first warning information is sent.
6. according to the method described in claim 5, it is characterized in that, described obtain according to the response message to the current chain The test time delay that drive test tries includes:
Obtain the following timestamp carried in the response message: the transmitter sends the first time of the test packet Stamp, when the reflector receives the second timestamp of the test packet, the reflector sends the third of the response message Between stab;
Obtain the 4th timestamp of response message described in the transmitter receipt;
It is obtained according to first time stamp, second timestamp, the third timestamp and the 4th timestamp following At least one test time delay: the positive time delay of the current ink, the reversed time delay of the current ink, the current ink Loop time delay.
7. according to the method described in claim 5, it is characterized in that, described obtain according to the response message to the current chain The packet loss that drive test tries includes:
Obtain the packet receiving number that is several and receiving the response message of giving out a contract for a project that the transmitter sends the test packet;
The packet loss is obtained according to the packet receiving number and the difference for giving out a contract for a project several.
8. the method according to claim 1, wherein sending the test packet to reflector in the transmitter Later, further includes:
If not receiving the response message in predetermined period, determine that connected trouble occurs in the current ink, sends second and accuse Alert information.
9. method according to any one of claim 1 to 8, which is characterized in that equipment where the transmitter include with At least one lower: access device, landing equipment, bridging device, equipment where the reflector includes at least one of: access Equipment, landing equipment, bridging device, wherein the bridging device is for connecting two layers of aggregation networks and three layers of core network Equipment.
10. a kind of link test method characterized by comprising
Message is received by User Network Interface;
According to the stream matching rule of preconfigured reflector identify the message whether be transmitter send test packet, In, the test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP, institute It states two-way active measurement agreement and eliminates TWAMP control protocol;
When identifying is the test packet, responds the test packet and generate response message;
The response message is sent to the transmitter;
Before receiving message by User Network Interface, further includes:
Configure the emission parameter of the transmitter, wherein the internet using end-equipment is included at least in the emission parameter Protocol IP address is as virtual source IP address, wherein the transmitter is located in two-layer network device, and the end-equipment includes At least one of: base station controller, Customer Edge router;The stream matching of the transmitter is generated according to the emission parameter Rule;Alternatively,
Configure the emission parameter of the transmitter, wherein the internet using end-equipment is included at least in the emission parameter Protocol IP address is as virtual purpose IP address, wherein the transmitter is located in two-layer network device, the end-equipment packet Include at least one of: base station controller, Customer Edge router;The stream of the transmitter is generated according to the emission parameter With rule.
11. according to the method described in claim 10, it is characterized in that, it is described by User Network Interface receive message it Before, further includes:
Configure the reflection parameters of the reflector;
The stream matching rule of the reflector is generated according to the reflection parameters, wherein the stream matching rule packet of the reflector Include at least one of: source internet protocol IP address, purpose internet protocol address, the end source user datagram protocol UDP Slogan, purpose udp user datagram protocol port numbers, differentiated services code points DSCP information.
12. according to the method described in claim 10, it is characterized in that, described matched according to the stream of preconfigured reflector is advised Then identify whether the message is that the test packet that transmitter is sent includes:
Parameter matching is carried out to the message received according to the stream matching rule of the reflector;
In parameter successful match, then determine to identify that the message is the test packet that the transmitter is sent.
13. a kind of link test method characterized by comprising
Transmitter obtains test packet by the User Network Interface simulation input message of the transmitter, wherein the test Message is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;And it is sent out to reflector The test packet is sent, the two-way active measurement agreement eliminates TWAMP control protocol;
The reflector receives message by the User Network Interface of the reflector;The reflector is according to preconfigured anti- The stream matching rule of emitter identifies whether the message is test packet that the transmitter is sent;It is the test identifying When message, the reflector responds the test packet and generates response message, and sends the response message to the transmitter;
The transmitter identifies the response message that the reflector is sent, wherein the response message and preconfigured institute State the stream matching rule matching of transmitter;The transmitter obtains the test knot to the current ink according to the response message Fruit;
It is described test packet is obtained by User Network Interface simulation input message before, further includes:
Configure the emission parameter of the transmitter, wherein the internet using end-equipment is included at least in the emission parameter Protocol IP address is as virtual source IP address, wherein the transmitter is located in two-layer network device, and the end-equipment includes At least one of: base station controller, Customer Edge router;The stream matching of the transmitter is generated according to the emission parameter Rule;Alternatively,
Configure the emission parameter of the transmitter, wherein the internet using end-equipment is included at least in the emission parameter Protocol IP address is as virtual purpose IP address, wherein the transmitter is located in two-layer network device, the end-equipment packet Include at least one of: base station controller, Customer Edge router;The stream of the transmitter is generated according to the emission parameter With rule.
14. a kind of link test device, which is characterized in that described device is located at transmitter, and described device includes:
Analogue unit, for obtaining test packet by User Network Interface simulation input message, wherein the test packet is used Current ink is tested in using the test protocol in two-way active measurement agreement TWAMP, the two-way active measurement association View eliminates TWAMP control protocol;
First transmission unit, for sending the test packet to reflector;
Recognition unit, the reflector responds the response message that the test packet is sent for identification, wherein the response report It is literary to be matched with the stream matching rule of preconfigured transmitter;
Acquiring unit obtains the test result to the current ink according to the response message;
First configuration unit, for it is described test packet is obtained by User Network Interface simulation input message before, configuration The emission parameter of the transmitter, wherein the Internet protocol IP using end-equipment is included at least in the emission parameter Location is as virtual source IP address, alternatively, use the internet protocol address of end-equipment as virtual purpose IP address, In, the transmitter is located in two-layer network device, and the end-equipment includes at least one of: base station controller, user Edge router;
Generation unit, for generating the stream matching rule of the transmitter according to the emission parameter.
15. device according to claim 14, which is characterized in that the generation unit includes:
Generation module, for generating the stream matching rule of the transmitter according to the message information in the test packet, wherein The stream matching rule of the transmitter comprises at least one of the following: source IP address, purpose IP address, source user datagram protocol UDP port number, purpose User Datagram Protocol UDP port number, differentiated services code points DSCP information.
16. device according to claim 14 characterized by comprising
Second configuration unit, for it is described test packet is obtained by User Network Interface simulation input message before, in institute Two-layer equipment where stating transmitter configures three layer service virtual interfaces, and with configuring predetermined IP for the three layer services virtual interface Location, wherein the three layer services virtual interface is used in off-line test, triggers Address Resolution Protocol ARP.
17. device according to claim 14, which is characterized in that the recognition unit includes:
Receiving module, for receiving message;
Matching module, for carrying out parameter matching to the message received according to the stream matching rule of the transmitter;
Identification module identifies that the message is the described of reflector transmission in parameter successful match, then determining Response message.
18. device according to claim 14, which is characterized in that the acquiring unit includes:
First obtains module, for according to the response message obtain the test time delay that the current ink is tested and/ Or packet loss;
First sending module, for sending first when the test time delay and/or the packet loss meet preset threshold condition Warning information.
19. device according to claim 14, which is characterized in that further include:
Second transmission unit is used for after the transmitter sends the test packet to reflector, in predetermined period not When receiving the response message, determines that connected trouble occurs in the current ink, send the second warning information.
20. device described in any one of 4 to 19 according to claim 1, which is characterized in that equipment where the transmitter includes At least one of: access device, landing equipment, bridging device, equipment where the reflector includes at least one of: being connect Enter equipment, landing equipment, bridging device, wherein the bridging device is for connecting two layers of aggregation networks and three layers of core net The equipment of network.
21. a kind of link test device, which is characterized in that described device is located at reflector, and described device includes:
Receiving unit, for receiving message by User Network Interface;
Recognition unit, for identifying whether the message is that transmitter is sent according to the stream matching rule of preconfigured reflector Test packet, wherein the test packet is used for using the test protocol in two-way active measurement agreement TWAMP to current chain Road is tested, and the two-way active measurement agreement eliminates TWAMP control protocol;
First generation unit generates response message for when identifying is the test packet, responding the test packet;
Transmission unit, for sending the response message to the transmitter
Configuration unit, for configuring the reflection parameters of the reflector before the reception message by User Network Interface;
Second generation unit, for generating the stream matching rule of the reflector according to the reflection parameters, wherein the reflection The stream matching rule of device includes at least one of: source internet protocol IP address, purpose internet protocol address, source user Datagram Protocol UDP port number, purpose User Datagram Protocol UDP port number, differentiated services code points DSCP information.
22. device according to claim 21, which is characterized in that the recognition unit includes:
Matching module, for carrying out parameter matching to the message received according to the stream matching rule of the reflector;
Identification module identifies that the message is the described of transmitter transmission in parameter successful match, then determining Test packet.
23. a kind of link test system characterized by comprising
Equipment where transmitter, wherein the transmitter for performing the following operations: pass through User Network Interface simulation input report Text obtains test packet, wherein the test packet is used for using the test protocol in two-way active measurement agreement TWAMP to working as Preceding link is tested, and the two-way active measurement agreement eliminates TWAMP control protocol, and equipment where transmitter is two layers of net Network equipment;The test packet is sent to reflector;Identify that the reflector responds the response message that the test packet is sent, Wherein, the response message is matched with the stream matching rule of preconfigured transmitter;It is obtained according to the response message to institute State the test result of current ink;
Equipment where the reflector, wherein the reflector for performing the following operations: pass through User Network Interface and receive report Text;According to the stream matching rule of preconfigured reflector identify the message whether be transmitter send test packet, In, the test packet is for testing current ink using the test protocol in two-way active measurement agreement TWAMP;? It identifies when being the test packet, responds the test packet and generate response message;The response is sent to the transmitter Message
The link test system is also used to configure the emission parameter of the transmitter, wherein at least wraps in the emission parameter Include and use the internet protocol address of end-equipment as virtual source IP address, wherein the end-equipment include with down toward It is one of few: base station controller, Customer Edge router;The stream matching rule of the transmitter is generated according to the emission parameter; Alternatively,
The link test system is also used to configure the emission parameter of the transmitter, wherein at least wraps in the emission parameter It includes and uses the internet protocol address of end-equipment as virtual purpose IP address, wherein the end-equipment includes following At least one: base station controller, Customer Edge router;The stream matching rule of the transmitter are generated according to the emission parameter Then.
CN201610398523.5A 2016-06-06 2016-06-06 Link test method and apparatus and system Active CN107465565B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610398523.5A CN107465565B (en) 2016-06-06 2016-06-06 Link test method and apparatus and system
PCT/CN2017/084951 WO2017211169A1 (en) 2016-06-06 2017-05-18 Link testing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610398523.5A CN107465565B (en) 2016-06-06 2016-06-06 Link test method and apparatus and system

Publications (2)

Publication Number Publication Date
CN107465565A CN107465565A (en) 2017-12-12
CN107465565B true CN107465565B (en) 2019-08-30

Family

ID=60544954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610398523.5A Active CN107465565B (en) 2016-06-06 2016-06-06 Link test method and apparatus and system

Country Status (2)

Country Link
CN (1) CN107465565B (en)
WO (1) WO2017211169A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191475B (en) * 2018-02-23 2021-04-27 大唐移动通信设备有限公司 Data processing method and device for base station
CN110233818B (en) * 2018-03-19 2023-05-12 财付通支付科技有限公司 Method, apparatus and computer readable storage medium for testing data message anomaly
EP3614627B1 (en) * 2018-08-20 2021-09-15 EXFO Inc. Telecommunications network and services qoe assessment
US11165677B2 (en) 2018-10-18 2021-11-02 At&T Intellectual Property I, L.P. Packet network performance monitoring
CN110324202B (en) * 2019-05-31 2021-06-22 厦门网宿有限公司 Method and device for detecting line quality
CN110891285B (en) * 2019-12-03 2023-03-21 锐捷网络股份有限公司 Transmitting equipment, reflecting equipment, network performance testing method and system
CN113055240B (en) * 2019-12-27 2022-07-05 中国电信股份有限公司 Message transmission method and device and computer readable storage medium
CN114374999B (en) * 2020-10-15 2024-02-06 大唐移动通信设备有限公司 Test method, test device, electronic equipment and storage medium
CN112333044B (en) * 2020-10-29 2022-07-15 北京锐安科技有限公司 Shunting equipment performance test method, device and system, electronic equipment and medium
CN112737955A (en) * 2020-12-29 2021-04-30 中盈优创资讯科技有限公司 Method and device for regulating and controlling transmission length and time delay of provincial network of operator
CN112822066B (en) * 2020-12-31 2022-03-11 北京浩瀚深度信息技术股份有限公司 Method and system for testing data link of DPI (deep packet inspection) equipment
CN116170333A (en) * 2021-11-25 2023-05-26 华为技术有限公司 Network measurement method and related device
CN114157586A (en) * 2021-12-15 2022-03-08 苏州盛科通信股份有限公司 Method and device for improving TWAMP detection accuracy and storage device
CN114244739A (en) * 2021-12-21 2022-03-25 苏州盛科通信股份有限公司 Method, device and storage medium for improving message statistical accuracy
CN115941537B (en) * 2023-02-16 2023-06-13 信通院(江西)科技创新研究院有限公司 5G terminal consistency test method, system, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307119A (en) * 2011-08-18 2012-01-04 工业和信息化部电信传输研究所 Method for discovering probe failure in Internet performance measurement system
EP2787687A1 (en) * 2013-04-05 2014-10-08 Telefonaktiebolaget L M Ericsson (PUBL) Packet interception and timestamping for error estimation in active measurement protocols
CN105634840A (en) * 2014-10-29 2016-06-01 中兴通讯股份有限公司 Method and device for measuring packet loss
CN105634937A (en) * 2015-12-31 2016-06-01 华为技术有限公司 Processing method and device of message

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013151471A1 (en) * 2012-04-04 2013-10-10 Telefonaktiebolaget L M Ericsson (Publ) Method for scalable measuring of connectivity between two way active measurement protocol (twamp) entities.
US8711708B2 (en) * 2012-07-24 2014-04-29 Accedian Networks Inc. Automatic setup of reflector instances
EP3195529B1 (en) * 2014-09-15 2019-07-24 Telefonaktiebolaget LM Ericsson (publ) Methods and arrangements for active measurements

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307119A (en) * 2011-08-18 2012-01-04 工业和信息化部电信传输研究所 Method for discovering probe failure in Internet performance measurement system
EP2787687A1 (en) * 2013-04-05 2014-10-08 Telefonaktiebolaget L M Ericsson (PUBL) Packet interception and timestamping for error estimation in active measurement protocols
CN105634840A (en) * 2014-10-29 2016-06-01 中兴通讯股份有限公司 Method and device for measuring packet loss
CN105634937A (en) * 2015-12-31 2016-06-01 华为技术有限公司 Processing method and device of message

Also Published As

Publication number Publication date
CN107465565A (en) 2017-12-12
WO2017211169A1 (en) 2017-12-14

Similar Documents

Publication Publication Date Title
CN107465565B (en) Link test method and apparatus and system
CN106130766B (en) System and method for realizing automatic network fault analysis based on SDN technology
CN106100999B (en) Image network flow control methods in a kind of virtualized network environment
CN113079091B (en) Active stream following detection method, network equipment and communication system
CN106130767B (en) System and method for monitoring and solving service path fault
WO2021093692A1 (en) Network quality measurement method and device, server, and computer readable medium
US9325568B2 (en) Technique for determining correlated events in a communication system
EP4007214A1 (en) Software-defined network monitoring and fault localization
WO2021018155A1 (en) Routing information monitoring method and apparatus
WO2018210213A1 (en) Method and device for implementing ioam packaging and storage medium
WO2021093574A1 (en) Network quality detection method and apparatus, network element device, computer device, and computer readable medium
US10999121B2 (en) Service OAM virtualization
EP2503816B1 (en) Method and apparatus for monitoring service quality
CN107342809B (en) Service performance monitoring and fault positioning method and device
KR20210151979A (en) Message detection method, device, and system
CN105227393A (en) A kind of bidirectional forwarding detection (BFD) method
CN110381071A (en) A kind of message transmitting method, device and send method, apparatus
WO2015184740A1 (en) Method and device for processing detection hierarchy information
EP3756413A1 (en) Method and system for controlling an operation of a communication network to reduce latency
US20140293799A1 (en) Method and apparatus for measuring end-to-end service level agreement in service provider network
CN113645058A (en) Network link flow monitoring method, device and system
CN106161124B (en) Message test processing method and device
CN104104548A (en) Network security posture information acquisition system and method based on SFLOW and OWAMP (One Way Active Measurement Protocol)
CN105656751A (en) Layer-2 tunnel building method and system based on SDN
CN107347014A (en) A kind of network fault detecting method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant