CN112751759A - Routing information transmission method and device and data center internet - Google Patents
Routing information transmission method and device and data center internet Download PDFInfo
- Publication number
- CN112751759A CN112751759A CN201911048110.4A CN201911048110A CN112751759A CN 112751759 A CN112751759 A CN 112751759A CN 201911048110 A CN201911048110 A CN 201911048110A CN 112751759 A CN112751759 A CN 112751759A
- Authority
- CN
- China
- Prior art keywords
- dci
- forwarding instance
- instance
- forwarding
- data center
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000005540 biological transmission Effects 0.000 title claims abstract description 53
- 238000004590 computer program Methods 0.000 claims description 16
- 238000012546 transfer Methods 0.000 claims description 4
- 239000002699 waste material Substances 0.000 description 17
- 230000008569 process Effects 0.000 description 15
- 238000004891 communication Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 11
- 238000001914 filtration Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/66—Layer 2 routing, e.g. in Ethernet based MAN's
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 routing information transmission method and device and a data center internet, and belongs to the technical field of networks. The first DCI device receives a first message from a BGP EVPN neighbor of the first DCI device, wherein the first message comprises routing information of a first forwarding instance of the access device in the first data center and an egress 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 the routing target in the incoming direction of the second forwarding instance is matched with the routing target in the outgoing direction of the first forwarding instance. Then, the first DCI device generates a second packet based on the first packet, where the second packet includes the routing information of the second forwarding instance and the outbound routing target of the second forwarding instance. Finally, when the VNI of the second forwarding instance is provided with the DCI identifier, the first DCI device sends the second packet to a second DCI device in the second data center.
Description
Technical Field
The present application relates to the field of network technologies, and in particular, to a routing information transmission method and apparatus, and a data center internet.
Background
Currently, in order to meet the situations of cross-regional operation, user access, remote disaster recovery and the like, enterprises generally deploy a plurality of data centers in multiple regions. In order to implement communication between Virtual Machines (VMs) in different data centers, a Data Center Interconnection (DCI) solution is proposed. Data center interconnection can be realized through a virtual extensible local area network (VXLAN), a Virtual Local Area Network (VLAN) back-to-back (VLAN hand-off) or a segmented VXLAN (segment VXLAN) at present.
The data center interconnection is realized through the sectional VXLAN, namely a VXLAN tunnel is respectively established inside two data centers, and a VXLAN tunnel is established between the two data centers. Two VXLAN Tunnel End points (VXLAN Tunnel End points, VTEPs) of a VXLAN Tunnel inside a data center are respectively set on an access device (a switch connected to a server, which may be called server-leaf) of the data center and a DCI device (a switch serving as an edge device of the data center and connected to another data center, which may be called DCI-leaf), that is, a peer-to-peer relationship between the access device and the DCI device of the data center is established with a Border Gateway Protocol (BGP) Ethernet Virtual Private Network (EVPN). Two VTEPs of a VXLAN tunnel between 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 DCI equipment of one data center receives routing information sent by access equipment of the data center, the received routing information is transmitted to DCI equipment of another data center.
However, since the routing information sent to the DCI device by the access device may not be used for DCI forwarding, and the DCI device sends all the received routing information to the opposite-end DCI device, not only transmission resources are wasted, but also memory resources and computing resources of the opposite-end DCI device are wasted.
Disclosure of Invention
The application provides a routing information transmission method and device and a data center internet, which can solve the problems of transmission resource waste caused in the routing information transmission process and memory resource and computing resource waste of opposite terminal DCI equipment.
In a first aspect, a routing information transmission method is provided, and the method is applied to a DCI network. 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 including routing information for a first forwarding instance of an access device in the first data center and an egress direction route target for 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 routing target in the incoming direction of the second forwarding instance is matched with the routing target in the outgoing direction of the first forwarding instance. And 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 example and the outgoing direction routing target of the second forwarding example. And when the VNI of the second forwarding instance is provided with the DCI identifier, the first DCI equipment sends a second message to second DCI equipment in a second data center, wherein the second DCI equipment is a BGP EVPN neighbor of the first DCI equipment.
The VNI of the second forwarding instance is provided with a DCI identifier, which indicates that the second forwarding instance is a DCI interworking instance.
According to the method and the device, the DCI interworking example is planned in advance in the first DCI equipment, and the DCI identification is added to the VNI of the forwarding example in the configuration information of the first DCI equipment to distinguish the DCI interworking example, so that the first DCI equipment only sends the message generated aiming at the DCI interworking example to the second DCI equipment, the filtering of the routing information is realized at the sending end, multiple groups of repeated routing information can be avoided from being sent, and further the waste of transmission resources and the waste of memory resources and computing resources of the second DCI equipment are reduced. In addition, because the DCI identifier of the VNI of the DCI interworking example only needs to be set in the configuration information of the DCI equipment and does not need to be transmitted to the opposite terminal through the BGP EVPN protocol, the BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
Optionally, the outgoing direction routing target of the DCI interworking instance of the first DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
Optionally, the first DCI device further generates one forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
In a second aspect, a routing information transmission method is provided, which is applied to a DCI network. And a second DCI device in the second data center receives a first message sent by a first DCI device in the first data center, wherein the first message comprises the routing information of the first forwarding instance of the first DCI device and the outgoing direction routing target of the first forwarding instance, and the second DCI device is a BGP EVPN neighbor of the first DCI device. And the second DCI equipment acquires a second forwarding instance corresponding to the first message in the second DCI equipment, and the routing target in the incoming direction of the second forwarding instance is matched with the routing target in the outgoing direction of the first forwarding instance. And when the VNI of the second forwarding instance is provided with the DCI identifier, the second 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. And the second DCI equipment transmits a second message to a BGP EVPN neighbor of the second DCI equipment in the second data center.
In the application, the DCI interworking example is planned in advance in the second DCI equipment, and the DCI identifier is added to the VNI of the forwarding example in the configuration information of the second DCI equipment to distinguish the DCI interworking example, so that the second DCI equipment only processes the message sent by the first DCI equipment aiming at the DCI interworking example, the filtering of the routing information is realized at the receiving end, the error routing is avoided when the routing target in the incoming direction of the interworking example in a certain DC of the second DCI equipment is the same as the routing target in the local DCI interworking of the first data center, and the network safety is ensured. In addition, the DCI identifier only needs to be set in the configuration information of the DCI equipment, so that a BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
Optionally, after the second DCI device acquires the second forwarding instance corresponding to the first packet in the second DCI device, when the VNI of the second forwarding instance is not set with the DCI identifier, the second DCI device determines that the second forwarding instance is not related to the first packet.
Optionally, the entry direction routing target of the DCI interworking instance of the second DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
Optionally, when the VNI of the second forwarding instance is provided with the DCI identifier, the second DCI device further generates one 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 its embodiments described above. The functional modules can be implemented based on software, hardware or a combination of software and hardware, and the functional modules can be combined or divided arbitrarily based on specific implementation.
In a fourth aspect, a routing information transfer apparatus is provided. The apparatus comprises a plurality of functional modules, which interact to implement the method of the second aspect and its embodiments described above. The functional modules can be implemented based on software, hardware or a combination of software and hardware, and the functional modules can be combined or divided arbitrarily based on specific implementation.
In a fifth aspect, a routing information transmission apparatus is provided, including: a processor and a memory;
the memory for storing a computer program, the computer program comprising 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 aspect.
In a sixth aspect, there is provided a routing information transmission apparatus comprising: a processor and a memory;
the memory for storing a computer program, the computer program comprising 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, a computer storage medium is provided, which stores instructions that, when executed by a processor, implement the routing information transmission method according to any one of the first aspect or the second aspect.
In an eighth aspect, a chip is provided, where the chip includes programmable logic circuits and/or program instructions, and when the chip runs, the method in the first aspect and its embodiments is implemented.
The beneficial effect that technical scheme that this application provided brought includes at least:
by planning the DCI interworking example in advance in the DCI equipment and adding the DCI identifier to the VNI of the forwarding example in the configuration information of the DCI equipment to distinguish the DCI interworking example, the DCI equipment only sends the message generated aiming at the DCI interworking example to the DCI equipment at the opposite end, the filtering of the routing information is realized at the sending end, the sending of multiple groups of repeated routing information can be avoided, and the waste of transmission resources and the waste of memory resources and computing resources of second DCI equipment are further reduced. By planning DCI interworking examples in advance in the DCI equipment at the opposite end and adding DCI identifications to the VNIs of the forwarding examples in the configuration information of the DCI equipment at the opposite end to distinguish the DCI interworking examples, the DCI equipment at the opposite end only processes messages sent by the DCI equipment aiming at the DCI interworking examples, filtering of routing information is realized at a receiving end, the phenomenon that when the routing target of the incoming direction of the interworking examples in a certain DC of the DCI equipment at the opposite end is the same as the routing target of the local DCI interworking in the first data center, wrong routing is generated is avoided, and network safety is guaranteed.
In addition, the DCI identifier only needs to be set in the configuration information of the DCI equipment, so that a BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
Drawings
Fig. 1 is a schematic structural diagram of a DCI network provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a routing information transmission method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a routing information transmission apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another routing information transmission apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a routing information transmission apparatus 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 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
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of a DCI network according to an embodiment of the present disclosure. As shown in fig. 1, the DCI network includes a first data center DC1 and a second data center DC2 interconnected. First data center DC1 includes first DCI device 101A and first access device 101B. Second DCI device 102A and second access device 102B are included in second data center DC 2. 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 only used for exemplary illustration, and is not used as a limitation to the DCI network provided in 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 peering 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, i.e., the second DCI device 102A and the second access device 102B are BGP EVPN neighbors.
Optionally, a route reflector may also be included in the first data center DC 1. The first DCI device 101A and the first access device 101B each establish a BGP EVPN peering relationship with a route reflector in the first data center DC1, and the first DCI device 101A and the first access device 101B are indirectly communicatively connected through the route reflector. A route reflector may also be included in the second data center DC 2. Second DCI device 102A and second access device 102B each establish a BGP EVPN peering relationship with a route reflector in second data center DC2, through which second DCI device 102A and second access device 102B are indirectly communicatively coupled.
In the embodiment of the present application, an access device refers to a switch for connecting to a server, and may be referred to as a server-leaf. The DCI equipment is used as an edge device of the data center and is used for connecting switches of other data centers, and the DCI equipment is called DCI-leaf. The route reflector is used to forward route information passed between the access device and the DCI device (the route reflector does not modify the received route information during the forwarding process).
Optionally, the access device is configured with one or more forwarding instances, and one forwarding instance corresponds to a forwarding table locally available on the device. A plurality of forwarding instances are configured in the DCI device. Some forwarding instances in the DCI apparatus 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 intra-DC interworking). Each forwarding instance in the same device works independently for realizing route isolation. In this embodiment of the present application, the forwarding instances in the access device and the DCI device may be a two-layer forwarding instance (L2VPN instance) or a three-layer forwarding instance (L3VPN instance). The L2VPN instance may also be referred to as a Bridged Domain (BD) instance (corresponding to a two-layer forwarding domain). The L3VPN instance may also be referred to as a Virtual Routing Forwarding (VRF) instance (corresponding to a three-layer forwarding domain). 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 two types of Route targets, an egress direction and an ingress direction. When the out-direction route target value configured by the local terminal forwarding instance is equal to the in-direction route target value configured by the opposite terminal forwarding instance, the local terminal and the opposite terminal can exchange BGP EVPN routes with each other. In the embodiment of the present application, the entry direction route target is abbreviated as iRT, and the exit direction route target is abbreviated as eRT.
Optionally, one forwarding instance is configured with one or more route targets. Illustratively, continuing with fig. 1, a forwarding instance a, a forwarding instance B, and a forwarding instance AA' are included in a first DCI device 101A within a first data center DC 1. The first access device 101B includes a forwarding instance a and a forwarding instance B. iRT and eRT of forwarding instance A are both 1:100, iRT and eRT of forwarding instance B are both 1:1000, and iRT and eRT of forwarding instance AA' both include 1:100 and 66: 66. Forwarding instance a ', forwarding instance C, and forwarding instance a' a are included in a second DCI device 102A within a 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 include 2:100 and 66:66, iRT and eRT of forwarding instance A' each include 2:100, and iRT and eRT of forwarding instance C each include 1: 100. Wherein, 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 ' a are respectively configured with two route targets.
Since different data centers are typically planned independently, forwarding instances in different data centers may be configured with the same route target. For example, the route target of forwarding instance A in first data center DC1 is the same as the route target of forwarding instance C in second data center DC 2.
Assume that, in the DCI network shown in fig. 1, virtual machine VM1a hung down by first access device 101B corresponds to forwarding instance a, and virtual machine VM1B corresponds to forwarding instance B. Virtual machine VM2a hanging down second access device 102B corresponds to forwarding instance a', and virtual machine VM2B corresponds to forwarding instance C. Wherein, virtual machine VM1a and virtual machine VM2a are deployed in the same VLAN, and virtual machine VM1a and virtual machine VM2b are deployed in different VLANs. At this time, the 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 implemented, that is, the routing information needs to be transmitted 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 transfer mode, the process of implementing the interworking between the forwarding instance a of the first access device 101B and the forwarding instance a' of the second access device 102B includes:
after learning the host address of the virtual machine VM1A, the first access device 101B generates a routing table entry and 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, to the first DCI device 101A, a message including the routing information of the forwarding instance a of the first access device 101B and eRT (1:100) of the forwarding instance a. Since eRT (1:100) of the forwarding instance a in the first access device 101B is matched with iRT (1:100) of the forwarding instance a in the first DCI device 101A and iRT (1:10066:66) of the forwarding instance AA ', the first DCI device 101A generates two messages according to the message sent by the first access device 101B, where one message includes the routing information of the forwarding instance a of the first DCI device 101A and eRT (1:100) of the forwarding instance a, and the other message includes the routing information of the forwarding instance AA ' of the first DCI device 101A and eRT (1:10066:66) of the forwarding instance AA '. The first DCI device 101A then sends the two messages to the second DCI device 102A. However, the routing information of the forwarding instance a of the first DCI device 101A is the same as the routing information of the forwarding instance AA', and both include the host address of the virtual machine VM1A and the VTEP address of the first DCI device 101A, and the sending of two packets by the first DCI device 101A to the second DCI device 102A may cause repeated transmission of the routing information, which results in waste of transmission resources. In addition, the first DCI device 101A may also directly forward the received message 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 message 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 multiple messages carrying repeated routing information and/or messages carrying useless routing information, the second DCI device 102A processes the messages, which may cause waste of memory resources and computational resources of the second DCI device.
Take the example that the second DCI device 102A receives the message including the routing information of the forwarding instance a of the first DCI device 101A and eRT (1:10066:66) of the forwarding instance AA' of the first DCI device 101A. Since eRT (1:10066:66) of the forwarding instance AA 'of the first DCI device 101A is matched with iRT (2:10066:66) of the forwarding instance a' a and iRT (1:100) of the forwarding instance C in the second DCI device 102A, the second DCI device 102A generates two messages, one of the two messages includes the routing information of the forwarding instance a 'a of the second DCI device 102A and eRT (2:10066:66) of the forwarding instance a' a, and the other message includes the routing information of the forwarding instance C of the second DCI device 102A and eRT (1:100) of the 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:10066:66) of the forwarding instance a' a, it may match the forwarding instance a 'iRT of the second access device 102B as (2:100), 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 with iRT (1:100) in the second access device 102B may be matched, which may cause the forwarding instance a of the first access device 101B and the forwarding instance C of the second access device 102B to be in error intercommunication, and further cause the virtual machine VM1a and the virtual machine VM2B not belonging to the same VLAN to be in error communication, thereby causing network security hidden trouble.
In addition, according to the current routing delivery manner, after the first access device 101B sends the first DCI device 101A packet including the routing information of the 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 the forwarding instance B iRT of the first DCI device 101A with (1:1000) and 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 a device in the second data center, this process causes a waste of transmission resources, and after receiving the message, the second DCI device 102A also needs to process the message, which also wastes memory resources and computing resources of the second DCI device.
Fig. 2 is a schematic flowchart of a routing information transmission method 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 bgvpn 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 egress direction routing target of the first forwarding instance. The first message also includes an extended community attribute. In the embodiment of the present application, the extended community attribute value of the message is a type number of the VXLAN tunnel, and a specific value of the extended community attribute may refer to a relevant explanation of a path attribute (path attributes) in a BGP update message in request for comments (RFC) 4271, which is not described herein again.
In this embodiment of the present application, the routing information of the forwarding instances of the access device and the DCI device includes a BGP EVPN route and a next hop corresponding to the forwarding instances. Wherein, the next hop is the VTEP address of the access device.
Optionally, after learning a host Internet Protocol (IP) address and/or a host Media Access Control (MAC) address of the local VM, the access device in the first data center generates a routing table entry and stores the routing table entry in the routing table of the first forwarding instance, and generates an evbgp pn route corresponding to the first forwarding instance.
The BGP EVPN route corresponding to the forwarding instance of the access device includes the host IP address and/or 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 (exclusive multicast route), or a Type5 route (IP prefix route) defined in BGP Network Layer Reachability Information (NLRI). The Type2 route is used to notify a host MAC Address, a host Address Resolution Protocol (ARP) mapping (i.e., a corresponding relationship between an IP Address and a MAC Address), or a host IP Address, that is, the Type2 route may be used to notify second-layer routing information and/or third-layer routing information. When Type2 routing is used to advertise host ARP mapping, Type2 routing may also be referred to as ARP Type routing. When Type2 routing is used to advertise host IP addresses, Type2 routing may also be referred to as Integrated Routing and Bridging (IRB) Type routing. Type3 routing is used to pass a layer two VXLAN Network Identity (VNI) and a VTEP address. Type5 routing is used to advertise host IP addresses or network segment addresses, i.e., Type5 routing can be used to advertise triple-layer 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 is subsequently evolved, and the Type of the BGP EVPN route is not limited in this embodiment of the application.
Optionally, the message for transmitting the routing information in the embodiment of the present application includes the content 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 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 included in the first packet may be shown 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 the BGP EVPN neighbor of the first DCI equipment is a route reflector, the route reflector forwards a first message sent to the route reflector by the access equipment to the first DCI equipment.
Step 202, the first DCI device obtains a second forwarding instance corresponding to the first packet in the first DCI device.
And matching the routing target in the incoming direction of the second forwarding instance in the first DCI equipment with the routing target in the outgoing direction of the first forwarding instance of the first access equipment. The matching of the in-direction route target of one forwarding instance and the out-direction route target of another forwarding instance means that one or more in-direction route targets configured by the forwarding instance intersect with one or more out-direction route targets configured by another forwarding instance.
Illustratively, the first DCI device is the first DCI device 101A in the DCI network shown in fig. 1, and in conjunction with the example in step 201, iRT (1:100) of the forwarding instance a and iRT (1:10066:66) of the forwarding instance AA' in the first DCI device 101A are matched with eRT (1:100) of the forwarding instance a of the first access device 101B. In step 202, the second forwarding instance corresponding to the 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 the second forwarding instance of the first DCI device based on the 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, namely whether the own incoming direction routing target is matched with the outgoing direction routing target carried in the first message. And if the forwarding example corresponds to the first message, the first DCI equipment generates a forwarding table entry of the forwarding example. And if the forwarding instance does not correspond to the first message, directly discarding the first message by the forwarding instance.
For example, referring to the example in step 202, the forwarding table entry of the forwarding instance a and the forwarding table entry of the forwarding instance AA' in the first DCI apparatus 101A generated by the first DCI apparatus 101A based on the routing information of the forwarding instance a of the first access apparatus 101B may be as shown in table 3.
TABLE 3
Destination IP address | Next hop | Outlet interface |
192.102.11.1 | 1.1.1.1 | VXLAN tunnel |
And step 204, the first DCI equipment generates a second message based on the first message.
The second message includes the routing information of the second forwarding instance of the first DCI device and the outbound routing target of the second forwarding instance. The first DCI equipment generates a second message based on the first message, and the method comprises the following steps: and the first DCI equipment modifies the next hop in the first message into the VTEP address of the first DCI equipment, replaces eRT into the outgoing direction routing target of the second forwarding instance, and encapsulates the outgoing direction routing target again to obtain a second message.
Illustratively, referring to the example in step 203, the first DCI device 101A generates a packet including the routing information of the forwarding instance a of the first DCI device 101A and eRT of the forwarding instance a based on the first packet. And the first DCI device 101A generates, based on the first packet, a packet including the routing information of the 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 shown 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 shown in table 5.
TABLE 4
BGP EVPN routing | 192.102.11.1 |
Next hop | 2.2.2.2 |
Extending community attributes | VXLAN tunnel type number |
eRT | 1:100 |
TABLE 5
BGP EVPN routing | 192.102.11.1 |
Next hop | 2.2.2.2 |
Extending community attributes | VXLAN tunnel type number |
eRT | 1:100 66:66 |
Step 205, when the VNI of the second forwarding instance is provided with the DCI identifier, the first DCI device sends a second packet to a second DCI device in the 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. The VXLAN Network Identifier (VNI) is used to distinguish VXLAN segments, and virtual machines of different VXLAN segments cannot directly communicate in two layers. One VNI represents one tenant, and when a plurality of user terminals adopt the same VNI, it represents that the plurality of user terminals belong to the same tenant. VNIs of different forwarding instances in the same device are different, i.e. forwarding instances in the same device correspond to VNIs one-to-one. Therefore, by adding DCI identifier to VNI, it is indicated that the corresponding forwarding instance is used for DCI interworking. In the embodiment of the present application, a forwarding instance for DCI interworking is referred to as a DCI interworking instance. The second forwarding instance of the first DCI device is provided with a DCI identifier, which indicates that the second forwarding instance is a DCI interworking instance.
In the DCI network provided in the embodiment of the present application, a data center is configured with a local interworking routing target and a DCI interworking routing target, and the local interworking routing target of the data center is different from the DCI interworking routing target. The local interworking routing target of the data center can be planned independently by the data center, and the DCI interworking routing target is usually planned jointly by two interconnected data centers.
Optionally, a forwarding instance for intra-DC interworking (hereinafter referred to as intra-DC interworking instance) may be configured with a local interworking routing target of the data center. The DCI interworking instance may be configured with a DCI interworking routing target, and the DCI interworking instance may also be configured with a local interworking routing target of the data center. The outgoing direction routing target of the DCI interworking instance of the first DCI device includes a DCI interworking routing target.
In the embodiment of the present application, a DCI interworking instance may be planned in advance in DCI equipment, and a DCI identifier may be added to a VNI of the DCI interworking instance in configuration information of the DCI equipment. The VNI of the forwarding instance is provided with a DCI identifier, which indicates that the forwarding instance is a DCI interworking instance, that is, the forwarding instance enables DCI interworking. The VNI of the forwarding instance is not set with the DCI identifier, which indicates that the forwarding instance is not a DCI interworking instance, that is, the forwarding instance does not enable DCI interworking.
Exemplarily, 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 the forwarding instance AA ' and the forwarding instance a are both 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 respectively as follows:
wherein "DCI" represents a DCI identifier, setting indicates that the VNI of the forwarding instance is provided with the DCI identifier, that is, the forwarding instance is a DCI interworking instance, and non-setting indicates that the VNI of the forwarding instance is not provided with the DCI identifier, that is, the forwarding instance is not a DCI interworking instance. The above configuration indicates that the forwarding instance AA' is a DCI interworking instance, and the forwarding instance a is not a DCI interworking instance.
Exemplarily, referring to the example in step 204, since the forwarding instance AA' of the first DCI device 101A is a DCI interworking instance, the first DCI device sends a packet containing the contents in 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 does not send a packet including the content in table 4 to the second DCI device, and the first DCI device may store the packet in the first DCI device, may forward the packet to other devices in the first data center, or may discard the packet.
In the embodiment of the application, the DCI interworking example is planned in advance in the first DCI device, and the DCI identifier is added to the VNI of the forwarding example in the configuration information of the first DCI device to distinguish the DCI interworking example, so that the first DCI device only sends the message generated for the DCI interworking example to the second DCI device, filtering of the routing information is achieved at the sending end, sending of multiple groups of repeated routing information can be avoided, and further, waste of transmission resources and waste of memory resources and computing resources of the second DCI device are reduced. In addition, because the DCI identifier of the VNI of the DCI interworking example only needs to be set in the configuration information of the DCI equipment and does not need to be transmitted to the opposite terminal through the BGP EVPN protocol, the BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
Optionally, before the first DCI device sends the second packet 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, whether the second DCI device and the first DCI device are in different data centers. In the embodiment of the application, the first DCI device may determine whether the BGP EVPN neighbor of the first DCI device is the DCI BGP EVPN neighbor according to the DCI attribute by directly setting the DCI attribute of the BGP EVPN neighbor. Alternatively, whether a BGP EVPN neighbor is a DCI BGP EVPN neighbor may be implicitly specified by other means, such as setting a horizontal split group attribute. Or, the comprehensive determination may be performed through a typical scenario, for example, iBGP EVPN is used between BGP EVPN peers within DC, eBGP EVPN is used between DCI BGP EVPN peers, and when the DCI BGP EVPN peers need to transmit iBGP routes to an opposite end, a 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 packet in the second DCI device.
The ingress direction route target of the third forwarding instance matches the egress direction route target of the second forwarding instance of the first DCI device. For the explanation of this step, reference may be made to step 202 above, and details of this embodiment 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 corresponding second packet acquired by the second DCI device includes a forwarding instance a' a and a forwarding instance C.
Step 207, when the VNI of the third forwarding instance of the second DCI device is provided with the DCI identifier, the second DCI device generates one 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 entry direction routing target of the DCI interworking instance of the second DCI device includes a DCI interworking routing target. The step 203 may be referred to in an implementation process of the second DCI device generating one forwarding table 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, which is not described herein in this embodiment of the present application.
Exemplarily, in the DCI network shown in fig. 1, a forwarding instance a ' a of a second DCI device 102A is planned to be a DCI interworking instance, a forwarding instance C is not a DCI interworking instance, and the forwarding instance a ' a and the forwarding instance C are both L3VPN instances, then in the configuration information of the second DCI device 102A, configurations of the forwarding instance a ' a and the forwarding instance C are respectively as follows:
wherein "DCI" represents a DCI identifier, setting indicates that the VNI of the forwarding instance is provided with the DCI identifier, that is, the forwarding instance is a DCI interworking instance, and non-setting indicates that the VNI of the forwarding instance is not provided with the DCI identifier, that is, the forwarding instance is not a DCI interworking instance. The above configuration indicates that the forwarding instance a' a is a DCI interworking instance, and the forwarding instance C is not a DCI interworking instance.
For example, 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 table entry of the forwarding instance a ' a of the second DCI device 102A based on the routing information of the forwarding instance AA ' of the first DCI device 101A, and the forwarding table entry 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 VNI of the second forwarding instance of the second DCI device is not set with the DCI identifier, that is, the second forwarding instance is not a DCI interworking instance, the second DCI device determines that the third forwarding instance is not related to the second packet, that is, the second DCI device determines that the third forwarding instance is not used to process a packet received across the data center. And if the forwarding examples matched by the second DCI equipment based on the second message are not DCI intercommunication examples, directly discarding the second message by the second DCI equipment.
For example, referring to the example in step 206, since the forwarding instance C of the second DCI device 102A is not a DCI interworking instance, the second DCI device determines that the forwarding instance C is not related to the second packet, that is, the second DCI device does not generate the routing table entry of the forwarding instance C based on the routing information in the second packet.
In the embodiment of the application, the DCI interworking example is planned in advance in the second DCI device, and the DCI identifier is added to the VNI of the forwarding example in the configuration information of the second DCI device to distinguish the DCI interworking example, so that the second DCI device processes the message sent by the first DCI device only for the DCI interworking example, filtering of routing information is achieved at a receiving end, and an error route is avoided when an incoming direction routing target of the interworking example in a certain DC of the second DCI device is the same as a local DCI interworking routing target of the first data center, thereby ensuring network security. In addition, the DCI identifier only needs to be set in the configuration information of the DCI equipment, so that a BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
And step 208, when the VNI of the third forwarding instance of the second DCI device is provided with the DCI identifier, the second DCI device generates a third packet based on the second packet.
The third packet includes the routing information of the third forwarding instance and the outbound 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 again in this embodiment of the present application.
Illustratively, referring to the example in step 207, the second DCI device 102A generates a message including the routing information of the 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 contents included in the packet corresponding to 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 type number |
eRT | 2:100 66:66 |
There is no restriction on the order of steps 207 and 208.
Step 209, the second DCI device sends a third packet to the 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 receiving the third packet, the second access device 102B may generate a forwarding table entry of the forwarding instance a '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 as shown in table 8. To this end, interworking between the forwarding instance a of the first access device 101B and the forwarding instance a' of the second access device 102B is achieved.
TABLE 8
Destination IP address | Next hop | Outlet interface |
192.102.11.1 | 3.3.3.3 | VXLAN tunnel |
The order 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 executed before step 202, and step 203 may also be executed simultaneously with step 202. The steps can be increased or decreased according to the situation. Any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application is covered by the protection scope of the present application, and thus the detailed description thereof is omitted.
According to the routing information transmission method provided by the embodiment of the application, the DCI interworking example is planned in the DCI equipment in advance, and the DCI identifier is added to the VNI of the forwarding example in the configuration information of the DCI equipment to distinguish the DCI interworking example, so that the DCI equipment only sends the message generated aiming at the DCI interworking example to the DCI equipment at the opposite end, the filtering of the routing information is realized at the sending end, multiple groups of repeated routing information can be avoided being sent, and further the waste of transmission resources and the waste of memory resources and computing resources of second DCI equipment are reduced. By planning DCI interworking examples in advance in the DCI equipment at the opposite end and adding DCI identifications to the VNIs of the forwarding examples in the configuration information of the DCI equipment at the opposite end to distinguish the DCI interworking examples, the DCI equipment at the opposite end only processes messages sent by the DCI equipment aiming at the DCI interworking examples, filtering of routing information is realized at a receiving end, the phenomenon that when the routing target of the incoming direction of the interworking examples in a certain DC of the DCI equipment at the opposite end is the same as the routing target of the local DCI interworking in the first data center, wrong routing is generated is avoided, and network safety is guaranteed.
In addition, the DCI identifier only needs to be set in the configuration information of the DCI equipment, so that a BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
Fig. 3 is a schematic structural diagram of a routing information transmission apparatus according to an embodiment of the present application. The method is used for realizing the function of the first DCI equipment in the above implementation modes. 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 egress direction route target of the first forwarding instance.
An obtaining module 302, configured to obtain a second forwarding instance corresponding to the first packet in the first DCI device, where an ingress direction route target of the second forwarding instance is matched with an egress direction route 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 the routing information of the second forwarding instance and the outbound routing target of the second forwarding instance.
A sending module 304, configured to send a second packet to a second DCI device in a second data center when the VNI of the second forwarding instance is provided with the DCI identifier, where the second DCI device is a BGP EVPN neighbor of the first DCI device.
Optionally, the outgoing direction routing target of the DCI interworking instance of the first DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
Optionally, as shown in fig. 4, the apparatus 30 further includes:
a second generating module 305, configured to generate a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
The routing information transmission apparatus provided in this embodiment of the present application, by pre-planning a DCI interworking instance in a DCI device and adding a DCI identifier to a VNI of a forwarding instance in configuration information of the DCI device to distinguish the DCI interworking instance, enables the DCI device to send a message generated for the DCI interworking instance only to an opposite-end DCI device through a sending module, implements filtering of routing information at a sending end, can avoid sending multiple sets of repeated routing information, and further reduces waste of transmission resources and waste of memory resources and computational resources of a second DCI device. In addition, the DCI identifier only needs to be set in the configuration information of the DCI equipment, so that a BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
Fig. 5 is a schematic structural diagram of a routing information transmission apparatus according to another embodiment of the present application. The method is used for realizing the function of the second DCI equipment in the above implementation modes. As shown in fig. 5, the apparatus 50 includes:
a receiving module 501, configured to receive a first message sent by a first DCI device in a first data center, where the first message includes routing information of a first forwarding instance of the first DCI device and an egress 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 is configured to obtain a second forwarding instance corresponding to the first packet in the second DCI device, where an ingress direction route target of the second forwarding instance is matched with an egress direction route target of the first forwarding instance.
A first generating module 503, configured to generate a second packet based on the first packet when the VNI of the second forwarding instance is provided with the DCI identifier, where the second packet includes the routing information of the second forwarding instance and the outbound routing target of the second forwarding instance.
A sending module 504, configured to send the second packet 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 not related to the first packet when the DCI is not set in the VNI of the second forwarding instance.
Optionally, the entry direction routing target of the DCI interworking instance of the second DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
Optionally, as shown in fig. 7, the apparatus 50 further includes:
a second generating module 506, configured to generate a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance when the VNI of the second forwarding instance is provided with the DCI identifier.
The routing information transmission apparatus provided in this embodiment of the present application, by pre-planning the DCI interworking instance in the DCI device of the opposite end, and adding the DCI identifier to the VNI of the forwarding instance in the configuration information of the DCI device of the opposite end to distinguish the DCI interworking instance, enables the DCI device of the opposite end to process the packet sent by the DCI device only for the DCI interworking instance, implements filtering of the routing information at the receiving end, avoids generating an erroneous route when the ingress direction routing target of the interworking instance in a certain DC of the DCI device of the opposite end is the same as the local DCI interworking routing target of the first data center, and ensures network security. In addition, the DCI identifier only needs to be set in the configuration information of the DCI equipment, so that a BGP EVPN protocol does not need to be changed, the implementation is simple, and the universality is high.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present application provides a DCI network, where the DCI network includes: the system comprises a first data center and a second data center which are interconnected. The first data center comprises a first DCI device, and the second data center comprises a second DCI device. The first DCI device and the second DCI device are BGP EVPN neighbors.
The first DCI device includes the routing information transmission apparatus shown in fig. 3 or fig. 4, and the second DCI device includes the routing information transmission apparatus shown in any one of fig. 5 to 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 transmitting 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 comprising program instructions;
a processor 801, configured to invoke the computer program, implement the steps performed by the first DCI device and/or the steps 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 executes various functional applications and data processing by running a computer program. The processor 801 may be a Central Processing Unit (CPU), an Ethernet switch (Ethernet switch) chip, a Network Processor (NP), or a combination of a CPU, an Ethernet switch chip, and an NP. The CPU can control the ethernet switching chip or NP to perform initialization, service table entry issuing, protocol packet transceiving, various interrupts (including port link up and port link down processing), and the like. Optionally, the ethernet switching chip may be externally provided with a Random Access Memory (RAM) for storing the forwarded packet, so as to solve the problem of insufficient internal cache of the ethernet switching chip. The Ethernet exchange chip completes the Ethernet interface connection of optical or electric interfaces between devices through a physical layer (PHY).
The memory 802 may be used to store computer programs. Alternatively, the memory may store an operating system and application program elements required for at least one function. The operating system may be a Real Time eXceptive (RTX) operating system, such as LINUX, UNIX, WINDOWS, or OS X. The memory includes volatile memory (volatile memory), 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 Drive (HDD) or a solid-state drive (SSD); the memory 802 may also comprise a combination of the above-described types of memory. Illustratively, the memory 802 includes RAM and flash memory. Programs run by the processor 801 and statically configured parameters are stored in flash memory, and code and data executed while the programs are running are stored in RAM.
The communication interface 804 may be multiple, the communication interface 804 being used for communication with other storage devices or network devices. For example, in this embodiment, the communication interface 804 may be configured to send a packet carrying routing information to other devices.
The memory 802 and the communication interface 804 are connected to the processor 801 via a communication bus 803, respectively.
An embodiment of the present application further provides a computer storage medium, where instructions are stored on the computer storage medium, and when the instructions are executed by a processor, the routing information transmission method shown in fig. 2 is implemented.
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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In the 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 this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The above description is only exemplary of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principles of the present application are intended to be included within the scope of the present application.
Claims (18)
1. A routing information transmission method is applied to a data center interconnection DCI network, and comprises the following steps:
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 routing information of a first forwarding instance of an access device in the first data center and an egress 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 example and the outgoing direction routing target of the second forwarding example;
when the virtual extensible local area network identifier VNI of the second forwarding instance is provided with a DCI identifier, 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.
2. The method of claim 1, wherein the egress routing target of the DCI interworking instance of the first DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and the first DCI equipment generates a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
4. A routing information transmission method is applied to a data center interconnection DCI network, and comprises the following steps:
receiving, by a second DCI device in a second data center, a first message sent by a first DCI device in a first data center, where the first message includes routing information of a first forwarding instance of the first DCI device and an egress direction routing target of the first forwarding instance, and the second DCI device is a border gateway protocol ethernet virtual private network 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 routing target in the incoming direction of the second forwarding instance is matched with the routing target in the outgoing direction of the first forwarding instance;
when the virtual extensible local area network identifier VNI of the second forwarding instance is provided with a DCI identifier, the second DCI device generates a second packet based on the first packet, where the second packet includes the routing information of the second forwarding instance and an egress routing target of the second forwarding instance;
and the second DCI equipment sends the second message to a BGP EVPN neighbor of the second DCI equipment in the second data center.
5. The method of claim 4, wherein after the second DCI device obtains a second forwarding instance corresponding to the first packet in the second DCI device, the method further comprises:
when the VNI of the second forwarding instance is not set with a DCI identifier, the second DCI device determines that the second forwarding instance is not related to the first packet.
6. The method according to claim 4 or 5, wherein the entry direction routing target of the DCI interworking instance of the second DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
7. The method according to any one of claims 4 to 6, further comprising:
and when the VNI of the second forwarding instance is provided with a DCI identifier, the second DCI device generates a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
8. A routing information transmission apparatus applied to a first DCI device in a first data center of a DCI-on-data-center 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 egress routing target of the first forwarding instance;
an obtaining module, configured to obtain a second forwarding instance corresponding to the first packet in the first DCI device, where an ingress direction routing target of the second forwarding instance is matched with an egress 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 the routing information of the second forwarding instance and an outbound routing target of the second forwarding instance;
and a sending module, configured to send the second packet to a second DCI device in a second data center when the DCI is set in the virtual extensible local area network identifier VNI of the second forwarding instance, where the second DCI device is a BGP EVPN neighbor of the first DCI device.
9. The apparatus of claim 8, wherein the egress routing target of the DCI interworking instance of the first DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
10. The apparatus of claim 8 or 9, further comprising:
a second generating module, configured to generate a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance.
11. A routing information transmission apparatus, applied to a second DCI device of a second data center of a data center-to-core DCI network, the apparatus comprising:
a receiving module, configured to receive a first message sent by a first DCI device in a first data center, where the first message includes routing information of a first forwarding instance of the first DCI device and an egress routing target of the first forwarding instance, and the second DCI device is a border gateway protocol ethernet virtual private network BGP EVPN neighbor of the first DCI device;
an obtaining module, configured to obtain a second forwarding instance corresponding to the first packet in the second DCI device, where an ingress direction routing target of the second forwarding instance is matched with an egress direction routing target of the first forwarding instance;
a first generating module, configured to generate a second packet based on the first packet when a DCI identifier is set in a virtual extensible local area network identifier VNI of the second forwarding instance, where the second packet includes routing information of the second forwarding instance and an outbound routing target of the second forwarding instance;
a sending module, configured to send the second packet to a BGP EVPN neighbor of the second DCI device in the second data center.
12. The apparatus of claim 11, further comprising:
a determining module, configured to determine that the second forwarding instance is unrelated to the first packet when the DCI identifier is not set in the VNI of the second forwarding instance.
13. The apparatus according to claim 11 or 12, wherein the ingress direction routing target of the DCI interworking instance of the second DCI device includes a DCI interworking routing target, and the DCI interworking instance is a forwarding instance in which a DCI identifier is set for a corresponding VNI.
14. The apparatus of any of claims 11 to 13, further comprising:
and a second generating module, configured to generate a forwarding table entry of the second forwarding instance based on the routing information of the first forwarding instance when the VNI of the second forwarding instance is provided with the DCI identifier.
15. A DCI network interconnected by a data center, the DCI network comprising: 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 mutually adjacent to a BGPEVPN (border gateway protocol Ethernet virtual private network);
the first DCI device comprising the routing information transmission apparatus of any one of claims 8 to 10, the second DCI device comprising the routing information transmission apparatus of any one of claims 11 to 14.
16. A routing information transfer apparatus, comprising: a processor and a memory;
the memory for storing a computer program, the computer program comprising program instructions;
the processor is configured to invoke the computer program to implement the routing information transmission method according to any one of claims 1 to 3.
17. A routing information transfer apparatus, comprising: a processor and a memory;
the memory for storing a computer program, the computer program comprising program instructions;
the processor is configured to invoke the computer program to implement the routing information transmission method according to any one of claims 4 to 7.
18. A computer storage medium having stored thereon instructions which, when executed by a processor, carry out the routing information transmission method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911048110.4A CN112751759B (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 |
---|---|---|---|
CN201911048110.4A CN112751759B (en) | 2019-10-30 | 2019-10-30 | Routing information transmission method and device and data center internet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112751759A true CN112751759A (en) | 2021-05-04 |
CN112751759B CN112751759B (en) | 2024-06-07 |
Family
ID=75641157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911048110.4A Active CN112751759B (en) | 2019-10-30 | 2019-10-30 | Routing information transmission method and device and data center internet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112751759B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100329265A1 (en) * | 2009-06-26 | 2010-12-30 | Nortel Networks Limited | Method and Apparatus for implementing L2 VPNs on an IP Network |
CN103634210A (en) * | 2012-08-28 | 2014-03-12 | 杭州华三通信技术有限公司 | Method and apparatus for discovering opposite-end provider edge (PE) device of virtual private LAN service (VPLS) instance |
CN106059882A (en) * | 2016-05-05 | 2016-10-26 | 杭州华三通信技术有限公司 | Route insertion method and device |
CN106453156A (en) * | 2016-10-31 | 2017-02-22 | 杭州华三通信技术有限公司 | Communication method and apparatus between virtual devices |
CN106878134A (en) * | 2016-12-16 | 2017-06-20 | 新华三技术有限公司 | Data center's interoperability methods and device |
CN106878278A (en) * | 2017-01-09 | 2017-06-20 | 新华三技术有限公司 | A kind of message processing method and device |
CN107018076A (en) * | 2017-04-07 | 2017-08-04 | 新华三技术有限公司 | A kind of monitoring messages method and apparatus |
WO2017143695A1 (en) * | 2016-02-22 | 2017-08-31 | 中兴通讯股份有限公司 | Sub-network intercommunication method and device |
CN107547344A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | VXLAN message processing methods and device |
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 |
CN110351135A (en) * | 2019-06-28 | 2019-10-18 | 新华三技术有限公司合肥分公司 | Method for configuring network equipment and device in more DC |
CN112751767A (en) * | 2019-10-30 | 2021-05-04 | 华为技术有限公司 | Routing information transmission method and device and data center internet |
-
2019
- 2019-10-30 CN CN201911048110.4A patent/CN112751759B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100329265A1 (en) * | 2009-06-26 | 2010-12-30 | Nortel Networks Limited | Method and Apparatus for implementing L2 VPNs on an IP Network |
CN103634210A (en) * | 2012-08-28 | 2014-03-12 | 杭州华三通信技术有限公司 | Method and apparatus for discovering opposite-end provider edge (PE) device of virtual private LAN service (VPLS) instance |
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 |
WO2017143695A1 (en) * | 2016-02-22 | 2017-08-31 | 中兴通讯股份有限公司 | Sub-network intercommunication method and device |
CN106059882A (en) * | 2016-05-05 | 2016-10-26 | 杭州华三通信技术有限公司 | Route insertion method and device |
CN106453156A (en) * | 2016-10-31 | 2017-02-22 | 杭州华三通信技术有限公司 | Communication method and apparatus between virtual devices |
CN106878134A (en) * | 2016-12-16 | 2017-06-20 | 新华三技术有限公司 | Data center's interoperability methods and device |
CN106878278A (en) * | 2017-01-09 | 2017-06-20 | 新华三技术有限公司 | A kind of message processing method and device |
CN107018076A (en) * | 2017-04-07 | 2017-08-04 | 新华三技术有限公司 | A kind of monitoring messages method and apparatus |
CN107547344A (en) * | 2017-06-30 | 2018-01-05 | 新华三技术有限公司 | VXLAN message processing methods and device |
CN110351135A (en) * | 2019-06-28 | 2019-10-18 | 新华三技术有限公司合肥分公司 | Method for configuring network equipment and device in more DC |
CN112751767A (en) * | 2019-10-30 | 2021-05-04 | 华为技术有限公司 | Routing information transmission method and device and data center internet |
Also Published As
Publication number | Publication date |
---|---|
CN112751759B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108574616B (en) | Method, equipment and system for processing route | |
US10425325B2 (en) | Optimizing traffic paths to orphaned hosts in VXLAN networks using virtual link trunking-based multi-homing | |
CN107547402B (en) | Forwarding table generation method and device | |
US9858163B2 (en) | Dual adjacency between edge devices at a network site | |
US11374857B2 (en) | Network device management method and apparatus, and system for indicating a network device to perform management operation | |
CN112751767B (en) | Routing information transmission method and device and data center internet | |
EP3264690A1 (en) | Bridge for connecting layer 2 and layer 3 virtual networks | |
CN110798403B (en) | Communication method, communication device and communication system | |
CN105376154A (en) | Progressive MAC address learning | |
US20210029022A1 (en) | Packet forwarding method and apparatus | |
EP2915298A1 (en) | Message forwarding between geographically dispersed network sites | |
US20090225660A1 (en) | Communication device and operation management method | |
CN111786882B (en) | Route processing method and device | |
CN109474507B (en) | Message forwarding method and device | |
US12081367B2 (en) | Generating route target values for virtual private network routes | |
CN108156067B (en) | Method and system for realizing Ethernet-based virtual private network | |
CN111865780A (en) | Synchronization method and device | |
CN113254148A (en) | Virtual machine migration method and cloud management platform | |
CN112751758B (en) | Routing information transmission method and device and data center internet | |
CN112751759B (en) | Routing information transmission method and device and data center internet | |
WO2021135472A1 (en) | Method and apparatus for processing routing information | |
CN108259292B (en) | Method and device for establishing tunnel | |
CN113300998A (en) | Method and device for realizing data encryption transmission and communication system | |
WO2022053007A1 (en) | Network reachability verification method and apparatus, and computer storage medium | |
Perlman et al. | Alternatives for Multilevel Transparent Interconnection of Lots of Links (TRILL) |
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 |