CN108696437A - A kind of flow forwarding method and device - Google Patents
A kind of flow forwarding method and device Download PDFInfo
- Publication number
- CN108696437A CN108696437A CN201810651826.2A CN201810651826A CN108696437A CN 108696437 A CN108696437 A CN 108696437A CN 201810651826 A CN201810651826 A CN 201810651826A CN 108696437 A CN108696437 A CN 108696437A
- Authority
- CN
- China
- Prior art keywords
- physical interface
- member port
- correspondence
- virtual member
- local
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
- H04L45/7453—Address table lookup; Address filtering using hashing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A kind of flow forwarding method of present invention offer and device, this method include:When there are target tunnel faces in the VTEP equipment, the first correspondence of the target tunnel face corresponding virtual member port and physical interface is obtained;According to first correspondence, will destination virtual member port uniform mapping corresponding with non-local physical interface to local physical interface, to obtain the second correspondence of the target tunnel face corresponding virtual member port and physical interface;When needing through the target tunnel face converting flow, the target outgoing interface of flow forwarding is determined according to second correspondence, and the flow is forwarded by the target outgoing interface.It may be implemented to carry out local first forwarding when flow forwarding using the embodiment of the present invention, improve flow forward efficiency.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of flow forwarding methods and device.
Background technology
VXLAN (Virtual eXtensible Local Area Network, expansible Virtual Local Area Network) is to be based on
IP (Internet Protocol, Internet protocol) network, using " MAC (Media Access Control, media interviews control
System) in UDP (User Datagram Protocol, User Datagram Protocol) " packing forms two-layer VPN (Virtual
Private Network, Virtual Private Network) technology.VXLAN can be based on existing service provider or enterprise IP network, be
The physical site of dispersion provides two layers of interconnection, and business isolation can be provided for different tenants.
In VXLAN networkings, the port in VTEP (VXLAN Tunnel End Point, VXLAN endpoint of a tunnel) equipment
May include AC (Attachment Circuit access circuit) mouths and Tunnel mouthfuls;Wherein, it is used to connect local network for AC mouthfuls
Network, Tunnel mouthfuls are used to connect core network, and AC mouthfuls and Tunnel mouthfuls can correspond to single port or aggregation port.
Since AC mouthfuls or Tunnel mouthfuls belong to virtual interface, virtual interface needs after being mapped with physical interface, Cai Nengyong
It is forwarded in flow.In the case where Tunnel mouthfuls of outgoing directions are equivalent route, one Tunnel mouthfuls can correspond to multiple physical interfaces,
In order to realize the Hash routing of equivalent route, can introducing ECMP, (Equal-Cost Multi-path Routing, equivalence are more
Routing) Group (group) concept.May include multiple virtual member ports, each virtual member end in one ECMP Group
Mouth is mapped on a physical interface.To which Tunnel mouthfuls only need to correspond to an ECMP Group, then pass through load-balancing algorithm
Some or certain virtual member ports are selected out of ECMP Group, pass through virtual member's port mapping to physical interface, VXLAN
Message can forward.
However practice is found, if VTEP equipment is stack equipment, and a certain Tunnel mouthfuls of formation road of equal value in VTEP equipment
By outgoing interface includes the physical interface on multiple and different stack member apparatus, then when stack member apparatus is needed by being somebody's turn to do
When the flow of Tunnel mouthfuls of forwardings, determining outgoing interface may be the physical interface on other stack member apparatus, Jin Erying
Ring flow forward efficiency.
Invention content
A kind of flow forwarding method of present invention offer and device are turned with solving VTEP equipment flows in existing VXLAN networkings
Send out the low problem of efficiency.
According to a first aspect of the embodiments of the present invention, a kind of flow forwarding method is provided, is applied to be stacked by least two
Member device stacks any stack member apparatus in the VTEP equipment to be formed, the method includes:
When there are target tunnel face, obtained in the VTEP equipment the corresponding virtual member port in the target tunnel face with
First correspondence of physical interface;Wherein, it is equivalent route that the target tunnel face, which is outgoing direction, and outgoing interface includes other
The tunnel face of physical interface on stack member apparatus;
It, will destination virtual member port uniform mapping corresponding with non-local physical interface according to first correspondence
To local physical interface, to obtain second corresponding pass of the corresponding virtual member port in the target tunnel face with physical interface
System;Wherein, the local physical interface is outgoing interface of the target tunnel face on any stack member apparatus;
When needing through the target tunnel face converting flow, flow forwarding is determined according to second correspondence
Target outgoing interface, and the flow is forwarded by the target outgoing interface.
According to a second aspect of the embodiments of the present invention, a kind of flow forwarding device is provided, is applied to be stacked by least two
Member device stacks any stack member apparatus in the VTEP equipment to be formed, and described device includes:
Acquiring unit, for working as, there are target tunnel faces in the VTEP equipment, and it is corresponding to obtain the target tunnel face
First correspondence of virtual member port and physical interface;Wherein, it is equivalent route that the target tunnel face, which is outgoing direction, and
Outgoing interface includes the tunnel face of the physical interface on other stack member apparatus;
Map unit, for according to first correspondence, will destination virtual corresponding with non-local physical interface at
Member's port uniform mapping is to local physical interface, to obtain the corresponding virtual member port in the target tunnel face and physical interface
The second correspondence;Wherein, the local physical interface is the target tunnel face on any stack member apparatus
Outgoing interface;
Retransmission unit, for when needing through the target tunnel face converting flow, according to second correspondence
It determines the target outgoing interface of flow forwarding, and the flow is forwarded by the target outgoing interface.
Using the embodiment of the present invention, by obtain the corresponding virtual member port in target tunnel face and physical interface first
Correspondence, and according to the first correspondence, it will destination virtual member port uniform mapping corresponding with non-local physical interface
To local physical interface, to obtain the second correspondence of target tunnel face corresponding virtual member port and physical interface, into
And when needing through target tunnel face converting flow, the target outgoing interface of flow forwarding is determined according to the second correspondence,
And the flow is forwarded by target outgoing interface, local first forwarding when carrying out flow forwarding is realized, flow forwarding is improved
Efficiency.
Description of the drawings
Fig. 1 is a kind of flow diagram of flow forwarding method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 3 is a kind of flow of flow forwarding method under concrete application scene shown in Fig. 2 provided in an embodiment of the present invention
Schematic diagram;
Fig. 4 is the stream of another flow forwarding method under concrete application scene shown in Fig. 2 provided in an embodiment of the present invention
Journey schematic diagram;
Fig. 5 is the stream of another flow forwarding method under concrete application scene shown in Fig. 2 provided in an embodiment of the present invention
Journey schematic diagram;
Fig. 6 is a kind of structural schematic diagram of flow forwarding device provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another flow forwarding device provided in an embodiment of the present invention.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, and make of the invention real
The above objects, features, and advantages for applying example can be more obvious and easy to understand, below in conjunction with the accompanying drawings to technical side in the embodiment of the present invention
Case is described in further detail.
Fig. 1 is referred to, is a kind of flow diagram of flow forwarding method provided in an embodiment of the present invention, wherein the stream
Amount retransmission method can be applied to stack any stack equipment in the VTEP equipment formed by least two stack member apparatus
(being described hereinafter as target device), as shown in Figure 1, the flow forwarding method may comprise steps of:
It should be noted that in embodiments of the present invention, if non-specified otherwise, mentioned tunnel face refers both to VXLAN tunnels
Road junction, the embodiment of the present invention are subsequently no longer repeated.
Step 101, when there are target tunnel face, obtained in VTEP equipment the corresponding virtual member port in target tunnel face with
First correspondence of physical interface.
In the embodiment of the present invention, for outgoing direction in VTEP equipment be equivalent route, and outgoing interface include target device it
The tunnel face of physical interface on outer other stack member apparatus (is referred to herein as target tunnel face, or is target
Tunnel mouthfuls), target device can obtain the corresponding virtual member port in the target tunnel face, and (i.e. target tunnel face is corresponding
The virtual member port that ECMP Group groups include) with the correspondence of physical interface (the referred to herein as first correspondings pass
System).
As an example it is assumed that VTEP equipment is stacked by slot1, slot2 and slot3 and is formed, and in VTEP equipment
Tunnel mouthfuls of corresponding ECMP Group include virtual member port:VP (Virtual Port, virtual port) 1~VP6,
In, VP1 and VP2 correspond to the Port1/1 and Port1/2 of slot1 respectively, VP3 and VP4 correspond to respectively slot2 Port2/1 and
Port2/2, VP5 and VP6 correspond to the Port3/1 and Port3/2 of slot3 respectively, then the first correspondence that each slot is got
Can be:
VP1—Port1/1
VP2—Port1/2
VP3—Port2/1
VP4—Port2/2
VP5—Port3/1
VP6—Port3/2
It should be noted that in embodiments of the present invention, the first correspondence that each slot is got is identical.
Step 102, according to first correspondence, will destination virtual member port corresponding with non-local physical interface it is equal
It is even to be mapped to local physical interface, to obtain second corresponding pass of the corresponding virtual member port in target tunnel face with physical interface
System.
In the embodiment of the present invention, it is contemplated that when non-local in the presence of mapping in the corresponding virtual member port in target tunnel face
When the virtual member port of physical interface, when the stack member apparatus of VTEP equipment is by the target tunnel face converting flow, really
Fixed outgoing interface may be non-local physical interface, and then influence flow forward efficiency, therefore, in order to improve flow forwarding effect
Rate, and realize local load balancing, the stack member apparatus of VTEP equipment corresponding with local physical interface can will invent
Member port is uniformly mapped into local physical interface.
Correspondingly, in embodiments of the present invention, after target device gets the first correspondence, can according to this first
Correspondence determines virtual member corresponding with non-local physical interface port (referred to herein as destination virtual member port).
Wherein, local physical interface is the outgoing interface of target tunnel face on the target device, similarly, non-local physical interface
For outgoing interface of the target tunnel face on other stack member apparatus except target device.
For the still above example, for slot1, local physical interface includes Port1/1 and Port1/2, non-local
Physical interface includes Port2/1, Port2/2, Port3/1 and Port3/2.
It, can be by destination virtual member after target device determines destination virtual member port in the embodiment of the present invention
Port uniform mapping is connect with obtaining the corresponding virtual member port in updated target tunnel face with physics to local physical interface
The correspondence (referred to herein as the second correspondence) of mouth.
For the still above example, for slot1, destination virtual member port includes VP3~VP6, and slot1 can be with
By VP3~VP6 uniform mappings to local physical interface (i.e. Port1/1 and Port1/2), for example, VP3 and VP4 are mapped to
VP5 and VP6 are mapped to Port1/2 by Port1/1, i.e., above-mentioned second relationship is:
VP1—Port1/1
VP2—Port1/2
VP3—Port1/1
VP4—Port1/1
VP5—Port1/2
VP6—Port1/2
Step 103, when needing through target tunnel face converting flow, according to the second correspondence determine flow forwarding
Target outgoing interface, and pass through target outgoing interface converting flow.
In the embodiment of the present invention, when target device receives the flow for needing to forward by target tunnel face, target is set
It is standby that the virtual member port for forwarding the flow can be determined according to the corresponding ECMP Group groups in the target tunnel face, and according to this
Above-mentioned second correspondence of virtual member's interface querying determines the outgoing interface (referred to herein as target outgoing interface) of flow forwarding,
In turn, target device can forward the flow by the target outgoing interface.
It should be noted that if non-specified otherwise, flow mentioned in this article refer both to need by query routing list item into
The flow of row forwarding, the embodiment of the present invention are subsequently no longer repeated.
As it can be seen that in method flow shown in Fig. 1, invented for what the corresponding ECMP Group in target tunnel face included
Member port, by will virtual member corresponding with non-local physical interface port uniform mapping to local physical interface, ensure that
It is local physical interface to carry out the outgoing interface determined when flow forwarding by target tunnel face, improves flow forward efficiency.
Further, in embodiments of the present invention, it is contemplated that in practical application, may not be deposited in above-mentioned first correspondence
In the correspondence of local physical interface and virtual member port, i.e., above-mentioned target tunnel face is not present out on the target device to be connect
When mouth, target device can need to forward by target tunnel face directly using the first correspondence as the second correspondence
When flow, directly determine that target outgoing interface, specific implementation do not repeat herein according to first correspondence.
Further, in embodiments of the present invention, when this atural object for being contained in above-mentioned first correspondence on target device
Reason interface is when breaking down, then target device can determine itself whether there is also be contained in the other of above-mentioned first correspondence
Local physical interface (the local physical interface not broken down).
If in the presence of, in the way of described in above-mentioned flow by above-mentioned first correspondence with non-local physical interface
Or the corresponding destination virtual member port of local physical interface to break down both maps to the local physics not broken down and connects
Mouthful, to obtain the second correspondence.
If being not present, the local physical interface to break down in above-mentioned first correspondence is deleted, and should by deleting
The first correspondence does not do superfluous herein as the second correspondence, specific implementation after the local physical interface to break down
It states.
In order to make those skilled in the art more fully understand technical solution provided in an embodiment of the present invention, with reference to specific
Application scenarios illustrate technical solution provided in an embodiment of the present invention.
Fig. 2 is referred to, is a kind of schematic diagram of concrete application scene provided in an embodiment of the present invention, as shown in Fig. 2, at this
In application scenarios, VTEP equipment 200 includes stack member apparatus 210, stack member apparatus 220 and stack member apparatus 230
(hereinafter referred to as slot210, slot220 and slot230) is respectively present on slot210, slot220 and slot230
With the AC mouths of Port211, Port221 and Port231 mapping:AC mouths 1, AC mouths 2 and AC mouths 3, the Tunnel in VTEP equipment
The outgoing direction of mouth 1 is equivalent route, and corresponding ECMP Group include virtual member port VP0~VP3, wherein VP0 pairs
The physical interface answered is Port212 (physical interface on slot210), and the corresponding physical interfaces of VP1 are aggregation port BAGG, this is poly-
The BAGG that heals up includes polymerization member port:Port213 (physical interface on slot210) and the Port222 (physics on slot220
Interface), the corresponding physical interfaces of VP2 are Port223 (physical interface on slot220), and the corresponding physical interfaces of VP3 are
Port232 (physical interface on slot230).
Based on application scenarios shown in Fig. 2, flow forwarding scheme implementation process provided in an embodiment of the present invention is as follows:
Embodiment one
By taking the process flow of slot210 as an example, i.e., target device is slot210, and the flow of slot210 turns in the embodiment
Sending out flow can be with as shown in figure 3, it may comprise steps of:
Step 301, slot210 obtain first corresponding pass of the 1 corresponding virtual member port of Tunnel mouths with physical interface
System.
In this embodiment, the first correspondence that slot210 is got is as follows:
VP0—Port212
VP1-BAGG (Port213, Port222)
VP2—Port223
VP3—Port232
It should be noted that in embodiments of the present invention, the corresponding physical interface in virtual member port can be single object
Manage interface, or the aggregation port that multiple physical interfaces are polymerized.
In addition, for any stack member apparatus, when the polymerization member port in aggregation port includes the local of the equipment
Physical interface, then the aggregation port belong to the local physical interface of the equipment.
Step 302, slot210 are by VP2 and VP3 uniform mappings to Port212 and aggregation port BAGG, to obtain Tunnel mouthfuls
Second correspondence of 1 corresponding virtual member port and physical interface.
In this embodiment, slot210 can be according to the quantity of destination virtual member port and local physical interface
Quantity determines the quantity of the destination virtual member port of each local physical interface mapping;Wherein, different local physical interface mappings
Destination virtual member port quantity difference be less than or equal to 1;
According to the quantity of the destination virtual member of each local physical interface mapping, destination virtual member port is mapped to this
Ground physical interface, to obtain the second correspondence.
Wherein, when the integral multiple for the quantity that the quantity of destination virtual member port is local physical interface, slot210 is true
The quantity of the destination virtual member port of fixed each local physical interface mapping is the quantity and sheet of destination virtual member port
The ratio of the quantity of ground physical interface.
When the quantity that the quantity of destination virtual member port is local physical interface is not integral multiple, slot210 can be with
Destination virtual member port is split as two parts:The quantity (hereinafter referred to the first quantity) of first part is that local physics connects
The integral multiple of the quantity of mouth, the quantity (hereinafter referred to the second quantity) of second part are the quantity of insufficient local physical interface
One times of quantity;For first part, slot210 can determine first part's destination virtual of each local physical interface mapping at
The quantity of member port is the ratio of the first quantity and the quantity of local physical interface, and for second part, slot210 can be from this
Select the local physical interface of the first quantity in ground physical interface, second of the local physical interface mapping of first quantity
The quantity of partial objectives for virtual member port is 1, the second part destination virtual member port of remaining local physical interface mapping
Quantity is 0.
Specifically, in this embodiment, for slot210, destination virtual member port includes VP2 and VP3, i.e. mesh
The quantity for marking virtual member port is 2;Local physical interface includes Port212 and aggregation port BAGG, i.e., local physical interface
Quantity is 2, then slot210 can determine that the quantity of the destination virtual member port of each local physical interface mapping is 1, in turn,
Slot210 can be according to the quantity of the destination virtual member port of each local physical interface mapping, by destination virtual member port
It is mapped to local physical interface, for example, VP2 is mapped to Port212, and VP3 is mapped into aggregation port BAGG;Alternatively, by VP2
Aggregation port BAGG is mapped to, and VP3 is mapped into Port212, to obtain the second correspondence.
Wherein, VP2 is mapped into Port212, and for VP3 is mapped to aggregation port BAGG, slot210 obtain
Two correspondences are as follows:
VP0—Port212
VP1-BAGG (Port213, Port222)
VP2—Port212
VP3-BAGG (Port213, Port222)
Step 303, when slot210 is needed through Tunnel 1 converting flows of mouth, according to above-mentioned second correspondence determine
The target outgoing interface of flow forwarding, and the flow is forwarded by target outgoing interface.
In this embodiment, when slot210 receives flow from AC mouths 1, inquiry local routing list item, which determines, to be needed to pass through
When Tunnel 1 converting flows of mouth, slot210 can include from 1 corresponding ECMP Group of Tunnel mouths using hash algorithm
Virtual member port (i.e. VP0~VP3) in select a virtual member port (being assumed to be VP1), and according to VP1 inquire it is above-mentioned
Second relationship, determines the target outgoing interface (i.e. aggregation port BAGG) of flow forwarding, and forwards the flow by aggregation port BAGG.
It should be noted that in embodiments of the present invention, when target outgoing interface is aggregation port, target device is needed from poly-
Heal up including polymerization member port in select outgoing interface of the local physical interface as final converting flow, be embodied in
This is not repeated.
In addition, in this embodiment, when the local physical interface Port212 failures on slot210, due to slot210
On there is also the other local physical interfaces for being contained in above-mentioned first correspondence:Aggregation port BAGG, therefore, slot210 can be with
In the way of described in above-mentioned flow by above-mentioned first correspondence with non-local physical interface or the local broken down
The corresponding destination virtual member port of physical interface both maps to the local physical interface not broken down, obtains following second pair
It should be related to:
VP0-BAGG (Port213, Port222)
VP1-BAGG (Port213, Port222)
VP2-BAGG (Port213, Port222)
VP3-BAGG (Port213, Port222)
Wherein, when slot210 is needed through Tunnel 1 converting flows of mouth, flow is determined according to second correspondence
The target outgoing interface of forwarding, and the flow is forwarded by target outgoing interface.
Embodiment two
By taking the process flow of slot220 as an example, i.e., target device is slot220, and the flow of slot220 turns in the embodiment
Sending out flow can be with as shown in figure 4, it may comprise steps of:
Step 401, slot220 obtain first corresponding pass of the 1 corresponding virtual member port of Tunnel mouths with physical interface
System.
Wherein, the first correspondence that slot220 is got and the first corresponding pass that slot210 is got in embodiment one
It is identical.
Step 402, slot220 are by VP0 and VP3 uniform mappings to aggregation port BAGG and Port223, to obtain Tunnel mouthfuls
Second correspondence of 1 corresponding virtual member port and physical interface.
In this embodiment, slot220 can select the destination virtual member end of a mapping from local physical interface
The local physical interface of the minimum number of mouth selects non-mapped to a local physical interface from destination virtual member port
Destination virtual member port, and selected destination virtual member port is mapped into selected local physical interface;
Slot220 can repeat the selection and map operation, until target complete virtual member port is mapped to local physics and connects
Mouthful.
Specifically, in this embodiment, when initial, due to the local physical interface of slot220:Aggregation port BAGG and
The non-mapping objects virtual member ports Port223, therefore, slot220 can select one from aggregation port BAGG and Port223
A local physical interface (can randomly choose or according to other policy selections);Similarly, due to destination virtual member port:VP0
With non-mapped to the local physical interfaces of VP3, therefore, slot220 can be selected from VP0 and VP3 a destination virtual at
Member port (can randomly choose or according to other policy selections).
Assuming that the local physical interface that slot220 is selected is aggregation port BAGG, destination virtual member port is VP0, then
VP0 can be mapped to aggregation port BAGG by slot220.
Further, due to Port223 non-mapping objects virtual members port (quantity 0), aggregation port BAGG has mapped
The quantity of the destination virtual member port of destination virtual member port VP0 (quantity 1), i.e. Port223 mapping is reflected less than BAGG
The quantity for the destination virtual member port penetrated, therefore, slot220 can select local physical interface Port223;Similarly, due to
Non-mapped to the local physical interfaces of destination virtual member port VP3, therefore, slot220 can be with selection target virtual member ends
Mouth VP3, and VP3 is mapped into local physical interface Port223.
Since target complete virtual member port is mapped to local physical interface, slot220 terminate selection and
Map operation.Wherein, the second correspondence that slot2 is obtained is as follows:
VP0-BAGG (Port213, Port222)
VP1-BAGG (Port213, Port222)
VP2—Port223
VP3—Port223
Step 403, when slot220 is needed through Tunnel 1 converting flows of mouth, according to above-mentioned second correspondence determine
The target outgoing interface of flow forwarding, and the flow is forwarded by target outgoing interface.
In this embodiment, when slot220 receives flow from AC mouths 2, inquiry local routing list item, which determines, to be needed to pass through
When Tunnel 1 converting flows of mouth, slot220 can include from 1 corresponding ECMP Group of Tunnel mouths using hash algorithm
Virtual member port (i.e. VP0~VP3) in select a virtual member port (being assumed to be VP3), and according to VP3 inquire it is above-mentioned
Second relationship, determines the target outgoing interface (i.e. Port223) of flow forwarding, and forwards the flow by Port223.
Embodiment three
By taking the process flow of slot230 as an example, i.e., target device is slot230, and the flow of slot230 turns in the embodiment
Sending out flow can be with as shown in figure 5, it may comprise steps of:
Step 501, slot230 obtain first corresponding pass of the 1 corresponding virtual member port of Tunnel mouths with physical interface
System.
Wherein, the first correspondence that slot230 is got and the first corresponding pass that slot210 is got in embodiment one
It is identical.
Step 502, slot230 are corresponding virtual to obtain Tunnel mouths 1 by VP0~VP2 uniform mappings to Port232
Second correspondence of member port and physical interface.
In this embodiment, slot3 can be realized according to following formula by destination virtual member port uniform mapping to originally
Ground physical interface:
VPID%LocalPortCount=LocalPortID
Wherein, VPID is the number for the virtual member port that 1 corresponding ECMP Group of Tunnel mouths include,
LocalPortCount is the quantity of the local physical interface of slot230, and LocalPortID is that the local physics of slot230 connects
The number of mouth, % is complementation.
Specifically, in this embodiment, slot230 can be that local physical interface is numbered, for example, slot230 can
To be 0 by local physical interface Port232 numbers;The quantity of the upper local physical interfaces of slot230 is 1 (i.e.
LocalPortCount is that 1), slot230 realizes destination virtual member port reflecting to local physical interface according to above-mentioned formula
It penetrates:
For VP0 (VPID 0), 0%1=0;
For VP1 (VPID 1), 1%1=0;
For VP2 (VPID 2), 2%1=0.
That is VP0~VP3 can be mapped to Port232 by slot230, and the second correspondence that slot230 is obtained is as follows:
VP0—Port232
VP1—Port232
VP2—Port232
VP3—Port232
Step 503, when solt230 is needed through Tunnel 1 converting flows of mouth, according to above-mentioned second correspondence determine
The target outgoing interface of flow forwarding, and the flow is forwarded by target outgoing interface.
In this embodiment, when slot230 receives flow from AC mouths 3, inquiry local routing list item, which determines, to be needed to pass through
When Tunnel 1 converting flows of mouth, slot230 can include from 1 corresponding ECMP Group of Tunnel mouths using hash algorithm
Virtual member port (i.e. VP0~VP3) in select a virtual member port (being assumed to be VP2), and according to VP2 inquire it is above-mentioned
Second relationship, determines the target outgoing interface (i.e. Port232) of flow forwarding, and forwards the flow by Port232.
It should be noted that in this embodiment, when the local physical interface Port232 failures on slot230, due to
There is no the other local physical interfaces for being contained in above-mentioned first correspondence on slot230, and therefore, slot230 is by above-mentioned the
The local physical interface (i.e. Port232) to break down in one correspondence is deleted, and following second correspondence is obtained:
VP0—Port212
VP1-BAGG (Port213, Port222)
VP2—Port223
Wherein, when slot230 is needed through Tunnel 1 converting flows of mouth, flow is determined according to second correspondence
The target outgoing interface of forwarding, and the flow is forwarded by target outgoing interface.
By above description as can be seen that in technical solution provided in an embodiment of the present invention, by obtaining target tunnel
First correspondence of mouth corresponding virtual member port and physical interface, and according to the first correspondence, it will be with non-local object
The corresponding destination virtual member port uniform mapping of reason interface is corresponding virtual to obtain target tunnel face to local physical interface
Second correspondence of member port and physical interface, in turn, when needing through target tunnel face converting flow, according to second
Correspondence determines the target outgoing interface of flow forwarding, and forwards the flow by target outgoing interface, realizes carry out flow
Local first forwarding when forwarding, improves flow forward efficiency.
Fig. 6 is referred to, is a kind of structural schematic diagram of flow forwarding device provided in an embodiment of the present invention, wherein the dress
The target device that can be applied in above method embodiment is set, as shown in fig. 6, the device may include:
Acquiring unit 610, for working as there are target tunnel face in VTEP equipment, acquisition target tunnel face is corresponding to be invented
First correspondence of member port and physical interface;Wherein, it is equivalent route that target tunnel face, which is outgoing direction, and outgoing interface includes
The tunnel face of physical interface on other stack member apparatus;
Map unit 620 is used for according to the first correspondence, will destination virtual member corresponding with non-local physical interface
Port uniform mapping is to local physical interface, to obtain the second of the corresponding virtual member port in target tunnel face and physical interface
Correspondence;Wherein, local physical interface is the outgoing interface on the stack member apparatus in office of target tunnel face;
Retransmission unit 630, for when needing through target tunnel face converting flow, being determined and being flowed according to the second correspondence
The target outgoing interface of forwarding is measured, and passes through target outgoing interface converting flow.
In an alternative embodiment, map unit 620 are specifically used for the quantity according to destination virtual member port and local
The quantity of physical interface determines the quantity of the destination virtual member port of each local physical interface mapping;Wherein, this different atural object
The difference for managing the quantity of the destination virtual member port of interface mappings is less than or equal to 1;According to the mesh of each local physical interface mapping
The quantity for marking virtual member port, is mapped to local physical interface, to obtain the second correspondence by destination virtual member port.
In an alternative embodiment, map unit 620 are specifically used for selecting the target of a mapping from local physical interface
The local physical interface of the minimum number of virtual member port, and from destination virtual member port select one it is non-mapped to
The destination virtual member port of local physical interface;Selected destination virtual member port is mapped into selected atural object
Manage interface;Above-mentioned selection and map operation are repeated, until target complete virtual member port is mapped to local physical interface
In an alternative embodiment, map unit 620 are specifically used for according to following formula that destination virtual member port is uniform
It is mapped to local physical interface:
VPID%LocalPortCount=LocalPortID
Wherein, VPID is the number for the virtual member port that the corresponding multirouting group of equal value in target tunnel face includes,
LocalPortCount is the quantity of local physical interface, and LocalPortID is the number of local physical interface, and % transports for remainder
It calculates.
Such as scheme for the structural schematic diagram of another flow forwarding device provided in an embodiment of the present invention please also refer to Fig. 7
Shown in 7, on the basis of flow forwarding device shown in Fig. 6, flow forwarding device shown in Fig. 6 further includes:
Determination unit 640 is specifically used for, according to the first correspondence, determining that this equipment whether there is local physical interface;
Map unit 620, if specifically in the presence of, will be corresponding with non-local physical interface according to the first correspondence
Destination virtual member port uniform mapping to local physical interface;
Map unit 620, if being additionally operable to be not present, using the first correspondence as the second correspondence.
The function of each unit and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, by obtaining the first of the corresponding virtual member port in target tunnel face and physical interface
Correspondence, and according to the first correspondence, it will destination virtual member port uniform mapping corresponding with non-local physical interface
To local physical interface, to obtain the second correspondence of target tunnel face corresponding virtual member port and physical interface, into
And when needing through target tunnel face converting flow, the target outgoing interface of flow forwarding is determined according to the second correspondence,
And the flow is forwarded by target outgoing interface, local first forwarding when carrying out flow forwarding is realized, flow forwarding is improved
Efficiency.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of flow forwarding method, applied to stacking the expansible virtual LAN formed by least two stack member apparatus
Any stack member apparatus in network endpoint of a tunnel VTEP equipment, which is characterized in that the method includes:
When there are target tunnel faces in the VTEP equipment, the corresponding virtual member port in the target tunnel face and physics are obtained
First correspondence of interface;Wherein, it is equivalent route that the target tunnel face, which is outgoing direction, and outgoing interface includes other stackings
The tunnel face of physical interface on member device;
According to first correspondence, will destination virtual member port uniform mapping corresponding with non-local physical interface to this
Ground physical interface, to obtain the second correspondence of the target tunnel face corresponding virtual member port and physical interface;Its
In, the local physical interface is outgoing interface of the target tunnel face on any stack member apparatus;
When needing through the target tunnel face converting flow, the target of flow forwarding is determined according to second correspondence
Outgoing interface, and the flow is forwarded by the target outgoing interface.
2. according to the method described in claim 1, it is characterized in that, described according to first correspondence, will with it is non-local
The corresponding destination virtual member port uniform mapping of physical interface is corresponded to local physical interface with obtaining the target tunnel face
Virtual member port and physical interface the second correspondence, including:
According to the quantity of the destination virtual member port and the quantity of the local physical interface, determine that each local physics connects
The quantity of the destination virtual member port of mouth mapping;Wherein, the destination virtual member port that different local physical interfaces map
The difference of quantity is less than or equal to 1;
According to the quantity of the destination virtual member port of each local physical interface mapping, the destination virtual member port is mapped
To local physical interface, to obtain second correspondence.
3. according to the method described in claim 1, it is characterized in that, described according to first correspondence, will with it is non-local
The corresponding destination virtual member port uniform mapping of physical interface is corresponded to local physical interface with obtaining the target tunnel face
Virtual member port and physical interface the second correspondence, including:
The local physics of the minimum number of the destination virtual member port of one mapping of selection connects from the local physical interface
Mouthful, and select from the destination virtual member port destination virtual member of a local physical interface
Port;
Selected destination virtual member port is mapped into selected local physical interface;
Above-mentioned selection and map operation are repeated, until all the destination virtual member port is mapped to the local physics
Interface.
4. according to the method described in claim 1, it is characterized in that, described according to first correspondence, will with it is non-local
The corresponding destination virtual member port uniform mapping of physical interface is corresponded to local physical interface with obtaining the target tunnel face
Virtual member port and physical interface the second correspondence, including:
It is realized the destination virtual member port uniform mapping to local physical interface according to following formula:
VPID%LocalPortCount=LocalPortID
Wherein, VPID is the number for the virtual member port that the corresponding multirouting group of equal value in the target tunnel face includes, institute
The quantity that LocalPortCount is the local physical interface is stated, the LocalPortID is the local physical interface
Number, % is complementation.
5. according to claim 1-4 any one of them methods, which is characterized in that it is described according to first correspondence, it will
Before destination virtual member port uniform mapping corresponding with non-local physical interface to local physical interface, further include:
According to first correspondence, determine this equipment with the presence or absence of the local physical interface;
If in the presence of, it is determined that execution is described according to first correspondence, will target void corresponding with non-local physical interface
The step of quasi- member port uniform mapping is to local physical interface;
Otherwise, using first correspondence as the second correspondence.
6. a kind of flow forwarding device, applied to stacking the expansible virtual LAN formed by least two stack member apparatus
Any stack member apparatus in network endpoint of a tunnel VTEP equipment, which is characterized in that described device includes:
Acquiring unit, for working as, there are target tunnel faces in the VTEP equipment, and it is corresponding virtual to obtain the target tunnel face
First correspondence of member port and physical interface;Wherein, it is equivalent route that the target tunnel face, which is outgoing direction, and goes out to connect
Mouth includes the tunnel face of the physical interface on other stack member apparatus;
Map unit is used for according to first correspondence, will destination virtual member end corresponding with non-local physical interface
Mouthful uniform mapping is to local physical interface, to obtain the of the corresponding virtual member port in the target tunnel face and physical interface
Two correspondences;Wherein, the local physical interface is the target tunnel face going out on any stack member apparatus
Interface;
Retransmission unit, for when needing through the target tunnel face converting flow, being determined according to second correspondence
The target outgoing interface of flow forwarding, and the flow is forwarded by the target outgoing interface.
7. device according to claim 6, which is characterized in that
The map unit is specifically used for according to the quantity of the destination virtual member port and the local physical interface
Quantity determines the quantity of the destination virtual member port of each local physical interface mapping;Wherein, different local physical interface mappings
Destination virtual member port quantity difference be less than or equal to 1;According to the destination virtual member of each local physical interface mapping
The destination virtual member port is mapped to local physical interface by the quantity of port, to obtain second correspondence.
8. device according to claim 6, which is characterized in that
The map unit is specifically used for the destination virtual member port of one mapping of selection from the local physical interface
The local physical interface of minimum number, and this atural object is selected from the destination virtual member port
Manage the destination virtual member port of interface;Selected destination virtual member port is mapped to selected local physics to connect
Mouthful;Above-mentioned selection and map operation are repeated, until all the destination virtual member port is mapped to the local physics
Interface.
9. device according to claim 6, which is characterized in that
The map unit, be specifically used for according to following formula by the destination virtual member port uniform mapping to local physics
Interface:
VPID%LocalPortCount=LocalPortID
Wherein, VPID is the number for the virtual member port that the corresponding multirouting group of equal value in the target tunnel face includes, institute
The quantity that LocalPortCount is the local physical interface is stated, the LocalPortID is the local physical interface
Number, % is complementation.
10. according to claim 6-9 any one of them devices, which is characterized in that described device further includes:
Determination unit is specifically used for, according to first correspondence, determining this equipment with the presence or absence of the local physical interface;
The map unit, if specifically in the presence of, will be corresponding with non-local physical interface according to first correspondence
Destination virtual member port uniform mapping to local physical interface;
The map unit, if being additionally operable to be not present, using first correspondence as the second correspondence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810651826.2A CN108696437B (en) | 2018-06-22 | 2018-06-22 | Flow forwarding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810651826.2A CN108696437B (en) | 2018-06-22 | 2018-06-22 | Flow forwarding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108696437A true CN108696437A (en) | 2018-10-23 |
CN108696437B CN108696437B (en) | 2021-05-28 |
Family
ID=63849954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810651826.2A Active CN108696437B (en) | 2018-06-22 | 2018-06-22 | Flow forwarding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108696437B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116248595A (en) * | 2023-03-15 | 2023-06-09 | 安超云软件有限公司 | Method, device, equipment and medium for communication between cloud intranet and physical network |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102136931A (en) * | 2010-09-20 | 2011-07-27 | 华为技术有限公司 | Method for configuring virtual port network strategies, network management center and related equipment |
CN103428301A (en) * | 2013-08-05 | 2013-12-04 | 北京神州绿盟信息安全科技股份有限公司 | Interface layer and method for processing data packet |
CN103561134A (en) * | 2013-11-19 | 2014-02-05 | 迈普通信技术股份有限公司 | Message transmitting method and system |
CN104601427A (en) * | 2013-10-31 | 2015-05-06 | 杭州华三通信技术有限公司 | Message forwarding method and device in data center network |
US20150163072A1 (en) * | 2013-12-05 | 2015-06-11 | Broadcom Corporation | Virtual Port Extender |
CN105721566A (en) * | 2016-01-29 | 2016-06-29 | 华为技术有限公司 | Method for redirecting port, server and system |
CN106200448A (en) * | 2015-05-09 | 2016-12-07 | 精航伟泰测控仪器(北京)有限公司 | A kind of industry interface implements long-range mapped system |
US20170257260A1 (en) * | 2016-03-07 | 2017-09-07 | Cisco Technology, Inc. | BFD OVER VxLAN ON vPC UPLINKS |
CN107547344A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | VXLAN message processing methods and device |
-
2018
- 2018-06-22 CN CN201810651826.2A patent/CN108696437B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102136931A (en) * | 2010-09-20 | 2011-07-27 | 华为技术有限公司 | Method for configuring virtual port network strategies, network management center and related equipment |
CN103428301A (en) * | 2013-08-05 | 2013-12-04 | 北京神州绿盟信息安全科技股份有限公司 | Interface layer and method for processing data packet |
CN104601427A (en) * | 2013-10-31 | 2015-05-06 | 杭州华三通信技术有限公司 | Message forwarding method and device in data center network |
CN103561134A (en) * | 2013-11-19 | 2014-02-05 | 迈普通信技术股份有限公司 | Message transmitting method and system |
US20150163072A1 (en) * | 2013-12-05 | 2015-06-11 | Broadcom Corporation | Virtual Port Extender |
CN106200448A (en) * | 2015-05-09 | 2016-12-07 | 精航伟泰测控仪器(北京)有限公司 | A kind of industry interface implements long-range mapped system |
CN105721566A (en) * | 2016-01-29 | 2016-06-29 | 华为技术有限公司 | Method for redirecting port, server and system |
US20170257260A1 (en) * | 2016-03-07 | 2017-09-07 | Cisco Technology, Inc. | BFD OVER VxLAN ON vPC UPLINKS |
CN107547344A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | VXLAN message processing methods and device |
Non-Patent Citations (3)
Title |
---|
CHANG-GYU LIM ; SOO-MYUNG PAHK ; TAE-IL KIM ; JONG-HYUN LEE: "Design and implementation of hardware accelerated VTEP in datacenter networks", 《2015 17TH INTERNATIONAL CONFERENCE ON ADVANCED COMMUNICATION TECHNOLOGY (ICACT)》 * |
JAGATH WEERASINGHE ; FRANCOIS ABEL: "On the Cost of Tunnel Endpoint Processing in Overlay Virtual Networks", 《2014 IEEE/ACM 7TH INTERNATIONAL CONFERENCE ON UTILITY AND CLOUD COMPUTING》 * |
钟耿辉;唐加山: "基于VXLAN的EVPN技术研究与实现", 《计算机技术与发展》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116248595A (en) * | 2023-03-15 | 2023-06-09 | 安超云软件有限公司 | Method, device, equipment and medium for communication between cloud intranet and physical network |
CN116248595B (en) * | 2023-03-15 | 2024-02-02 | 安超云软件有限公司 | Method, device, equipment and medium for communication between cloud intranet and physical network |
Also Published As
Publication number | Publication date |
---|---|
CN108696437B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9602415B2 (en) | Flow based network service insertion | |
CN104937885B (en) | Global VLAN for fabric switch | |
CN103997414B (en) | Generate method and the network control unit of configuration information | |
CN106165358B (en) | Dynamic routing for router logic | |
CN103947160B (en) | Method to carry FCOE frames over a TRILL based network | |
CN105191215B (en) | The method and apparatus that data plane for bi-directional service chain learns | |
CN104348724B (en) | A kind of data forwarding method and device for supporting multi-tenant | |
CN104168209B (en) | Multiple access SDN message forwarding method and controller | |
CN106453025A (en) | Tunnel creating method and device | |
US20120131216A1 (en) | Active-Active Multi-Homing Support for Overlay Transport Protocol | |
CN108809847A (en) | Realize the method, apparatus and network system of load balancing | |
CN108600415A (en) | A kind of virtual network accesses method, system and the SDN controllers of outer net | |
EP2850517A1 (en) | System and method for routing traffic between distinct infiniband subnets based on source routing | |
CN104081692B (en) | For the network equipment of FCoE fusion structures, method and apparatus | |
CN104618243B (en) | Method for routing, apparatus and system, Scheduling of Gateway method and device | |
US20200244486A1 (en) | Dynamic customer vlan identifiers in a telecommunications network | |
CN106416197A (en) | Method and system for load balancing anycast data traffic | |
US20160142295A1 (en) | Stateful services on stateless clustered edge | |
CN104350711B (en) | Method, system and device for routeing DIAMETER message at DIAMETER signalling route devices | |
US20160134513A1 (en) | Concerted Multi-Destination Forwarding in a Joint TRILL Fabric and VXLAN/IP Fabric Data Center | |
CN109547354A (en) | Load-balancing method, device, system, core layer switch and storage medium | |
CN107046506A (en) | A kind of message processing method, flow classifier and business function example | |
CN104363170A (en) | Data flow forwarding method and device in software defined network (SDN) | |
US11463276B2 (en) | System and method for providing a multi-dimensional ring-lattice network topology | |
CN109218158A (en) | Data transmission method, control method and controller, gateway, intermediate NE and system based on VxLAN |
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: 20230627 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. |