CN107666671A - The method and device of incorrect link detection based on TWAMP - Google Patents
The method and device of incorrect link detection based on TWAMP Download PDFInfo
- Publication number
- CN107666671A CN107666671A CN201610619306.4A CN201610619306A CN107666671A CN 107666671 A CN107666671 A CN 107666671A CN 201610619306 A CN201610619306 A CN 201610619306A CN 107666671 A CN107666671 A CN 107666671A
- Authority
- CN
- China
- Prior art keywords
- mark
- twamp
- instance
- agreements
- generation
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Communication Control (AREA)
Abstract
The invention provides a kind of method and device of the incorrect link detection based on two-way active measurement agreement TWAMP, wherein this method includes:The second mark that the first mark that first instance is pre-set is pre-set with second instance is obtained, wherein, first instance is server device or transmitting end equipment, and second instance is client device or reflection end equipment;When judging that the first mark is different from the second mark, determine that the session between first instance and second instance generates incorrect link, wherein, session is the session based on TWAMP agreements.Pass through above-mentioned technical proposal, connective and time delay detection can only be carried out by solving TWAMP technologies in correlation technique, the wrong even detection of business can not be carried out, then the wrong technical problem even of the business based on TWAMP agreements can not be prevented, reach the wrong even detection of the business based on TWAMP agreements of realizing, then prevent the wrong effect even of the business based on TWAMP agreements.
Description
Technical field
The present invention relates to the communications field, and two-way active measurement agreement (Two-Way is based in particular to one kind
Active Measurement Protocol, referred to as TWAMP) incorrect link detection method and device.
Background technology
With the deployment of LTE and VoLTE business, the positive full IPization evolution of mobile network, in order to adapt to the hair of mobile service
Exhibition, transmission net evolve to Packet Transport Network by traditional circuit transmission net and (Packet Transport Network, are referred to as
PTN).In order to carry out effectively management to PTN network, it is necessary to analyze the end to end performance of network.
TWAMP is a kind of flexible side for measuring and coming and going IP performances in network between any two equipment for supporting this standard
Method.At present in PTN network, typically the second layer virtual private network (Layer 2Virtual are deployed as in Access Layer
Private Network, referred to as L2VPN), core layer is deployed as third layer VPN (Layer 3Virtual
Private Network, referred to as L3VPN);TWAMP technologies can bridge in L2VPN, L2+L3, L3VPN, L3Native etc.
Extensive use in scene.
Standard full dose TWAMP (TWAMP Full) is made up of two parts agreement:TWAMP-Control and TWAMP-Test.
TWAMP-Control is the bidirectional measurement agreement derived based on OWAMP-Control, and the message for being mainly used in chain of command is handed over
Mutually, for example control connection is established, creates measurement session, consulting session parameter (such as communication pattern, time of measuring etc.), start or stop
Only measurement reply etc.;TWAMP-Test is used for the interaction that message is measured between node, and survey is established in TWAMP-Control
The connection of node is measured, and after notifying corresponding node to start measurement, interdependent node will be sent out according to the flow that TWAMP-Test is defined
Send measured message, collection network performance data.TWAMP-Control uses transmission control protocol (Transmission
Control Protocol, referred to as TCP) message interaction is carried out, and TWAMP-Test uses UDP (User
Datagram Protocol, referred to as UDP) carry out message interaction.Functionally, TWAMP protocol packages contain four logic realities
Body:1) client (Control-Client):TWAMP tests originating end, is sent to Server entities and establishes control connection request,
The communication pattern of negotiation packet;2) service end (Server):The link setup request sent from Control-Client ends is received, with
Control-Client negotiation packet communication patterns;3) transmitting terminal (Session-Sender):In TWAMP-Test sessions to
Session-Reflector sends the node of test packet, while receives the survey reflected from Session-Reflector
Message is tried, and collects performance information, statistical measurements;4) reflection end (Session-Reflector):TWAMP-Test sessions
In, the test packet from Session-Sender ends is received, and send response message.
Fig. 1 is the relation schematic diagram of logic entity in TWAMP, as shown in Figure 1:Lightweight TWAMP in RFC5357 standards
(TWAMP Light) is the TWAMP of simplified version, relative to TWAMP Full, only can initiate TWAMP-Test first in transmitting terminal
Message, wherein, transmitting terminal 12 is interacted with reflection end 14 using TWAMP-Test messages, and service end 16 uses with client 18
TWAMP-Control messages interact.
Fig. 2 is the relation schematic diagram of logic entity in TWAMP Light models, as shown in Fig. 2 transmitting terminal 12 and reflection end
Do not have to intercommunication TWAMP-Control messages between 14, and TWAMP-Test messages are only used only and complete detection.
But either TWAMP Full patterns or TWAMP Light patterns are that can not carry out the wrong even detection of business
, i.e. in correlation technique, TWAMP technologies can only carry out connective and time delay detection, can not carry out the industry based on TWAMP agreements
Business is wrong even to be detected, and can not then prevent that business is wrong even.
In view of the above-mentioned problems, effective solution is not yet proposed in correlation technique.
The content of the invention
The embodiments of the invention provide it is a kind of based on two-way active measurement agreement TWAMP incorrect link detection method and
Device, at least to solve the problems, such as not carrying out the wrong even detection of the business based on TWAMP agreements in correlation technique.
According to one embodiment of present invention, there is provided a kind of incorrect link based on two-way active measurement agreement TWAMP
The method of detection, applied to second instance, including:Obtain the first mark and the described second reality that the first instance is pre-set
The second mark that body is pre-set, wherein, the first instance is server device or transmitting end equipment, and the second instance is
Client device or reflection end equipment;When judging that first mark is different from the described second mark, determine that described first is real
Session between body and the second instance generates incorrect link, wherein, the session is the session based on TWAMP agreements.
Alternatively, the second instance obtains the first mark that first instance is pre-set and set in advance with the second instance
The second mark put, including:The second instance receives the message for carrying first mark that the first instance is sent;
The second instance obtains first mark from the message;The second instance locally obtains described the from second instance
Two marks.
Alternatively, first mark or second mark are pre-set by least one of mode:According to
Family is in configuration information generation first mark or second mark that management plane is set;Given birth to according to the information of detection example
Into the described first mark or second mark.
Alternatively, it is described that first mark or described second are generated in the configuration information that management plane is set according to user
Mark, including:The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark
Or second mark;And/or first mark is generated according to the information of the detection example by least one of mode
Know or described second identifies:According to the session of the TWAMP agreements or instance number generation first mark or second mark
Know;When the TWAMP agreements are applied in double layer network, according to MAC Address generation first mark or second mark
Know;When the TWAMP agreements using virtual LAN VLAN mode in double layer network and when being accessed, according to MAC Address and
VlanID generations first mark or second mark;When the TWAMP agreements are applied in three-layer network, according to
IPV4 addresses and UDP udp port generation first mark or second mark;When the TWAMP agreements
During applied in IPV6 network, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or described
Second mark.
Alternatively, methods described also includes:When in TWAMP Full patterns, the message is TWAMP-Control
Message;When in TWAMP Light patterns, the message is TWAMP-Test messages.
According to another embodiment of the invention, there is provided a kind of mistake based on two-way active measurement agreement TWAMP is even
Detection method is connect, applied to first instance, including:Obtain the first mark that the first instance pre-sets and second instance is pre-
The second mark first set, wherein, the first instance is server device or transmitting end equipment, and the second instance is client
End equipment or reflection end equipment;When the judgement first mark is different from the described second mark, determine that described first is real
Session between body and the second instance generates incorrect link, wherein, the session is the session based on TWAMP agreements.
Alternatively, the first instance obtains the first mark that the first instance is pre-set and set in advance with second instance
The second mark put, including:The first instance receives the second message that the second instance is sent, wherein, second report
First mark and the described second mark are carried in text, described first is identified as the second instance from the first instance
The mark obtained in the first message sent, described second is identified as the mark that the second instance locally obtains from second instance
Know.
Alternatively, first mark or second mark are pre-set by least one of mode:According to
Family is in configuration information generation first mark or second mark that management plane is set;Given birth to according to the information of detection example
Into the described first mark or second mark.
Alternatively, it is described that first mark or described second are generated in the configuration information that management plane is set according to user
Mark, including:The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark
Or second mark;And/or first mark is generated according to the information of the detection example by least one of mode
Know or described second identifies:According to the session of the TWAMP agreements or instance number generation first mark or second mark
Know;When the TWAMP agreements are applied in double layer network, according to MAC Address generation first mark or second mark
Know;When the TWAMP agreements using virtual LAN VLAN mode in double layer network and when being accessed, according to MAC Address and
VlanID generations first mark or second mark;When the TWAMP agreements are applied in three-layer network, according to
IPV4 addresses and UDP udp port generation first mark or second mark;When the TWAMP agreements
During applied in IPV6 network, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or described
Second mark.
Alternatively, methods described also includes:When in TWAMP Full patterns, first message and second report
Text is TWAMP-Control messages;When in TWAMP Light patterns, first message and second message are
TWAMP-Test messages.
According to another embodiment of the present invention, there is provided a kind of incorrect link based on two-way active measurement agreement TWAMP
Detection means, applied to second instance, including:Acquisition module, for obtaining the first mark and the institute that first instance is pre-set
The second mark that second instance pre-sets is stated, wherein, the first instance is server device or transmitting end equipment, described the
Two entities are client device or reflection end equipment;Determining module, judge first mark and the described second mark for working as
When different, determine that the session between the first instance and the second instance generates incorrect link, wherein, the session is
Session based on TWAMP agreements.
Alternatively, the acquisition module is additionally operable to receive the report for carrying first mark that the first instance is sent
Text;First mark is obtained from the message;Second mark is locally obtained from second instance.
Alternatively, first mark or second mark are pre-set by least one of mode:According to
Family is in configuration information generation first mark or second mark that management plane is set;Given birth to according to the information of detection example
Into the described first mark or second mark
Alternatively, it is described that first mark or described second are generated in the configuration information that management plane is set according to user
Mark, including:The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark
Or second mark;And/or first mark is generated according to the information of the detection example by least one of mode
Know or described second identifies:According to the session of the TWAMP agreements or instance number generation first mark or second mark
Know;When the TWAMP agreements are applied in double layer network, according to MAC Address generation first mark or second mark
Know;When the TWAMP agreements using virtual LAN VLAN mode in double layer network and when being accessed, according to MAC Address and
VlanID generations first mark or second mark;When the TWAMP agreements are applied in three-layer network, according to
IPV4 addresses and UDP udp port generation first mark or second mark;When the TWAMP agreements
During applied in IPV6 network, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or described
Second mark.
According to another embodiment of the present invention, there is provided a kind of incorrect link based on two-way active measurement agreement TWAMP
Detection means, applied to first instance, including:Acquisition module, the first mark pre-set for obtaining the first instance
The second mark pre-set with second instance, wherein, the first instance is server device or transmitting end equipment, described the
Two entities are client device or reflection end equipment;Determining module, judge first mark and the described second mark for working as
When different, determine that the session between the first instance and the second instance generates incorrect link, wherein, the session is
Session based on TWAMP agreements.
Alternatively, the acquisition module is additionally operable to receive the second message that the second instance is sent, wherein, described second
Carried in message it is described first mark with described second mark, described first be identified as the second instance according to carry
The mark of the first Receive message of the first mark is stated, described second is identified as what the second instance locally obtained from second instance
Mark.
Alternatively, first mark or second mark are pre-set by least one of mode:According to
Family is in configuration information generation first mark or second mark that management plane is set;Given birth to according to the information of detection example
Into the described first mark or second mark.
Alternatively, it is described that first mark or described second are generated in the configuration information that management plane is set according to user
Mark, including:The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark
Or second mark;And/or first mark is generated according to the information of the detection example by least one of mode
Know or described second identifies:According to the session of the TWAMP agreements or instance number generation first mark or second mark
Know;When the TWAMP agreements are applied in double layer network, according to MAC Address generation first mark or second mark
Know;When the TWAMP agreements using virtual LAN VLAN mode in double layer network and when being accessed, according to MAC Address and
VlanID generations first mark or second mark;When the TWAMP agreements are applied in three-layer network, according to
IPV4 addresses and UDP udp port generation first mark or second mark;When the TWAMP agreements
During applied in IPV6 network, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or described
Second mark.
According to 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:Obtain the first mark that the first instance pre-sets and the second instance is advance
The second mark set, wherein, the first instance is server device or transmitting end equipment, and the second instance is client
Equipment or reflection end equipment;When judging that first mark is different from the described second mark, the first instance and institute are determined
The session stated between second instance generates incorrect link, wherein, the session is the session based on TWAMP agreements.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The second instance connects
Receive the message for carrying first mark that the first instance is sent;Described in the second instance obtains from the message
First mark;The second instance locally obtains second mark from second instance.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Managed according to user
Configuration information generation first mark or second mark that plane is set;According to the information of detection example generation described the
One mark or second mark.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By in TWAMP-
Retain field Test_ID generations first mark or second mark that the user is set in Test agreements;According to institute
State session or instance number generation first mark or second mark of TWAMP agreements;When the TWAMP agreements are applied
When in double layer network, according to MAC Address generation first mark or second mark;When the TWAMP agreements are at two layers
In network and using virtual LAN VLAN mode access when, according to MAC Address and vlanID generation it is described first mark or
Second mark;When the TWAMP agreements are applied in three-layer network, according to IPV4 addresses and UDP
Udp port generation first mark or second mark;When in network of the TWAMP agreements applied to IPV6, root
According to IPV6 addresses and the generation of user data datagram protocol udp port first mark or second mark.
According to 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:The first mark that the first instance is pre-set is obtained to pre-set with second instance
Second mark, wherein, the first instance is server device or transmitting end equipment, and the second instance is client device
Or reflection end equipment;When the judgement first mark is different from the described second mark, the first instance and institute are determined
The session stated between second instance generates incorrect link, wherein, the session is the session based on TWAMP agreements.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:The first instance connects
The second message that the second instance is sent is received, wherein, first mark and described second is carried in second message
Mark, described first is identified as the mark obtained in the first message that the second instance is sent from the first instance, described
Second is identified as the mark that the second instance locally obtains from second instance.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Managed according to user
Configuration information generation first mark or second mark that plane is set;According to the information of detection example generation described the
One mark or second mark.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:By in TWAMP-
Retain field Test_ID generations first mark or second mark that the user is set in Test agreements;According to institute
State session or instance number generation first mark or second mark of TWAMP agreements;When the TWAMP agreements are applied
When in double layer network, according to MAC Address generation first mark or second mark;When the TWAMP agreements are at two layers
In network and using virtual LAN VLAN mode access when, according to MAC Address and vlanID generation it is described first mark or
Second mark;When the TWAMP agreements are applied in three-layer network, according to IPV4 addresses and UDP
Udp port generation first mark or second mark;When in network of the TWAMP agreements applied to IPV6, root
According to IPV6 addresses and the generation of user data datagram protocol udp port first mark or second mark.
By the present invention, because second instance can obtain the first mark that first instance pre-sets and second instance is pre-
Second first set identifies and when judging that the first mark is different from the second mark, second instance determines first instance and second in fact
Session between body generates incorrect link, and then realizes the wrong even detection of business for TWAMP, solves in correlation technique
TWAMP technologies can only carry out connective and time delay detection, can not carry out that the business based on TWAMP agreements is wrong even to be detected, then without
Method prevents the wrong technical problem even of business of the TWAMP based on TWAMP agreements, reaches and realizes that the business based on TWAMP agreements is wrong
Even detect, then prevent the business based on TWAMP agreements is wrong to connect and may be directly applied to miscellaneous service mould in PTN network
Type, flexibly realize the effect of end-to-end wrong even detection.
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 relation schematic diagram of logic entity in TWAMP;
Fig. 2 is the relation schematic diagram of logic entity in TWAMP Light models;
Fig. 3 is network architecture diagram according to embodiments of the present invention;
Fig. 4 is the flow chart (one) of the incorrect link detection method according to embodiments of the present invention based on TWAMP;
Fig. 5 is the lattice of the protocol Data Unit for the Greeting messages that server device according to embodiments of the present invention is sent
Formula schematic diagram;
Fig. 6 is the TWAMP-Test message structure schematic diagrames that transmitting end equipment according to embodiments of the present invention is sent;
Fig. 7 is the flow chart (one) according to the incorrect link detection method based on TWAMP of alternative embodiment of the present invention;
Fig. 8 is the flow chart (two) according to the incorrect link detection method based on TWAMP of alternative embodiment of the present invention;
Fig. 9 is the flow chart (two) of the incorrect link detection method according to embodiments of the present invention based on TWAMP;
Figure 10 is the protocol data for the Set-Up-Response messages that client device according to embodiments of the present invention is sent
The form schematic diagram of unit;
Figure 11 is the TWAMP-Test message structure schematic diagrames that reflection end equipment according to embodiments of the present invention is sent;
Figure 12 is the flow chart (three) according to the incorrect link detection method based on TWAMP of alternative embodiment of the present invention;
Figure 13 is the flow chart (four) according to the incorrect link detection method based on TWAMP of alternative embodiment of the present invention;
Figure 14 is the structured flowchart (one) of the incorrect link detection means according to embodiments of the present invention based on TWAMP;
Figure 15 is the structured flowchart (two) of the incorrect link detection means according to embodiments of the present invention based on TWAMP.
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
Fig. 3 is network architecture diagram according to embodiments of the present invention, as shown in figure 3, the network architecture includes:First instance 32
With second instance 34, wherein, first instance 32 sends to second instance 34 and carries the first message of the first mark;Second instance
34 identify first compared with the second mark of local, judge whether session generates incorrect link, or second instance
34 will carry the first mark and the second message of the second mark is sent to first instance 32, first instance 32 by the first mark and
Second mark is compared, and judges whether session generates incorrect link.
A kind of inspection of the incorrect link based on TWAMP of network architecture run on shown in Fig. 3 is provided in the present embodiment
Survey method, Fig. 4 is the flow chart (one) of the incorrect link detection method according to embodiments of the present invention based on TWAMP, such as Fig. 4 institutes
Show, the flow comprises the following steps:
Step S402, second instance obtain the first mark that first instance pre-sets and second instance is pre-set the
Two marks, wherein, first instance is server device or transmitting end equipment, and second instance is that client device or reflection end are set
It is standby;
Step S404, when second instance judges that the first mark is different from the second mark, determine first instance and second in fact
Session between body generates incorrect link, wherein, session is the session based on TWAMP agreements.
In the present embodiment, the first mark in step S402 and step S404 and the second mark can be that anti-error connecting identifies
(Preventing Misconnect identifier, be abbreviated as MisConnectID), but it is not limited to this.
Alternatively, MisConnectID can be defined but is not limited to 32bit ID numerical value, if 32bit, then be identified
ID scopes be 0-0xFFFFFFFF.If 48, then the ID scopes identified are 0-0xFFFFFFFFFFFF.If 96
Position, then the ID scopes identified are 0-0xFFFFFFFFFFFFFFFFFFFFFFFF.
By above-mentioned steps, second instance can obtain the first mark that first instance pre-sets and second instance is advance
Second set identifies and when judging that the first mark is different from the second mark, second instance determines first instance and second instance
Between session generate incorrect link, and then realize that business for TWAMP is wrong even to be detected, solve in correlation technique
TWAMP technologies can only carry out connective and time delay detection, can not carry out that the business based on TWAMP agreements is wrong even to be detected, then without
Method prevents the wrong technical problem even of the business based on TWAMP agreements, reaches and realizes that the business mistake based on TWAMP agreements even detects,
Then prevent the business based on TWAMP agreements is wrong to connect and may be directly applied to miscellaneous service model in PTN network, it is flexibly real
The effect of existing end-to-end wrong even detection.
In an optional embodiment, step S402 can be performed in the following manner:It is real that second instance receives first
The message for carrying the first mark that body is sent;Second instance obtains the first mark from message;Second instance is from second instance
It is local to obtain the second mark.In the present embodiment, the message that second instance is sent by receiving first instance, obtains first instance
The second mark that the first mark and second instance pre-set is pre-set, realizes quick obtaining identification information.
In an optional embodiment, the first mark or the second mark are pre-set by least one of mode:
The mark of configuration information generation first or the second mark set according to user in management plane;Generated according to the information of detection example
First mark or the second mark.In the present embodiment, the mark of configuration information generation first set according to user in management plane
Or second mark can according to the TWAMP detection examples of user configuration ID, or borrow TWAMP test cases mark generation
First mark or the second mark;Can be to be route by VPN according to the mark of the information of detection example generation first or the second mark
Forward table (Virtual Routing Forwarding, referred to as VRF) ID and the mark of IP address information generation first or second
Mark.
In an optional embodiment, the mark of configuration information generation first that is set according to user in management plane or the
Two marks, including:The mark of field Test_ID generations first or second set by retaining user in TWAMP-Test agreements
Mark;And/or by least one of mode according to the mark of the information of detection example generation first or the second mark:According to
The session of TWAMP agreements or the mark of instance number generation first or the second mark;When TWAMP agreements are applied in double layer network,
According to the mark of MAC Address generation first or the second mark;When TWAMP agreements in double layer network and use VLAN
When VLAN modes access, according to MAC Address and the mark of vlanID generations first or the second mark;When TWAMP agreements are applied three
When in layer network, according to IPV4 addresses and the mark of UDP udp port generation first or the second mark;Work as TWAMP
When agreement is applied in IPV6 network, according to IPV6 addresses and the mark of user data datagram protocol udp port generation first or second
Mark, in the present embodiment, the field Test_ID that above-mentioned user is set can be to pass through Command Line Interface (Command Line
Interface, referred to as CLI) or network management interface configured, but be not limited to this.
Alternatively, in the present embodiment, above-mentioned first mark or the second mark can be MisConnectID, therefore, lead to
It can be to pass through to cross the mark of field Test_ID generations first for retaining user's setting in TWAMP-Test agreements or the second mark
Reserved field Test_ID (having 2 Bytes) generates MisConnectID in TWAMP-Test agreements, i.e. MisConnectID
=Test_ID;Can be to use TWAMP meetings according to the session of TWAMP agreements or the mark of instance number generation first or the second mark
(or instance number) is talked about to produce MisConnectID, i.e. MisConnectID=Session ID (or Instance
ID);Can be to work as according to the mark of MAC Address generation first or the second mark when TWAMP agreements are applied in double layer network
TWAMP agreements are applied in double layer network, and MisConnectID is generated using MAC Address, i.e. MisConnectID=purposes
MAC Address or MisConnectID=source MACs;When TWAMP agreements in double layer network and use VLAN
When VLAN modes access, it can be obtained in the following way according to MAC Address and the mark of vlanID generations first or the second mark:
MisConnectID=target MAC (Media Access Control) address+vlanID or MisConnectID=source MACs+vlanID;When TWAMP agreements
When applying in three-layer network, according to IPV4 addresses and the mark of UDP udp port generation first or the second mark
It can obtain in the following way:MisConnectID=IPV4 source addresses+source udp port or MisConnectID=IPV4 mesh
Address+purpose udp port;When in network of the TWAMP agreements applied to IPV6, according to IPV6 addresses and user data datagram protocol
The mark of udp port generation first or the second mark can obtain in the following way:MisConnectID=IPV6 source addresses+source
Udp port or MisConnectID=IPV6 destination addresses+purpose udp port, using above-mentioned formula set first mark or
Second mark is only the optional embodiment of the present invention, however it is not limited to this.
Alternatively, above-mentioned MisConnectID is variable-length, can be according to different network morphologies, to determine what is needed
Digit, take such as 64,128, padding regions in message.
In the present embodiment, generate MisConnectID through the above way, can utilize the MisConnectID for
TWAMP carries out the wrong even detection of business, effectively prevent TWAMP business mistake even and may be directly applied to various in PTN network
Business model, flexibly realize end-to-end wrong even detection.
In an optional embodiment, when in TWAMP Full patterns, above-mentioned message is reported for TWAMP-Control
Text;When in TWAMP Light patterns, above-mentioned message is TWAMP-Test messages.
In the present embodiment, TWAMP-Control messages can be Greeting messages, wherein, server device is sent
Greeting messages protocol Data Unit form such as Fig. 5.
Alternatively, when in TWAMP Light patterns, the TWAMP-Test message structures that transmitting end equipment is sent are as schemed
Shown in 6.
In an optional embodiment, Fig. 7 is examined according to the incorrect link based on TWAMP of alternative embodiment of the present invention
The flow chart (one) of survey method, as shown in fig. 7, the scene of the embodiment is TWAMP Full patterns, the flow includes following step
Suddenly:
Step S702, server device set MisConnectID and MisConnectID are filled into Greeting messages
In, it is sent to client device;
Step S704, after client device receives Greeting messages, parse MisConnectID in the message simultaneously
By the MisConnectID compared with the MisConnectID that client device is pre-set;
Step S706, when judging what the MisConnectID in Greeting messages and client device were pre-set
During MisConnectID differences, determine that the TWAMP in session there occurs incorrect link, generates wrong even information;
Step S708, client device give the mistake even information reporting to TWAMP performance alarm modules.
In the present embodiment, it can fill out MisConnectID MisConnectID to be filled into Greeting messages
The afterbody in Greeting messages is filled, 12 eight hytes as shown in Figure 5.If digit is inadequate, can be extended.Using above-mentioned
Method can interact the stage in TWAMP parameter negotiation, it becomes possible to which detection error connects.
In an optional implementation, Fig. 8 is detected according to the incorrect link based on TWAMP of alternative embodiment of the present invention
The flow chart (two) of method, as shown in figure 8, the scene of the embodiment is TWAMP Light patterns, the flow includes following step
Suddenly:
Step S802, transmitting end equipment set MisConnectID and MisConnectID are filled into TWAMP-Test reports
Wen Zhong, it is sent to reflection end equipment;
Step S804, after reflection end equipment receives TWAMP-Test messages, parse the MisConnectID in the message
And by the MisConnectID compared with the MisConnectID that reflection end equipment is pre-set;
Step S806, pre-set when judging MisConnectID in TWAMP-Test messages with reflecting end equipment
During MisConnectID differences, determine that the TWAMP in session there occurs incorrect link, generates wrong even information;
Step S808, reflection end equipment give the mistake even information reporting to TWAMP performance alarm modules.
In the present embodiment, it can be by MisConnectID MisConnectID to be filled into TWAMP-Test messages
Be filled into TWAMP-Test in Test_ID and padding regions, as shown in fig. 6, but be not restricted to that this.Using above-mentioned side
Method can effectively detect the failure of outgoing link appearance, and foundation is provided for remedial measure.
Embodiment 2
A kind of inspection of the incorrect link based on TWAMP of network architecture run on shown in Fig. 3 is provided in the present embodiment
Survey method, Fig. 9 is the flow chart (two) of the incorrect link detection method according to embodiments of the present invention based on TWAMP, such as Fig. 9 institutes
Show, the flow comprises the following steps:
Step S902, first instance obtain the first mark that first instance pre-sets and second instance is pre-set the
Two marks, wherein, first instance is server device or transmitting end equipment, and second instance is that client device or reflection end are set
It is standby;
Step S904, when first instance judges that the first mark is different from the second mark, determine first instance and second in fact
Session between body generates incorrect link, wherein, session is the session based on TWAMP agreements.
By above-mentioned steps, first instance can obtain the first mark that first instance pre-sets and second instance is advance
Second set identifies and when judging that the first mark is different from the second mark, first instance determines first instance and second instance
Between session generate incorrect link, and then realize that business for TWAMP is wrong even to be detected, solve in correlation technique
TWAMP technologies can only carry out connective and time delay detection, can not carry out that the business based on TWAMP agreements is wrong even to be detected, then without
Method prevents the wrong technical problem even of business of the TWAMP based on TWAMP agreements, reaches and realizes being directed to based on TWAMP agreements
TWAMP business is wrong even to be detected, and then prevents the business based on TWAMP agreements is wrong to connect and may be directly applied to PTN network
Middle miscellaneous service model, flexibly realize the effect of end-to-end wrong even detection.
In an optional embodiment, above-mentioned steps S902 can be realized by such a way:First instance receives
The second message that second instance is sent, wherein, the first mark and the second mark are carried in the second message, first is identified as second
The mark obtained in the first message that entity is sent from first instance, second is identified as second instance locally obtains from second instance
Mark.In the present embodiment, first instance need not store its first local mark, it is only necessary to according to the second message of acquisition
The first mark and the second mark carried is assured that whether the session between first instance and second instance generates mistake
Connection.
In an optional embodiment, the first mark or the second mark are pre-set by least one of mode:
The mark of configuration information generation first or the second mark set according to user in management plane;Generated according to the information of detection example
First mark or the second mark.In the present embodiment, the mark of configuration information generation first set according to user in management plane
Or second mark can according to the TWAMP detection examples of user configuration ID, or borrow TWAMP test cases mark generation
First mark or the second mark;According to the mark of the information of detection example generation first or the second mark can be by VRF ID and
The mark of IP address information generation first or the second mark.
In an optional embodiment, the mark of configuration information generation first that is set according to user in management plane or the
Two marks, including:The mark of field Test_ID generations first or second set by retaining user in TWAMP-Test agreements
Mark;And/or by least one of mode according to the mark of the information of detection example generation first or the second mark:According to
The session of TWAMP agreements or the mark of instance number generation first or the second mark;When TWAMP agreements are applied in double layer network,
According to the mark of MAC Address generation first or the second mark;When TWAMP agreements in double layer network and use VLAN
When VLAN modes access, according to MAC Address and the mark of vlanID generations first or the second mark;When TWAMP agreements are applied three
When in layer network, according to IPV4 addresses and the mark of UDP udp port generation first or the second mark;Work as TWAMP
When agreement is applied in IPV6 network, according to IPV6 addresses and the mark of user data datagram protocol udp port generation first or second
Mark.
Alternatively, in the present embodiment, above-mentioned first mark or the second mark can be MisConnectID, therefore, lead to
It can be to pass through to cross the mark of field Test_ID generations first for retaining user's setting in TWAMP-Test agreements or the second mark
Reserved field Test_ID (having 2 Bytes) generates MisConnectID in TWAMP-Test agreements, i.e. MisConnectID
=Test_ID;Can be to use TWAMP meetings according to the session of TWAMP agreements or the mark of instance number generation first or the second mark
(or instance number) is talked about to produce MisConnectID, i.e. MisConnectID=Session ID (or Instance
ID);Can be to work as according to the mark of MAC Address generation first or the second mark when TWAMP agreements are applied in double layer network
TWAMP agreements are applied in double layer network, and MisConnectID is generated using MAC Address, i.e. MisConnectID=purposes
MAC Address or MisConnectID=source MACs;When TWAMP agreements in double layer network and use VLAN
When VLAN modes access, it can be obtained in the following way according to MAC Address and the mark of vlanID generations first or the second mark:
MisConnectID=target MAC (Media Access Control) address+vlanID or MisConnectID=source MACs+vlanID;When TWAMP agreements
When applying in three-layer network, according to IPV4 addresses and the mark of UDP udp port generation first or the second mark
It can obtain in the following way:MisConnectID=IPV4 source addresses+source udp port or MisConnectID=IPV4 mesh
Address+purpose udp port;When in network of the TWAMP agreements applied to IPV6, according to IPV6 addresses and user data datagram protocol
The mark of udp port generation first or the second mark can obtain in the following way:MisConnectID=IPV6 source addresses+source
Udp port or MisConnectID=IPV6 destination addresses+purpose udp port, using above-mentioned formula set first mark or
Second mark is only the optional embodiment of the present invention, however it is not limited to this.
Alternatively, above-mentioned MisConnectID is variable-length, can be according to different network morphologies, to determine what is needed
Digit, take such as 64,128, padding regions in message.
In the present embodiment, generate MisConnectID through the above way, can utilize the MisConnectID for
TWAMP carries out the wrong even detection of business, effectively prevent TWAMP business mistake even and may be directly applied to various in PTN network
Business model, flexibly realize end-to-end wrong even detection.
In an optional embodiment, when in TWAMP Full patterns, the first message and the second message are
TWAMP-Control messages;When in TWAMP Light patterns, the first message and the second message are TWAMP-Test messages.
In this embodiment, TWAMP-Control messages can include Greeting messages and Set-Up-Response is reported
Text, wherein, the form of the protocol Data Unit for the Greeting messages that server device is sent is as shown in figure 5, client device
The form of the protocol Data Unit of the Set-Up-Response messages of transmission is as shown in Figure 10, and Figure 10 is implemented according to the present invention
The form schematic diagram of the protocol Data Unit for the Set-Up-Response messages that the client device of example is sent.
Alternatively, when in TWAMP Light patterns, the TWAMP-Test message structures that transmitting end equipment is sent are as schemed
Shown in 6, the TWAMP-Test message structures that reflection end equipment is sent are as shown in figure 11, and Figure 11 is according to embodiments of the present invention anti-
Penetrate the TWAMP-Test message structure schematic diagrames of end equipment transmission.
In an optional embodiment, Figure 12 is the incorrect link based on TWAMP according to alternative embodiment of the present invention
The flow chart (three) of detection method, as shown in figure 12, the scene of the embodiment is TWAMP Full patterns, and the flow includes as follows
Step:
Step S1202, server device set MisConnectID and MisConnectID are filled into Greeting reports
Wen Zhong, it is sent to client device;
Step S1204, after client device receives Greeting messages, parse MisConnectID in the message simultaneously
The MisConnectID is filled into Set-Up-Response messages with the MisConnectID that client is pre-set and sent
To server device;
Step S1206, after server device receives Set-Up-Response messages, parse and compare Set-Up-
The MisConnectID of server device in the Response messages and MisConnectID of client device;
Step S1208, as the MisConnectID for judging the server device in Set-Up-Response messages and client
During the MisConnectID differences of end equipment, determine that the TWAMP in session there occurs incorrect link, generates wrong even information;
Step S1210, server device give the mistake even information reporting to TWAMP performance alarm modules.
In the present embodiment, it is the MisConnectIDMisConnectID that server device is pre-set and client is pre-
The MisConnectID first set, which is filled into Set-Up-Response messages, to be performed according to the method shown in Figure 10, i.e.
By the tail end of MisConnectID insertion Set-Up-Response messages, but it is not limited to this.Can be using the above method
The TWAMP parameter negotiation interaction stage, it becomes possible to which detection error connects.
In an optional implementation, Figure 13 is examined according to the incorrect link based on TWAMP of alternative embodiment of the present invention
The flow chart (four) of survey method, as shown in figure 13, the scene of the embodiment is TWAMP Light patterns, and the flow includes as follows
Step:
Step S1302, transmitting end equipment set MisConnectID and MisConnectID are filled into TWAMP-Test
In message, reflection end equipment is sent to;
Step S1304, after reflection end equipment receives TWAMP-Test messages, parse the MisConnectID in the message
And the MisConnectID is filled into TWAMP-Test messages with the MisConnectID that reflection end is pre-set and is sent to
Transmitting end equipment;
Step S1306, after transmitting end equipment receives TWAMP-Test messages, parse and compare in TWAMP-Test messages
Transmitting end equipment MisConnectID and reflection end equipment MisConnectID;
Step S1308, when the MisConnectID and reflection end that judge the transmitting end equipment in TWAMP-Test messages are set
During standby MisConnectID differences, determine that the TWAMP in session there occurs incorrect link, generates wrong even information;
Step S1310, transmitting end equipment give the mistake even information reporting to TWAMP performance alarm modules.
In the present embodiment, it can be by MisConnectID MisConnectID to be filled into TWAMP-Test messages
It is filled into TWAMP-Test in Test_ID and padding regions, as shown in figure 11, but be not restricted to that this.Using above-mentioned side
Method can effectively detect the failure of outgoing link appearance, and foundation is provided for remedial measure.
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 3
A kind of incorrect link detection means based on TWAMP is additionally provided in the present embodiment, and the device is used to realize
Embodiment and preferred embodiment are stated, had carried out repeating no more for explanation.As used below, term " module " can be with
Realize the combination of the software and/or hardware of predetermined function.Although the device described by following examples is preferably come real with software
It is existing, but hardware, or the realization of the combination of software and hardware is also what may and be contemplated.
Figure 14 is the structured flowchart (one) of the incorrect link detection means according to embodiments of the present invention based on TWAMP, such as
Shown in Figure 14, the device is applied to second instance, including:Acquisition module 142, first pre-set for obtaining first instance
The second mark that mark and second instance are pre-set, wherein, first instance is server device or transmitting end equipment, and second is real
Body is client device or reflection end equipment;Determining module 144, for when judge first mark it is different from the second mark when, really
The session determined between first instance and second instance generates incorrect link, wherein, session is the session based on TWAMP agreements.
In an optional embodiment, above-mentioned acquisition module 142 is additionally operable to receive that first instance sends carries the
The message of one mark;The first mark is obtained from message;The second mark is locally obtained from second instance.
In an optional embodiment, the first mark or the second mark are pre-set by least one of mode
Know:The mark of configuration information generation first or the second mark set according to user in management plane;According to the information of detection example
The mark of generation first or the second mark.
In an optional embodiment, the mark of configuration information generation first that is set according to user in management plane or the
Two marks can be accomplished by the following way:The field Test_ID set by retaining user in TWAMP-Test agreements gives birth to
Into the first mark or the second mark;And/or according to the information of detection example generation first mark or second mark can by with
Under type is realized:According to the session of TWAMP agreements or the mark of instance number generation first or the second mark;When TWAMP agreement applications
When in double layer network, according to the mark of MAC Address generation first or the second mark;When TWAMP agreements in double layer network and
When being accessed using virtual LAN VLAN mode, according to MAC Address and the mark of vlanID generations first or the second mark;When
When TWAMP agreements are applied in three-layer network, according to IPV4 addresses and UDP udp port generation first mark or
Second mark;When in network of the TWAMP agreements applied to IPV6, given birth to according to IPV6 addresses and user data datagram protocol udp port
Into the first mark or the second mark.
Embodiment 4
A kind of incorrect link detection means based on TWAMP is additionally provided in the present embodiment, and the device is used to realize
Embodiment and preferred embodiment are stated, had carried out repeating no more for explanation.As used below, term " module " can be with
Realize the combination of the software and/or hardware of predetermined function.Although the device described by following examples is preferably come real with software
It is existing, but hardware, or the realization of the combination of software and hardware is also what may and be contemplated.
Figure 15 is the structured flowchart (two) of the incorrect link detection means according to embodiments of the present invention based on TWAMP, such as
Shown in Figure 15, the device is applied to first instance, including:Acquisition module 152, first pre-set for obtaining first instance
The second mark that mark and second instance are pre-set, wherein, first instance is server device or transmitting end equipment, and second is real
Body is client device or reflection end equipment;Determining module 154, for when judge first mark it is different from the second mark when, really
The session determined between first instance and second instance generates incorrect link, wherein, session is the session based on TWAMP agreements.
In an optional embodiment, above-mentioned acquisition module 152 is additionally operable to receive the second message that second instance is sent,
Wherein, the first mark is carried in the second message and is identified as second instance according to carrying the first mark with the second mark, first
The first Receive message mark, second is identified as the mark that second instance locally obtains from second instance.
In an optional embodiment, the first mark or the second mark are pre-set by least one of mode
Know:The mark of configuration information generation first or the second mark set according to user in management plane;According to the information of detection example
The mark of generation first or the second mark.
In an optional embodiment, the mark of configuration information generation first that is set according to user in management plane or the
Two marks can be accomplished by the following way:The field Test_ID set by retaining user in TWAMP-Test agreements gives birth to
Into the first mark or the second mark;And/or according to the information of detection example generation first mark or second mark can by with
Under type is realized:According to the session of TWAMP agreements or the mark of instance number generation first or the second mark;When TWAMP agreement applications
When in double layer network, according to the mark of MAC Address generation first or the second mark;When TWAMP agreements in double layer network and
When being accessed using virtual LAN VLAN mode, according to MAC Address and the mark of vlanID generations first or the second mark;When
When TWAMP agreements are applied in three-layer network, according to IPV4 addresses and UDP udp port generation first mark or
Second mark;When in network of the TWAMP agreements applied to IPV6, given birth to according to IPV6 addresses and user data datagram protocol udp port
Into the first mark or the second mark.
Embodiment 5
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, obtain first instance pre-set first mark and
The second mark that second instance is pre-set, wherein, first instance is server device or transmitting end equipment, and second instance is visitor
Family end equipment or reflection end equipment;S2, when judging that the first mark is different from the second mark, determine first instance and second instance
Between session generate incorrect link, wherein, session is the session based on TWAMP agreements.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, second instance connect
Receive the message for carrying the first mark that first instance is sent;S2, second instance obtain the first mark from message;S3, second
Entity locally obtains the second mark from second instance.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, existed according to user
The mark of configuration information generation first or the second mark that management plane is set;S2, according to the mark of the information of detection example generation first
Know or second identifies.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, by
Retain the mark of field Test_ID generations first or the second mark that user is set in TWAMP-Test agreements;S2, according to TWAMP
The session of agreement or the mark of instance number generation first or the second mark;S3, when TWAMP agreements are applied in double layer network, root
According to the mark of MAC Address generation first or the second mark;S4, when TWAMP agreements in double layer network and use VLAN
When VLAN modes access, according to MAC Address and the mark of vlanID generations first or the second mark;S5, when TWAMP agreements are applied
When in three-layer network, according to IPV4 addresses and the mark of UDP udp port generation first or the second mark;S6, when
TWAMP agreements applied to IPV6 network in when, according to IPV6 addresses and user data datagram protocol udp port generation first mark or
Second mark.
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, obtain first instance pre-set first mark and
The second mark that second instance is pre-set, wherein, first instance is server device or transmitting end equipment, and second instance is visitor
Family end equipment or reflection end equipment;S2, when judging that the first mark is different from the second mark, determine first instance and second instance
Between session generate incorrect link, wherein, session is the session based on TWAMP agreements.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:First instance receives
The second message that second instance is sent, wherein, the first mark and the second mark are carried in the second message, first is identified as second
The mark obtained in the first message that entity is sent from first instance, second is identified as second instance locally obtains from second instance
Mark.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, existed according to user
The mark of configuration information generation first or the second mark that management plane is set;S2, according to the mark of the information of detection example generation first
Know or second identifies.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:S1, by
Retain the mark of field Test_ID generations first or the second mark that user is set in TWAMP-Test agreements;S2, according to TWAMP
The session of agreement or the mark of instance number generation first or the second mark;S3, when TWAMP agreements are applied in double layer network, root
According to the mark of MAC Address generation first or the second mark;S4, when TWAMP agreements in double layer network and use VLAN
When VLAN modes access, according to MAC Address and the mark of vlanID generations first or the second mark;S5, when TWAMP agreements are applied
When in three-layer network, according to IPV4 addresses and the mark of UDP udp port generation first or the second mark;S6, when
TWAMP agreements applied to IPV6 network in when, according to IPV6 addresses and user data datagram protocol udp port generation first mark or
Second mark.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
Disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
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 (18)
1. a kind of incorrect link detection method based on two-way active measurement agreement TWAMP, it is characterised in that real applied to second
Body, including:
The second mark that the first mark that the first instance is pre-set is pre-set with the second instance is obtained, wherein,
The first instance is server device or transmitting end equipment, and the second instance is client device or reflection end equipment;
When judging that first mark is different from the described second mark, determine between the first instance and the second instance
Session generate incorrect link, wherein, the session is the session based on TWAMP agreements.
2. according to the method for claim 1, it is characterised in that the second instance obtain that first instance pre-sets the
The second mark that one mark and the second instance are pre-set, including:
The second instance receives the message for carrying first mark that the first instance is sent;
The second instance obtains first mark from the message;
The second instance locally obtains second mark from second instance.
3. method according to claim 1 or 2, it is characterised in that pre-set by least one of mode described
First mark or second mark:
According to user in configuration information generation first mark or second mark that management plane is set;
According to the information of detection example generation first mark or second mark.
4. according to the method for claim 3, it is characterised in that
It is described to be identified according to user in configuration information generation first mark that management plane is set or described second, including:
The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark or described second
Mark;And/or
First mark or second mark are generated according to the information of the detection example by least one of mode:
According to the session of the TWAMP agreements or instance number generation first mark or second mark;When the TWAMP agreements
When applying in double layer network, according to MAC Address generation first mark or second mark;When the TWAMP agreements
In double layer network and when being accessed using virtual LAN VLAN mode, according to MAC Address and vlanID generations described first
Mark or second mark;When the TWAMP agreements are applied in three-layer network, according to IPV4 addresses and user datagram
Protocol UDP port generation first mark or second mark;When in network of the TWAMP agreements applied to IPV6
When, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or second mark.
5. method according to claim 1 or 2, it is characterised in that methods described also includes:
When in TWAMP Full patterns, the message is TWAMP-Control messages;
When in TWAMP Light patterns, the message is TWAMP-Test messages.
6. a kind of incorrect link detection method based on two-way active measurement agreement TWAMP, it is characterised in that real applied to first
Body, including:
The second mark that the first mark that the first instance is pre-set is pre-set with second instance is obtained, wherein, it is described
First instance is server device or transmitting end equipment, and the second instance is client device or reflection end equipment;
When the judgement first mark is different from the described second mark, the first instance and the second instance are determined
Between session generate incorrect link, wherein, the session is the session based on TWAMP agreements.
7. according to the method for claim 6, it is characterised in that the first instance obtains the first instance and pre-set
First mark and second instance pre-set second mark, including:
The first instance receives the second message that the second instance is sent, wherein, carried in second message described
First mark and the described second mark, described first is identified as the first message that the second instance is sent from the first instance
The mark of middle acquisition, described second is identified as the mark that the second instance locally obtains from second instance.
8. the method according to claim 6 or 7, it is characterised in that pre-set by least one of mode described
First mark or second mark:
According to user in configuration information generation first mark or second mark that management plane is set;
According to the information of detection example generation first mark or second mark.
9. according to the method for claim 8, it is characterised in that
It is described to be identified according to user in configuration information generation first mark that management plane is set or described second, including:
The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark or described second
Mark;And/or
First mark or second mark are generated according to the information of the detection example by least one of mode:
According to the session of the TWAMP agreements or instance number generation first mark or second mark;When the TWAMP agreements
When applying in double layer network, according to MAC Address generation first mark or second mark;When the TWAMP agreements
In double layer network and when being accessed using virtual LAN VLAN mode, according to MAC Address and vlanID generations described first
Mark or second mark;When the TWAMP agreements are applied in three-layer network, according to IPV4 addresses and user datagram
Protocol UDP port generation first mark or second mark;When in network of the TWAMP agreements applied to IPV6
When, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or second mark.
10. the method according to claim 6 or 7, it is characterised in that methods described also includes:
When in TWAMP Full patterns, first message and second message are TWAMP-Control messages;
When in TWAMP Light patterns, first message and second message are TWAMP-Test messages.
11. a kind of incorrect link detection means based on two-way active measurement agreement TWAMP, it is characterised in that applied to second
Entity, including:
Acquisition module, the second mark pre-set for obtaining the first mark that first instance is pre-set with the second instance
Know, wherein, the first instance is server device or transmitting end equipment, and the second instance is client device or reflection end
Equipment;
Determining module, for when judging that first mark is different from the described second mark, determining the first instance and institute
The session stated between second instance generates incorrect link, wherein, the session is the session based on TWAMP agreements.
12. device according to claim 11, it is characterised in that the acquisition module is additionally operable to receive the first instance
What is sent carries the message of first mark;First mark is obtained from the message;Locally obtained from second instance
Take second mark.
13. the device according to claim 11 or 12, it is characterised in that institute is pre-set by least one of mode
State the first mark or second mark:
According to user in configuration information generation first mark or second mark that management plane is set;
According to the information of detection example generation first mark or second mark.
14. device according to claim 13, it is characterised in that
It is described to be identified according to user in configuration information generation first mark that management plane is set or described second, including:
The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark or described second
Mark;And/or
First mark or second mark are generated according to the information of the detection example by least one of mode:
According to the session of the TWAMP agreements or instance number generation first mark or second mark;When the TWAMP agreements
When applying in double layer network, according to MAC Address generation first mark or second mark;When the TWAMP agreements
In double layer network and when being accessed using virtual LAN VLAN mode, according to MAC Address and vlanID generations described first
Mark or second mark;When the TWAMP agreements are applied in three-layer network, according to IPV4 addresses and user datagram
Protocol UDP port generation first mark or second mark;When in network of the TWAMP agreements applied to IPV6
When, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or second mark.
15. a kind of incorrect link detection means based on two-way active measurement agreement TWAMP, it is characterised in that applied to first
Entity, including:
Acquisition module, the second mark pre-set for obtaining the first mark that the first instance is pre-set with second instance
Know, wherein, the first instance is server device or transmitting end equipment, and the second instance is client device or reflection end
Equipment;
Determining module, for when judging that first mark is different from the described second mark, determining the first instance and institute
The session stated between second instance generates incorrect link, wherein, the session is the session based on TWAMP agreements.
16. device according to claim 15, it is characterised in that the acquisition module is additionally operable to receive the second instance
The second message sent, wherein, first mark and the described second mark, first mark are carried in second message
It is mark of the second instance according to the first Receive message for carrying first mark to know, described second be identified as it is described
The mark that second instance locally obtains from second instance.
17. the device according to claim 15 or 16, it is characterised in that institute is pre-set by least one of mode
State the first mark or second mark:
According to user in configuration information generation first mark or second mark that management plane is set;
According to the information of detection example generation first mark or second mark.
18. device according to claim 17, it is characterised in that
It is described to be identified according to user in configuration information generation first mark that management plane is set or described second, including:
The field Test_ID set by retaining the user in TWAMP-Test agreements generates first mark or described second
Mark;And/or
First mark or second mark are generated according to the information of the detection example by least one of mode:
According to the session of the TWAMP agreements or instance number generation first mark or second mark;When the TWAMP agreements
When applying in double layer network, according to MAC Address generation first mark or second mark;When the TWAMP agreements
In double layer network and when being accessed using virtual LAN VLAN mode, according to MAC Address and vlanID generations described first
Mark or second mark;When the TWAMP agreements are applied in three-layer network, according to IPV4 addresses and user datagram
Protocol UDP port generation first mark or second mark;When in network of the TWAMP agreements applied to IPV6
When, according to IPV6 addresses and the generation of user data datagram protocol udp port first mark or second mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610619306.4A CN107666671B (en) | 2016-07-29 | 2016-07-29 | Method and device for detecting wrong connection based on TWAMP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610619306.4A CN107666671B (en) | 2016-07-29 | 2016-07-29 | Method and device for detecting wrong connection based on TWAMP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107666671A true CN107666671A (en) | 2018-02-06 |
CN107666671B CN107666671B (en) | 2022-08-16 |
Family
ID=61122355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610619306.4A Active CN107666671B (en) | 2016-07-29 | 2016-07-29 | Method and device for detecting wrong connection based on TWAMP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107666671B (en) |
Cited By (2)
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 |
CN114584999A (en) * | 2020-11-30 | 2022-06-03 | 中国移动通信集团山西有限公司 | Monitoring system, method, equipment and computer storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1738213A (en) * | 2004-08-18 | 2006-02-22 | 华为技术有限公司 | Method for preventing error connection |
US20140029442A1 (en) * | 2012-07-24 | 2014-01-30 | Accedian Networks Inc. | Automatic setup of reflector instances |
CN104221326A (en) * | 2012-04-04 | 2014-12-17 | 瑞典爱立信有限公司 | Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities. |
WO2015184890A1 (en) * | 2014-10-29 | 2015-12-10 | 中兴通讯股份有限公司 | Packet loss measurement method and apparatus |
CN105634937A (en) * | 2015-12-31 | 2016-06-01 | 华为技术有限公司 | Processing method and device of message |
-
2016
- 2016-07-29 CN CN201610619306.4A patent/CN107666671B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1738213A (en) * | 2004-08-18 | 2006-02-22 | 华为技术有限公司 | Method for preventing error connection |
CN104221326A (en) * | 2012-04-04 | 2014-12-17 | 瑞典爱立信有限公司 | Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities. |
US20140029442A1 (en) * | 2012-07-24 | 2014-01-30 | Accedian Networks Inc. | Automatic setup of reflector instances |
WO2015184890A1 (en) * | 2014-10-29 | 2015-12-10 | 中兴通讯股份有限公司 | Packet loss measurement method and apparatus |
CN105634937A (en) * | 2015-12-31 | 2016-06-01 | 华为技术有限公司 | Processing method and device of message |
Cited By (4)
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 |
CN114584999A (en) * | 2020-11-30 | 2022-06-03 | 中国移动通信集团山西有限公司 | Monitoring system, method, equipment and computer storage medium |
CN114584999B (en) * | 2020-11-30 | 2023-08-15 | 中国移动通信集团山西有限公司 | Monitoring system, method, equipment and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107666671B (en) | 2022-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107465565B (en) | Link test method and apparatus and system | |
US10999129B2 (en) | Fault detection method, apparatus, and system in NFV system | |
EP2171918B1 (en) | Operation, administration and maintenance (oam) for chains of services | |
US7701936B2 (en) | Obtaining path information related to a bridged network | |
CN107819677A (en) | A kind of message forwarding method and device | |
CN105490884B (en) | A kind of VXLAN tunnel detection method and device | |
WO2016058245A1 (en) | Processing method and apparatus for operation, administration and maintenance (oam) message | |
CN102984288B (en) | A kind of method and system of automatic management IPv6 address conflicts | |
CN106603333B (en) | A kind of network for formance measuring method, apparatus and system | |
CN107579869B (en) | Network performance detection method and network equipment | |
US7451203B2 (en) | Method and system for communicating between a management station and at least two networks having duplicate internet protocol addresses | |
EP4149058A1 (en) | Network performance measurement method, apparatus, device and system, and storage medium | |
WO2015184740A1 (en) | Method and device for processing detection hierarchy information | |
CN109347670A (en) | Route tracing method and device, electronic equipment, storage medium | |
CN104683187A (en) | Method for realizing router layer-2 VPN service physical interface end-to-end measurement | |
CN105207909B (en) | A kind of method and network equipment sending information | |
CN114513429A (en) | Transmission method for detection message, and method and equipment for determining reverse path | |
CN109412955A (en) | IPRAN LA Management Room linking relationship determines method and device | |
CN107666671A (en) | The method and device of incorrect link detection based on TWAMP | |
CN108234194A (en) | Network topology structure based on SDN finds method, apparatus and storage medium | |
CN111418189A (en) | Management of connections of residential gateways to other residential gateways implementing link aggregation | |
CN106161124B (en) | Message test processing method and device | |
CN104753790A (en) | Message transmission method based on TRILL (Transparent Interconnection of Lots of Links) network and equipment | |
US20160344571A1 (en) | Determining Connections Between Disconnected Partial Trees | |
CN102075364B (en) | Method and equipment for determining direct link |
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 |