CN109995654B - Method and device for transmitting data based on tunnel - Google Patents

Method and device for transmitting data based on tunnel Download PDF

Info

Publication number
CN109995654B
CN109995654B CN201711470852.7A CN201711470852A CN109995654B CN 109995654 B CN109995654 B CN 109995654B CN 201711470852 A CN201711470852 A CN 201711470852A CN 109995654 B CN109995654 B CN 109995654B
Authority
CN
China
Prior art keywords
tunnel
message
port
outer ring
encapsulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711470852.7A
Other languages
Chinese (zh)
Other versions
CN109995654A (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • 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

Abstract

A method and apparatus for tunneling data are disclosed. The method for transmitting data based on the tunnel comprises the following steps: tunnel encapsulation is carried out on the message in the overlay network, and an outlet of the tunnel is set as a loop back port; in the basic network, the message encapsulated by the tunnel is looped back at the loop back port, an equivalent multi-path routing protocol (ECMP) routing table is searched according to the destination IP address of the message encapsulated by the tunnel to obtain a plurality of next hop IP addresses, and the message encapsulated by the tunnel is forwarded through a plurality of forwarding ports corresponding to the plurality of next hop IP addresses. The technical scheme can provide a tunnel transmission scheme under an equivalent multipath routing protocol scene, and reduces the quantity of tunnel resources in a bottom chip of the superposed network equipment while realizing multiport forwarding.

Description

Method and device for transmitting data based on tunnel
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting data based on a tunnel.
Background
Tunneling is a way of transferring data between networks by using an infrastructure of an internetwork, and is implemented by a Tunneling protocol conforming to an organization standard such as Institute of Electrical and Electronics Engineers (IEEE). The data (or payload) communicated using tunneling techniques may be data frames or packets of different protocols. Tunneling protocols re-encapsulate data frames or packets of other protocols and then send through tunnels. The new header provides routing information for delivering encapsulated payload data over the internet. Typical tunneling techniques include: Multi-Protocol Label Switching (MPLS), Virtual Extensible local area network (VXLAN), Transparent Interconnection of multiple Links (TRILL), and the like.
The infrastructure network (Underlay network) is a network of a data center network basic forwarding architecture, is a physical basic layer, and includes all existing traditional network technologies as long as a route between any two points of the data center network can be reached. An Overlay network (Overlay network) is a virtualization framework overlaid on a network architecture, is constructed by logical nodes and logical links, and has an independent control plane and a forwarding plane. The Overlay network realizes the bearing of an application layer on the Underlay network, realizes the service separation with other networks, realizes the trial extension of a physical network to a cloud and a virtualization network, ensures that the cloud resource pooling capability can get rid of the heavy limitation of the physical network, and realizes the cloud network convergence.
Equal-Cost Multi-path Routing (ECMP) is a Routing technique. In a network environment where a plurality of different links reach the same destination address, if a conventional routing technology is used, a data packet sent to the destination address can only utilize one link, and other links are in a backup state or an invalid state, and a certain time is required for mutual switching in a dynamic routing environment, whereas the ECMP can simultaneously use a plurality of links in the network environment, thereby not only increasing transmission bandwidth, but also backing up data transmission of the invalid link without time delay or packet loss. The ECMP has the greatest characteristic of realizing the purposes of multipath load balancing and link backup under equivalent conditions, and basically supports the ECMP function in both static routing and Open Shortest Path First (OSPF).
With the increase of service deployment, the number of tunnels required to be established by the data center is increased. If the underwlay network applies ECMP techniques, the hardware resources required to establish the tunnel in the Overlay network will also be more. As shown in fig. 1, when a VXLAN tunnel is created in an ECMP scenario, tunnels need to be created according to an exit corresponding to each next hop in an ECMP group, but the number of tunnels on a chip bottom layer is limited, so that the number of tunnels supported by an Overlay network in the ECMP scenario is limited.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for transmitting data based on a tunnel, which can provide a tunnel transmission scheme in an equivalent multipath routing protocol scenario, and reduce the number of tunnel resources in a bottom chip of an overlay network device while implementing multiport forwarding.
The embodiment of the invention provides a method for transmitting data based on a tunnel, which comprises the following steps:
tunnel encapsulation is carried out on the message in the overlay network, and an outlet of the tunnel is set as a loop back port;
in the basic network, the message encapsulated by the tunnel is looped back at the loop back port, an equivalent multi-path routing protocol (ECMP) routing table is searched according to the destination IP address of the message encapsulated by the tunnel to obtain a plurality of next hop IP addresses, and the message encapsulated by the tunnel is forwarded through a plurality of forwarding ports corresponding to the plurality of next hop IP addresses.
The embodiment of the invention provides a device for transmitting data based on a tunnel, which comprises:
the tunnel encapsulation module is used for tunnel encapsulation of the message in the overlay network and setting the exit of the tunnel as a loop back port;
a loopback module, configured to loop back the tunneled packet at the loopback interface in a base network, and send the tunneled packet to a route forwarding module;
and the route forwarding module is used for searching an equivalent multi-path routing protocol (ECMP) routing table according to the destination IP address of the message subjected to tunnel encapsulation in a basic network to obtain a plurality of next-hop IP addresses and forwarding the message subjected to tunnel encapsulation through a plurality of forwarding ports corresponding to the plurality of next-hop IP addresses.
Compared with the prior art, the method and the device for transmitting data based on the tunnel provided by the embodiment of the invention have the advantages that the tunnel encapsulation is carried out on the message in the overlay network, and the exit of the tunnel is set as the loopback port; in the basic network, the message encapsulated by the tunnel is looped back at the loop-back port, an equivalent multi-path routing protocol ECMP routing table is searched to obtain a plurality of next hop IP addresses, and the message encapsulated by the tunnel is forwarded out through a plurality of forwarding ports corresponding to the plurality of next hop IP addresses. The technical scheme of the embodiment of the invention can realize multi-port forwarding in the scene that the ECMP technology is applied to the Underlay network and simultaneously reduce the quantity of tunnel resources in a bottom chip of the superposed network equipment.
Drawings
Fig. 1 is a schematic diagram of a VXLAN tunnel created in an ECMP scenario in the background art;
fig. 2 is a flowchart of a method for transmitting data based on a tunnel according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of an apparatus for transmitting data based on a tunnel according to embodiment 2 of the present invention;
fig. 4 is a flowchart of a method for transmitting data based on a tunnel according to example 1 of the present invention (inner loop);
fig. 5 is a flowchart of a method for transmitting data based on a tunnel according to example 2 of the present invention (outer loop method);
fig. 6 is a schematic diagram of creating a tunnel in an overlay network in example 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
Example 1
As shown in fig. 2, an embodiment of the present invention provides a method for transmitting data based on a tunnel, including:
step S210, tunnel encapsulation is carried out on the message in the overlay network, and the exit of the tunnel is set as a loop back port;
step S220, in the basic network, looping back the message packaged by the tunnel at the loop back port, searching an equivalent multi-path routing protocol (ECMP) routing table according to the destination IP address of the message packaged by the tunnel to obtain a plurality of next hop IP addresses, and forwarding the message packaged by the tunnel through a plurality of forwarding ports corresponding to the plurality of next hop IP addresses;
in one embodiment, before the exit of the tunnel is provided as a loopback port, the method further comprises:
establishing an inner ring port, and configuring Media Access Control (MAC) address offset for the inner ring port; the MAC address offset is used for enabling a source MAC address and a destination MAC address of a message sent out by the inner ring port to be different;
the export of tunnel sets up to the loopback mouth, includes: setting the outlet of the tunnel as an inner annular opening;
looping back the message encapsulated by the tunnel at the loop back port, including:
sending the message encapsulated by the tunnel out of the inner ring opening and receiving the message back from the inner ring opening again;
in one embodiment, before the exit of the tunnel is provided as a loopback port, the method further comprises:
establishing a first outer ring opening and a second outer ring opening, and directly connecting the first outer ring opening with the second outer ring opening; adding the first outer ring interface to a first virtual route forwarding instance VRF1, and adding the second outer ring interface to a second virtual route forwarding instance VRF 2; recording the statically configured or dynamically learned ECMP routes in a routing table within VRF2, and importing the ECMP routes within VRF2 into the VRF 1; configuring a Media Access Control (MAC) address offset for the first outer ring port; the MAC address offset is used for enabling a source MAC address and a destination MAC address of a message sent out by the first outer ring port to be different;
set up the export in tunnel as the loop mouth, include: setting an outlet of the tunnel as a first outer annular opening;
the looping back the message encapsulated by the tunnel at the looping back port includes:
sending the message subjected to tunnel encapsulation out at the first outer ring opening and receiving the message back from the second outer ring opening;
in an embodiment, the tunnel encapsulation for the packet includes:
performing tunnel encapsulation of a corresponding encapsulation rule on the message according to the service characteristics of the message;
wherein, the service characteristics of the message include: a destination IP address and/or a destination Media Access Control (MAC) address of the message;
wherein the encapsulation rule comprises: multiprotocol label switching (MPLS) encapsulation rules, virtual extensible local area network (VXLAN) encapsulation rules or transparent interconnection of lots of links (TRILL) encapsulation rules.
In one embodiment, the inner ring port is a high bandwidth port or a port group formed by multi-port link bundling;
in one embodiment, the first outer ring port and the second outer ring port are high bandwidth ports or port groups bundled by multi-port links.
In the technical solution of this embodiment, by setting the exit of the tunnel as the loopback port in the Overlay (Overlay) network, resources of multiple tunnels in the bottom chip of the network device can be reduced to one tunnel resource in the technical solution of this embodiment, and by searching multiple next hops of the ECMP route in the base (Underlay) network, the packet can be forwarded from multiple forwarding exits, thereby achieving the forwarding performance of multiple tunnels in the Overlay (Overlay) network.
Example 2
As shown in fig. 3, an embodiment of the present invention provides an apparatus for transmitting data based on a tunnel, including:
a tunnel encapsulation module 301, configured to perform tunnel encapsulation on a packet in a overlay network, and set an exit of a tunnel as a loopback port;
a loopback module 302, configured to loop back the tunneled packet at the loopback interface in a base network, and send the tunneled packet to a route forwarding module;
a route forwarding module 303, configured to search an equal-value multipath routing protocol ECMP routing table according to the destination IP address of the packet encapsulated by the tunnel in the base network to obtain multiple next-hop IP addresses, and forward the packet encapsulated by the tunnel through multiple forwarding ports corresponding to the multiple next-hop IP addresses.
In one embodiment, the apparatus further comprises a configuration module;
the configuration module is used for establishing an inner ring opening and configuring Media Access Control (MAC) address offset for the inner ring opening; the MAC address offset is used for enabling a source MAC address and a destination MAC address of a message sent by the inner ring port to be different;
the tunnel encapsulation module is used for setting the exit of the tunnel as a loop back port in the following mode: setting the outlet of the tunnel as an inner annular opening;
a loopback module, configured to loop back the tunnel-encapsulated packet at the loopback interface in the following manner: sending the message encapsulated by the tunnel out of the inner ring opening and receiving the message back from the inner ring opening again;
in one embodiment, the apparatus further comprises a configuration module;
the configuration module is used for establishing a first outer ring opening and a second outer ring opening and directly connecting the first outer ring opening and the second outer ring opening; adding the first outer ring interface to a first virtual route forwarding instance VRF1, and adding the second outer ring interface to a second virtual route forwarding instance VRF 2; recording the statically configured or dynamically learned ECMP routes in a routing table within VRF2, and importing the ECMP routes within VRF2 into the VRF 1;
the tunnel encapsulation module is used for setting the exit of the tunnel as a loop back port by adopting the following mode: setting an outlet of the tunnel as a first outer annular opening;
a loopback module, configured to loop back the tunnel-encapsulated packet at the loopback interface in the following manner: and sending the message subjected to tunnel encapsulation out at the first outer ring opening and receiving the message back from the second outer ring opening.
In an embodiment, the tunnel encapsulation module is configured to tunnel encapsulate the packet by using the following method:
performing tunnel encapsulation of a corresponding encapsulation rule on the message according to the service characteristics of the message;
wherein, the service characteristics of the message include: a destination IP address and/or a destination Media Access Control (MAC) address of the message;
wherein the encapsulation rule comprises: multiprotocol label switching (MPLS) encapsulation rules, virtual extensible local area network (VXLAN) encapsulation rules or transparent interconnection of lots of links (TRILL) encapsulation rules.
In one embodiment, the inner ring port is a high bandwidth port or a port group formed by multi-port link bundling;
in one embodiment, the first outer ring port and the second outer ring port are high bandwidth ports or port groups bundled by multi-port links.
In the technical solution of this embodiment, by setting the exit of the tunnel as the loopback port in the Overlay (Overlay) network, resources of multiple tunnels in the bottom chip of the network device can be reduced to one tunnel resource in the technical solution of this embodiment, and by searching multiple next hops of the ECMP route in the base (Underlay) network, the packet can be forwarded from multiple forwarding exits, thereby achieving the forwarding performance of multiple tunnels in the Overlay (Overlay) network.
The following describes, by way of some examples, a technical solution of the present application based on tunneling data.
Example 1
The present example provides a method for implementing data transmission based on a tunnel in an ECMP scenario in an internal loopback manner. And an outlet of the appointed tunnel in the tunnel encapsulation module is an inner ring port, the message is sent to the inner ring port after encapsulating tunnel information in the tunnel encapsulation module, and is looped back to enter the forwarding module after reaching the inner ring port, ECMP route searching is carried out in the forwarding module, and finally the message is forwarded out from the forwarding ports corresponding to a plurality of next hops of the ECMP route.
As shown in fig. 4, the method for transmitting data based on a tunnel of the present example may include the following steps:
step S401, an inner ring port of the exchange equipment is designated globally;
selecting a certain port on the switching equipment as an inner ring port; the message sent out from the inner ring opening can be received back from the inner ring opening; and meanwhile, configuring the MAC address offset of the inner ring port, because the next hop of the tunnel outlet is the loop port of the equipment, if the MAC address offset is not configured, the source MAC and the destination MAC of the message packaged by the tunnel packaging module are consistent, and the message is discarded by the switching chip. Considering the requirements of bandwidth and reliability, smartgroup can be set to realize multi-port link binding, thereby meeting the forwarding requirement of high bandwidth flow;
step S402, the forwarding module learns ECMP routing according to the dynamic routing protocol;
step S403, the tunnel encapsulation module performs tunnel encapsulation on the message, and sets the exit of the tunnel as an inner ring mouth;
step S404, after the message is sent to the inner ring port, the message is received back from the inner ring port through loopback;
step S405, the forwarding module queries the ECMP route to obtain a plurality of next-hop IP addresses for the message received from the inner ring interface, and forwards the message from a plurality of forwarding ports corresponding to the plurality of next-hop IP addresses.
Example 2
The present example provides a method for implementing data transmission based on a tunnel in an ECMP scenario in an external loopback manner. Two VRFs (Virtual Routing Forwarding, Virtual Forwarding routes) are set, namely VRF1 and VRF2, then two external ports are selected to belong to the two VRFs respectively, and then routes of VRF1 and VRF2 are enabled to conduct with each other.
As shown in fig. 5, the method for transmitting data based on a tunnel of the present example may include the following steps:
step S501, two outer ring ports (a first outer ring port and a second outer ring port) of the switching equipment are designated, the outer parts of the two outer ring ports are directly connected, two VRFs (VRF1 and VRF2) are configured, the first outer ring port is added into VRF1, and the second outer ring port is added into VRF 2;
step S502, learning ECMP route in VRF2, importing route of VRF2 into VRF 1;
step S503, the tunnel encapsulation module performs tunnel encapsulation on the message, and sets an outlet of the tunnel as a first outer ring opening;
step S504, after the message is sent to the first outer ring opening, the message is sent out from the first outer ring opening and received back from the second outer ring opening;
step S505, the forwarding module queries the ECMP route to obtain a plurality of next-hop IP addresses from the message received from the second outer ring, and forwards the message from a plurality of forwarding ports corresponding to the plurality of next-hop IP addresses.
Example 3
This example provides a method for implementing data transmission based on a vxlan tunnel in an outer loop manner, which may include the following steps:
step 1: vrf2, ECMP routing is configured or learned, the first outer ring port is added with vrf1, the second outer ring port is added with vrf2, and the first outer ring port and the second outer ring port are directly connected;
wherein the ECMP route points to a plurality of next hop exits;
the first outer ring port and the second outer ring port can select a high-bandwidth physical port, or link binding of multiple ports is realized through smartgroup, so that the forwarding requirement of high-bandwidth flow is met;
step 2: vrf1 and vrf 2;
and step 3: vrf1, MAC address offset of the three-layer interface corresponding to the first outer ring is configured, so as to avoid the SMAC (source MAC) and DMAC (destination MAC) of the encapsulated message being equal.
And 4, step 4: when the tunnel encapsulation module receives a dynamic protocol or static configuration and issues a VXLAN tunnel, the tunnel encapsulation module appoints an output port of the tunnel according to routing information in vrf1, the output port is a first outer ring port, thus, after the encapsulation processing of the tunnel encapsulation module, a message is sent to the first outer ring port, and the source MAC of the message is an address after the MAC offset is set;
step 5, the message is sent out from the first outer ring port and received back from the second outer ring port, the forwarding module performs message feature matching in vrf2, queries the ECMP route to obtain a plurality of next-hop IP addresses, and forwards the message from a plurality of forwarding ports corresponding to the plurality of next-hop IP addresses;
in this example, the packet is shared from different ports by three-layer forwarding, which can achieve the forwarding performance of multiple tunnels in the Overlay network, and actually only one tunnel (the tunnel exit is an outer ring) in the Overlay network needs to be established. In this example, the creation of a vxlan tunnel in an ECMP scenario is shown in fig. 6.
In other embodiments, the method for implementing data transmission of other tunnel protocols by using the outer loop is similar to that in this example, except that the encapsulation rule adopted when the tunnel encapsulation module encapsulates the packet is different, for example, for data transmission of the MPLS protocol, the tunnel encapsulation module encapsulates the tunnel header based on the MPLS protocol, and the loopback processing and ECMP route forwarding are the same as those in this example.
Example 4
This example provides a method for implementing data transmission based on a vxlan tunnel in an inner-loop manner, which may include the following steps:
step 1: globally appointing an inner ring opening;
wherein, a high-bandwidth physical port or a high-bandwidth and high-reliability smartdrop group can be selected as an internal loopback port. In the example, a smartgroup is selected as an internal loop back, the smartgroup is configured firstly, ports are added into the smartgroup respectively, and then the smartgroup is enabled to be in an internal loop mode;
step 2: configuring a routing interface on the smartgroup to enable a three-layer forwarding function of the smartgroup;
the message is sent to the inner ring port after being encapsulated by the tunnel encapsulation module, and the looped message needs to be forwarded by searching the ECMP route in the forwarding module, so that the smartgroup is required to enable a three-layer function.
And step 3: the forwarding module learns ECMP routes according to a dynamic routing protocol.
And 4, step 4: when the tunnel encapsulation module receives the dynamic protocol or the static configuration and issues the tunnel, the exit of the tunnel is set as an inner ring opening, so that after the tunnel encapsulation module encapsulates and processes the message, the message is sent to the inner ring opening, and the source MAC of the message is the address after the MAC offset is set;
step 5, the message is sent out from the inner ring port and then received back from the inner ring port, the forwarding module queries the ECMP route to obtain a plurality of next-hop IP addresses, and the message is forwarded out from a plurality of forwarding ports corresponding to the plurality of next-hop IP addresses;
in this example, the packet is shared from different ports by three-layer forwarding, which can achieve the forwarding performance of multiple tunnels in the Overlay network, and actually only one tunnel (the tunnel exit is an inner ring) in the Overlay network needs to be established.
In other embodiments, the method for implementing data transmission of other tunnel protocols by using the inner-loop manner is similar to that in this example, except that the encapsulation rule adopted when the tunnel encapsulation module encapsulates the packet is different, for example, for data transmission of the MPLS protocol, the tunnel encapsulation module encapsulates the tunnel header based on the MPLS protocol, and the loop-back processing and ECMP route forwarding are the same as those in this example.
It should be noted that the present invention can be embodied in other specific forms, and various changes and modifications can be made by those skilled in the art without departing from the spirit and scope of the invention.

Claims (10)

1. A method of tunneling data, comprising:
tunnel encapsulation is carried out on the message in the overlay network, and an outlet of the tunnel is set as a loop back port;
in a basic network, looping back a message packaged by a tunnel at a loop back port, searching an equivalent multi-path routing protocol (ECMP) routing table according to a target IP address of the message packaged by the tunnel to obtain a plurality of next hop IP addresses, and forwarding the message packaged by the tunnel through a plurality of forwarding ports corresponding to the plurality of next hop IP addresses;
the method further comprises the following steps:
establishing an inner ring port, and configuring Media Access Control (MAC) address offset for the inner ring port; the MAC address offset is used for enabling a source MAC address and a destination MAC address of a message sent by the inner ring port to be different.
2. The method of claim 1, wherein:
the export of tunnel sets up to the loopback mouth, includes: setting the outlet of the tunnel as an inner annular opening;
looping back the message encapsulated by the tunnel at the loop back port, including:
and sending the message encapsulated by the tunnel out at the inner ring port and receiving the message back from the inner ring port again.
3. The method of claim 1, prior to setting the exit of the tunnel as a loopback port, the method further comprising:
establishing a first outer ring opening and a second outer ring opening, and directly connecting the first outer ring opening with the second outer ring opening;
adding the first outer ring interface to a first virtual route forwarding instance VRF1, and adding the second outer ring interface to a second virtual route forwarding instance VRF 2;
recording the statically configured or dynamically learned ECMP routes in a routing table within VRF2, and importing the ECMP routes within VRF2 into the VRF 1; configuring a Media Access Control (MAC) address offset for the first outer ring port; the MAC address offset is used for enabling a source MAC address and a destination MAC address of a message sent out by the first outer ring port to be different.
4. The method of claim 3, wherein:
the export of tunnel sets up to the loopback mouth, includes: setting an outlet of the tunnel as a first outer annular opening;
the looping back the message encapsulated by the tunnel at the looping back port includes:
and sending the message subjected to tunnel encapsulation out at the first outer ring opening and receiving the message back from the second outer ring opening.
5. The method of claim 1, wherein:
the tunnel encapsulation of the message includes:
performing tunnel encapsulation of a corresponding encapsulation rule on the message according to the service characteristics of the message;
wherein, the service characteristics of the message include: the destination IP address and/or destination MAC address of the message.
6. An apparatus for tunneling data, comprising:
the tunnel encapsulation module is used for tunnel encapsulation of the message in the overlay network and setting the exit of the tunnel as a loop back port;
a loopback module, configured to loop back the tunneled packet at the loopback interface in a base network, and send the tunneled packet to a route forwarding module;
a route forwarding module, configured to search an equivalent multi-path routing protocol ECMP routing table according to a destination IP address of the tunnel-encapsulated packet in a base network to obtain multiple next-hop IP addresses, and forward the tunnel-encapsulated packet through multiple forwarding ports corresponding to the multiple next-hop IP addresses;
the configuration module is used for establishing an inner ring interface and configuring Media Access Control (MAC) address offset for the inner ring interface; the MAC address offset is used for enabling a source MAC address and a destination MAC address of a message sent out by the inner ring port to be different.
7. The apparatus of claim 6, wherein:
the tunnel encapsulation module is used for setting the exit of the tunnel as a loop back port in the following mode: setting the outlet of the tunnel as an inner annular opening;
a loopback module, configured to loop back the tunnel-encapsulated packet at the loopback interface in the following manner: and sending the message encapsulated by the tunnel out at the inner ring port and receiving the message back from the inner ring port again.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the configuration module is used for establishing a first outer ring opening and a second outer ring opening and directly connecting the first outer ring opening and the second outer ring opening; adding the first outer ring interface into a first virtual routing forwarding instance VRF1, and adding the second outer ring interface into a second virtual routing forwarding instance VRF 2; the statically configured or dynamically learned ECMP routes are recorded in a routing table within VRF2 and the ECMP routes within VRF2 are imported into the VRF 1.
9. The apparatus of claim 8, wherein:
the tunnel encapsulation module is used for setting the exit of the tunnel as a loop back port in the following mode: setting an outlet of the tunnel as a first outer annular opening;
a loopback module, configured to loop back the tunnel-encapsulated packet at the loopback interface in the following manner: and sending the message subjected to tunnel encapsulation out at the first outer ring opening and receiving the message back from the second outer ring opening.
10. The apparatus of claim 6, wherein:
the tunnel encapsulation module is used for tunnel encapsulation of the message in the following modes: performing tunnel encapsulation corresponding to encapsulation rules on the message according to the service characteristics of the message;
wherein, the service characteristics of the message include: the destination IP address and/or destination MAC address of the 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 CN109995654A (en) 2019-07-09
CN109995654B true 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)

Families Citing this family (10)

* 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
CN113542111A (en) * 2020-04-20 2021-10-22 华为技术有限公司 Message forwarding method and network equipment
CN111884904B (en) * 2020-07-23 2021-09-24 中盈优创资讯科技有限公司 Method and device for dynamically managing vxlan tunnel based on equipment configuration
CN114124617A (en) * 2020-08-31 2022-03-01 华为技术有限公司 Communication method, device, equipment and system
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
CN115914069A (en) * 2021-09-30 2023-04-04 中兴通讯股份有限公司 Data forwarding method, system, electronic device and storage medium
CN115514702A (en) * 2022-09-16 2022-12-23 苏州盛科科技有限公司 Method and device for quickly switching link, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267402A (en) * 2008-05-08 2008-09-17 北京邮电大学 Dual-label transmission and control mechanism based on T-MPLS
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

Family Cites Families (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
CN101599883A (en) * 2008-07-02 2009-12-09 上海恩际恩网络科技有限公司 A kind of safe transmission network system framework based on overlay network
US9008082B2 (en) * 2009-12-07 2015-04-14 Telefonaktiebolaget L M Ericsson (Publ) Handling data packets received at a routing node
US20140086253A1 (en) * 2012-09-26 2014-03-27 Futurewei Technologies, Inc. Overlay Virtual Gateway for Overlay Networks
US9350657B2 (en) * 2013-07-08 2016-05-24 Nicira, Inc. Encapsulating data packets using an adaptive tunnelling protocol
US9832102B2 (en) * 2013-08-07 2017-11-28 Telefonaktiebolaget L M Ericsson (Publ) Automatic establishment of redundant paths with cautious restoration in a packet network
US9667538B2 (en) * 2015-01-30 2017-05-30 Telefonaktiebolget L M Ericsson (Publ) Method and apparatus for connecting a gateway router to a set of scalable virtual IP network appliances in overlay networks
CN106330597B (en) * 2015-07-10 2019-07-26 新华三技术有限公司 Path between VXLAN endpoint of a tunnel VTEP is up to detection method and device
CN106470157B (en) * 2015-08-21 2020-06-30 中兴通讯股份有限公司 Method and device for setting priority of tunnel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267402A (en) * 2008-05-08 2008-09-17 北京邮电大学 Dual-label transmission and control mechanism based on T-MPLS
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

Also Published As

Publication number Publication date
CN109995654A (en) 2019-07-09
WO2019129236A1 (en) 2019-07-04

Similar Documents

Publication Publication Date Title
CN109995654B (en) Method and device for transmitting data based on tunnel
CN109873760B (en) Method and device for processing route, and method and device for data transmission
CN111510379B (en) EVPN message processing method, device and system
US8565230B2 (en) Shared virtual tunnels supporting Mac learning in communication networks
US20200396162A1 (en) Service function chain sfc-based communication method, and apparatus
US8861547B2 (en) Method, apparatus, and system for packet transmission
CN107612808B (en) Tunnel establishment method and device
WO2016015497A1 (en) Method, device and system for forwarding packet
CN104869042A (en) Message forwarding method and message forwarding device
WO2015165311A1 (en) Method for transmitting data packet and provider edge device
WO2022062506A1 (en) Data processing method and apparatus, storage medium, and electronic apparatus
CN104660508A (en) Message forwarding method and device
US10110465B2 (en) Distributed HSRP gateway in VxLAN flood and learn environment with faster convergence
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
EP3054634B1 (en) Scheme for performing one-pass tunnel forwarding function on two-layer network structure
CN102368727A (en) Crossed IP network TRILL network communication method, system thereof and devices
WO2018058639A1 (en) Pseudo wire load sharing method and apparatus
CN103780470B (en) A kind of information synchronization method of IS IS and device
US10757066B2 (en) Active-active access to transparent interconnection of lots of links (TRILL) edges
WO2022042547A1 (en) Traffic forwarding processing method, and device
CN101286918A (en) Virtual private network system and data processing method thereof
CN104780090A (en) VPN multicast transmission method and device PE equipment
CN110199504B (en) Method and system for enhanced use of switching fabric within central office delivery point
CN114598635A (en) Message transmission method and device
CN101499950B (en) Service provider backbone transmission ring multicast method, multicast ring network and node equipment

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