CN104639385B - Detect the method and apparatus of L2VPN network user's side interface connectivity - Google Patents
Detect the method and apparatus of L2VPN network user's side interface connectivity Download PDFInfo
- Publication number
- CN104639385B CN104639385B CN201310571868.2A CN201310571868A CN104639385B CN 104639385 B CN104639385 B CN 104639385B CN 201310571868 A CN201310571868 A CN 201310571868A CN 104639385 B CN104639385 B CN 104639385B
- Authority
- CN
- China
- Prior art keywords
- icmp
- client
- equipment
- request message
- configuration information
- 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
Classifications
-
- 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/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to a kind of method and apparatus for detecting L2VPN network user's side interface connectivity, the described method comprises the following steps: Packet Transport Network equipment initiates test bind command, and obtains configuration information according to test bind command row;After detecting that the configuration information is matched to CIP access way, ICMP request message is generated according to the configuration information and the ICMP request message is sent to client's network edge equipment;The ICMP response message returned by client's network edge equipment described in the corresponding interface of the CIP access way, the connectivity between client's network edge equipment and the user side interface of Packet Transport Network equipment is determined according to the ICMP request message and ICMP response message, the present invention detects the operating method simple and flexible of the connectivity of client's network edge equipment and Packet Transport Network equipment user's side interface, improves detection efficiency.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of detection L2VPN network user side interface connectivity
Method and apparatus.
Background technique
Currently, the business of more and more types is run on the internet, fault detection, the management etc. of network are proposed more
High requirement, the switching equipment and optical network device that Carrier Requirements device manufacturer provides must support OAM(Operation
Administration and Maintenance, operation management and maintenance) function, with can to some Network Abnormal problems into
Row detection in time, the function of restoring and manage.
PTN(Packet Transport Network, Packet Transport Network) access device of the equipment as IPization base station when,
Usually to UNI(User node interface, user side interface) side ports configuration port, the modes such as port+vlan and access
L2VPN network.When base station (or PC) business breaks down (such as service disconnection), need to detect the side UNI of base station and PTN device
Between whether can be connected to.
Many methods use CFM(Connectivity Fault Management, connection error management in the prior art)
And MAC-PING detects the connectivity of the uni port of base station and PTN device, but have many base stations be do not support CFM, and
It cannot know the mac address information of base station, so the use of MAC-PING has certain limitation, operating method is complex.
Summary of the invention
The main purpose of the present invention is to provide a kind of method for detecting L2VPN network user's side interface connectivity and set
It is standby, it is intended to improve the spirit of the operating method of the connectivity of detection client's network edge equipment and Packet Transport Network equipment user's side interface
Activity simplifies operation, improves detection efficiency.
In order to achieve the above object, the present invention proposes a kind of method for detecting L2VPN network user's side interface connectivity, packet
Include following steps:
Packet Transport Network equipment initiates test bind command, and obtains configuration information according to test bind command;
After detecting that the configuration information is matched to CIP access way, ICMP request is generated according to the configuration information
The ICMP request message is simultaneously sent to client's network edge equipment by message;
Report is responded by the ICMP that client's network edge equipment described in the corresponding interface of the CIP access way returns
Text determines client's network edge equipment and Packet Transport Network equipment according to the ICMP request message and ICMP response message
Connectivity between user side interface.
Preferably, the Packet Transport Network equipment initiates test bind command, and is configured according to test bind command
The step of information includes:
Source IP address, purpose IP address, vlan information and physics exit port are obtained according to test bind command row;
What is judged the test whether bind command issue is smart group interface, and judges the Packet Transport Network
Whether equipment is centralized device;
If the result of judgement is to be, the member interface information of the smart group interface is obtained, and described in integration
Source IP address, purpose IP address, the member interface information of vlan information, physics exit port and smart group interface, obtain institute
State configuration information.
Preferably, described after configuration information is matched to CIP access way, ICMP request is generated according to the configuration information
The message and the step of ICMP request message is sent to client's network edge equipment includes:
It is after detecting that the vlan information and physics exit port are matched to CIP access way, the configuration information is raw
At ICMP request message and encapsulate the ICMP request message;
Judging whether can be according to corresponding in the ARP table of the destination IP address search to the Packet Transport Network plant maintenance
MAC Address, if so, the ICMP request message is sent to client's network edge equipment according to the MAC Address.
Preferably, described after detecting that the configuration information is matched to CIP access way, it is raw according to the configuration information
Before the step of at ICMP request message and the ICMP request message is sent to client's network edge equipment further include:
Acl rule is added according to the configuration information.
Preferably, described that client's network edge equipment and grouping are determined according to ICMP request message and ICMP response message
The step of connectivity between the user side interface of transmission net equipment includes:
The ICMP response message and arp response message are sent to central processing unit by the acl rule;
The central processing unit by detect the ICMP response message content whether with the ICMP request message
Connectivity between content corresponding determination client's network edge equipment and the user side interface of Packet Transport Network equipment.
The present invention also provides a kind of Packet Transport Network equipment, comprising:
Module is obtained, obtains configuration information for initiating test bind command, and according to test bind command;
Message sending module, for after detecting that the configuration information is matched to CIP access way, according to the configuration
Information generates ICMP request message and the ICMP request message is sent to client's network edge equipment;
Determining module, for being returned by client's network edge equipment described in the corresponding interface of the CIP access way
ICMP response message, client's network edge equipment and grouping are determined according to the ICMP request message and ICMP response message
Connectivity between the user side interface of transmission net equipment.
Preferably, the acquisition module includes:
Acquiring unit, for obtaining source IP address, purpose IP address, vlan information and physics according to test bind command row
Exit port;
Judging unit, what whether bind command issued for judging the test is smart group interface, and judges institute
State whether Packet Transport Network equipment is centralized device;
Integral unit obtains the member interface letter of the smart group interface if the result for judgement is to be
Breath, and the member for integrating the source IP address, purpose IP address, vlan information, physics exit port and smart group interface connects
Message breath, obtains the configuration information.
Preferably, the message sending module includes:
Encapsulation unit, for after detecting that the vlan information and physics exit port are matched to CIP access way, according to
The configuration information generates ICMP request message and encapsulates the ICMP request message;
Judging unit, for judge whether can be according to the destination IP address search to the Packet Transport Network plant maintenance
ARP table in corresponding MAC Address;
Transmission unit, for the ICMP request message to be sent to client's network edge equipment according to the MAC Address.
Preferably, further includes:
Adding module, for adding acl rule according to the configuration information.
Preferably, the determining module includes:
Transmission unit, for the ICMP response message and arp response message to be sent to center by the acl rule
Processor;
Determination unit, for the content by detecting the ICMP response message whether in the ICMP request message
Hold the connectivity between corresponding determination client's network edge equipment and the user side interface of Packet Transport Network equipment.
A kind of method and apparatus for detecting L2VPN network user's side interface connectivity of the present invention, is set by Packet Transport Network
The test bind command of received shipment row obtains configuration information, after the configuration information is matched to CIP access way, Packet Transport Network equipment
It sends ICMP request message and receives the ICMP response message of client's network edge equipment return, according to from Packet Transport Network equipment
The ICMP response message returned is managed, and determines the company between client's network edge equipment and the user side interface of Packet Transport Network equipment
The general character, since invention is CIP access way, Packet Transport Network equipment and the realization of client's network edge equipment are direct-connected, need not move through
Router, i.e., not across jump, implementation method is simple, and there are many CIP access ways, it can be carried out according to different CIP access ways
Selection, operating method is flexible, greatly improves detection efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram of one embodiment of method of present invention detection L2VPN network user's side interface connectivity;
Fig. 2 is the flow diagram of the configuration information obtained shown in Fig. 1 according to test bind command row;
Fig. 3 is the flow diagram that ICMP request message is sent to client's network edge equipment shown in Fig. 1;
Fig. 4 is determined between client's network edge equipment and the user side interface of Packet Transport Network equipment shown in Fig. 1
The flow diagram of connectivity;
Fig. 5 is the structural schematic diagram of one embodiment of Packet Transport Network equipment of the present invention;
Fig. 6 is the structural schematic diagram that one embodiment of module is obtained shown in Fig. 5;
Fig. 7 is the structural schematic diagram of one embodiment of message sending module shown in Fig. 5;
Fig. 8 is the structural schematic diagram of the embodiment of determining module one shown in Fig. 5.
In order to keep the technical solution of invention clearer, clear, it is described in further detail below in conjunction with attached drawing.
Specific embodiment
Specifically, as shown in Figure 1, one embodiment of the invention proposes a kind of detection L2VPN network user side interface connectivity
Method, comprising:
Step S101, Packet Transport Network equipment initiates test bind command, and is obtained according to test bind command with confidence
Breath;
Wherein, test bind command can be uni-ping order.
Wherein, Packet Transport Network equipment executes test bind command, the available source IP in test bind command row
Location, purpose IP address, physics exit port and vlan information etc., source IP address, purpose IP address, physics exit port are that user is necessary
Specified information, vlan information include svlan and priority, cvlan information etc., and svlan and priority, cvlan information are to use
Family can choose specified information.User can specify different information according to different CIP access ways.
Wherein, purpose IP address can be arbitrarily selected, but as long as keeping source IP address and purpose IP address in same network segment
?.
Wherein, the termination condition for testing bind command includes: 1, during testing bind command and executing, if overtime
ICMP response message is not received, then in user interface print prompt information " ".2, during testing bind command execution
Ctrl+c key is pressed, then is terminated.
For executing uni-ping order, in order to not influence the ARP(Address of public network
ResolutionProtocol, address resolution protocol) table, which needs to separately maintain an ARP table.ARP table
It is a global table.Public network ARP table is in PROTOCOL process creation, addition, deletion and access.And due to uni-ping
Order is initiated in PING process, and the creation and inquiry of the ARP table of uni-ping are also in the processing of ping process.Here for
The ARP message that client network edge equipment side is responded needs unification to be delivered to the completion of ping process from PROTOCOL process in packet receiving
And the operation such as management of ARP table.The present embodiment mainly prevents multi-process from causing multi-process to visit an ARP table operation simultaneously
Ask conflict.Packet Transport Network equipment can obtain the MAC Address of client's network edge equipment from the ARP table, can also be from client's net
MAC Address of the ARP Receive message that edge device side is responded to client's network edge equipment.
Step S102 is generated after detecting that the configuration information is matched to CIP access way according to the configuration information
The ICMP request message is simultaneously sent to client's network edge equipment by ICMP request message;
Wherein, which is unicast ICMP request message.Client's network edge equipment includes but is not limited to base
It stands or PC etc..
Wherein, there are many CIP access ways, including physics exit port access way, the access side physics exit port+VLAN
Formula, physics exit port+SVLAN access way etc..Configuration information must be consistent with CIP access way.It sends every time
It requires whether detection configuration information is matched to CIP access way before ICMP request message, prevents abnormal conditions and delete CIP and connect
Enter mode or the result of detection mistake occurs.
Wherein, after detecting that configuration information is matched to CIP access way, Packet Transport Network equipment sends ICMP request report
Text gives client's network edge equipment, and client's network edge equipment is waited to return to ICMP response message.
Step S103 is returned by client's network edge equipment described in the corresponding interface of the CIP access way
ICMP response message determines that client's network edge equipment and grouping pass according to the ICMP request message and ICMP response message
Send the connectivity between the user side interface of net equipment.
After Packet Transport Network equipment is matched to CIP access way and sends ICMP request message, pass through CIP access way
The ICMP response message that corresponding interface client network edge equipment returns, to ICMP request message and ICMP response message into
After row processing, the connectivity between client's network edge equipment and the user side interface of Packet Transport Network equipment can be determined.
In a preferred embodiment, before the step of ICMP request message being sent to client's network edge equipment further include:
Acl rule is added according to the configuration information.Specifically: configuration information is sent to the driving of Packet Transport Network equipment, by driving
Dynamic addition ACL(Access Control List, accesses control list) rule, by being somebody's turn to do when receiving ICMP response message
Acl rule sends ICMP response message to central processing unit and is handled.
When encountering abnormal conditions (such as restarting line card), acl rule will not come into force, and need to delete the acl rule then weight
Acl rule newly is issued, former acl rule is avoided to remain.
At the end of testing bind command, need that driving is notified to delete acl rule information corresponding with test bind command,
Save driving ACL table item space.
Wherein, in a preferred embodiment, as shown in Fig. 2, above-mentioned steps S101 the following steps are included:
Step S1011 obtains source IP address, purpose IP address, vlan information and physics according to test bind command row and goes out
Port;
Step S1012 judges that testing bind command and whether issuing is smart group interface;If smart group
Interface then enters step S1013, if not smart group interface, then enter step S1014;
Step S1013 obtains the member interface information of the smart group interface, enters step S1014;
Step S1014 judges whether the Packet Transport Network equipment is centralized device;If so, entering step
S1016, if it is not, then entering step S1015;
Step S1015 is handled on photos and sending messages to line card, enters step S1016;
Step S1016 integrates source IP address, purpose IP address, vlan information, physics exit port and smart group and connects
The member interface information of mouth, obtains configuration information.
Wherein, associated timer can be created before step S1012, it may include overtime timer, speed limit timer, OAM
Echo scanning timer etc..Speed limit timer is that the number given out a contract for a project is controlled in some cycles.At the end of testing bind command,
Delete the timer information of creation.
Wherein, when Packet Transport Network equipment is distributed apparatus, then testing bind command is that master control is being handled, and needs to believe
Breath, which is dealt on line card, to be handled.
Wherein, in a preferred embodiment, as shown in figure 3, above-mentioned steps S102 the following steps are included:
Step S1021, after detecting that the vlan information and physics exit port are matched to CIP access way, according to institute
State configuration information generate ICMP request message after and encapsulate the ICMP request message;
Step S1022, judging whether can be according to the destination IP address search to the Packet Transport Network plant maintenance
In ARP table otherwise corresponding MAC Address enters step S1023 if so, entering step S1024;
Step S1023 caches ICMP request message, broadcast transmission ARP request message, study client's network edge equipment
ARP is added in the ARP table of test connection process maintenance after study is to ARP;
The ICMP request message is sent to client's network edge equipment by step S1024.
Wherein, in the payload segment for encapsulating the ICMP request message, the verification of ICMP request message is calculated with after, encapsulation
Corresponding IP packet payload segment and calculate IP packet verification and.
It wherein, source IP address to ICMP request message, destination IP if the ARP of client's network edge equipment can be learnt
The information such as address, physics exit port carry out checking for test concatenate rule, meet, and are added to test connection process maintenance
ARP table in.
Wherein, in a preferred embodiment, as shown in figure 4, above-mentioned steps S103 the following steps are included:
The ICMP response message and arp response message are sent to centre by the acl rule by step S1031
Manage device;
Step S1032, the central processing unit by detect the ICMP response message content whether with the ICMP
Between the content of request message corresponding determination client's network edge equipment and the user side interface of Packet Transport Network equipment
Connectivity.
The process of the present embodiment central processing unit processing ICMP response message are as follows: by the content for detecting ICMP response message
With whether the content of ICMP request message corresponding judges between client's network edge equipment and the side UNI of Packet Transport Network equipment
Whether can be connected to.The content and ICMP request message content of ICMP response message be not in addition to head is identical, other contents
It is all identical.Specific detection process includes: to detect whether ICMP response message is ICMP request message that its own sends
Response, if so, further whether the content of detection ICMP response message is corresponding with the content of ICMP request message, if so,
Then connectivity is preferable between client's network edge equipment and the side UNI of Packet Transport Network equipment.
Further, after receiving the ICMP response message of client's network edge equipment, ICMP request message can be calculated from hair
It is sent to the RTT (Round-Trip Time, round-trip delay) for receiving this period of time of ICMP response message.RTT can be one
Determine the distance for reflecting distance between two points in degree, can also be used as detection client's network edge equipment and Packet Transport Network equipment
A reference value of connectivity between the side UNI.
Specifically, timestamp can be stamped when sending ICMP request message and saved, obtain and work as in echo message
The difference of preceding timestamp, the two is exactly the numerical value of RTT.The maximum/minimum of continuous ping packet/be averaged can also be calculated simultaneously
The time of shake.Calculation method is as follows: if the ICMP response message quantity that receives is greater than 1, being calculated with this
RTT value subtracts the last RTT value calculated, the as time difference of this shake.When the ICMP response message number received
When amount is just 2, the time of maximum jitter at this time and minimum jitter time are all current shaky time.When the response message received
When quantity is greater than 2, current shaky time is recalculated, and carry out with maximum jitter time before and minimum jitter time
Compare.If current shaky time be greater than before the maximum jitter time, using current shaky time as at present most
Big shaky time.If current shaky time be less than before the minimum jitter time, using current shaky time as mesh
The preceding minimum jitter time.
Through the above description it can be seen that the present embodiment is obtained by the operation test bind command of Packet Transport Network equipment
Configuration information, after the configuration information is matched to CIP access way, Packet Transport Network equipment sends ICMP request message and receives
Client's network edge equipment return ICMP response message, according to from Packet Transport Network equipment processing returns to ICMP response message,
And determine the connectivity between client's network edge equipment and the user side interface of Packet Transport Network equipment, since the present embodiment is
CIP access way, Packet Transport Network equipment and client's network edge equipment are realized direct-connected, need not move through router, i.e., not across jump,
Implementation method is simple, and there are many CIP access ways, it can be selected according to different CIP access ways, operating method spirit
It is living, greatly improve detection efficiency.
As shown in figure 5, one embodiment of the invention proposes that a kind of Packet Transport Network equipment, Packet Transport Network equipment include:
Module 101 is obtained, obtains configuration information for initiating test bind command, and according to test bind command;
Wherein, test bind command can be uni-ping order.
Wherein, Packet Transport Network equipment executes test bind command, the available source IP in test bind command row
Location, purpose IP address, physics exit port and vlan information etc., source IP address, purpose IP address, physics exit port are that user is necessary
Specified information, vlan information include svlan and priority, cvlan information etc., and svlan and priority, cvlan information are to use
Specified information can may be selected in family.User can specify different information according to different CIP access ways.
Wherein, purpose IP address can be arbitrarily selected, but as long as keeping source IP address and purpose IP address in same network segment
?.
For executing uni-ping order, in order to not influence the ARP(Address Resolution of public network
Protocol, address resolution protocol) table, which needs to separately maintain an ARP table.ARP table is an overall situation
Table.Public network ARP table is in PROTOCOL process creation, addition, deletion and access.And due to uni-ping order be
What ping process was initiated, the creation and inquiry of the ARP table of uni-ping are also in the processing of ping process.Here for client's selvage
The ARP message that edge equipment side is responded needs unification to be delivered to the completion of PING process and ARP from PROTOCOL process in packet receiving
The operation such as management of table.The present embodiment mainly prevents multi-process from causing multi-process access conflict to an ARP table operation simultaneously.
Packet Transport Network equipment can obtain the MAC Address of client's network edge equipment from the ARP table, can also be from client's network edge equipment
MAC Address of the ARP Receive message that side is responded to client's network edge equipment.
Message sending module 102, for after detecting that the configuration information is matched to CIP access way, according to described
Configuration information generates ICMP request message and the ICMP request message is sent to client's network edge equipment;
Wherein, which is unicast ICMP request message.
Wherein, there are many CIP access ways, including physics exit port access way, the access side physics exit port+VLAN
Formula, physics exit port+SVLAN access way etc..Configuration information must be consistent with CIP access way.
Wherein, after detecting that configuration information is matched to CIP access way, the message sending module of Packet Transport Network equipment
102 transmission ICMP request messages give client's network edge equipment, and client's network edge equipment is waited to return to ICMP response message.
Message processing module (MPM) 103, for being set by client's network edge described in the corresponding interface of the CIP access way
The standby ICMP response message returned, determines client's network edge equipment according to the ICMP request message and ICMP response message
Connectivity between the user side interface of Packet Transport Network equipment.
After being matched to CIP access way and sending ICMP request message, message processing module (MPM) 103 passes through the access side CIP
The ICMP response message that the corresponding interface client network edge equipment of formula returns, to ICMP request message and ICMP response message
After being handled, the connectivity between client's network edge equipment and the user side interface of Packet Transport Network equipment can be determined.
In a preferred embodiment, Packet Transport Network equipment further includes adding module, for being added according to the configuration information
Add acl rule.Specifically: configuration information is sent to the driving of Packet Transport Network equipment, ACL(Access is added by driving
Control List, accesses control list) rule, ICMP is sent by the acl rule when receiving ICMP response message and is answered
Message to central processing unit is answered to be handled.
Wherein, in a preferred embodiment, as shown in fig. 6, acquisition module 101 includes:
Acquiring unit 1011, for according to test bind command row obtain source IP address, purpose IP address, vlan information and
Physics exit port;
Judging unit 1012, what whether bind command issued for judging the test is smart group interface, and is sentenced
Whether the Packet Transport Network equipment of breaking is centralized device;
Integral unit 1013, if the result for judgement is to be, the member for obtaining the smart group interface is connect
Message breath, and integrate the source IP address, purpose IP address, vlan information, physics exit port and smart group interface at
Member's interface message, obtains the configuration information.
Wherein, associated timer can be created, it may include overtime timer, speed limit timer, OAM echo scanning timer
Deng.Speed limit timer is that the number given out a contract for a project is controlled in some cycles.
Wherein, when Packet Transport Network equipment is distributed apparatus, then testing bind command is that master control is being handled, and needs to believe
Breath, which is dealt on line card, to be handled.
Wherein, in a preferred embodiment, as shown in fig. 7, message sending module 102 includes:
Encapsulation unit 1021, for after detecting that the vlan information and physics exit port are matched to CIP access way,
ICMP request message is generated according to the configuration information and encapsulates the ICMP request message;
Judging unit 1022, for judge whether can be according to the destination IP address search to the Packet Transport Network equipment
Corresponding MAC Address in the ARP table of maintenance;
Transmission unit 1023 is set for the ICMP request message to be sent to client's network edge according to the MAC Address
It is standby.
Wherein, in the payload segment for encapsulating the ICMP request message, the verification of ICMP request message is calculated with after, encapsulation
Corresponding IP packet payload segment and calculate IP packet verification and.
It wherein, source IP address to ICMP request message, destination IP if the ARP of client's network edge equipment can be learnt
The information such as address, physics exit port carry out checking for test concatenate rule, meet, and are added to test connection process maintenance
ARP table in.
In a preferred embodiment, as shown in figure 8, determining module 103 includes:
Transmission unit 1031, for being sent to the ICMP response message and arp response message by the acl rule
Central processing unit;
Determination unit 1032, for the content by detecting the ICMP response message whether with the ICMP request message
Content corresponding determination client's network edge equipment and the user side interface of Packet Transport Network equipment between connectivity.
The present embodiment handles ICMP response message specifically: is requested by the content and ICMP that detect ICMP response message
Whether the content of message is corresponding to judge whether can to connect between client's network edge equipment and the side UNI of Packet Transport Network equipment
It is logical.For the content and ICMP request message content of ICMP response message in addition to head is not identical, other contents are all identical.Tool
The detection process of body include: detect ICMP response message whether be its own send ICMP request message response, if so,
Whether the content for further detecting ICMP response message is corresponding with the content of ICMP request message, if so, client's network edge
Connectivity is preferable between equipment and the side UNI of Packet Transport Network equipment.
Further, after receiving the ICMP response message of client's network edge equipment, ICMP request message can be calculated from hair
It is sent to the RTT (Round-Trip Time, round-trip delay) for receiving this period of time of ICMP response message.RTT can be one
Determine the distance for reflecting distance between two points in degree, can also be used as detection client's network edge equipment and Packet Transport Network equipment
A reference value of connectivity between the side UNI.
Specifically, timestamp can be stamped when sending ICMP request message and saved, obtain and work as in echo message
The difference of preceding timestamp, the two is exactly the numerical value of RTT.The maximum/minimum of continuous ping packet/be averaged can also be calculated simultaneously
The time of shake.Calculation method is as follows: if the ICMP response message quantity that receives is greater than 1, being calculated with this
RTT value subtracts the last RTT value calculated, the as time difference of this shake.When the ICMP response message number received
When amount is just 2, the time of maximum jitter at this time and minimum jitter time are all current shaky time.When the response message received
When quantity is greater than 2, current shaky time is recalculated, and carry out with maximum jitter time before and minimum jitter time
Compare.If current shaky time be greater than before the maximum jitter time, using current shaky time as at present most
Big shaky time.If current shaky time be less than before the minimum jitter time, using current shaky time as mesh
The preceding minimum jitter time.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations
Equivalent structure made by description of the invention and accompanying drawing content or process transformation, are applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of method for detecting L2VPN network user's side interface connectivity, which comprises the following steps:
Packet Transport Network equipment initiates test bind command, and obtains configuration information according to test bind command, described to match confidence
Breath includes vlan information and physics exit port;
After detecting that vlan information and physics exit port are matched to CIP access way in the configuration information, by the configuration
Information generates ICMP request message and encapsulates the ICMP request message;
Judge whether to find the ARP table of the Packet Transport Network plant maintenance according to purpose IP address in the configuration information
In corresponding MAC Address, if so, the ICMP request message is sent to client's network edge equipment according to the MAC Address;
The ICMP response message returned by client's network edge equipment described in the corresponding interface of the CIP access way, root
The user of client's network edge equipment and Packet Transport Network equipment is determined according to the ICMP request message and ICMP response message
Connectivity between side interface.
2. the method according to claim 1, wherein the Packet Transport Network equipment initiate test bind command,
And the step of obtaining configuration information according to test bind command, includes:
Source IP address, purpose IP address, vlan information and physics exit port are obtained according to test bind command row;
What is judged the test whether bind command issue is smart group interface, and judges the Packet Transport Network equipment
It whether is centralized device;
If the result of judgement is to be, the member interface information of the smart group interface is obtained, and integrate the source IP
Address, purpose IP address, the member interface information of vlan information, physics exit port and smart group interface, obtain described match
Confidence breath.
3. according to the method described in claim 2, it is characterized in that, when detecting vlan information and physics in the configuration information
After exit port is matched to CIP access way, ICMP request message is generated according to the configuration information and requests to report by the ICMP
Text was sent to before the step of client's network edge equipment further include:
Acl rule is added according to the configuration information.
4. according to the method described in claim 3, it is characterized in that, described true according to ICMP request message and ICMP response message
The step of connectivity between fixed client's network edge equipment and the user side interface of Packet Transport Network equipment includes:
The ICMP response message and arp response message are sent to central processing unit by the acl rule;
The central processing unit by detect the ICMP response message content whether the content with the ICMP request message
Connectivity between corresponding determination client's network edge equipment and the user side interface of Packet Transport Network equipment.
5. a kind of Packet Transport Network equipment characterized by comprising
Module is obtained, obtains configuration information, the configuration information for initiating test bind command, and according to test bind command
Including vlan information and physics exit port;
Message sending module, for after detecting that the vlan information and physics exit port are matched to CIP access way, by institute
It states configuration information to generate ICMP request message and encapsulate the ICMP request message, and judging whether can be according to mesh in configuration information
IP address find corresponding MAC Address in the ARP table of the Packet Transport Network plant maintenance, if so, according to the MAC
The ICMP request message is sent to client's network edge equipment by address;
Determining module, for what is returned by client's network edge equipment described in the corresponding interface of the CIP access way
ICMP response message determines that client's network edge equipment and grouping pass according to the ICMP request message and ICMP response message
Send the connectivity between the user side interface of net equipment.
6. Packet Transport Network equipment according to claim 5, which is characterized in that the acquisition module includes:
Acquiring unit, for obtaining source IP address, purpose IP address, vlan information and physics outlet according to test bind command row
Mouthful;
Judging unit, what whether bind command issued for judging the test is smart group interface, and judges described point
Whether group transmission net equipment is centralized device;
Integral unit obtains the member interface information of the smart group interface if the result for judgement is to be,
And integrate the member interface of the source IP address, purpose IP address, vlan information, physics exit port and smart group interface
Information obtains the configuration information.
7. Packet Transport Network equipment according to claim 6, which is characterized in that further include:
Adding module, for adding acl rule according to the configuration information.
8. Packet Transport Network equipment according to claim 7, which is characterized in that the determining module includes:
Transmission unit, for the ICMP response message and arp response message to be sent to central processing by the acl rule
Device;
Determination unit, for the content by detecting the ICMP response message whether the content phase with the ICMP request message
The corresponding connectivity determined between client's network edge equipment and the user side interface of Packet Transport Network equipment.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310571868.2A CN104639385B (en) | 2013-11-13 | 2013-11-13 | Detect the method and apparatus of L2VPN network user's side interface connectivity |
PCT/CN2014/080756 WO2015070614A1 (en) | 2013-11-13 | 2014-06-25 | Method and device for detecting connectivity of user side interfaces of l2vpn |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310571868.2A CN104639385B (en) | 2013-11-13 | 2013-11-13 | Detect the method and apparatus of L2VPN network user's side interface connectivity |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104639385A CN104639385A (en) | 2015-05-20 |
CN104639385B true CN104639385B (en) | 2019-02-12 |
Family
ID=53056723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310571868.2A Active CN104639385B (en) | 2013-11-13 | 2013-11-13 | Detect the method and apparatus of L2VPN network user's side interface connectivity |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104639385B (en) |
WO (1) | WO2015070614A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105306284A (en) * | 2014-05-27 | 2016-02-03 | 中兴通讯股份有限公司 | Method and device for detecting connectivity of user network interface of virtual private network |
CN106559283A (en) * | 2015-09-30 | 2017-04-05 | 华为技术有限公司 | A kind of network monitoring method, apparatus and system |
CN112866048B (en) * | 2019-11-28 | 2023-04-28 | 中盈优创资讯科技有限公司 | Detection method and device for special line of Internet of things |
CN114079620B (en) * | 2020-08-06 | 2024-02-27 | 北京国基科技股份有限公司 | Method and device for determining online state of network equipment |
CN112187565B (en) * | 2020-09-10 | 2023-05-30 | 江苏慧业文人信息科技有限公司 | Intelligent network line quality detection method |
TWI792072B (en) * | 2020-10-12 | 2023-02-11 | 中華電信股份有限公司 | Intelligent measurement system for software-defined network quality of experience and method thereof |
CN112929364B (en) * | 2021-02-05 | 2023-03-24 | 上海观安信息技术股份有限公司 | Data leakage detection method and system based on ICMP tunnel analysis |
CN114301806B (en) * | 2021-12-31 | 2023-05-30 | 网络通信与安全紫金山实验室 | Virtual network connectivity detection method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030898A (en) * | 2006-01-30 | 2007-09-05 | 丛林网络公司 | Determining connectivity status for unnumbered inerfaces of a target network device |
CN101404594A (en) * | 2008-07-10 | 2009-04-08 | 北京星网锐捷网络技术有限公司 | Hot backup performance test method and apparatus, communication equipment |
CN101984587A (en) * | 2010-11-12 | 2011-03-09 | 中兴通讯股份有限公司 | Method, system and device for detecting connectivity of two points of multicast forwarding tree |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741742B (en) * | 2009-12-18 | 2012-01-04 | 华为技术有限公司 | Message processing method, access equipment and communication system |
-
2013
- 2013-11-13 CN CN201310571868.2A patent/CN104639385B/en active Active
-
2014
- 2014-06-25 WO PCT/CN2014/080756 patent/WO2015070614A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030898A (en) * | 2006-01-30 | 2007-09-05 | 丛林网络公司 | Determining connectivity status for unnumbered inerfaces of a target network device |
CN101404594A (en) * | 2008-07-10 | 2009-04-08 | 北京星网锐捷网络技术有限公司 | Hot backup performance test method and apparatus, communication equipment |
CN101984587A (en) * | 2010-11-12 | 2011-03-09 | 中兴通讯股份有限公司 | Method, system and device for detecting connectivity of two points of multicast forwarding tree |
Also Published As
Publication number | Publication date |
---|---|
CN104639385A (en) | 2015-05-20 |
WO2015070614A1 (en) | 2015-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104639385B (en) | Detect the method and apparatus of L2VPN network user's side interface connectivity | |
CN110247784B (en) | Method and device for determining network topology structure | |
US8693343B2 (en) | Relay apparatus, virtual machine system, and relay method | |
WO2020135575A1 (en) | System and method for obtaining network topology, and server | |
US10091274B2 (en) | Method, device, and system for controlling network device auto-provisioning | |
WO2017092502A1 (en) | System and method for identifying wireless terminal type in router network bridge mode | |
US8711817B2 (en) | Low cost mesh network capability | |
CN108777640B (en) | Server detection method, device, system and storage medium | |
CN111542064A (en) | Container arrangement management system and arrangement method for wireless access network | |
CN105306264A (en) | Network configuration and remote registration binding method and system for intelligent household appliance | |
US20190394305A1 (en) | Apparatus for managing sdn-based in-vehicle network and control method thereof | |
CN103312715A (en) | Web service oriented home network system architecture | |
CN106559302A (en) | Single tunnel method for building up, device and system | |
CN108965036B (en) | Method, system, server and storage medium for configuring cross-public network equipment mutual access | |
CN104378451A (en) | Network communication route selecting method, device and system | |
US8862939B2 (en) | Network system and management server | |
CN109240796A (en) | Virtual machine information acquisition methods and device | |
CN107517138A (en) | Equipment detection method and device | |
CN107124337A (en) | Equipment configuration method, device, system and centralized control terminal | |
CN103997479A (en) | Asymmetric service IP proxy method and equipment | |
US20150172408A1 (en) | Unified service platform for ubiquitous network and service implementation method | |
CN101873235A (en) | Detection method of equipment network link, network management system and network system | |
CN103747115A (en) | Method of discovering IP (Internet Protocol) address of virtual machine based on virtual network interface card | |
US20140301226A1 (en) | Apparatus and method for network monitoring and packet inspection | |
CN108650337B (en) | Server detection method, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |