CN108337147B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN108337147B
CN108337147B CN201810098792.9A CN201810098792A CN108337147B CN 108337147 B CN108337147 B CN 108337147B CN 201810098792 A CN201810098792 A CN 201810098792A CN 108337147 B CN108337147 B CN 108337147B
Authority
CN
China
Prior art keywords
vxlan tunnel
state
message
block
detection message
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
CN201810098792.9A
Other languages
Chinese (zh)
Other versions
CN108337147A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810098792.9A priority Critical patent/CN108337147B/en
Publication of CN108337147A publication Critical patent/CN108337147A/en
Application granted granted Critical
Publication of CN108337147B publication Critical patent/CN108337147B/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
    • 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
    • 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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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

Abstract

The disclosure relates to a message forwarding method and device. The method comprises the following steps: receiving a detection message from a first resource pool gateway, wherein the detection message carries an identifier for setting the state of a first VXLAN tunnel; when the identifier carried by the detection message indicates Block, setting the state of a first VXLAN tunnel in the local terminal equipment from effective UP to Block Block, and setting the state of a second VXLAN tunnel in the local terminal equipment from Block Block to effective UP; and forwarding the service message through the second VXLAN tunnel, so that the aggregation switch can sense the fault of the VXLAN tunnel if the VXLAN tunnel between the server in the DC1 and the resource pool gateway has the fault in the process that the aggregation switch provides service support for the user equipment through the DC 1.

Description

Message forwarding method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
In the related art, a network of a Spine-Leaf architecture (Spine-Leaf) is widely used in a metropolitan area network DC (Data Center) resource Pool, and under the architecture, a virtual Broadband Remote Access Server (vrbras, english: Virtualized Broadband Access Server, abbreviated as vbars) may be directly connected to a Pool-GW (Pool Gateway). VXLAN tunnel is established between vBRAS server and Pool-GW, and VXLAN tunnel is established between HJSW (HuiJu Switch) and Pool-GW. In a networking with two DCs as backups, two VXLAN tunnels configured in the HJSW uplink direction point to the Pool-GW of the two DCs respectively.
Fig. 1 shows a schematic diagram of a networking in which two DCs backup each other in the related art. As shown in fig. 1, when the DC1 works normally, the VSI (Virtual Switch Instance) of Pool-GW2 in the DC2 is manually turned off, so that the service support is provided for the user equipment through the DC 1. When a VXLAN tunnel between a vBRAS server and Pool-GW in DC1 fails, the problem that service messages cannot be switched to DC2 in time and service message forwarding is interrupted due to the fact that the HJSW cannot sense the failure of the VXLAN tunnel at the moment.
Disclosure of Invention
In view of this, the present disclosure provides a message forwarding method and apparatus, so as to solve the problem that service message forwarding is interrupted due to that a service message cannot be switched between multiple DC resource pools in time.
According to an aspect of the present disclosure, a method for forwarding a packet is provided, where a state of a first VXLAN tunnel is an effective UP, a state of a second VXLAN tunnel is a blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway, where the method is used for the convergence switch and includes:
receiving a detection message from the first resource pool gateway, wherein the detection message carries an identifier for setting the state of the first VXLAN tunnel;
when the identifier carried by the detection message indicates Block, setting the state of the first VXLAN tunnel in the local terminal equipment from effective UP to Block Block, and setting the state of the second VXLAN tunnel in the local terminal equipment from Block Block to effective UP;
and forwarding the service message through the second VXLAN tunnel.
According to another aspect of the present disclosure, a method for forwarding a packet is provided, where a state of a first VXLAN tunnel is an effective UP, a state of a second VXLAN tunnel is a blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway; the method is used for a first resource pool gateway and comprises the following steps:
when detecting that the state of a third VXLAN tunnel is changed from effective UP to Block Block or invalid Down, generating a detection message carrying an identifier representing the Block Block, wherein the third VXLAN tunnel is a VXLAN tunnel between the first resource pool gateway and the first server;
sending the detection message to the aggregation switch, so that the aggregation switch sets the state of the first VXLAN tunnel in the aggregation switch from effective UP to blocking Block and sets the state of the second VXLAN tunnel in the aggregation switch from blocking Block to effective UP according to the identifier carried by the detection message;
and setting the state of the first VXLAN tunnel in the local terminal equipment to be a blocking Block from effective UP.
According to another aspect of the present disclosure, there is provided a message forwarding apparatus, where a state of a first VXLAN tunnel is valid UP, a state of a second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway, the apparatus is configured to a convergence switch, and includes:
a detection message receiving module, configured to receive a detection message from the first resource pool gateway, where the detection message carries an identifier used to set a state of the first VXLAN tunnel;
a first state setting module, configured to set, when the identifier carried in the probe packet indicates Block, the state of the first VXLAN tunnel in the local device from valid UP to Block, and set the state of the second VXLAN tunnel in the local device from Block UP to valid UP;
and the service message forwarding module is used for forwarding the service message through the second VXLAN tunnel.
According to another aspect of the present disclosure, a message forwarding apparatus is provided, where a state of a first VXLAN tunnel is an effective UP, a state of a second VXLAN tunnel is a blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway; the apparatus is for a first resource pool gateway, comprising:
a detection message generation module, configured to generate a detection message carrying an identifier indicating a Block when detecting that a state of a third VXLAN tunnel is changed from valid UP to Block or invalid Down, where the third VXLAN tunnel is a VXLAN tunnel between the first resource pool gateway and the first server;
a detection message sending module, configured to send the detection message to the aggregation switch, so that the aggregation switch sets, according to an identifier carried in the detection message, a state of the first VXLAN tunnel in the aggregation switch from an effective UP to a Block, and sets a state of the second VXLAN tunnel in the aggregation switch from the Block to an effective UP;
and the second state setting module is used for setting the state of the first VXLAN tunnel in the local terminal equipment from effective UP to blocking Block.
The disclosed message forwarding method and device provide a way of intelligent Tunnel (Smart-Tunnel), the intelligent Tunnel can send TPDU message at intervals of T-Time between devices in a double DC networking to realize monitoring and setting of the state of VXLAN Tunnel, therefore, HJSW can sense the fault of VXLAN Tunnel when the VXLAN Tunnel between a server in DC1 and Pool-GW fails, and automatically switch the service message from DC1 to DC2 to ensure normal forwarding of the service message.
Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Fig. 1 shows a schematic diagram of a networking in which two DCs backup each other in the related art.
Fig. 2 shows a format schematic diagram of a probe packet according to the present disclosure.
Figure 3a shows a schematic diagram of a dual DC networking according to an embodiment of the present disclosure.
Figure 3b shows a schematic diagram of a dual DC networking according to an embodiment of the present disclosure.
Figure 3c shows a schematic diagram of a dual DC networking according to an embodiment of the present disclosure.
Figure 3d shows a schematic diagram of a dual DC networking according to an embodiment of the present disclosure.
Fig. 4 shows a flowchart of a packet forwarding method according to an embodiment of the present disclosure.
Fig. 5 shows a flowchart of a packet forwarding method according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of a message forwarding device according to an embodiment of the present disclosure.
Fig. 7 shows a block diagram of a message forwarding device according to an embodiment of the present disclosure.
Fig. 8 is a block diagram illustrating a message forwarding device 900 according to an example embodiment.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, a brief description will be given below of some technical terms involved in the embodiments of the present invention.
The tunnel status of the VXLAN tunnel may include: active UP, Block, and inactive Down.
The state of the VXLAN tunnel is set in the local terminal equipment, and the state of the VXLAN tunnel is only valid for the local terminal equipment which sets the state of the VXLAN tunnel, but invalid for other equipment.
If the state of the VXLAN tunnel in the local terminal equipment is effective UP, the local terminal equipment can send and receive the detection message through the VXLAN tunnel and can also send and receive the service message through the VXLAN tunnel. If the interface of the VXLAN tunnel in the local device can send and receive the detection message and can also send and receive the service message, it indicates that the state of the VXLAN tunnel in the local device is valid UP.
If the state of the VXLAN tunnel in the local terminal equipment is Block, the local terminal equipment can only receive the detection message through the VXLAN tunnel, cannot send the detection message through the VXLAN tunnel, and cannot send and receive the service message through the VXLAN tunnel. If the interface of the VXLAN tunnel in the local device can only receive the detection message, cannot send the detection message, and cannot send and receive the service message, it indicates that the state of the VXLAN tunnel in the local device is Block.
For example, when the local device is capable of sending a probe message to the peer device, and the local device does not receive the probe message sent by the peer device through the VXLAN tunnel within the second duration (e.g., 3T-times), the state of the VXLAN tunnel in the local device is set to Block. Wherein, T-Time (e.g. 200 ms) is a sending period of the probe packet.
If the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment can not send and receive the detection message through the VXLAN tunnel, and can not send and receive the service message through the VXLAN tunnel. If the interface of the VXLAN tunnel in the local terminal device can neither send or receive the detection message nor send or receive the service message, it indicates that the state of the VXLAN tunnel in the local terminal device is invalid Down.
For example, if the local device detects that the probe message cannot be sent through the VXLAN tunnel, the state of the VXLAN tunnel in the local device is set to invalid Down.
It should be noted that whether the device can normally receive and transmit the detection message and the service message and the state of the VXLAN tunnel have an association relationship, and they are mutually influenced.
In the present disclosure, the Pool gateway Pool-GW has no difference in function from a gateway in the conventional digital communication field, and is connected to a server carrying a plurality of virtual machines, and serves as an egress device for connecting the virtual machines to other networks. The software and hardware facilities provided for the plurality of virtual machines can be understood as a resource pool, and the gateway is named as a resource pool gateway in the present embodiment to correspond to the concept of the resource pool.
Fig. 2 shows a format schematic diagram of a probe packet according to the present disclosure. As shown in fig. 2, the probe message may be a TPDU (Tunnel protocol Data Unit) message. The TPDU packet may use UDP (User Datagram Protocol) encapsulation format. For example, the local terminal device sends a TPDU message to the opposite terminal device every T-Time interval.
As shown in fig. 2, the TPDU packet includes an Ethernet header, an IP header, a UDP header, and TPDU packet contents. The contents of the TPDU Message include an information Type (Message Type), an information Length (Message Length), a Source IP address (Source IP), a Destination IP address (Destination IP), a Tunnel Priority (TP), an identifier (Down Flag) for setting a Tunnel state, and Reserved information (Reserved).
Among them, the information Type (Message Type): which is used to indicate the specific type of the TPDU message. At present, TPDU messages only have one type, and the value of the information type can be defaulted to 0;
information Length (Message Length): the length used for expressing the length occupied by the TPDU message content comprises the total length from the information type to the reserved information;
source IP address (Source IP): the IP address of the sending device, namely the IP address of the device sending the TPDU message;
destination IP address (Destination IP): the IP address of the receiving device, namely the IP address of the device receiving the TPDU message;
tunnel Priority (TP for short): the relationship between VXLAN tunnels can be represented. The priority of the tunnel is valid only for the device receiving the TPDU message and is not valid for other devices.
Flag for setting tunnel state (Down Flag): the state of the VXLAN tunnel used for setting the receiving of the TPDU message may have two kinds of setting, 0 and 1. For example, when the Down Flag is set to 0, it indicates that the device that received the TPDU packet sets the state of the VXLAN tunnel that received the TPDU packet to active UP. When the Down Flag is set to 1, it indicates that the device receiving the TPDU message sets the state of the VXLAN tunnel receiving the TPDU message to Block.
Fig. 3a to 3d are schematic diagrams illustrating networking in which two DCs are backup to each other according to an embodiment of the present disclosure. The dual DC networking shown in fig. 3a to 3d may be used to exemplify the flow diagrams shown in fig. 4, 5 and 6.
As shown in fig. 3a, the DC resource Pool 1 includes a first resource Pool gateway Pool-GW1 and a first Server 1. The DC resource Pool 2 includes a second resource Pool gateway Pool-GW2 and a second Server 2. The DC resource pool 1 and the DC resource pool 2 are connected through a convergence switch HJSW. A first VXLAN Tunnel1 is established between HJSW and Pool-GW1, a second VXLAN Tunnel2 is established between HJSW and Pool-GW2, a third VXLAN Tunnel3 is established between Pool-GW1 and Server1, and a fourth VXLAN Tunnel4 is established between Pool-GW2 and Server 2.
The first server and the second server may be VBARS servers, the VBRAS servers may include virtual machines for processing various service types, and the service types may include an ITMS (Integrated Terminal Management System), an IPTV (Internet Protocol television), a PPPOE (Point to Point Protocol over Ethernet ), a VOIP (Voice over Internet Protocol, network phone), and the like.
Wherein, the Tunnel1 is marked as Tunnel1-1 in HJSW and is marked as Tunnel1-2 in Pool-GW 1. Tunnel2 is designated as Tunnel2-1 in HJSW and Tunnel2-2 in Pool-GW 1. As shown in FIG. 3a, there are Tunnel1-1 and Tunnel2-1 belonging to the same VSI in HJSW. In Pool-GW1 there are Tunnel1-2 and Tunnel3 belonging to the same VSI. In Pool-GW2 there are Tunnel2-2 and Tunnel4 belonging to the same VSI.
As shown in FIG. 3a, the state of Tunnel1-1 in HJSW is active UP and the state of Tunnel2-1 is blocking Block. The state of Tunnel3 in Pool-GW1 is active UP and the state of Tunnel1-2 is active UP. The state of Tunnel4 in Pool-GW2 is Block or active UP, and the state of Tunnel2-2 is Block. Therefore, the DC1 provides service support for the user equipment, that is, the HJSW forwards the service packet through the network device in the DC 1.
In the related art, as shown in fig. 1, when a VXLAN tunnel between a server in DC1 and a Pool-GW fails, at this time, the HJSW cannot sense the failure of the VXLAN tunnel, and needs to manually determine whether the VXLAN tunnel fails. And when the VXLAN tunnel fault is judged manually, the VSI of the server in the DC1 is closed manually, and the VSI of the server in the DC2 is opened, so that the service message can be switched to the DC 2. In the process, a special network administrator is needed to judge and modify the VXLAN tunnel fault, so that the operation is complicated and inconvenient. In addition, the service message cannot be switched into the DC2 in time, which causes the problem of service message forwarding interruption.
In the following message forwarding method disclosed in the present disclosure, a Smart Tunnel (Smart-Tunnel) is provided to solve the above problem, where the Smart Tunnel may refer to a TPDU message sent at intervals of T-Time between devices in a dual-DC networking, so as to implement monitoring and setting of a state of a VXLAN Tunnel, and thus when a VXLAN Tunnel between a server in DC1 and a Pool-GW fails, HJSW may sense the failure of the VXLAN Tunnel and automatically switch a service message from DC1 to DC2, thereby ensuring normal forwarding of the service message.
Fig. 4 shows a flowchart of a packet forwarding method according to an embodiment of the present disclosure. The state of the first VXLAN tunnel is effective UP, the state of the second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between the aggregation switch and the first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the aggregation switch and the second resource pool gateway. The method is used for an aggregation switch. As shown in fig. 4, the message forwarding method includes:
in step S41, the aggregation switch receives a probe message from the first resource pool gateway, where the probe message carries an identifier for setting a state of the first VXLAN tunnel.
In step S42, when the identifier carried in the probe packet indicates Block, the state of the first VXLAN tunnel in the local device is set from valid UP to Block, and the state of the second VXLAN tunnel in the local device is set from Block UP to valid UP.
In step S43, the aggregation switch forwards the service packet through the second VXLAN tunnel.
The probe message received in step S42 may carry an identifier for setting the state of the first VXLAN tunnel. The identifier for setting the tunnel state includes: two types of identification of valid UP and Block.
When the identifier carried in the probe message and used for setting the state of the first VXLAN tunnel is Block, the identifier may be caused by a failure of the third VXLAN tunnel. Specifically, the identifier in the probe message indicates that the blocking Block is generated by the first resource pool gateway when determining that the third VXLAN tunnel fails. In this manner, the linkage of tunnel states between the first VXLAN tunnel and the third VXLAN tunnel is maintained.
As an example, as shown in fig. 3b, Tunnel3 fails, whereby the state of Tunnel3 in Pool-GW1 changes from active UP to blocking Block or inactive Down. And the Pool-GW1 sends a TPDU message to the HJSW, and the setting carrying the Down Flag is 1. The HJSW receives a TPDU message with a Down Flag set to be 1 through an interface of the Tunnel1-1, sets the state of the Tunnel1-1 in the local terminal equipment from effective UP to blocking Block according to the Down Flag set to be 1, and sets the state of the Tunnel2-1 in the local terminal equipment from blocking Block to effective UP. And after the state of Tunnel2-1 in the HJSW is effective UP, the HJSW sends a TPDU message to Pool-GW2, and the setting carrying Down Flag is 0.
Further, after Pool-GW2 receives the TPDU message with the Down Flag set to 0 through the Tunnel2-2 interface, Pool-GW2 sets the state of Tunnel2-2 in the local device from Block to active UP according to the Down Flag set to 0, and sets the state of Tunnel4 in the local device to active UP. Therefore, the HJSW can sense the fault of the remote Tunnel3, and timely switches the service message from the DC1 to the DC2 for forwarding, thereby ensuring the normal forwarding of the service message.
In addition, when the aggregation switch fails to receive the detection message sent by the first resource pool gateway for more than the preset time, the aggregation switch determines that the first VXLAN fails, and thus the aggregation switch sets the state of the first VXLAN tunnel in the local device from valid UP to invalid Down.
As an example, as shown in fig. 3c, if Tunnel1 fails, and the HJSW cannot send a TPDU packet to Pool-GW1 through Tunnel1-1, the HJSW sets the state of Tunnel1-1 in the local device from active UP to invalid Down. Thus HJSW sets the state of Tunnel2-1 in the home device to valid UP from blocking Block. And after the state of Tunnel2-1 in the HJSW is effective UP, the HJSW sends a TPDU message to Pool-GW2, and the setting carrying Down Flag is 0.
Further, after Pool-GW2 receives the TPDU message with the Down Flag set to 0 through the Tunnel2-2 interface, Pool-GW2 sets the state of Tunnel2-2 in the local device from Block to active UP according to the Down Flag set to 0, and sets the state of Tunnel4 in the local device to active UP. Therefore, the HJSW can sense the fault of the Tunnel1, and timely switches the service message from the DC1 to the DC2 for forwarding, so that the normal forwarding of the service message is ensured.
In one implementation manner, after the aggregation switch sets the state of the first VXLAN tunnel in the local device from valid UP to blocking Block, and sets the state of the second VXLAN tunnel in the local device from blocking Block to valid UP, the method further includes: the aggregation switch receives a detection message from a first resource pool gateway; when the identifier carried by the detection message indicates effective UP, after a first time length, the aggregation switch sets the state of a first VXLAN tunnel in the local terminal equipment from blocking Block to effective UP, and sets the state of a second VXLAN tunnel in the local terminal equipment from effective UP to blocking Block; and the aggregation switch forwards the service message through the first VXLAN tunnel.
The message forwarding method provided in this embodiment reduces frequent state switching of the VXLAN tunnel by using a delayed switchback manner. The delayed switchback may refer to that the aggregation switch sets the state of the first VXLAN tunnel in the local device from the Block to the valid UP and sets the state of the second VXLAN tunnel in the local device from the valid UP to the Block after the state of the first VXLAN tunnel in the first resource pool gateway is restored from the Block or the invalid Down to the valid UP and maintains the first duration, thereby reducing the network oscillation. Wherein the first time length is the back-cut delay, for example, 30 minutes.
As an example, as shown in fig. 3d, a TST (Tunnel Switch Time, Tunnel Switch timer) is configured in the HJSW, and the TST is 30 minutes. Tunnel3 failover whereby the state of Tunnel3 in Pool-GW1 changes from blocking Block or invalid Down to active UP. The Pool-GW1 sets the state of Tunnel1-2 in the home device to active UP from blocking Block. After the state of Tunnel1-2 in Pool-GW1 is valid UP, Pool-GW1 sends TPDU message to HJSW, and the setting carrying Down Flag is 0. The HJSW receives a TPDU message with a Down Flag set to be 0 through an interface of the Tunnel1-1, and after the TPDU message with the Down Flag set to be 0 is received for 30 minutes, the HJSW sets the state of the Tunnel1-1 in the local terminal equipment to be effective UP according to the Down Flag set to be 0, and sets the state of the Tunnel2-1 in the local terminal equipment to be the effective UP. Therefore, the HJSW can sense the fault repair of the remote Tunnel3, and the service message is switched from the DC2 to the DC1 for forwarding after the back-switch delay, so that the normal forwarding of the service message is ensured, and the frequent switching of the VXLAN Tunnel state is avoided.
It should be noted that although TST is configured in HJSW so that when the fault of Tunnel3 is repaired, the delay time restores the state of Tunnel1-1 in HJSW from blocking Block to active UP. However, in the TST period, if the state of Tunnel2-1 in the HJSW is changed from effective UP to Block Block or invalid Down, the TST configured in the HJSW is cleared immediately, so that the state of Tunnel1-1 in the HJSW is restored from Block Block to effective UP, the service message is rapidly switched from DC2 to DC1 for forwarding, and the normal forwarding of the service message is ensured.
In one implementation, the method further comprises: the aggregation switch receives a detection message from the first resource pool gateway, and acquires the priority of a first VXLAN tunnel carried by the detection message; receiving a detection message from a second resource pool gateway, and acquiring the priority of a second VXLAN tunnel carried by the detection message; when the first VXLAN tunnel and the second VXLAN tunnel belong to the same VSI and have different priorities, the aggregation switch sets the state of the VXLAN tunnel with the higher priority in the local terminal equipment to be effective UP, and sets the state of the VXLAN tunnel with the lower priority to be blocking Block.
In the packet forwarding method provided in this embodiment, the dual-DC networking is initialized through the TPDU packet. The aggregation switch has VXLAN tunnels belonging to the same VSI, and after TPDU messages are received from two different interfaces (such as a physical interface, a VLAN interface or other logical interfaces), the source IP addresses and the destination IP addresses of the tunnels carried by the two TPDU messages are respectively checked. And if the source IP address and the destination IP address of the tunnel carried by the two TPDU messages do not correspond to the source IP address and the destination IP address of the VXLAN tunnel stored in the local terminal equipment, discarding the TPDU message. And if the source IP address and the destination IP address of the tunnel carried by the two TPDU messages correspond to the VXLAN tunnel in the local terminal equipment, the convergence switch acquires the priority of the tunnel carried by the two TPDU messages respectively and continuously compares the priority of the tunnel carried by the two TPDU messages.
It should be noted that, it is impossible for the aggregation switch to receive the TPDU message from one interface and then wait indefinitely for the TPDU message to be received from another interface for comparison, so that the aggregation switch may be specified to compare the TPDU messages received from two different interfaces within a third Time period (e.g., 2T-times).
As an example, as shown in FIG. 3a, there are Tunnel1-1 and Tunnel2-1 in HJSW that belong to the same VSI. The HJSW receives the TPDU message 1 and the TPDU message 2 from two different interfaces and respectively checks the source IP address and the destination IP address of the tunnel carried by the TPDU message 1 and the TPDU message 2. If the HJSW finds that the source IP address and the destination IP address of the Tunnel carried in the TPDU message 1 correspond to Tunnel1-1, and the source IP address and the destination IP address of the Tunnel carried in the TPDU message 2 correspond to Tunnel2-1, the HJSW obtains the priorities of the tunnels carried in the TPDU message 1 and the TPDU message 2, for example, if the priority of Tunnel1-1 is 30 and the priority of Tunnel2-1 is 10, the state of Tunnel1-1 with the higher priority is set as valid UP, and the state of Tunnel2-1 with the lower priority is set as blocking Block.
In an implementation manner, for any device in a data center, if the state of a VXLAN tunnel in a home terminal device is valid UP, the home terminal device can send and receive a detection message and a service message through the VXLAN tunnel; if the VXLAN tunnel in the local terminal equipment is in a Block blocking state, the local terminal equipment can receive the detection message through the VXLAN tunnel; and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
As shown in FIG. 3a, the state of Tunnel1-1 in HJSW is active UP and the state of Tunnel2-1 is blocking Block. The state of Tunnel3 in Pool-GW1 is active UP and the state of Tunnel1-2 is active UP. The state of Tunnel1-1 recorded by HJSW is effective UP, so that HJSW can send and receive TPDU message and service message through interface of Tunnel1-1, and because the state of Tunnel2-1 recorded by HJSW is blocking Block, HJSW can only receive TPDU message through interface of Tunnel2-1, but can not send TPDU message and service message. The Pool-GW1 records that the states of Tunnel1-2 and Tunnel3 are both valid UPs, so that the Pool-GW1 can send and receive TPDU messages and service messages through the interfaces of Tunnel1-2 and Tunnel 3. Therefore, the DC1 provides service support for the user equipment, that is, the HJSW forwards the service packet through the network device in the DC 1.
As shown in FIG. 3b, the state of Tunnel1-1 in HJSW is blocking Block and the state of Tunnel2-1 is active UP. The state of Tunnel4 in Pool-GW2 is active UP and the state of Tunnel2-2 is active UP. The state of Tunnel2-1 recorded by HJSW is effective UP, so that HJSW can send and receive TPDU message and service message through interface of Tunnel2-1, and because the state of Tunnel1-1 recorded by HJSW is blocking Block, HJSW can only receive TPDU message through interface of Tunnel1-1, but can not send TPDU message and service message. The Pool-GW2 records that the states of Tunnel2-2 and Tunnel4 are both valid UPs, so that the Pool-GW2 can send and receive TPDU messages and service messages through the interfaces of Tunnel2-2 and Tunnel 4. Therefore, the DC2 provides service support for the user equipment, that is, the HJSW forwards the service packet through the network device in the DC 2.
Fig. 5 shows a flowchart of a packet forwarding method according to an embodiment of the present disclosure. The state of the first VXLAN tunnel is effective UP, the state of the second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between the aggregation switch and the first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the aggregation switch and the second resource pool gateway. The method is used for a first resource pool gateway. As shown in fig. 5, the message forwarding method includes:
in step S51, when detecting that the state of the third VXLAN tunnel is changed from valid UP to Block or invalid Down, the first resource pool gateway generates a probe message carrying an identifier indicating Block, where the third VXLAN tunnel is a VXLAN tunnel between the first resource pool gateway and the first server.
In step S52, the first resource pool gateway sends the probe message to the aggregation switch, so that the aggregation switch sets the state of the first VXLAN tunnel in the aggregation switch from valid UP to blocking Block according to the identifier carried in the probe message, and sets the state of the second VXLAN tunnel in the aggregation switch from blocking Block to valid UP.
In step S53, the first resource pool gateway sets the status of the first VXLAN tunnel in the home device from valid UP to Block.
As an example, as shown in fig. 3b, Tunnel3 fails, whereby the state of Tunnel3 in Pool-GW1 changes from active UP to blocking Block or inactive Down. When detecting that the state of Tunnel3 is changed from valid UP to Block or invalid Down, Pool-GW1 generates a TPDU message carrying a Down Flag bit of 1. And the Pool-GW1 sends a TPDU message to the HJSW, and the setting carrying the Down Flag is 1. After the TPDU message carrying the Down Flag set as 1 is sent to the HJSW, the Pool-GW1 sets the state of the Tunnel2-1 in the local terminal equipment from the effective UP to the blocking Block, so that the Pool-GW1 stops sending the TPDU message to the HJSW.
As shown in fig. 3b, the HJSW receives the TPDU packet with the Down Flag set to 1 through the interface of Tunnel1-1, and sets the state of Tunnel1-1 in the local device from the valid UP to Block and sets the state of Tunnel2-1 in the local device from Block to valid UP according to the Down Flag set to 1. And after the state of Tunnel2-1 in the HJSW is effective UP, the HJSW sends a TPDU message to Pool-GW2, and the setting carrying Down Flag is 0. After Pool-GW2 receives the message with Down Flag set to 0 through the interface of Tunnel2-2, Pool-GW2 sets the state of Tunnel2-2 in the local device from Block to active UP according to the Down Flag set to 0, and sets the state of Tunnel4 in the local device to active UP. Therefore, the HJSW can sense the fault of the remote Tunnel3, and timely switches the service message from the DC1 to the DC2 for forwarding, thereby ensuring the normal forwarding of the service message.
It should be noted that, if Pool-GW1 detects that the state of Tunnel3 is changed from active UP to Block or invalid Down, it does not send a TPDU packet carrying a Down Flag bit of 1 to HJSW, but only sets the state of Tunnel1-2 in the local device from active UP to Block, and since HJSW cannot receive the TPDU packet from Pool-GW1 through Tunnel1-1, HJSW also sets the state of Tunnel1-1 in the local device from active UP to Block.
In the message forwarding method of this embodiment, when Pool-GW1 detects that the state of Tunnel3 changes from active UP to Block or inactive Down, it generates a TPDU message carrying a Down Flag bit of 1, and sends the TPDU message to HJSW, thereby implementing that HJSW can sense a failure of remote Tunnel3 in the first time, and timely switches a service message from DC1 to DC2 for forwarding, and ensures normal forwarding of the service message.
In one implementation, the method further comprises: when the state of the third VXLAN tunnel is set to be unaffected by Uninfected, if the first resource pool gateway detects that the state of the first VXLAN tunnel in the local device is changed from active UP to Block or invalid Down, the first resource pool gateway keeps the state of the third VXLAN tunnel in the local device to be active UP.
In the message forwarding method of this embodiment, if VXLAN tunnels are established between the first resource pool gateway and the plurality of aggregation switches, if the state of the first VXLAN tunnel in the first resource pool gateway is changed from valid UP to Block or invalid Down, the state of the third VXLAN tunnel in the first resource pool gateway is also changed from valid UP linkage to Block according to the state of the first VXLAN tunnel, which will affect other aggregation switches to use the third VXLAN tunnel. Therefore, in this embodiment, the state of the third VXLAN tunnel may be set to be unaffected by unifed, and the tunnel set to be unaffected by unifed may not be linked with the change of the tunnel state of other tunnels, for example, if the state of the third VXLAN tunnel in the current first resource pool gateway is UP, if the state of the first VXLAN tunnel in the first resource pool gateway is changed from active UP to Block or invalid Down, the first resource pool gateway sets the state of the third VXLAN tunnel to be unitefed, so that the state of the third VXLAN tunnel in the first resource pool gateway still maintains active UP, and is not changed in a linked manner with the state of the first VXLAN tunnel, so that other aggregation switches that establish a tunnel with the first resource pool gateway can use the third VXLAN tunnel.
As an example, as shown in fig. 3c, when Pool-GW1 detects Tunnel1 failure, the state of Tunnel1-2 in Pool-GW1 changes from active UP to blocking Block or inactive Down. If the state of Tunnel3 is not set to unaffected unifed, Pool-GW1 sets the state of Tunnel3 in the home device to Block. If the state of Tunnel3 is set to unaffected uniinfested, Pool-GW1 keeps the state of Tunnel3 in the local device set to active UP, thereby achieving improved utilization of Tunnel 3.
In one implementation, the method further comprises: the method comprises the steps that a first resource pool gateway receives a detection message from a convergence switch, and the priority of a first VXLAN tunnel carried by the detection message is obtained; receiving a detection message from the first server, and acquiring the priority of a third VXLAN tunnel carried by the detection message; and when the first VXLAN tunnel and the third VXLAN tunnel belong to the same VSI and have the same priority, the first resource pool gateway keeps the state of the first VXLAN tunnel in the local terminal equipment consistent with the state of the third VXLAN tunnel.
Wherein the step of the first resource pool gateway keeping the state of the first VXLAN tunnel in the local terminal equipment consistent with the state of the third VXLAN tunnel comprises the following steps: when the state of the third VXLAN tunnel is changed from active UP to blocking Block or invalid Down, the state of the first VXLAN tunnel is changed from active UP to blocking Block. Or when the state of the third VXLAN tunnel is changed from the Block or the invalid Down to the valid UP, the state of the first VXLAN tunnel is changed from the Block to the valid UP.
In the packet forwarding method provided in this embodiment, the dual-DC networking is initialized through the TPDU packet. The resource pool gateway has a VXLAN tunnel belonging to the same VSI, and after receiving TPDU messages from two different interfaces (such as a physical interface, a VLAN interface or other logical interfaces), the source IP address and the destination IP address of the tunnel carried by the two TPDU messages are respectively checked. And if the source IP address and the destination IP address of the tunnel carried by the two TPDU messages do not correspond to the source IP address and the destination IP address of the VXLAN tunnel stored in the local terminal equipment, discarding the TPDU message. And if the source IP address and the destination IP address of the tunnel carried by the two TPDU messages correspond to the VXLAN tunnel in the local terminal equipment, the resource pool gateway respectively acquires the priority of the tunnel carried by the two TPDU messages and continuously compares the priority of the tunnel carried by the two TPDU messages.
It should be noted that, it is impossible for the resource pool gateway to receive the TPDU packet from one interface and then wait indefinitely for the TPDU packet from another interface to be compared, so that the resource pool gateway may be specified to compare the TPDU packets received from two different interfaces within a third Time duration (e.g., 2T-times).
As an example, as shown in fig. 3a, Tunnel1-2 and Tunnel3 belonging to the same VSI are present in Pool-GW 1. The Pool-GW1 receives the TPDU message 3 and the TPDU message 4 from two different interfaces, and checks the source IP address and the destination IP address of the tunnel carried by the TPDU message 3 and the TPDU message 4, respectively. If Pool-GW1 finds that the source IP address and the destination IP address of the Tunnel carried by TPDU packet 3 correspond to Tunnel1-2, and the source IP address and the destination IP address of the Tunnel carried by TPDU packet 2 correspond to Tunnel3, Pool-GW1 obtains the priorities of the tunnels carried by TPDU packet 1 and TPDU packet 2, for example, if the priority of Tunnel1-2 is 10, the priority of Tunnel3 is 10, since Pool-GW1 determines that the priority of Tunnel1-2 is the same as the priority of Tunnel3, the status of Tunnel1-2 in Pool-GW1 is consistent with the status of Tunnel 3. That is, when Pool-GW1 detects that the state of Tunnel3 is blocking Block or Down, the state of Tunnel1-2 is synchronously set to blocking Block, and when Pool-GW1 detects that the state of Tunnel3 is valid Up, the state of Tunnel1-2 is synchronously set to valid Up. The initialization procedure of Pool-GW2 is described in Pool-GW 1.
In an implementation manner, if the first resource pool gateway determines that the state of a VXLAN tunnel in the home terminal device is valid UP, the home terminal device can send and receive a detection message and a service message through the VXLAN tunnel; if the VXLAN tunnel in the local terminal equipment is in a Block blocking state, the local terminal equipment can receive the detection message through the VXLAN tunnel; and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
As shown in FIG. 3a, the state of Tunnel1-1 in HJSW is active UP and the state of Tunnel2-1 is blocking Block. The state of Tunnel3 in Pool-GW1 is active UP and the state of Tunnel1-2 is active UP. The state of Tunnel1-1 recorded by HJSW is effective UP, so that HJSW can send and receive TPDU message and service message through interface of Tunnel1-1, and because the state of Tunnel2-1 recorded by HJSW is blocking Block, HJSW can only receive TPDU message through interface of Tunnel2-1, but can not send TPDU message and service message. The Pool-GW1 records that the states of Tunnel1-2 and Tunnel3 are both valid UPs, so that the Pool-GW1 can send and receive TPDU messages and service messages through the interfaces of Tunnel1-2 and Tunnel 3. Therefore, the DC1 provides service support for the user equipment, that is, the HJSW forwards the service packet through the network device in the DC 1.
As shown in FIG. 3b, the state of Tunnel1-1 in HJSW is blocking Block and the state of Tunnel2-1 is active UP. The state of Tunnel4 in Pool-GW2 is active UP and the state of Tunnel2-2 is active UP. The state of Tunnel2-1 recorded by HJSW is effective UP, so that HJSW can send and receive TPDU message and service message through interface of Tunnel2-1, and because the state of Tunnel1-1 recorded by HJSW is blocking Block, HJSW can only receive TPDU message through interface of Tunnel1-1, but can not send TPDU message and service message. The Pool-GW2 records that the states of Tunnel2-2 and Tunnel4 are both valid UPs, so that the Pool-GW2 can send and receive TPDU messages and service messages through the interfaces of Tunnel2-2 and Tunnel 4. Therefore, the DC2 provides service support for the user equipment, that is, the HJSW forwards the service packet through the network device in the DC 2.
Fig. 6 shows a block diagram of a message forwarding device according to an embodiment of the present disclosure. The state of a first VXLAN tunnel is effective UP, the state of a second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway. The apparatus is for a convergence switch. As shown in fig. 6, the packet forwarding apparatus includes:
a detection message receiving module 61, configured to receive a detection message from the first resource pool gateway, where the detection message carries an identifier used to set a state of the first VXLAN tunnel; a first state setting module 62, configured to set, when the identifier carried in the probe packet indicates Block, the state of the first VXLAN tunnel in the local device from valid UP to Block, and set the state of the second VXLAN tunnel in the local device from Block UP to valid UP; and a service message forwarding module 63, configured to forward the service message through the second VXLAN tunnel.
In one implementation, the first state setting module is further configured to: when the identifier carried by the detection message indicates effective UP, after a first time length, setting the state of the first VXLAN tunnel in the local terminal equipment to be effective UP from blocking Block, and setting the state of the second VXLAN tunnel in the local terminal equipment to be blocking Block from effective UP; the service message forwarding module is further configured to: and forwarding the service message through the first VXLAN tunnel.
In one implementation, the apparatus further comprises: a first priority obtaining module, configured to receive a detection packet from the first resource pool gateway, and obtain a priority of the first VXLAN tunnel carried in the detection packet; receiving a detection message from the second resource pool gateway, and acquiring the priority of the second VXLAN tunnel carried by the detection message; the first state setting module is further configured to: and when the first VXLAN tunnel and the second VXLAN tunnel belong to the same VSI and have different priorities, setting the state of the VXLAN tunnel with the higher priority in the local terminal equipment as effective UP, and setting the state of the VXLAN tunnel with the lower priority as blocking Block.
In an implementation manner, if the state of a VXLAN tunnel in a home terminal device is valid UP, the home terminal device can send and receive a detection message and a service message through the VXLAN tunnel; if the VXLAN tunnel in the local terminal equipment is in a Block blocking state, the local terminal equipment can receive a detection message through the VXLAN tunnel; and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
Fig. 7 shows a block diagram of a message forwarding device according to an embodiment of the present disclosure. The state of a first VXLAN tunnel is effective UP, the state of a second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway. The apparatus is for a first resource pool gateway. As shown in fig. 7, the packet forwarding apparatus includes:
a detection message generating module 71, configured to generate a detection message carrying an identifier indicating a Block when detecting that a state of a third VXLAN tunnel is changed from valid UP to Block or invalid Down, where the third VXLAN tunnel is a VXLAN tunnel between the first resource pool gateway and the first server; a detection message sending module 72, configured to send the detection message to the aggregation switch, so that the aggregation switch sets, according to an identifier carried in the detection message, the state of the first VXLAN tunnel in the aggregation switch from active UP to blocking Block, and sets the state of the second VXLAN tunnel in the aggregation switch from blocking Block to active UP; a second state setting module 73, configured to set the state of the first VXLAN tunnel in the local device from valid UP to Block.
In one implementation, the apparatus further comprises: the second state setting module is further configured to: when detecting that the state of the third VXLAN tunnel is changed from a blocking Block or an invalid Down into a valid UP, setting the state of the first VXLAN tunnel in the local terminal equipment from the blocking Block to the valid UP; the detection message generation module is further configured to: generating a detection message carrying an identifier representing effective UP; the detection message sending module is further configured to: and sending the detection message to the aggregation switch, so that the aggregation switch sets the state of the first VXLAN tunnel in the aggregation switch from blocking Block to effective UP according to the identifier carried by the detection message, and sets the state of the second VXLAN tunnel in the aggregation switch from effective UP to blocking Block.
In one implementation, the apparatus further comprises: a third state setting module, configured to, when the state of the third VXLAN tunnel is set to be unaffected by unifed, if it is detected that the state of the first VXLAN tunnel in the local device is changed from active UP to Block or invalid Down, maintain the state of the third VXLAN tunnel in the local device as active UP.
In one implementation, the apparatus further comprises: the second priority acquisition module is used for receiving the detection message from the aggregation switch and acquiring the priority of the first VXLAN tunnel carried by the detection message; receiving a detection message from a first server, and acquiring the priority of the third VXLAN tunnel carried by the detection message; the second state setting module is further configured to: and when the first VXLAN tunnel and the third VXLAN tunnel belong to the same VSI and have the same priority, keeping the state of the first VXLAN tunnel in the local end equipment consistent with the state of the third VXLAN tunnel.
In an implementation manner, if the state of a VXLAN tunnel in a home terminal device is valid UP, the home terminal device can send and receive a detection message and a service message through the VXLAN tunnel; if the VXLAN tunnel in the local terminal equipment is in a Block blocking state, the local terminal equipment can receive a detection message through the VXLAN tunnel; and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
In the following message forwarding method disclosed by the invention, the TPDU message is sent by the intelligent tunnel at intervals of T-Time between devices in the double-DC networking to realize the monitoring and setting of the state of the VXLAN tunnel, so that when the VXLAN tunnel between a server in DC1 and a Pool-GW fails, HJSW can sense the failure of the VXLAN tunnel and automatically switch the service message from DC1 to DC2, thereby ensuring the normal forwarding of the service message.
Fig. 8 is a block diagram illustrating a message forwarding device 900 according to an example embodiment. Referring to fig. 8, the apparatus 900 may include a processor 901, a machine-readable storage medium 902 having stored thereon machine-executable instructions. The processor 901 and the machine-readable storage medium 902 may communicate via a system bus 903. And, the processor 901 executes the message forwarding method executed by the aggregation switch by reading the machine-executable instruction corresponding to the message forwarding logic in the machine-readable storage medium 902.
The present disclosure may also provide another message forwarding device that may include a processor, and a machine-readable storage medium having stored thereon machine-executable instructions. The processor and the machine-readable storage medium may communicate via a system bus. And the processor reads the machine-executable instruction corresponding to the message forwarding logic in the machine-readable storage medium to execute the message forwarding method executed by the resource pool gateway.
A machine-readable storage medium as referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (18)

1. A message forwarding method, wherein a state of a first VXLAN tunnel is valid UP, a state of a second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway, the method for a convergence switch comprising:
receiving a detection message from the first resource pool gateway, wherein the detection message carries an identifier for setting the state of the first VXLAN tunnel;
when the identifier carried by the detection message indicates Block, setting the state of the first VXLAN tunnel in the local terminal equipment from effective UP to Block Block, and setting the state of the second VXLAN tunnel in the local terminal equipment from Block Block to effective UP;
forwarding the service message through the second VXLAN tunnel,
if the state of the VXLAN tunnel in the local terminal equipment is Block, the local terminal equipment can receive the detection message through the VXLAN tunnel.
2. The method of claim 1, wherein after setting the state of the first VXLAN tunnel in a home device from active UP to blocking Block and setting the state of the second VXLAN tunnel in a home device from blocking Block to active UP, the method further comprises:
receiving a detection message from the first resource pool gateway;
when the identifier carried by the detection message indicates effective UP, after a first time length, setting the state of the first VXLAN tunnel in the local terminal equipment to be effective UP from blocking Block, and setting the state of the second VXLAN tunnel in the local terminal equipment to be blocking Block from effective UP;
and forwarding the service message through the first VXLAN tunnel.
3. The method of claim 1, wherein in performing an initialization setup, the method further comprises:
receiving a detection message from the first resource pool gateway, and acquiring the priority of the first VXLAN tunnel carried by the detection message; and
receiving a detection message from the second resource pool gateway, and acquiring the priority of the second VXLAN tunnel carried by the detection message;
and when the first VXLAN tunnel and the second VXLAN tunnel belong to the same VSI and have different priorities, setting the state of the VXLAN tunnel with the higher priority in the local terminal equipment as effective UP, and setting the state of the VXLAN tunnel with the lower priority as blocking Block.
4. The method of claim 1,
if the state of the VXLAN tunnel in the local terminal equipment is effective UP, the local terminal equipment can send and receive detection messages and service messages through the VXLAN tunnel;
and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
5. A message forwarding method is characterized in that the state of a first VXLAN tunnel is effective UP, the state of a second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway; the method is used for a first resource pool gateway and comprises the following steps:
when detecting that the state of a third VXLAN tunnel is changed from effective UP to Block Block or invalid Down, generating a detection message carrying an identifier representing the Block Block, wherein the third VXLAN tunnel is a VXLAN tunnel between the first resource pool gateway and the first server;
sending the detection message to the aggregation switch, so that the aggregation switch sets the state of the first VXLAN tunnel in the aggregation switch from effective UP to blocking Block and sets the state of the second VXLAN tunnel in the aggregation switch from blocking Block to effective UP according to the identifier carried by the detection message,
if the state of the VXLAN tunnel in the local terminal equipment is Block, the local terminal equipment can receive a detection message through the VXLAN tunnel;
and setting the state of the first VXLAN tunnel in the local terminal equipment to be a blocking Block from effective UP.
6. The method of claim 5, wherein after setting the state of the first VXLAN tunnel in a home device from active UP to blocking Block, the method further comprises:
when detecting that the state of the third VXLAN tunnel is changed from a blocking Block or an invalid Down into a valid UP, setting the state of the first VXLAN tunnel in the local terminal equipment from the blocking Block to the valid UP;
generating a detection message carrying an identifier representing effective UP;
and sending the detection message to the aggregation switch, so that the aggregation switch sets the state of the first VXLAN tunnel in the aggregation switch from blocking Block to effective UP according to the identifier carried by the detection message, and sets the state of the second VXLAN tunnel in the aggregation switch from effective UP to blocking Block.
7. The method of claim 5, further comprising:
and when the state of the third VXLAN tunnel is set to be unaffected by Unifed, if the state of the first VXLAN tunnel in the local equipment is detected to be changed from effective UP to blocked Block or invalid Down, the state of the third VXLAN tunnel in the local equipment is kept to be effective UP.
8. The method of claim 5, further comprising:
receiving a detection message from the aggregation switch, and acquiring the priority of the first VXLAN tunnel carried by the detection message; and
receiving a detection message from a first server, and acquiring the priority of the third VXLAN tunnel carried by the detection message;
and when the first VXLAN tunnel and the third VXLAN tunnel belong to the same VSI and have the same priority, keeping the state of the first VXLAN tunnel in the local end equipment consistent with the state of the third VXLAN tunnel.
9. The method of claim 5,
if the state of the VXLAN tunnel in the local terminal equipment is effective UP, the local terminal equipment can send and receive detection messages and service messages through the VXLAN tunnel;
and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
10. A message forwarding apparatus, wherein a state of a first VXLAN tunnel is an effective UP, a state of a second VXLAN tunnel is a blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway, the apparatus is configured for a convergence switch, and the apparatus comprises:
a detection message receiving module, configured to receive a detection message from the first resource pool gateway, where the detection message carries an identifier used to set a state of the first VXLAN tunnel;
a first state setting module, configured to set, when the identifier carried in the probe packet indicates Block, the state of the first VXLAN tunnel in the local device from valid UP to Block, and set the state of the second VXLAN tunnel in the local device from Block UP to valid UP;
a service message forwarding module, configured to forward a service message through the second VXLAN tunnel,
if the state of the VXLAN tunnel in the local terminal equipment is Block, the local terminal equipment can receive the detection message through the VXLAN tunnel.
11. The apparatus of claim 10,
the first state setting module is further configured to: when the identifier carried by the detection message indicates effective UP, after a first time length, setting the state of the first VXLAN tunnel in the local terminal equipment to be effective UP from blocking Block, and setting the state of the second VXLAN tunnel in the local terminal equipment to be blocking Block from effective UP;
the service message forwarding module is further configured to: and forwarding the service message through the first VXLAN tunnel.
12. The apparatus of claim 10, wherein when performing an initialization setup, the apparatus further comprises:
a first priority obtaining module, configured to receive a detection packet from the first resource pool gateway, and obtain a priority of the first VXLAN tunnel carried in the detection packet; and
receiving a detection message from the second resource pool gateway, and acquiring the priority of the second VXLAN tunnel carried by the detection message;
the first state setting module is further configured to: and when the first VXLAN tunnel and the second VXLAN tunnel belong to the same VSI and have different priorities, setting the state of the VXLAN tunnel with the higher priority in the local terminal equipment as effective UP, and setting the state of the VXLAN tunnel with the lower priority as blocking Block.
13. The apparatus of claim 10,
if the state of the VXLAN tunnel in the local terminal equipment is effective UP, the local terminal equipment can send and receive detection messages and service messages through the VXLAN tunnel;
and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
14. A message forwarding device is characterized in that the state of a first VXLAN tunnel is effective UP, the state of a second VXLAN tunnel is blocking Block, the first VXLAN tunnel is a VXLAN tunnel between a convergence switch and a first resource pool gateway, and the second VXLAN tunnel is a VXLAN tunnel between the convergence switch and a second resource pool gateway; the apparatus is for a first resource pool gateway, comprising:
a detection message generation module, configured to generate a detection message carrying an identifier indicating a Block when detecting that a state of a third VXLAN tunnel is changed from valid UP to Block or invalid Down, where the third VXLAN tunnel is a VXLAN tunnel between the first resource pool gateway and the first server;
a detection message sending module, configured to send the detection message to the aggregation switch, so that the aggregation switch sets, according to an identifier carried in the detection message, a state of the first VXLAN tunnel in the aggregation switch from an effective UP to a Block, and sets a state of the second VXLAN tunnel in the aggregation switch from the Block to an effective UP;
a second state setting module, configured to set the state of the first VXLAN tunnel in the local device from valid UP to Block,
if the state of the VXLAN tunnel in the local terminal equipment is Block, the local terminal equipment can receive the detection message through the VXLAN tunnel.
15. The apparatus of claim 14, further comprising:
the second state setting module is further configured to: when detecting that the state of the third VXLAN tunnel is changed from a blocking Block or an invalid Down into a valid UP, setting the state of the first VXLAN tunnel in the local terminal equipment from the blocking Block to the valid UP;
the detection message generation module is further configured to: generating a detection message carrying an identifier representing effective UP;
the detection message sending module is further configured to: and sending the detection message to the aggregation switch, so that the aggregation switch sets the state of the first VXLAN tunnel in the aggregation switch from blocking Block to effective UP according to the identifier carried by the detection message, and sets the state of the second VXLAN tunnel in the aggregation switch from effective UP to blocking Block.
16. The apparatus of claim 14, further comprising:
a third state setting module, configured to, when the state of the third VXLAN tunnel is set to be unaffected by unifed, if it is detected that the state of the first VXLAN tunnel in the local device is changed from active UP to Block or invalid Down, maintain the state of the third VXLAN tunnel in the local device as active UP.
17. The apparatus of claim 14, further comprising:
the second priority acquisition module is used for receiving the detection message from the aggregation switch and acquiring the priority of the first VXLAN tunnel carried by the detection message; and
receiving a detection message from a first server, and acquiring the priority of the third VXLAN tunnel carried by the detection message;
the second state setting module is further configured to: and when the first VXLAN tunnel and the third VXLAN tunnel belong to the same VSI and have the same priority, keeping the state of the first VXLAN tunnel in the local end equipment consistent with the state of the third VXLAN tunnel.
18. The apparatus of claim 14,
if the state of the VXLAN tunnel in the local terminal equipment is effective UP, the local terminal equipment can send and receive detection messages and service messages through the VXLAN tunnel;
and if the state of the VXLAN tunnel in the local terminal equipment is invalid Down, the local terminal equipment cannot send and receive the detection message and the service message through the VXLAN tunnel.
CN201810098792.9A 2018-01-31 2018-01-31 Message forwarding method and device Active CN108337147B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810098792.9A CN108337147B (en) 2018-01-31 2018-01-31 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810098792.9A CN108337147B (en) 2018-01-31 2018-01-31 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN108337147A CN108337147A (en) 2018-07-27
CN108337147B true CN108337147B (en) 2020-12-01

Family

ID=62926874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810098792.9A Active CN108337147B (en) 2018-01-31 2018-01-31 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN108337147B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105900518A (en) * 2013-08-27 2016-08-24 华为技术有限公司 System and method for mobile network function virtualization
US9680968B2 (en) * 2013-03-14 2017-06-13 Patent Capital Group Establishing translation for virtual machines in a network environment
CN107317768A (en) * 2016-04-27 2017-11-03 新华三技术有限公司 Traffic scheduling method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9985838B2 (en) * 2016-03-29 2018-05-29 Juniper Networks, Inc. Mass MAC withdrawal for EVPN-DCI using virtual ESI

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9680968B2 (en) * 2013-03-14 2017-06-13 Patent Capital Group Establishing translation for virtual machines in a network environment
CN105900518A (en) * 2013-08-27 2016-08-24 华为技术有限公司 System and method for mobile network function virtualization
CN107317768A (en) * 2016-04-27 2017-11-03 新华三技术有限公司 Traffic scheduling method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《"双活"数据中心的设计实现》;樊昊;《电信科学》;20160131;全文 *

Also Published As

Publication number Publication date
CN108337147A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
US10938627B2 (en) Packet processing method, device, and network system
US11223514B2 (en) Method and system of a dynamic high-availability mode based on current wide area network connectivity
US20200280514A1 (en) Packet forwarding method, apparatus, and system
US9219641B2 (en) Performing failover in a redundancy group
KR101706439B1 (en) Redundant network connections
CN107547366B (en) Message forwarding method and device
JP4874340B2 (en) Distribution management of control protocol information in network nodes
US9614810B2 (en) Address allocation processing method, apparatus and system
KR101266671B1 (en) Scaled ethernet oam for mesh and hub-and-spoke networks
JP5514213B2 (en) Reduce the transmission of CC messages within the provider network
CN109861867B (en) MEC service processing method and device
EP2733907A1 (en) Method, local gateway, and system for local voice survivability
CN112367257B (en) Route notification method and device
CN112367252B (en) Method and device for realizing disaster recovery backup
JP5678678B2 (en) Provider network and provider edge device
US11843534B2 (en) State detection of NETCONF session
US20180262387A1 (en) Restoring control-plane connectivity with a network management entity
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
CN108337118B (en) Message forwarding method and device
CN108337147B (en) Message forwarding method and device
CN109617716B (en) Data center exception handling method and device
JP5625494B2 (en) Transmission apparatus, control information setting method, and control information setting program
CN109005097B (en) Message forwarding method and device
CN112737949A (en) Fault detection method and device, electronic equipment and computer readable medium
US7623464B2 (en) Rapid protocol failure detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant