CN106302248B - Neighbor establishing method and device - Google Patents

Neighbor establishing method and device Download PDF

Info

Publication number
CN106302248B
CN106302248B CN201610795504.6A CN201610795504A CN106302248B CN 106302248 B CN106302248 B CN 106302248B CN 201610795504 A CN201610795504 A CN 201610795504A CN 106302248 B CN106302248 B CN 106302248B
Authority
CN
China
Prior art keywords
tunnel
network device
deleted
neighbor
destination address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610795504.6A
Other languages
Chinese (zh)
Other versions
CN106302248A (en
Inventor
王文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201610795504.6A priority Critical patent/CN106302248B/en
Publication of CN106302248A publication Critical patent/CN106302248A/en
Application granted granted Critical
Publication of CN106302248B publication Critical patent/CN106302248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Abstract

The embodiment of the invention provides a neighbor establishing method and a neighbor establishing device, which are applied to a tunnel module of any network equipment, wherein the method comprises the following steps: when a tunnel deleting message is received, acquiring a destination address of a tunnel to be deleted; judging whether the connection to the opposite terminal network equipment can be carried out or not according to the destination address; if not, deleting the tunnel to be deleted; if yes, according to the destination address of the tunnel to be deleted, a neighbor protocol module is informed to establish a neighbor relation with the opposite terminal network equipment. The embodiment of the invention can improve the efficiency of neighbor establishment and enable the network equipment to provide normal network service.

Description

Neighbor establishing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a neighbor establishment method and apparatus.
Background
ENDP (Enhanced Neighbor Discovery Protocol) is a Protocol for automatically discovering neighbors. The use of the protocol can greatly simplify the network configuration and reduce the maintenance workload of network management staff. For example, a VTEP (VXLAN Tunnel End Point) in VXLAN (Virtual eXtensible Local Area Network) may automatically discover a neighbor VTEP through ENDP and automatically establish a neighbor relationship.
In practical application, after discovering the neighbor network device and establishing the neighbor relationship, a Tunnel may be automatically established between the home network device and the neighbor network device, so as to perform message interaction between the network devices. The tunnel is a virtual point-to-point connection, and both ends of the tunnel need to encapsulate and decapsulate the data packet.
Specifically, after the home network device learns the neighbor network device through the neighbor protocol module and establishes the neighbor relationship, the tunnel module may be notified according to the neighbor network device information to create the tunnel corresponding to the neighbor network device. And when the local network device and the neighbor network device are disconnected from the neighbor relationship, the neighbor protocol module also informs the tunnel module to delete the tunnel corresponding to the neighbor network device. After receiving the tunnel deleting message sent by the neighbor protocol module, the tunnel module deletes the corresponding tunnel.
It can be seen that, in the prior art, tunnel creation or deletion by the tunnel module is performed according to the notification message sent by the neighbor protocol module. However, in some cases, such as during a short network oscillation, the network device may need to perform procedures of deleting a tunnel, learning neighbors, and establishing a tunnel, which take a long time. This may result in the network device being shut down for a longer period of time and thus unable to provide normal network service.
Disclosure of Invention
The embodiment of the invention aims to provide a neighbor establishing method and a neighbor establishing device so as to improve the efficiency of neighbor establishment and enable network equipment to provide normal network service. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a neighbor establishment method, which is applied to a tunnel module of any network device, and the method includes:
when a tunnel deleting message is received, acquiring a destination address of a tunnel to be deleted;
judging whether the connection to the opposite terminal network equipment can be carried out or not according to the destination address;
if not, deleting the tunnel to be deleted; if yes, according to the destination address of the tunnel to be deleted, a neighbor protocol module is informed to establish a neighbor relation with the opposite terminal network equipment.
In a second aspect, an embodiment of the present invention provides a neighbor establishing apparatus, which is applied to a tunnel module of any network device, where the apparatus includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a destination address of a tunnel to be deleted when a tunnel deletion message is received;
a judging unit, configured to judge whether the connection to the peer network device is possible according to the destination address;
the processing unit is used for deleting the tunnel to be deleted when the judgment result of the judging unit is that the tunnel cannot be deleted; and when the judgment result of the judgment unit is yes, informing a neighbor protocol module to establish a neighbor relation with the opposite terminal network equipment according to the destination address of the tunnel to be deleted.
The embodiment of the invention provides a neighbor establishing method and a neighbor establishing device, when a tunnel module receives a tunnel deleting message, the tunnel module does not directly delete the tunnel to be deleted, but judges whether the tunnel to be deleted can be connected to opposite-end network equipment, and if the tunnel to be deleted can not be connected to the opposite-end network equipment, the tunnel to be deleted is deleted; if it can, it indicates that the neighbor relation may be disconnected only briefly before, the home network device should still maintain the neighbor relation with the peer network device. In this case, the tunnel module may not delete the tunnel to be deleted, and may notify the neighbor protocol module to establish a neighbor relationship with the peer network device according to the destination address of the tunnel to be deleted. That is to say, when transient network oscillation occurs, the local network device does not need to delete the tunnel, learn the neighbor and establish the tunnel, and can directly establish the neighbor relationship with the opposite network device, so that the efficiency of neighbor establishment can be improved, and the network device can provide normal network service.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a neighbor establishment method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a neighbor establishing apparatus according to an embodiment of the present invention;
fig. 3 is another schematic structural diagram of a neighbor establishing apparatus according to an embodiment of the present invention;
fig. 4 is another schematic structural diagram of a neighbor establishing apparatus according to an embodiment of the present invention.
Detailed Description
In order to improve the efficiency of neighbor establishment and enable network equipment to provide normal network services, the embodiment of the invention provides a neighbor establishment method and a neighbor establishment device.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In the embodiment of the present invention, in order to improve the efficiency of neighbor establishment and enable a network device to provide a normal network service, an embodiment of the present invention provides a neighbor establishment method, which is applied to a tunnel module of any network device, and as shown in fig. 1, the process may include the following steps:
s101, when receiving the tunnel deleting message, acquiring the destination address of the tunnel to be deleted.
In practical applications, the tunnel module of the network device may receive the tunnel deletion message. In particular, the tunnel deletion message may be sent by a neighbor protocol module.
For example, when network oscillation occurs and the network device disconnects the neighbor relationship with any neighbor network device, the neighbor protocol module sends a tunnel deletion message to the tunnel module to notify the tunnel module to delete the tunnel corresponding to the neighbor network device.
Or, when the main/standby switch occurs, that is, when the main/standby switch occurs between the main board and the back board in the network device, or when the main/standby process is switched, in order to ensure that the data between the neighbor protocol module of the network device and the tunnel module after the main/standby switch is consistent, thereby ensuring the accuracy of establishing the neighbor relationship, the neighbor protocol module of the main board after the switch will be smooth with the tunnel module.
Specifically, when the neighbor protocol module notifies the tunnel module to start smoothly, the neighbor protocol module may notify the tunnel module to re-create the tunnel according to its own neighbor information, for example, the neighbor information synchronized by the previous motherboard, or the neighbor information acquired from the database by itself. After receiving the message of creating the tunnel, the tunnel module checks whether the tunnel is already created locally, if so, the tunnel is set with a piece of mark information and returned; if not, a tunnel is newly created and a flag information is set. That is, tunnels that are consistent with the neighbor protocol modules will contain flag information, rather than tunnels created from a neighbor protocol module, such as automatic tunnels created before the tunnel module and by a particular neighbor protocol module, will not contain flag information.
After the tunnel module completes the establishment of the tunnel concatenation flag information according to the notification message sent by the neighbor protocol module, a response message of the completion of the establishment can be sent to the neighbor protocol module. After receiving the response message, the neighbor protocol module may notify the tunnel module of the end of smoothing. And the tunnel module receives the smoothing end message, can traverse all locally established tunnels, acquires the mark information of each tunnel, and determines the tunnel without the mark information as the tunnel to be deleted.
Therefore, in the embodiment of the present invention, the tunnel deletion message received by the tunnel module may be a message sent by the neighbor protocol module to delete a certain tunnel. Or receiving a smoothing end message sent by the neighbor protocol module in the smoothing process.
In the embodiment of the invention, after receiving the tunnel deletion message, the network equipment can acquire the destination address of the tunnel to be deleted. Specifically, the network device receives the tunnel deletion message, and obtains the destination address of the tunnel to be deleted, which may be implemented as follows:
for example, a tunnel deletion message received by the network device may carry a destination address of a tunnel to be deleted; or, the tunnel deletion message may carry identification information of the tunnel to be deleted, and the network device may search a destination address corresponding to the identification information of the tunnel to be deleted according to a correspondence between each locally stored tunnel identification information and the destination address, and determine the found destination address as the destination address of the tunnel to be deleted.
Since one tunnel corresponds to one neighbor network device, when the network device acquires the destination address of the tunnel to be deleted, that is, the network device acquires the address of the opposite-end network device corresponding to the tunnel to be deleted.
S102, judging whether the connection to the opposite terminal network equipment can be carried out or not according to the destination address; if not, step S103 is executed, and if so, step S104 is executed.
In practical applications, when the neighbor protocol module sends the tunnel deletion message to the tunnel module, it may be only because of a short network oscillation. In fact, after a period of time, when the tunnel module receives the tunnel deletion message, the network may have recovered to normal, and the peer network device corresponding to the tunnel to be deleted may have been connected.
In this case, if the tunnel module deletes the tunnel to be deleted, the subsequent neighbor protocol module learns the peer network device corresponding to the tunnel to be deleted again, and needs to establish a neighbor relationship with the peer network device again and reestablish the tunnel.
In the embodiment of the invention, in order to improve the efficiency of neighbor establishment and enable the network device to provide normal network service, after receiving the tunnel deletion message, the tunnel module does not immediately delete the tunnel to be deleted, but can judge whether the tunnel to be deleted can be connected to the opposite-end network device according to the destination address and the source address of the tunnel to be deleted.
If the connection to the opposite-end network device cannot be achieved, the fact that the opposite-end network device is possibly offline or the network failure is not recovered is indicated, and in this case, the tunnel module may delete the tunnel to be deleted.
If the connection to the peer network device is possible, it indicates that the neighbor protocol module sends the tunnel deletion message, which may be because the local network device and the peer network device are disconnected from the neighbor relation due to transient network oscillation. In this case, it indicates that the home network device may establish a neighbor relationship with the peer network device, and in order to quickly establish a neighbor relationship with the peer network device and avoid performing tunnel deletion, neighbor learning, and tunnel establishment, the difference from the establishment of a corresponding tunnel according to a neighbor relationship is that, in this embodiment, the tunnel module may notify the neighbor protocol module to establish a neighbor relationship with the peer network device according to a destination address of a tunnel to be deleted, that is, establish a corresponding neighbor relationship according to tunnel information.
In an implementation manner, when the tunnel module determines whether the tunnel module can be connected to the peer network device according to the destination address and the source address of the tunnel to be deleted, the tunnel module may send a detection packet to the peer network device according to the destination address and the source address. After receiving the detection message, the opposite-end network device may send a response message to the home-end network device, so that when the tunnel module receives the response message sent by the opposite-end network device, it is determined that the tunnel module can be connected to the opposite-end network device.
The detection Message sent by the tunnel module may be an ICMP (Internet Control Message Protocol) Message. ICMP is a sub-protocol of the TCP/IP protocol family that is used to pass control messages between IP hosts and routers. Control messages refer to messages of the network itself, such as network traffic down, whether a host is reachable, whether routing is available, etc.
For example, the tunnel module may send the detection packet to the peer network device according to the destination address and the source address of the tunnel to be deleted. And then detecting whether a response message sent by the opposite terminal network equipment is received, and if so, determining that the opposite terminal network equipment can be connected.
Optionally, in order to avoid that the detection packet sent by the local network device cannot be received by the opposite network device due to failure of timely recovery due to network failure, the local network device may send the packet multiple times. For example, the home network device may send a detection packet to the peer network device according to a set time interval, such as 1 millisecond, 2 milliseconds, 5 milliseconds, and the like, so as to improve the possibility that the peer network device receives the packet. Wherein, in order to detect whether the connection to the opposite terminal network device is possible as soon as possible, a shorter time interval may be set. On the basis of the above embodiment, the tunnel module may send the detection packet to the peer network device according to a preset time interval, and determine whether the number of times of sending the detection packet reaches a preset maximum number of times of sending.
If the response message sent by the opposite terminal network equipment is not received within a certain time interval and the preset maximum sending times is reached, determining that the opposite terminal network equipment cannot be connected.
Specifically, the tunnel module may preset a time interval and detect the maximum number of times of sending a message, and after sending a detection message, the tunnel module may detect whether a response message sent by the peer network device is received within a time interval, and if the response message is received, it is determined that the tunnel module can be connected to the peer network device, and the detection message is not sent to the peer network device. If not, sending the detection message to the opposite terminal network equipment again, continuously detecting whether a response message sent by the opposite terminal network equipment is received in the time interval, meanwhile, judging whether the number of times of the sent detection message reaches the set maximum sending number, and if the response message sent by the opposite terminal network equipment is not received in any time interval and the set maximum sending number is reached, determining that the connection to the opposite terminal network equipment cannot be realized.
In order to improve the efficiency of detecting whether the network device can be connected to the opposite terminal, avoid the detection process from occupying too long time, and serve as a replacement scheme for judging whether the number of times of detecting messages reaches the set maximum sending number, optionally, the tunnel module can preset the maximum time length, and when a response message is received within the maximum time length, the tunnel module can be determined to be connected to the opposite terminal network device; when the response message is not received within the maximum duration, the tunnel module will not continue to detect, and may determine that the connection to the peer network device is not possible, the peer network device may indeed be offline, or the network has not been recovered.
Wherein the preset maximum duration is greater than the set time interval. Of course, the tunnel module may only send the detection message once within the preset maximum duration range, or may send the detection message multiple times according to the set time interval.
In another implementation, when the home network device determines whether to connect to the peer network device according to the destination address and the source address, it may also create a Bidirectional Forwarding Detection (BFD) session with the peer network device according to the destination address and the source address; and when the BFD session is UP, determining that the opposite terminal network equipment can be connected.
BFD (Bidirectional Forwarding Detection) is a general, standardized, media independent and protocol independent fast fault Detection mechanism, and can be used for detecting link states in a network, and ensuring that communication faults between network devices can be detected fast, so that measures can be taken in time, and service continuous operation is ensured.
After the home terminal network device creates the BFD session with the opposite terminal network device, it can further detect whether the BFD session is in the UP state. Specifically, the home network device may periodically detect whether the BFD session is in the UP state.
S103, deleting the tunnel to be deleted.
When the home network device determines that the home network device cannot be connected to the peer network device, it indicates that the peer network device may indeed be offline or the network failure is not recovered, in which case, the tunnel module may delete the tunnel to be deleted.
S104, according to the destination address of the tunnel to be deleted, notifying a neighbor protocol module to establish a neighbor relation with the opposite terminal network equipment.
When the home network device determines that the home network device can be connected to the peer network device, it indicates that the neighbor protocol module sends the tunnel deletion message, which may be because the home network device and the peer network device are disconnected from each other due to network oscillation. In this case, it indicates that the home network device may establish a neighbor relationship with the peer network device, and in order to quickly establish a neighbor relationship with the peer network device and avoid performing tunnel deletion, neighbor learning, and tunnel establishment, the tunnel module may notify the neighbor protocol module of establishing a neighbor relationship with the peer network device according to a destination address of a tunnel to be deleted.
The embodiment of the invention provides a neighbor establishing method, when a tunnel module receives a tunnel deleting message, the tunnel module does not directly delete the tunnel to be deleted, but judges whether the tunnel to be deleted can be connected to opposite-end network equipment, if not, the tunnel to be deleted is deleted; if it can, it indicates that the neighbor relation may be disconnected only briefly before, the home network device should still maintain the neighbor relation with the peer network device. In this case, the tunnel module may not delete the tunnel to be deleted, and may notify the neighbor protocol module to establish a neighbor relationship with the peer network device according to the destination address of the tunnel to be deleted. That is to say, when transient network oscillation occurs, the local network device does not need to delete the tunnel, learn the neighbor and establish the tunnel, and can directly establish the neighbor relationship with the opposite network device, so that the efficiency of neighbor establishment can be improved, and the network device can provide normal network service.
Corresponding to the above method embodiment, the embodiment of the present invention also provides a corresponding device embodiment.
Fig. 2 is a neighbor establishing apparatus provided in an embodiment of the present invention, which is applied to a tunnel module of any network device, and the apparatus includes:
an obtaining unit 210, configured to obtain a destination address of a tunnel to be deleted when a tunnel deletion message is received;
a determining unit 220, configured to determine whether the peer network device can be connected according to the destination address;
a processing unit 230, configured to delete the tunnel to be deleted when the determination result of the determining unit 220 is that the tunnel cannot be deleted; when the determination result of the determining unit 220 is ok, the neighbor protocol module is notified to establish a neighbor relationship with the peer network device according to the destination address of the tunnel to be deleted.
The embodiment of the invention provides a neighbor establishing device, when a tunnel module receives a tunnel deleting message, the tunnel module does not directly delete the tunnel to be deleted, but judges whether the tunnel to be deleted can be connected to opposite-end network equipment, and if the tunnel to be deleted cannot be deleted; if it can, it indicates that the neighbor relation may be disconnected only briefly before, the home network device should still maintain the neighbor relation with the peer network device. In this case, the tunnel module may not delete the tunnel to be deleted, and may notify the neighbor protocol module to establish a neighbor relationship with the peer network device according to the destination address of the tunnel to be deleted. That is to say, when transient network oscillation occurs, the local network device does not need to delete the tunnel, learn the neighbor and establish the tunnel, and can directly establish the neighbor relationship with the opposite network device, so that the efficiency of neighbor establishment can be improved, and the network device can provide normal network service.
Further, as shown in fig. 3, the determining unit 220 includes:
a sending subunit 221, configured to send a detection packet to the peer network device according to the destination address;
the first determining subunit 222 is configured to determine, when receiving the response packet sent by the peer network device, that the peer network device can be connected to.
Further, the sending subunit 221 is specifically configured to send a detection packet to the peer network device according to a set time interval.
Further, as shown in fig. 4, the determining unit 220 includes:
a creating subunit 223, configured to create, according to the destination address, a bidirectional forwarding detection BFD session with the peer network device;
a second determining subunit 224, configured to determine that a peer network device can be connected when the BFD session UP is performed.
Further, the obtaining unit 210 is specifically configured to, in the smoothing process, when a smoothing end message is received, obtain flag information of each locally created tunnel, determine that a tunnel that does not include the flag information is a tunnel to be deleted, and obtain a destination address of the tunnel to be deleted.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A neighbor establishing method is applied to a tunnel module of any network equipment, and comprises the following steps:
when a tunnel deleting message is received, acquiring a destination address of a tunnel to be deleted;
judging whether the connection to the opposite terminal network equipment can be carried out or not according to the destination address;
if not, deleting the tunnel to be deleted; if yes, according to the destination address of the tunnel to be deleted, a neighbor protocol module is informed to establish a neighbor relation with the opposite terminal network equipment.
2. The method of claim 1, wherein the determining whether the peer network device can be connected according to the destination address comprises:
sending a detection message to the opposite terminal network equipment according to the destination address;
and when receiving a response message sent by the opposite-end network equipment, determining that the network equipment can be connected to the opposite-end network equipment.
3. The method of claim 2, wherein the sending the detection packet to the peer network device comprises:
and sending a detection message to the opposite terminal network equipment according to a set time interval.
4. The method of claim 1, wherein the determining whether the peer network device can be connected according to the destination address comprises:
establishing a Bidirectional Forwarding Detection (BFD) session between the BFD and the opposite terminal network equipment according to the destination address;
and when the BFD session is UP, determining that the opposite terminal network equipment can be connected.
5. The method according to any one of claims 1 to 4, wherein the obtaining the destination address of the tunnel to be deleted when the tunnel deletion message is received comprises:
in the smoothing process, when a smoothing ending message is received, acquiring mark information of each locally created tunnel, determining the tunnel without the mark information as a tunnel to be deleted, and acquiring a destination address of the tunnel to be deleted.
6. A neighbor establishing apparatus, applied to a tunnel module of any network device, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a destination address of a tunnel to be deleted when a tunnel deletion message is received;
a judging unit, configured to judge whether the connection to the peer network device is possible according to the destination address;
the processing unit is used for deleting the tunnel to be deleted when the judgment result of the judging unit is that the tunnel cannot be deleted; and when the judgment result of the judgment unit is yes, informing a neighbor protocol module to establish a neighbor relation with the opposite terminal network equipment according to the destination address of the tunnel to be deleted.
7. The apparatus according to claim 6, wherein the judging unit includes:
a sending subunit, configured to send a detection packet to the peer network device according to the destination address;
and the first determining subunit is configured to determine that the network device can be connected to the peer network device when receiving the response packet sent by the peer network device.
8. The apparatus according to claim 7, wherein the sending subunit is specifically configured to send the detection packet to the peer network device according to a set time interval.
9. The apparatus according to claim 6, wherein the judging unit includes:
a creating subunit, configured to create, according to the destination address, a bidirectional forwarding detection BFD session with the peer network device;
and the second determining subunit is used for determining that the network device can be connected to the opposite terminal network device when the BFD session is UP.
10. The apparatus according to any one of claims 6 to 9, wherein the obtaining unit is specifically configured to, in the smoothing process, when a smoothing end message is received, obtain flag information of each locally created tunnel, determine that a tunnel that does not include the flag information is a tunnel to be deleted, and obtain a destination address of the tunnel to be deleted.
CN201610795504.6A 2016-08-31 2016-08-31 Neighbor establishing method and device Active CN106302248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610795504.6A CN106302248B (en) 2016-08-31 2016-08-31 Neighbor establishing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610795504.6A CN106302248B (en) 2016-08-31 2016-08-31 Neighbor establishing method and device

Publications (2)

Publication Number Publication Date
CN106302248A CN106302248A (en) 2017-01-04
CN106302248B true CN106302248B (en) 2021-10-12

Family

ID=57673901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610795504.6A Active CN106302248B (en) 2016-08-31 2016-08-31 Neighbor establishing method and device

Country Status (1)

Country Link
CN (1) CN106302248B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301737B (en) * 2021-12-29 2023-10-24 迈普通信技术股份有限公司 Network configuration method, device, network equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281165A (en) * 2010-06-09 2011-12-14 杭州华三通信技术有限公司 Fault detection method based on QoS, system and apparatus thereof
CN103227777A (en) * 2013-03-26 2013-07-31 汉柏科技有限公司 Method for preventing ipsec (Internet Protocol Security) tunnel oscillation caused by failed dpd (Dead Peer Detection)
CN104104573A (en) * 2014-08-06 2014-10-15 汉柏科技有限公司 Method and system for controlling IPsec tunnel of network devices
CN104270298A (en) * 2014-09-30 2015-01-07 杭州华三通信技术有限公司 Method and device for forwarding message in VXLAN
CN105591841A (en) * 2015-12-31 2016-05-18 盛科网络(苏州)有限公司 Connectivity detection method of VXLAN tunnel

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7512063B2 (en) * 2004-12-14 2009-03-31 Cisco Technology, Inc. Border router protection with backup tunnel stitching in a computer network
US7586841B2 (en) * 2005-05-31 2009-09-08 Cisco Technology, Inc. System and method for protecting against failure of a TE-LSP tail-end node
US7765306B2 (en) * 2006-01-30 2010-07-27 Cisco Technology, Inc. Technique for enabling bidirectional forwarding detection between edge devices in a computer network
CN101094175B (en) * 2007-06-14 2011-06-01 华为技术有限公司 Method, device, and system for protecting flux of multicast
JP4945530B2 (en) * 2008-08-25 2012-06-06 株式会社東芝 Home agent, communication system, and communication method
CN102111325B (en) * 2009-12-23 2013-08-14 杭州华三通信技术有限公司 Method for quickly detecting link failures and device adopting same
CN103401780A (en) * 2013-07-18 2013-11-20 北京星网锐捷网络技术有限公司 Method and equipment for building routing by linking RIP (routing information protocol) with BFD (bidirectional forwarding detection)
CN103746881B (en) * 2014-01-13 2017-03-15 杭州华三通信技术有限公司 Neighbor state detection method and device in EVI networks
CN105634770B (en) * 2014-10-29 2019-05-07 新华三技术有限公司 The method and apparatus for disposing virtual extended local area network
CN104580258B (en) * 2015-02-03 2018-08-24 迈普通信技术股份有限公司 A kind of method and system of quick detection ipsec peer failure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281165A (en) * 2010-06-09 2011-12-14 杭州华三通信技术有限公司 Fault detection method based on QoS, system and apparatus thereof
CN103227777A (en) * 2013-03-26 2013-07-31 汉柏科技有限公司 Method for preventing ipsec (Internet Protocol Security) tunnel oscillation caused by failed dpd (Dead Peer Detection)
CN104104573A (en) * 2014-08-06 2014-10-15 汉柏科技有限公司 Method and system for controlling IPsec tunnel of network devices
CN104270298A (en) * 2014-09-30 2015-01-07 杭州华三通信技术有限公司 Method and device for forwarding message in VXLAN
CN105591841A (en) * 2015-12-31 2016-05-18 盛科网络(苏州)有限公司 Connectivity detection method of VXLAN tunnel

Also Published As

Publication number Publication date
CN106302248A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
EP2996290B1 (en) Packet forwarding method, apparatus, and system
US8027247B2 (en) Method and router for controlling graceful restart status
CN100568854C (en) A kind of method and interface board that keeps neighborhood
JP2006013827A (en) Packet transfer apparatus
US8824275B2 (en) Route calculating after switching occurs from a primary main control board to a standby main control board
CN103441897A (en) Method and device for locating failure node in virtual network
CN112738834A (en) MESH networking network emergency management method and electronic equipment
CN111447101B (en) Link detection method, device, computer equipment and storage medium
CN102957573A (en) Path detection realizing method and node
CN102868569A (en) Method, node and system for detecting performance of three-layer virtual private network
CN106411727B (en) Message processing method, device and autonomous system
JP5949035B2 (en) Network device setting device, setting system, setting method and setting program
CN110178345B (en) Method and apparatus for providing a backup link
CN104160667A (en) Method, Device, and System for Dual-Uplink Tangent Ring Convergence
CN106302248B (en) Neighbor establishing method and device
KR101946173B1 (en) Communication device, communication system and communication method
US11223965B2 (en) Method and apparatus for controlling network sensors
CN107995644B (en) Method, switch, system and storage medium for automatic recovery of wireless access point
CN108123875B (en) Bidirectional forwarding detection method and device
CN104270307A (en) Establishing method and device for BGP neighborhood
CN103647709A (en) ARP form item establishing method and device
CN113037622B (en) System and method for preventing BFD from vibrating
JP5278358B2 (en) Network connection device
CN109818870B (en) Multicast routing method, device, service board and machine readable storage medium
CN102014033B (en) Method and system for restoring services of fault nodes in ring network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou science and Technology Industrial Park, high tech Industrial Development Zone, Zhejiang Province, No. six and road, No. 310

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant