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

Link test method and apparatus and system Download PDF

Info

Publication number
CN107465565A
CN107465565A CN201610398523.5A CN201610398523A CN107465565A CN 107465565 A CN107465565 A CN 107465565A CN 201610398523 A CN201610398523 A CN 201610398523A CN 107465565 A CN107465565 A CN 107465565A
Authority
CN
China
Prior art keywords
test
transmitter
message
reflector
equipment
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.)
Granted
Application number
CN201610398523.5A
Other languages
Chinese (zh)
Other versions
CN107465565B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a kind of link test method and apparatus and system.Wherein, this method includes:Test packet is obtained by User Network Interface simulation input message, wherein, test packet is used to test 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 matches with the stream matched rule for the transmitter being pre-configured with;Test result to current ink is obtained according to response message.By the present invention, to solve the problems, such as that testing efficiency when testing network link caused by standard TWAMP agreements deployment difficulty is larger is relatively low, so as to realize the effect for the efficiency for improving TWAMP link tests.

Description

Link test method and apparatus and system
Technical field
The present invention relates to the communications field, in particular to a kind of link test method and apparatus and system.
Background technology
TWAMP agreements (Two-Way Active Measurement Protocol) are a kind of agreements of IP performance metrics, It is mainly used in the performance metrics such as IP network chain-circuit time delay and packet loss.TWAMP agreements are made up of two parts agreement:TWAMP is controlled Agreement (TWAMP-Control) and TWAMP test protocols (TWAMP-Test).TWAMP-Control is mainly used in initializing, opened Dynamic and stopping test session.TWAMP-Test is mainly used in the interactive testing between the end points of test and is grouped, while carries out IP performances Measurement.
TWAMP is generally made up of 4 logic entities, and simple architectural framework is as shown in Figure 1:
1) terminal (Control-Client) is controlled:TWAMP tests originating end, is sent to Server entities and establishes control company Connect request, the communication pattern of negotiation packet, the port numbers of Session-Reflector termination Acceptance Tests messages etc..Control- Client controls the beginning and termination of TWAMP-Test sessions.
2) service end (Server):The company's of the building request sent from Control-Client ends is received, with Control- Client negotiation packets communication pattern, Session-Reflector terminate port numbers of Acceptance Tests message etc..Server end pipes are managed One or more TEAMP-Test sessions.
3) session transmitter (Session-Sender):Sent in TWAMP-Test sessions to Session-Reflector The node of test packet, while the test packet from Session-Reflector reflection meetings is received, and performance information is collected, Statistical test result.
4) session reflector (Session-Reflector):In TWAMP-Test sessions, reception comes from Session- The test packet at Sender ends, 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 Try 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 metrics.
Assuming that the timestamp of giving out a contract for a project of Session-Sender in said process is defined as into T1, packet receiving timestamp is defined as T4, Session-Reflector packet receiving timestamp are defined as T2, timestamp of giving out a contract for a project positioning T3, then can be by with lower section Method calculates the time delay of link.Chain-circuit time delay=(T4-T1)-(T3-T2).
Reflector processing delay=T3-T2.
Forward direction time delay link=T2-T1 (significant in the case of network clocking synchronization, meaningless in the case of other).
Reverse link time delay=T4-T3 (significant in the case of network clocking synchronization, meaningless in the case of other).Assuming that The message number that in test process, Session-Sender ends are sent is defined as TxC by us, receives Session- The message number of Reflector transmittings is defined as RxC, then I entirely can return losing for link by TxC-RxC to calculate Bag number.
Existing TWAMP agreements are a kind of standard agreements of IP network performance metric, in network performance metric, it is necessary to same Shi Yunhang TWAMP control protocols and TWAMP test protocols, this requires disposed equipment to possess operation ICP/IP protocol Ability and IP transfer capabilitys, otherwise, will be relatively difficult when TWAMP will be disposed.However, in the complicated networking such as PTN bearer networks, Possible existing two layers of (L2) business also has three layers of (L3) business in network, such as in typical LTE networkings, as shown in figure 4, access Layer use L2VPN, disposes MPLS-TP L2VPN business, and core layer use L3VPN, deployment MPLS-TP L3VPN business, L2 with L3 business is by carrying out bridge joint intercommunication inside bridging device.
With the continuous improvement to performance index requirements, Virtual network operator is also increasingly paid attention to from L2 access devices to L3 cores The performance of heart landing equipment room whole process link and connective test and monitoring.To be that standard TWAMP is surveyed herein under complicated networking The deployment of examination agreement brings difficult and challenge, main cause as follows:
1) in the L2 networks disposed without IP address, the L2 that the network equipment can not be run in ICP/IP protocol, such as Fig. 4 connects Enter and aggregation networks.Because standard TWAMP agreements are based on ICP/IP protocol, therefore, mark can not be just disposed in L2 networks Quasi- TWAMP agreements carry out that L2 is end-to-end or L2 to L3 end-to-end link performance metrics.
2) even if L2 access devices possess the ability of operation ICP/IP protocol, because each L2 access devices may access greatly Base station controller or CE (Customer Edge) equipment are measured, if with standard TWAMP protocol tests from L2 access devices to L3 cores The heart lands the link performance of 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, on L2 access devices, the IP address resource that can be distributed for it is limited, and this is just Large scale deployment TWAMP detections are made to become abnormal difficult.Meanwhile survey extensive unlatching ICP/IP protocol in L2, it is also possible to right The service traffics of base station controller impact, and influence Consumer's Experience.
3) when large scale deployment standard TWAMP agreements, it is necessary to run TWAMP control protocols and test protocol simultaneously.By Operated in TWAMP test protocols on control protocol, when control protocol exception, test protocol can be caused to terminate, unfavorable survey Agreement long-time uninterrupted test is tried, while is also unfavorable for the control and maintenance of TWAMP test sessions.
4) when some equipment only support TWAMP reflectors, in the case of not supporting TWAMP control protocols, standard TWAMP It can not dispose.
That is, at present to network link carry out IP performance tests when, due to standard TWAMP agreements deployment difficulty compared with Greatly, this will cause link test scope to be very limited, so as to cause the testing efficiency when testing network link The problem of relatively low.
The content of the invention
The embodiments of the invention provide a kind of link test method and apparatus and system, with least solve in correlation technique The problem of testing efficiency is relatively low when testing network link.
According to one embodiment of present invention, there is provided a kind of link test method, including:Pass through User Network Interface mould Intend incoming message and obtain test packet, wherein, above-mentioned test packet is used for using the test in two-way active measurement agreement TWAMP Agreement is tested 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 matches with the stream matched rule for the transmitter being pre-configured with;According to above-mentioned Response message obtains the test result to above-mentioned current ink.
Alternatively, before test packet is obtained above by User Network Interface simulation input message, in addition to:Configuration The emission parameter of above-mentioned transmitter, wherein, the Internet protocol using end-equipment is comprised at least in above-mentioned emission parameter (Internet Protocol) IP address as virtual source IP address, wherein, above-mentioned end equipment includes at least one of: Base station controller, Customer Edge router;The stream matched rule of above-mentioned transmitter is generated according to above-mentioned emission parameter;Or match somebody with somebody The emission parameter of above-mentioned transmitter is put, wherein, the Internet protocol IP using end-equipment is comprised at least in above-mentioned emission parameter Address as virtual purpose IP address, wherein, above-mentioned end equipment includes at least one of:Base station controller, customer edge Router;The stream matched rule of above-mentioned transmitter is generated according to above-mentioned emission parameter.
Alternatively, the above-mentioned stream matched rule that above-mentioned transmitter is generated according to above-mentioned emission parameter includes:According to above-mentioned survey The stream matched rule that the message information in message generates above-mentioned transmitter is tried, wherein, the stream matched 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.
Alternatively, before test packet is obtained above by User Network Interface simulation input message, including:Above-mentioned Two-layer equipment where transmitter configures three layer service virtual interfaces, and for above-mentioned three layer services virtual interface with configuring predetermined IP Location, wherein, above-mentioned three layer services virtual interface is used in off-line test, triggers ARP.
Alternatively, the above-mentioned reflector of above-mentioned identification responds the response message that above-mentioned test packet is sent and included:Receive message; Parameter matching is carried out to the above-mentioned message received according to the stream matched rule of above-mentioned transmitter;When the match is successful for parameter, then Judge to identify that above-mentioned message is the above-mentioned response message that above-mentioned reflector is sent.
Alternatively, above-mentioned obtained according to above-mentioned response message includes to the test result of above-mentioned current ink:According to above-mentioned Test time delay and/or the packet loss that response message acquisition is tested to obtain to above-mentioned current ink;Above-mentioned test time delay and/or on When stating packet loss and meeting preset threshold condition, the first warning information is sent.
Alternatively, the above-mentioned test time delay for testing to obtain to above-mentioned current ink that obtained according to above-mentioned response message includes: Obtain the following timestamp carried in above-mentioned response message:Above-mentioned transmitter send above-mentioned test packet very first time stamp, on State the 3rd timestamp that reflector receives the second timestamp of above-mentioned test packet, above-mentioned reflector sends above-mentioned response message; Obtain the 4th timestamp of the above-mentioned response message of above-mentioned transmitter receipt;According to stamp of the above-mentioned very first time, above-mentioned second timestamp, Above-mentioned 3rd timestamp and above-mentioned 4th timestamp obtain following at least one test time delay:During the forward direction of above-mentioned current ink Prolong, the reverse time delay of above-mentioned current ink, the loop time delay of above-mentioned current ink.
Alternatively, the above-mentioned packet loss for testing to obtain to above-mentioned current ink that obtained according to above-mentioned response message includes:Obtain Take above-mentioned transmitter to send giving out a contract for a project for above-mentioned test packet and count 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.
Alternatively, after above-mentioned transmitter sends above-mentioned test packet to reflector, in addition to:If in predetermined period not Above-mentioned response message is received, then judges that connected trouble occurs in above-mentioned current ink, sends the second warning information.
Alternatively, 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, including:Connect by user network Mouth receives message;Identify whether above-mentioned message is test that transmitter is sent according to the stream matched rule for the reflector being pre-configured with 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 it is above-mentioned test packet to identify, above-mentioned test packet generation response message is responded;Sent to above-mentioned transmitter State response message.
Alternatively, before message is received above by User Network Interface, in addition to:Configure the reflection of above-mentioned reflector Parameter;The stream matched rule of above-mentioned reflector is generated according to above-mentioned reflection parameters, wherein, the stream matched rule bag of above-mentioned reflector Include at least one of:Source internet protocol IP address, purpose internet protocol address, source user datagram protocol UDP ends Slogan, purpose udp user datagram protocol port numbers, differentiated services code points DSCP information.
Alternatively, the stream matched rule for the reflector that above-mentioned basis is pre-configured with identifies whether above-mentioned message is transmitter hair The test packet sent includes:Parameter matching is carried out to the above-mentioned message received according to the stream matched rule of above-mentioned reflector; Parameter then judges to identify that above-mentioned message is the above-mentioned test packet that above-mentioned transmitter is sent when the match is successful.
According to still another embodiment of the invention, a kind of link test method is additionally provided, including: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-direction, main Test protocol in dynamic measurement agreement TWAMP is tested current ink;And send above-mentioned test packet 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 the reflector being pre-configured with Matched rule identifies whether above-mentioned message is test packet that above-mentioned transmitter is sent;When it is above-mentioned test packet to identify, Above-mentioned reflector responds above-mentioned test packet generation 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 the above-mentioned transmitter that is pre-configured with Flow matched 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, said apparatus is located at transmitter, Said apparatus includes:Analogue unit, for obtaining test packet by User Network Interface simulation input message, wherein, it is above-mentioned Test packet is used to test 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, for identifying that above-mentioned reflector responds above-mentioned test packet The response message of transmission, wherein, above-mentioned response message matches with the stream matched rule for the transmitter being pre-configured with;Acquiring unit, Test result to above-mentioned current ink is obtained according to above-mentioned response message.
Alternatively, in addition to:First dispensing 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, comprised at least in above-mentioned emission parameter and use end-equipment Internet protocol address as virtual source IP address, or, using end-equipment internet protocol address be used as it is empty Intend purpose IP address, wherein, above-mentioned end equipment includes at least one of:Base station controller, Customer Edge router;Generation Unit, for generating the stream matched rule of above-mentioned transmitter according to above-mentioned emission parameter.
Alternatively, above-mentioned generation unit includes:Generation module, for the message information generation in above-mentioned test packet The stream matched rule of above-mentioned transmitter, wherein, the stream matched rule of above-mentioned transmitter includes following at least one:Source IP address, Purpose IP address, source user datagram protocol UDP port number, purpose UDP UDP port number, differential service code Point DSCP information.
Alternatively, in addition to:Second dispensing unit, for being obtained above by User Network Interface simulation input message Before test packet, the two-layer equipment where above-mentioned transmitter configures three layer service virtual interfaces, and empty for above-mentioned three layer service Intend interface and configure predetermined IP address, wherein, above-mentioned three layer services virtual interface is used in off-line test, triggering address resolution association Discuss ARP.
Alternatively, above-mentioned recognition unit includes:Receiving module, for receiving message;Matching module, for according to above-mentioned hair The stream matched rule of emitter carries out parameter matching to the above-mentioned message received;Identification module, for when the match is successful for parameter, Then judge to identify that above-mentioned message is the above-mentioned response message that above-mentioned reflector is sent.
Alternatively, above-mentioned acquiring unit includes:First acquisition module, work as being obtained according to 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.
Alternatively, in addition to:Second transmitting element, for above-mentioned transmitter to reflector send above-mentioned test packet it Afterwards, when not receiving above-mentioned response message in predetermined period, judge that connected trouble occurs in above-mentioned current ink, send the second alarm Information.
Alternatively, 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, said apparatus is located at reflector, Said apparatus includes:Receiving unit, for receiving message by User Network Interface;Recognition unit, it is pre-configured with for basis The stream matched rule of reflector identify whether above-mentioned message is test packet that transmitter is sent, wherein, above-mentioned test packet For being tested using the test protocol in two-way active measurement agreement TWAMP current ink;First generation unit, is used for When it is above-mentioned test packet to identify, above-mentioned test packet generation response message is responded;Transmitting element, for above-mentioned transmitting Device sends above-mentioned response message.
Alternatively, in addition to:Dispensing unit, for above by User Network Interface receive message before, 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 matched 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 UDP UDP port number, differential service code Point DSCP information.
Alternatively, above-mentioned recognition unit includes:Matching module, for the stream matched rule according to above-mentioned reflector to receiving The above-mentioned message arrived carries out parameter matching;Identification module, for when the match is successful for parameter, then judging 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 system is additionally provided, including:Set where transmitter It is standby, wherein, above-mentioned transmitter is used to perform following operation:Test packet is obtained by User Network Interface simulation input message, Wherein, above-mentioned test packet is used to test 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 The stream matched rule that response message is stated with the transmitter being pre-configured with matches;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 is used to perform following operation:Pass through user network Interface message;Identify whether above-mentioned message is survey that transmitter is sent according to the stream matched rule for the reflector being pre-configured with Message is tried, wherein, above-mentioned test packet is used to enter current ink using the test protocol in two-way active measurement agreement TWAMP Row test;When it is above-mentioned test packet to identify, above-mentioned test packet generation response message is responded;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 arranged to storage and used In the program code for performing following steps:Message is received by User Network Interface;According to the stream for the reflector being pre-configured with Identify whether above-mentioned message is test packet that transmitter is sent with rule, wherein, above-mentioned test packet is used to use two-direction, main Test protocol in dynamic measurement agreement TWAMP is tested current ink;When it is above-mentioned test packet to identify, in response State test packet generation response message;Above-mentioned response message is sent to above-mentioned transmitter.
By the present invention, by using the test protocol in the two-way active measurement agreement TWAMP only retained to current chain Road is tested, and will cause standard TWAMP agreement lightweights, not only relieves dependence of the TWAMP tests to ICP/IP protocol, with IP address is reduced to the limitation using the progress link test of TWAMP agreements.But also TWAMP controls association can not be supported at some , can also be by disposing test of the above-mentioned TWAMP test protocols completion to network link in the equipment of view.Widened so as to reach TWAMP tests the test scope to network link, improves versatility and the flexibility of test, and then improve TWAMP links The efficiency of test.
Further, when carrying out link test by large scale deployment TWAMP agreements, can also avoid running simultaneously TWAMP control protocols and test protocol.To avoid when control protocol exception, test protocol is stopped incessantly, is more conducive to Effective maintenance to test session.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the simple articulator composition of TWAMP agreements in correlation technique;
Fig. 2 is Sender-Test messages encapsulation format figure under non-authentication pattern in correlation technique;
Fig. 3 is Reflector-Test messages encapsulation format figure under non-authentication pattern in correlation technique;
Fig. 4 is typical LTE networkings and the end-to-end detects schematic diagram of business in correlation technique;
Fig. 5 is the simple articulator composition according to a kind of optional TWAMP of alternative embodiment of the present invention;
Fig. 6 is the flow chart according to a kind of optional link test method of alternative embodiment of the present invention;
Fig. 7 is the schematic diagram according to a kind of optional link test method of alternative embodiment of the present invention;
Fig. 8 is the schematic diagram for separately planting optional link test method according to alternative embodiment of the present invention;
Fig. 9 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 10 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 11 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 12 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 13 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 14 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 15 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 16 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 17 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 18 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 19 is the schematic diagram according to another optional link test method of alternative embodiment of the present invention;
Figure 20 is the schematic diagram according to another optional link test device of alternative embodiment of the present invention;
Figure 21 is the schematic diagram according to the optional link test device of another kind of alternative embodiment of the present invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.
Embodiment 1
In order to solve the problems, such as due to standard TWAMP agreements are disposed in complicated networking when run into, the embodiment of the present invention carries A kind of scheme that link test is realized based on lightweight TWAMP test protocols 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 agreements, only retain test protocol so that standard TWAMP agreement lightweights, so as to relieve TWAMP Dependence to ICP/IP protocol.When disposing TWAMP agreements during link test, no longer have without IP planning or IP address resource The limitation of limit, while causing test protocol deployment more flexibly and fast, the application scenarios scope of link test is expanded, is entered And realize the effect for improving the testing efficiency to network link test.
A kind of link test method is provided in the present embodiment.Fig. 6 is that one kind according to embodiments of the present invention is optional The flow chart of link test method, as shown in fig. 6, the flow comprises the following steps:
S602, test packet is obtained by User Network Interface simulation input message, wherein, test packet is used for using double Test protocol into active measurement agreement TWAMP is tested current ink;
S604, test packet is sent to reflector;
S606, the response message that perception reflex device response test message is sent, wherein, response message and the hair being pre-configured with The stream matched rule matching of emitter;
S608, the test result to current ink is obtained according to response message.
Alternatively, in the present embodiment, above-mentioned link test method can be, but not limited to be applied to the chain drive test shown in Fig. 5 In test system, in the session transmitter applied to the control terminal in said system.Wherein, the session transmitting in terminal is controlled Device (i.e. transmitter) obtains test packet by the User Network Interface simulation input message of transmitter, wherein, test packet is used Test protocol in using two-way active measurement agreement TWAMP is tested current ink;And the session to service end is anti- Emitter (i.e. reflector) sends test packet;Reflector receives message by the User Network Interface of reflector;Reflector according to The reflector being pre-configured with stream matched rule identification message whether be transmitter send test packet;It is test identifying During message, reflector response test message generation response message, and send response message to transmitter;Transmitter identifies reflection The response message that device is sent, wherein, response message matches with the stream matched rule for the transmitter being pre-configured with;Transmitter according to should Answer test result of the Receive message to current ink.
Alternatively, in the present embodiment, TWAMP of the above-mentioned link test method used in test process can with but not It is limited to:Eliminate in the two-way active measurement agreement of standard (Two-Way ActiveMeasurement Protocol, TWAMP) Control protocol, only retain test protocol.That is, in the present embodiment, it is pre- in transmitter and reflector arrangement according to TWAMP First generation test stream matched rule;TWAMP transmitters pass through the Customer Premises Network interface (uni interface) of transmitter, analog subscriber Enter to message, test packet is sent to reflector;Reflector identifies that transmitter sends test packet according to stream matched rule, and Response message is generated, is sent to transmitter;Transmitter identifies the response message of reflector transmission, and root according to stream matched rule The test result of current ink is obtained according to response message.By using the test protocol in light-weighted TWAMP, to relieve Dependences of the TWAMP to ICP/IP protocol, and the limitation during deployment of standard TWAMP agreements to network scenarios.It is cleverer so as to realize Ground living agreement deployment, and then ensure the link under different scenes in network environment to can be achieved flexibly test, 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 obtained to message (incoming message), further, because 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 packets and business report Text, in the present embodiment, by automatically generating stream matched rule in transmitter, to ensure accurately to distinguish from the message transmitted Test packet, so as to prevent TWAMP test packets from being forwarded with service traffics, reduce influence of the test process to service traffics.
Specifically, so that shown in Fig. 4, Access Layer uses L2VPN, disposes the multiprotocol label switching towards transmission (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 Connect device interior and carry out bridge joint intercommunication.Assuming that transmitter is arranged in the access device of Access Layer, reflector sets core layer Land in equipment, in embodiments of the present invention, can be, but not limited to set TWAMP message flows in transmitter and reflector respectively With rule, and it is issued in each self-corresponding apparatus for forwarding message, when receiving message, apparatus for forwarding message is according to configuration Stream matched rule can identify the message, and link performance degree is carried out to the test packet (or response message) identified so as 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 is tested current ink, will cause standard TWAMP agreement lightweights, not only relieves TWAMP tests to TCP/ The dependence of IP agreement, to reduce IP address to the limitation using the progress link test of TWAMP agreements.But also can be at some not , can also be by disposing survey of the above-mentioned TWAMP test protocols completion to network link in the equipment for supporting TWAMP control protocols Examination.Test scope of the TWAMP tests to network link is widened so as to reach, improves versatility and the flexibility of test, Jin Erda To the efficiency for improving TWAMP link tests.Further, when carrying out link test by large scale deployment TWAMP agreements, may be used also To avoid running TWAMP control protocols and test protocol simultaneously.To avoid when control protocol exception, test protocol is uninterrupted Ground stops, more conducively effective maintenance to test session.
Alternatively, in the present embodiment, before test packet is obtained by User Network Interface simulation input message, also Including at least one of:
1) emission parameter of transmitter is configured, wherein, comprise at least in emission parameter and made 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 matched rule of parameter generation transmitter;
2) emission parameter of transmitter is configured, wherein, comprise at least in emission parameter and made 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 Emission parameter generates the stream matched rule of transmitter.
It should be noted that TWAMP test packets are identified by being then based on flowing matched rule, when access device is without IP During 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 in transmitter positioned at landing equipment (such as three layers of core net Network equipment, i.e. L3 equipment) or during bridging device, the IP address of above-mentioned borrow end-equipment will be as mode 2) in virtual purpose IP address.
Alternatively, in the present embodiment, above-mentioned link test method can not only realize online link test, 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 ARP, so that under off-line state, can also obtain Corresponding MAC Address.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.A, disposed between B device L2VPN business, B, C equipment room deployment L3VPN business.If will be between access device (A equipment) and landing equipment (C equipment) When disposing TWAMP tests, 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), so as to cause by reflector after response message is received The response message beamed back can not reach access device (A equipment), so as to cause test not succeed.Therefore, in the present embodiment, Can be by being pre-configured with L3VI interfaces, and the IP address of the interface is configured, by the triggering gratuitous ARP study of L3VI interfaces so that In off-line test, bridging device can obtain the MAC Address of access device (A equipment).
Alternatively, in the present embodiment, obtained according to response message includes to the test result of current ink:According to response Test time delay and/or the packet loss that Receive message is tested to obtain to current ink;Meet in test time delay and/or packet loss default During threshold condition, the first warning information is sent.
Alternatively, in the present embodiment, after test packet is sent to reflector, in addition to:If in predetermined period not Response message is received, then judges 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 is carried out to current ink TWAMP tests can be the test to connectivity of link or the performance test to link.
Wherein, the test to connectivity of link can include but is not limited to following at least one mode:
1) by judging whether receive response message in predetermined period, to judge whether current ink connects;
2) by judging whether packet loss is more than predetermined threshold, to judge whether current ink connects.
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.
, can be as needed to prevent performance statistics from being impacted to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP only carries out continuity testing, when link has packet loss or packet loss of link thresholding to reach certain During value, loss of connectivity is reported to alert.
In addition, the performance test to link can include but is not limited to:During according to testing obtained test to current ink Prolong and/or packet loss;The failure that analysis current ink occurs, with the warning information according to corresponding to the failure transmission analyzed.
Specifically illustrated with reference to the example below, scene as shown in Figure 7, wherein, A equipment is L2 access devices, and B device is Bridging device, it is responsible for L2 business and L3 business carrying out bridge joint intercommunication, C equipment is that L3 core nets land equipment, and D equipment is base station Controller (not shown), it is connected with A equipment.A, L2VPN business, B, C equipment room deployment L3VPN business are disposed between B device. If to dispose TWAMP measurements before access device A and bridge joint landing equipment C, if initiating to survey from L2 access devices A Amount, specific embodiment are as follows:
S1, in A device configuration lightweight TWAMP test emitters, specify source IP, purpose IP, source UDP port number, purpose 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 matched rules are generated, are handed down to apparatus for forwarding message.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 bridging device B MAC Address, is needed if not specifying Specify next-hop gateway address.It should be noted that the virtual IP address not traffic affecting L2 handling processes borrowed.
S2, reflector is tested in C device configuration lightweights TWAMP, specify source IP, the purpose IP of the reflector, source UDP ends 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 Into reflector TWAMP message flow matched rules, apparatus for forwarding message is handed down to.One reflector stream matched rule, can be matched One TWAMP test stream, can also match a plurality of TWAMP tests stream.
S3, in 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), test packet (Sender-Test Packet) is sent 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 UNI apparatus for forwarding message, first basis The stream matched rule issued before carries out message matching, if the match is successful, then it is assumed that be lightweight TWAMP Sender- Test test packets, C equipment lightweight TWAMP reflectors generation 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 messages is carried in Reflector-Test messages, is taken simultaneously Packet receiving time stamp T 2 with Reflector-Test test packets and time stamp T 3 of giving out a contract for a project.If matching is unsuccessful, then it is assumed that is Service message, continue to E-Packet according to forwarding rule.
S5, in transmitter, after A equipment UNI sides apparatus for forwarding message receives message, the stream matching first issued before is advised Message matching is then carried out, if the match is successful, then it is assumed that be the Reflector-Test tests that lightweight TWAMP reflectors are sent Message, TWAMP protocol process module carries out packet receiving counting (RxC) statistics, while is parsed from Reflector-Test messages Packet receiving time stamp T 2 and the timestamp of giving out a contract for a project of give out a contract for a project time stamp T 1 and the Reflector-Test messages of Sender-Test messages T3, then carry out the link performances such as packet loss, positive time delay, reverse time delay, loopback delay statistics.
S6, when A end equipments need to carry out connectivity of link test, TWAMP protocol process module starts detection of connectivity, After transmitter has sent Sender-Test test packets, the Reflector- that reflector is reflected back is not received in one section of cycle Test test packets, then it is assumed that connectivity of link failure, send connectedness and alert to user.When chain-circuit time delay or packet loss reach Threshold Crossing Alert is reported during default threshold value.User carries out subsequent treatment as needed.
The embodiment provided by the application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement is tested current ink, will cause standard TWAMP agreement lightweights, not only relieves TWAMP tests to TCP/IP The dependence of agreement, to reduce IP address to the limitation using the progress link test of TWAMP agreements.But also it can not propped up at some , can also be by disposing test of the above-mentioned TWAMP test protocols completion to network link in the equipment for holding TWAMP control protocols. TWAMP tests are widened to the test scope of network link so as to reach, and improve versatility and the flexibility of test, and then carry The efficiency of high TWAMP link tests.Further, when carrying out link test by large scale deployment TWAMP agreements, can also keep away Exempt to run TWAMP control protocols and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, effective maintenance more conducively to test session.
As a kind of optional scheme, before test packet is obtained by User Network Interface simulation input message, go back Including:
1) emission parameter of transmitter is configured, wherein, comprise at least in emission parameter and made 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 matched rule of parameter generation transmitter;Or
2) emission parameter of transmitter is configured, wherein, comprise at least in emission parameter and made 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 Emission parameter generates the stream matched rule of transmitter.
It should be noted that TWAMP test packets are identified by being then based on flowing matched rule, when access device is without IP During 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 positioned 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.
Alternatively, in the present embodiment, the stream matched rule of transmitter is generated according to emission parameter to be included:Reported according to test The stream matched rule of message information generation transmitter in text, wherein, the stream matched rule of transmitter includes following at least one: Source IP address, purpose IP address, source UDP port number, purpose UDP port number, differentiated services code points DSCP information.
The embodiment provided by the application, by using borrow end-equipment IP address as virtual ip address, To overcome in the prior art without IP planning or situations such as IP resource-constraineds, test and limit caused by testing TWAMP, so as to realize Release in link test, dependence when TWAMP is disposed to TCP/IP.And then extension test scope, improve testing efficiency Purpose.
As a kind of optional scheme, before test packet is obtained by User Network Interface simulation input message, bag Include:
S1, the two-layer equipment where transmitter configures three layer service virtual interfaces, and is configured for three layer service virtual interfaces Predetermined IP address, wherein, three layer service virtual interfaces are used in off-line test, trigger ARP.
It should be noted that because in off-line test, bridging device possibly can not obtain the MAC of transmitter place equipment Address, so as to cause the response message for being reflected back toward test packet can not reach transmitter place equipment.Therefore, in the present embodiment In, it is necessary to device configuration L3VI interfaces and configure the interface IP address where TWAMP transmitters, triggered by L3VI interfaces free ARP learns so that the MAC Address of equipment where bridging device can obtain transmitter.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.A, disposed between B device L2VPN business, B, C equipment room deployment L3VPN business.
If TWAMP tests are disposed between access device (A equipment) and landing equipment (C equipment), 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 Will be by being pre-configured with L3VI interfaces, and the IP address of the interface is configured, triggering gratuitous ARP study so that bridging device is returning Return before response message, can learn to obtain the MAC Address of access device (A equipment).
The embodiment provided by the application, by completing TWAMP tests under off-line state, further ensure test Efficiency.
As a kind of optional scheme, the response message that reception reflector response test message is sent includes:
S1, receive message;
S2, parameter matching is carried out to the message received according to the stream matched rule of transmitter;
S3, when the match is successful for parameter, then judge the response message that identification outgoing packet sends for reflector.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.A, disposed between B device L2VPN business, B, C equipment room deployment L3VPN business.
After C equipment receives message by UNI apparatus for forwarding message, the stream matched rule first issued before is reported Text matching, if the match is successful, then it is assumed that it is lightweight TWAMP Sender-Test test packets, C equipment lightweights 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 messages is carried in Test messages, while carries Reflector-Test test packets Packet receiving time stamp T 2 and time stamp T 3 of giving out a contract for a project.If matching is unsuccessful, then it is assumed that is service message, is continued according to forwarding rule E-Packet.
The embodiment provided by the application, by pre-configured stream matched rule, realize to service message and test report Literary (and response message) accurately distinguishes, so as to reach the influence for reducing test process to service traffics.
As a kind of optional scheme, obtained according to response message includes to the test result of current ink:
S1, test time delay and/or the packet loss for testing to obtain to current ink according to response message acquisition;
S2, when testing time delay and/or packet loss meets preset threshold condition, send the first warning information.
Alternatively, in the present embodiment, the test time delay for testing to obtain to current ink is obtained according to response message to be included: Obtain the following timestamp carried in response message:Very first time stamp T1, the reflector that transmitter sends test packet are received and surveyed Try message the second time stamp T-, reflector send response message the 3rd time stamp T 3;Obtain transmitter receipt response message The 4th time stamp T 4;Stabbed according to the very first time, the second timestamp, the 3rd timestamp and the 4th timestamp obtain following at least one Kind test time delay:The positive time delay of current ink, the reverse time delay of current ink, the loop time delay of current ink.
Wherein, positive time delay can be, but not limited to as T2-T1, and reverse time delay can be, but not limited to as T4-T3, at reflector Reason time delay can be, but not limited to can be, but not limited to as (T4-T1)-(T3-T2) for T3-T2, loop time delay.
Alternatively, in the present embodiment, the packet loss for testing to obtain to current ink is obtained according to response message to be included:Obtain 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 for TxC-RxC, packet loss can be determined according to the number of dropped packets, for example, packet loss Rate is (TxC-RxC)/TxC.
As a kind of optional scheme, after test packet is sent to reflector, in addition to:
S1, if not receiving response message in predetermined period, judge that connected trouble occurs in current ink, send the second alarm Information.
The embodiment provided by the application, after large scale deployment lightweight TWAMP, to prevent performance statistics to business Flow impacts, and can close the performance statisticses 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 include 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 devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.In this example, it is above-mentioned Method of testing can apply to the lateral L3 sides of L2 and actively initiate access device end to landing equipment end in linear link test Cheng Zhong, the lateral L3 sides of L2 can also be applied to and actively initiate segmentation (i.e. access device end to bridging device end) in downlink survey During examination, the lateral L3 sides of L2 can also be applied to and actively initiate segmentation (i.e. bridging device end to landing equipment end) in linear chain During drive test examination.
For example, in this example, above-mentioned method of testing can apply in L2VPN networks survey in downlink end to end During examination.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.In this example, it is above-mentioned Method of testing can apply to the lateral L2 sides of L3 and actively initiate access device end to landing equipment end in linear link test Cheng Zhong, the lateral L2 sides of L3 can also be applied to and actively initiate segmentation (i.e. bridging device end to access device end) in downlink survey During examination, the lateral L2 sides of L3 can also be applied to and actively initiate segmentation (landing equipment end to bridging device end) in linear chain During drive test examination.
For example, in this example, above-mentioned method of testing can apply in L3VPN networks survey in downlink end to end During examination.
It can specifically be illustrated with reference to the example below:
As a kind of optional example 1):End-to-end on-line performance measurement is actively initiated in the lateral L3 sides of L2, such as Fig. 8 institutes Show.It is in the case where business is online, TWAMP measurements is actively initiated by L2 access devices, real-time collecting statistics is linked into from L2 The performance metrics such as L3 landing equipment rooms chain-circuit time delay, packet loss.Mainly include following steps:
S1, such as the mode described in above-mentioned embodiment, in core landing equipment C deployment lightweight TWAMP reflectors, and refer to Determine source IP address, the purpose IP address of reflector, source UDP port number, the optional parameters such as purpose UDP port number, message DSCP.
S2, lightweight TWAMP transmitters are disposed on access device A, and with specifying the source IP address of transmitter, purpose IP Location, source UDP port number, the optional parameters such as purpose UDP port number, source MAC, target MAC (Media Access Control) address.Pay attention to, 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, the MAC Address is bridge joint Equipment B MAC Address, otherwise, it is necessary to specify next-hop gateway address.
S3, TWAMP tests are sent out in device A.
S4, such as the mode described in above-mentioned embodiment, A equipment TWAMP transmitters, by uni interface, analog subscriber enter to Message, test packet is sent to C equipment.
S5, such as the mode described in above-mentioned embodiment, in the UNI sides of C equipment, apparatus for forwarding message is according to TWAMP streams With rule, TWAMP test packets are matched, and generates reflection report and is sent to A equipment.
S6, such as the mode described in above-mentioned embodiment, in the UNI sides of A equipment, apparatus for forwarding message is according to TWAMP streams With rule, after matching TWAMP test packets, message is delivered into the processing of TWAMP protocol modules, TWAMP protocol process module enters Row packet loss and delay statistics.
S7,, can be according to need to prevent performance statistics from being impacted to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP only carries out continuity testing, when link packet drop rate reaches default threshold value, Report connective Threshold Crossing Alert;Or when not receiving any response message in some cycles, loss of connectivity is reported to alert.
As a kind of optional example 2):End-to-end on-line performance measurement is actively initiated in the lateral L2 sides of L3, such as Fig. 9 institutes Show, be in the case where business is online, TWAMP measurements actively initiated by L3 cores landing equipment, real-time collecting statistics falls from L3 Ground equipment is to the performance metric such as chain-circuit time delay packet loss between L2 access devices.Mainly include following steps:
S1, such as the mode described in above-mentioned embodiment, lightweight TWAMP reflectors are disposed in L2 access devices A, and specify The source IP address of reflector, purpose IP address, source UDP port number, the parameter such as purpose UDP port number, message DSCP.
S2, lightweight TWAMP transmitters are disposed on L3 cores landing equipment C, and specify source IP address, the mesh of transmitter IP address, source UDP port number, the parameter such as purpose UDP port number, message DSCP.Pay attention to, purpose IP address herein is base station Or CE IP address of equipment, source address are that L3 lands IP address of equipment.
S3, TWAMP tests are sent out on equipment C.
S4, such as the mode described in above-mentioned embodiment, C equipment TWAMP transmitters, by uni interface, analog subscriber enter to Message, test packet is sent to A equipment.
S5, such as the mode described in above-mentioned embodiment, in the L2UNI sides of A equipment, apparatus for forwarding message flows according to TWAMP Matched rule, TWAMP test packets are matched, and generate reflection report and be sent to C equipment.
S6, such as the mode described in above-mentioned embodiment, in the L3UNI sides of C equipment, apparatus for forwarding message flows according to TWAMP Matched rule, after matching TWAMP test packets, message is delivered into the processing of TWAMP protocol modules, TWAMP protocol process module Carry out packet loss and delay statistics.
S7,, can be according to need to prevent performance statistics from being impacted to service traffics after C equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP only carries out continuity testing, when link packet drop rate reaches default threshold value, Report connective Threshold Crossing Alert;Or when not receiving any response message in some cycles, loss of connectivity is reported to alert.
As a kind of optional example 3):End-to-end offline performance measurement is actively initiated in the lateral L3 sides of L2, such as Figure 10 institutes Show, be in the case where business is offline or before business is reached the standard grade, TWAMP measurements are actively initiated by L2 access devices, received in real time Collection statistics is linked into the performance metrics such as L3 landing equipment room chain-circuit time delay packet losses from L2.Mainly include following steps:
S1, such as the mode described in above-mentioned embodiment, in core landing equipment C deployment lightweight TWAMP reflectors, and refer to Determine source IP address, the purpose IP address of reflector, source UDP port number, the parameter such as purpose UDP port number, message DSCP.
S2, lightweight TWAMP transmitters are disposed on access device A, and with specifying the source IP address of transmitter, purpose IP Location, source UDP port number, the parameter such as purpose UDP port number, source MAC, target MAC (Media Access Control) address.Pay attention to, source IP address herein can be with What is borrowed is that base station IP address can also be L3vi interface IP address, and destination address is that L3 lands IP address of equipment.When specified mesh MAC when, the MAC Address is bridging device B MAC Address, otherwise, it is necessary to specify next-hop gateway address.
S3, due to being off-line test, bridging device possibly can not obtain access device A MAC Address, anti-so as to cause The test packet being emitted back towards can not reach transmitter, so as to cause test not succeed, therefore, before test, it is necessary to which TWAMP is sent out Emitter triggering gratuitous ARP study so that bridging device can learn the MAC Address to access device.Or in L2 access devices Configuration L3VI interfaces simultaneously configure the interface IP address, trigger ARP study by three layers of L3VI interfaces so that bridging device can obtain L2 access device MAC Address.
S4, TWAMP tests are sent out in device A.
S5, such as the mode described in above-mentioned embodiment, A equipment TWAMP transmitters, by uni interface, analog subscriber enter to Message, test packet is sent to C equipment.
Modes of the S6 as described in above-mentioned embodiment, in the UNI sides of C equipment, apparatus for forwarding message flows according to TWAMP to be matched Rule, TWAMP test packets are matched, and generate reflection report and be sent to A equipment.
S7, such as the mode described in above-mentioned embodiment, in the UNI sides of A equipment, apparatus for forwarding message is according to TWAMP streams With rule, after matching TWAMP test packets, message is delivered into the processing of TWAMP protocol modules, TWAMP protocol process module enters Row packet loss and delay statistics.
S8,, can be according to need to prevent performance statistics from being impacted to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP values carry out continuity testing, when link packet drop rate reaches default threshold value, Report connective Threshold Crossing Alert;Or when not receiving any response message in some cycles, loss of connectivity is reported to alert.
As a kind of optional example 4):End-to-end offline performance measurement is actively initiated in the lateral L2 sides of L3, such as Figure 11 institutes Show, be in the case where business is offline or before business is reached the standard grade, TWAMP measurements are actively initiated by L3 cores landing equipment, it is real When collect statistics and land equipment to the performance metric such as chain-circuit time delay packet loss L2 access devices from L3.Mainly include following step Suddenly:
S1, such as the mode described in above-mentioned embodiment, lightweight TWAMP reflectors are disposed in L2 access devices A, and specify The source IP address of reflector, purpose IP address, source UDP port number, the parameter such as purpose UDP port number, message DSCP.
S2, lightweight TWAMP transmitters are disposed on core landing equipment C, and specify the source IP address of transmitter, purpose IP address, source UDP port number, the parameter such as purpose UDP port number, message DSCP.Pay attention to, 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 access device A MAC Address, so as to cause to launch The test packet that device is sent can not reach reflector, so as to cause test not succeed, therefore, before test, it is necessary to TWAMP Reflector triggering gratuitous ARP study so that bridging device can learn the MAC Address to access device.Or set in L2 accesses Standby configuration L3VI interfaces simultaneously configure the interface IP address, trigger ARP study by three layers of L3VI interfaces so that bridging device can obtain Take L2 access device MAC Address.
S4, TWAMP tests are sent out on equipment C.
S5, such as the mode described in above-mentioned embodiment, C equipment TWAMP transmitters, by uni interface, analog subscriber enter to Message, test packet is sent to A equipment.
S6, such as the mode described in above-mentioned embodiment, in the L2UNI sides of A equipment, apparatus for forwarding message flows according to TWAMP Matched rule, TWAMP test packets are matched, and generate reflection report and be sent to C equipment.
S7, such as the mode described in above-mentioned embodiment, in the L3UNI sides of C equipment, apparatus for forwarding message flows according to TWAMP Matched rule, after matching TWAMP test packets, message is delivered into the processing of TWAMP protocol modules, TWAMP protocol process module Carry out packet loss and delay statistics.
S8,, can be according to need to prevent performance statistics from being impacted to service traffics after C equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP only carries out continuity testing, when link packet drop rate reaches default threshold value, Report connective Threshold Crossing Alert;Or when not receiving any response message in some cycles, loss of connectivity is reported to alert.
As a kind of optional example 5):L2 to L2 end-to-end fragmentations measure, and as shown in figure 12, the embodiment is mainly used in In L2+L3 networkings, L2 accesses side and measured to bridging device L2 sides segmented network link.It is actively to be initiated from L2 access devices TWAMP is measured, and real-time collecting is counted from L2 access devices to the performance metric such as chain-circuit time delay, packet loss bridging device L2 sides;It is main To include following steps:
S1, such as the mode described in above-mentioned embodiment, TWAMP reflectors are affixed one's name in bridging device B L2 sidepieces, and specify 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, lightweight TWAMP transmitters are disposed on access device A, and with specifying the source IP address of transmitter, purpose IP Location, source UDP port number, the parameter such as purpose UDP port number, source MAC, target MAC (Media Access Control) address.
S3, TWAMP tests are sent out in device A.
S4, such as the mode described in above-mentioned embodiment, A equipment TWAMP transmitters, by uni interface, analog subscriber enter to Message, test packet is sent to B device.
S5, such as the mode described in above-mentioned embodiment, in bridging device B L2 sides, apparatus for forwarding message flows according to TWAMP Matched rule, TWAMP test packets are matched, and generate reflection report and be sent to A equipment.
S6, such as the mode described in above-mentioned embodiment, in A equipment in L2UNI sides, apparatus for forwarding message is according to TWAMP Matched rule is flowed, after matching TWAMP test packets, message is delivered into the processing of TWAMP protocol modules, TWAMP protocol processes moulds Block carries out packet loss and delay statistics.
S7,, can be according to need to prevent performance statistics from being impacted to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP values carry out continuity testing, when link packet drop rate reaches default threshold value, Report connective Threshold Crossing Alert;Or when not receiving any response message in some cycles, loss of connectivity is reported to alert.
When carrying out online or off-line test, the configuration of the online and offline test scene of example 1 to 4 is referred to.
As a kind of optional example 6):The end-to-end areal survey in L3 to L3 sides, as shown in figure 13, the embodiment is mainly used In L2+L3 networkings, L3 lands equipment and measured to bridging device L3 sides segmented network link.It is that L3 landing equipment is actively initiated TWAMP is measured, and real-time collecting statistics lands equipment to the performance metric such as chain-circuit time delay, packet loss bridging device L3 sides from L3.It is main To include following steps:
S1, such as the mode described in above-mentioned embodiment, TWAMP reflectors are affixed one's name in the L3 sidepieces of bridging device (B device), and Specify source IP address, the purpose IP address of reflector, source UDP port number, the parameter such as purpose UDP port number, message DSCP.
S2, lightweight TWAMP transmitters are disposed on access device (C equipment), and specify source IP address, the mesh of transmitter IP address, source UDP port number, the parameter such as purpose UDP port number, DSCP.
S3, TWAMP tests are sent out in C equipment.
S4, such as the mode described in above-mentioned embodiment, C equipment TWAMP transmitters, by uni interface, analog subscriber enter to Message, test packet is sent to B device.
S5, such as the mode described in above-mentioned embodiment, in bridging device B L3UNI sides, apparatus for forwarding message according to TWAMP flows matched rule, matches TWAMP test packets, and generates reflection report and be sent to C equipment.
S6, such as the mode described in above-mentioned embodiment, in the L3UNI sides of C equipment, apparatus for forwarding message flows according to TWAMP Matched rule, after matching TWAMP test packets, message is delivered into the processing of TWAMP protocol modules, TWAMP protocol process module Carry out packet loss and delay statistics.
S7, if to initiate measurement in the L3 sides of bridging device (B device), above-mentioned transmitter and reflector need to only be exchanged Positional interface.
S8,, can be according to need to prevent performance statistics from being impacted to service traffics after C equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP values carry out continuity testing, when link packet drop rate reaches default threshold value, Report connective Threshold Crossing Alert;Or when not receiving any response message in some cycles, loss of connectivity is reported to alert.
As a kind of optional example 7):L2VPN end-to-end measurements, as shown in figure 14, the embodiment are mainly used in L2VPN In networking, L2 accesses side to another L2 access side end-to-end link measurements.It is actively to initiate TWAMP measurements from L2 access devices, Real-time collecting is counted from L2 sides access device to the performance metric such as chain-circuit time delay, packet loss L2 opposite side access devices;Specifically Embodiment is the same as embodiment five.
As a kind of optional example 8):L3VPN end-to-end measurements, as shown in figure 15, the embodiment are mainly used in L3VPN In networking, L3 accesses side to another L3 access side end-to-end link measurements.It is actively to initiate TWAMP measurements from L3 access devices, Real-time collecting is counted from L3 sides access device to the performance metric such as chain-circuit time delay, packet loss L3 opposite side access devices;Specifically Embodiment is the same as embodiment six.
As a kind of optional example 9):In the end-to-end superposition measurements of L2 to L3, as shown in figure 16, the embodiment is used for L2 In+L3 complexity networkings, L2 access devices to L3 cores landing equipment room end-to-end link performance metric superposition L2 networks and L3 nets Network is segmented end-to-end link performance metric.This metering system is superposition of the example 1 to example 6, can monitor each section of network in real time Performance.Mainly include following steps:
S1, configuration sensing core landing equipment C transmitter Sender1 and sensing bridging device B on access device A Reflector Sender2.
S2, Sender2 reflector reflector2 is configured in bridging device B L2 sides.
S3, in bridging device B L3 sides, C transmitter Sender3 is pointed in configuration.
S4, in core landing equipment C configurations Sender1 reflector reflector1 and Sender3 reflector reflector3。
S5, by above-mentioned configuration, Sender1 and reflector1 measure L2 access devices to L3 cores landing equipment room Link performance;Sender2 and reflector2 measures L2 access devices to the link performance of bridging device L2 sides;Sender3 and Reflector3 measures bridging device L3 sides to the link performance of core landing equipment room.
Continuity testing is identical with the test mode in earlier examples under the scene, and this example will not be repeated here.
As a kind of optional example 10):In the end-to-end superposition measurements of L3 to L2, as shown in figure 17, the embodiment is used for In L2+L3 complexity networkings, L3 cores land equipment to end-to-end link performance metric superposition L2 networks and L3 between L2 access devices Network segmentation end-to-end link performance metric.This metering system is superposition of the example 1 to real example 6, can monitor each section in real time Network performance.Mainly include following steps:
S1, the transmitter Sender1 for referring to L2 access devices A and the reflection for pointing to bridging device B are configured on access device C Device Sender2,.
S2, Sender2 reflector reflector2 is configured in bridging device B L3 sides.
S3, in bridging device B L2 sides, access device A transmitter Sender3 is pointed in configuration.
S4, in L2 access devices A configurations Sender1 reflector reflector1 and Sender3 reflector reflector3。
S5, by above-mentioned configuration, Sender1 and reflector1 measurement L3 cores land equipment between L2 access devices Link performance;Sender2 and reflector2 measurement L3 cores land equipment to the link performance of bridging device L3 sides; Sender3 and reflector3 measures bridging device L2 sides to the link performance between L2 access devices.
Continuity testing is identical with the test mode in earlier examples under the scene, and this example will not be repeated here.
As a kind of optional example 11):In L2 sides to base station controller or CE equipment end-to-end measurements, such as Figure 18 institutes Show, be actively to initiate TWAMP measurements in L2 access devices, real-time collecting counts L2 access devices to base station controller or CE equipment Between the performance metric such as chain-circuit time delay, packet loss.Mainly include following steps:
S1, by above-mentioned embodiment, in base station controller or CE its upper sides administration TWAMP reflectors, and specify reflector Source IP address, purpose IP address, source UDP port number, purpose UDP port number, source MAC, purpose MAC, message DSCP etc. are optional Parameter.
S2, lightweight TWAMP transmitters are disposed on access device A, and with specifying the source IP address of transmitter, purpose IP Location, source UDP port number, the optional parameters such as purpose UDP port number, source MAC, target MAC (Media Access Control) address.
S3, TWAMP tests are sent out in device A.
S4, by above-mentioned embodiment, A equipment TWAMP transmitters send test packet to base station controller or CE equipment.
S5, base station controller or CE equipment press above-mentioned embodiment according to above-mentioned, and test packet is reflected can A equipment.
After the test packet that S6, A equipment receive base station controller or CE equipment reflects, 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 this example will not be repeated here.
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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform 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, including:
S1902, message is received by User Network Interface;
S1904, according to the stream matched rule for the reflector being pre-configured with identify message whether be transmitter send test Message, wherein, test packet is used to survey current ink using the test protocol in two-way active measurement agreement TWAMP Examination;
S1906, when it is test packet to identify, response test message generation response message;
S1908, response message is sent to transmitter.
Alternatively, one kind is proposed in embodiments of the present invention, and link test is realized based on lightweight TWAMP test protocols Scheme.Wherein, above-mentioned link test method can be, but not limited to be applied to framework as shown in Figure 5, as applied to service end Session reflector.Concrete scheme is as follows:The user network that session transmitter (i.e. transmitter) in control 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 is tested current ink;And the session reflector (i.e. reflector) to service end sends test packet;Reflector Message is received by the User Network Interface of reflector;Reflector is identified according to the stream matched rule for the reflector being pre-configured with and reported Text whether be transmitter send test packet;When it is test packet to identify, the generation response of reflector response test message Message, and send response message to transmitter;Transmitter identify reflector send response message, wherein, response message with The stream matched rule matching for the transmitter being pre-configured with;Transmitter obtains the test result to current ink according to response message.
Alternatively, in the present embodiment, the control protocol in standard TWAMP agreements is eliminated during link test, Only retain test protocol so that standard TWAMP agreement lightweights, so as to relieve dependences of the TWAMP to ICP/IP protocol.In chain When disposing TWAMP agreements during drive test examination, no longer without IP planning or the limitation of IP address resource-constrained, causing test protocol While deployment more flexibly and fast, the application scenarios scope of link test is expanded, and then realize and improve to lattice chain drive test The effect of the testing efficiency of examination.
Alternatively, in the present embodiment, TWAMP of the above-mentioned link test method used in test process can with but not It is limited to:Eliminate 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 Dependences of the TWAMP to ICP/IP protocol.So as to realize more neatly agreement deployment, and then ensure to different fields in network environment Flexibly test can be achieved in link under scape, to reach the effect for improving 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 obtained to message (incoming message), further, because 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 packets and business report Text, in the present embodiment, by being pre-configured with stream matched rule in transmitter, to ensure accurately to distinguish from the message transmitted Test packet, so as to prevent TWAMP test packets from being forwarded with service traffics, reduce influence of the test process to service traffics.
Alternatively, in the present embodiment, before message is received by User Network Interface, in addition to:Configure reflector Reflection parameters;The stream matched rule of reflector is generated according to reflection parameters, wherein, the stream matched rule of reflector is including following At least one:Source IP address, purpose IP address, source UDP port number, purpose UDP port number, differentiated services code points DSCP letters Breath.
Alternatively, in the present embodiment, identify whether message is hair according to the stream matched rule for the reflector being pre-configured with The test packet that emitter is sent includes:Parameter matching is carried out to the message received according to the stream matched rule of reflector;Joining Number then judges the test packet that identification outgoing packet sends for transmitter when the match is successful.
The embodiment provided by the application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement is tested current ink, will cause standard TWAMP agreement lightweights, not only relieves TWAMP tests to TCP/IP The dependence of agreement, to reduce IP address to the limitation using the progress link test of TWAMP agreements.But also it can not propped up at some , can also be by disposing test of the above-mentioned TWAMP test protocols completion to network link in the equipment for holding TWAMP control protocols. TWAMP tests are widened to the test scope of network link so as to reach, and improve versatility and the flexibility of test, and then carry The efficiency of high TWAMP link tests.Further, when carrying out link test by large scale deployment TWAMP agreements, can also keep away Exempt to run TWAMP control protocols and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, effective maintenance more conducively to test session.
Embodiment 3
A kind of link test device is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and preferred reality Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize the soft of predetermined function The combination of part and/or hardware.Although device described by following examples is preferably realized with software, hardware, or The realization of the combination of software and hardware is also what may and be contemplated.
Figure 20 is the structured flowchart of link test device according to embodiments of the present invention, as shown in figure 20, said apparatus position In transmitter, the device includes:
1) analogue unit 2002, for obtaining test packet by User Network Interface simulation input message, wherein, test Message is used to test current ink using the test protocol in two-way active measurement agreement TWAMP;
2) the first transmitting element 2004, for sending test packet to reflector;
3) recognition unit 2006, the response message sent for perception reflex device response test message, wherein, response message Matched with the stream matched rule for the transmitter being pre-configured with;
4) acquiring unit 2008, the test result to current ink is obtained according to response message.
Alternatively, in the present embodiment, above-mentioned link test device can be, but not limited to be applied to the chain drive test shown in Fig. 5 In test system, wherein, the system includes:Equipment (such as service end) where equipment where transmitter (such as control terminal), reflector. Alternatively, in the present embodiment, said apparatus can be, but not limited to the session transmitting for the control terminal being applied in said system In device.
(1) the session transmitter (i.e. transmitter) in terminal is controlled to be used to perform following operation:Pass 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 is tested current ink;Test packet is sent to reflector;The response report that perception reflex device response test message is sent Text, wherein, response message matches with the stream matched rule for the transmitter being pre-configured with;Obtained according to response message to current ink Test result;
(2) the session reflector (i.e. reflector) in service end is used to perform following operation:Connect by User Network Interface Receiving text;According to the stream matched rule for the reflector being pre-configured with identify message whether be transmitter send test packet, its In, test packet is used to test current ink using the test protocol in two-way active measurement agreement TWAMP;Identifying Go out when being test packet, response test message generation response message;Response message is sent to transmitter.
Alternatively, in the present embodiment, TWAMP of the above-mentioned link test method used in test process can with but not It is limited to:Eliminate in the two-way active measurement agreement of standard (Two-Way ActiveMeasurement Protocol, TWAMP) Control protocol, only retain test protocol.That is, in the present embodiment, it is pre- in transmitter and reflector arrangement according to TWAMP First generation test stream matched rule;TWAMP transmitters pass through the Customer Premises Network interface (uni interface) of transmitter, analog subscriber Enter to message, test packet is sent to reflector;Reflector identifies that transmitter sends test packet according to stream matched rule, and Response message is generated, is sent to transmitter;Transmitter identifies the response message of reflector transmission, and root according to stream matched rule The test result of current ink is obtained according to response message.By using the test protocol in light-weighted TWAMP, to relieve Dependences of the TWAMP to ICP/IP protocol, and the limitation during deployment of standard TWAMP agreements to network scenarios.It is cleverer so as to realize Ground living agreement deployment, and then ensure the link under different scenes in network environment to can be achieved flexibly test, 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 obtained to message (incoming message), further, because 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 packets and business report Text, in the present embodiment, by automatically generating stream matched rule in transmitter, to ensure accurately to distinguish from the message transmitted Test packet, so as to prevent TWAMP test packets from being forwarded with service traffics, reduce influence of the test process to service traffics.
Specifically, so that shown in Fig. 4, Access Layer uses L2VPN, disposes the multiprotocol label switching towards transmission (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 Connect device interior and carry out bridge joint intercommunication.Assuming that transmitter is arranged in the access device of Access Layer, reflector sets core layer Land in equipment, in embodiments of the present invention, can be, but not limited to set TWAMP message flows in transmitter and reflector respectively With rule, and it is issued in each self-corresponding apparatus for forwarding message, when receiving message, apparatus for forwarding message is according to configuration Stream matched rule can identify the message, and link performance degree is carried out to the test packet (or response message) identified so as 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 is tested current ink, will cause standard TWAMP agreement lightweights, not only relieves TWAMP tests to TCP/ The dependence of IP agreement, to reduce IP address to the limitation using the progress link test of TWAMP agreements.But also can be at some not , can also be by disposing survey of the above-mentioned TWAMP test protocols completion to network link in the equipment for supporting TWAMP control protocols Examination.Test scope of the TWAMP tests to network link is widened so as to reach, improves versatility and the flexibility of test, Jin Erda To the efficiency for improving TWAMP link tests.Further, when carrying out link test by large scale deployment TWAMP agreements, may be used also To avoid running TWAMP control protocols and test protocol simultaneously.To avoid when control protocol exception, test protocol is uninterrupted Ground stops, more conducively effective maintenance to test session.
Alternatively, in the present embodiment, before test packet is obtained by User Network Interface simulation input message, also Including at least one of:
1) emission parameter of transmitter is configured, wherein, comprise at least in emission parameter and made 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 matched rule of parameter generation transmitter;
2) emission parameter of transmitter is configured, wherein, comprise at least in emission parameter and made 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 Emission parameter generates the stream matched rule of transmitter.
It should be noted that TWAMP test packets are identified by being then based on flowing matched rule, when access device is without IP During 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 in transmitter positioned at landing equipment (such as three layers of core net Network equipment, i.e. L3 equipment) or during bridging device, the IP address of above-mentioned borrow end-equipment will be as mode 2) in virtual purpose IP address.
Alternatively, in the present embodiment, above-mentioned link test device can not only realize online link test, 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 ARP, so that under off-line state, can also obtain Corresponding MAC Address.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.A, disposed between B device L2VPN business, B, C equipment room deployment L3VPN business.If will be between access device (A equipment) and landing equipment (C equipment) When disposing TWAMP tests, 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), so as to cause by reflector after response message is received The response message beamed back can not reach access device (A equipment), so as to cause test not succeed.Therefore, in the present embodiment, Can be by being pre-configured with L3VI interfaces, and the IP address of the interface is configured, by the triggering gratuitous ARP study of L3VI interfaces so that In off-line test, bridging device can obtain the MAC Address of access device (A equipment).
Alternatively, in the present embodiment, obtained according to response message includes to the test result of current ink:According to response Test time delay and/or the packet loss that Receive message is tested to obtain to current ink;Meet in test time delay and/or packet loss default During threshold condition, the first warning information is sent.
Alternatively, in the present embodiment, after test packet is sent to reflector, in addition to:If in predetermined period not Response message is received, then judges 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 is carried out to current ink TWAMP tests can be the test to connectivity of link or the performance test to link.
Wherein, the test to connectivity of link can include but is not limited to following at least one mode:
1) by judging whether receive response message in predetermined period, to judge whether current ink connects;
2) by judging whether packet loss is more than predetermined threshold, to judge whether current ink connects.
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.
, can be as needed to prevent performance statistics from being impacted to service traffics after A equipment large scale deployment TWAMP Delay performance statistics is closed, now TWAMP only carries out continuity testing, when link has packet loss or packet loss of link thresholding to reach certain During value, loss of connectivity is reported to alert.
In addition, the performance test to link can include but is not limited to:During according to testing obtained test to current ink Prolong and/or packet loss;The failure that analysis current ink occurs, with the warning information according to corresponding to the failure transmission analyzed.
Specifically illustrated with reference to the example below, scene as shown in Figure 7, wherein, A equipment is L2 access devices, and B device is Bridging device, it is responsible for L2 business and L3 business carrying out bridge joint intercommunication, C equipment is that L3 core nets land equipment, and D equipment is base station Controller, it is connected with A equipment.A, L2VPN business, B, C equipment room deployment L3VPN business are disposed between B device.If to access When disposing TWAMP measurements before device A and bridge joint landing equipment C, if initiating to measure from L2 access devices A, specific embodiment party Case is as follows:
S1, in A device configuration lightweight TWAMP test emitters, specify source IP, purpose IP, source UDP port number, purpose 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 matched rules are generated, are handed down to apparatus for forwarding message.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 bridging device B MAC Address, is needed if not specifying Specify next-hop gateway address.It should be noted that the virtual IP address not traffic affecting L2 handling processes borrowed.
S2, reflector is tested in C device configuration lightweights TWAMP, specify source IP, the purpose IP of the reflector, source UDP ends 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 Into reflector TWAMP message flow matched rules, apparatus for forwarding message is handed down to.One reflector stream matched rule, can be matched One TWAMP test stream, can also match a plurality of TWAMP tests stream.
S3, in 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), test packet (Sender-Test Packet) is sent 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 UNI apparatus for forwarding message, first basis The stream matched rule issued before carries out message matching, if the match is successful, then it is assumed that be lightweight TWAMP Sender- Test test packets, C equipment lightweight TWAMP reflectors generation 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 messages is carried in Reflector-Test messages, is taken simultaneously Packet receiving time stamp T 2 with Reflector-Test test packets and time stamp T 3 of giving out a contract for a project.If matching is unsuccessful, then it is assumed that is Service message, continue to E-Packet according to forwarding rule.
S5, in transmitter, after A equipment UNI sides apparatus for forwarding message receives message, the stream matching first issued before is advised Message matching is then carried out, if the match is successful, then it is assumed that be the Reflector-Test tests that lightweight TWAMP reflectors are sent Message, TWAMP protocol process module carries out packet receiving counting (RxC) statistics, while is parsed from Reflector-Test messages Packet receiving time stamp T 2 and the timestamp of giving out a contract for a project of give out a contract for a project time stamp T 1 and the Reflector-Test messages of Sender-Test messages T3, then carry out the link performances such as packet loss, positive time delay, reverse time delay, loopback delay statistics.
S6, when A end equipments need to carry out connectivity of link test, TWAMP protocol process module starts detection of connectivity, After transmitter has sent Sender-Test test packets, the Reflector- that reflector is reflected back is not received in one section of cycle Test test packets, then it is assumed that connectivity of link failure, send connectedness and alert to user.When chain-circuit time delay or packet loss reach Threshold Crossing Alert is reported during default threshold value.User carries out subsequent treatment as needed.
The embodiment provided by the application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement is tested current ink, will cause standard TWAMP agreement lightweights, not only relieves TWAMP tests to TCP/IP The dependence of agreement, to reduce IP address to the limitation using the progress link test of TWAMP agreements.But also it can not propped up at some , can also be by disposing test of the above-mentioned TWAMP test protocols completion to network link in the equipment for holding TWAMP control protocols. TWAMP tests are widened to the test scope of network link so as to reach, and improve versatility and the flexibility of test, and then carry The efficiency of high TWAMP link tests.Further, when carrying out link test by large scale deployment TWAMP agreements, can also keep away Exempt to run TWAMP control protocols and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, effective maintenance more conducively to test session.
As a kind of optional scheme, in addition to:
1) the first dispensing unit, for before test packet is obtained by User Network Interface simulation input message, matching somebody with somebody The emission parameter of transmitter is put, wherein, comprised at least in emission parameter and use the IP address of end-equipment as virtual source IP Location, or, using end-equipment IP address 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 matched rule of transmitter according to emission parameter.
It should be noted that TWAMP test packets are identified by being then based on flowing matched rule, when access device is without IP During 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 positioned 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.
Alternatively, in the present embodiment, generation unit includes:Generation module, for the message letter in test packet The stream matched rule of breath generation transmitter, wherein, the stream matched rule of transmitter includes following at least one:Source IP address, mesh IP address, source UDP port number, purpose UDP port number, differentiated services code points DSCP information.
The embodiment provided by the application, by using borrow end-equipment IP address as virtual ip address, To overcome in the prior art without IP planning or situations such as IP resource-constraineds, test and limit caused by testing TWAMP, so as to realize Release in link test, dependence when TWAMP is disposed to TCP/IP.And then extension test scope, improve testing efficiency Purpose.
As a kind of optional scheme, including:
1) the second dispensing unit, for before test packet is obtained 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, its In, three layer service virtual interfaces are used in off-line test, trigger ARP.
It should be noted that because in off-line test, bridging device possibly can not obtain the MAC of transmitter place equipment Address, so as to cause the response message for being reflected back toward test packet can not reach transmitter place equipment.Therefore, in the present embodiment In, it is necessary to device configuration L3VI interfaces and configure the interface IP address where TWAMP transmitters, triggered by L3VI interfaces free ARP learns so that the MAC Address of equipment where bridging device can obtain transmitter.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.A, disposed between B device L2VPN business, B, C equipment room deployment L3VPN business.
If TWAMP tests are disposed between access device (A equipment) and landing equipment (C equipment), 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 Will be by being pre-configured with L3VI interfaces, and the IP address of the interface is configured, triggering gratuitous ARP study so that bridging device is returning Return before response message, can learn to obtain the MAC Address of access device (A equipment).
The embodiment provided by the application, by completing TWAMP tests under off-line state, further ensure test Efficiency.
As a kind of optional scheme, receiving unit includes:
1) receiving module, for receiving message;
2) matching module, parameter matching is carried out to the message received for the stream matched rule according to transmitter;
3) identification module, for when the match is successful for parameter, then judging the response report that identification outgoing packet sends for reflector Text.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.A, disposed between B device L2VPN business, B, C equipment room deployment L3VPN business.
After C equipment receives message by UNI apparatus for forwarding message, the stream matched rule first issued before is reported Text matching, if the match is successful, then it is assumed that it is lightweight TWAMP Sender-Test test packets, C equipment lightweights 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 messages is carried in Test messages, while carries Reflector-Test test packets Packet receiving time stamp T 2 and time stamp T 3 of giving out a contract for a project.If matching is unsuccessful, then it is assumed that is service message, is continued according to forwarding rule E-Packet.
The embodiment provided by the application, by pre-configured stream matched rule, realize to service message and test report Literary (and response message) accurately distinguishes, so as to reach the influence for reducing test process to service traffics.
As a kind of optional scheme, acquiring unit includes:
1) the first acquisition module, for obtained according to response message current ink is tested obtained test time delay and/or Packet loss;
2) the first sending module, for when testing time delay and/or packet loss meets preset threshold condition, sending first and accusing Alert information.
Alternatively, in the present embodiment, the test time delay for testing to obtain to current ink is obtained according to response message to be included: Obtain the following timestamp carried in response message:Very first time stamp T1, the reflector that transmitter sends test packet are received and surveyed Try message the second time stamp T-, reflector send response message the 3rd time stamp T 3;Obtain transmitter receipt response message The 4th time stamp T 4;Stabbed according to the very first time, the second timestamp, the 3rd timestamp and the 4th timestamp are obtained to current ink The positive time delay of test, it is reverse when extend to loop time delay.
Wherein, positive time delay can be, but not limited to as T2-T1, and reverse time delay can be, but not limited to as T4-T3, at reflector Reason time delay can be, but not limited to can be, but not limited to as (T4-T1)-(T3-T2) for T3-T2, loop time delay.
Alternatively, in the present embodiment, the packet loss for testing to obtain to current ink is obtained according to response message to be included:Obtain 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 for TxC-RxC, packet loss can be determined according to the number of dropped packets, for example, packet loss Rate is (TxC-RxC)/TxC.
As a kind of optional scheme, in addition to:
1) the second transmitting element, after sending test packet to reflector in transmitter, do not received in predetermined period During to response message, judge that connected trouble occurs in current ink, send the second warning information.
The embodiment provided by the application, after large scale deployment lightweight TWAMP, to prevent performance statistics to business Flow impacts, and can close the performance statisticses 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 include 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 devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.In this example, it is above-mentioned Method of testing can apply to the lateral L3 sides of L2 and actively initiate access device end to landing equipment end in linear link test Cheng Zhong, the lateral L3 sides of L2 can also be applied to and actively initiate segmentation (i.e. access device end to bridging device end) in downlink survey During examination, the lateral L3 sides of L2 can also be applied to and actively initiate segmentation (i.e. bridging device end to landing equipment end) in linear chain During drive test examination.
For example, in this example, above-mentioned method of testing can apply in L2VPN networks survey in downlink end to end During examination.
For example, it is assumed that A equipment is L2 access devices, B device is bridging device, for L2 business and L3 business to be carried out into bridge Intercommunication is connect, C equipment is that L3 core nets land equipment, and D equipment is base station controller, is connected with A equipment.In this example, it is above-mentioned Method of testing can apply to the lateral L2 sides of L3 and actively initiate access device end to landing equipment end in linear link test Cheng Zhong, the lateral L2 sides of L3 can also be applied to and actively initiate segmentation (i.e. bridging device end to access device end) in downlink survey During examination, the lateral L2 sides of L3 can also be applied to and actively initiate segmentation (landing equipment end to bridging device end) in linear chain During drive test examination.
For example, in this example, above-mentioned method of testing can apply in L3VPN networks 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 Cross in the following manner realization, but not limited to this:Above-mentioned module is respectively positioned in same processor;Or above-mentioned modules are with any The form of combination is located in different processors respectively.
Embodiment 4
A kind of link test device is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and preferred reality Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize the soft of predetermined function The combination of part and/or hardware.Although device described by following examples is preferably realized with software, hardware, or The realization of the combination of software and hardware is also what may and be contemplated.
Figure 21 is the structured flowchart of link test device according to embodiments of the present invention, as shown in figure 21, said apparatus position In reflector, the device includes:
1) receiving unit 2102, for receiving message by User Network Interface;
2) recognition unit 2104, whether it is transmitting for the stream matched rule identification message according to the reflector being pre-configured with 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 it is test packet to identify, response test message to generate response message;
4) transmitting element 2108, for sending the response message to the transmitter.
Alternatively, one kind is proposed in embodiments of the present invention, and link test is realized based on lightweight TWAMP test protocols Scheme.Wherein, above-mentioned link test device can be, but not limited to be applied to framework as shown in Figure 5, as applied to service end Session reflector.Concrete scheme is as follows:The user network that session transmitter (i.e. transmitter) in control 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 is tested current ink;And the session reflector (i.e. reflector) to service end sends test packet;Reflector Message is received by the User Network Interface of reflector;Reflector is identified according to the stream matched rule for the reflector being pre-configured with and reported Text whether be transmitter send test packet;When it is test packet to identify, the generation response of reflector response test message Message, and send response message to transmitter;Transmitter identify reflector send response message, wherein, response message with The stream matched rule matching for the transmitter being pre-configured with;Transmitter obtains the test result to current ink according to response message.
Alternatively, in the present embodiment, the control protocol in standard TWAMP agreements is eliminated during link test, Only retain test protocol so that standard TWAMP agreement lightweights, so as to relieve dependences of the TWAMP to ICP/IP protocol.In chain When disposing TWAMP agreements during drive test examination, no longer without IP planning or the limitation of IP address resource-constrained, causing test protocol While deployment more flexibly and fast, the application scenarios scope of link test is expanded, and then realize and improve to lattice chain drive test The effect of the testing efficiency of examination.
Alternatively, in the present embodiment, TWAMP of the above-mentioned link test method used in test process can with but not It is limited to:Eliminate 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 Dependences of the TWAMP to ICP/IP protocol.So as to realize more neatly agreement deployment, and then ensure to different fields in network environment Flexibly test can be achieved in link under scape, to reach the effect for improving 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 obtained to message (incoming message), further, because 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 packets and business report Text, in the present embodiment, by being pre-configured with stream matched rule in transmitter, to ensure accurately to distinguish from the message transmitted Test packet, so as to prevent TWAMP test packets from being forwarded with service traffics, reduce influence of the test process to service traffics.
Alternatively, in the present embodiment, in addition to:Dispensing 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 matched rule of device, wherein, the stream matched rule of the reflector includes at least one of:Source IP address, purpose IP Location, source UDP port number, purpose UDP port number, differentiated services code points DSCP information.
Alternatively, in the present embodiment, recognition unit includes:Matching module, for the stream matched rule according to reflector Parameter matching is carried out to the message received;Identification module, for when the match is successful for parameter, then judging identification outgoing packet for hair The test packet that emitter is sent.
The embodiment provided by the application, by using the test in the two-way active measurement agreement TWAMP only retained Agreement is tested current ink, will cause standard TWAMP agreement lightweights, not only relieves TWAMP tests to TCP/IP The dependence of agreement, to reduce IP address to the limitation using the progress link test of TWAMP agreements.But also it can not propped up at some , can also be by disposing test of the above-mentioned TWAMP test protocols completion to network link in the equipment for holding TWAMP control protocols. TWAMP tests are widened to the test scope of network link so as to reach, and improve versatility and the flexibility of test, and then carry The efficiency of high TWAMP link tests.Further, when carrying out link test by large scale deployment TWAMP agreements, can also keep away Exempt to run TWAMP control protocols and test protocol simultaneously.To avoid when control protocol exception, test protocol is by incessantly Only, effective maintenance more conducively to test session.
Embodiment 5
According to one embodiment of present invention, there is provided a kind of link test system, including:
1) equipment where transmitter, wherein, transmitter is used to perform following operation: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 matches with the stream matched rule for the transmitter being pre-configured with;Test knot to current ink is obtained according to response message Fruit;
2) equipment where reflector, wherein, reflector is used to perform following operation:Received and reported by User Network Interface Text;According to the stream matched rule for the reflector being pre-configured with identify message whether be transmitter send test packet, wherein, survey Examination message is used to test current ink using the test protocol in two-way active measurement agreement TWAMP;It is identifying During test packet, response test message generation response message;Response message is sent to transmitter.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment Example, the present embodiment will not be repeated here.
Embodiment 6
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can The program code for performing following steps to be arranged to storage to be used for:
S1, test packet is obtained by User Network Interface simulation input message, wherein, test packet is used for using two-way Test protocol in active measurement agreement TWAMP is tested current ink;
S2, test packet is sent to reflector;
S3, the response message that perception reflex device response test message is sent, wherein, response message and the transmitting being pre-configured with The stream matched rule matching of device;
S4, the test result to current ink is obtained according to response message.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, before test packet is obtained by User Network Interface simulation input message, configure the transmitting ginseng of transmitter Number, wherein, comprised 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, the stream matched rule of transmitter is generated according to emission parameter;
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:
S1, before test packet is obtained by User Network Interface simulation input message, configure the transmitting ginseng of transmitter Number, wherein, comprised at least in emission parameter and use the IP address of end-equipment as virtual purpose IP address, wherein, end is set It is standby to include at least one of:Base station controller, Customer Edge router;
S2, the stream matched rule of transmitter is generated according to emission parameter.
Alternatively, storage medium is also configured to:
S1, message is received by User Network Interface;
S2, according to the stream matched rule for the reflector being pre-configured with identify message whether be transmitter send test report Text, wherein, test packet is used to test current ink using the test protocol in two-way active measurement agreement TWAMP;
S3, when it is test packet to identify, response test message generation response message;
S4, response message is sent to transmitter.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to described in above-described embodiment and optional embodiment Example, the present embodiment will not be repeated here.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (26)

  1. A kind of 1. link test method, it is characterised in that including:
    Test packet is obtained by User Network Interface simulation input message, wherein, the test packet is used to use two-direction, main Test protocol in dynamic measurement agreement TWAMP is tested current ink;
    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 with being pre-configured with Transmitter stream matched rule matching;
    Test result to the current ink is obtained according to the response message.
  2. 2. according to the method for claim 1, it is characterised in that obtained described by User Network Interface simulation input message To before test packet, in addition to:
    The emission parameter of the transmitter is configured, wherein, the internet using end-equipment is comprised at least in the emission parameter Protocol IP address as virtual source IP address, wherein, the end-equipment includes at least one of:Base station controller, user Edge router;The stream matched rule of the transmitter is generated according to the emission parameter;Or
    The emission parameter of the transmitter is configured, wherein, the internet using end-equipment is comprised at least in the emission parameter Protocol IP address as virtual purpose IP address, wherein, the end-equipment includes at least one of:Base station controller, use Family edge router;The stream matched rule of the transmitter is generated according to the emission parameter.
  3. 3. according to the method for claim 2, it is characterised in that described that the transmitter is generated according to the emission parameter Stream matched rule includes:
    Message information in the test packet generates the stream matched rule of the transmitter, wherein, the transmitter Stream matched rule includes following at least one:Source IP address, purpose IP address, source user datagram protocol UDP port number, purpose UDP UDP port number, differentiated services code points DSCP information.
  4. 4. according to the method for claim 1, it is characterised in that obtained described by User Network Interface simulation input message To before test packet, including:
    The two-layer equipment where the transmitter configures three layer service virtual interfaces, and is 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 ARP.
  5. 5. according to the method for claim 1, it is characterised in that 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 matched rule of the transmitter;
    When the match is successful for parameter, then judge to identify that the message is the response message that the reflector is sent.
  6. 6. according to the method for claim 1, it is characterised in that described to be obtained according to the response message to the current chain The test result on road includes:
    Test time delay and/or the packet loss for testing to obtain to the current ink according to response message acquisition;
    When the test time delay and/or the packet loss meet preset threshold condition, the first warning information is sent.
  7. 7. according to the method for claim 6, it is characterised in that described to be obtained according to the response message to the current chain The test time delay that drive test tries to obtain includes:
    Obtain the following timestamp carried in the response message:The transmitter sends the very first time of the test packet When stamp, the reflector receive the second timestamp of the test packet, the reflector sends the 3rd of the response message Between stab;
    Obtain the 4th timestamp of response message described in the transmitter receipt;
    Obtained according to very first time stamp, second timestamp, the 3rd timestamp and the 4th timestamp following At least one test time delay:The positive time delay of the current ink, the reverse time delay of the current ink, the current ink Loop time delay.
  8. 8. according to the method for claim 6, it is characterised in that described to be obtained according to the response message to the current chain The packet loss that drive test tries to obtain includes:
    Obtain giving out a contract for a project for the transmitter transmission test packet and count and receive the packet receiving number of the response message;
    The packet loss is obtained according to the packet receiving number and the difference for giving out a contract for a project several.
  9. 9. according to the method for claim 1, it is characterised in that send the test packet to reflector in the transmitter Afterwards, in addition to:
    If not receiving the response message in predetermined period, judge that connected trouble occurs in the current ink, send second and accuse Alert information.
  10. 10. method according to any one of claim 1 to 9, it is characterised in that equipment where the transmitter include with It is at least one lower:Access device, landing equipment, bridging device, equipment where the reflector include at least one of:Access Equipment, landing equipment, bridging device, wherein, the bridging device is to be used to connect two layers of aggregation networks and three layers of core network Equipment.
  11. A kind of 11. link test method, it is characterised in that including:
    Message is received by User Network Interface;
    Identify whether the message is test packet that transmitter is sent according to the stream matched rule for the reflector being pre-configured with, its In, the test packet is used to test current ink using the test protocol in two-way active measurement agreement TWAMP;
    When it is the test packet to identify, the test packet generation response message is responded;
    The response message is sent to the transmitter.
  12. 12. according to the method for claim 11, it is characterised in that it is described by User Network Interface receive message it Before, in addition to:
    Configure the reflection parameters of the reflector;
    The stream matched rule of the reflector is generated according to the reflection parameters, wherein, the stream matched rule bag of the reflector Include at least one of:Source internet protocol IP address, purpose internet protocol address, source user datagram protocol UDP ends Slogan, purpose udp user datagram protocol port numbers, differentiated services code points DSCP information.
  13. 13. according to the method for claim 11, it is characterised in that the stream matching rule for the reflector that the basis is pre-configured with 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 matched rule of the reflector;
    When the match is successful for parameter, then judge to identify that the message is the test packet that the transmitter is sent.
  14. A kind of 14. link test method, it is characterised in that including:
    Transmitter obtains test packet by the User Network Interface simulation input message of the transmitter, wherein, the test Message is used to test current ink using the test protocol in two-way active measurement agreement TWAMP;And sent out to reflector Send the test packet;
    The reflector receives message by the User Network Interface of the reflector;The reflector is anti-according to what is be pre-configured with The stream matched rule of emitter identifies whether the message is test packet that the transmitter is sent;It is the test identifying During message, the reflector responds the test packet generation 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 the institute being pre-configured with State the stream matched rule matching of transmitter;The transmitter obtains the test knot to the current ink according to the response message Fruit.
  15. 15. a kind of link test device, it is characterised 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 Test protocol in using two-way active measurement agreement TWAMP is tested current ink;
    First transmitting element, for sending the test packet to reflector;
    Recognition unit, for identifying that the reflector responds the response message that the test packet is sent, wherein, the response report Text matches with the stream matched rule for the transmitter being pre-configured with;
    Acquiring unit, the test result to the current ink is obtained according to the response message.
  16. 16. device according to claim 15, it is characterised in that also include:
    First dispensing 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, in the emission parameter including at least the Internet protocol IP using end-equipment Location as virtual source IP address, or, using the internet protocol address of end-equipment as virtual purpose IP address, its In, the end-equipment includes at least one of:Base station controller, Customer Edge router;
    Generation unit, for generating the stream matched rule of the transmitter according to the emission parameter.
  17. 17. device according to claim 16, it is characterised in that the generation unit includes:
    Generation module, the stream matched rule of the transmitter is generated for the message information in the test packet, wherein, The stream matched rule of the transmitter includes following at least one:Source IP address, purpose IP address, source user datagram protocol UDP port number, purpose UDP UDP port number, differentiated services code points DSCP information.
  18. 18. device according to claim 15, it is characterised in that including:
    Second dispensing 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 for the three layer services virtual interface with configuring predetermined IP Location, wherein, the three layer services virtual interface is used in off-line test, triggers ARP.
  19. 19. device according to claim 15, it is characterised in that the recognition unit includes:
    Receiving module, for receiving message;
    Matching module, parameter matching is carried out to the message received for the stream matched rule according to the transmitter;
    Identification module, for when the match is successful for parameter, then judging to identify the message for the described of reflector transmission Response message.
  20. 20. device according to claim 15, it is characterised in that the acquiring unit includes:
    First acquisition module, for obtained according to the response message current ink is tested obtained test time delay and/ Or packet loss;
    First sending module, for when the test time delay and/or the packet loss meet preset threshold condition, sending first Warning information.
  21. 21. device according to claim 15, it is characterised in that also include:
    Second transmitting element, after sending the test packet to reflector in the transmitter, in predetermined period not When receiving the response message, judge that connected trouble occurs in the current ink, send the second warning information.
  22. 22. the device according to any one of claim 15 to 21, it is characterised in that equipment where the transmitter includes At least one of:Access device, landing equipment, bridging device, equipment where the reflector include at least one of:Connect Enter equipment, landing equipment, bridging device, wherein, the bridging device is to be used to connect two layers of aggregation networks and three layers of core net The equipment of network.
  23. 23. a kind of link test device, it is characterised 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 matched rule for the reflector being pre-configured with 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;
    First generation unit, for when it is the test packet to identify, responding the test packet generation response message;
    Transmitting element, for sending the response message to the transmitter.
  24. 24. device according to claim 23, it is characterised in that also include:
    Dispensing unit, for before the reception message by User Network Interface, configuring the reflection parameters of the reflector;
    Second generation unit, for generating the stream matched rule of the reflector according to the reflection parameters, wherein, the reflection The stream matched 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 UDP UDP port number, differentiated services code points DSCP information.
  25. 25. device according to claim 23, it is characterised in that the recognition unit includes:
    Matching module, parameter matching is carried out to the message received for the stream matched rule according to the reflector;
    Identification module, for when the match is successful for parameter, then judging to identify the message for the described of transmitter transmission Test packet.
  26. A kind of 26. link test system, it is characterised in that including:
    Equipment where transmitter, wherein, the transmitter is used to perform following operation: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;The test packet is sent to reflector;Identify that the reflector responds what the test packet was sent Response message, wherein, the response message matches with the stream matched rule for the transmitter being pre-configured with;According to the response message Obtain the test result to the current ink;
    Equipment where the reflector, wherein, the reflector is used to perform following operation:Received and reported by User Network Interface Text;Identify whether the message is test packet that transmitter is sent according to the stream matched rule for the reflector being pre-configured with, its In, the test packet is used to test current ink using the test protocol in two-way active measurement agreement TWAMP; Identify when being the test packet, respond the test packet generation response message;The response is sent to the transmitter Message.
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 true CN107465565A (en) 2017-12-12
CN107465565B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191475A (en) * 2018-02-23 2019-08-30 大唐移动通信设备有限公司 A kind of data processing method and device of base station
CN110324202A (en) * 2019-05-31 2019-10-11 厦门网宿有限公司 A kind of method and apparatus detecting line quality
CN110891285A (en) * 2019-12-03 2020-03-17 锐捷网络股份有限公司 Transmitting equipment, reflecting equipment, network performance testing method and system
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
CN112822066A (en) * 2020-12-31 2021-05-18 北京浩瀚深度信息技术股份有限公司 Method and system for testing data link of DPI (deep packet inspection) equipment
CN113055240A (en) * 2019-12-27 2021-06-29 中国电信股份有限公司 Message transmission method and device and computer readable storage medium
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
CN114726748A (en) * 2019-05-31 2022-07-08 瞻博网络公司 Enhanced two-way active measurement protocol
WO2023093702A1 (en) * 2021-11-25 2023-06-01 华为技术有限公司 Network measurement method and related apparatus

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
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
CN105634937A (en) * 2015-12-31 2016-06-01 华为技术有限公司 Processing method and device of message
CN105634840A (en) * 2014-10-29 2016-06-01 中兴通讯股份有限公司 Method and device for measuring packet loss

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9531621B2 (en) * 2012-04-04 2016-12-27 Telefonaktiebolaget L M Ericsson 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
WO2016043633A1 (en) * 2014-09-15 2016-03-24 Telefonaktiebolaget L M 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

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191475A (en) * 2018-02-23 2019-08-30 大唐移动通信设备有限公司 A kind of data processing method and device of base station
CN110191475B (en) * 2018-02-23 2021-04-27 大唐移动通信设备有限公司 Data processing method and device for base station
CN110324202A (en) * 2019-05-31 2019-10-11 厦门网宿有限公司 A kind of method and apparatus detecting line quality
CN114726748A (en) * 2019-05-31 2022-07-08 瞻博网络公司 Enhanced two-way active measurement protocol
CN110891285A (en) * 2019-12-03 2020-03-17 锐捷网络股份有限公司 Transmitting equipment, reflecting equipment, network performance testing method and system
CN110891285B (en) * 2019-12-03 2023-03-21 锐捷网络股份有限公司 Transmitting equipment, reflecting equipment, network performance testing method and system
CN113055240A (en) * 2019-12-27 2021-06-29 中国电信股份有限公司 Message transmission method and device and computer readable storage medium
CN113055240B (en) * 2019-12-27 2022-07-05 中国电信股份有限公司 Message transmission method and device and computer readable storage 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
CN112822066A (en) * 2020-12-31 2021-05-18 北京浩瀚深度信息技术股份有限公司 Method and system for testing data link of DPI (deep packet inspection) equipment
WO2023093702A1 (en) * 2021-11-25 2023-06-01 华为技术有限公司 Network measurement method and related apparatus
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

Also Published As

Publication number Publication date
WO2017211169A1 (en) 2017-12-14
CN107465565B (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN107465565B (en) Link test method and apparatus and system
CN106100999B (en) Image network flow control methods in a kind of virtualized network environment
CN100463418C (en) Network performance test method, system and network device
US9325568B2 (en) Technique for determining correlated events in a communication system
CN106130766A (en) A kind of system and method realizing automated network accident analysis based on SDN technology
US20150319057A1 (en) Controller driven oam for split architecture network
CN107996023A (en) Monitor method, equipment and the Virtual Networking System of virtual network
CN101114994B (en) Method for detecting connectivity of multi-protocol label switching virtual private network
CN102917389B (en) The method and device of base station transmission self-inspection in a kind of LTE system
CN103416022B (en) Throughput testing approach and system in service in distribution router/exchange board structure
WO2020228398A1 (en) Message detection method, device and system
CN104683187B (en) A kind of method for realizing router two-layer VPN business physical interface end-to-end measurement
CN101145977B (en) A QoS monitoring system and its measuring method of IP data network
CN108964943A (en) A kind of method and device for realizing IOAM encapsulation
CN110381071A (en) A kind of message transmitting method, device and send method, apparatus
CN104995882B (en) Message processing method and device
CN107547129A (en) Link state detection method and system
WO2015184740A1 (en) Method and device for processing detection hierarchy information
CN109660414A (en) A kind of method and apparatus of the teleservice monitoring based on SDN network
CN113645058A (en) Network link flow monitoring method, device and system
CN108667804A (en) A kind of ddos attack detection and means of defence and system based on SDN frameworks
CN110166311A (en) Measure method, equipment and the network system of network performance
CN106161124B (en) Message test processing method and device
CN107347014A (en) A kind of network fault detecting method and system
CN105656751A (en) Layer-2 tunnel building method and system based on SDN

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