CN109728926B - Communication method and network device - Google Patents

Communication method and network device Download PDF

Info

Publication number
CN109728926B
CN109728926B CN201711038119.8A CN201711038119A CN109728926B CN 109728926 B CN109728926 B CN 109728926B CN 201711038119 A CN201711038119 A CN 201711038119A CN 109728926 B CN109728926 B CN 109728926B
Authority
CN
China
Prior art keywords
network device
routing information
network
information
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
CN201711038119.8A
Other languages
Chinese (zh)
Other versions
CN109728926A (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 CN201711038119.8A priority Critical patent/CN109728926B/en
Publication of CN109728926A publication Critical patent/CN109728926A/en
Application granted granted Critical
Publication of CN109728926B publication Critical patent/CN109728926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a communication method and network equipment, wherein the method comprises the following steps: a first network device in a backbone network receives a BGP message from a second network device in a data center, wherein the BGP message comprises indication information and first routing information, and the indication information is used for indicating whether the first routing information needs to be announced in the backbone network; only when the indication information indicates that the first routing information needs to be announced in the backbone network, the first network equipment generates second routing information according to the first routing information; the first network device sends the second routing information to a third network device in the backbone network. By adopting the embodiment of the application, the simplicity of the routing strategy configuration on the PE in the EVPN can be improved, and the maintenance cost is reduced.

Description

Communication method and network device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and a network device.
Background
An Ethernet Virtual Private Network (EVPN) Data Center Interconnect (DCI) scenario may include a Gateway (GW) and a service Provider Edge router (PE) of a Data Center. Taking the schematic architecture diagram of the communication system shown in fig. 1 as an example, a plurality of Virtual Machines (VMs) of the first data center DC1 are connected to the backbone service provider edge router PE1 through a gateway GW1, where the GW1 may include a plurality of EVPN instances (EVIs), and the VMs may connect to the EVIs through an Access Circuit (AC) interface and send routing information to the EVIs. Gateway GW1 may send routing information from VMs obtained by multiple EVIs to PE 1. If routing information sent by GW1 is to be processed in a differentiated manner on PE1, for example, routing information obtained by controlling a part of AC interfaces or obtained by controlling a part of EVI from VMs is not advertised in a backbone network, a complex routing policy needs to be deployed on PE1, for example, a routing policy matching Media Access Control (MAC) addresses is configured on PE1, the configuration of the routing policy is complex, and the cost of post-maintenance is high, and errors are easy to occur.
Disclosure of Invention
The embodiment of the application aims at the problem that the configuration of the routing strategy on the PE in the EVPN is complex, provides the communication method and the network equipment, can improve the simplicity of the configuration of the routing strategy on the PE in the EVPN, and reduces the maintenance cost.
In a first aspect, an embodiment of the present application provides a communication method, including: a first network device in a backbone network receives a Border Gateway Protocol (BGP) message from a second network device in a data center, the BGP message including indication information and first routing information, the indication information being used to indicate whether the first routing information needs to be advertised in the backbone network; only when the indication information indicates that the first routing information needs to be announced in the backbone network, the first network equipment generates second routing information according to the first routing information; the first network device sends the second routing information to a third network device in the backbone network.
In the technical scheme, the first network device notifies or does not notify the other devices in the backbone network of the routing information from the second network device according to the indication information sent by the second network device. Compared with the traditional communication method, the PE needs to configure various different complex routing strategies aiming at a large amount of routing information from a plurality of EVIs, in the embodiment of the application, the data center side network equipment determines whether the routing information needs to be announced to the backbone network, and the PE on the backbone network only needs to announce or not announce the routing information from the data center according to the indication information, so that the simplicity of routing strategy configuration on the PE can be improved, and the maintenance cost is reduced.
Optionally, the indication information may include a route type attribute, where the route type attribute is used to indicate a protocol type of a route included in the second route information, a tunnel of the protocol type is established between the first network device and the third network device, and the first network device sends the second route information to all network devices in the backbone network that establish tunnels of the protocol type with the first network device.
In this technical solution, the first network device may distinguish a network device in the backbone network that establishes a tunnel with the first network device using a different protocol, and advertise the routing information via the tunnel of the protocol type indicated by the indication information. For example, a first network device in a backbone network establishes an MPLS tunnel and a GRE tunnel with a different network device, and the first network device advertises routing information to a network device located at an opposite end of the MPLS tunnel according to the indication information. By distinguishing the protocol types of the tunnels, the routing strategy configuration in the EVPN can be more flexible and simpler.
In a second aspect, an embodiment of the present application provides a communication method, including: and the second network equipment in the data center sends a BGP message to the first network equipment in the backbone network, wherein the BGP message comprises indication information and first routing information, and the indication information is used for indicating whether the first routing information needs to be announced in the backbone network.
In the technical scheme, the second network device sends the indication information and the first routing information to the first network device, so that the first network device notifies or does not notify the first routing information to other devices in the backbone network according to the indication information. Compared with the traditional communication method, the PE needs to configure various different complex routing strategies aiming at a large amount of routing information from a plurality of EVIs, in the embodiment of the application, the data center side network equipment determines whether the routing information needs to be announced to the backbone network, and the PE on the backbone network only needs to announce or not announce the routing information from the data center according to the indication information, so that the simplicity of routing strategy configuration on the PE can be improved, and the maintenance cost is reduced.
Optionally, the indication information is used to enable the first network device to generate the second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network, and send the second routing information to the third network device in the backbone network.
Optionally, the second network device may determine whether the first routing information needs to be advertised in the backbone network based on the EVI information, the AC interface information, or the broadcast domain information.
In the technical scheme, the second network equipment determines whether the routing information needs to be announced to a backbone network according to the information, so that the configuration of the routing strategy in the EVPN is simpler, more convenient and more flexible.
In a third aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium is used to store computer program instructions, and the computer program instructions, when executed by the first network device, cause the first network device to perform the method of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer storage medium, where the computer storage medium is used to store computer program instructions, and the computer program instructions, when executed by the second network device, cause the second network device to perform the method of the second aspect.
In a fifth aspect, an embodiment of the present application provides a first network device, where the first network device has a function of implementing a behavior of the first network device in the example of the communication method described in the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units or modules corresponding to the above functions.
In one design, the first network device may include a receiving module, a processing module, and a transmitting module in a structure, where the processing module is configured to support the first network device to perform corresponding functions in the communication method according to the first aspect. The receiving module and the sending module are used for supporting communication between the first network device and other devices. The first network device may also include a memory module, coupled to the processing module, that stores necessary program instructions and data for the first network device. As an example, the processing module may be a processor, the receiving module may be a receiver, and the sending module may be a transmitter. The storage module may be a memory. In another example, the processing module may be a processor, and the receiving module and the transmitting module may be implemented by one transceiver.
In a sixth aspect, an embodiment of the present application provides a second network device, where the second network device has a function of implementing a behavior of the second network device in the communication method example described in the second aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units or modules corresponding to the above functions.
In one design, the second network device may include a sending module configured to support the second network device to perform corresponding functions in the communication method according to the second aspect. The second network device may further include a processing module configured to support the second network device to perform corresponding functions in the communication method of the second aspect. The second network device may further include a receiving module and a transmitting module for supporting communication between the network device and other devices. The network device may also include a memory module for coupling with the processing module that stores program instructions and data necessary for the network device. As an example, the processing module may be a processor, the receiving module may be a receiver, and the sending module may be a transmitter. The storage module may be a memory. In another example, the processing module may be a processor, and the receiving module and the transmitting module may be implemented by one transceiver.
In a seventh aspect, the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the communication method according to the first aspect.
In an eighth aspect, embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to perform the communication method according to the second aspect.
In a ninth aspect, an embodiment of the present application provides a communication system, where the system includes the first network device and the second network device described in the above aspect.
In one design, the system may further include another device, such as a third network device, interacting with the first network device or the second network device in the scheme provided in this embodiment.
In a tenth aspect, embodiments of the present application provide a chip system, where the chip system includes a processor, configured to implement the functions recited in the foregoing aspects, for example, to generate or process data and/or information recited in the foregoing methods.
In one design, the system-on-chip further includes a memory to hold program instructions and data necessary for the first network device. The chip system may be formed by a chip, or may include a chip and other discrete devices.
In an eleventh aspect, embodiments of the present application provide a chip system, which includes a processor, configured to enable a second network device to implement the functions recited in the foregoing aspects, for example, to receive or process data and/or information recited in the foregoing methods.
In one design, the system-on-chip further includes a memory to hold program instructions and data necessary for the second network device. The chip system may be formed by a chip, or may include a chip and other discrete devices.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1 is a schematic architecture diagram of a communication system disclosed in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a DCI networking disclosed in an embodiment of the present application;
fig. 3 is a flow chart illustrating a communication method disclosed in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a first network device disclosed in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a first network device disclosed in another embodiment of the present application;
fig. 6 is a schematic structural diagram of a second network device disclosed in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a second network device according to another embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
In order to better understand a communication method, apparatus, and system disclosed in the embodiments of the present application, a network architecture to which the embodiments of the present application are applicable is first described below. Referring to fig. 1, fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present disclosure. As shown in fig. 1, the communication system may include a gateway GW1, a gateway GW2, a gateway GW3, a service provider edge router PE1, and a service provider edge router PE 2. Wherein GW1 and GW3 operate in a first data center (e.g., a data center located in beijing), PE1 and PE2 operate in a backbone network, and GW2 operates in a second data center (e.g., a data center located in shanghai). GW1 and GW3 may be connected to the backbone network via PE1, and GW2 may be connected to the backbone network via PE 2. Routing information can be transmitted between GW1 and PE1, between PE1 and PE2, between PE2 and GW2, and between GW3 and PE1 through BGP messages.
Taking the structural schematic diagram of DCI networking shown in fig. 2 as an example, GW1 operates in a first data center, PE1 and PE2 operate in a backbone network, GW2 operates in a second data center, virtual machine VM11, virtual machine VM12, virtual machine VM13 and virtual machine VM14 may operate in GW1 or other hosts, the other hosts operate in the first data center and are connected to the backbone network through GW1, and GW1 includes EVPN instance EVI1 and EVPN instance EVI 2. The GW1 obtains the routing information of the VM11 through the AC interface 1, obtains the routing information of the VM12 through the AC interface 2, obtains the routing information of the VM13 through the AC interface 3, obtains the routing information of the VM14 through the AC interface 4, and further the GW1 can obtain the routing information through the AC interface 1 and the AC interface 2 by configuring the EVI1, and obtain the routing information through the AC interface 3 and the AC interface 4 by configuring the EVI 2. The routing information acquired by the GW1 includes a Virtual Extensible LAN (VXLAN) route. VXLAN routing refers to a route used when routing data messages to network devices in VXLAN. The routing information may include a MAC address or an Internet Protocol (IP) address, etc.
When the first routing information needs to be advertised in the backbone network, the GW1 may send a BGP message including indication information and the first routing information to the PE1, where the indication information is used to indicate that the first routing information is advertised in the backbone network. When PE1 determines that the indication information indicates that the first routing information needs to be advertised in the backbone network, second routing information may be generated based on the first routing information. PE1 sends second Routing information to PE2, where the second Routing information includes Multiprotocol Label Switching (MPLS) Routing or Generic Routing Encapsulation (GRE) Routing. MPLS routing refers to routing used when routing data packets to network devices in an MPLS network. GRE routing refers to routing used when routing data packets to network devices in a GRE network. PE2 generates third routing information based on the second routing information, PE2 sends the third routing information to GW2, where the third routing information includes VXLAN routes. VXLAN routing can be used to determine the next hop device when sending data messages to network devices in VXLAN. MPLS routing may be used to determine a next hop device when sending data packets to network devices in an MPLS network. GRE routing can be used to determine the next hop device when sending data packets to network devices in the GRE network.
When the first routing information does not need to be advertised in the backbone network, the GW1 may send a BGP message including indication information and the first routing information to the PEI, where the indication information is used to indicate that the first routing information does not need to be advertised in the backbone network. When the PEI determines that the indication information indicates that the first routing information does not need to be advertised in the backbone network, the first routing information will not be advertised by the PE2 in the backbone network, but the first routing information may be sent to the gateway GW3 operating in the first data center.
Based on the schematic architecture of the communication system shown in fig. 1, please refer to fig. 3, and fig. 3 is a communication method provided in the embodiment of the present application, which includes, but is not limited to, the following steps:
step S301: a second network device in the first data center determines whether the first routing information needs to be advertised in the backbone network based on the EVI information, the AC interface information, or the broadcast domain information.
Wherein the second network device runs in the first data center, and the second network device may be GW1 in fig. 1 or fig. 2.
Alternatively, the first routing information may be routing information obtained from the EVI by configuring the EVI. Taking fig. 2 as an example, the first routing information may be routing information obtained through the EVI1, and the routing information includes routing information of the VM11 obtained through the AC interface 1 and routing information of the VM12 obtained through the AC interface 2. Or the first routing information may be routing information obtained through the EVI2, which includes routing information of the VM11 obtained through the AC interface 3 and routing information of the VM12 obtained through the AC interface 4.
Optionally, the first routing information may be routing information acquired through an AC interface. Taking fig. 2 as an example, the first routing information may be routing information acquired through one or more of the AC interface 1, the AC interface 2, the AC interface 3, or the AC interface 4, for example, the first routing information may be routing information acquired through the AC interface 1 and the AC interface 4, or the first routing information may be routing information acquired through the AC interface 2, the AC interface 3, and the AC interface 4.
Optionally, the first routing information may be routing information acquired through a broadcast domain. Taking fig. 2 as an example, the first routing information may be routing information acquired through one or more of a broadcast domain to which the AC interface 1 belongs, a broadcast domain to which the AC interface 2 belongs, a broadcast domain to which the AC interface 3 belongs, or a broadcast domain to which the AC interface 4 belongs, and for example, the first routing information may be routing information acquired through a broadcast domain to which the AC interface 1 belongs and a broadcast domain to which the AC interface 4 belongs, or the first routing information may be routing information acquired through a broadcast domain to which the AC interface 2 belongs, a broadcast domain to which the AC interface 3 belongs, and a broadcast domain to which the AC interface 4 belongs. It should be noted that one broadcast domain may correspond to one or more AC interfaces. Taking fig. 2 as an example, when the first broadcast domain corresponds to the AC interface 1, the AC interface 2, and the AC interface 3, and the second broadcast domain corresponds to the AC interface 4, the first routing information may be routing information acquired through the first broadcast domain, or routing information acquired through the second broadcast domain, for example, the first routing information may be routing information acquired through the AC interface 1, the AC interface 2, and the AC interface 3, or the first routing information may be routing information acquired through the AC interface 4.
Optionally, the second network device may determine whether the first routing information needs to be advertised in the backbone network based on the EVI information. Taking fig. 2 as an example, the second network device may determine that routing information obtained by EVI1 needs to be advertised in the backbone network, while routing information obtained by EVI2 does not need to be advertised in the backbone network.
Optionally, the second network device may determine whether the first routing information needs to be advertised in the backbone network based on the AC interface information. Taking fig. 2 as an example, the second network device may determine that the first routing information acquired through the AC interface 1 needs to be advertised in the backbone network, and the first routing information acquired through the AC interface 2, the AC interface 3, and the AC interface 4 does not need to be advertised in the backbone network.
Optionally, the second network device may determine whether the first routing information needs to be advertised in the backbone network based on the broadcast domain information. Taking fig. 2 as an example, the second network device may determine that the first routing information acquired through the first broadcast domain needs to be advertised in the backbone network, and the first routing information acquired through the second broadcast domain does not need to be advertised in the backbone network. Illustratively, the first broadcast domain may correspond to AC interface 1, AC interface 2, and AC interface 3, and the second broadcast domain may correspond to AC interface 4.
Step S302: and the second network equipment sends a BGP message to the first network equipment in the backbone network, wherein the BGP message comprises indication information and first routing information.
Wherein the first network device operates in a backbone network, and the first network device may be PE1 in fig. 1 or fig. 2.
Specifically, the second network device may send a BGP message to the first network device. The BGP message may include indication information and first routing information. The indication information may be generated by the second network device based on the result of the determination of step S301. The indication Information may be carried in a Network Layer availability Information (NLRI) field or an Extended community Attribute (Extended community Attribute) field of the BGP message, for example.
For example, the second network device obtains the first routing information (e.g., the first routing information is a MAC address including MAC1-MAC1000) by configuring the EVI1, and obtains the other routing information (e.g., the other routing information is a MAC address including MAC1001-MAC2000) by configuring the EVI 2. The second network device may extend the BGP protocol to send the routing information and the indication information to the first network device using BGP messages. For example, indication information may be added in an extended community Attribute field or an NLRI field of the BGP message, and the indication information may include an advertisement Attribute (e.g., a sting Attribute). If the second network device determines that the first routing information obtained from the EVI1 needs to be advertised in the backbone network based on the EVI information, the second network device sends a BGP message including the first routing information and an advertised attribute to the first network device, where a value of the advertised attribute may be set to "Y". If the second network device determines that the other routing information obtained from EVI2 does not need to be advertised in the backbone network, the second network device may send a BGP message including the other routing information and an advertised attribute to the first network device, where the value of the advertised attribute may be set to "N".
Step S303: when the indication information indicates that the first routing information needs to be advertised in the backbone network, the first network device generates second routing information according to the first routing information.
Specifically, after receiving the BGP message from the second network device, the first network device may obtain indication information in an extended community attribute field or an NLRI field included in the BGP message, and when a value of an advertisement attribute in the indication information is "Y", the first network device may determine that the first routing information needs to be advertised in the backbone network. When the value of the advertisement attribute is "N", the first network device may determine that the first routing information does not need to be advertised in the backbone network, and proceed to step S307.
Optionally, after receiving the BGP message from the second network device, the first network device may determine whether the BGP message includes the indication information or includes the notification attribute, and when the BGP message does not include the indication information or does not include the notification attribute, the first network device may determine that the first routing information needs to be notified in the backbone network. Therefore, the route forwarding of the first network device can be compatible with the original route notification mode, and when the side part device of the data center is not upgraded so that the indication information or the notification attribute cannot be added in the BGP message, the side part device of the data center can normally notify the route information of the data center to the backbone network. Further, after the first network device determines that the first routing information needs to be advertised in the backbone network, second routing information may be generated according to the first routing information, where the second routing information includes an MPLS route or a GRE route.
Optionally, the indication information may include a route type attribute, where the route type attribute is used to indicate a protocol type of the route included in the second route information. After the first network device determines that the first routing information needs to be advertised in the backbone network, the first network device may generate second routing information according to the routing type attribute. For example, if the protocol type of the route included in the second routing information indicated by the route type attribute is MPLS, the first network device may generate the second routing information including MPLS route according to the first routing information.
Step S304: the first network device sends the second routing information to a third network device in the backbone network.
Wherein the third network device operates in the backbone network, and the third network device may be PE2 in fig. 1 or fig. 2.
Optionally, a protocol type tunnel is established between the first network device and the third network device, and the first network device sends the second routing information to all network devices in the backbone network, which establish a protocol type tunnel of a route included in the second routing information with the first network device.
Specifically, the first network device in the backbone network may previously establish tunnels of different protocol types with other devices in the backbone network, for example, an MPLS protocol type tunnel is established between the first network device and the third network device, and a GRE protocol type tunnel is established between the first network device and another device in the backbone network. After the first network device generates the second routing information including the MPLS route, the second routing information may be sent to all network devices in the backbone network that establish a tunnel of the MPLS protocol type with the first network device. Therefore, the first network equipment can announce the routing information according to the protocol types of different backbone network tunnels so as to improve the flexibility and convenience of routing strategy configuration.
Step S305: the third network device generates third routing information according to the second routing information.
After receiving the second routing information from the first network device, the third network device may generate third routing information according to the second routing information, where the third routing information may include a VXLAN route.
Step S306: and the third network equipment sends the third routing information to fourth network equipment of the second data center.
Wherein the fourth network device operates in the second data center, and the fourth network device may be GW2 in fig. 1 or fig. 2.
After receiving the third routing information, the fourth network device may send a data packet to the network device in the first data center by using the VXLAN route therein.
Step S307: when the indication information indicates that the first routing information does not need to be advertised in the backbone network, the first routing information will not be advertised by a third network device in the backbone network, but the first routing information may be sent by the first network device to a fifth network device of the first data center.
Wherein the fifth network device runs in the first data center, and the fifth network device may be GW3 in fig. 1.
Specifically, after receiving the BGP message from the second network device, the first network device may obtain an advertisement attribute included in the BGP message, and when the attribute value is "N", the first network device may not advertise the first routing information to the backbone network, but may send the first routing information to a fifth network device of the first data center.
Step S308: when the indication information indicates that the first routing information does not need to be advertised in the backbone network, the first routing information will not be advertised by a third network device in the backbone network, but the first routing information may be sent by the first network device to a sixth network device of a third data center.
The first data center and the third data center are connected with the backbone network through a first network device, for example, the first data center is located in a first area of Beijing, and the third data center is located in a second area of Beijing. The sixth network device operates in the third data center, and the sixth network device may be the gateway GW4 in fig. 1.
Specifically, after receiving the BGP message from the second network device, the first network device may obtain an advertisement attribute included in the BGP message, and when the attribute value is "N", the first network device may not advertise the first routing information to the backbone network, but may send the first routing information to a sixth network device of the third data center.
It should be noted that, when the indication information indicates that the first routing information does not need to be advertised in the backbone network, the first network device may perform step S307 and step S308, or perform any one of step S307 and step S308, which is not limited in the embodiment of the present invention.
In the method described in fig. 3, the second network device located in the data center determines whether the routing information needs to be advertised in the backbone network, and the first network device located in the backbone network only needs to complete the advertising of the routing information in the backbone network according to the indication of the first network device, so that the simplicity and flexibility of the routing policy configuration are improved, and the complexity of the routing policy configuration on the first network device is reduced.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a first network device provided in an embodiment of the present application, for implementing functions of the first network device in the embodiments of fig. 1 to fig. 3, where the first network device operates in a backbone network, and the first network device may include a receiving module 401, a processing module 402, and a sending module 403, where details of each module are described below.
A receiving module 401, configured to receive a BGP message from a second network device in a data center, where the BGP message includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be advertised in the backbone network;
a processing module 402, configured to generate second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network;
a sending module 403, configured to send the second routing information to a third network device in the backbone network.
Optionally, the indication information includes a route type attribute, where the route type attribute is used to indicate a protocol type of a route included in the second route information, a tunnel of the protocol type is established between the first network device and the third network device, and the sending module 403 sends the second route information to all network devices in the backbone network that establish tunnels of the protocol type with the first network device.
It should be noted that the implementation of each module may also correspond to the corresponding description of the embodiments shown in fig. 1 to 3.
It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. Each functional module in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a first network device according to another embodiment of the present application, configured to execute the communication method according to the embodiment of the present invention. The first network device may include: at least one processor 501, a transceiver 502, and a bus 503. The transceiver 502 and the processor 501 are connected to each other through a bus 503; the bus 503 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus. The Processor 501 may be a Central Processing Unit (CPU), a Network Processor (NP), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. In the case where the processor 501 is one CPU, the CPU may be a single-core CPU or a multi-core CPU. The transceiver 502 may be an integration of a receiver and a transmitter, or may include a receiver and a transmitter.
Optionally, the first network device may further include a memory 504, where the memory 504 may include a Random Access Memory (RAM) or may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 504 may optionally include at least one memory device located remotely from the processor 501.
The transceiver 502 is configured to receive a BGP message from a second network device in the data center, where the BGP message includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be advertised in the backbone network;
the processor 501 is configured to generate second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network;
the transceiver 502 is further configured to send the second routing information to a third network device in the backbone network.
Optionally, the indication information includes a route type attribute, where the route type attribute is used to indicate a protocol type of a route included in the second route information, a tunnel of the protocol type is established between the first network device and the third network device, and the transceiver 502 sends the second route information to all network devices in the backbone network that establish tunnels of the protocol type with the first network device.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a second network device provided in an embodiment of the present application, for implementing functions of the second network device in the embodiments of fig. 1 to fig. 3, where the second network device may include a sending module 601, where details of the module are described below.
A sending module 601, configured to send a BGP message to a first network device in a backbone network, where the BGP message includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be notified in the backbone network.
Optionally, the indication information is configured to enable the first network device to generate second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network, and send the second routing information to a third network device in the backbone network.
Optionally, the second network device further includes:
a processing module 602, configured to determine whether the first routing information needs to be advertised in the backbone network based on EVI information, AC interface information, or broadcast domain information.
It should be noted that the implementation of each module may also correspond to the corresponding description of the embodiments shown in fig. 1 to 3.
It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation. Each functional module in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a second network device according to another embodiment of the present application, configured to execute the communication method according to the embodiment of the present invention. The second network device may include: a transceiver 701. The transceiver 701 may be an integration of a receiver and a transmitter, or may include a receiver and a transmitter.
The transceiver 701 is configured to send a BGP message to a first network device in a backbone network, where the BGP message includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be notified in the backbone network.
Optionally, the indication information is configured to enable the first network device to generate second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network, and send the second routing information to a third network device in the backbone network.
Optionally, the second network device further includes: a processor 702, and a bus 703. The transceiver 701 and the processor 702 are connected to each other via a bus 703. The bus 703 may be a PCI bus or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus. The processor 702 may be a CPU, NP, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. In the case where the processor 702 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
Optionally, the second network device may further include a memory 704, where the memory 704 may include a RAM and may further include a non-volatile memory, such as at least one disk memory. The memory 704 may optionally include at least one memory device located remotely from the processor 702.
A processor 702 configured to determine whether the first routing information needs to be advertised in the backbone network based on EVI information, AC interface information, or broadcast domain information.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.

Claims (18)

1. A method of communication, the method comprising: a first network device in a backbone network receives a Border Gateway Protocol (BGP) message from a second network device in a data center, wherein the BGP message comprises indication information and first routing information, and the indication information is used for indicating whether the first routing information needs to be announced in the backbone network;
only when the indication information indicates that the first routing information needs to be advertised in the backbone network, the first network device generates second routing information according to the first routing information;
the first network device sends the second routing information to a third network device in the backbone network.
2. The method of claim 1, wherein the indication information includes a routing type attribute, the routing type attribute is used to indicate a protocol type of the route included in the second routing information, a tunnel of the protocol type is established between the first network device and the third network device, and the first network device sends the second routing information to all network devices in the backbone network, which have tunnels of the protocol type established with the first network device.
3. A method of communication, the method comprising: a second network device in the data center sends a Border Gateway Protocol (BGP) message to a first network device in a backbone network, wherein the BGP message comprises indication information and first routing information, and the indication information is used for indicating whether the first routing information needs to be notified in the backbone network.
4. The method of claim 3, wherein the indication information is used to cause the first network device to generate second routing information according to the first routing information and send the second routing information to a third network device in the backbone network only if the indication information indicates that the first routing information needs to be advertised in the backbone network.
5. The method of claim 3 or 4, wherein the second network device determines whether the first routing information needs to be advertised in the backbone network based on Ethernet virtual private network instance (EVI) information, Access Circuit (AC) interface information, or broadcast domain information.
6. A first network device, wherein the first network device is located in a backbone network, the first network device comprising:
a receiving module, configured to receive a Border Gateway Protocol (BGP) packet from a second network device in a data center, where the BGP packet includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be advertised in the backbone network;
a processing module, configured to generate second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network;
a sending module, configured to send the second routing information to a third network device in the backbone network.
7. The first network device of claim 6, wherein the indication information includes a routing type attribute, the routing type attribute is used to indicate a protocol type of a route included in the second routing information, a tunnel of the protocol type is established between the first network device and the third network device, and the sending module sends the second routing information to all network devices in the backbone network that establish tunnels of the protocol type with the first network device.
8. A second network device, wherein the second network device is located in a data center, the second network device comprising:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a Border Gateway Protocol (BGP) message to first network equipment in a backbone network, the BGP message comprises indication information and first routing information, and the indication information is used for indicating whether the first routing information needs to be announced in the backbone network.
9. The second network device of claim 8, wherein the indication information is configured to cause the first network device to generate second routing information according to the first routing information and send the second routing information to a third network device in the backbone network only when the indication information indicates that the first routing information needs to be advertised in the backbone network.
10. The second network device of claim 8 or 9, wherein the second network device further comprises:
a processing module, configured to determine whether the first routing information needs to be advertised in the backbone network based on ethernet virtual private network instance EVI information, access circuit AC interface information, or broadcast domain information.
11. A first network device, wherein the first network device is located in a backbone network, the first network device comprising a processor and a transceiver,
the transceiver is configured to receive a Border Gateway Protocol (BGP) message from a second network device in the data center, where the BGP message includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be advertised in the backbone network;
the processor is configured to generate second routing information according to the first routing information only when the indication information indicates that the first routing information needs to be advertised in the backbone network;
the transceiver is further configured to send the second routing information to a third network device in the backbone network.
12. The first network device of claim 11, wherein the indication information includes a routing type attribute, the routing type attribute is used to indicate a protocol type of a route included in the second routing information, a tunnel of the protocol type is established between the first network device and the third network device, and the transceiver sends the second routing information to all network devices in the backbone network that establish tunnels of the protocol type with the first network device.
13. A second network device, wherein the second network device is located in a data center, the second network device comprising a transceiver,
the transceiver is configured to send a Border Gateway Protocol (BGP) message to a first network device in a backbone network, where the BGP message includes indication information and first routing information, and the indication information is used to indicate whether the first routing information needs to be advertised in the backbone network.
14. The second network device of claim 13, wherein the indication information is configured to cause the first network device to generate second routing information according to the first routing information and send the second routing information to a third network device in the backbone network only when the indication information indicates that the first routing information needs to be advertised in the backbone network.
15. The second network device of claim 13 or 14, wherein the second network device further comprises:
a processor configured to determine whether the first routing information needs to be advertised in the backbone network based on ethernet virtual private network instance EVI information, access circuit AC interface information, or broadcast domain information.
16. A computer storage medium for storing computer program instructions which, when executed by a network device, cause the network device to perform the communication method of any one of claims 1-5.
17. A chip system, wherein the chip system comprises a processor for supporting a first network device to implement the communication method of any one of claims 1-2.
18. A chip system, wherein the chip system comprises a processor for supporting a second network device to implement the communication method of any one of claims 3 to 5.
CN201711038119.8A 2017-10-27 2017-10-27 Communication method and network device Active CN109728926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711038119.8A CN109728926B (en) 2017-10-27 2017-10-27 Communication method and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711038119.8A CN109728926B (en) 2017-10-27 2017-10-27 Communication method and network device

Publications (2)

Publication Number Publication Date
CN109728926A CN109728926A (en) 2019-05-07
CN109728926B true CN109728926B (en) 2021-12-14

Family

ID=66292413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711038119.8A Active CN109728926B (en) 2017-10-27 2017-10-27 Communication method and network device

Country Status (1)

Country Link
CN (1) CN109728926B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112751767B (en) * 2019-10-30 2024-04-16 华为技术有限公司 Routing information transmission method and device and data center internet
CN112751758A (en) * 2019-10-30 2021-05-04 华为技术有限公司 Routing information transmission method and device and data center internet
CN111726290B (en) * 2020-07-23 2021-12-17 迈普通信技术股份有限公司 Route control method, device, border gateway and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005112350A1 (en) * 2004-05-14 2005-11-24 Huawei Technologies Co., Ltd. A METHOD FOR MANAGING THE ROUTE IN THE VIRTUAL PRIVATE NETWORK BASED ON IPv6
CN104158737A (en) * 2013-05-15 2014-11-19 华为技术有限公司 Method, apparatus and system for controlling issuing of router information
CN107026791A (en) * 2016-01-29 2017-08-08 华为技术有限公司 VPN vpn service optimization method and equipment
CN107276784A (en) * 2016-03-30 2017-10-20 丛林网络公司 The fault handling method and PE of movable standby redundancy in EVPN DCI

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005112350A1 (en) * 2004-05-14 2005-11-24 Huawei Technologies Co., Ltd. A METHOD FOR MANAGING THE ROUTE IN THE VIRTUAL PRIVATE NETWORK BASED ON IPv6
CN104158737A (en) * 2013-05-15 2014-11-19 华为技术有限公司 Method, apparatus and system for controlling issuing of router information
CN107026791A (en) * 2016-01-29 2017-08-08 华为技术有限公司 VPN vpn service optimization method and equipment
CN107276784A (en) * 2016-03-30 2017-10-20 丛林网络公司 The fault handling method and PE of movable standby redundancy in EVPN DCI

Also Published As

Publication number Publication date
CN109728926A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
RU2471302C2 (en) Method to develop frame of oam of hybrid network ethernet/tmpls and appropriate signals
EP2750329B1 (en) Method and device for sending internet protocol packets
US20130308646A1 (en) Enabling media access control address mobility in an ethernet virtual private network
CN110855568B (en) Message forwarding method and system
CN109728926B (en) Communication method and network device
WO2022001835A1 (en) Method and apparatus for sending message, and network device, system and storage medium
US10404648B2 (en) Addressing for customer premises LAN expansion
CN107786677B (en) ARP (Address resolution protocol) table item updating method and VTEP (virtual terminal equipment)
CN113438174B (en) Message forwarding method and device
CN108512755B (en) Method and device for learning routing information
US11805049B2 (en) Communication method and communications device
CN109547350B (en) Route learning method and gateway equipment
CN113162779B (en) Multi-cloud interconnection method and equipment
CN109818869B (en) Method for generating multicast traffic forwarding port and related equipment
CN109347748A (en) A kind of method and apparatus of synchronization of routing information
US20230336377A1 (en) Packet forwarding method and apparatus, and network system
CN113726915A (en) Network system, message transmission method therein and related device
CN110572326A (en) Method, device, network equipment and system for establishing forwarding path
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
CN115665026A (en) Cluster networking method and device
EP2728815B1 (en) Method and rbridge for avoiding esadi protocol packet storms
CN114584509A (en) Communication method and related equipment
CN113542114A (en) Route configuration method and route configuration device
CN112910771A (en) Connection establishing method, device, equipment and storage medium
CN111565141B (en) Data transmission method, first PE and second PE

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant