CN107995015B - Method and device for acquiring TWAMP end-to-end detection path - Google Patents
Method and device for acquiring TWAMP end-to-end detection path Download PDFInfo
- Publication number
- CN107995015B CN107995015B CN201610950987.2A CN201610950987A CN107995015B CN 107995015 B CN107995015 B CN 107995015B CN 201610950987 A CN201610950987 A CN 201610950987A CN 107995015 B CN107995015 B CN 107995015B
- Authority
- CN
- China
- Prior art keywords
- layer
- service
- determining
- source
- detection path
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for acquiring a TWAMP end-to-end detection path, wherein the method comprises the following steps: acquiring configuration information of a TWAMP detection instance; the configuration information includes: a source IP, a destination IP and a known end; performing service query according to a known end, determining the L2VPNL3VPN service of a TWAMP detection example, querying the IP of a three-layer virtual port on a two-layer and three-layer bridging network element, and determining the corresponding relation between a source IP and a target IP and two-layer base station equipment CE1 and three-layer gateway equipment CE 2; and searching an actual detection path of the TWAMP detection example according to the L2VPNL3VPN service and the corresponding relation between the source IP and the destination IP and the CE1 and the CE2, and determining the positions of the transmitting end and the reflecting end on the actual detection path. The invention well solves the problems that the TWAMP detection result is single and is not beneficial to rapidly solving the fault.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for obtaining a TWAMP (Two-way Active Measurement Protocol) end-to-end detection path.
Background
Compared with the traditional 2G/3G network, the 4G LTE has the biggest characteristic of network flattening, introduces interfaces S1 and X2, and has a networking mode mainly comprising L2VPN (two-layer virtual private network) + L3VPN (three-layer virtual private network). Taking the S1 interface as an example, since establishing multiple independent routes for each base station to belong to different service gateways sgws may result in a rapid increase in the number of connections and high cost, an IP routing forwarding function (L3VPN) is introduced into the bearer network, and the IP routing forwarding function in the bearer network completes flexible forwarding of different sgws of different base stations, thereby forming a core layer. Meanwhile, in order to improve the manageability, expandability and security of the network and control the scale of the L3VPN, the access convergence layer still adopts the traditional L2VPN technology.
Before a base station service is opened, after the related configuration of the L2VPN + L3VPN is completed, in order to detect whether the service configuration is normal, the current method is: after the base station is accessed, the L3 virtual interface of the L2L3 bridging point initiates ping to the base station to detect the connectivity with the base station, and then the L2L3 bridging point initiates ping to the sGW to detect the connectivity with the sGW. The above method has the following disadvantages: 1. the adoption of segmented detection is troublesome; 2. when the base station is not accessed, the connectivity of the L2VPN network cannot be detected; 3. when the connectivity between the bridge node and the base station is abnormal, the fault of the base station or the fault of the L2VPN network cannot be judged. In view of the above disadvantages, UNI/NNI ping requirements are presented that enable end-to-end connectivity detection based on a ping function. But ping can not realize performance measurement, so an end-to-end connectivity and performance measurement scheme according to RFC 5357(TWAMP) bidirectional active measurement protocol is also proposed. Out of order, delay, packet loss and throughput (like TST) are measured based on IP.
At present, TWAMP is an efficient connectivity detection mode, but only one connection or disconnection result is obtained, and further analysis of reasons such as routing conditions, related alarm performance, segmented ping and the like is low in efficiency, so that the problem of rapidly solving faults is not facilitated.
Disclosure of Invention
The invention provides a method and a device for acquiring a TWAMP end-to-end detection path, which are used for solving the problems that in the prior art, the TWAMP detection result is single and the failure is not easy to solve quickly.
According to an aspect of the present invention, there is provided a method for acquiring a TWAMP end-to-end detection path, including:
acquiring configuration information of a TWAMP detection instance; the configuration information includes: a source IP, a destination IP and a known end, the known end comprising: an emitting end and/or a reflecting end;
performing service query according to the known end, and determining the L2VPNL3VPN service of the TWAMP detection instance;
determining the corresponding relation between the source IP and the destination IP and a two-layer base station device CE1 and a three-layer gateway device CE 2;
and searching an actual detection path of the TWAMP detection example according to the L2VPNL3VPN service and the corresponding relation between the source IP and the destination IP and the CE1 and the CE2, and determining the positions of the transmitting end and the reflecting end on the actual detection path.
According to another aspect of the present invention, there is provided an apparatus for acquiring a TWAMP end-to-end detection path, including:
the configuration information acquisition module is used for acquiring configuration information of the TWAMP detection example; the configuration information includes: a source IP, a destination IP and a known end, the known end comprising: an emitting end and/or a reflecting end;
a first processing module, configured to perform service query according to the known end, and determine an L2VPNL3VPN service of the TWAMP detection instance;
a second processing module, configured to determine correspondence between the source IP and the destination IP and a second-tier base station device CE1 and a third-tier gateway device CE 2;
a search routing module, configured to search an actual detection path of the TWAMP detection instance according to the L2VPNL3VPN service and correspondence between the source IP and the destination IP and the CE1 and the CE 2;
and the position determining module is used for determining the positions of the transmitting end and the reflecting end on the actual detection path.
The invention has the following beneficial effects:
the method and the device for acquiring the TWAMP end-to-end detection path can directly acquire the actual detection path only by using the existing TWAMP detection attribute, are convenient for maintenance personnel to further diagnose the network under the condition that the TWAMP detection is not communicated, and greatly improve the fault positioning efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for acquiring a TWAMP end-to-end detection path according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for acquiring a TWAMP end-to-end detection path according to a second embodiment of the present invention;
fig. 3 is a L2VPN + L3VPN networking diagram according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a TWAMP detection route under a third-layer UNI in an end-to-end scenario according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of TWAMP detection routing under a three-layer UNI in a second embodiment of the present invention, where the emission-only scenario is shown;
fig. 6 is a block diagram of an apparatus for acquiring a TWAMP end-to-end detection path according to a third embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention aims to provide a method and a device for acquiring a TWAMP end-to-end detection path, which can acquire an actual detection path detected by the TWAMP and automatically display the actual detection path to a user, are convenient and intuitive, effectively help a network manager to easily drive a network, and improve the efficiency and the level of network management.
Specifically, in a first embodiment of the present invention, a method for acquiring a TWAMP end-to-end detection path is provided, and is applied in a system where a two-layer L2 virtual private network VPN and a three-layer L3VPN are jointly networked, as shown in fig. 1, the method includes:
step S101, acquiring configuration information of a TWAMP detection example; the configuration information includes: a source IP, a destination IP and a known end, the known end comprising: an emitting end and/or a reflecting end;
in this embodiment, the detection scenario may be determined according to the known end. Specifically, when the known end includes a transmitting end and a transmitting end, the scene is an end-to-end scene; when the known end only comprises a transmitting end, the known end is a transmitting end only scene; when the known end includes only a reflective end, it is the only reflective end scene.
When the known terminal comprises a transmitting terminal, the configuration information further comprises transmitting terminal client mode information. The client mode information includes: three layers of UNIs, two layers of UNIs, and a bridging two layers of UNIs.
Step S102, according to the known end, service inquiry is carried out, and L2VPNL3VPN service of the TWAMP detection example is determined;
in this embodiment of the present invention, performing service query according to the known end, and determining the L2VPNL3VPN service of the TWAMP detection instance includes:
inquiring the L2VPN service or the L3VPN service according to the known end, and determining one or more groups of L2VPNL3VPN services according to the inquired services;
when multiple groups of L2VPNL3VPN services are determined, turning to step S103, after the corresponding relations between the source IP, the destination IP and the second-layer base station device CE1 and the three-layer gateway device CE2 are determined in S103, according to the corresponding relations between the source IP, the destination IP and the second-layer base station device CE1 and the three-layer gateway device CE2, a group of L2VPNL3VPN services are determined.
Step S103, determining the corresponding relation between the source IP and the destination IP and the second-layer base station equipment CE1 and the third-layer gateway equipment CE 2;
in an optional embodiment of the present invention, the corresponding relationship between the source IP and the destination IP and the two-tier base station device CE1 and the three-tier gateway device CE2 is determined by querying the IP addresses of the three-tier virtual ports on the two-tier and three-tier bridge network element. In this embodiment, it is considered that the L2L3 bridges the network element where the three-layer virtual port and the base station IP are in the same network segment, so that after querying the IP of the three-layer virtual port on the two-layer and three-layer bridging network element, the corresponding relationship between the source IP and the destination IP and the two-layer base station device CE1 and the three-layer gateway device CE2 can be determined.
In this embodiment, the specific correspondence determination method is specifically as follows: inquiring IP of three-layer virtual ports on two-layer and three-layer bridging network elements; searching the IP in the same network segment with the IP of the three-layer virtual port in the source IP and the target IP; and determining that the searched IP corresponds to the second-layer base station equipment CE1, and determining that the rest IPs correspond to the third-layer gateway equipment CE 2.
In a preferred embodiment of the present invention, before querying the IP address of the three-layer virtual port on the two-three-layer bridging network element, the method further comprises: under an end-to-end scene, if the transmitting end and the reflecting end are judged to belong to the L2VPN service and the L3VPN service according to a service inquiry result, directly determining the CE equipment of the service side to which the source IP corresponding to the transmitting end belongs and the CE equipment of the service side to which the target IP corresponding to the reflecting end belongs; otherwise, the operation of inquiring the IP address of the three-layer virtual port on the two-layer and three-layer bridging network element is carried out.
For example, in an end-to-end scenario, when the client mode is a three-layer UNI, if a service query is performed according to the transmitting end and the reflecting end, and the transmitting end is obtained to belong to the side L3, and the reflecting end belongs to the side L2, it is directly determined that the source IP corresponds to CE2, and the destination IP corresponds to CE 1.
Step S104, searching an actual detection path of the TWAMP detection example according to the L2VPNL3VPN service and the corresponding relation between the source IP and the destination IP and the CE1 and CE2, and determining the positions of the transmitting end and the reflecting end on the actual detection path.
Specifically, in this embodiment, when it is determined that the detection scene is an end-to-end scene, positions of the transmitting end and the reflecting end on the actual detection path may be directly determined;
when the detection scene is determined to be the transmitting end scene, the position of the transmitting end on the actual detection path can be directly determined, at the moment, the reflecting end is a virtual reflecting end, and the position of the virtual reflecting end can be determined according to the equipment corresponding to the target IP. Specifically, the virtual reflection end is located between the device corresponding to the destination IP and the boundary network element of the service side corresponding to the device;
when the detection scene is determined to be a reflection-only end scene, the position of the reflection end on the actual detection path can be directly determined, at this time, the transmitting end is a virtual transmitting end, and the position of the virtual transmitting end can be determined according to the equipment corresponding to the source IP. Specifically, the virtual transmitting end is located between the device corresponding to the source IP and the border network element of the service side corresponding to the device.
Further, in the embodiment of the present invention, after determining the positions of the transmitting end and the reflecting end on the actual detection path, the method further includes: and outputting and displaying the actual detection path.
In summary, the method according to the embodiment of the present invention can directly obtain the detection route by using the existing TWAMP detection attribute, thereby facilitating the maintenance personnel to further diagnose the network under the condition that the TWAMP detection is not successful, and greatly improving the fault location efficiency.
In a second embodiment of the present invention, a method for acquiring a TWAMP end-to-end detection path (i.e., "detection route") is provided, and this embodiment describes implementation procedures of the present invention in more detail by disclosing more technical details. It should be noted that the numerous technical details disclosed in the present embodiment are provided for the purpose of explaining the present invention and are not intended to limit the present invention solely.
The method for obtaining TWAMP end-to-end detection route provided by the embodiment of the present invention, as shown in fig. 2, includes the following steps:
after a TWAMP detection instance or a TWAMP alarm is selected by a user, configuration information of the TWAMP detection instance may be obtained, including: a transmitting end client mode, a transmitting end, a reflecting end, a source IP (namely, a transmitting end IP) and a destination IP (namely, a reflecting end IP).
Automatically analyzing the configuration information of the TWAMP detection example acquired in the first step, and determining the conditions required by route searching: L2L3 traffic; CE1 IP; CE2 IP.
Before setting up the conditions for determining the need to search for a route, a basic case explanation is made: 1. a transmitting end, a reflecting end may be located at any device in the L2VPN + L3VPN networking; CE1IP is a base station IP belonging to the L2 side, CE2IP is an sGW IP belonging to the L3 side; 3. only the transmitting end has a client mode, and the position of the transmitting end can be determined; and 4.L2L3 bridges the three-layer virtual port on the network element and the base station IP same network segment.
Specifically, the following operations are performed to determine the conditions required for searching the route:
1. determining three scenes according to the transmitting end and the reflecting end, wherein the transmitting end and the reflecting end belong to an end-to-end scene, only the transmitting end belongs to the transmitting end scene, and only the reflecting end belongs to the reflecting end scene.
2. End-to-end scenario:
2.1, the client mode is three layers of UNI:
2.1.1, the transmitting end belongs to the side of L3, and the transmitting end inquires the service of L3.
2.1.2, determine associated L2L3 traffic from L3 traffic.
2.1.3, inquiring the service of L2 according to the reflecting end, if the service exists, the reflecting end belongs to the side of L2, and determining that the destination IP (internet protocol) of the reflecting end is CE1IP and the source IP of the transmitting end is CE2 IP.
2.1.4, if the service does not exist, continuing to inquire the L3 service, if the service exists, the reflecting end also belongs to the L3 side, inquiring all PE network elements of the L3 service, filtering out three-layer virtual ports and IP thereof, and determining CE1IP and CE2IP according to the basic situation 4.
2.2, the client mode is a two-layer UNI: the transmitting end belongs to the side of L2, the L2 service is inquired according to the transmitting end, the associated L2L3 service is determined according to the L2 service, the transmitting end, namely the source IP is CE1IP, and the reflecting end, namely the destination IP is CE2 IP.
2.3, client mode is bridging two layers UNI:
2.3.1, inquiring L2 service according to a transmitting terminal, and determining associated L2L3 service according to L2 service.
2.3.2, inquiring about the L2 service according to the reflecting end, if existing, determining that the transmitting end, namely the source IP is CE2IP and the reflecting end, namely the destination IP is CE1IP because the transmitting end is positioned at the bridging network element.
2.3.3, if the IP address does not exist, continuing to inquire the service of L3, if the IP address does exist, enabling the reflection end to belong to the side of L3, enabling the transmission end to belong to the side of L2, and determining that the IP address of the transmission end, namely the source IP, is CE1IP and the IP address of the reflection end, namely the destination IP, is CE2 IP.
3. Transmit-only scenario:
3.1, the client mode is three layers of UNI:
3.1.1, the transmitting end belongs to the side of L3, and the transmitting end inquires the service of L3.
3.1.2, determine associated L2L3 traffic from L3 traffic.
3.1.3, because the reflection end is not in the network management network, needing to be virtualized, inquiring all PE network elements of the L3 service, filtering out three-layer virtual ports and IP thereof, and determining CE1IP and CE2IP according to the basic situation 4.
3.2, the client mode is a two-layer UNI:
and 3.2.1, inquiring the L2 service according to the transmitting end.
3.2.2, determine associated L2L3 traffic from L2 traffic.
3.2.3, because the reflection end is not in the network management network, virtualization is needed, L3 service is inquired according to L2L3 service, then all PE network elements of L3 service are inquired, three-layer virtual ports and IP thereof are filtered, and CE1IP and CE2IP are determined according to basic situation 4.
3.3, the client mode is a bridging two-layer UNI: the same as 3.2.
4. Reflecting only the end scene:
4.1, according to the reflection end, querying L2 service, and no continuous querying L3 service exists.
And 4.2, determining the L2L3 associated service according to the L2 or L3 service.
4.3, inquiring all PE network elements of the L3 service, filtering out three-layer virtual ports and IP thereof, and determining CE1IP and CE2IP according to the basic situation 4.
And thirdly, determining the positions of the transmitting end and the reflecting end. The end-to-end scene has a transmitting end and a reflecting end, and is directly determined; only transmitting end scenes need to be determined at the virtual reflection end, if the destination IP is determined to correspond to CE1 in the second step, the virtual reflection end is located between boundary network elements on the CE1 and L2 sides, and if the destination IP is determined to correspond to CE2, the virtual reflection end is located between boundary network elements on the CE2 and L3 sides; and reflecting only the end scene, wherein the position of a virtual transmitting end needs to be determined, and in the second step, if the source IP is determined to correspond to the CE1, the virtual transmitting end is positioned between the boundary network elements on the CE1 and the L2 side, and if the source IP is determined to correspond to the CE2, the virtual transmitting end is positioned between the boundary network elements on the CE2 and the L3 side.
And fourthly, searching an actual route detected by the TWAMP example according to the L2L3 service, the IP of the CE1 and the IP of the CE2, determining the positions of the transmitting end and the reflecting end on the actual route to obtain the TWAMP detection route, and outputting a final TWAMP detection route result.
After the above-mentioned series of actions are completed, the system may further diagnose according to TWAMP detection route, including but not limited to alarm, performance, related traffic, ping, etc.
Several specific application examples of the present invention are given below in conjunction with the accompanying drawings to more clearly illustrate the implementation process of the present invention.
As shown in fig. 3, is a typical L2VPN + L3VPN networking used by mobile 4G. The entire L2L3 service is composed of a plurality of L2 services and one L3 service, and fig. 1 lists only one L2 service and one L3 service. Fig. 4 and 5, which are related in the following embodiments, are TWAMP detection routes (including an L2 service and an uplink and downlink route of an L3 service) searched by CE2IP according to an L2L3 service and a CE1IP, where the following roles are involved:
CE: customer Edge, Customer-side Edge device, device directly connected to the service provider; here CE1 is a base station and CE2 is a serving gateway sGW.
PE: provider Edge, network side Edge device, Edge device on the service Provider network, connect with CE;
a Sender: a transmitting end;
a Reflector: a reflective end;
virtual Reflector: a virtual reflection end;
the method comprises the following steps of using an intelligent presence TWAMP to detect a routing tool:
firstly, selecting a TWAMP detection instance or a TWAMP alarm by a user, and acquiring: the method comprises a transmitting terminal client mode, a transmitting terminal, a reflecting terminal, a source IP (transmitting terminal IP) and a destination IP (reflecting terminal IP), and then enters an intelligent TWAMP detection routing tool.
Secondly, the system automatically analyzes L2L3 service, CE1IP and CE2IP, and searches out actual routes detected by the TWAMP instance.
Scene 1: in the end-to-end scenario shown in FIG. 4, the transmitting end is at PE4, the reflecting end is at PE1, the source IP is 100.0.0.1, the destination IP is 100.0.0.2, and the client mode is a three-layer UNI.
1.1, according to the three-layer UNI of the client mode, determining that the transmitting end belongs to the side of L3.
1.2, inquiring the L3 service according to the transmitting terminal, namely an uplink PE2-PE4 and a downlink PE5-PE 3.
1.3, determining associated L2L3 services according to the L3 services, namely uplink CE1-PE1-PE2-PE4-CE2 and downlink CE2-PE5-PE3-PE1-CE 1.
1.4, inquiring the service of L2 according to the reflection end, wherein the reflection end belongs to the side of L2, and determining that the transmitting end, namely the source IP100.0.0.1, is CE2IP, and the reflection end, namely the destination IP100.0.0.2, is CE1 IP. Namely, the upstream PE1-PE2 and the downstream PE3-PE 1.
Scene 2: as shown in fig. 5, in the scenario of only transmitting end, the transmitting end is located in PE4, the source IP is 99.1.1.1, the destination IP is 100.0.0.2, the three-layer virtual port IP on the bridging network element PE2 is 100.0.0.1, and the client mode is three-layer UNI.
1.1, according to a three-layer UNI of a client mode, a transmitting terminal queries an L3 service.
1.2, determining associated L2L3 services according to the L3 services, namely uplink CE1-PE1-PE2-PE4-CE2 and downlink CE2-PE5-PE3-PE1-CE 1.
1.3, because only the transmitting end can not determine the position of the virtual reflecting end (in L2 service or L3 service), according to basic situation 4, inquiring all PE network elements (including PE2, PE3, PE4, and PE5) of L3 service, where a virtual three-layer port IP on PE2 is 100.0.0.1, the IP and destination IP100.0.0.2 are in the same network segment, and determining that the destination IP100.0.0.2 is CE1IP, that is, L2 service, upstream PE1-PE2, and downstream PE3-PE 1; the source IP99.1.1.1 is CE2IP, L3 service, upstream PE2-PE4, downstream PE5-PE 3.
Finally, the actual route detected by the TWAMP instance is searched out by the L2L3 traffic, CE1IP and CE2 IP.
And thirdly, automatically analyzing the positions of the transmitting end and the reflecting end.
1. For an end-to-end scenario, the transmitting end and the reflecting end are in the L2L3 network, and the positions are directly analyzed, as shown in fig. 2, the transmitting end is located at PE4, and the reflecting end is located at PE 1.
2. For the transmitting-only scenario, if the destination IP corresponds to CE1, the Virtual reflection end is located between CE1 and the border network element PE1, as shown in fig. 5, the transmitting end is located at PE4, and the Virtual reflection end is located between CE1 and the border network element PE 1; if the destination IP corresponds to CE2, then the virtual reflected end is located between CE2 and a border cell PE4(PE 5).
3. For the reflection-only end scenario, the principle is the same as for the transmission-only end scenario.
Fourthly, obtaining a final diagnosis result report
And analyzing whether the route is normal or not according to the TWAMP detection route, if the route is discontinuous, indicating that the route is abnormal, and if the route is normal, analyzing other information such as alarm, performance, related service, ping of each section of route and the like, thereby helping a user to accurately locate the reason of the TWAMP detection failure.
In a third embodiment of the present invention, an apparatus for acquiring a TWAMP end-to-end detection path is provided, which is applied in a system where a L2VPN and a L3VPN are jointly networked, and as shown in fig. 6, the apparatus includes:
a configuration information obtaining module 610, configured to obtain configuration information of a TWAMP detection instance; the configuration information includes: a source IP, a destination IP and a known end, the known end comprising: an emitting end and/or a reflecting end;
a first processing module 620, configured to perform service query according to the known end, and determine an L2VPNL3VPN service of the TWAMP detection instance;
a second processing module 630, configured to determine correspondence between the source IP and the destination IP, a second-tier base station device CE1, and a third-tier gateway device CE 2;
a search routing module 640, configured to search an actual detection path of the TWAMP detection instance according to the L2VPNL3VPN service and the correspondence between the source IP and the destination IP and the CE1 and the CE 2;
and a position determining module 650 for determining the positions of the transmitting end and the reflecting end on the actual detection path.
Based on the above structural framework and implementation principle, several specific and preferred embodiments under the above structure are given below to refine and optimize the functions of the device of the present invention, so as to make the implementation of the scheme of the present invention more convenient and accurate. The method specifically comprises the following steps:
in this embodiment, the second processing module 630 is specifically configured to directly determine a CE device on a service side to which a source IP corresponds to a transmitting end and a CE device on a service side to which a destination IP corresponds to a reflecting end if it is determined that the known end includes the transmitting end and the reflecting end, and it is determined that the transmitting end and the reflecting end belong to the L2VPN service and the L3VPN service according to a service query result; otherwise, inquiring the IP of the three-layer virtual port on the two-layer and three-layer bridging network element, and determining the corresponding relation between the source IP and the target IP and the two-layer base station equipment CE1 and the three-layer gateway equipment CE2 according to the inquired IP.
Further, in this embodiment, the second processing module 630 queries the IP of the three-layer virtual port on the two-three-layer bridge network element, searches the IP in the same network segment as the IP of the three-layer virtual port in the source IP and the destination IP, and determines that the found IP corresponds to the two-layer base station device CE1 and the remaining IP corresponds to the three-layer gateway device CE 2.
Further, in this embodiment, the first processing module 620 queries the L2VPN service or the L3VPN service according to the known end, and determines one or more groups of L2VPNL3VPN services according to the queried service; when a plurality of groups of L2VPNL3VPN services are determined, a group of L2VPNL3VPN services are determined according to the corresponding relation between a source IP and a destination IP and the corresponding relation between the two-layer base station equipment CE1 and the corresponding relation between the three-layer gateway equipment CE 2.
Further, in this embodiment, the position determining module 650 is specifically configured to, when the known end includes an emitting end and a reflecting end, directly determine positions of the emitting end and the reflecting end on the actual detection path; when the known end only comprises a transmitting end, directly determining the position of the transmitting end on the actual detection path, and determining the position of a virtual reflecting end between the equipment corresponding to the destination IP in the actual detection path and a boundary network element at the service side corresponding to the equipment; and when the known end only comprises a reflection end, directly determining the position of the reflection end on the actual detection path, and determining that the position of the virtual transmitting end is between the equipment corresponding to the source IP in the actual detection path and the boundary network element of the service side corresponding to the equipment.
Further, the apparatus of this embodiment further includes:
and an output display module 660, configured to output and display the actual detection path after the position determining module 650 determines the positions of the transmitting end and the transmitting end on the actual detection path.
In summary, the device for acquiring the TWAMP end-to-end detection path provided by the invention can directly acquire the detection route only by using the existing TWAMP detection attribute, thereby facilitating maintenance personnel to further diagnose the network under the condition that TWAMP detection is not successful, and greatly improving the fault positioning efficiency.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (12)
1. A method for obtaining a two-way active measurement protocol TWAMP end-to-end detection path is applied to a system formed by a two-layer L2 virtual private network VPN and a three-layer L3VPN together, and is characterized by comprising the following steps:
acquiring configuration information of a TWAMP detection instance; the configuration information includes: a source IP, a destination IP and a known end, the known end comprising: an emitting end and/or a reflecting end;
performing service query according to the known end, and determining the L2VPNL3VPN service of the TWAMP detection instance;
determining the corresponding relation between the source IP and the destination IP and a two-layer base station device CE1 and a three-layer gateway device CE 2;
and searching an actual detection path of the TWAMP detection example according to the L2VPNL3VPN service and the corresponding relation between the source IP and the destination IP and the CE1 and the CE2, and determining the positions of a transmitting end and a reflecting end on the actual detection path.
2. The method of claim 1, wherein the determining the correspondence of the source IP and the destination IP with a two-tier base station device CE1 and a three-tier gateway device CE2 comprises:
if the known end comprises a transmitting end and a reflecting end, and the transmitting end and the reflecting end are judged to belong to the L2VPN service and the L3VPN service according to the service inquiry result, directly determining the CE equipment of the service side to which the source IP corresponds to the transmitting end and the CE equipment of the service side to which the target IP corresponds to the reflecting end; otherwise, inquiring the IP of the three-layer virtual port on the two-layer and three-layer bridging network element, and determining the corresponding relation between the source IP and the target IP and the two-layer base station equipment CE1 and the three-layer gateway equipment CE2 according to the inquired IP.
3. The method of claim 2, wherein said querying the IP of the triple-layer virtual port on the two-triple-layer bridging network element to determine the correspondence between the source IP and the destination IP and the two-layer base station device CE1 and the triple-layer gateway device CE2 comprises:
inquiring IP of three-layer virtual ports on two-layer and three-layer bridging network elements;
searching the IP in the same network segment with the IP of the three-layer virtual port in the source IP and the target IP;
and determining that the searched IP corresponds to the second-layer base station equipment CE1, and determining that the rest IPs correspond to the third-layer gateway equipment CE 2.
4. The method of claim 1, wherein determining the L2VPNL3VPN traffic for the TWAMP detection instance based on a traffic query by the known peer comprises:
inquiring the L2VPN service or the L3VPN service according to the known end, and determining one or more groups of L2VPNL3VPN services according to the inquired services;
when a plurality of groups of L2VPNL3VPN services are determined, a group of L2VPNL3VPN services are determined according to the corresponding relation between the source IP and the destination IP and the two-layer base station equipment CE1 and the three-layer gateway equipment CE 2.
5. The method of any one of claims 1 to 4, wherein said determining the positions of the transmitting end and the reflecting end on the actual detection path comprises:
when the known end comprises an emitting end and a reflecting end, directly determining the positions of the emitting end and the reflecting end on the actual detection path;
when the known end only comprises a transmitting end, directly determining the position of the transmitting end on the actual detection path, and determining the position of a virtual reflecting end between the equipment corresponding to the destination IP in the actual detection path and a boundary network element at the service side corresponding to the equipment;
and when the known end only comprises a reflection end, directly determining the position of the reflection end on the actual detection path, and determining that the position of the virtual transmitting end is between the equipment corresponding to the source IP in the actual detection path and the boundary network element of the service side corresponding to the equipment.
6. The method of any one of claims 1 to 4, wherein after determining the positions of the transmitting end and the reflecting end on the actual detection path, further comprising: and outputting and displaying the actual detection path.
7. A device for acquiring a TWAMP end-to-end detection path is applied to a system which is jointly networked by an L2VPN and an L3VPN, and is characterized by comprising:
the configuration information acquisition module is used for acquiring configuration information of the TWAMP detection example; the configuration information includes: a source IP, a destination IP and a known end, the known end comprising: an emitting end and/or a reflecting end;
a first processing module, configured to perform service query according to the known end, and determine an L2VPNL3VPN service of the TWAMP detection instance;
a second processing module, configured to determine correspondence between the source IP and the destination IP and a second-tier base station device CE1 and a third-tier gateway device CE2,
a search routing module, configured to search an actual detection path of the TWAMP detection instance according to the L2VPNL3VPN service and correspondence between the source IP and the destination IP and the CE1 and the CE 2;
and the position determining module is used for determining the positions of the transmitting end and the reflecting end on the actual detection path.
8. The apparatus according to claim 7, wherein the second processing module is specifically configured to, if it is determined that the known end includes a transmitting end and a reflecting end, and it is determined that the transmitting end and the reflecting end belong to L2VPN service and L3VPN service according to a service query result, directly determine a CE device on a service side to which the source IP corresponds the transmitting end, and a CE device on a service side to which the destination IP corresponds the reflecting end; otherwise, inquiring the IP of the three-layer virtual port on the two-layer and three-layer bridging network element, and determining the corresponding relation between the source IP and the target IP and the two-layer base station equipment CE1 and the three-layer gateway equipment CE2 according to the inquired IP.
9. The apparatus of claim 8, wherein the second processing module is specifically configured to query the IP of a triple-layer virtual port on a two-triple-layer bridge network element, search for an IP in the same network segment as the IP of the triple-layer virtual port in the source IP and the destination IP, determine that the searched IP corresponds to a double-layer base station device CE1, and determine that the remaining IP corresponds to a triple-layer gateway device CE 2.
10. The apparatus of claim 7, wherein the first processing module is specifically configured to query an L2VPN service or an L3VPN service according to the known end, and determine one or more groups of L2VPNL3VPN services according to the queried service; when a plurality of groups of L2VPNL3VPN services are determined, a group of L2VPNL3VPN services are determined according to the corresponding relation between the source IP and the destination IP and the two-layer base station equipment CE1 and the three-layer gateway equipment CE 2.
11. The apparatus according to any one of claims 7 to 10, wherein the position determining module is specifically configured to directly determine the positions of the transmitting end and the reflecting end on the actual detection path when the known end includes the transmitting end and the reflecting end; when the known end only comprises a transmitting end, directly determining the position of the transmitting end on the actual detection path, and determining the position of a virtual reflecting end between the equipment corresponding to the destination IP in the actual detection path and a boundary network element at the service side corresponding to the equipment; and when the known end only comprises a reflection end, directly determining the position of the reflection end on the actual detection path, and determining that the position of the virtual transmitting end is between the equipment corresponding to the source IP in the actual detection path and the boundary network element of the service side corresponding to the equipment.
12. The apparatus of any one of claims 7 to 10, further comprising:
and the output display module is used for outputting and displaying the actual detection path after the position determining module determines the positions of the transmitting end and the transmitting end on the actual detection path.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610950987.2A CN107995015B (en) | 2016-10-27 | 2016-10-27 | Method and device for acquiring TWAMP end-to-end detection path |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610950987.2A CN107995015B (en) | 2016-10-27 | 2016-10-27 | Method and device for acquiring TWAMP end-to-end detection path |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107995015A CN107995015A (en) | 2018-05-04 |
CN107995015B true CN107995015B (en) | 2021-11-12 |
Family
ID=62029245
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610950987.2A Active CN107995015B (en) | 2016-10-27 | 2016-10-27 | Method and device for acquiring TWAMP end-to-end detection path |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107995015B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11595301B2 (en) | 2019-04-22 | 2023-02-28 | Tsinghua University | Method and system for implementing L3VPN based on two-dimensional routing protocol |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385822B (en) | 2018-12-29 | 2021-11-09 | 华为技术有限公司 | Configuration method and controller |
CN111988193A (en) * | 2019-05-24 | 2020-11-24 | 中兴通讯股份有限公司 | TWAMP-based detection method and related equipment |
CN110784378B (en) * | 2019-11-04 | 2021-05-04 | 盛科网络(苏州)有限公司 | Method and device for realizing accurate flow balance by using TWAMP (two way operational amplifier) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104221326A (en) * | 2012-04-04 | 2014-12-17 | 瑞典爱立信有限公司 | Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities. |
CN104683187A (en) * | 2015-03-12 | 2015-06-03 | 烽火通信科技股份有限公司 | Method for realizing router layer-2 VPN service physical interface end-to-end measurement |
CN105791074A (en) * | 2014-12-25 | 2016-07-20 | 中兴通讯股份有限公司 | Method and device for establishing PW (Pseudo Wire) links |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3008863A1 (en) * | 2013-06-13 | 2016-04-20 | Telefonaktiebolaget LM Ericsson (publ) | Congestion control for a multimedia session |
-
2016
- 2016-10-27 CN CN201610950987.2A patent/CN107995015B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104221326A (en) * | 2012-04-04 | 2014-12-17 | 瑞典爱立信有限公司 | Method for scalable measuring of connectivity between two way active measurement protocol (TWAMP) entities. |
CN105791074A (en) * | 2014-12-25 | 2016-07-20 | 中兴通讯股份有限公司 | Method and device for establishing PW (Pseudo Wire) links |
CN104683187A (en) * | 2015-03-12 | 2015-06-03 | 烽火通信科技股份有限公司 | Method for realizing router layer-2 VPN service physical interface end-to-end measurement |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11595301B2 (en) | 2019-04-22 | 2023-02-28 | Tsinghua University | Method and system for implementing L3VPN based on two-dimensional routing protocol |
Also Published As
Publication number | Publication date |
---|---|
CN107995015A (en) | 2018-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107995015B (en) | Method and device for acquiring TWAMP end-to-end detection path | |
US7701936B2 (en) | Obtaining path information related to a bridged network | |
WO2016101646A1 (en) | Access method and apparatus for ethernet virtual network | |
CN109873760A (en) | Handle the method and apparatus of routing and the method and apparatus of data transmission | |
US20040218542A1 (en) | Ethernet path verification | |
CN102185711B (en) | Method and equipment for detecting link failure in hybrid network | |
WO2016082588A1 (en) | Link connectivity checking method and apparatus | |
EP2146477B1 (en) | A method, system and device for sampling message | |
KR20120060810A (en) | Techniques for routing data between network areas | |
WO2013155959A1 (en) | Accessing ip network and edge devices | |
CN106161227B (en) | Message forwarding method and device | |
CN102368726B (en) | Forwarding method and device applied to L2VPN (layer 2 virtual private network) | |
CN112956158B (en) | Structural data plane monitoring | |
CN103795631A (en) | Flow forwarding method and device equipped with Ethernet virtual interconnection (EVI) in network | |
CN103139075B (en) | A kind of message transmitting method and equipment | |
CN104579978B (en) | A kind of dynamic network Datalink Layer Topology Discovery method | |
CN103209125B (en) | A kind of transmission method of label information and equipment | |
WO2014032609A1 (en) | Mac address learning | |
WO2012155430A1 (en) | Method and network management for calculating network element interfaces | |
CN103580935A (en) | Method and device for detecting connectivity of part from second-layer interface to third-layer interface | |
CN110677337A (en) | Data forwarding method and device, network equipment and computer readable storage medium | |
CN109412851B (en) | Link layer path detection method, device and system | |
CN101924670A (en) | Method and equipment for detecting label switched path (LSP) | |
CN109698781B (en) | Management method of message forwarding path and PE (provider edge) equipment | |
CN109995651A (en) | A kind of pseudo line establishing method and device |
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 |