CN112751758B - Routing information transmission method and device and data center internet - Google Patents

Routing information transmission method and device and data center internet Download PDF

Info

Publication number
CN112751758B
CN112751758B CN201911048116.1A CN201911048116A CN112751758B CN 112751758 B CN112751758 B CN 112751758B CN 201911048116 A CN201911048116 A CN 201911048116A CN 112751758 B CN112751758 B CN 112751758B
Authority
CN
China
Prior art keywords
dci
forwarding instance
instance
forwarding
routing
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
CN201911048116.1A
Other languages
Chinese (zh)
Other versions
CN112751758A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201911048116.1A priority Critical patent/CN112751758B/en
Publication of CN112751758A publication Critical patent/CN112751758A/en
Application granted granted Critical
Publication of CN112751758B publication Critical patent/CN112751758B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/354Switches specially adapted for specific applications for supporting virtual local area networks [VLAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

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

Abstract

The application discloses a method and a device for transmitting routing information and a data center interconnection network, and belongs to the technical field of networks. The first DCI equipment receives a first message from a BGP EVPN neighbor of the first DCI equipment, wherein the first message comprises the routing information of a first forwarding instance of the access equipment in the first data center and an outgoing direction routing target of the first forwarding instance. The first DCI equipment acquires a second forwarding instance corresponding to the first message in the first DCI equipment, and an incoming direction routing target of the second forwarding instance is matched with an outgoing direction routing target of the first forwarding instance. The first DCI equipment generates a second message based on the first message, wherein the second message comprises the routing information of the second forwarding instance and the outgoing direction routing target of the second forwarding instance. Finally, when the second forwarding instance is a DCI interworking instance, the first DCI device sends a second message to a second DCI device in a second data center.

Description

Routing information transmission method and device and data center internet
Technical Field
The present application relates to the field of network technologies, and in particular, to a method and an apparatus for transmitting routing information, and a data center interconnection network.
Background
In order to meet the scenes of cross-regional operation, user access, remote disaster recovery and the like, a plurality of data centers are generally deployed in multiple regions. In order to enable communication between Virtual Machines (VMs) in different data centers, solutions for data center interconnect (DATA CENTER DCI) have been proposed. Data center interconnection can be currently achieved through an end-to-end virtual extensible local area network (virtual extensible local area network, VXLAN), virtual local area network (virtual local area network, VLAN) back-to-back (VLAN hand-off), or segmented VXLAN (segment VXLAN).
The data center interconnection realized by the sectional VXLAN means that a section of VXLAN tunnel is built in each of two data centers, and a section of VXLAN tunnel is built between the two data centers. Two VXLAN tunnel endpoints (VXLAN Tunnel End Point, VTEP) of a VXLAN tunnel inside a data center are respectively disposed on an access device (a switch connected to a server, which may be called a server-leaf) and a DCI device (an edge device as a data center is connected to a switch of another data center, which may be called a DCI-leaf) of the data center, that is, a border gateway protocol (Border Gateway Protocol, BGP) ethernet virtual private network (Ethernet virtual private network, EVPN) peer-to-peer relationship is established between the access device and the DCI device of the data center. Two VTEPs of the VXLAN tunnel between the two data centers are respectively arranged on DCI equipment of the two data centers, namely, BGP EVPN peer-to-peer relationship is established between the DCI equipment of the two data centers. When the DCI equipment of one data center receives the routing information sent by the access equipment of the data center, the received routing information is transmitted to the DCI equipment of the other data center.
However, since the route information sent by the access device to the DCI device may not be used for DCI forwarding, the DCI device may send all received route information to the opposite DCI device, which not only causes transmission resource waste, but also wastes memory resources and computing resources of the opposite DCI device.
Disclosure of Invention
The application provides a method and a device for transmitting route information and a data center interconnection network, which can solve the problems of transmission resource waste and memory resource and calculation resource waste of opposite DCI equipment caused in the current process of transmitting route information.
In a first aspect, a method for transmitting routing information is provided, which is applied to a DCI network. The first DCI device in the first data center receives a first message from a BGP EVPN neighbor of the first DCI device in the first data center, the first message including routing information of a first forwarding instance of an access device in the first data center and an outbound routing target of the first forwarding instance. The first DCI equipment acquires a second forwarding instance corresponding to the first message in the first DCI equipment, and the incoming direction routing target of the second forwarding instance is matched with the outgoing direction routing target of the first forwarding instance. The first DCI equipment generates a second message based on the first message, wherein the second message comprises the routing information of the second forwarding instance and the outgoing direction routing target of the second forwarding instance. When the second forwarding instance is a DCI interworking instance, the first DCI device sends a second message to a second DCI device in the second data center, where the second DCI device is a BGP EVPN neighbor of the first DCI device.
In the application, by planning the DCI intercommunication example in the first DCI equipment in advance and adding the DCI identifier to the DCI intercommunication example in the configuration information of the first DCI equipment, the first DCI equipment only transmits the message generated for the DCI intercommunication example to the second DCI equipment, and the filtering of the routing information is realized at the transmitting end, so that not only can the transmission of multiple groups of repeated routing information be avoided, but also the transmission of the routing information transmitted in the data center to other data centers can be avoided, and further the waste of transmission resources and the waste of memory resources and calculation resources of the second DCI equipment are reduced. In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment and is not required to be transmitted to the opposite terminal through the BGP EVPN protocol, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Optionally, the outgoing direction route target of the DCI interworking instance includes a DCI interworking route target.
Optionally, the first DCI device further generates a forwarding entry of the second forwarding instance based on the routing information of the first forwarding instance.
In a second aspect, a method for transmitting routing information is provided, which is applied to a DCI network. A second DCI device in the second data center receives a first message sent by a first DCI device in the first data center, where the first message includes routing information of a first forwarding instance of the first DCI device and an outgoing direction routing target of the first forwarding instance, and the second DCI device is a BGP EVPN neighbor of the first DCI device. The second DCI equipment acquires a second forwarding instance corresponding to the first message in the second DCI equipment, and the incoming direction routing target of the second forwarding instance is matched with the outgoing direction routing target of the first forwarding instance. When the second forwarding instance is a DCI interworking instance, the second DCI device generates a second message based on the first message, wherein the second message comprises routing information of the second forwarding instance and an outgoing direction routing target of the second forwarding instance. The second DCI device sends a second message to BGP EVPN neighbors of the second DCI device in the second data center.
In the application, by planning the DCI intercommunication example in the second DCI equipment in advance and adding the DCI identifier to the DCI intercommunication example in the configuration information of the second DCI equipment, the second DCI equipment processes the message sent by the first DCI equipment only aiming at the DCI intercommunication example, the filtering of the routing information is realized at the receiving end, the error routing is avoided when the incoming direction routing target of the intercommunication example in a certain DC of the second DCI equipment is the same as the local DCI intercommunication routing target of the first data center, and the network security is ensured. In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Optionally, after the second DCI device obtains the second forwarding instance corresponding to the first message in the second DCI device, when the second forwarding instance is not the DCI interworking instance, the second DCI device further determines that the second forwarding instance is irrelevant to the first message.
Optionally, the ingress direction route target of the DCI interworking instance includes a DCI interworking route target.
Optionally, when the second forwarding instance is a DCI interworking instance, the second DCI device further generates a forwarding entry of the second forwarding instance based on the routing information of the first forwarding instance.
In a third aspect, a routing information transmission apparatus is provided. The apparatus comprises a plurality of functional modules that interact to implement the method of the first aspect and embodiments thereof described above. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on the specific implementation.
In a fourth aspect, a routing information transfer apparatus is provided. The apparatus comprises a plurality of functional modules that interact to implement the method of the second aspect and embodiments thereof described above. The plurality of functional modules may be implemented based on software, hardware, or a combination of software and hardware, and the plurality of functional modules may be arbitrarily combined or divided based on the specific implementation.
In a fifth aspect, there is provided a routing information transmission apparatus including: a processor and a memory;
the memory is used for storing a computer program, and the computer program comprises program instructions;
the processor is configured to invoke the computer program to implement the routing information transmission method according to any one of the first aspects.
In a sixth aspect, there is provided a routing information transmission apparatus including: a processor and a memory;
the memory is used for storing a computer program, and the computer program comprises program instructions;
The processor is configured to invoke the computer program to implement the routing information transmission method according to any one of the second aspects.
In a seventh aspect, there is provided a computer storage medium having instructions stored thereon, which when executed by a processor, implement the routing information transmission method according to any one of the first or second aspects.
In an eighth aspect, a chip is provided, the chip comprising programmable logic circuits and/or program instructions, which when the chip is run, implement the method of the first aspect and its embodiments.
The technical scheme provided by the application has the beneficial effects that at least:
By planning the DCI intercommunication example in the DCI equipment in advance and adding the DCI mark to the DCI intercommunication example in the configuration information of the DCI equipment, the DCI equipment only transmits the message generated for the DCI intercommunication example to the opposite-end DCI equipment, and the filtering of the routing information is realized at the transmitting end, so that not only can the transmission of multiple groups of repeated routing information be avoided, but also the transmission of the routing information transmitted in the data center to other data centers can be avoided, and further, the waste of transmission resources and the waste of memory resources and computing resources of the second DCI equipment are reduced. By planning a DCI intercommunication example in opposite terminal DCI equipment in advance and adding a DCI mark to the DCI intercommunication example in configuration information of opposite terminal DCI equipment, the opposite terminal DCI equipment processes a message sent by the DCI equipment only aiming at the DCI intercommunication example, filtering of routing information is realized at a receiving terminal, and error routing is avoided when an incoming direction routing target of the intercommunication example in a certain DC of the opposite terminal DCI equipment is identical to a local DCI intercommunication routing target of a first data center, so that network safety is ensured.
In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Drawings
Fig. 1 is a schematic structural diagram of a DCI network according to an embodiment of the present application;
fig. 2 is a flow chart of a method for transmitting routing information according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a routing information transmission device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another routing information transmission apparatus according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a routing information transmission device according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of another routing information transmission apparatus according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of yet another routing information transmission apparatus according to another embodiment of the present application;
fig. 8 is a block diagram of a routing information transmission apparatus according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a DCI network according to an embodiment of the present application. As shown in fig. 1, the DCI network includes a first data center DC1 and a second data center DC2 interconnected. The first data center DC1 includes therein a first DCI device 101A and a first access device 101B. The second data center DC2 includes therein a second DCI device 102A and a second access device 102B. A BGP EVPN peering relationship is established between the first DCI device 101A and the second DCI device 102A, that is, the first DCI device 101A and the second DCI device 102A are BGP EVPN neighbors. The number of DCI devices and access devices in each data center of the DCI network in fig. 1 is merely used as an exemplary illustration and is not intended to limit the DCI network provided by the embodiments of the present application. The DCI device and the access device may be a switch or a router, etc.
Optionally, referring to fig. 1, a BGP EVPN peer relationship is established between the first DCI device 101A and the first access device 101B, that is, the first DCI device 101A and the first access device 101B are BGP EVPN neighbors. A BGP EVPN peering relationship is established between the second DCI device 102A and the second access device 102B, that is, the second DCI device 102A and the second access device 102B are BGP EVPN neighbors.
Optionally, a routing reflector may also be included in the first data center DC 1. The first DCI device 101A and the first access device 101B respectively establish BGP EVPN peering relationships with a routing reflector in the first data center DC1, through which the first DCI device 101A and the first access device 101B are indirectly communicatively connected. A routing reflector may also be included in the second data center DC 2. The second DCI device 102A and the second access device 102B establish BGP EVPN peering relationships with a routing reflector in the second data center DC2, respectively, through which the second DCI device 102A and the second access device 102B are indirectly communicatively connected.
In the embodiment of the application, the access device refers to a switch for connecting to a server, which may be called a server-leaf. The DCI device acts as an edge device of the data center, and is used to connect switches of other data centers, which may be referred to as DCI-leaf. The route reflector is used to forward the route information communicated between the access device and the DCI device (the route reflector does not modify the received route information during forwarding).
Optionally, one or more forwarding instances are configured in the access device, where one forwarding instance corresponds to a forwarding table that is locally available on the device. The DCI device is configured with a plurality of forwarding instances. Some forwarding instances in a DCI device may be used for data forwarding between different data centers (i.e., for DCI interworking), and other forwarding instances may be used for data forwarding within a data center (i.e., for DC intra-interworking). Each forwarding instance in the same device works independently for achieving route isolation. In the embodiment of the application, the forwarding instance in the access device and the DCI device can be a two-layer forwarding instance (L2 VPN instance) or a three-layer forwarding instance (L3 VPN instance). The L2VPN instance may also be referred to as a Bridge Domain (BD) instance (corresponding to a two-layer forwarding domain). The L3VPN instance may also be referred to as a virtual routing forwarding (virtual routing forwarding, VRF) instance (corresponding to a three-layer forwarding domain). Wherein each forwarding instance is configured with a route target (route target), which may also be referred to as vpn-target. Route target is a BGP extended community attribute, and each forwarding instance needs to configure both outbound and inbound Route targets. When the exit direction route target value of the local forwarding instance configuration is equal to the entry direction route target value of the opposite forwarding instance configuration, the local end and the opposite end can exchange BGP EVPN routes with each other. In the embodiment of the present application, the ingress direction route target is abbreviated as iRT, and the egress direction route target is abbreviated as eRT.
Optionally, one forwarding instance is configured with one or more route targets. For example, referring still to fig. 1, forwarding instance a, forwarding instance B, and forwarding instance AA' are included in first DCI device 101A within first data center DC 1. The first access device 101B includes a forwarding instance a and a forwarding instance B therein. iRT and eRT for forwarding instance A are each 1:100, iRT and eRT for forwarding instance B are each 1:1000, and iRT and eRT for forwarding instance AA' include each 1:100 and 66:66. A forwarding instance a ', a forwarding instance C, and a forwarding instance a' a are included in the second DCI device 102A within the second data center DC 2. The second access device 102B includes a forwarding instance a' and a forwarding instance C. iRT and eRT of forwarding instance a 'a each comprise 2:100 and 66:66, iRT and eRT of forwarding instance a' are each 2:100, and iRT and eRT of forwarding instance C are each 1:100. The forwarding instance A, the forwarding instance B, the forwarding instance A ' and the forwarding instance C are respectively configured with one route target, and the forwarding instance AA ' and the forwarding instance A ' are respectively configured with two route targets.
Because different data centers are typically independently programmed, forwarding instances in different data centers may be configured with the same route target. For example, the route target of forwarding instance a in the first data center DC1 is the same as the route target of forwarding instance C in the second data center DC 2.
Assume that, in the DCI network shown in fig. 1, virtual machine VM1a suspended from first access device 101B corresponds to forwarding instance a, and virtual machine VM1B corresponds to forwarding instance B. The virtual machine VM2a suspended from the second access device 102B corresponds to the forwarding instance a', and the virtual machine VM2B corresponds to the forwarding instance C. Wherein, the virtual machine VM1a and the virtual machine VM2a are deployed in the same VLAN, and the virtual machine VM1a and the virtual machine VM2b are deployed in different VLANs. At this time, interworking between the forwarding instance a of the first access device 101B and the forwarding instance a 'of the second access device 102B needs to be achieved, that is, routing information needs to be transferred between the forwarding instance a of the first access device 101B and the forwarding instance a' of the second access device 102B.
According to the current routing manner, the process of implementing interworking between the forwarding instance a of the first access device 101B and the forwarding instance a' of the second access device 102B includes:
The first access device 101B learns the host address of the virtual machine VM1A, generates a routing table entry, stores the routing table entry in the routing table of the forwarding instance a, generates a BGP EVPN route corresponding to the forwarding instance a, and then sends a packet including routing information of the forwarding instance a of the first access device 101B and eRT (1:100) of the forwarding instance a to the first DCI device 101A. Since eRT (1:100) of forwarding instance a in the first access device 101B matches iRT (1:100) of forwarding instance a and iRT (1:100 66:66) of forwarding instance AA ' in the first DCI device 101A, the first DCI device 101A generates two messages according to the message sent by the first access device 101B, one message includes routing information of forwarding instance a of the first DCI device 101A and eRT (1:100) of forwarding instance a, and the other message includes routing information of forwarding instance AA ' of the first DCI device 101A and eRT (1:100 66:66) of forwarding instance AA '. The first DCI device 101A then transmits the two messages to the second DCI device 102A. However, the routing information of the forwarding instance a and the routing information of the forwarding instance AA' of the first DCI device 101A are the same, and both include the host address of the virtual machine VM1A and the VTEP address of the first DCI device 101A, and sending two messages by the first DCI device 101A to the second DCI device 102A may cause repeated delivery of the routing information and waste of transmission resources. In addition, the first DCI device 101A directly forwards the received packet sent by the first access device 101B to the second DCI device 102A, which may cause the first DCI device 101A to transmit a large amount of useless routing information to the second DCI device and may also cause transmission resource waste. After receiving the messages sent by the first DCI device 101A, the second DCI device 102A needs to process each message separately, and when the second DCI device 102A receives a plurality of messages including repeated routing information and/or messages including useless routing information, processing the messages may cause waste of memory resources and computing resources of the second DCI device.
Taking the example that the second DCI device 102A receives the packet including the routing information of the forwarding instance a of the first DCI device 101A and eRT (1:100 66:66) of the forwarding instance AA' of the first DCI device 101A. Since eRT (1:100 66:66) of forwarding instance AA 'of first DCI device 101A matches iRT (2:10066:66) of forwarding instance a' a and iRT (1:100) of forwarding instance C in second DCI device 102A, second DCI device 102A generates two messages, one including routing information of forwarding instance a 'a of second DCI device 102A and eRT (2:100 66:66) of forwarding instance a' a, and the other including routing information of forwarding instance C of second DCI device 102A and eRT (1:100) of forwarding instance C. The second DCI device 102A then sends the two messages to the second access device 102B.
When the second access device 102B receives the routing information including the forwarding instance a 'a of the second DCI device 102A and eRT (2:100:66) of the forwarding instance a' a, the routing information may be matched to the forwarding instance a 'with iRT being (2:100) in the second access device 102B, so as to implement interworking between the forwarding instance a of the first access device 101B and the forwarding instance a' of the second access device 102B, and further implement communication between the virtual machine VM1a and the virtual machine VM 2A. However, when the second access device 102B receives the routing information including the forwarding instance C of the second DCI device 102A and eRT (1:100) of the forwarding instance C, the forwarding instance C that may be matched to the forwarding instance C with iRT being (1:100) in the second access device 102B may cause error interworking between the forwarding instance a of the first access device 101B and the forwarding instance C of the second access device 102B, and further cause error communication between the virtual machine VM1a and the virtual machine VM2B that do not belong to the same VLAN, resulting in a network security hidden trouble.
In addition, according to the current routing manner, after the first access device 101B sends, to the first DCI device 101A, a packet including routing information of a forwarding instance B of the first access device 101B and eRT (1:1000) of the forwarding instance B, the first DCI device 101A may match to a forwarding instance B with iRT being (1:1000) in the first DCI device 101A, generate a packet including the routing information of the forwarding instance B and eRT (1:1000) of the forwarding instance B, and then send the packet to the second DCI device 102A. However, since the forwarding instance B in the first access device 101B does not need to communicate with devices in the second data center, this process causes a waste of transmission resources, and after the second DCI device 102A receives the packet, the packet needs to be processed, which also wastes the memory resources and the computing resources of the second DCI device.
Fig. 2 is a flow chart of a method for transmitting routing information according to an embodiment of the present application. May be applied to a DCI network as shown in fig. 1. As shown in fig. 2, the method includes:
Step 201, a first DCI device in a first data center receives a first message from a BGP EVPN neighbor of the first DCI device in the first data center.
The first message includes routing information of a first forwarding instance of an access device in a first data center and an outbound routing target of the first forwarding instance. The first message also includes an extended community attribute. In the embodiment of the present application, the value of the extended community attribute of the message is the type number of the VXLAN tunnel, and the specific value of the extended community attribute can refer to the related explanation of the path attribute (path attributes) in the BGP update message in the request for comments (request for comments, RFC) 4271, which is not described herein.
In the embodiment of the application, the route information of the forwarding instance of the access device and the DCI device comprises the BGP EVPN route corresponding to the forwarding instance and the next hop. Wherein the next hop is the VTEP address of the access device.
Optionally, after learning a host internet protocol (Internet Protocol, IP) address and/or a host media access control (MEDIA ACCESS control, MAC) address of the local VM, the access device in the first data center generates a routing table entry, stores the routing table entry in a routing table of the first forwarding instance, and generates a BGP EVPN route corresponding to the first forwarding instance.
The BGP EVPN route corresponding to the forwarding instance of the access device includes a host IP address and/or a host MAC address of the local VM learned by the access device. The BGP EVPN route corresponding to the forwarding instance of the access device may be a Type2 route (MAC route/IP route), a Type3 route (inclusive multicast route), or a Type5 route (IP prefix route) defined in BGP network layer reachability information (network layer reachability information, NLRI). The Type2 route is used to advertise a host MAC address, a host address resolution protocol (Address Resolution Protocol, ARP) mapping (i.e., a correspondence between an IP address and a MAC address), or a host IP address, that is, the Type2 route may be used to advertise two-layer routing information and/or three-layer routing information. When a Type2 route is used to advertise a host ARP map, the Type2 route may also be referred to as an ARP Type route. When a Type2 route is used to advertise a host IP address, the Type2 route may also be referred to as an integrated route and bridging (INTEGRATED ROUTING AND BRIDGE, IRB) Type route. Type3 routing is used to pass the two-layer VXLAN network identification (VXLAN network identifier, VNI) and VTEP address. Type5 routing is used to advertise host IP addresses or segment addresses, i.e., type5 routing can be used to advertise three layers of routing information. Of course, the BGP EVPN route may also be a Type6 route, a Type7 route, or a Type8 route, or may also be another Type of route that evolves later, and the Type of BGP EVPN route is not limited in the embodiment of the present application.
Optionally, the message for delivering the routing information in the embodiment of the present application includes the contents in table 1.
TABLE 1
BGP EVPN routing
Next hop
Extending community attributes
eRT
Illustratively, the access device of the first data center is a first access device 101B in the DCI network as shown in fig. 1, and the first forwarding instance is a forwarding instance a in the first access device 101B. Assuming that the VTEP address of the first access device 101B is 1.1.1.1 and the host IP address of the virtual machine VM1a corresponding to the forwarding instance a is 192.102.11.1, the content of the first packet may be referred to in table 2.
TABLE 2
Optionally, the BGP EVPN neighbor of the first DCI device may be an access device in the first data center, or may be a route reflector in the first data center. When BGP EVPN neighbors of the first DCI device are route reflectors, the route reflectors forward a first message sent by the access device to the route reflectors to the first DCI device.
Step 202, a first DCI device obtains a second forwarding instance corresponding to the first message in the first DCI device.
The ingress direction routing target of the second forwarding instance in the first DCI device is matched with the egress direction routing target of the first forwarding instance of the first access device. The matching of the ingress direction routing target of one forwarding instance with the egress direction routing target of another forwarding instance means that there is an intersection of one or more ingress direction routing targets configured by the forwarding instance with one or more egress direction routing targets configured by the other forwarding instance.
Illustratively, the first DCI device is a first DCI device 101A in the DCI network as shown in fig. 1, and, in conjunction with the example in step 201, iRT (1:100) of forwarding instance a and iRT (1:10066:66) of forwarding instance AA' in the first DCI device 101A match eRT (1:100) of forwarding instance a of the first access device 101B. Then in step 202, the second forwarding instance of the corresponding first packet acquired by the first DCI device 101A includes a forwarding instance a and a forwarding instance AA'.
Step 203, the first DCI device generates a forwarding table entry of a second forwarding instance of the first DCI device based on routing information of the first forwarding instance of the access device in the first data center.
Optionally, after receiving the first message, the first DCI device sends the first message to each forwarding instance of the first DCI device. Each forwarding instance respectively judges whether the forwarding instance corresponds to the first message or not, namely, judges whether an own incoming direction routing target is matched with an outgoing direction routing target carried in the first message or not. If the forwarding instance corresponds to the first message, the first DCI device generates a forwarding table entry of the forwarding instance. If the forwarding instance does not correspond to the first message, the forwarding instance directly discards the first message.
For example, referring to the example in step 202, the forwarding table entry of forwarding instance a and the forwarding table entry of forwarding instance AA' in first DCI device 101A generated by first DCI device 101A based on the routing information of forwarding instance a of first access device 101B may be as shown in table 3.
TABLE 3 Table 3
Destination IP address Next hop Outlet interface
192.102.11.1 1.1.1.1 VXLAN tunnel
In step 204, the first DCI device generates a second message based on the first message.
The second message includes routing information of a second forwarding instance of the first DCI device and an outbound routing target of the second forwarding instance. The first DCI device generates a second message based on the first message, including: the first DCI device modifies the next hop in the first message into the VTEP address of the first DCI device, replaces eRT with the outgoing direction routing target of the second forwarding instance, and repackages the second message.
Illustratively, referring to the example in step 203, the first DCI device 101A generates a message including routing information of forwarding instance a of the first DCI device 101A and eRT of the forwarding instance a based on the first message. And the first DCI device 101A generates, based on the first message, a message including routing information of a forwarding instance AA 'of the first DCI device 101A and eRT of the forwarding instance AA'. Assuming that the VTEP address of the first DCI device 101A is 2.2.2.2, the content included in the packet corresponding to the forwarding instance a generated by the first DCI device 101A may be referred to in table 4, and the content included in the packet corresponding to the forwarding instance AA' generated by the first DCI device 101A may be referred to in table 5.
TABLE 4 Table 4
TABLE 5
BGP EVPN routing 192.102.11.1
Next hop 2.2.2.2
Extending community attributes VXLAN tunnel model
eRT 1:100 66:66
Step 205, when the second forwarding instance is a DCI interworking instance, the first DCI device sends a second message to a second DCI device in a second data center.
The second DCI device in the second data center is a BGP EVPN neighbor of the first DCI device in the first data center. In the DCI network provided by the embodiment of the present application, a data center is configured with a local interworking route target and a DCI interworking route target, where the local interworking route target of the data center is different from the DCI interworking route target. The local interworking route target of the data center can be independently planned by the data center, and the DCI interworking route target is usually planned by the two interconnected data centers together.
Alternatively, a forwarding instance for intra-DC interworking (hereinafter referred to as an intra-DC interworking instance) may be configured with a local interworking routing target of the data center. The forwarding instance for DCI interworking (i.e., the DCI interworking instance in the embodiment of the present application) may be configured with a DCI interworking route target, and the DCI interworking instance may also be configured with a local interworking route target of the data center. The outgoing direction route target of the DCI interworking instance of the first DCI device includes a DCI interworking route target.
In the embodiment of the application, the DCI intercommunication example can be planned in the DCI equipment in advance, and the DCI identifier is added to the DCI intercommunication example in the configuration information of the DCI equipment. The forwarding instance configured with the DCI identifier indicates that the forwarding instance is a DCI interworking instance, i.e. the forwarding instance enables DCI interworking. A forwarding instance that is not configured with a DCI identification indicates that the forwarding instance is not a DCI interworking instance, i.e. the forwarding instance does not enable DCI interworking.
For example, in the DCI network shown in fig. 1, it is planned that the forwarding instance AA ' of the first DCI device 101A is a DCI interworking instance, the forwarding instance a is not a DCI interworking instance, and both the forwarding instance AA ' and the forwarding instance a are L3VPN instances, and in the configuration information of the first DCI device 101A, the configurations of the forwarding instance AA ' and the forwarding instance a are as follows:
wherein, "DCI-flag enable" indicates a DCI identifier, setting indicates that the forwarding instance is a DCI interworking instance, and non-setting indicates that the forwarding instance is not a DCI interworking instance. The above configuration indicates that forwarding instance AA' is a DCI interworking instance and forwarding instance a is not a DCI interworking instance.
Illustratively, referring to the example in step 204, since forwarding instance AA' of first DCI device 101A is a DCI interworking instance, the first DCI device sends a message containing the contents of table 5 to the second DCI device. In addition, since the forwarding instance a of the first DCI device 101A is not a DCI interworking instance, the first DCI device may not send a message including the contents in table 4 to the second DCI device, and the first DCI device may store the message in the first DCI device, may forward the message to other devices in the first data center, or may discard the message.
In the embodiment of the application, the DCI intercommunication example is planned in advance in the first DCI equipment, and the DCI identification is added to the DCI intercommunication example in the configuration information of the first DCI equipment, so that the first DCI equipment only transmits the message generated for the DCI intercommunication example to the second DCI equipment, the filtering of the routing information is realized at the transmitting end, the transmission of multiple groups of repeated routing information can be avoided, the transmission of the routing information transmitted in the data center to other data centers can be avoided, and the waste of transmission resources and the waste of memory resources and calculation resources of the second DCI equipment are further reduced. In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment and is not required to be transmitted to the opposite terminal through the BGP EVPN protocol, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Optionally, before the first DCI device sends the second message to the second DCI device, the first DCI device needs to determine whether the second DCI device is a DCI BGP EVPN neighbor of the first DCI device, that is, determine whether the second DCI device and the first DCI device are in different data centers. In the embodiment of the application, the first DCI equipment can judge whether the BGP EVPN neighbor of the first DCI equipment is the DCI BGP EVPN neighbor according to the DCI attribute by directly setting the DCI attribute of the BGP EVPN neighbor. Or may implicitly specify whether the BGP EVPN neighbor is a DCI BGP EVPN neighbor by other means, such as setting a horizontal split group attribute. Or, the method can also be used for comprehensively judging through a typical scene, for example, iBGP EVPN is adopted among the BGP EVPN peers in the DC, eBGP EVPN is adopted among the DCI BGP EVPN peers, and when the DCI BGP EVPN peers need to transmit iBGP routes to the opposite terminal, the next hop is modified to be a certain address of the device.
Step 206, the second DCI device obtains a third forwarding instance corresponding to the second message in the second DCI device.
The ingress direction routing target of the third forwarding instance matches the egress direction routing target of the second forwarding instance of the first DCI device. This step is explained with reference to step 202, and the embodiments of the present application are not described herein.
Illustratively, continuing with the DCI network shown in fig. 1 as an example, when the second DCI device receives the second packet including the contents in table 5, in step 206, the third forwarding instance of the second packet acquired by the second DCI device includes forwarding instance a' a and forwarding instance C.
Step 207, when the third forwarding instance of the second DCI device is the DCI interworking instance, the second DCI device generates a forwarding entry of the third forwarding instance based on the routing information of the second forwarding instance of the first DCI device in the first data center.
Optionally, the ingress direction routing target of the DCI interworking instance of the second DCI device includes a DCI interworking routing target. The implementation process of generating a forwarding table entry of the third forwarding instance by the second DCI device based on the routing information of the second forwarding instance of the first DCI device in the first data center may refer to step 203, and the embodiments of the present application are not described herein.
For example, in the DCI network shown in fig. 1, it is planned that forwarding instance a ' a of the second DCI device 102A is a DCI interworking instance, forwarding instance C is not a DCI interworking instance, and both forwarding instance a ' a and forwarding instance C are L3VPN instances, and in the configuration information of the second DCI device 102A, the configuration of forwarding instance a ' a and forwarding instance C is as follows:
Wherein, "DCI-flag enable" indicates a DCI identifier, setting indicates that the forwarding instance is a DCI interworking instance, and non-setting indicates that the forwarding instance is not a DCI interworking instance. The above configuration indicates that forwarding instance a' a is a DCI interworking instance and forwarding instance C is not a DCI interworking instance.
Illustratively, referring to the example in step 206, since the forwarding instance a ' a of the second DCI device 102A is a DCI interworking instance, the second DCI device 102A generates a forwarding entry for the forwarding instance a ' a of the second DCI device 102A based on the routing information for the forwarding instance AA ' of the first DCI device 101A, which may be as shown in table 6.
TABLE 6
Destination IP address Next hop Outlet interface
192.102.11.1 2.2.2.2 VXLAN tunnel
Optionally, when the third forwarding instance of the second DCI device is not the DCI interworking instance, the second DCI device determines that the third forwarding instance is not related to the second message, that is, the second DCI device determines that the third forwarding instance is not used to process the message received across the data center. If the forwarding instance matched by the second DCI equipment based on the second message is not the DCI interworking instance, the second DCI equipment directly discards the second message.
Illustratively, referring to the example in step 206, since forwarding instance C of second DCI device 102A is not a DCI interworking instance, the second DCI device determines that forwarding instance C is not associated with the second message, i.e., the second DCI device does not generate a routing entry for forwarding instance C based on routing information in the second message.
In the embodiment of the application, the DCI intercommunication example is planned in advance in the second DCI equipment, and the DCI identifier is added to the DCI intercommunication example in the configuration information of the second DCI equipment, so that the second DCI equipment only processes the message sent by the first DCI equipment aiming at the DCI intercommunication example, the filtering of the routing information is realized at the receiving end, the error routing is avoided when the incoming direction routing target of the intercommunication example in a certain DC of the second DCI equipment is the same as the local DCI intercommunication routing target of the first data center, and the network security is ensured. In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Step 208, when the third forwarding instance of the second DCI device is the DCI interworking instance, the second DCI device generates a third message based on the second message.
The third message includes the routing information of the third forwarding instance and the outgoing direction routing target of the third forwarding instance. The process of generating the third message by the second DCI device based on the second message may refer to the process of generating the second message by the first DCI device based on the first message in step 204, which is not described herein in detail.
Illustratively, referring to the example in step 207, the second DCI device 102A generates a message including routing information of forwarding instance a 'a of the second DCI device 102A and eRT of the forwarding instance a' a based on the second message. Assuming that the VTEP address of the second DCI device 102A is 3.3.3.3, the content included in the message corresponding to the forwarding instance a' a may be referred to in table 7.
TABLE 7
BGP EVPN routing 192.102.11.1
Next hop 3.3.3.3
Extending community attributes VXLAN tunnel model
eRT 2:100 66:66
The above steps 207 and 208 are not limited in order.
Step 209, the second DCI device sends a third message to a BGP EVPN neighbor of the second DCI device in the second data center.
Illustratively, in a DCI network as shown in fig. 1, the BGP EVPN neighbor of the second DCI device 102A in the second data center may be the second access device 102B. After the second access device 102B receives the third packet, a forwarding table entry of the forwarding instance a 'may be generated based on the routing information of the forwarding instance a' a of the second DCI device 102A carried in the third packet, where the forwarding table entry may be shown in table 8. Up to this point, interworking is achieved between the forwarding instance a of the first access device 101B and the forwarding instance a' of the second access device 102B.
TABLE 8
Destination IP address Next hop Outlet interface
192.102.11.1 3.3.3.3 VXLAN tunnel
The sequence of the steps of the routing information transmission method provided in the embodiment of the present application may be appropriately adjusted, for example, step 203 may be performed before step 202, and step 203 may also be performed simultaneously with step 202. The steps can be correspondingly increased or decreased according to the situation. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered in the protection scope of the present application, and thus will not be repeated.
According to the route information transmission method provided by the embodiment of the application, the DCI intercommunication example is planned in the DCI equipment in advance, and the DCI identification is added to the DCI intercommunication example in the configuration information of the DCI equipment, so that the DCI equipment only transmits the message generated for the DCI intercommunication example to the opposite-end DCI equipment, the filtering of the route information is realized at the transmitting end, the transmission of multiple groups of repeated route information can be avoided, the transmission of the route information transmitted in the data center to other data centers can be avoided, and the waste of transmission resources and the waste of memory resources and calculation resources of the second DCI equipment are further reduced. By planning a DCI intercommunication example in opposite terminal DCI equipment in advance and adding a DCI mark to the DCI intercommunication example in configuration information of opposite terminal DCI equipment, the opposite terminal DCI equipment processes a message sent by the DCI equipment only aiming at the DCI intercommunication example, filtering of routing information is realized at a receiving terminal, and error routing is avoided when an incoming direction routing target of the intercommunication example in a certain DC of the opposite terminal DCI equipment is identical to a local DCI intercommunication routing target of a first data center, so that network safety is ensured.
In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Fig. 3 is a schematic structural diagram of a routing information transmission device according to an embodiment of the present application. For implementing the functions of the first DCI device in the above implementations. As shown in fig. 3, the apparatus 30 includes:
A receiving module 301, configured to receive a first packet from a BGP EVPN neighbor of a first DCI device in a first data center, where the first packet includes routing information of a first forwarding instance of an access device in the first data center and an outbound routing target of the first forwarding instance.
The obtaining module 302 is configured to obtain a second forwarding instance corresponding to the first packet in the first DCI device, where an ingress routing target of the second forwarding instance is matched with an egress routing target of the first forwarding instance.
The first generating module 303 is configured to generate a second packet based on the first packet, where the second packet includes routing information of the second forwarding instance and an outgoing direction routing destination of the second forwarding instance.
A sending module 304, configured to send a second message to a second DCI device in the second data center when the second forwarding instance is a DCI interworking instance, where the second DCI device is a BGP EVPN neighbor of the first DCI device.
Optionally, the outgoing direction route target of the DCI interworking instance includes a DCI interworking route target.
Optionally, as shown in fig. 4, the apparatus 30 further includes:
The second generating module 305 is configured to generate a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
According to the route information transmission device provided by the embodiment of the application, the DCI intercommunication example is planned in the DCI equipment in advance, and the DCI identification is added to the DCI intercommunication example in the configuration information of the DCI equipment, so that the DCI equipment only transmits the message generated for the DCI intercommunication example to the opposite-end DCI equipment through the transmission module, the filtering of the route information is realized at the transmission end, the transmission of multiple groups of repeated route information can be avoided, the transmission of the route information transmitted in the data center to other data centers can be avoided, and the waste of transmission resources and the waste of memory resources and calculation resources of the second DCI equipment are further reduced. In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
Fig. 5 is a schematic structural diagram of a routing information transmission device according to another embodiment of the present application. For implementing the functions of the second DCI device in the above implementations. As shown in fig. 5, the apparatus 50 includes:
The receiving module 501 is configured to receive a first packet sent by a first DCI device in a first data center, where the first packet includes routing information of a first forwarding instance of the first DCI device and an outgoing direction routing target of the first forwarding instance, and the second DCI device is a BGP EVPN neighbor of the first DCI device.
An obtaining module 502, configured to obtain a second forwarding instance corresponding to the first packet in the second DCI device, where an ingress routing target of the second forwarding instance matches an egress routing target of the first forwarding instance.
A first generating module 503, configured to generate, when the second forwarding instance is a DCI interworking instance, a second packet based on the first packet, where the second packet includes routing information of the second forwarding instance and an outgoing routing target of the second forwarding instance.
A sending module 504, configured to send a second message to a BGP EVPN neighbor of a second DCI device in the second data center.
Optionally, as shown in fig. 6, the apparatus 50 further includes:
a determining module 505, configured to determine that the second forwarding instance is irrelevant to the first packet when the second forwarding instance is not the DCI interworking instance.
Optionally, the ingress direction route target of the DCI interworking instance includes a DCI interworking route target.
Optionally, as shown in fig. 7, the apparatus 50 further includes:
a second generating module 506, configured to generate, when the second forwarding instance is a DCI interworking instance, a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
According to the route information transmission device provided by the embodiment of the application, the DCI intercommunication example is planned in the opposite-end DCI equipment in advance, and the DCI identifier is added to the DCI intercommunication example in the configuration information of the opposite-end DCI equipment, so that the opposite-end DCI equipment processes the message sent by the DCI equipment only aiming at the DCI intercommunication example, the filtering of the route information is realized at the receiving end, the error route is avoided when the incoming direction route target of a certain DC internal intercommunication example of the opposite-end DCI equipment is identical to the local DCI intercommunication route target of the first data center, and the network safety is ensured. In addition, since the DCI identification is only required to be set in the configuration information of the DCI equipment, the BGP EVPN protocol is not required to be changed, the implementation is simple, and the universality is high.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The embodiment of the application provides a DCI network, which comprises the following components: a first data center and a second data center interconnected. The first data center includes a first DCI device therein, and the second data center includes a second DCI device therein. The first DCI device and the second DCI device are BGP EVPN neighbors of each other.
The first DCI apparatus includes a routing information transmission device as shown in fig. 3 or 4, and the second DCI apparatus includes a routing information transmission device as shown in fig. 5 to 4
The routing information transfer apparatus shown in any one of fig. 7.
Fig. 8 is a block diagram of a routing information transmission apparatus according to an embodiment of the present application. The routing information transmission apparatus may be a DCI device. As shown in fig. 8, the apparatus 80 includes: a processor 801 and a memory 802.
A memory 802 for storing a computer program, the computer program comprising program instructions;
And a processor 801, configured to invoke the computer program to implement a step performed by the first DCI device and/or a step performed by the second DCI device in the routing information transmission method shown in fig. 2.
Optionally, the apparatus 80 further comprises a communication bus 803 and a communication interface 804.
The processor 801 includes one or more processing cores, and the processor 801 performs various functional applications and data processing by running computer programs. The processor 801 may be a central processing unit (central processing unit, CPU), an ethernet switch (ETHERNET SWITCH) chip, a network processor (network processor, NP), or a combination of CPU, ethernet switch chip and NP. The CPU can control the Ethernet exchange chip or NP to initialize, send service list item, send and receive protocol message and various interrupt (including port link up and port link down process), etc. Optionally, the ethernet switch chip may have an external random access memory (random access memory, RAM) for storing the forwarded packet, so as to solve the problem of insufficient internal buffer of the ethernet switch chip. The Ethernet exchange chip completes the Ethernet interface butt joint of an optical port or an electric port between the devices through a physical layer (PHY).
Memory 802 may be used to store computer programs. Optionally, the memory may store an operating system and at least one application unit required for functionality. The operating system may be a real-time operating system (Real Time eXecutive, RTX), LINUX, UNIX, WINDOWS, or an operating system such as OS X. The memory includes volatile memory (RAM) such as RAM; the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a hard disk (HARD DISK DRIVE, HDD) or a solid state disk (solid-state drive (SSD); memory 802 may also include combinations of the above types of memory. Memory 802 includes, by way of example, RAM and flash memory. Programs and statically configured parameters for execution by the processor 801 are stored in flash memory, and code and data for execution when the programs are executed are stored in RAM.
The communication interface 804 may be a plurality of, and the communication interface 804 is used to communicate with other storage devices or network devices. For example, in an embodiment of the present application, the communication interface 804 may be used to send messages carrying routing information to other devices.
The memory 802 and the communication interface 804 are connected to the processor 801 through communication buses 803, respectively.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium is stored with instructions, and when the instructions are executed by a processor, the routing information transmission method shown in fig. 2 is realized.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In embodiments of the present application, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
The term "and/or" in the present application is merely an association relation describing the association object, and indicates that three kinds of relations may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but is intended to cover any modifications, equivalents, alternatives, and improvements within the spirit and principles of the application.

Claims (14)

1. A method for transmitting routing information, which is applied to a data center interconnected DCI network, the method comprising:
A first DCI device in a first data center receives a first message from a border gateway protocol Ethernet virtual private network BGP EVPN neighbor of the first DCI device in the first data center, wherein the first message comprises route information of a first forwarding instance of an access device in the first data center and an outgoing direction route target of the first forwarding instance, the route information of the first forwarding instance comprises BGP EVPN route and a next hop corresponding to the first forwarding instance, and the next hop in the route information of the first forwarding instance is a virtual extensible local area network tunnel endpoint VTEP address of the access device;
the first DCI equipment acquires a second forwarding instance corresponding to the first message in the first DCI equipment, and an incoming direction routing target of the second forwarding instance is matched with an outgoing direction routing target of the first forwarding instance;
The first DCI equipment generates a second message based on the first message, wherein the second message comprises routing information of the second forwarding instance and an outgoing direction routing target of the second forwarding instance, the routing information of the second forwarding instance comprises BGP EVPN routing and next hop corresponding to the second forwarding instance, and the next hop in the routing information of the second forwarding instance is a VTEP address of the first DCI equipment;
When the second forwarding instance is a DCI interworking instance, the first DCI device sends the second packet to a second DCI device in a second data center, where the second DCI device is a BGP EVPN neighbor of the first DCI device, the DCI interworking instance is a forwarding instance configured with a DCI identifier in the first DCI device, and an outgoing direction routing target of the DCI interworking instance includes a DCI interworking routing target.
2. The method according to claim 1, wherein the method further comprises:
The first DCI device generates a forwarding table entry of the second forwarding instance based on routing information of the first forwarding instance.
3. A method for transmitting routing information, which is applied to a data center interconnected DCI network, the method comprising:
A second DCI device in a second data center receives a first message sent by a first DCI device in a first data center, wherein the first message comprises routing information of a first forwarding instance of the first DCI device and an outgoing direction routing target of the first forwarding instance, the second DCI device is a border gateway protocol Ethernet virtual private network (BGP EVPN) neighbor of the first DCI device, the routing information of the first forwarding instance comprises BGP EVPN routing corresponding to the first forwarding instance and a next hop, and the next hop in the routing information of the first forwarding instance is a virtual extensible local area network (VTEP) address of a tunnel endpoint of the first DCI device;
The second DCI equipment acquires a second forwarding instance corresponding to the first message in the second DCI equipment, and an incoming direction routing target of the second forwarding instance is matched with an outgoing direction routing target of the first forwarding instance;
When the second forwarding instance is a DCI interworking instance, the second DCI device generates a second packet based on the first packet, where the second packet includes routing information of the second forwarding instance and an outgoing direction routing target of the second forwarding instance, the routing information of the second forwarding instance includes BGP EVPN routing and a next hop corresponding to the second forwarding instance, the next hop in the routing information of the second forwarding instance is a VTEP address of the second DCI device, and the DCI interworking instance is a forwarding instance configured with a DCI identifier in the second DCI device, where the incoming direction routing target of the DCI interworking instance includes a DCI interworking routing target;
and the second DCI equipment sends the second message to a BGP EVPN neighbor of the second DCI equipment in the second data center.
4. The method of claim 3, wherein after the second DCI device obtains a second forwarding instance of the first message in the second DCI device, the method further comprises:
When the second forwarding instance is not a DCI interworking instance, the second DCI device determines that the second forwarding instance is not related to the first message.
5. The method according to claim 3 or 4, characterized in that the method further comprises:
And when the second forwarding instance is a DCI interworking instance, the second DCI equipment generates a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
6. A routing information transmission apparatus, applied to a first DCI device in a first data center of a data center interconnect DCI network, the apparatus comprising:
A receiving module, configured to receive a first packet from a border gateway protocol ethernet virtual private network BGP EVPN neighbor of the first DCI device in the first data center, where the first packet includes routing information of a first forwarding instance of an access device in the first data center and an outgoing direction routing target of the first forwarding instance, the routing information of the first forwarding instance includes BGP EVPN routing corresponding to the first forwarding instance and a next hop, and the next hop in the routing information of the first forwarding instance is a virtual extensible local area network tunnel endpoint VTEP address of the access device;
The acquiring module is used for acquiring a second forwarding instance corresponding to the first message in the first DCI equipment, and an incoming direction routing target of the second forwarding instance is matched with an outgoing direction routing target of the first forwarding instance;
A first generating module, configured to generate a second packet based on the first packet, where the second packet includes routing information of the second forwarding instance and an outgoing direction routing target of the second forwarding instance, the routing information of the second forwarding instance includes BGP EVPN routing and a next hop corresponding to the second forwarding instance, and the next hop in the routing information of the second forwarding instance is a VTEP address of the first DCI device;
And the sending module is used for sending the second message to a second DCI device in a second data center when the second forwarding instance is a DCI interworking instance, wherein the second DCI device is a BGP EVPN neighbor of the first DCI device, the DCI interworking instance is a forwarding instance configured with a DCI identifier in the first DCI device, and the outgoing direction routing target of the DCI interworking instance comprises a DCI interworking routing target.
7. The apparatus of claim 6, wherein the apparatus further comprises:
and the second generation module is used for generating a forwarding table item of the second forwarding instance based on the routing information of the first forwarding instance.
8. A routing information transmission apparatus, characterized by a second DCI device applied to a second data center of a data center interworking DCI network, the apparatus comprising:
A receiving module, configured to receive a first packet sent by a first DCI device in a first data center, where the first packet includes routing information of a first forwarding instance of the first DCI device and an outgoing direction routing target of the first forwarding instance, the second DCI device is a BGP EVPN neighbor of a border gateway protocol ethernet of the first DCI device, the routing information of the first forwarding instance includes BGP EVPN routing and a next hop corresponding to the first forwarding instance, and the next hop in the routing information of the first forwarding instance is a VTEP address of a virtual extensible local area network tunnel endpoint of the first DCI device;
the acquiring module is used for acquiring a second forwarding instance corresponding to the first message in the second DCI equipment, and an incoming direction routing target of the second forwarding instance is matched with an outgoing direction routing target of the first forwarding instance;
A first generating module, configured to generate, when the second forwarding instance is a DCI interworking instance, based on the first packet, a second packet, where the second packet includes routing information of the second forwarding instance and an outgoing direction routing target of the second forwarding instance, the routing information of the second forwarding instance includes BGP EVPN routing and a next hop corresponding to the second forwarding instance, the next hop in the routing information of the second forwarding instance is a VTEP address of the second DCI device, and the DCI interworking instance is a forwarding instance configured with a DCI identifier in the second DCI device, where an incoming direction routing target of the DCI interworking instance includes a DCI interworking routing target;
and the sending module is used for sending the second message to a BGP EVPN neighbor of the second DCI device in the second data center.
9. The apparatus of claim 8, wherein the apparatus further comprises:
and the determining module is used for determining that the second forwarding instance is irrelevant to the first message when the second forwarding instance is not the DCI interworking instance.
10. The apparatus according to claim 8 or 9, characterized in that the apparatus further comprises:
And the second generation module is used for generating a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance when the second forwarding instance is a DCI interworking instance.
11. A data center interworking DCI network, wherein the DCI network comprises: the system comprises a first data center and a second data center which are connected with each other, wherein the first data center comprises first DCI equipment, the second data center comprises second DCI equipment, and the first DCI equipment and the second DCI equipment are border gateway protocol Ethernet virtual private network BGP (border gateway protocol) EVPN neighbors;
the first DCI apparatus comprising the routing information transmission device of claim 6 or 7, and the second DCI apparatus comprising the routing information transmission device of any one of claims 8 to 10.
12. A routing information transmission apparatus, comprising: a processor and a memory;
the memory is used for storing a computer program, and the computer program comprises program instructions;
the processor is configured to invoke the computer program to implement the routing information transmission method according to claim 1 or 2.
13. A routing information transmission apparatus, comprising: a processor and a memory;
the memory is used for storing a computer program, and the computer program comprises program instructions;
the processor is configured to invoke the computer program to implement the routing information transmission method according to any one of claims 3 to 5.
14. A computer storage medium having instructions stored thereon which, when executed by a processor, implement the routing information transfer method of any of claims 1 to 5.
CN201911048116.1A 2019-10-30 2019-10-30 Routing information transmission method and device and data center internet Active CN112751758B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911048116.1A CN112751758B (en) 2019-10-30 2019-10-30 Routing information transmission method and device and data center internet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911048116.1A CN112751758B (en) 2019-10-30 2019-10-30 Routing information transmission method and device and data center internet

Publications (2)

Publication Number Publication Date
CN112751758A CN112751758A (en) 2021-05-04
CN112751758B true CN112751758B (en) 2024-06-07

Family

ID=75640948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911048116.1A Active CN112751758B (en) 2019-10-30 2019-10-30 Routing information transmission method and device and data center internet

Country Status (1)

Country Link
CN (1) CN112751758B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510404A (en) * 2011-11-21 2012-06-20 中国人民解放军国防科学技术大学 Nondestructive continuous extensible interconnection structure for data center
CN107018076A (en) * 2017-04-07 2017-08-04 新华三技术有限公司 A kind of monitoring messages method and apparatus
US10243834B1 (en) * 2015-01-22 2019-03-26 Juniper Networks, Inc. Interconnecting virtual networks using an ethernet virtual private network (EVPN) and virtual extensible local area network (VXLAN) based overlay network
CN109728926A (en) * 2017-10-27 2019-05-07 华为技术有限公司 Communication means and the network equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8098656B2 (en) * 2009-06-26 2012-01-17 Avaya, Inc. Method and apparatus for implementing L2 VPNs on an IP network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102510404A (en) * 2011-11-21 2012-06-20 中国人民解放军国防科学技术大学 Nondestructive continuous extensible interconnection structure for data center
US10243834B1 (en) * 2015-01-22 2019-03-26 Juniper Networks, Inc. Interconnecting virtual networks using an ethernet virtual private network (EVPN) and virtual extensible local area network (VXLAN) based overlay network
CN107018076A (en) * 2017-04-07 2017-08-04 新华三技术有限公司 A kind of monitoring messages method and apparatus
CN109728926A (en) * 2017-10-27 2019-05-07 华为技术有限公司 Communication means and the network equipment

Also Published As

Publication number Publication date
CN112751758A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN108574616B (en) Method, equipment and system for processing route
CN112751767B (en) Routing information transmission method and device and data center internet
US10425325B2 (en) Optimizing traffic paths to orphaned hosts in VXLAN networks using virtual link trunking-based multi-homing
US20180287990A1 (en) Layer 3 convergence for evpn link failure
CN107547402B (en) Forwarding table generation method and device
TWI583151B (en) System and method for implementing and managing virtual networks
US9858163B2 (en) Dual adjacency between edge devices at a network site
CN110798403B (en) Communication method, communication device and communication system
CN105376154A (en) Progressive MAC address learning
CN112769614B (en) Automatic management method of VPN (virtual private network) on demand and intercommunication system of heterogeneous network
US8612626B2 (en) Group member detection among nodes of a network
US8559431B2 (en) Multiple label based processing of frames
US20190215191A1 (en) Deployment Of Virtual Extensible Local Area Network
CN111865780A (en) Synchronization method and device
CN113037883B (en) Method and device for updating MAC address table entries
CN113254148A (en) Virtual machine migration method and cloud management platform
WO2021042674A1 (en) Method for configuring port state and network device
CN112751758B (en) Routing information transmission method and device and data center internet
CN112751759B (en) Routing information transmission method and device and data center internet
CN112702251B (en) Message detection method, connectivity negotiation relationship establishment method and related equipment
CN108259292B (en) Method and device for establishing tunnel
WO2022053007A1 (en) Network reachability verification method and apparatus, and computer storage medium
CN115883256B (en) Data transmission method, device and storage medium based on encryption tunnel
WO2024001553A1 (en) Routing publishing method, electronic device and computer-readable storage medium
CN113141265A (en) Cross-device link aggregation method and device

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