CN108965089B - Flow forwarding method and device - Google Patents

Flow forwarding method and device Download PDF

Info

Publication number
CN108965089B
CN108965089B CN201810644406.1A CN201810644406A CN108965089B CN 108965089 B CN108965089 B CN 108965089B CN 201810644406 A CN201810644406 A CN 201810644406A CN 108965089 B CN108965089 B CN 108965089B
Authority
CN
China
Prior art keywords
port
backup
cross
virtual interface
flooding
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
CN201810644406.1A
Other languages
Chinese (zh)
Other versions
CN108965089A (en
Inventor
孙振兴
梁学伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information 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 CN201810644406.1A priority Critical patent/CN108965089B/en
Publication of CN108965089A publication Critical patent/CN108965089A/en
Application granted granted Critical
Publication of CN108965089B publication Critical patent/CN108965089B/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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/7453Address table lookup; Address filtering using hashing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a flow forwarding method and a device, wherein the method comprises the following steps: when a virtual interface corresponding to a cross-board aggregation port exists on any stacking member device, setting a backup virtual interface for the virtual interface, and setting a backup cross-board aggregation port for the cross-board aggregation port; establishing a mapping relation between the backup virtual interface and the backup cross-board aggregation port; when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through a port in an effective state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port, and refusing to forward the flooding traffic through a port in an ineffective state in the backup cross-board aggregation port. The embodiment of the invention can avoid forwarding a plurality of identical broadcast messages through the cross-board aggregation port.

Description

Flow forwarding method and device
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a traffic forwarding method and apparatus.
Background
VXLAN (Virtual eXtensible Local Area Network) is a two-layer VPN (Virtual private Network) technology based on an IP (Internet Protocol) Network and adopting an "MAC (Media Access Control) in UDP (User Datagram Protocol)" encapsulation form. VXLAN can provide two-layer interconnection for dispersed physical sites based on existing service provider or enterprise IP networks and can provide service isolation for different tenants.
In VXLAN networking, ports on a VTEP (VXLAN Tunnel End Point) device may include an AC (access Circuit) port and a Tunnel port; the AC port is used for connecting a local network, the Tunnel port is used for connecting a core network, and both the AC port and the Tunnel port can correspond to a single port or an aggregation port.
However, practice shows that if the VTEP device is a stacking device and a cross-board aggregation port exists on the VTEP device, when a broadcast packet needs to be forwarded through the cross-board aggregation port, the cross-board aggregation port forwards multiple identical broadcast packets.
Taking the VTEP device shown in fig. 1 as an example, the VTEP device is formed by stacking stack member devices slot1 and slot2, the AC Port is a single Port, the Tunnel Port is a stacked cross-board aggregation Port BAGG, the AC Port and the Tunnel Port both belong to one VSI, the AC Port is mapped with Port2/1, the Tunnel Port is mapped with BAGG, the BAGG includes Port1/3 and Port1/4 on slot1, and Port2/3 and Port2/4 on slot 2.
When unknown unicast, unknown multicast or broadcast messages enter from the slot2 AC port, flooding is carried out in the VSI, wherein one part is sent to the stacking port, the other part is sent to the Tunnel port, and the other part is sent to the AC port.
(1) For the flooding message sent to the Tunnel port: because the physical Port corresponding to the Tunnel Port is the cross-board aggregation Port, when the flooding traffic meets the hash condition, the flooding traffic is uniformly sent out from all member ports in the aggregation group after hash calculation, that is, the outgoing direction traffic of the four ports, i.e., Port1/3, Port1/4, Port2/3, and Port2/4, is 1/4 of the incoming direction traffic of the AC Port.
(2) For a flooding message sent to an AC port: the device filters the message through the source filtering function of the physical port, and the message cannot be forwarded out from the source port.
(3) For the flooding message sent to the stacking port: upon reaching slot1, it will also flood the VSI of slot 1. Because pile up the loop function of preventing of equipment self, the flood flow in the VSI on slot1 can not send to slot2 through piling up the mouth again, only can send to the Tunnel mouth. For the flooding message sent to the Tunnel port: because the physical port corresponding to the Tunnel port is the cross-board aggregation port, under the condition that the flooding traffic meets the hash condition, after hash calculation, one broadcast message is sent out from all member ports in the aggregation group, which is equivalent to forwarding two identical broadcast flows from the cross-board aggregation port BAGG of the whole stacking device.
Disclosure of Invention
The invention provides a traffic forwarding method and a traffic forwarding device, which are used for solving the problem that VTEP equipment formed by stacking in the existing VXLAN networking forwards multiple copies of the same broadcast traffic through a cross-board aggregation port.
According to a first aspect of the embodiments of the present invention, there is provided a traffic forwarding method applied to any one of VTEP devices formed by stacking at least two stack member devices, the method including:
when a virtual interface corresponding to a cross-board aggregation port exists on any stacking member device, setting a backup virtual interface for the virtual interface, and setting a backup cross-board aggregation port for the cross-board aggregation port; an aggregation member port belonging to the equipment in the backup cross-board aggregation port is in an effective state, and an aggregation member port not belonging to the equipment is in an ineffective state;
establishing a mapping relation between the backup virtual interface and the backup cross-board aggregation port;
when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through a port in an effective state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port, and refusing to forward the flooding traffic through a port in an ineffective state in the backup cross-board aggregation port.
According to a second aspect of the embodiments of the present invention, there is provided a traffic forwarding apparatus, applied to any one of VTEP devices formed by stacking at least two stacking member devices, the apparatus including:
the device comprises a setting unit, a judging unit and a judging unit, wherein the setting unit is used for setting a backup virtual interface for the virtual interface and setting a backup cross-board aggregation port for the cross-board aggregation port when the virtual interface corresponding to the cross-board aggregation port exists on any stacking member device; an aggregation member port belonging to the equipment in the backup cross-board aggregation port is in an effective state, and an aggregation member port not belonging to the equipment is in an ineffective state;
the establishing unit is used for establishing a mapping relation between the backup virtual interface and the backup cross-board aggregation port;
and the forwarding unit is used for forwarding the flooding traffic through the port in the valid state in the backup cross-board aggregation port and refusing to forward the flooding traffic through the port in the invalid state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port when the flooding traffic needs to be forwarded through the virtual interface.
By applying the embodiment of the invention, the backup virtual interface is arranged for the virtual interface corresponding to the cross-board aggregation port, setting a backup cross-board aggregation port for the cross-board aggregation port, setting an aggregation member port belonging to the equipment in the backup cross-board aggregation port to be in an effective state, setting an aggregation member port not belonging to the equipment to be in an ineffective state, further, a mapping relation between the backup virtual interface and the backup cross-board aggregation port is established, when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through the port in the effective state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port, and refusing to forward the flooding flow through the port in the invalid state in the backup cross-board aggregation port, thereby avoiding forwarding multiple identical broadcast messages through the cross-board aggregation port.
Drawings
Fig. 1 is a schematic diagram of a VTEP apparatus provided by an embodiment of the present invention;
fig. 2 is a schematic flow chart of a traffic forwarding method according to an embodiment of the present invention;
fig. 3 and fig. 4 are schematic diagrams of specific application scenarios provided by the embodiment of the present invention;
fig. 5 is a schematic flow chart of a traffic forwarding apparatus according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a traffic forwarding apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 2, a flow diagram of a traffic forwarding method provided in an embodiment of the present invention is shown, where the traffic forwarding method may be applied to any stack member device (hereinafter, described as a target device) in a VTEP device formed by stacking at least two stack member devices, for example, slot1 or slot2 in fig. 1, and as shown in fig. 2, the traffic forwarding method may include the following steps:
step 201, when a virtual interface corresponding to the cross-board aggregation port exists on any one of the stacking member devices, setting a backup virtual interface for the virtual interface, and setting a backup cross-board aggregation port for the cross-board aggregation port.
Step 202, establishing a mapping relationship between the backup virtual interface and the backup cross-board aggregation interface.
In the embodiment of the present invention, in order to avoid forwarding a plurality of identical flooding flows through the cross-board aggregation port when forwarding the flooding flows through the cross-board aggregation port, it is necessary to ensure that the stack member device performs the flooding flows through the cross-board aggregation port, forward the flooding flows that need to be forwarded through the aggregation member port belonging to the device, and refuse to forward the flooding flows that need to be forwarded through the aggregation member device port not belonging to the device.
Correspondingly, in the embodiment of the present invention, when the target device determines that the virtual interface corresponding to the cross-board aggregation port exists on the device, the target device may set a backup virtual interface for the virtual interface, and backup the cross-board aggregation port for the cross-board aggregation port device.
Wherein the virtual interface may include, but is not limited to, an AC port or a Tunnel port.
In the embodiment of the present invention, after the target device sets a backup virtual interface for the virtual interface and sets a backup cross-board aggregation port for the cross-board aggregation port, a mapping relationship between the backup virtual interface and the backup cross-board aggregation port may be established, and forwarding of the flooding traffic that needs to be forwarded through the virtual interface (the virtual interface corresponding to the backup virtual interface) is guided according to the mapping relationship between the backup virtual interface and the backup cross-board aggregation port.
The flooding traffic may include, but is not limited to, an unknown unicast message, an unknown multicast message, or a broadcast message.
It should be noted that, in the embodiment of the present invention, when the target device performs operations such as Media Access Control (MAC) address learning and three-layer forwarding, the operations are still performed according to the mapping relationship between the virtual interface and the corresponding cross-board aggregation port, and specific implementation of the operations may refer to related descriptions in the related art, which is not described in detail in the embodiment of the present invention.
Step 203, when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through the port in the valid state in the backup cross-board aggregation port according to the mapping relationship between the backup virtual interface and the backup cross-board aggregation port, and rejecting forwarding the flooding traffic through the port in the invalid state in the backup cross-board aggregation port.
In the embodiment of the present invention, in order to ensure that the target device can forward the flooding traffic that needs to be forwarded through the aggregation member port belonging to the device, and refuse to forward the flooding traffic that needs to be forwarded through the aggregation member device port not belonging to the device, the target device may set the aggregation member port belonging to the device in the backup aggregation port to an active state, and set the aggregation member port not belonging to the device to an inactive state.
Correspondingly, when the target device needs to forward the flooding traffic through the virtual interface (corresponding to the virtual interface of the cross-board aggregation port), the target device may query the mapping relationship between the backup virtual interface and the backup cross-board aggregation port according to the backup virtual interface corresponding to the virtual interface, and forward the flooding traffic that needs to be forwarded through the port in the effective state in the backup aggregation port through the port in the effective state; for flooding traffic that needs to be forwarded through an invalid state port in the backup aggregation port, the target device may refuse forwarding.
As can be seen, in the method flow shown in fig. 2, when the target device needs to forward the flooding traffic through the virtual interface corresponding to the cross-board aggregation port, for the flooding traffic that needs to be forwarded through the aggregation member port that is not owned by the device, the target device may refuse to forward the flooding traffic, but only forward the flooding traffic through the aggregation member port that is owned by the device, so that multiple identical flooding traffic that needs to be forwarded through the cross-board aggregation port is avoided.
It should be noted that, in the embodiment of the present invention, the number of virtual interfaces corresponding to the cross-board aggregation port existing on the target device may be multiple, in this case, for any virtual interface in the multiple virtual interfaces, the target device may perform processing according to the manners described in the foregoing step 201 to step 203, and specific implementations thereof are not described herein again.
In one embodiment of the present invention, when the target device needs to forward the flooding traffic through the virtual interface, the target device may select, according to the mapping relationship between the standby virtual interface and the standby cross-board aggregation port, an aggregation member port (referred to as a target port herein) for forwarding the flooding traffic from aggregation member ports included in the standby cross-board aggregation port by using a hash algorithm.
In this embodiment, when the target port is a port in an active state, the target device may forward the flooding traffic through the target port; when the target port is an invalid port, the target device may refuse to forward the flooding traffic.
It should be appreciated that, in the embodiment of the present invention, when the target device selects a target port for forwarding the flooding traffic from aggregation member ports included in the cross-board aggregation port, the use of the hash algorithm is not limited, and other manners may also be used, which only needs to ensure that, for the same flooding traffic, the target port selected for the flooding traffic by a plurality of stacked member devices corresponding to the cross-board aggregation port is the same port, and specific implementation thereof is not described herein again.
In order to enable those skilled in the art to better understand the technical solution provided by the embodiment of the present invention, the technical solution provided by the embodiment of the present invention is described below with reference to a specific application scenario.
Example one
Referring to fig. 3, which is a schematic diagram of a specific application scenario provided in the embodiment of the present invention, as shown in fig. 3, in the application scenario, a VTEP device 300 is formed by stacking a stack member device 310 (hereinafter referred to as a slot310) and a stack member device 320 (hereinafter referred to as a slot320), where an AC Port1 corresponding to a Port321 and a Tunnel Port1 corresponding to a cross-board aggregation Port BAGG1 are located on the slot320, and a Tunnel Port1 corresponding to a BAGG1 is located on the slot 310; BAGG1 includes polymeric member ports: port311 and Port312 (attributed to slot310) and Port322 and Port323 (attributed to slot 320); AC port1 belongs to the same VSI as Tunnel port 1.
In this embodiment, slot310 and slot320 may provide backup Tunnel ports for Tunnel port1 (assuming BcTunnel port1 and BcTunnel port2, respectively) and backup BAGG for BAGG1 (assuming BcBAGG1 and BcBAGG2, respectively).
The slot310 establishes a mapping relation between a BcTunnel port1 and BcBAGG1, and the slot320 establishes a mapping relation between a BcTunnel port2 and BcBAGG 2.
Wherein, in BcBAGG1, Port311 and Port312 are in an active state, and Port322 and Port323 are in an inactive state; in BcBAGG2, Port311 and Port312 are in an inactive state, and Port322 and Port323 are in an active state.
In this embodiment, when slot320 receives a broadcast packet from Port321, slot320 determines that the broadcast packet needs to be forwarded through a stack Port (not shown in the figure) and Tunnel Port1 according to the VSI of the virtual interface (AC Port 1) corresponding to Port 321.
For the broadcast message which needs to be forwarded through Tunnel Port1, slot320 may select a target Port for forwarding the broadcast message from aggregated member ports (Port311, Port312, Port322, and Port323) of BcBAGG1 by using a hash algorithm according to a mapping relationship between BcTunnel1 and BcBAGG 1.
When the target Port selected by slot320 is Port311 or Port312 (a Port in an invalid state), slot320 refuses to forward the broadcast message;
when the target Port selected by slot320 is Port322 and Port323 (ports in active state), slot320 forwards the broadcast packet through the target Port.
When slot310 receives the broadcast message forwarded by slot320 from the stack port, it determines that the broadcast message needs to be forwarded from Tunnel port1 according to the VSI information carried in the stack header.
Therefore, slot310 can select a target Port for forwarding the broadcast packet from aggregated member ports (Port311, Port312, Port322, and Port323) of BcBAGG2 by using a hash algorithm according to the mapping relationship between BcTunnel2 and BcBAGG 2.
When the target Port selected by slot310 is Port311 or Port312 (a Port in an active state), slot310 may forward the broadcast packet through the target Port;
when the target Port selected by slot310 is Port322 and Port323 (ports in an invalid state), slot310 may refuse to forward the broadcast packet.
It can be seen that, in this embodiment, for any broadcast packet entering from Port321 of slot320, only one of ports 311, 312, 322, and 323 is forwarded, thereby avoiding forwarding multiple identical broadcast packets across the board aggregation Port.
Example two
Please refer to fig. 4, which is a schematic diagram of a specific application scenario provided in the embodiment of the present invention, as shown in fig. 4, in the application scenario, a VTEP device 400 is formed by stacking a stack member device 410 (hereinafter referred to as a slot410) and a stack member device 420 (hereinafter referred to as a slot420), a Tunnel Port2 corresponding to a Port421 and an AC Port2 corresponding to a cross-board aggregation Port BAGG2 exist on the slot420, and an AC Port2 corresponding to a BAGG2 exists on the slot 410; BAGG2 includes polymeric member ports: port411 and Port412 (attributed to slot410) and Port422 and Port423 (attributed to slot 420); AC port2 belongs to the same VSI as Tunnel port 2.
In this embodiment, slot410 and slot420 may provide backup Tunnel ports for Tunnel port2 (assuming BcTunnel port1 and BcTunnel port2, respectively) and backup BAGG for BAGG2 (assuming BcBAGG1 and BcBAGG2, respectively).
Slot410 establishes a mapping relation between BcTunnel port1 and BcBAGG1, and Slot420 establishes a mapping relation between BcTunnel port2 and BcBAGG 2.
Among them, in BcBAGG1, Port411 and Port412 are in the active state, and Port422 and Port423 are in the inactive state; in BcBAGG2, Port411 and Port412 are in an inactive state, and Port422 and Port423 are in an active state.
In this embodiment, when slot420 receives a broadcast packet from Port421, slot420 determines, according to the VSI of the virtual interface (Tunnel Port 2) corresponding to Port421, that the broadcast packet needs to be forwarded through a stack Port (not shown in the figure) and AC Port 2.
For the broadcast packet that needs to be forwarded through the AC Port2, the slot420 may select a target Port for forwarding the broadcast packet from the aggregated member ports (Port411, Port412, Port422, and Port423) of the BcBAGG1 by using a hash algorithm according to the mapping relationship between BcTunnel1 and BcBAGG 1.
When the target Port selected by slot420 is Port411 or Port412 (a Port in an invalid state), slot420 refuses to forward the broadcast message;
when the destination Port selected by slot420 is Port422 and Port423 (valid ports), slot420 forwards the broadcast packet through the destination Port.
When Slot410 receives the broadcast message forwarded by Slot420 from the stack port, it determines that the broadcast message needs to be forwarded from AC port2 according to the VSI information carried in the stack header.
Therefore, slot410 can select a target Port for forwarding the broadcast packet from the aggregated member ports (Port411, Port412, Port422 and Port423) of BcBAGG2 by using a hash algorithm according to the mapping relationship between BcTunnel2 and BcBAGG 2.
When the target Port selected by slot410 is Port411 or Port412 (a Port in an active state), slot410 may forward the broadcast packet through the target Port;
when the target Port selected by slot410 is Port422 and Port423 (ports in an invalid state), slot410 may refuse to forward the broadcast packet.
It can be seen that, in this embodiment, for any broadcast packet entering from Port421 of slot420, it will be forwarded from only one of ports 411, 412, 422, and 423, which avoids forwarding multiple identical broadcast packets across the board aggregation Port.
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, by setting a backup virtual interface for the virtual interface corresponding to the cross board aggregation port, setting a backup cross-board aggregation port for the cross-board aggregation port, setting an aggregation member port belonging to the equipment in the backup cross-board aggregation port to be in an effective state, setting an aggregation member port not belonging to the equipment to be in an ineffective state, further, a mapping relation between the backup virtual interface and the backup cross-board aggregation port is established, when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through the port in the effective state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port, and refusing to forward the flooding flow through the port in the invalid state in the backup cross-board aggregation port, thereby avoiding forwarding multiple identical broadcast messages through the cross-board aggregation port.
Referring to fig. 5, a schematic structural diagram of a traffic forwarding apparatus according to an embodiment of the present invention is provided, where the apparatus may be applied to a target device in the foregoing method embodiment, and as shown in fig. 5, the apparatus may include:
a setting unit 510, configured to set a backup virtual interface for a virtual interface when a virtual interface corresponding to a cross-board aggregation port exists on a target device, and set a backup cross-board aggregation port for the cross-board aggregation port; an aggregation member port belonging to the equipment in the backup cross-board aggregation port is in an effective state, and an aggregation member port not belonging to the equipment is in an ineffective state;
the establishing unit 520 is configured to establish a mapping relationship between the backup virtual interface and the backup cross-board aggregation interface;
the forwarding unit 530 is configured to forward the flooding traffic through the port in the valid state in the backup cross-board aggregation port according to the mapping relationship between the backup virtual interface and the backup cross-board aggregation port, and refuse to forward the flooding traffic through the port in the invalid state in the backup cross-board aggregation port when the flooding traffic needs to be forwarded through the virtual interface.
Referring to fig. 6, which is a schematic structural diagram of another traffic forwarding apparatus according to an embodiment of the present invention, as shown in fig. 6, on the basis of the traffic forwarding apparatus shown in fig. 5, the traffic forwarding apparatus shown in fig. 6 further includes:
a selecting unit 540, configured to select, when the flooding traffic needs to be forwarded through the virtual interface, a target port for forwarding the flooding traffic from aggregation member ports included in the backup cross-board aggregation port by using a hash algorithm;
a forwarding unit 530, specifically configured to forward the flooding traffic through the target port if the target port is a port in an active state; and if the target port is the port in the invalid state, refusing to forward the flooding traffic.
In an alternative embodiment, the virtual interface comprises an access circuit AC port or a tunnel port.
In an alternative embodiment, the flooding traffic comprises flooding traffic received through other virtual interfaces belonging to the same virtual switch instance as the virtual interface; or flooding traffic within the virtual switch instance to which the virtual interface belongs, received through the stack port.
In an alternative embodiment, the flooding traffic comprises unknown unicast messages, unknown multicast messages, or broadcast messages.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention. One of ordinary skill in the art can understand and implement it without inventive effort.
As can be seen from the above embodiments, by setting a backup virtual interface for the virtual interface corresponding to the cross board aggregation port, setting a backup cross-board aggregation port for the cross-board aggregation port, setting an aggregation member port belonging to the equipment in the backup cross-board aggregation port to be in an effective state, setting an aggregation member port not belonging to the equipment to be in an ineffective state, further, a mapping relation between the backup virtual interface and the backup cross-board aggregation port is established, when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through the port in the effective state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port, and refusing to forward the flooding flow through the port in the invalid state in the backup cross-board aggregation port, thereby avoiding forwarding multiple identical broadcast messages through the cross-board aggregation port.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A traffic forwarding method is applied to any one of extensible virtual local area network tunnel endpoint (VTEP) devices formed by stacking at least two stacking member devices, and is characterized by comprising the following steps:
when a virtual interface corresponding to a cross-board aggregation port exists on any stacking member device, setting a backup virtual interface for the virtual interface, and setting a backup cross-board aggregation port for the cross-board aggregation port; an aggregation member port belonging to the equipment in the backup cross-board aggregation port is in an effective state, and an aggregation member port not belonging to the equipment is in an ineffective state;
establishing a mapping relation between the backup virtual interface and the backup cross-board aggregation port;
when the flooding traffic needs to be forwarded through the virtual interface, forwarding the flooding traffic through a port in an effective state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port, and refusing to forward the flooding traffic through a port in an ineffective state in the backup cross-board aggregation port.
2. The method according to claim 1, wherein the forwarding the flooding traffic through a valid port in the backup cross-board aggregation port and rejecting forwarding the flooding traffic through an invalid port in the backup cross-board aggregation port according to a mapping relationship between the backup virtual interface and the backup cross-board aggregation port comprises:
selecting a target port for forwarding the flooding traffic from aggregation member ports included in the backup cross-board aggregation port by using a hash algorithm;
if the target port is a port in an effective state, forwarding the flooding flow through the target port;
and if the target port is the port in the invalid state, refusing to forward the flooding flow.
3. The method of claim 1, wherein the virtual interface comprises an access circuit AC port or a tunnel port.
4. The method of claim 1, wherein the flooding traffic comprises flooding traffic received over other virtual interfaces that belong to a same virtual switch instance as the virtual interface; or, flooding traffic received through a stack port within a virtual switch instance to which the virtual interface belongs.
5. The method of claim 1, wherein the flooding traffic comprises an unknown unicast message, an unknown multicast message, or a broadcast message.
6. A traffic forwarding apparatus applied to any one of scalable virtual local area network tunnel endpoint, VTEP, devices formed by stacking at least two stack member devices, the apparatus comprising:
the device comprises a setting unit, a judging unit and a judging unit, wherein the setting unit is used for setting a backup virtual interface for the virtual interface and setting a backup cross-board aggregation port for the cross-board aggregation port when the virtual interface corresponding to the cross-board aggregation port exists on any stacking member device; an aggregation member port belonging to the equipment in the backup cross-board aggregation port is in an effective state, and an aggregation member port not belonging to the equipment is in an ineffective state;
the establishing unit is used for establishing a mapping relation between the backup virtual interface and the backup cross-board aggregation port;
and the forwarding unit is used for forwarding the flooding traffic through the port in the valid state in the backup cross-board aggregation port and refusing to forward the flooding traffic through the port in the invalid state in the backup cross-board aggregation port according to the mapping relation between the backup virtual interface and the backup cross-board aggregation port when the flooding traffic needs to be forwarded through the virtual interface.
7. The apparatus of claim 6, further comprising:
a selecting unit, configured to select, when it is necessary to forward the flooding traffic through the virtual interface, a target port for forwarding the flooding traffic from aggregation member ports included in the backup cross-board aggregation port by using a hash algorithm;
the forwarding unit is specifically configured to forward the flooding traffic through the target port if the target port is a port in an active state; and if the target port is the port in the invalid state, refusing to forward the flooding flow.
8. The apparatus of claim 6, wherein the virtual interface comprises an access circuit AC port or a tunnel port.
9. The apparatus of claim 6, wherein the flooding traffic comprises flooding traffic received over other virtual interfaces that belong to a same virtual switch instance as the virtual interface; or, flooding traffic received through a stack port within a virtual switch instance to which the virtual interface belongs.
10. The apparatus of claim 6, wherein the flooding traffic comprises an unknown unicast message, an unknown multicast message, or a broadcast message.
CN201810644406.1A 2018-06-21 2018-06-21 Flow forwarding method and device Active CN108965089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810644406.1A CN108965089B (en) 2018-06-21 2018-06-21 Flow forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810644406.1A CN108965089B (en) 2018-06-21 2018-06-21 Flow forwarding method and device

Publications (2)

Publication Number Publication Date
CN108965089A CN108965089A (en) 2018-12-07
CN108965089B true CN108965089B (en) 2020-11-06

Family

ID=64492075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810644406.1A Active CN108965089B (en) 2018-06-21 2018-06-21 Flow forwarding method and device

Country Status (1)

Country Link
CN (1) CN108965089B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010343B (en) * 2019-12-18 2022-01-11 锐捷网络股份有限公司 Method, device, network equipment and storage medium for forwarding multicast message

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532863A (en) * 2013-10-21 2014-01-22 杭州华三通信技术有限公司 Method and device for realizing software stacking
CN103780480A (en) * 2012-10-17 2014-05-07 杭州华三通信技术有限公司 Message forwarding method and message forwarding equipment
CN103929461A (en) * 2013-08-12 2014-07-16 杭州华三通信技术有限公司 MAC address information synchronization method and device in stacking system
CN105897465A (en) * 2016-03-30 2016-08-24 杭州华三通信技术有限公司 Equipment configuration method and apparatus
CN107547348A (en) * 2017-07-25 2018-01-05 新华三技术有限公司 Prevent flow interruption method and apparatus
CN107612808A (en) * 2017-09-13 2018-01-19 新华三技术有限公司 Tunnel establishing method and device
CN108023974A (en) * 2017-11-30 2018-05-11 新华三技术有限公司 A kind of address aging method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9596099B2 (en) * 2015-05-06 2017-03-14 Cisco Technology, Inc. Scalable network virtualization with aggregate endpoints

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780480A (en) * 2012-10-17 2014-05-07 杭州华三通信技术有限公司 Message forwarding method and message forwarding equipment
CN103929461A (en) * 2013-08-12 2014-07-16 杭州华三通信技术有限公司 MAC address information synchronization method and device in stacking system
CN103532863A (en) * 2013-10-21 2014-01-22 杭州华三通信技术有限公司 Method and device for realizing software stacking
CN105897465A (en) * 2016-03-30 2016-08-24 杭州华三通信技术有限公司 Equipment configuration method and apparatus
CN107547348A (en) * 2017-07-25 2018-01-05 新华三技术有限公司 Prevent flow interruption method and apparatus
CN107612808A (en) * 2017-09-13 2018-01-19 新华三技术有限公司 Tunnel establishing method and device
CN108023974A (en) * 2017-11-30 2018-05-11 新华三技术有限公司 A kind of address aging method and apparatus

Also Published As

Publication number Publication date
CN108965089A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN107948076B (en) Method and device for forwarding message
US9807007B2 (en) Progressive MAC address learning
AU2012291753B2 (en) Packet broadcast mechanism in a split architecture network
EP2874359A1 (en) Extended ethernet fabric switches
US11665088B2 (en) Assisted replication in software defined network
CN110061915B (en) Method and system for virtual link aggregation across multiple fabric switches
CN103117935B (en) Be applied to multicast data forwarding method and the device of multi-home networking
CN102916897A (en) Method and equipment for realizing VRRP load sharing
WO2021082803A1 (en) Routing information transmission method and apparatus, and data center interconnection network
US10530873B1 (en) Techniques for optimizing EVPN-IRB for IPv6-enabled data centers with top-of-rack deployments
Alasadi et al. SSED: Servers under software-defined network architectures to eliminate discovery messages
CN110401726B (en) Method, device and equipment for processing address resolution protocol message and storage medium
CN108965089B (en) Flow forwarding method and device
WO2021042674A1 (en) Method for configuring port state and network device
WO2021042675A1 (en) Layer-2 private wire network system and configuration method
CN107294857B (en) Multicast distribution processing method, device and system
CN112242925B (en) Safety management method and equipment
CN103780503B (en) The implementation method and equipment of a kind of load balancing
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium
US11265248B2 (en) System log messages hostname address selection by multihomed hosts
US11706185B2 (en) Address resolution protocol (ARP) response to ARP requests
US20240146556A1 (en) Multicast traffic forwarding in overlay networks
WO2016087703A1 (en) Method and apparatus for routing data to cellular network
CN114257516A (en) Network accessibility verification method and device and computer storage medium
CN113114553A (en) Method and device for realizing butt joint of different networks under EVPN

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230615

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.