CN109995654A - A kind of method and device based on tunnel data - Google Patents

A kind of method and device based on tunnel data Download PDF

Info

Publication number
CN109995654A
CN109995654A CN201711470852.7A CN201711470852A CN109995654A CN 109995654 A CN109995654 A CN 109995654A CN 201711470852 A CN201711470852 A CN 201711470852A CN 109995654 A CN109995654 A CN 109995654A
Authority
CN
China
Prior art keywords
tunnel
message
collar extension
loopback
outer collar
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
Application number
CN201711470852.7A
Other languages
Chinese (zh)
Other versions
CN109995654B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201711470852.7A priority Critical patent/CN109995654B/en
Priority to PCT/CN2018/125039 priority patent/WO2019129236A1/en
Publication of CN109995654A publication Critical patent/CN109995654A/en
Application granted granted Critical
Publication of CN109995654B publication Critical patent/CN109995654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Landscapes

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

Abstract

Disclosed herein is a kind of method and devices based on tunnel data.The method based on tunnel data includes: to carry out tunnel encapsulation to message in stacking network, sets loopback mouth for the outlet in tunnel;In basic network, loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, equivalent multipath routing protocols ECMP routing table is searched according to the purpose IP address of the message of process of passing through tunnel encapsulation and obtains multiple next-hop ip address, and the message that the process of passing through tunnel encapsulates is forwarded by the corresponding multiple forwarding mouths of the multiple next-hop ip address.The technical solution of this paper is capable of providing the tunnel transmission scheme under a kind of equivalent multipath routing protocols scene, is realizing the tunnel resource quantity reduced in stacking network equipment bottom chip while multiport forwarding.

Description

A kind of method and device based on tunnel data
Technical field
The present invention relates to field of communication technology more particularly to a kind of method and devices based on tunnel data.
Background technique
Tunneling technique (Tunneling) is a kind of to transmit data between networks by using the infrastructure of internet Mode, it then follows Institute of Electrical and Electric Engineers (Institute of Electrical and Electronics Engineers, abbreviation IEEE) etc. organizational standards tunnel protocol realize.The data (or load) transmitted using tunneling technique can To be the data frame or packet of different agreement.Tunnel protocol Reseals the data frame of other agreements or packet, then passes through tunnel It sends.New data frame head provides routing iinformation, will pass through the packed load data of internet transmitting.Typical tunnel skill Art includes: multiprotocol label switching (Multi-Protocol Label Switching, abbreviation MPLS) MPLS, virtual expansible Local area network (Virtual Extensible LAN, abbreviation VXLAN), multi-link transparent interconnection (Transparent Interconnection of Lots of Links, abbreviation TRILL) etc..
Basic network (Underlay network), is the network of data center network basis forwarding plane, is physical basis layer, As long as routing reachable between data center network any two points, it comprises all existing conventional network techniques.Stacking network (Overlay network) is then the virtualization frame being superimposed in a kind of network architecture, is constructed by logical node and logical links, It has independent control plane and forwarding plane.Overlay network implementations is on the Underlay network to application layer Carrying, and realize and separated with the business of other networks, it realizes physical network and extends to the trial of cloud and virtualization net, make Cloud resource pond ability can get rid of the heavy limitation of physical network, realize the fusion of cloud net.
Equivalent multipath routing protocols (Equal-Cost Multi-path Routing, abbreviation ECMP) are a kind of routings Technology.In the network environment for reaching same destination address there are a plurality of different links, if using traditional route technology, hair Data packet toward the destination address can only utilize a link therein, and other links are in Status of Backups or invalid state, and And mutual switching needs certain time under dynamic routing environment, and ECMP can be under the network environment simultaneously using a plurality of Link not only increases transmission bandwidth, and the data transmission of failed link can without packet loss be backed up without time delay.ECMP is maximum The characteristics of be to realize in equivalent situation, the purpose of load balance and link backup, static routing and it is open most It is substantially all in short path preferential (Open Shortest Path First, abbreviation OSPF) and supports ECMP function.
With increasing for service deployment, the number in the tunnel that data center needs to establish is more and more.If Underlay Network application ECMP technology, hardware resource needed for establishing tunnel in Overlay network also can be more.As shown in Figure 1, in ECMP When creating the tunnel VXLAN in scene, need to establish tunnel respectively according to the corresponding outlet of each next-hop in ECMP group, but It is that the number in chip bottom tunnel is limited, so limiting the tunnel quantity of Overlay network support under ECMP scene.
Summary of the invention
The embodiment of the present invention the technical problem to be solved is that providing a kind of method and device based on tunnel data, The tunnel transmission scheme being capable of providing under a kind of equivalent multipath routing protocols scene, is reduced while realizing multiport forwarding Tunnel resource quantity in stacking network equipment bottom chip.
The embodiment of the present invention provides a kind of method based on tunnel data, comprising:
Tunnel encapsulation is carried out to message in stacking network, sets loopback mouth for the outlet in tunnel;
In basic network, loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, according to the warp The purpose IP address for crossing the message of tunnel encapsulation searches equivalent multipath routing protocols ECMP routing table and obtains multiple next-hop IPs Address transfers the message that the process of passing through tunnel encapsulates by the corresponding multiple forwarding mouths of the multiple next-hop ip address It goes.
The embodiment of the present invention provides a kind of device based on tunnel data, comprising:
Tunnel encapsulation module sets ring for the outlet in tunnel for carrying out tunnel encapsulation to message in stacking network It answers back;
Loopback module, for carrying out ring to the message that the process of passing through tunnel encapsulates in the loopback mouth in basic network It returns, the message that the process of passing through tunnel encapsulates is sent to Routing Forward Module;
Routing Forward Module is used in basic network, according to the purpose IP address of the message of process of passing through tunnel encapsulation It searches equivalent multipath routing protocols ECMP routing table and obtains multiple next-hop ip address, the message that the process of passing through tunnel is encapsulated It is forwarded by the corresponding multiple forwarding mouths of the multiple next-hop ip address.
Compared with the relevant technologies, a kind of method and device based on tunnel data provided in an embodiment of the present invention, Tunnel encapsulation is carried out to message in stacking network, sets loopback mouth for the outlet in tunnel;In basic network, in the loopback Mouth carries out loopback to the message of process of passing through tunnel encapsulation, under the equivalent multipath routing protocols ECMP routing table acquisition of lookup is multiple One hop IP address, the message that the process of passing through tunnel is encapsulated are turned by the corresponding multiple forwarding mouths of the multiple next-hop ip address It sends out.The technical solution of the embodiment of the present invention can realize multiport under the scene of Underlay network application ECMP technology The tunnel resource quantity in stacking network equipment bottom chip is reduced while forwarding.
Detailed description of the invention
Fig. 1 is the schematic diagram for creating the tunnel VXLAN in background technique under ECMP scene;
Fig. 2 is a kind of method flow diagram based on tunnel data of the embodiment of the present invention 1;
Fig. 3 is a kind of schematic device based on tunnel data of the embodiment of the present invention 2;
Fig. 4 is a kind of method flow diagram (inner ring mode) based on tunnel data of example 1 of the present invention;
Fig. 5 is a kind of method flow diagram (outer ring mode) based on tunnel data of example 2 of the present invention;
Fig. 6 is the schematic diagram for creating tunnel in example 3 of the present invention in stacking network.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Embodiment 1
As shown in Fig. 2, the embodiment of the invention provides a kind of methods based on tunnel data, comprising:
Step S210 carries out tunnel encapsulation to message in stacking network, sets loopback mouth for the outlet in tunnel;
Step S220 carries out loopback, root to the message that the process of passing through tunnel encapsulates in the loopback mouth in basic network It is multiple that equivalent multipath routing protocols ECMP routing table acquisition is searched according to the purpose IP address of the message of process of passing through tunnel encapsulation Next-hop ip address, the message that the process of passing through tunnel is encapsulated pass through the corresponding multiple forwarding mouths of the multiple next-hop ip address It forwards;
In one embodiment, before setting loopback mouth for the outlet in tunnel, the method also includes:
Collar extension in establishing, and MAC address offset is configured for the interior collar extension;The MAC Address is inclined The source MAC and target MAC (Media Access Control) address of message of the shifting amount for sending interior collar extension be not identical;
It is described to set loopback mouth for the outlet in tunnel, comprising: to set interior collar extension for the outlet in tunnel;
Loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, comprising:
The message that the process of passing through tunnel encapsulates is sent in the interior collar extension, and is received back again from the interior collar extension Come;
In one embodiment, before setting loopback mouth for the outlet in tunnel, the method also includes:
The first outer collar extension and the second outer collar extension are established, the described first outer collar extension and the described second outer collar extension is direct-connected;By institute It states the first outer collar extension and the first virtual flow-line forwarding instance VRF1 is added, the forwarding of the second virtual flow-line is added in the described second outer collar extension Example VRF2;By the ECMP route record of static configuration or dynamic learning in the routing table in VRF2, and will be in the VRF2 ECMP routing import in the VRF1;MAC address offset is configured for the described first outer collar extension;It is described The source MAC and target MAC (Media Access Control) address for the message that MAC Address offset is used to that the first outer collar extension to be made to send be not identical;
It is described to set loopback mouth for the outlet in tunnel, comprising: to set the first outer collar extension for the outlet in tunnel;
It is described that loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, comprising:
The message that the process of passing through tunnel encapsulates is sent in the described first outer collar extension, and is connect from the described second outer collar extension It gets back;
It is in one embodiment, described that tunnel encapsulation is carried out to message, comprising:
The tunnel encapsulation of corresponding packing rule is carried out to the message according to the service feature of message;
Wherein, the service feature of the message includes: the purpose IP address and/or purpose media access control MAC of message Address;
Wherein, the packing rule includes: multiprotocol label switching MPLS packing rule, virtual expansible local area network VXLAN packing rule or multi-link transparent interconnection TRILL packing rule.
In one embodiment, the interior collar extension is high band wide port or the port that is formed by multiport multilink bundling Group;
In one embodiment, the described first outer collar extension and the second outer collar extension are high band wide ports or by multiport chain Road bundlees the port set to be formed.
The technical solution of the present embodiment, the outlet by the way that tunnel is arranged in superposition (Overlay) network are loopback mouth, energy Enough tunnel resources that a plurality of tunnel resource in network equipment bottom chip is reduced to the present embodiment technical solution, and base By searching for multiple next-hops of ECMP routing in plinth (Underlay) network, message can be transferred from multiple forwardings outlet It goes, to reach the forwarding performance in a plurality of tunnel in superposition (Overlay) network.
Embodiment 2
As shown in figure 3, the embodiment of the invention provides a kind of devices based on tunnel data, comprising:
Tunnel encapsulation module 301 sets the outlet in tunnel to for carrying out tunnel encapsulation to message in stacking network Loopback mouth;
Loopback module 302, for being carried out in the loopback mouth to the message that the process of passing through tunnel encapsulates in basic network The message that the process of passing through tunnel encapsulates is sent to Routing Forward Module by loopback;
Routing Forward Module 303 is used in basic network, according to the destination IP of the message of process of passing through tunnel encapsulation It searches equivalent multipath routing protocols ECMP routing table and obtains multiple next-hop ip address, the report that the process of passing through tunnel is encapsulated in location Text is forwarded by the corresponding multiple forwarding mouths of the multiple next-hop ip address.
In one embodiment, described device further includes configuration module;
The configuration module configures MAC address offset for establishing interior collar extension, and for the interior collar extension Amount;The source MAC and target MAC (Media Access Control) address for the message that the MAC Address offset is used to that interior collar extension to be made to send be not identical;
Tunnel encapsulation module, for setting loopback mouth for the outlet in tunnel in the following ways: the outlet in tunnel is set It is set to interior collar extension;
Loopback module, for carrying out ring to the message that the process of passing through tunnel encapsulates in the loopback mouth in the following ways It returns: the message that the process of passing through tunnel encapsulates is sent in the interior collar extension, and be received back from the interior collar extension again;
In one embodiment, described device further includes configuration module;
The configuration module, for establishing the first outer collar extension and the second outer collar extension, by the described first outer collar extension and described the Two outer collar extensions are direct-connected;The first virtual flow-line forwarding instance VRF1 is added in described first outer collar extension, the described second outer collar extension is added Enter the second virtual flow-line forwarding instance VRF2;By routing table of the ECMP route record of static configuration or dynamic learning in VRF2 In, and the ECMP routing in the VRF2 is imported in the VRF1;
Tunnel encapsulation module, for setting loopback mouth for the outlet in tunnel in the following ways: the outlet in tunnel is set It is set to the first outer collar extension;
Loopback module, for carrying out ring to the message that the process of passing through tunnel encapsulates in the loopback mouth in the following ways It returns: the message that the process of passing through tunnel encapsulates being sent in the described first outer collar extension, and is received back from the described second outer collar extension Come.
In one embodiment, tunnel encapsulation module, for carrying out tunnel encapsulation to message in the following ways:
The tunnel encapsulation of corresponding packing rule is carried out to the message according to the service feature of message;
Wherein, the service feature of the message includes: the purpose IP address and/or purpose media access control MAC of message Address;
Wherein, the packing rule includes: multiprotocol label switching MPLS packing rule, virtual expansible local area network VXLAN packing rule or multi-link transparent interconnection TRILL packing rule.
In one embodiment, the interior collar extension is high band wide port or the port that is formed by multiport multilink bundling Group;
In one embodiment, the described first outer collar extension and the second outer collar extension are high band wide ports or by multiport chain Road bundlees the port set to be formed.
The technical solution of the present embodiment, the outlet by the way that tunnel is arranged in superposition (Overlay) network are loopback mouth, energy Enough tunnel resources that a plurality of tunnel resource in network equipment bottom chip is reduced to the present embodiment technical solution, and base By searching for multiple next-hops of ECMP routing in plinth (Underlay) network, message can be transferred from multiple forwardings outlet It goes, to reach the forwarding performance in a plurality of tunnel in superposition (Overlay) network.
Technical solution of the application based on tunnel data is illustrated below by some.
Example 1
This example provides a kind of internal loopback mode and realizes method under ECMP scene based on tunnel data.In tunnel The outlet that tunnel is specified in package module is interior collar extension, and message will be sent after encapsulation tunnel information in tunnel encapsulation module To interior collar extension, it is looped back again into forwarding module after reaching interior collar extension, ECMP route querying is carried out in forwarding module, is finally reported The corresponding forwarding mouth of multiple next-hops that text is routed from ECMP forwards.
As shown in figure 4, this exemplary method based on tunnel data, may comprise steps of:
Step S401, the interior collar extension of the specified switching equipment of the overall situation;
Wherein, some port is chosen on switching equipment as interior collar extension;The message energy sent from the interior collar extension It is enough to be received back to come from the interior collar extension again;Meanwhile the MAC Address offset of the interior collar extension is configured, because tunnel exit next-hop is This equipment loopback mouth, if not configuring MAC Address offset will lead to the source MAC and mesh of the message that tunnel encapsulation module encapsulates away MAC it is consistent and message is caused to be abandoned by exchange chip.In view of the requirement of bandwidth and reliability, settable smartgroup The multilink bundling for realizing multiport, to meet the forwarding demand of high band _width flows;
Step S402, forwarding module learn ECMP according to dynamic routing protocol and route;
Step S403, tunnel encapsulation module carry out tunnel encapsulation to message, the outlet in tunnel are arranged to interior collar extension;
Step S404 after message is sent to interior collar extension, is received back by loopback from the interior collar extension;
Step S405, forwarding module will be received back the message come from the interior collar extension, inquiry ECMP route to obtain it is multiple under One hop IP address forwards the packet away from the corresponding multiple forwarding mouths of multiple next-hop ip address.
Example 2
This example provides a kind of external loop mode and realizes method under ECMP scene based on tunnel data.Setting two A VRF (VRF Virtual Routing Forwarding, virtual forwarding routing), then respectively VRF1 and VRF2 choose Two outside ports are belonging respectively to the two VRF, then enable the routing mutual conductance of VRF1 and VRF2.
As shown in figure 5, this exemplary method based on tunnel data, may comprise steps of:
Step S501 specifies two outer collar extensions (the first outer collar extension and the second outer collar extension) of switching equipment, two outer collar extensions It is external direct-connected, two VRF (VRF1 and VRF2) is configured, VRF1 is added in the first outer collar extension, VRF2 is added in the second outer collar extension;
Step S502 learns ECMP routing in VRF2, the routing of VRF2 is imported in VRF1;
Step S503, tunnel encapsulation module carry out tunnel encapsulation to message, the outlet in tunnel are arranged to the first outer collar extension;
Step S504 after message is sent to the first outer collar extension, sends from the first outer collar extension, connects from the second outer collar extension It gets back;
Step S505, forwarding module will be received back the message come from the described second outer collar extension, and inquiry ECMP routes to obtain more A next-hop ip address forwards the packet away from the corresponding multiple forwarding mouths of multiple next-hop ip address.
Example 3
This example provides a kind of outer ring mode and realizes the method based on vxlan tunnel data, may include following step It is rapid:
Vrf1 is added in configuration or study ECMP routing, the first outer collar extension in step 1:vrf2, and the second outer collar extension is added Vrf2, the first outer collar extension and the second outer collar extension are direct-connected;
Wherein, multiple next-hop outlets are directed toward in ECMP routing;
First outer collar extension and the second outer collar extension can choose high bandwidth physical port, or more by smartgroup realization The multilink bundling of port, to meet the forwarding demand of high band _width flows;
Routing mutual conductance between step 2:vrf1 and vrf2;
The MAC Address of corresponding three layer interface of the outer collar extension of configuration first deviates in step 3:vrf1, avoids encapsulating away The SMAC (source MAC) of message is equal with DMAC (purpose MAC).
Step 4: tunnel encapsulation module receives dynamic protocol or when static configuration issues the tunnel VXLAN, according to vrf1 Interior routing iinformation specifies the exit port in tunnel, this exit port is the first outer collar extension, in this way, at through tunnel encapsulation module encapsulation After reason, it is that the address after MAC is deviated is arranged that message, which is sent to the first outer collar extension and the source MAC of message,;
Step 5, message is sent from the first outer collar extension, is received back to come from the second outer collar extension, forwarding module is in vrf2 Message characteristic matching is carried out, inquiry ECMP routes to obtain multiple next-hop ip address, corresponding more from multiple next-hop ip address A forwarding mouth forwards the packet away;
In this example, message is walked three layers of forwarding and is shared away from different ports, can reach superposition (Overlay) network In a plurality of tunnel forwarding performance, and actually only need to establish a tunnel (tunnel exit in superposition (Overlay) network It is outer collar extension).It is as shown in Figure 6 that the tunnel vxlan is created in this example, in ECMP scene.
In other embodiments, the method and this example of the data transmission of other tunnel protocols are realized by outer ring mode Similar, the packing rule only used when tunnel encapsulation module encapsulated message is different, for example, being directed to the data of mpls protocol Transmission, tunnel encapsulation module are based on mpls protocol encapsulation tunnel head, and loop back processing being and ECMP routing forwarding are all phases with this example With.
Example 4
This example provides a kind of inner ring mode and realizes the method based on vxlan tunnel data, may include following step It is rapid:
Step 1: collar extension in the overall situation is specified;
Wherein, the smarggroup group of high bandwidth port or high bandwidth high reliability may be selected as internal loopback Mouthful.This example selection smartgroup group is answered back for inner loop, first configuration smartgroup group, and port is added separately to this In smartgroup group, then enabling the smartgroup group is interior ring mode;
Step 2: configuring routing interface in the smartgroup group, enable three layers of forwarding function of the smartgroup group Energy;
Wherein, message is addressed to interior collar extension after the encapsulation of process of passing through tunnel package module, and the message needs being looped back are forwarding It searches ECMP routing forwarding in module to go out, so need the smartgroup enabling three layer functions herein.
Step 3: forwarding module learns ECMP according to dynamic routing protocol and routes.
Step 4: tunnel encapsulation module receives dynamic protocol or when static configuration issues tunnel, and the outlet in tunnel is set It is set to interior collar extension, in this way, it is to set that message, which is sent to interior collar extension and the source MAC of message, after tunnel encapsulation module encapsulation process Address after setting MAC offset;
Step 5, message is sent from interior collar extension, then is received back from interior collar extension, and forwarding module inquiry ECMP is routed To multiple next-hop ip address, forwarded the packet away from the corresponding multiple forwarding mouths of multiple next-hop ip address;
In this example, message is walked three layers of forwarding and is shared away from different ports, can reach superposition (Overlay) network In a plurality of tunnel forwarding performance, and actually only need to establish a tunnel (tunnel exit in superposition (Overlay) network It is interior collar extension).
In other embodiments, the method and this example of the data transmission of other tunnel protocols are realized by inner ring mode Similar, the packing rule only used when tunnel encapsulation module encapsulated message is different, for example, being directed to the data of mpls protocol Transmission, tunnel encapsulation module are based on mpls protocol encapsulation tunnel head, and loop back processing being and ECMP routing forwarding are all phases with this example With.
It should be noted that the invention may also have other embodiments, without departing substantially from spirit of that invention and its essence In the case of, those skilled in the art can make various corresponding changes and modifications according to the present invention, but these are corresponding Change and modification all should fall within the scope of protection of the appended claims of the present invention.

Claims (12)

1. a kind of method based on tunnel data, comprising:
Tunnel encapsulation is carried out to message in stacking network, sets loopback mouth for the outlet in tunnel;
In basic network, loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, passes through tunnel according to described The purpose IP address of the message of road encapsulation searches equivalent multipath routing protocols ECMP routing table and obtains multiple next-hop ip address, The message that the process of passing through tunnel encapsulates is forwarded by the corresponding multiple forwarding mouths of the multiple next-hop ip address.
2. the method as described in claim 1, before setting loopback mouth for the outlet in tunnel, which is characterized in that the side Method further include:
Collar extension in establishing, and MAC address offset is configured for the interior collar extension;The MAC Address offset The source MAC and target MAC (Media Access Control) address of message for sending interior collar extension be not identical.
3. method according to claim 2, it is characterised in that:
It is described to set loopback mouth for the outlet in tunnel, comprising: to set interior collar extension for the outlet in tunnel;
Loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, comprising:
The message that the process of passing through tunnel encapsulates is sent in the interior collar extension, and is received back from the interior collar extension again.
4. the method as described in claim 1, before setting loopback mouth for the outlet in tunnel, which is characterized in that the side Method further include:
The first outer collar extension and the second outer collar extension are established, the described first outer collar extension and the described second outer collar extension is direct-connected;
The first virtual flow-line forwarding instance VRF1 is added in described first outer collar extension, it is virtual that the described second outer collar extension is added second Routing transmitting example VRF2;
By the ECMP route record of static configuration or dynamic learning in the routing table in VRF2, and by the ECMP in the VRF2 Routing imports in the VRF1;MAC address offset is configured for the described first outer collar extension;The MAC Address The source MAC and target MAC (Media Access Control) address for the message that offset is used to that the first outer collar extension to be made to send be not identical.
5. method as claimed in claim 4, it is characterised in that:
It is described to set loopback mouth for the outlet in tunnel, comprising: to set the first outer collar extension for the outlet in tunnel;
It is described that loopback is carried out to the message that the process of passing through tunnel encapsulates in the loopback mouth, comprising:
The message that the process of passing through tunnel encapsulates is sent in the described first outer collar extension, and is received back from the described second outer collar extension Come.
6. the method as described in claim 1, it is characterised in that:
It is described that tunnel encapsulation is carried out to message, comprising:
The tunnel encapsulation of corresponding packing rule is carried out to the message according to the service feature of message;
Wherein, the service feature of the message includes: the purpose IP address and/or purpose MAC address of message.
7. a kind of device based on tunnel data, comprising:
Tunnel encapsulation module sets loopback mouth for the outlet in tunnel for carrying out tunnel encapsulation to message in stacking network;
Loopback module will for carrying out loopback to the message that the process of passing through tunnel encapsulates in the loopback mouth in basic network The message of the process of passing through tunnel encapsulation is sent to Routing Forward Module;
Routing Forward Module, for being searched according to the purpose IP address of the message of process of passing through tunnel encapsulation in basic network Equivalent multipath routing protocols ECMP routing table obtains multiple next-hop ip address, and the message that the process of passing through tunnel encapsulates is passed through The corresponding multiple forwarding mouths of the multiple next-hop ip address forward.
8. device as claimed in claim 7, which is characterized in that described device further include:
Configuration module configures MAC address offset for establishing interior collar extension, and for the interior collar extension;It is described The source MAC and target MAC (Media Access Control) address for the message that MAC Address offset is used to that interior collar extension to be made to send be not identical.
9. device as claimed in claim 8, it is characterised in that:
Tunnel encapsulation module, for setting loopback mouth for the outlet in tunnel in the following ways: setting the outlet in tunnel to Interior collar extension;
Loopback module, for carrying out loopback to the message that the process of passing through tunnel encapsulates in the loopback mouth in the following ways: will The message of the process of passing through tunnel encapsulation is sent in the interior collar extension, and is received back from the interior collar extension again.
10. device as claimed in claim 7, which is characterized in that described device further include:
Configuration module, for establishing the first outer collar extension and the second outer collar extension, by the described first outer collar extension and the described second outer collar extension It is direct-connected;The first virtual flow-line forwarding instance VRF1 is added in described first outer collar extension, it is empty that the described second outer collar extension is added second Quasi- routing transmitting example VRF2;By the ECMP route record of static configuration or dynamic learning in the routing table in VRF2, and will ECMP routing in the VRF2 imports in the VRF1.
11. device as claimed in claim 10, it is characterised in that:
Tunnel encapsulation module, for setting loopback mouth for the outlet in tunnel in the following ways: setting the outlet in tunnel to First outer collar extension;
Loopback module, for carrying out loopback to the message that the process of passing through tunnel encapsulates in the loopback mouth in the following ways: will The message of the process of passing through tunnel encapsulation is sent in the described first outer collar extension, and is received back from the described second outer collar extension.
12. device as claimed in claim 7, it is characterised in that:
Tunnel encapsulation module, for carrying out tunnel encapsulation to message in the following ways: according to the service feature of message to described Message carries out the tunnel encapsulation of corresponding packing rule;
Wherein, the service feature of the message includes: the purpose IP address and/or purpose MAC address of message.
CN201711470852.7A 2017-12-29 2017-12-29 Method and device for transmitting data based on tunnel Active CN109995654B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711470852.7A CN109995654B (en) 2017-12-29 2017-12-29 Method and device for transmitting data based on tunnel
PCT/CN2018/125039 WO2019129236A1 (en) 2017-12-29 2018-12-28 Tunnel-based data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711470852.7A CN109995654B (en) 2017-12-29 2017-12-29 Method and device for transmitting data based on tunnel

Publications (2)

Publication Number Publication Date
CN109995654A true CN109995654A (en) 2019-07-09
CN109995654B CN109995654B (en) 2022-05-20

Family

ID=67063252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711470852.7A Active CN109995654B (en) 2017-12-29 2017-12-29 Method and device for transmitting data based on tunnel

Country Status (2)

Country Link
CN (1) CN109995654B (en)
WO (1) WO2019129236A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884904A (en) * 2020-07-23 2020-11-03 中盈优创资讯科技有限公司 Method and device for dynamically managing vxlan tunnel based on equipment configuration
CN113542111A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Message forwarding method and network equipment
WO2022041851A1 (en) * 2020-08-31 2022-03-03 华为技术有限公司 Communication method and apparatus, and device and system
WO2023050818A1 (en) * 2021-09-30 2023-04-06 中兴通讯股份有限公司 Data forwarding method and system, electronic device, and storage medium
CN116192729A (en) * 2021-11-26 2023-05-30 苏州盛科通信股份有限公司 Hierarchical ECMP realization method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE544376C2 (en) * 2019-10-03 2022-04-26 Telia Co Ab A method and an apparatus for configuring static routes through internal virtual route forwarders
CN111614536A (en) * 2020-04-20 2020-09-01 视联动力信息技术股份有限公司 Data forwarding method and device
CN112636789A (en) * 2020-12-31 2021-04-09 广东电网有限责任公司电力调度控制中心 Virtual MAC method and device for power line communication
CN113472647B (en) * 2021-06-11 2023-07-14 新华三信息安全技术有限公司 Message forwarding method and device
CN113765823A (en) * 2021-09-29 2021-12-07 新华三信息安全技术有限公司 Message forwarding method and device
CN115514702A (en) * 2022-09-16 2022-12-23 苏州盛科科技有限公司 Method and device for quickly switching link, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008063858A2 (en) * 2006-11-21 2008-05-29 Nortel Networks Limited Supporting bgp based ip-vpn in a routed network
CN101267402A (en) * 2008-05-08 2008-09-17 北京邮电大学 Dual-label transmission and control mechanism based on T-MPLS
US20110134920A1 (en) * 2009-12-07 2011-06-09 Telefonaktiebolaget Lm Ericsson (Publ) Handling data packets received at a routing node
CN102801628A (en) * 2012-08-20 2012-11-28 神州数码网络(北京)有限公司 Data forwarding method and system in GRE (General Routing Encapsulation) tunnels
CN103746931A (en) * 2012-09-28 2014-04-23 瞻博网络公司 Maintaining load balancing after service application with a netwok device
CN104184676A (en) * 2013-05-27 2014-12-03 华为技术有限公司 Data center network, flow balancing method thereof and controller
EP3031180A1 (en) * 2013-08-07 2016-06-15 Telefonaktiebolaget LM Ericsson (publ) Automatic establishment of redundant paths with cautious restoration in a packet network
US20160226755A1 (en) * 2015-01-30 2016-08-04 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for connecting a gateway router to a set of scalable virtual ip network appliances in overlay networks
WO2017008712A1 (en) * 2015-07-10 2017-01-19 杭州华三通信技术有限公司 Reachability detection for path between vxlan tunnel end points (vtep)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599883A (en) * 2008-07-02 2009-12-09 上海恩际恩网络科技有限公司 A kind of safe transmission network system framework based on overlay network
WO2014052485A1 (en) * 2012-09-26 2014-04-03 Huawei Technologies Co. Ltd. Overlay virtual gateway for overlay networks
US9350657B2 (en) * 2013-07-08 2016-05-24 Nicira, Inc. Encapsulating data packets using an adaptive tunnelling protocol
CN106470157B (en) * 2015-08-21 2020-06-30 中兴通讯股份有限公司 Method and device for setting priority of tunnel

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008063858A2 (en) * 2006-11-21 2008-05-29 Nortel Networks Limited Supporting bgp based ip-vpn in a routed network
CN101267402A (en) * 2008-05-08 2008-09-17 北京邮电大学 Dual-label transmission and control mechanism based on T-MPLS
US20110134920A1 (en) * 2009-12-07 2011-06-09 Telefonaktiebolaget Lm Ericsson (Publ) Handling data packets received at a routing node
CN102801628A (en) * 2012-08-20 2012-11-28 神州数码网络(北京)有限公司 Data forwarding method and system in GRE (General Routing Encapsulation) tunnels
CN103746931A (en) * 2012-09-28 2014-04-23 瞻博网络公司 Maintaining load balancing after service application with a netwok device
CN104184676A (en) * 2013-05-27 2014-12-03 华为技术有限公司 Data center network, flow balancing method thereof and controller
EP3031180A1 (en) * 2013-08-07 2016-06-15 Telefonaktiebolaget LM Ericsson (publ) Automatic establishment of redundant paths with cautious restoration in a packet network
US20160226755A1 (en) * 2015-01-30 2016-08-04 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for connecting a gateway router to a set of scalable virtual ip network appliances in overlay networks
WO2017008712A1 (en) * 2015-07-10 2017-01-19 杭州华三通信技术有限公司 Reachability detection for path between vxlan tunnel end points (vtep)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542111A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Message forwarding method and network equipment
CN113542111B (en) * 2020-04-20 2024-05-14 华为技术有限公司 Message forwarding method and network equipment
CN111884904A (en) * 2020-07-23 2020-11-03 中盈优创资讯科技有限公司 Method and device for dynamically managing vxlan tunnel based on equipment configuration
WO2022041851A1 (en) * 2020-08-31 2022-03-03 华为技术有限公司 Communication method and apparatus, and device and system
WO2023050818A1 (en) * 2021-09-30 2023-04-06 中兴通讯股份有限公司 Data forwarding method and system, electronic device, and storage medium
CN116192729A (en) * 2021-11-26 2023-05-30 苏州盛科通信股份有限公司 Hierarchical ECMP realization method and device

Also Published As

Publication number Publication date
CN109995654B (en) 2022-05-20
WO2019129236A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN109995654A (en) A kind of method and device based on tunnel data
CN109873760B (en) Method and device for processing route, and method and device for data transmission
TWI821373B (en) System for first hop gateway redundancy in a network computing environment
CN104135420B (en) A kind of method, equipment and the system of message forwarding
CN102037685B (en) IP forwarding across a link state protocol controlled Ethernet network
CN1938997B (en) Method, connection controller and system for differential forwarding in address-based carrier networks
US8948179B2 (en) Method of multiprotocol label switching encapsulation for united router farm forwarding
CN102150148B (en) Differentiated services for unicast multicast frames in layer 2 topologies
US20200396162A1 (en) Service function chain sfc-based communication method, and apparatus
CN102368727B (en) Crossed IP network TRILL network communication method, system thereof and devices
US20150043348A1 (en) Traffic Flow Redirection between Border Routers using Routing Encapsulation
CN102055665B (en) OSPF point-to-multipoint over broadcast or NBMA mode
CN108353024A (en) It is reduced via the multicast state of tunnelling in routing system
CN104243270A (en) Tunnel setup method and tunnel setup device
CN104660508A (en) Message forwarding method and device
KR20150013612A (en) Three stage folded clos optimization for 802.1aq
CN102724118A (en) Label distribution method and device
CN103780470B (en) A kind of information synchronization method of IS IS and device
CN102946349A (en) OSPF (open shortest path first) protocol-based Ethernet E-Line service link discovery method and device
CN102546433A (en) Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges)
CN103188151A (en) Packet transport network and method for transporting service in packet transport network
CN108141392A (en) The method and apparatus that pseudowire load is shared
CN103490968B (en) Method and device for interconnecting across data centers in FCoE network
CN105763439B (en) The interconnected method and device of data center in a kind of multilink transparent internet
CN102394804A (en) VPN system building method and VPN system

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