CN106911548A - A kind of tunnel state changing method and device - Google Patents

A kind of tunnel state changing method and device Download PDF

Info

Publication number
CN106911548A
CN106911548A CN201710109728.1A CN201710109728A CN106911548A CN 106911548 A CN106911548 A CN 106911548A CN 201710109728 A CN201710109728 A CN 201710109728A CN 106911548 A CN106911548 A CN 106911548A
Authority
CN
China
Prior art keywords
tunnel
working condition
distal end
standby
states
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.)
Pending
Application number
CN201710109728.1A
Other languages
Chinese (zh)
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 CN201710109728.1A priority Critical patent/CN106911548A/en
Publication of CN106911548A publication Critical patent/CN106911548A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present invention provides a kind of tunnel state changing method and device, and methods described includes:The message sent by the distal end VTEP equipment for receiving, determines the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel;The working condition in Ruo Ben landlords tunnel and standby tunnel is inconsistent with the working condition in the main tunnel of the distal end VTEP equipment and standby tunnel, state switching is operated to this landlord tunnel and standby tunnel, so that the working condition in this landlord tunnel and standby tunnel is consistent with the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel.Can be avoided due to the inconsistent caused service disconnection of tunnel state using the embodiment of the present invention, it is ensured that the reliability of business.

Description

A kind of tunnel state changing method and device
Technical field
The present invention relates to network communication technology field, more particularly to a kind of tunnel state changing method and device.
Background technology
VXLAN (Virtual Extensible Local Area Network, expansible Virtual Local Area Network) is to be based on IP (Internet Protocol, Internet protocol) network, using " MAC (Media Access Control, media interviews control System) in UDP (User Datagram Protocol, UDP) " packing forms two-layer VPN (Virtual Private Network, Virtual Private Network) technology.VXLAN can be based on existing service provider or enterprise IP network, be Scattered physical site provides two layers of interconnection, and can provide business isolation for different tenants.
EVPN (Ethernet Virtual Private Network, Ethernet VPN) is a kind of two layers VPN technologies, control plane uses MP-BGP (Multiprotocol Border Gateway Protocol, multiprotocol-border net Close agreement) EVPN routing iinformations are noticed, datum plane is E-Packeted using VXLAN packaged types.
The content of the invention
The present invention provides a kind of tunnel state changing method and device, to solve in existing EVPN networkings due to tunnel state Problem of service interruption caused by inconsistent.
A kind of first aspect according to embodiments of the present invention, there is provided tunnel state changing method, is applied to Ethernet virtual The expansible LAN endpoint of a tunnel VTEP equipment of destination virtual in private network EVPN networkings, methods described includes:
The message sent by the distal end VTEP equipment for receiving, determines the main tunnel and standby tunnel of the distal end VTEP equipment The working condition in road;
The working condition in Ruo Ben landlords tunnel and standby tunnel and the main tunnel of the distal end VTEP equipment and the work in standby tunnel Make state inconsistent, state switching is operated to this landlord tunnel and standby tunnel, so that the work in this landlord tunnel and standby tunnel Make state consistent with the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel.
A kind of second aspect according to embodiments of the present invention, there is provided tunnel state switching device, is applied to Ethernet virtual The expansible LAN endpoint of a tunnel VTEP equipment of destination virtual in private network EVPN networkings, it is characterised in that described device bag Include:
Receiving unit, for receiving the message that distal end VTEP equipment sends;
Determining unit, the message that the distal end VTEP equipment for being received by the receiving unit is sent, it is determined that described The working condition in the main tunnel of distal end VTEP equipment and standby tunnel;
Switch unit, for the main tunnel of working condition and the distal end VTEP equipment in Ruo Ben landlords tunnel and standby tunnel Working condition with standby tunnel is inconsistent, state switching is operated to this landlord tunnel and standby tunnel, so that this landlord tunnel It is consistent with the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel with the working condition in standby tunnel.
Using the embodiment of the present invention, the message sent by the distal end VTEP equipment for receiving determines distal end VTEP equipment Main tunnel and standby tunnel working condition, when the main tunnel of working condition and the distal end VTEP equipment in this landlord tunnel and standby tunnel When the working condition in road and standby tunnel is inconsistent, state switching is carried out to this landlord tunnel and standby tunnel, so that this landlord tunnel With the working condition in standby tunnel and the main tunnel of distal end VTEP equipment and consistent for the working condition in tunnel, it is to avoid due to tunnel Working condition it is inconsistent caused by service disconnection, it is ensured that the reliability of business.
Brief description of the drawings
Fig. 1~2 are a kind of configuration diagrams of EVPN networkings;
Fig. 3 is a kind of schematic flow sheet of tunnel state changing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of tunnel state switching device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another tunnel state switching device provided in an embodiment of the present invention.
Specific embodiment
At present, in order to improve the reliability of EVPN networkings, two VXLAN tunnels would generally be set up between two VTEP equipment Come for forwarding, wherein one is primary VXLAN tunnels (being referred to as main tunnel), another is the VXLAN tunnels (letter of backup Referred to as tunnel), different forward-paths are walked in two VXLAN tunnels respectively, preferably to ensure the use of customer service.
Active and standby VXLAN tunnels, the VXLAN of backup are established by taking EVPN networkings shown in Fig. 1 as an example, between VTEP1 and VTEP2 Tunnel can specify a VTEP3 to be used as the VTEP forward node of backup, after the failure of main tunnel, can be by standby tunnel Forwarded.
But practice finds that when main tunnel has a plurality of forward-path, particularly VTEP1 and VTEP2 are two-way When the underlay paths that VXLAN is walked in tunnel are inconsistent, easily there is the phenomenon of business single-pass.
By taking EVPN networkings shown in Fig. 2 as an example, when the underlay paths that the main tunnel forwarding of VTEP1 to VTEP2 is used are Path 2, the underlay paths that the main tunnel forwarding of VTEP2 to VTEP1 is used are paths 1, if the failure in path 2, Then in this one end of VTEP1, the forwarding of business has been switched to above standby tunnel, but in this one end of VTEP2, the forwarding of business is still Main tunnel is used, asymmetrical VXLAN tunnels is so occurred as soon as on VTEP1 and VTEP2 and is used, so can directly led The interruption of cause business.
In order that those skilled in the art more fully understand the technical scheme in the embodiment of the present invention, and make of the invention real Applying the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention Case is described in further detail.
Fig. 3 is referred to, is a kind of schematic flow sheet of tunnel state changing method provided in an embodiment of the present invention, wherein, The tunnel state changing method can apply to the target VTEP equipment in EVPN networkings, as shown in figure 3, the tunnel state switches Method may comprise steps of:
Step 301, the message sent by the distal end VTEP equipment for receiving, determine distal end VTEP equipment main tunnel and The working condition in standby tunnel.
In the embodiment of the present invention, target VTEP equipment is simultaneously not specific to the VTEP equipment of a certain fixation, but may refer to Any VTEP equipment in EVPN networkings, the embodiment of the present invention is subsequently no longer repeated.
It should be noted that in embodiments of the present invention, if non-specified otherwise, the tunnel for hereinafter referring to refers both to VXLAN Tunnel.
In the embodiment of the present invention, in order to ensure the symmetry of bidirectional tunnel, to ensure that business can use, the VTEP at tunnel two ends Equipment needs to know the working condition in the main tunnel of opposite end VTEP equipment and standby tunnel, so that VTEP equipment can be according to opposite end The working condition in the main tunnel of VTEP equipment and standby tunnel, keeps the working condition and opposite end VTEP in this landlord tunnel and standby tunnel The main tunnel of equipment is consistent with the working condition in standby tunnel.
In the embodiment of the present invention, the working condition in tunnel can include UP (available) state, Block (obstruction) states and Down (unavailable) state etc., wherein, the tunnel of UP states can carry out business forwarding, Block states and Down states Tunnel cannot carry out business forwarding.
It should be noted that when the working condition in certain tunnel of VTEP equipment is Down states, showing tunnel correspondence Underlay paths break down, or in VTEP equipment to should the port in tunnel break down, at this time, it may be necessary to corresponding therefore After barrier is repaired, the working condition in the tunnel can just change, namely in embodiments of the present invention, VTEP equipment can be according to need Ask and switch tunneling state between UP states and Block states, but the tunnel of Down states is (in corresponding failure reparation State switching cannot be carried out before).
In the embodiment of the present invention, the message that target VTEP equipment can be sent by the distal end VTEP equipment for receiving, really The working condition in the main tunnel of Dingyuan end VTEP equipment and standby tunnel, and then, can according to the main tunnel of distal end VTEP equipment and The working condition in standby tunnel determines whether itself is consistent with the tunneling state of distal end VTEP equipment.
As a kind of optional implementation method, in embodiments of the present invention, above by the distal end VTEP equipment for receiving The message of transmission, determines the main tunnel of distal end VTEP equipment and the working condition in standby tunnel, can include:
When the message that distal end VTEP equipment sends is received by this landlord tunnel, the main tunnel of distal end VTEP equipment is determined The working condition in road is UP states, and the working condition in the standby tunnel of distal end VTEP equipment is Down states or Block states;Or Person,
When the message that distal end VTEP equipment sends is received by local standby tunnel, the standby tunnel of distal end VTEP equipment is determined The working condition in road is UP states, and the working condition in the main tunnel of distal end VTEP equipment is Down states or Block states.
In this embodiment, it is contemplated that for target VTEP equipment or distal end VTEP equipment, main tunnel and standby tunnel The working condition of generally only one tunnel (main tunnel or standby tunnel) is UP, target VTEP equipment or distal end VTEP equipment in road Message is sent by the tunnel of the UP states, and the state in another tunnel is then in Block states or Down states, therefore, mesh Mark VTEP equipment can send message according to distal end VTEP equipment by which tunnel, determine the main tunnel of distal end VTEP equipment With the state in standby tunnel.
Correspondingly, in this embodiment, when target VTEP equipment receives distal end VTEP equipment by this landlord tunnel During the message of transmission, target VTEP equipment can determine that the working condition in the main tunnel of distal end VTEP equipment is UP states, and remote The working condition for holding the standby tunnel of VTEP equipment is then Down states or Block states;
When target VTEP equipment receives the message that distal end VTEP equipment sends by local standby tunnel, target VTEP sets The working condition in the standby standby tunnel that can determine distal end VTEP equipment is UP states, and the work in the main tunnel of distal end VTEP equipment State is then Down states or Block states.
Used as another optional implementation method, in embodiments of the present invention, it is remote that above-mentioned target VTEP equipment is received The message that end VTEP equipment sends is tunnel state notice message;
Correspondingly, the message for being sent above by the distal end VTEP equipment for receiving, determines the main tunnel of distal end VTEP equipment The working condition in road and standby tunnel, can include:
The work shape in main tunnel or/and standby tunnel according to the distal end VTEP equipment carried in the tunnel state notice message State, determines the main tunnel of distal end VTEP equipment and the working condition in standby tunnel.
In this embodiment, the main tunnel of opposite end VTEP equipment can be known in order to ensure the VTEP equipment at tunnel two ends With the working condition in standby tunnel, a kind of message of the working condition for notifying main tunnel and standby tunnel can be increased newly (herein Referred to as tunnel state notice message), can be carried in the tunnel state notice message send the message VTEP equipment it is local The working condition in main tunnel or/and standby tunnel.
Correspondingly, in this embodiment, when target VTEP equipment receives the tunnel state that distal end VTEP equipment sends During notice message, the main tunnel or/and standby tunnel of the distal end VTEP equipment carried in the tunnel state notice message can be obtained The working condition in road, and main tunnel or/and standby tunnel according to the distal end VTEP equipment carried in the tunnel state notice message Working condition, determine the main tunnel of distal end VTEP equipment and the working condition in standby tunnel, and compare this landlord tunnel and standby tunnel Whether the working condition in the main tunnel of the working condition in road and distal end VTEP equipment and standby tunnel consistent, with determine the need for into Row tunnel state switches.
As an example it is assumed that the working condition in main tunnel is only carried in tunnel state notice message, then when target VTEP sets During for the tunnel state notice message for receiving distal end VTEP equipment transmissions, carrying in the tunnel state notice message can be obtained Distal end VTEP equipment main tunnel working condition, when distal end VTEP equipment main tunnel working condition be UP states when, Target VTEP equipment can determine that the working condition in the main tunnel of distal end VTEP equipment is UP states, and standby tunnel state is Down shapes State or Block states;When the working condition in the main tunnel of distal end VTEP equipment is Down states, target VTEP equipment can be true The working condition in the main tunnel of Dingyuan end VTEP equipment is Down states, and standby tunnel state is UP states.
Again as an example it is assumed that carrying the working condition in main tunnel and standby tunnel in tunnel state notice message, then work as mesh When mark VTEP equipment receives the tunnel state notice message that distal end VTEP equipment sends, the tunnel state can be obtained and notify report The working condition in the main tunnel of the distal end VTEP equipment carried in text and standby tunnel.
In one of embodiment of the invention, the master of the working condition and distal end VTEP equipment in this landlord tunnel and standby tunnel The working condition in tunnel and standby tunnel is inconsistent, can include:
The working condition in this landlord tunnel is Down states or Block states, and standby tunnel is UP states, distal end VTEP equipment The working condition in main tunnel be UP states, the working condition in standby tunnel is Down states or Block states;Or,
The working condition in this landlord tunnel is UP states, and the working condition in standby tunnel is Down states or Block states, far The working condition for holding the main tunnel of VTEP equipment is Down states or Block states, and the working condition in standby tunnel is UP states.
Correspondingly, the working condition in this landlord tunnel and standby tunnel and the main tunnel of distal end VTEP equipment and the work in standby tunnel Make state consistency, can include:
The working condition in this landlord tunnel is Down states or Block states, and the working condition in standby tunnel is UP states, far The working condition for holding the main tunnel of VTEP equipment is Down states or Block states, and the working condition in standby tunnel is UP states;Or Person,
The working condition in this landlord tunnel is UP states, and the working condition in standby tunnel is Down states or Block states, far The working condition for holding the main tunnel of VTEP equipment is UP states, and the working condition in standby tunnel is Down states or Block states.
Correspondingly, in this embodiment, when target VTEP equipment is with distal end VTEP equipment for business forwarding tunnel Main tunnel is during for tunnel, and target VTEP equipment is consistent with the working condition in the tunnel of distal end VTEP equipment.
Specifically, it is standby when the working condition of target VTEP equipment and the main tunnel of distal end VTEP equipment is UP states The working condition in tunnel is Down states or Block states, and (i.e. target VTEP equipment turns with distal end VTEP equipment for business Hair tunnel Jun Weizhu tunnels) when;Or, the working condition in the main tunnel of target VTEP equipment and distal end VTEP equipment is Down states or Block states, the working condition in standby tunnel is UP states, and (i.e. target VTEP equipment is used with distal end VTEP equipment Standby tunnel is in business forwarding tunnel) when, it is believed that the work shape in the tunnel of target VTEP equipment and distal end VTEP equipment State is consistent.
In this embodiment, when the tunnel that target VTEP equipment is used for business forwarding is main tunnel, and distal end VTEP equipment Tunnel for business forwarding is standby tunnel;Or, the tunnel that target VTEP equipment is used for business forwarding is standby tunnel, and distal end When the tunnel that VTEP equipment is used for business forwarding is main tunnel, the work shape in the tunnel of target VTEP equipment and distal end VTEP equipment State is inconsistent.
Specifically, when the working condition in the main tunnel of target VTEP equipment is UP states, the working condition in standby tunnel is Down State or Block states, the working condition in the main tunnel of distal end VTEP equipment is Down states or Block states, for tunnel Working condition is that (tunnel that i.e. target VTEP equipment is used for business forwarding is main tunnel to UP states, and distal end VTEP equipment is used for The tunnel of business forwarding is standby tunnel);Or, when the working condition in the main tunnel of target VTEP equipment is Down states or Block State, the working condition in standby tunnel is UP states, and the working condition in the main tunnel of distal end VTEP equipment is UP states, standby tunnel Working condition is that (tunnel that i.e. target VTEP equipment is used for business forwarding is standby tunnel, and distal end for Down states or Block states The tunnel that VTEP equipment is used for business forwarding is main tunnel) when, it is believed that the tunnel of target VTEP equipment and distal end VTEP equipment Road state consistency.
What deserves to be explained is, in embodiments of the present invention, when target VTEP equipment or/and the main tunnel of distal end VTEP equipment When working condition with standby tunnel is Down states, it is believed that be the equipment that there occurs or link failure, it is necessary to by user (such as keeper) participation is processed, and it implements and does not repeat herein.
Step 302, the main tunnel of the working condition in Ruo Ben landlords tunnel and standby tunnel and distal end VTEP equipment and standby tunnel The working condition in road is inconsistent, and state switching is operated to this landlord tunnel and standby tunnel, so that this landlord tunnel and standby tunnel The working condition in road is consistent with the main tunnel of distal end VTEP equipment and the working condition in standby tunnel.
In the embodiment of the present invention, when target VTEP equipment determines working condition and the distal end in this landlord tunnel and standby tunnel When the working condition in the main tunnel of VTEP equipment and standby tunnel is inconsistent, target VTEP equipment is needed to this landlord tunnel and standby tunnel Road is operated state switching so that the main tunnel of the working condition in this landlord tunnel and standby tunnel and distal end VTEP equipment and The working condition in standby tunnel is consistent, it is ensured that business can use.
In the one of embodiment of the application, state switching is operated to this landlord tunnel and standby tunnel, can wrapped Include:
When the working condition in this landlord tunnel is Block states, the working condition in standby tunnel is UP states, and distal end VTEP The working condition in the main tunnel of equipment is UP states, when the working condition in standby tunnel is Down states or Block states, will be local The working condition in main tunnel switches to UP states, and the working condition in standby tunnel switches to Block states.
In this embodiment, when the working condition in the main tunnel of target VTEP equipment is Block states, the work shape in standby tunnel State is UP states, but the working condition in the distal end main tunnel of VTEP equipment is UP states, and the working condition in standby tunnel is Down shapes When state or Block states, i.e., the tunnel that target VTEP equipment is used for business forwarding is standby tunnel, and distal end VTEP equipment is used for industry When the tunnel of business forwarding is main tunnel, in order that target VTEP equipment is consistent with the working condition in the tunnel of distal end VTEP equipment, The working condition in this landlord tunnel can be switched to UP states by target VTEP equipment by Block states, and will local standby tunnel Working condition Block states are switched to by UP states so that, target VTEP equipment passes through main tunnel with distal end VTEP equipment The business of carrying out forwarding, it is ensured that business can use.
In the one of embodiment of the application, state switching is operated to this landlord tunnel and standby tunnel, can wrapped Include:
When the working condition in this landlord tunnel is UP states, the working condition in standby tunnel is Block states, and distal end VTEP The working condition in the main tunnel of equipment is Down states or Block states, when the working condition in standby tunnel is UP states, will be local The working condition in main tunnel switches to Block states, and the working condition in standby tunnel switches to UP states.
In this embodiment, when the working condition in the main tunnel of target VTEP equipment is UP states, the working condition in standby tunnel It is Block states, but the working condition in the distal end main tunnel of VTEP equipment is Down states or Block states, the work in standby tunnel When making state for UP states, i.e., the tunnel that target VTEP equipment is used for business forwarding is main tunnel, and distal end VTEP equipment is used for When the tunnel of business forwarding is standby tunnel, in order that the working condition one in the tunnel of target VTEP equipment and distal end VTEP equipment Cause, the working condition in this landlord tunnel can be switched to Block states by target VTEP equipment by UP states, and will local standby tunnel The working condition in road switches to UP states by Block states, so that, target VTEP equipment is with distal end VTEP equipment by standby tunnel Road carries out business forwarding, it is ensured that business can use.
It can be seen that, in method flow shown in Fig. 3, the distal end VTEP equipment that the VTEP equipment at tunnel two ends passes through to receive is sent out The message for sending, determines the main tunnel of distal end VTEP equipment and the working condition in standby tunnel, and finding locally to be set with distal end VTEP When the working condition in standby tunnel is inconsistent, update the working condition in local tunnel, with ensure locally with distal end VTEP equipment The working condition in tunnel is consistent, it is ensured that business can use.
In the embodiment of the present invention, above-mentioned tunnel state notice message can be detected the work in local tunnel by VTEP equipment Sent when state changes, so as to notify to give distal end VTEP equipment by the working condition in local newest tunnel in time, Determine the need for carrying out tunnel state according to the working condition in the tunnel of tunnel two ends VTEP equipment by distal end VTEP equipment cutting Change.
Correspondingly, in one of embodiment of the invention, tunnel state changing method provided in an embodiment of the present invention is also Can include:
When the working condition for detecting local tunnel changes, sent to distal end VTEP equipment and carry this landlord tunnel With the tunnel state notice message of the working condition in standby tunnel.
In this embodiment, VTEP equipment in VXLAN tunnels two ends can enable tunnel state detection function, as target VTEP When the working condition that equipment detects local tunnel changes, the working condition in such as main tunnel (standby tunnel) is changed into from UP states During Down states, target VTEP equipment needs that UP states will be switched to by Block states for the working condition in tunnel (main tunnel), And the working condition (working condition after change) in this landlord tunnel or/and standby tunnel is sent by tunnel state notice message Distal end VTEP equipment is given, and then, when distal end VTEP equipment receives the tunnel state notice message, it may be determined that local tunnel Whether working condition is consistent with the working condition in the tunnel of target VTEP equipment, if inconsistent, carries out tunnel state switching.
Wherein, in this embodiment, the working condition in local tunnel changes, and can include:
The working condition in this landlord tunnel is changed into Down from UP, and the working condition in standby tunnel is switched to UP by Block; Or,
The working condition in local standby tunnel is changed into Down from UP, and the working condition in main tunnel is switched to UP by Block; Or,
The working condition in this landlord tunnel is changed into Block from Down;Or,
The working condition in local standby tunnel is changed into Block from Down.
In order that those skilled in the art more fully understand technical scheme provided in an embodiment of the present invention, with reference to specific Application scenarios are described to technical scheme provided in an embodiment of the present invention.
By taking EVPN networkings shown in Fig. 2 as an example, based on the EVPN networkings, tunnel state switching side provided in an embodiment of the present invention Case is realized as follows:
1st, VTEP1 and VTEP2 enables tunnel state detection function, and VTEP1 and VTEP2 can record local active/standby tunnel Working condition, under original state, the working condition in the main tunnel of VTEP1 and VTEP2 is UP states, the work shape in standby tunnel State is Blcok states;
2nd, VTEP1 and VTEP2 notices the work in local tunnel to opposite end by the new tunnel state notice message for building State, can carry the working condition in this landlord tunnel and standby tunnel in the tunnel state notice message;
Wherein, if UP states, tunnel state flag bit is 1;If Block states, tunnel state flag bit is 2;If Down states, tunnel state flag bit is 3.
3rd, a certain moment is assumed, path 2 is broken down, and the working condition in the main tunnel of VTEP1 is changed into Down from UP, standby tunnel The working condition in road is switched to UP by Block, and now, VTEP1 can send tunnel state notice message, the tunnel to VTEP2 Road state notifying message carries the tunnel state of VTEP1, and (working condition in main tunnel is Down states, the work shape in standby tunnel State is UP states);
4th, VTEP2 receives the tunnel state notice message of VTEP1 transmissions, the tunnel of the VTEP1 that acquisition is wherein carried Working condition, and compare the working condition in the working condition in local tunnel and the tunnel of VTEP1, find the working condition in tunnel not Unanimously (working condition in the main tunnels of VTEP1 is Down states, and the working condition in standby tunnel is UP states, and the main tunnels of VTEP2 Working condition is UP states, and the working condition in standby tunnel is Block states), now, VTEP2 can be by the work in this landlord tunnel Make state and Block states are switched to by UP states, the working condition in standby tunnel switches to UP states by Block states;
Wherein, after VTEP2 completes tunnel state switching, can be by tunnel state notice message by the tunnel-like after switching State is notified to VTEP1.
Switched by above-mentioned tunnel state, the standby tunnel that the tunnel traffic between VTEP1 and VTEP2 is all switched to, so that Ensure that business can use.
5th, after the path 2 of VTEP1 to VTEP2 recovers normal, VTEP1 is cut the working condition in main tunnel by Down states Block states are changed to, and (working condition in main tunnel is Block states, standby tunnel to send the local tunnel state of carrying to VTEP2 The working condition in road be UP states) tunnel state notice message;When VTEP2 receives the tunnel state notice message, occur The working condition in local tunnel is consistent with the working condition in VTEP1 tunnels, then do not carry out tunnel state switching.
By above description as can be seen that in technical scheme provided in an embodiment of the present invention, by the distal end for receiving The message that VTEP equipment sends, determines the main tunnel of distal end VTEP equipment and the working condition in standby tunnel, when this landlord tunnel and When the working condition in standby tunnel is inconsistent with the working condition in the main tunnel of distal end VTEP equipment and standby tunnel, to this landlord tunnel Carry out state switching with standby tunnel so that the main tunnel of the working condition in this landlord tunnel and standby tunnel and distal end VTEP equipment and The working condition in standby tunnel is consistent, it is to avoid due to the working condition in tunnel it is inconsistent caused by service disconnection, it is ensured that business Reliability.
Fig. 4 is referred to, is a kind of structural representation of tunnel state switching device provided in an embodiment of the present invention, wherein, The tunnel state switching device can apply to the target VTEP equipment in above method embodiment, as shown in figure 4, the tunnel State switching device can include:
Receiving unit 410, for receiving the message that distal end VTEP equipment sends;
Determining unit 420, the message that the distal end VTEP equipment for being received by the receiving unit is sent, determines institute State the main tunnel of distal end VTEP equipment and the working condition in standby tunnel;
Switch unit 430, for the master of working condition and the distal end VTEP equipment in Ruo Ben landlords tunnel and standby tunnel The working condition in tunnel and standby tunnel is inconsistent, state switching is operated to this landlord tunnel and standby tunnel, so that this landlord The working condition in tunnel and standby tunnel is consistent with the working condition in the main tunnel of the distal end VTEP equipment and standby tunnel.
In an alternative embodiment, the determining unit 420, distal end VTEP is received specifically for working as by this landlord tunnel During the message that equipment sends, the working condition for determining the main tunnel of the distal end VTEP equipment is that can use UP states, and described remote The working condition for holding the standby tunnel of VTEP equipment is unavailable Down states or obstruction Block states;Or, when by local standby When tunnel receives the message that distal end VTEP equipment sends, the working condition for determining the standby tunnel of the distal end VTEP equipment is UP State, and the working condition in the main tunnel of the distal end VTEP equipment is Down states or Block states.
In an alternative embodiment, the message is tunnel state notice message;
The determining unit 420, specifically for according to the distal end VTEP carried in the tunnel state notice message The working condition in the main tunnel of equipment or/and standby tunnel, determines the work in the main tunnel and standby tunnel of the distal end VTEP equipment State.
In an alternative embodiment, the switch unit, specifically for being Block shapes when the working condition in this landlord tunnel State, the working condition in standby tunnel is UP states, and the working condition in the main tunnel of distal end VTEP equipment is UP states, standby tunnel When working condition is Down states or Block states, the working condition in this landlord tunnel is switched into UP states, the work in standby tunnel Block states are switched to as state;Or, when the working condition in this landlord tunnel is UP states, the working condition in standby tunnel is Block states, and the working condition in the main tunnel of distal end VTEP equipment is Down states or Block states, the work in standby tunnel When state is UP states, the working condition in this landlord tunnel is switched into Block states, the working condition in standby tunnel switches to UP State.
It is the structural representation of another tunnel state switching device provided in an embodiment of the present invention please also refer to Fig. 5, As shown in figure 5, on the basis of tunnel state switching device shown in Fig. 4, the tunnel state switching device shown in Fig. 5 can also be wrapped Include:
Detection unit 440, the working condition for detecting local tunnel;
Transmitting element 450, when the working condition for detecting local tunnel when the detection unit 440 changes, The tunnel state notice message of the working condition for carrying this landlord tunnel and standby tunnel is sent to distal end VTEP equipment.
The function of unit and the implementation process of effect correspond to step in specifically referring to the above method in said apparatus Implementation process, will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is referring to method reality Apply the part explanation of example.Device embodiment described above is only schematical, wherein described as separating component The unit of explanation can be or may not be physically separate, and the part shown as unit can be or can also It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Selection some or all of module therein is needed to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, the message for being sent by the distal end VTEP equipment for receiving, determines distal end VTEP equipment Main tunnel and standby tunnel working condition, when the main tunnel of working condition and the distal end VTEP equipment in this landlord tunnel and standby tunnel When the working condition in road and standby tunnel is inconsistent, state switching is carried out to this landlord tunnel and standby tunnel, so that this landlord tunnel With the working condition in standby tunnel and the main tunnel of distal end VTEP equipment and consistent for the working condition in tunnel, it is to avoid due to tunnel Working condition it is inconsistent caused by service disconnection, it is ensured that the reliability of business.
Those skilled in the art considering specification and after putting into practice invention disclosed herein, will readily occur to it is of the invention its Its embodiment.The application is intended to any modification of the invention, purposes or adaptations, these modifications, purposes or Person's adaptations follow general principle of the invention and including undocumented common knowledge in the art of the invention Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of tunnel state changing method, is applied to the expansible office of destination virtual in Ethernet Virtual Private Network EVPN networkings Domain net endpoint of a tunnel VTEP equipment, it is characterised in that methods described includes:
The message sent by the distal end VTEP equipment for receiving, determines the main tunnel of the distal end VTEP equipment and for tunnel Working condition;
The working condition in Ruo Ben landlords tunnel and standby tunnel and the main tunnel of the distal end VTEP equipment and the work shape in standby tunnel State is inconsistent, and state switching is operated to this landlord tunnel and standby tunnel, so that the work shape in this landlord tunnel and standby tunnel State is consistent with the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel.
2. method according to claim 1, it is characterised in that the report sent by the distal end VTEP equipment for receiving Text, determines the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel, including:
When the message that distal end VTEP equipment sends is received by this landlord tunnel, the main tunnel of the distal end VTEP equipment is determined The working condition in road is available UP states, and the working condition in the standby tunnel of the distal end VTEP equipment is unavailable Down states Or obstruction Block states;Or,
When the message that distal end VTEP equipment sends is received by local standby tunnel, the standby tunnel of the distal end VTEP equipment is determined The working condition in road is UP states, and the working condition in the main tunnel of the distal end VTEP equipment is Down states or Block shapes State.
3. method according to claim 1, it is characterised in that the message is tunnel state notice message;
The message sent by the distal end VTEP equipment for receiving, determines the main tunnel and standby tunnel of the distal end VTEP equipment The working condition in road, including:
The work in main tunnel or/and standby tunnel according to the distal end VTEP equipment carried in the tunnel state notice message State, determines the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel.
4. method according to claim 1, it is characterised in that described that state is operated to this landlord tunnel and standby tunnel Switching, including:
When the working condition in this landlord tunnel is Block states, the working condition in standby tunnel is UP states, and distal end VTEP equipment The working condition in main tunnel be UP states, when the working condition in standby tunnel is Down states or Block states, by this landlord tunnel The working condition in road switches to UP states, and the working condition in standby tunnel switches to Block states;Or,
When the working condition in this landlord tunnel is UP states, the working condition in standby tunnel is Block states, and distal end VTEP equipment The working condition in main tunnel be Down states or Block states, when the working condition in standby tunnel is UP states, by this landlord tunnel The working condition in road switches to Block states, and the working condition in standby tunnel switches to UP states.
5. method according to claim 1, it is characterised in that methods described also includes:
When the working condition for detecting local tunnel changes, sent to distal end VTEP equipment and carry this landlord tunnel and standby The tunnel state notice message of the working condition in tunnel.
6. a kind of tunnel state switching device, is applied to the expansible office of destination virtual in Ethernet Virtual Private Network EVPN networkings Domain net endpoint of a tunnel VTEP equipment, it is characterised in that described device includes:
Receiving unit, for receiving the message that distal end VTEP equipment sends;
Determining unit, the message that the distal end VTEP equipment for being received by the receiving unit is sent, determines the distal end The working condition in the main tunnel of VTEP equipment and standby tunnel;
Switch unit, for the working condition in Ruo Ben landlords tunnel and standby tunnel and the main tunnel of the distal end VTEP equipment and standby The working condition in tunnel is inconsistent, and state switching is operated to this landlord tunnel and standby tunnel, so that this landlord tunnel and standby The working condition in tunnel is consistent with the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel.
7. device according to claim 6, it is characterised in that
The determining unit, specifically for when the message that VTEP equipment in distal end sends is received by this landlord tunnel, it is determined that The working condition in the main tunnel of the distal end VTEP equipment is available UP states, and the standby tunnel of the distal end VTEP equipment work It is unavailable Down states or obstruction Block states to make state;Or, when receiving distal end VTEP equipment by local standby tunnel During the message of transmission, the working condition in standby tunnel of the distal end VTEP equipment is determined for UP states, and the distal end VTEP sets The working condition in standby main tunnel is Down states or Block states.
8. device according to claim 6, it is characterised in that the message is tunnel state notice message;
The determining unit, specifically for the master according to the distal end VTEP equipment carried in the tunnel state notice message The working condition in tunnel or/and standby tunnel, determines the main tunnel of the distal end VTEP equipment and the working condition in standby tunnel.
9. device according to claim 6, it is characterised in that
The switch unit, specifically for being Block states when the working condition in this landlord tunnel, the working condition in standby tunnel is UP states, and the working condition in the main tunnel of distal end VTEP equipment is UP states, the working condition in standby tunnel for Down states or During Block states, the working condition in this landlord tunnel is switched into UP states, the working condition in standby tunnel switches to Block shapes State;Or, when the working condition in this landlord tunnel is UP states, the working condition in standby tunnel is Block states, and distal end VTEP The working condition in the main tunnel of equipment is Down states or Block states, when the working condition in standby tunnel is UP states, will be local The working condition in main tunnel switches to Block states, and the working condition in standby tunnel switches to UP states.
10. device according to claim 6, it is characterised in that described device also includes:
Detection unit, the working condition for detecting local tunnel;
Transmitting element, when the working condition for detecting local tunnel when the detection unit changes, to distal end VTEP Equipment sends the tunnel state notice message of the working condition for carrying this landlord tunnel and standby tunnel.
CN201710109728.1A 2017-02-24 2017-02-24 A kind of tunnel state changing method and device Pending CN106911548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710109728.1A CN106911548A (en) 2017-02-24 2017-02-24 A kind of tunnel state changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710109728.1A CN106911548A (en) 2017-02-24 2017-02-24 A kind of tunnel state changing method and device

Publications (1)

Publication Number Publication Date
CN106911548A true CN106911548A (en) 2017-06-30

Family

ID=59209063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710109728.1A Pending CN106911548A (en) 2017-02-24 2017-02-24 A kind of tunnel state changing method and device

Country Status (1)

Country Link
CN (1) CN106911548A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259301A (en) * 2017-08-16 2018-07-06 新华三技术有限公司 A kind of tunnel loading method and device
CN108337118A (en) * 2018-01-31 2018-07-27 新华三技术有限公司 Message forwarding method and device
CN109347717A (en) * 2018-09-26 2019-02-15 新华三技术有限公司 VXLAN tunnel switching method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808926A (en) * 2005-01-20 2006-07-26 北京格林威尔科技发展有限公司 Method and apparatus of protective switching at both ends of non-framed 2M communication channel
CN101442471A (en) * 2008-12-31 2009-05-27 杭州华三通信技术有限公司 Method for implementing backup and switch of IPSec tunnel, system and node equipment, networking architecture
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN106341299A (en) * 2016-08-23 2017-01-18 杭州华三通信技术有限公司 Packet forwarding method and packet forwarding device in VXLAN
US20170026387A1 (en) * 2015-07-21 2017-01-26 Attivo Networks Inc. Monitoring access of network darkspace

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1808926A (en) * 2005-01-20 2006-07-26 北京格林威尔科技发展有限公司 Method and apparatus of protective switching at both ends of non-framed 2M communication channel
CN101442471A (en) * 2008-12-31 2009-05-27 杭州华三通信技术有限公司 Method for implementing backup and switch of IPSec tunnel, system and node equipment, networking architecture
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
US20170026387A1 (en) * 2015-07-21 2017-01-26 Attivo Networks Inc. Monitoring access of network darkspace
CN106341299A (en) * 2016-08-23 2017-01-18 杭州华三通信技术有限公司 Packet forwarding method and packet forwarding device in VXLAN

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259301A (en) * 2017-08-16 2018-07-06 新华三技术有限公司 A kind of tunnel loading method and device
CN108337118A (en) * 2018-01-31 2018-07-27 新华三技术有限公司 Message forwarding method and device
CN108337118B (en) * 2018-01-31 2021-01-26 新华三技术有限公司 Message forwarding method and device
CN109347717A (en) * 2018-09-26 2019-02-15 新华三技术有限公司 VXLAN tunnel switching method and device

Similar Documents

Publication Publication Date Title
CN104980372B (en) Relay system and exchange apparatus
CN104168193B (en) A kind of method and routing device of Virtual Router Redundancy Protocol fault detect
EP2725743B1 (en) Methods and device for processing location information about fault point
CN105900406B (en) For the technology of network service availability
US10027574B2 (en) Redundant pathways for network elements
RU2008109226A (en) FAILURE-RESISTANT COMMUNICATION IN ROUTED NETWORKS
CN107547366A (en) A kind of message forwarding method and device
CN103841017B (en) The method and apparatus that label is distributed automatically in looped network protection
CN101821990A (en) Arrangement and method for handling failures in network
CN105099905B (en) Relay system and exchange apparatus
CN103354521B (en) The optimization method of a kind of LSP based on LDP renewal and device
CN106899430A (en) A kind of flow method for processing forwarding and device
CN104518960B (en) A kind of method, equipment and the system of the switchback that is delayed
CN102710520B (en) Method and device for backing up lonworks network service (LNS)
CN101860482B (en) Two-layer virtual private network fast re-route method and device
CN103581025B (en) Method and system for processing routing information and equipment
CN100461706C (en) Method for recovering sponsor media accessing control address and operation businesss edge apparatus
CN101425942A (en) Method, apparatus and system for bidirectional forwarding detection implementation
CN106911548A (en) A kind of tunnel state changing method and device
WO2015045466A1 (en) Communications control device, communications control system, communications control method, and communications control program
CN102868569A (en) Method, node and system for detecting performance of three-layer virtual private network
CN110493129A (en) Update method, message forwarding method and the device in backup label path
CN103490951A (en) Bidirectional forwarding detection method in multi-hop link on basis of BFD
CN103188153B (en) BFD file transmitting method and equipment on a kind of broadcasting network link
KR20150002474A (en) Methods for recovering failure in communication networks

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170630