WO2020029928A1 - Method for establishing bgp session and sending interface address and alias, and network device - Google Patents

Method for establishing bgp session and sending interface address and alias, and network device Download PDF

Info

Publication number
WO2020029928A1
WO2020029928A1 PCT/CN2019/099329 CN2019099329W WO2020029928A1 WO 2020029928 A1 WO2020029928 A1 WO 2020029928A1 CN 2019099329 W CN2019099329 W CN 2019099329W WO 2020029928 A1 WO2020029928 A1 WO 2020029928A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
node
inline
interface address
data
Prior art date
Application number
PCT/CN2019/099329
Other languages
French (fr)
Chinese (zh)
Inventor
张永康
周道龙
王海波
潘灏涛
厉益舟
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020029928A1 publication Critical patent/WO2020029928A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method and network device for establishing a BGP session and sending an interface address and an alias.
  • a data center network (data center network, DCN) is a network used for data transmission.
  • DCN data center network
  • the mainstream DCN usually adopts the spine-leaf architecture.
  • the DCN is composed of multiple leaf nodes (ie, leaf nodes) and multiple spine nodes (ie, spine nodes).
  • DCN uses Virtual Extensible LAN (VxLAN) as a service data bearing protocol.
  • VxLAN is a tunneling technology that virtualizes the DCN network into an underlay network and an overlay network.
  • the Overlay network After receiving the data packet to be transmitted, the Overlay network iterates the data packet to the VxLAN tunnel, encapsulates the VxLAN tunnel header in the data packet, obtains the encapsulated VxLAN tunnel packet, and the Underlay network Skip transmission of encapsulated VxLAN tunnel packets.
  • the Underlay network can establish a session between the leaf node and the spine node through the Open Shortest Path First (OSPF) protocol or the Border Gateway Protocol (BGP), so as to realize the leaf node and spine node.
  • OSPF Open Shortest Path First
  • BGP Border Gateway Protocol
  • Connectivity which enables data transmission between nodes in the Underlay network.
  • each leaf node and spine node in DCN determines link state information such as the interface addresses of other nodes connected to itself, and creates a link state database containing the link state information (Link State Data Base, LSDB) calculates the shortest path between its own node and other nodes according to the LSDB, and establishes a session between the leaf node and the spine node through the shortest path.
  • Link State Data Base LSDB
  • each node needs to periodically flood its link state information, which greatly limits the size of the DCN, resulting in that the OSPF protocol is only applicable to small DCNs. Therefore, currently, BGP is usually used to establish a session between a leaf node and a spine node to achieve the connectivity between the leaf node and the spine node, that is, BGP is used as the routing protocol of the Underlay network.
  • a session between a leaf node and a spine node established through BGP can be called a BGP session.
  • a technician when establishing a BGP session, a technician first configures its own interface address for each node in DCN ’s Underlay network, and then, a technician configures the interface address of the peer node for each node, thereby establishing each node and peer. BGP session between end nodes.
  • the embodiment of the present application discloses a method and network equipment for establishing a BGP session, and sending interface addresses and aliases, so as to solve the problems of tedious establishment process, which consumes a lot of time and manpower when establishing a BGP session through the existing technology.
  • an embodiment of the present application provides a method for establishing a border gateway protocol BGP session, including: applying to a bottom layer network of a data center network DCN, wherein the bottom layer network of the DCN includes a first node and a second node, the method include:
  • the first node uses the first interface address between the second inline interface and the first inline interface. Establish BGP sessions between them;
  • the second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  • the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect whether the second interface address alias configured by the second inline interface is the same as the first interface address alias. An interface address alias matches. If they match, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • the method further includes:
  • the detecting whether the second interface address alias of the second inline interface of the second interface inline with the first interface address alias includes:
  • the first node When the second autonomous system number is different from the first autonomous system number, the first node performs the detection to check whether the second interface address alias of the second inline interface of the first autonomous system is the same as the first interface address alias. Matching operation
  • the first node determines whether the data priority of the data to be interacted is a high priority according to the data parameters of the data to be interacted, Data parameters include data traffic and / or data importance;
  • the first node When the data priority is a high priority, the first node performs the operation of detecting whether a second interface address alias of a second inline interface of the first node matches the first interface address alias.
  • the corresponding processing of the BGP session can be realized according to the data priority of the data to be exchanged, so that the case where the data priority is not a high priority In this case, BGP sessions are no longer established, to avoid subsequent data interactions due to incorrect allocation of autonomous system numbers, and to establish high-priority BGP sessions to transmit high-priority data through BGP sessions.
  • the method further includes:
  • the first node After the first node receives the interface address and the interface address alias again, when the interface address alias matches the second interface address alias, the first node according to the data parameter of the current interaction data of the BGP session To determine whether the data priority of the current interaction data is high priority, and the data parameters include data traffic and / or data importance;
  • the first node keeps the BGP session unchanged
  • the first node When the data priority is not a high priority, the first node re-establishes a BGP session between the second inline interface and the first inline interface according to the first interface address received again.
  • the corresponding processing of the BGP session can be realized according to the data priority of the current interactive data of the BGP session, so that the data can be prioritized.
  • the priority is high, the BGP session is kept unchanged to maintain data transmission.
  • the data priority is low, the BGP session with the first node is re-established.
  • the method further includes:
  • the first node After the first node receives the first autonomous system number transmitted by the second node again, the first node detects whether the second autonomous system number is the same as the first autonomous system number received again;
  • the first node keeps the BGP session unchanged
  • the first node judges the data priority of the current interactive data according to the data parameters of the current interactive data of the BGP session Whether it is high priority, the data parameters include data traffic and / or data importance;
  • the first node keeps the BGP session unchanged
  • the first node interrupts the BGP session.
  • the corresponding processing of the BGP session can be realized according to the data priority of the current interactive data of the BGP session, thereby
  • the data priority is high
  • the BGP session can be maintained to maintain data transmission.
  • the data priority is low
  • the BGP session can be interrupted to avoid the impact of the autonomous system number allocation error. Subsequent data interaction.
  • the fourth possible The implementation also includes:
  • an embodiment of the present application provides a method for establishing a BGP session, which is applied to a low-level network of a data center network DCN.
  • the low-level network of the DCN includes a first node and a second node, and the method includes:
  • the second node generates a first interface address of a first inline interface of the second node according to an automatic address generation mechanism
  • the first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  • the method further includes:
  • the second node transmits the first autonomous system number to the first node.
  • the method further includes:
  • the second node regenerates the first interface address of the first inline interface, and sends the first interface address to the first inline interface.
  • the first node transmits the first interface address alias and the regenerated first interface address.
  • the method further includes:
  • the second node transmits the changed first autonomous system number to the first node.
  • the method further includes:
  • the second node generates a third interface address of its own third inline interface according to the automatic address generation mechanism, and transmits the third interface address to the first node.
  • the present invention provides a network device that is used as a first node and is applied to a lower layer network of a data center network DCN.
  • the lower layer network of the DCN includes the first node and the second node, and the network device Method for performing the first aspect or any possible implementation of the first aspect.
  • the network device includes a module for performing the first aspect or the method in any possible implementation manner of the first aspect.
  • the present invention provides a network device that is used as a second node and is applied to a lower layer network of a data center network DCN.
  • the lower layer network of the DCN includes the first node and the second node, and the network device Method for performing the second aspect or any possible implementation of the second aspect.
  • the network device includes a module for performing the second aspect or the method in any possible implementation manner of the second aspect.
  • the present invention provides a network device that is used as a first node and is applied to a bottom layer network of a data center network DCN.
  • the bottom layer network of the DCN includes the first node and the second node, and the network device
  • the processor includes a processor and a transceiver.
  • the network device may further include a random access memory, a read-only memory, and a bus.
  • the processor is respectively coupled to the transmitter, the random access memory, and the read-only memory through a bus.
  • the booting system is booted by a basic input / output system fixed in a read-only memory or a bootloader in an embedded system to guide the first node into a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the processor executes the method in the first aspect or any possible implementation manner of the first aspect.
  • the present invention provides a network device that is used as a second node and is applied to a lower layer network of a data center network DCN.
  • the lower layer network of the DCN includes the first node and the second node, and the network device
  • the processor includes a processor and a transceiver.
  • the network device may further include a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the transmitter, the random access memory, and the read-only memory through a bus.
  • the basic input / output system or the bootloader in the embedded system which is solidified in the read-only memory, is used to boot the system, and the second node is guided to enter a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the processor executes the second aspect or the method in any possible implementation manner of the second aspect.
  • an embodiment of the present application provides a computer-readable medium.
  • the computer-readable storage medium stores instructions.
  • the computer-readable storage medium runs on the computer, the computer executes the first aspect or any possible design of the first aspect. Methods.
  • an embodiment of the present application provides a computer-readable medium.
  • the computer-readable storage medium stores instructions.
  • the computer-readable storage medium runs the computer, the computer executes the first aspect or any possible design of the first aspect. Methods.
  • an embodiment of the present application provides a BGP session establishment system, which is applied to an underlying network of a data center network DCN.
  • the system includes the network equipment of any one of the third aspect to the fifth aspect and the sixth aspect to the first aspect. Network equipment of any of the eight aspects.
  • the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect whether the second interface address alias configured by the second inline interface is the same as The first interface address aliases match. If they match, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • the interface address of the inline interface needs to be configured for the inline interface, and Configure the interface address of the b inline interface for the a inline interface, and also need to configure the interface address of the b inline interface and the interface address of the a inline interface for the b inline interface, at least four configuration operations are required.
  • an inline interface a in the second node and an inline interface b in the first node need to establish M (M is a positive integer greater than 1) BGP sessions
  • M is a positive integer greater than 1
  • an inline for a Configure M interface addresses for a inline interface and M interface addresses for b inline interface for a inline interface and also need to configure M interface addresses for b inline interface for b inline interface, and a M interface addresses of an inline interface require at least 4M configuration operations.
  • M interface address aliases need to be configured for a inline interface, and M interface address aliases that match the interface address aliases of a inline interface can be configured for b inline interface. That is, only 2M configuration operations are required. Compared with the prior art, configuration operations are greatly reduced.
  • DCN ’s Underlay network often contains a large number of nodes.
  • the effect of reducing the configuration operation in the embodiment of the present application is more obvious.
  • each node actively generates the interface address of its own interface and transmits it to the peer node, without the need to manually configure the interface address.
  • the possibility of configuration errors is greatly reduced, which can improve the BGP session. Accuracy.
  • FIG. 1 (a) is a schematic diagram of a network topology architecture of a DCN Underlay network disclosed in the prior art
  • FIG. 1 (b) is a schematic diagram of a network topology architecture of a DCN Underlay network disclosed in the prior art
  • FIG. 2 is a schematic flowchart of a BGP session establishment method disclosed in an embodiment of the present application
  • FIG. 3 is a schematic flowchart of another BGP session establishment method disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an RA message in a BGP session establishment method disclosed in an embodiment of the present application
  • FIG. 5 is a schematic flowchart of another BGP session establishment method disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another BGP session establishment method disclosed in an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a method for sending an interface address and an alias according to an embodiment of the present application
  • FIG. 8 is a schematic structural diagram of a network device disclosed in an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a network device disclosed in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a BGP session establishment system disclosed in an embodiment of the present application.
  • the embodiment of the present application discloses a method and network device for establishing a BGP session and sending interface addresses and aliases.
  • each spine node needs to be connected to all leaf nodes, and each leaf node requires Connects to all spine nodes for data interaction between spine and leaf nodes.
  • the first node can be considered as the opposite node of the second node, and the second node is the opposite node of the first node, and the first node and the second node There is a neighbor relationship.
  • the DCN ’s Underlay network shown in Figure 1 (a) is a two-layer architecture, where one layer is a leaf node, and the other is One layer is a spine node, and the DCN's Underlay network shown in 1 (b) has a three-layer architecture, the middle layer is a spine node, and the other two layers are leaf nodes.
  • DCN's Underlay network contains more nodes, which can often reach hundreds of nodes.
  • Underlay The number of nodes contained in the network is even tens of thousands. In this case, each node of the DCN's Underlay network can establish a BGP session by using the solution disclosed in the embodiment of the present application to implement data interaction with other nodes.
  • the first embodiment of the present application discloses a method for establishing a border gateway protocol BGP session.
  • the method is applied to an underlay network of a data center network DCN.
  • the underlay network of the DCN includes a first node and a second node, as shown in FIG. 2 Schematic diagram of the workflow, the BGP session establishment method includes the following steps:
  • Step S11 The first node receives a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline of the second node. interface.
  • the first node may be a leaf node in an Underlay network of the DCN.
  • a second node that establishes a BGP session with the first node is a spine in the Underlay network of the DCN.
  • the first node may be a spine node in an Underlay network of the DCN.
  • a second node that establishes a BGP session with the first node is a leaf node in the Underlay network of the DCN.
  • the inline interface refers to the internal interconnection interface of DCN's Underlay network. That is, the nodes in the Underlay network of DCN are interconnected through an inline interface, that is, the leaf node in the Underlay network is interconnected with the inline interface of the spine node through its own inline interface.
  • the spine node is interconnected with the inline interface of the leaf node through its own inline interface.
  • the inline interface may be a physical interface or a virtual interface, which is not limited in the embodiment of the present application.
  • the second node can automatically generate the first interface address of its first inline interface according to the automatic address generation mechanism, that is, the second node can automatically generate the first interface address of the first inline interface.
  • the second node transmits the first interface address and the alias of the first interface address (that is, the first interface address alias) to the first node.
  • the interface address of the first inline interface automatically generated by the second node may be a link-local address (LLA) that complies with Internet Protocol Version 6 (IPv6), or a unique local address. Address (unique local address, ULA).
  • LLA link-local address
  • IPv6 Internet Protocol Version 6
  • ULA unique local address
  • Step S12 The first node detects whether a second interface address alias of a second inline interface of the first node matches the first interface address alias.
  • a second interface address alias is configured for the second inline interface in advance, and the second interface is enabled during configuration
  • the address alias matches the first interface address alias.
  • the first node After receiving the first interface address and the first interface address alias, the first node performs detection through step S12. If it is detected that the second interface address alias matches the first interface address alias, it indicates that it is currently required A BGP session is established between the second inline interface and the first inline interface.
  • the second interface address alias matches the first interface address alias, which can be a variety of situations. For example, when the second interface address alias is set to be exactly the same as the first interface address alias, the second interface address alias is considered to be the same as The first interface address alias matches, or if the first N characters in the second interface address alias are the same as the first N characters in the first interface address alias, it is determined that the second interface address alias matches the first interface address alias. Match, N is a positive integer greater than 0.
  • the configuration can be completed.
  • the first interface address alias of the second node is copied to the first node and used as the second address alias of the second inline interface in the first node to implement the configuration of the second interface address alias of the second inline interface.
  • a node can establish multiple BGP sessions with different inline interfaces of the same peer node through the same inline interface of itself, and can also establish multiple interface addresses with the same inline interface of the peer node by generating multiple interface addresses. Multiple BGP sessions.
  • the interface address alias is unique between two nodes having a neighbor relationship. In this case, if a certain inline interface establishes multiple BGP sessions with the same inline interface of the peer node, the interface The address alias can distinguish each interface address and further distinguish each BGP session.
  • Step S13 When the second interface address alias matches the first interface address alias, the first node uses the first interface address between the second inline interface and the first internal interface. A BGP session is established between the connected interfaces.
  • the second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  • the first node establishes a BGP session between the second inline interface and the first inline interface according to the first interface address, thereby implementing the establishment of a BGP session between the first node and the second node.
  • the interface address alias of each inline interface is usually pre-configured, and the interface address alias is unique between two nodes having a neighbor relationship to distinguish each BGP session. Further, for simplicity, the interface address alias of each inline interface can be configured to be unique in the DCN.
  • the embodiment of the present application discloses a BGP session establishment method applied to DCN, which is applied to a bottom layer network of a data center network DCN.
  • the bottom layer network of the DCN includes a first node and a second node.
  • the first node receives A first interface address and a first interface address alias from a first inline interface of the second node, the first inline interface being an inline interface of the second node; the first node detecting itself Whether the second interface address alias of the second inline interface matches the first interface address alias; when the second interface address alias matches the first interface address alias, the first node
  • the first interface address establishes a BGP session between the second inline interface and the first inline interface, wherein the second inline interface of the first node and the first An inline interface interconnects.
  • the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect whether the second interface address alias configured by the second inline interface is the same as The first interface address aliases match, and if they match, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address.
  • the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • the interface address of the inline interface needs to be configured for the inline interface, and Configure the interface address of the b inline interface for the a inline interface, and also need to configure the interface address of the b inline interface and the interface address of the a inline interface for the b inline interface, at least four configuration operations are required.
  • an inline interface a in the second node and an inline interface b in the first node need to establish M (M is a positive integer greater than 1) BGP sessions
  • M is a positive integer greater than 1
  • an inline for a Configure M interface addresses for a inline interface and M interface addresses for b inline interface for a inline interface and also need to configure M interface addresses for b inline interface for b inline interface, and a M interface addresses of an inline interface require at least 4M configuration operations.
  • M interface address aliases need to be configured for a inline interface, and M interface address aliases that match the interface address aliases of a inline interface can be configured for b inline interface. That is, only 2M configuration operations are required. Compared with the prior art, configuration operations are greatly reduced.
  • DCN ’s Underlay network often contains a large number of nodes.
  • the effect of reducing the configuration operation in the embodiment of the present application is more obvious.
  • each node actively generates the interface address of its own interface and transmits it to the peer node, without the need to manually configure the interface address.
  • the possibility of configuration errors is greatly reduced, which can improve the BGP session. Accuracy.
  • the amount of modification to the inline interface of each node is small, which is convenient to implement.
  • the nodes included in DCN's Underlay network can belong to the same autonomous system, and can also belong to different autonomous systems. If each node included in the Underlay network belongs to the same autonomous system, the BGP session established between each node is an Internal Border Gateway Protocol (Internal Border Gateway Protocol) session. Further, if each node included in the Underlay network belongs to different autonomous systems, the BGP session established between each node is an External Border Gateway Protocol (External Gateway Protocol) session. In this case, the present application discloses a second embodiment.
  • Internal Border Gateway Protocol Internal Border Gateway Protocol
  • External Gateway Protocol External Border Gateway Protocol
  • the BGP session establishment method disclosed in the embodiment of the present application includes the following steps:
  • Step S21 The first node receives a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline interface of the second node.
  • step S21 is the same as the operation process of step S11, which can be referred to each other, and will not be repeated here.
  • Step S22 The first node receives a first autonomous system number of a first autonomous system to which the second node belongs.
  • the first autonomous system number is usually transmitted from the second node to the first node.
  • each autonomous system will be assigned a unique number within the DCN, which is the Autonomous System Number (ASN).
  • ASN Autonomous System Number
  • the autonomous system to which the second node belongs is referred to as a first autonomous system
  • the number of the first autonomous system is referred to as a first autonomous system number.
  • Step S23 The first node detects whether the second autonomous system number of the second autonomous system to which it belongs is the same as the first autonomous system number. If they are the same, perform the operation of step S24; if they are different, perform the operation of step S25.
  • Step S24 When the second autonomous system number is the same as the first autonomous system number, the first node determines whether the data priority of the data to be interacted is a high priority according to the data parameters of the data to be interacted with The data parameters include data traffic and / or data importance. If yes, perform the operation of step S25.
  • step S25 if the data to be exchanged has a high priority, the operation of step S25 is performed, that is, if the data to be exchanged has a high priority, the first node executes a second inline interface that detects itself. Whether the second interface address alias matches the first interface address alias.
  • priorities may be set for the data in advance, wherein two priorities are usually set, that is, a high priority and a low priority. If the data traffic to be exchanged is large, and / or the data is important If the data is high, it is determined that the data to be interacted is a high priority. If the data flow of the data to be interacted is small and / or the data is of low importance, the data to be interacted is determined to be a low priority.
  • the first node can continue to perform subsequent operations to establish a BGP session to ensure that the data interaction can proceed smoothly.
  • Step S25 The first node detects whether the second interface address alias of the second inline interface of the first node matches the first interface address alias.
  • Step S26 When the second interface address alias matches the first interface address alias, the first node uses the first interface address between the second inline interface and the first internal interface. A BGP session is established between the connected interfaces.
  • the second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  • step S24 if it is determined by the operation of step S24 that the data priority of the data to be interacted is not a high priority, the following steps may be further included:
  • Step S27 When the data priority is not a high priority, the first node terminates the establishment of a BGP session with the first inline interface.
  • the first node will determine a processing measure according to the data priority of the data to be exchanged. Wherein, if the data flow of the data to be exchanged is large and / or the data is of high importance, it is determined that the data to be exchanged is of high priority, and the subsequent operations of establishing a BGP session are continued. In this case, when a BGP session is established, related information about the BGP session can also be recorded and used as diagnostic information for subsequent problem location.
  • the first node terminates the establishment of the BGP session. A BGP session with the second node is no longer established.
  • the first node will continue to perform the check whether the second interface address alias of the second inline interface of the first autonomous system matches the first interface address alias. operating.
  • the first node receives the first autonomous system number after receiving the first interface address and the first interface address alias transmitted by the second node.
  • the operation of the first node receiving the first interface address and the alias of the first interface address is not in strict sequence with the operation of receiving the first autonomous system number.
  • the first autonomous system number may be received first, and then the first interface address and the first interface address alias may be received.
  • the second node loads the first autonomous system number, the first interface address, and the first interface address alias in the same packet, the first node may also receive the first autonomous system number, the first interface address, and the first interface at the same time. Address alias.
  • the message may be an extended router. Advertisement (Router, Advertisement, RA) message.
  • FIG. 4 discloses a schematic format of an RA message.
  • the RA message complies with Internet Protocol Version 6 (IPv6).
  • IPv6 Internet Protocol Version 6
  • the fields in the message include: Type, Length, ASN, Type, Reserved1, Reserved2, IPv6 address, ASN, and alias-name, where the "Type” field is used to load the type of the RA message, which is usually 1 byte; the "Length” field is used to load the "Type, Length,
  • the lengths of the eight fields: ASN, Type1, Reserved1, Reserved2, IPv6 address, ASN, and alias-name are usually in the range of [24,255] bytes; the "ASNtype” field is used to load the first autonomous system number.
  • Type usually 1 byte.
  • the first autonomous system number is usually a fixed length of 2 bytes.
  • the first autonomous system number is usually a 4-byte fixed length; the "IPv6 address” field is used to load the first interface address of the first inline interface, which is usually 16 bytes; the "ASN” field is used to load the first Autonomous system number, the The segment can be 2 bytes or 4 bytes. If the field is 4 bytes, it is often not necessary to set the "Reserved 2" field in the message shown in Figure 4, and only load the first autonomous system number through the "ASN” field.
  • the "Reserved 2" field can be set, and the "Reserved 2" field is 2 bytes.
  • the first autonomous system number is loaded together through the "ASN” field and the "Reserved 2" field; " The "alias-name” field is used to load the first interface address alias of the first inline interface.
  • the length of the "alias-name” field the length of the "Length” field is 24 bytes.
  • the "alias-name” field loads the first interface address alias, which can be obtained by encoding in the form of American Standard Code (Information Interchange, ASCII).
  • the second node does not transmit the first autonomous system number simultaneously with the first interface address and the first interface address alias, in order for the first node to determine the first autonomous system number after receiving the first autonomous system number For the inline interface to which it belongs, when the second node transmits the first autonomous system number, it needs to transmit the alias of the first interface address at the same time, or transmit the first interface address at the same time, so that the first node receives the first autonomous system. After the system number, the BGP session corresponding to the received first autonomous system number is determined according to the first interface address alias or the first interface address transmitted simultaneously.
  • the state of the first inline interface of the second node may change, and the first interface address may also change .
  • the second node regenerates the first interface address of the first inline interface, and transmits the first interface address alias to the first node And the regenerated first interface address.
  • the state of the first inline interface may change, from an up state to a down state.
  • the second node will regenerate the first interface address of the first inline interface and transmit it to the first node.
  • the first interface address of the first inline interface may also change.
  • the second node also regenerates the first interface address of the first inline interface and transmits the first interface address to the first node.
  • the first interface address is aliased and the regenerated first interface address.
  • Step S31 After the first node receives the interface address and the interface address alias again, when the interface address alias is the same as the second interface address alias, the first node according to the current interaction data of the BGP session. Data parameter to determine whether the data priority of the current interaction data is high priority.
  • the data parameters include data traffic and / or data importance.
  • the interface address alias received again by the first node matches the second interface address alias, it indicates that the interface address alias received again is the first interface address alias, and the interface address received again is the interface of the first inline interface.
  • the BGP session established with the first inline interface can be determined according to the first interface address alias, and further based on the data parameters of the current interactive data of the BGP session, it is determined whether the data priority of the current interactive data is high priority.
  • Step S32 When the data priority is a high priority, the first node keeps the BGP session unchanged.
  • Step S33 When the data priority is not high priority, the first node re-establishes between the second inline interface and the first inline interface according to the first interface address received again. BGP session.
  • priorities may be set for the data in advance, wherein two priorities are usually set, that is, a high priority and a low priority. If the current interactive data has a large data flow, and / or the data is important If it is high, it is determined that the current interaction data is of high priority. If the data flow of the current interaction data is small and / or the data is of low importance, it is determined that the current interaction data is of low priority.
  • the data priority is set to a high priority.
  • the first node may keep the BGP session that has been established with the first inline interface unchanged to avoid interruption of the BGP session, thereby affecting data interaction.
  • diagnostic information may also be recorded. The diagnostic information records related information of the BGP session, so that problem location can be performed later.
  • the first node may The interface address, and re-establish the BGP session with the first inline interface to keep the BGP session updated.
  • a BGP session between nodes is created by manual configuration. If the interface address of an inline interface in one of the nodes changes, the interface address of the inline interface needs to be reconfigured, and the interface address must be modified. The configuration of the peer node of the node is relatively tedious. With the solution disclosed in this application, after the first interface address of the first inline interface changes, the second node regenerates the first interface address, and transmits the first interface address alias and the regenerated first interface to the first node. interface address.
  • the first node After the first node establishes a BGP session with the first inline interface, if the interface address and the interface address alias are received again, it is detected whether the received interface address alias matches the second interface address alias. If they match, It means that the interface address alias received again is the first interface address alias, and the interface address received again is the interface address of the first inline interface. In this case, the first node determines whether the BGP session with the second node needs to be re-established according to the data parameters of the current interaction data of the BGP session established with the first inline interface. Compared with the prior art, this solution reconfigures, simplifies operations, further saves time and labor required for BGP session establishment, and improves BGP session establishment efficiency.
  • the second node will also resend the interface of the first inline interface to the first node.
  • the first node can establish a BGP session between the second inline interface and the first inline interface again after the first inline interface transitions to the up state, So that after the state of the first inline interface changes to the up state, the first node can establish a BGP session with the first inline interface in time to ensure data interaction.
  • the RA message shown in FIG. 4 may also be used for transmission.
  • other types of messages may also be used. This application implements Examples do not limit this.
  • the autonomous system number of the node may also change.
  • the method further includes:
  • Step S41 After the first node receives the first autonomous system number transmitted by the second node again, the first node detects the second autonomous system number and the first autonomous system number received again. Is it the same. If not, perform the operation of step S42, and if so, perform the operation of step S43.
  • the second node transmits the changed first autonomous system number to the first node after the first autonomous system number changes.
  • the BGP session corresponding to the received first autonomous system number is determined according to the first interface address alias or the first interface address transmitted simultaneously.
  • Step S42 The first node keeps the BGP session unchanged.
  • Step S43 When the second autonomous system number is the same as the first autonomous system number received again, the first node judges the current interaction data according to the data parameters of the current interaction data of the BGP session. Whether the data priority is high priority, and the data parameters include data traffic and / or data importance. If yes, go back to step S42, if no, go to step S44.
  • different priorities may be set for the data in advance, wherein two priorities are usually set, that is, a high priority and a low priority. If the current interactive data has a large data flow, and / or the data is important If it is high, it is determined that the current interaction data has a high priority. If the data flow of the current interaction data is small and / or the data is of low importance, it is determined that the current interaction data is a low priority.
  • Step S44 When the data priority is not a high priority, the first node interrupts the BGP session.
  • the autonomous system number may change. If the second node and the first node belong to different autonomous systems, after the first autonomous system number of the second node changes, the second node also transmits the changed first autonomous system number to the first node.
  • the first node if it establishes a BGP session between the second inline interface and the first inline interface, and then receives the first autonomous system number transmitted by the second node again, it detects Whether its own second autonomous system number is the same as the first autonomous system number received again. If it is determined through inspection that the second autonomous system number is different from the first autonomous system number received again, the first node keeps the BGP session unchanged.
  • the first node will determine the processing measures according to the business requirements. Among them, if the data exchanged by the first node through the BGP session established with the first inline interface is more important, and / or the data traffic is large, the data is set. The priority is high priority. In this case, the first node can keep the BGP session that has been established with the first inline interface unchanged, so as to avoid interruption of the BGP session and affect data interaction. In addition, diagnostic information may also be recorded. The diagnostic information records related information of the BGP session, so that problem location can be performed later.
  • the first node may An interface address to re-establish a BGP session between the second inline interface and the first inline interface to keep the BGP session updated.
  • the first node can still maintain The BGP session that has been established with the second node remains unchanged. Further, the first node can also record diagnostic information. The diagnostic information records relevant information about the BGP session for subsequent problem location; or, if the first inline interface The data currently interacting with the first node is not important and / or the data flow is small. The first node can disconnect the BGP session with the first inline interface to avoid the error of autonomous system number assignment during data interaction. The impact.
  • this application also discloses another embodiment. Compared with the above embodiment, the embodiment of this application further includes the following steps:
  • the first node receives a third interface address from a third inline interface of the second node.
  • the first node detects whether to generate a second interface address of its second inline interface according to the automatic address generation mechanism, and whether to obtain a second interface address alias.
  • the first node according to the third interface address, in the second inline interface and the The establishment of a BGP session between the third inline interfaces is described.
  • the first node After receiving the message from the second node, the first node usually detects whether an interface address alias is loaded in the message. If an interface address alias is loaded, the operations in steps S12 to S13 are performed. In addition, if it is determined that the interface address alias is not loaded in the received message, then the operations of the embodiment of the present application are performed, that is, if the first node determines that the interface address alias is not loaded in the received message, only the interface address alias is loaded.
  • the third interface address of the third inline interface performs an operation of detecting whether to generate the second interface address of the second inline interface of itself according to the automatic address generation mechanism, and whether to obtain an alias of the second interface address.
  • the second node transmits information to the first node through the RA message shown in FIG. 4, when the second node detects that no bytes are loaded in the "alias-name" field, it may determine that the received message is in the received message. No interface address alias is loaded.
  • the third inline interface of the second node only establishes a BGP session with the second inline interface of the first node, since there is no need to distinguish the BGP session, in this case, the second node is generating the third inline interface After transmitting the third interface address, the third interface address is transmitted to the first node without transmitting the interface address alias of the third inline interface.
  • the first node if the first node receives the interface address of the first inline interface, but does not receive the first interface address alias, the first node will detect whether to generate its own first address according to the automatic address generation mechanism. A second interface address of the two inline interfaces, and whether to obtain a second interface address alias of the second inline interface.
  • the first node determines to generate the second interface address of the second inline interface according to the automatic address generation mechanism, and obtains the second interface address alias, it indicates that the first node can currently use the first interface of the first inline interface. Address to establish a BGP session with the first inline interface.
  • the first node does not generate the second interface address of the second inline interface according to the automatic address generation mechanism, or the second interface address alias of the second inline interface is not obtained, or the first If a node neither generates the second interface address of the second inline interface nor obtains the second interface address alias of the second inline interface according to the automatic address generation mechanism, it indicates that the first node is currently unsuitable to establish a connection with the first internal interface. For a BGP session with an interconnected interface, a BGP session with a third inline interface is no longer established.
  • the second node can generate an interface address of the first inline interface of the second node according to an automatic address generation mechanism.
  • the interface address of the first inline interface may be an LLA or ULA that complies with IPv6.
  • LLA is an IPv6 unicast address with the prefix "FE80 :: / 10", which is unique on the local link
  • ULA is an IPv6 unicast address with the prefix "FC00 :: / 7", which is unique within the local network.
  • Both LLA and ULA support the automatic address generation mechanism, that is, the nodes in the DCN can actively generate LLA or ULA according to the automatic address generation mechanism.
  • the ULA automatically generated by the algorithm defined in the RFC 4193 file often has a very low collision probability. Therefore, when the second node applies the BGP session establishment method applied to DCN disclosed in the embodiments of this application, The interface address can be preferentially selected from the ULA automatically generated by the algorithm defined in the RFC 4193 file.
  • the interface address applied by the second node may also be another address that supports an automatic address generation mechanism, which is not limited in this embodiment of the present application.
  • a method for transmitting an interface address and an alias is disclosed.
  • the method is applied to an underlying network Underlay network of a data center network DCN.
  • the Underlay network of the DCN includes a first node and a first node. Two nodes. Referring to the schematic diagram of the workflow shown in FIG. 7, the method includes:
  • Step S51 The second node generates a first interface address of a first inline interface of the second node according to an automatic address generation mechanism.
  • the interface address of the first inline interface automatically generated by the second node may be an LLA or ULA that complies with IPv6.
  • LLA Low-latency Integrated Circuit
  • ULA User Service
  • IPv6 IP Security
  • Step S52 The second node obtains a first interface address alias of the first inline interface.
  • the alias of the first interface address is the alias of the first interface address.
  • a node can establish multiple BGP sessions with different inline interfaces of the same peer node through the same inline interface of itself, and can also establish multiple interface addresses with the same inline interface of the peer node by generating multiple interface addresses. Multiple BGP sessions.
  • the interface address alias is unique between two nodes having a neighbor relationship. In this case, the interface address alias can distinguish each interface address and further distinguish each BGP session.
  • a first interface address alias may be configured for the first inline interface in advance. In this case, after the first interface address of the first inline interface is generated, a pre-configured first interface address alias can be obtained.
  • Step S53 The second node transmits the first interface address and the first interface address alias to the first node.
  • the first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  • a second interface address alias is configured for the second inline interface in advance, and, during configuration, the The second interface address alias matches the first interface address alias.
  • the first node After receiving the first interface address and the first interface address alias of the first inline interface, the first node detects whether the second interface address alias of the second inline interface matches the first interface address alias.
  • the second interface address alias matches the first interface address alias, and the first node establishes BGP between the second inline interface and the first inline interface according to the first interface address. Conversation.
  • the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect the second interface address alias configured for the second inline interface in advance. Whether it matches the first address alias of the first interface, and if it matches, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, you only need to configure an interface address alias for the second inline interface that matches the first inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • each node actively generates the interface address of its own interface and transmits it to the peer node, without the need to manually configure the interface address.
  • the possibility of configuration errors is greatly reduced, which can improve the BGP session. Accuracy.
  • first node and the second node may belong to the same autonomous system, and may also belong to different autonomous systems. If the first node and the second node belong to the same autonomous system, the BGP session established between the first node and the second node is an Internal Border Gateway Protocol (Internal Border Gateway Protocol) session. Further, if the first node and the second node belong to different autonomous systems, the BGP session established between the first node and the second node is an External Border Gateway Protocol (External Border Gateway Protocol) session.
  • Internal Border Gateway Protocol Internal Border Gateway Protocol
  • External Border Gateway Protocol External Border Gateway Protocol
  • the method for establishing a BGP session applied to DCN disclosed in the embodiments of the present application further includes:
  • the second node transmits the first autonomous system number to the first node.
  • the operation of the first node receiving the first interface address and the alias of the first interface address is not in strict sequence with the operation of receiving the first autonomous system number.
  • the first autonomous system number may be received first, and then the first interface address and the first interface address alias may be received.
  • the second node loads the first autonomous system number, the first interface address, and the first interface address alias in the same packet, the first node may also receive the first autonomous system number, the first interface address, and the first interface at the same time. Address alias.
  • the message may be an extended router.
  • An advertisement (Router, Advertisement, RA) message The format of the RA message is shown in Figure 4.
  • the second node After the second node transmits the first interface address and the first interface address alias to the first node, the state of the first inline interface of the second node may change, and the first interface address may also change .
  • the second node transmits the first interface address and the first node to a first node in an underlying network of the DCN.
  • the interface address alias it also includes:
  • the second node regenerates the first interface address of the first inline interface, and sends the first interface address to the first inline interface.
  • the first node transmits the first interface address alias and the regenerated first interface address.
  • the autonomous system number of the node may also change.
  • the method further includes:
  • the second node transmits the changed first autonomous system number to the first node.
  • the method further includes: the second node generates a third interface address of a third inline interface of the second node according to an automatic address generation mechanism, and transmits the third interface to the first node. address.
  • the second node after receiving the third interface address of the third inline interface, the second node detects whether to generate the second interface address of its second inline interface according to the automatic address generation mechanism, and whether to obtain the second interface. Address alias.
  • the first node according to the third interface address, in the second inline interface and the The establishment of a BGP session between the third inline interfaces is described.
  • a network device is disclosed and used as the first node.
  • the network device is applied to a lower layer network of a data center network DCN, and the lower layer network of the DCN includes a first node and a second node.
  • the first node may be a leaf node in an Underlay network of the DCN.
  • a second node that establishes a BGP session with the first node is a spine in the Underlay network of the DCN.
  • the first node may be a spine node in an Underlay network of the DCN.
  • a second node that establishes a BGP session with the first node is a leaf node in the Underlay network of the DCN.
  • the network device disclosed in the embodiment of the present application includes a transceiver unit 110 and a processing unit 120.
  • the transceiver unit 110 is configured to receive a first interface address and a first interface address alias from a first inline interface of the second node, where the first inline interface is the second node's Inline interface
  • the processing unit 120 is configured to detect whether a second interface address alias of a second inline interface of the second interface address alias matches the first interface address alias, and when the second interface address alias matches the first interface, When the address alias matches, a BGP session is established between the second inline interface and the first inline interface according to the first interface address;
  • the second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  • the second node can automatically generate the first interface address of the first inline interface according to the automatic address generation mechanism, that is, the second node can automatically generate the first interface address of the first inline interface.
  • the second node transmits the first interface address and the alias of the first interface address (that is, the first interface address alias) to the first node.
  • a second interface address alias is configured for the second inline interface in advance, and the first The second interface address alias matches the first interface address alias.
  • the first node After receiving the first interface address and the first interface address alias, the first node performs detection through step S12. If it is detected that the second interface address alias matches the first interface address alias, it indicates that it is currently required A BGP session is established between the second inline interface and the first inline interface.
  • the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect the second interface address alias configured by the second inline interface. Whether it matches the alias of the first interface address, and if it matches, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • the transceiver unit when the first node and the second node belong to different autonomous systems, the transceiver unit is further configured to receive the second node to which the second node belongs.
  • the performing, by the processing unit, the operation of detecting whether a second interface address alias of a second inline interface of the processing unit matches the first interface address alias includes:
  • the second autonomous system number determines whether the data priority of the data to be interacted is a high priority according to the data parameter of the data to be interacted, and the data parameter includes data traffic And / or data importance;
  • each autonomous system will be assigned a unique number within the DCN, which is the Autonomous System Number (ASN).
  • ASN Autonomous System Number
  • the autonomous system to which the second node belongs is referred to as a first autonomous system
  • the number of the first autonomous system is referred to as a first autonomous system number.
  • the first A node will determine the processing measures according to the data priority of the data to be exchanged. Wherein, if the data flow of the data to be exchanged is large and / or the data is of high importance, it is determined that the data to be exchanged is of high priority, and the subsequent operations of establishing a BGP session are continued. In this case, when a BGP session is established, related information about the BGP session can also be recorded and used as diagnostic information for subsequent problem location.
  • the first node terminates the establishment of the BGP session and does not establish A BGP session with the second node.
  • the processing unit is further configured to establish a BGP session between the second inline interface and the first inline interface, and receive the interface address again.
  • the interface address alias when the interface address alias matches the second interface address alias, determine whether the data priority of the current interaction data is high priority according to the data parameters of the current interaction data of the BGP session Level, the data parameters include data traffic and / or data importance;
  • the processing unit is further configured to keep the BGP session unchanged;
  • the processing unit is further configured to re-establish BGP between the second inline interface and the first inline interface according to the first interface address received again. Conversation.
  • the processing unit is further configured to establish a BGP session between the second inline interface and the first inline interface, and receive the BGP session again. After the first autonomous system number transmitted by the second node, detecting whether the second autonomous system number is the same as the first autonomous system number received again;
  • the processing unit is further configured to keep the BGP session unchanged;
  • the processing unit is further configured to determine data of the current interaction data according to data parameters of the current interaction data of the BGP session. Whether the priority is high priority, and the data parameters include data traffic and / or data importance;
  • the processing unit is further configured to keep the BGP session unchanged;
  • the processing unit is further configured to interrupt the BGP session.
  • the transceiver unit is further configured to receive a third interface address from a third inline interface of the second node;
  • the processing unit is further configured to detect whether to generate a second interface address of its second inline interface according to an automatic address generation mechanism, and whether to obtain a second interface address alias;
  • the processing unit is further configured to trigger the BGP session establishment module to enable the BGP session establishment module Establishing a BGP session between the second inline interface and the third inline interface according to the third interface address.
  • BGP sessions it is not necessary to distinguish BGP sessions. For example, if the third inline interface in the second node only needs to establish a BGP session with the second inline interface in the first node, there is no need to establish a BGP session between the third inline interface and the second inline interface. Make a distinction. In this case, a BGP session between the second inline interface and the third inline interface may be established through the foregoing embodiment.
  • a network device is also disclosed and used as the second node.
  • the network device is applied to an underlay network of a data center network DCN.
  • the underlay network of the DCN includes a first node and a second node.
  • the network device disclosed in the embodiment of the present application includes a processing unit 210 and a transceiver unit 220.
  • the processing unit 210 is configured to generate a first interface address of a first inline interface of itself according to an automatic address generation mechanism, and obtain a first interface address alias of the first inline interface;
  • the transceiver unit 220 is configured to transmit the first interface address and the first interface address alias to the first node;
  • the first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  • the interface address of the first inline interface automatically generated by the second node may be an LLA or ULA that complies with IPv6.
  • LLA Low-latency Integrated Circuit
  • ULA User Service
  • IPv6 IP Security
  • the network device disclosed in the embodiments of the present application only needs to configure an interface address alias for the second inline interface that matches the first inline interface to establish a BGP session.
  • the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • the processing unit is further configured to obtain a first autonomous system to which the first node belongs.
  • An autonomous system number; the transceiver unit is further configured to transmit the first autonomous system number to the first node.
  • the processing unit is further configured to regenerate the first interface address of the first inline interface
  • the transceiver unit is further configured to transmit the first interface address alias and the regenerated first interface address to the first node.
  • the transceiver unit is further configured to: When the first autonomous system number changes, the changed first autonomous system number is transmitted to the first node.
  • FIG. 10 shows a possible structural diagram of a network device as a first node involved in the foregoing embodiment.
  • the first node is applied to the DCN's Underlay network and includes: a main control board 310, an interface board 330, a switching network board 320, and an interface board 340.
  • the main control board 310 is used to perform functions such as system management, equipment maintenance, and protocol processing.
  • the switching network board 320 is used to complete data exchange between interface boards (the interface board is also called a line card or a service board).
  • the interface boards 330 and 340 are used to provide various service interfaces (for example, an Ethernet interface, a POS interface, etc.) and implement data packet forwarding.
  • the main control board 310, the interface boards 330 and 340, and the switching network board 320 are connected to the system backplane through a system bus to achieve intercommunication.
  • the central processing unit 331 on the interface board 330 is used to control and manage the interface board and communicate with the central processing unit 311 on the main control board 310.
  • the first node receives the first interface address and the first interface address alias from the first inline interface of the second node, and may also receive the first autonomous system number of the first autonomous system to which the second node belongs.
  • the inline interface of the first node can establish a BGP session with the inline interface of the second node.
  • the inline interface may be a physical interface and / or a logical interface.
  • the first node receives the message information transmitted by the second node from the physical interface card 333 (the message information is the first interface address and the first interface address alias of the first inline interface, and may also Including the first autonomous system number of the first autonomous system to which the second node belongs), and the physical interface card 333 sends the received message information to the network processor 332, and the network processor 332 according to the message information
  • the destination address (which is the IP address of the first node) searches the forwarding entry memory 334, and the matching result indicates that it is a local message. Therefore, the network processor 332 performs the operation of establishing a BGP session performed by the first node disclosed in the foregoing embodiment of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again.
  • the first node receives the message information transmitted by the second node through the main control board 310 (the message information is the first interface address and the first interface address alias of the first inline interface) Moreover, the first autonomous system number of the first autonomous system to which the second node belongs may also be included, and the message information received by the main control board 310 is sent to the central processor 311 of the control plane. Therefore, the central processing unit 311 on the main control board 310 performs the operation of establishing a BGP session performed by the first node disclosed in the foregoing embodiments of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again. .
  • the operation on the interface board 340 in the embodiment of the present invention is consistent with the operation of the interface board 330, and for the sake of brevity, details are not described again.
  • the first node in the embodiment of the present invention may correspond to the network device in the foregoing embodiment of the BGP session establishment method, and each module in the first node and the other operations and / or functions described above are implemented to implement FIG. 2 respectively.
  • Various steps and methods implemented by the network device in the embodiments corresponding to FIG. 3, FIG. 5, and FIG. 6 are omitted here for brevity.
  • the main control board may have one or more. When there are multiple, the main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the first node, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. The switching network board may not be available, or there may be one or more, and when there are multiple, the load sharing redundant backup can be implemented together. Under the centralized forwarding architecture, the first network device may not need to exchange the network board, and the interface board is responsible for the service data processing function of the entire system.
  • the first network device may have at least one switching network board, and the data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the first network device in the distributed architecture are greater than those in the centralized architecture.
  • the form of the first node may also be only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the board.
  • the central processor and the main board of the interface board The central processing unit on the control board can be combined into one central processing unit on the board and perform the functions of the two superimposed.
  • This type of equipment has low data exchange and processing capabilities (for example, low-end switches or routers, etc. Internet equipment). Which architecture is used depends on the specific network deployment scenario and is not limited here.
  • FIG. 11 illustrates a possible structural diagram of a network device as a second node involved in the foregoing embodiment.
  • the second node is applied to the DCN's Underlay network and includes: a main control board 410, an interface board 430, a switching network board 420, and an interface board 440.
  • the main control board 410 is used to perform functions such as system management, equipment maintenance, and protocol processing.
  • the switching network board 420 is used to complete data exchange between interface boards (the interface board is also called a line card or a service board).
  • the interface boards 430 and 440 are used to provide various service interfaces (for example, an Ethernet interface, a POS interface, etc.) and implement data packet forwarding.
  • the main control board 410, the interface boards 430 and 440, and the switching network board 420 are connected to the system backplane through a system bus to achieve intercommunication.
  • the central processing unit 431 on the interface board 430 is used to control and manage the interface board and communicate with the central processing unit 411 on the main control board 410.
  • the second node can obtain the first interface address of the first inline interface and the first interface address alias of the first inline interface, and can also obtain the first autonomous system number of the first autonomous system to which the second node belongs.
  • the inline interface of the first node can establish a BGP session with the inline interface of the second node.
  • the inline interface may be a physical interface and / or a logical interface.
  • the second node If the inline interface is a physical interface, the second node generates message information through the network processor 432 (the message information is the first interface address and the first interface address alias of the first inline interface, and may further include The first autonomous system number of the first autonomous system to which the second node belongs) is transmitted to the second node through the physical interface card 433, so that the second node establishes a BGP session. That is, the network processor 432 performs the operations of the sending interface address and the alias performed by the second node disclosed in the foregoing embodiments of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again.
  • the second node if the inline interface is a logical interface, the second node generates message information through the central processing unit 411 on the main control board 410 (the message information is the first interface address and the first inline interface of the first inline interface).
  • the interface address alias may further include the first autonomous system number of the first autonomous system to which the second node belongs, and then the packet is newly transmitted to the second node through the main control board, so that the second node establishes a BGP session. That is, the central processing unit 411 performs the operations of the sending interface address and the alias performed by the second node disclosed in the foregoing embodiments of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again.
  • the operation on the interface board 440 in the embodiment of the present invention is consistent with the operation of the interface board 430, and for the sake of brevity, details are not described again.
  • the second node in the embodiment of the present invention may correspond to the network device in the foregoing sending interface address and alias method embodiment, and each module in the first node and the other operations and / or functions described above are respectively implemented to implement the diagram. The various steps and methods implemented by the network device in the embodiment corresponding to 7 are not repeated here for brevity.
  • the main control board may have one or more. When there are multiple, the main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the first node, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. The switching network board may not be available, or there may be one or more, and when there are multiple, the load sharing redundant backup can be implemented together. Under the centralized forwarding architecture, the first network device may not need to exchange the network board, and the interface board is responsible for the service data processing function of the entire system.
  • the first network device may have at least one switching network board, and the data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the first network device in the distributed architecture are greater than those in the centralized architecture.
  • the form of the second node may also be only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the one board.
  • the central processor and the main board of the interface board The central processing unit on the control board can be combined into one central processing unit on the board and perform the functions of the two superimposed.
  • This type of equipment has low data exchange and processing capabilities (for example, low-end switches or routers, etc. Internet equipment). Which architecture is used depends on the specific network deployment scenario and is not limited here.
  • FIG. 12 shows a possible schematic structural diagram of a network device as a first node involved in the foregoing embodiment.
  • the network device is applied to a lower layer network of a data center network DCN, and the lower layer network of the DCN includes the First node and second node.
  • the network device includes a transceiver 510 and a processor 520. Further, the network device may further include a random access memory 530, a read-only memory 540, and a bus 550.
  • the processor 520 is coupled to the receiver 510, the random access memory 530, and the read-only memory 540 through a bus 550, respectively.
  • the basic input output system or the bootloader boot system in the embedded system which is solidified in the read-only memory 540 is used to start the network device serving as the first node to enter the normal operation status.
  • the application program and the operating system are run in the random access memory 530, so that:
  • a transceiver configured to receive a first interface address and a first interface address alias from a first inline interface of the second node, where the first inline interface is an inline interface of the second node;
  • the second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  • the network device in this embodiment of the present invention may correspond to the first node in the embodiments corresponding to FIG. 2, FIG. 3, FIG. 5, and FIG. 6, and the processor 520, the transceiver 510, and the like in the network device may implement The functions of the network device and / or various steps and methods implemented in the embodiments corresponding to FIG. 2, FIG. 3, FIG. 5, and FIG. 6. For brevity, I will not repeat them here.
  • this embodiment may also be a network device implemented based on a universal physical server in combination with Network Function Virtualization (NFV) technology.
  • the network device is a virtual network device (such as a virtual host or a virtual router). Or virtual switch).
  • the virtual network device may be a virtual machine (English: Virtual Machine, VM), and the virtual machine is deployed on a hardware device (for example, a physical server).
  • Virtual machine refers to a complete computer system with complete hardware system functions and running in a completely isolated environment simulated by software.
  • FIG. 13 shows a possible structural diagram of a network device as a second node involved in the foregoing embodiment, and the network device is applied to a lower layer network of a data center network DCN, where the lower layer network of the DCN includes the First node and second node.
  • the network device includes a transceiver 610, a processor 620, a random access memory 630, a read-only memory 640, and a bus 650.
  • the processor 620 is coupled to the receiver 610, the random access memory 630, and the read-only memory 640 through a bus 650, respectively.
  • the second network device 600C when the network device needs to be run, the second network device 600C is booted into a normal operating state by booting through a basic input / output system fixed in the read-only memory 640 or a bootloader in an embedded system. After the second network device 600C enters a normal operating state, the application program and the operating system are run in the random access memory 630, so that:
  • a processor 620 configured to generate a first interface address of a first inline interface of the processor according to an automatic address generation mechanism, and obtain a first interface address alias of the first inline interface;
  • a transceiver 610 configured to transmit the first interface address and the first interface address alias to the first node
  • the first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  • the network device in the embodiment of the present invention may correspond to the second node in the embodiment corresponding to FIG. 7 described above, and the processor 620, the transceiver 610, and the like in the network device may implement the For the sake of brevity, functions and / or various steps and methods implemented by the second node will not be repeated here.
  • this embodiment may also be a network device implemented based on a universal physical server combined with Network Function Virtualization (NFV) technology.
  • the network device is a virtual network device (such as a virtual host, virtual Router or virtual switch).
  • the virtual network device may be a virtual machine (English: Virtual Machine, VM) running a program for sending an announcement message function, and the virtual machine is deployed on a hardware device (for example, a physical server).
  • Virtual machine refers to a complete computer system with complete hardware system functions and running in a completely isolated environment simulated by software.
  • the embodiment of the present application further provides a computer storage medium.
  • the computer storage medium provided in any device may store a program. When the program is executed, the program may be implemented including FIG. 2, FIG. 3, FIG. 5, and FIG. 6. Some or all steps of the provided BGP session establishment method.
  • the storage medium in any device can be a magnetic disk, a compact disc, a read-only memory (English: read-only memory, referred to as ROM) or a random access memory (English: random access memory, referred to as RAM).
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
  • the processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory may include volatile memory (for example, random-access memory (RAM); the memory may also include non-volatile memory (for example, read-only memory) memory (ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.
  • volatile memory for example, random-access memory (RAM)
  • non-volatile memory for example, read-only memory
  • ROM read-only memory
  • flash memory flash memory
  • HDD hard disk
  • SSD solid-state drive
  • the memory may also include a combination of the above types of memory.
  • the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium provided in any device may store a program, and when the program is executed, a program including a sending interface address and an alias disclosed in FIG. 7 may be implemented. Part or all of the steps of a method.
  • the storage medium in any device can be a magnetic disk, a compact disc, a read-only memory (English: read-only memory, referred to as ROM) or a random access memory (English: random access memory, referred to as RAM).
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
  • the processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof.
  • the memory may include volatile memory (for example, random-access memory (RAM); the memory may also include non-volatile memory (for example, read-only memory) memory (ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.
  • volatile memory for example, random-access memory (RAM)
  • non-volatile memory for example, read-only memory
  • ROM read-only memory
  • flash memory flash memory
  • HDD hard disk
  • SSD solid-state drive
  • the memory may also include a combination of the above types of memory.
  • FIG. 14 is a system diagram of a BGP session establishment system according to an embodiment of the present invention.
  • the system includes a first node 710 and a second node 720.
  • the first node 710 is any network device or virtual network device described in FIG. 2, FIG. 3, FIG. 5, and FIG. 6, and the second node 720 is the network device or virtual network device described in FIG. 7.
  • a first node receives a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline interface of the second node
  • the first node detects whether the second interface address alias of its second inline interface matches the first interface address alias; when the second interface address alias matches the first interface address alias
  • the first node establishes a BGP session between the second inline interface and the first inline interface according to the first interface address, wherein the second inline interface of the first node communicates with all The first inline interface of the second node is interconnected.
  • the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect the second interface address alias configured by the second inline interface. Whether it matches the alias of the first interface address, and if it matches, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
  • the system includes the computer-readable medium described in the two embodiments, and the first node and the second node can establish a BGP session by running the computer-readable medium described in the two embodiments, and simplify the process.
  • the BGP session establishment process reduces the time and labor consumption and improves the BGP session establishment efficiency.
  • Various illustrative logic units and circuits described in the embodiments of the present application may be implemented by a general-purpose processor, a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices. Discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor. Alternatively, the general-purpose processor may also be any conventional processor, controller, microcontroller, or state machine.
  • the processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration. achieve.
  • a software unit may be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium in the art.
  • the storage medium may be connected to the processor, so that the processor can read information from the storage medium and can write information to the storage medium.
  • the storage medium may be integral to the processor.
  • the processor and the storage medium may be provided in an ASIC, and the ASIC may be provided in a UE.
  • the processor and the storage medium may also be provided in different components in the UE.
  • the size of the sequence number of each process does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic.
  • the implementation process constitutes any limitation.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server, or data center Transmission by wire (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a DVD
  • a semiconductor medium for example, a solid state disk (Solid State Disk (SSD)
  • the technology in the embodiment of the present invention can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products that are essentially or contribute to the existing technology.
  • the computer software product can be stored in a storage medium, such as ROM / RAM. , Magnetic disks, optical disks, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed are a method for establishing a BGP session and sending an interface address and an alias, and a network device. The method comprises: a first node receiving a first interface address and a first interface address alias of a first inline interface from a second node; the first node detecting whether a second interface address alias of its own second inline interface matches the first interface address alias; and when the second interface address alias matches the first interface address alias, the first node establishing a BGP session between the second inline interface and the first inline interface according to the first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and configure, for the second inline interface, an interface address alias matching the first interface address alias to establish a BGP session. Compared with the prior art, the number of configuration operations is effectively reduced, the process of establishing a BGP session is simplified, and the time and manpower costs are reduced, so that the efficiency of establishing a BGP session is improved.

Description

BGP会话建立、发送接口地址和别名的方法及网络设备Method for establishing BGP session, sending interface address and alias and network equipment
本申请要求于2018年8月7日提交中国国家知识产权局、申请号为201810893296.2、发明名称为“BGP会话建立、发送接口地址和别名的方法及网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on August 7, 2018 with the State Intellectual Property Office of China, with an application number of 201810893296.2, and an invention name of "Method and Network Device for Establishing BGP Session, Sending Interface Addresses and Alias", which The entire contents are incorporated herein by reference.
技术领域Technical field
本申请涉及通信技术领域,具体涉及一种BGP会话建立、发送接口地址和别名的方法及网络设备。The present application relates to the field of communication technologies, and in particular, to a method and network device for establishing a BGP session and sending an interface address and an alias.
背景技术Background technique
数据中心网络(data center network,DCN)是一种用于进行数据传输的网络,当前主流的DCN通常采用spine-leaf架构。A data center network (data center network, DCN) is a network used for data transmission. Currently, the mainstream DCN usually adopts the spine-leaf architecture.
当采用spine-leaf架构时,DCN由多个leaf节点(即叶节点)和多个spine节点(即脊节点)构成。另外,DCN使用虚拟扩展局域网(Virtual Extensible LAN,VxLAN)作为业务数据的承载协议。VxLAN是一种隧道技术,它将DCN网络虚拟化成底层网络(Underlay network)和叠加网络(Overlay network)。其中,Overlay network在接收到待传输的数据报文之后,将该数据报文迭代至VxLAN隧道,在该数据报文中封装VxLAN隧道头,获取封装后的VxLAN隧道报文,并由Underlay network逐跳传输封装后的VxLAN隧道报文。其中,Underlay network可通过开放式最短路径优先(Open Shortest Path First,OSPF)协议或边界网关协议(Border Gateway Protocol,BGP)建立leaf节点与spine节点之间的会话,以实现leaf节点与spine节点的连通性,从而能够使Underlay network中的各个节点之间进行数据传输。When the spine-leaf architecture is adopted, the DCN is composed of multiple leaf nodes (ie, leaf nodes) and multiple spine nodes (ie, spine nodes). In addition, DCN uses Virtual Extensible LAN (VxLAN) as a service data bearing protocol. VxLAN is a tunneling technology that virtualizes the DCN network into an underlay network and an overlay network. After receiving the data packet to be transmitted, the Overlay network iterates the data packet to the VxLAN tunnel, encapsulates the VxLAN tunnel header in the data packet, obtains the encapsulated VxLAN tunnel packet, and the Underlay network Skip transmission of encapsulated VxLAN tunnel packets. Among them, the Underlay network can establish a session between the leaf node and the spine node through the Open Shortest Path First (OSPF) protocol or the Border Gateway Protocol (BGP), so as to realize the leaf node and spine node. Connectivity, which enables data transmission between nodes in the Underlay network.
当通过OSPF协议建立会话时,DCN的Underlay network中各个leaf节点与spine节点均确定与自身相连接的其他节点的接口地址等链路状态信息,并创建包含该链路状态信息的链路状态数据库(Link State Data Base,LSDB)再根据该LSDB,计算自身节点与其他节点之间的最短路径,通过该最短路径建立leaf节点与spine节点之间的会话。另外,为了保障DCN中各个节点的LSDB的一致性,各个节点需要周期性的洪泛自身的链路状态信息,这就大大限制了DCN的规模,导致OSPF协议只适用于小型的DCN中。因此,当前通常采用BGP建立leaf节点与spine节点之间的会话,以实现leaf节点与spine节点之间的连通性,即将BGP作为Underlay network的路由协议。When a session is established through the OSPF protocol, each leaf node and spine node in DCN ’s Underlay network determines link state information such as the interface addresses of other nodes connected to itself, and creates a link state database containing the link state information (Link State Data Base, LSDB) calculates the shortest path between its own node and other nodes according to the LSDB, and establishes a session between the leaf node and the spine node through the shortest path. In addition, in order to ensure the consistency of the LSDB of each node in the DCN, each node needs to periodically flood its link state information, which greatly limits the size of the DCN, resulting in that the OSPF protocol is only applicable to small DCNs. Therefore, currently, BGP is usually used to establish a session between a leaf node and a spine node to achieve the connectivity between the leaf node and the spine node, that is, BGP is used as the routing protocol of the Underlay network.
通过BGP所建立的leaf节点与spine节点之间的会话,可称为BGP会话。目前在建立BGP会话时,首先由技术人员为DCN的Underlay network中的各个节点配置自身的接口地址,然后,再由技术人员分别为各个节点配置对端节点的接口地址,从而建立各个节点与对端节点之间的BGP会话。A session between a leaf node and a spine node established through BGP can be called a BGP session. At present, when establishing a BGP session, a technician first configures its own interface address for each node in DCN ’s Underlay network, and then, a technician configures the interface address of the peer node for each node, thereby establishing each node and peer. BGP session between end nodes.
由此可以看出,在通过现有技术建立BGP会话时,不仅需要采用人工配置的方式为每个节点配置该节点自身的接口地址,而且还需要人工配置该节点的对端节点的接口地址,因此配置过程复杂。特别的,DCN中往往包含大量节点,有时节点的数量设置上万,因此,采用现有技术需要进行大量的配置操作,导致BGP会话的建立过程较为繁琐,并 且耗费大量时间和人力。It can be seen that when establishing a BGP session through the existing technology, not only need to manually configure the node's own interface address for each node, but also manually configure the interface address of the peer node of the node. So the configuration process is complicated. In particular, the DCN often includes a large number of nodes, and sometimes the number of nodes is set to tens of thousands. Therefore, using the existing technology requires a large number of configuration operations, resulting in a tedious process of establishing a BGP session, and it consumes a lot of time and labor.
发明内容Summary of the invention
本申请实施例公开一种BGP会话建立、发送接口地址和别名的方法及网络设备,以解决通过现有技术建立BGP会话时,所存在的建立过程较为繁琐,耗费大量时间和人力的问题。The embodiment of the present application discloses a method and network equipment for establishing a BGP session, and sending interface addresses and aliases, so as to solve the problems of tedious establishment process, which consumes a lot of time and manpower when establishing a BGP session through the existing technology.
第一方面,本申请实施例提供一种边界网关协议BGP会话建立方法,包括:应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和第二节点,所述方法包括:In a first aspect, an embodiment of the present application provides a method for establishing a border gateway protocol BGP session, including: applying to a bottom layer network of a data center network DCN, wherein the bottom layer network of the DCN includes a first node and a second node, the method include:
所述第一节点接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;Receiving, by the first node, a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline interface of the second node;
所述第一节点检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配;Detecting, by the first node, whether a second interface address alias of a second inline interface of the first node matches the first interface address alias;
当所述第二接口地址别名与所述第一接口地址别名相匹配时,所述第一节点根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话;When the second interface address alias matches the first interface address alias, the first node uses the first interface address between the second inline interface and the first inline interface. Establish BGP sessions between them;
其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
本申请实施例中,第一节点能够接收第二节点传输的第一内联接口的第一接口地址和第一接口地址别名,并检测第二内联接口配置的第二接口地址别名是否与第一接口地址别名相匹配,若匹配,则第一节点根据接收到的第一接口地址,建立第二内联接口与第一内联接口的BGP会话。这种情况下,只需为第一内联接口配置第一接口地址别名,并且为第二内联接口配置与第一接口地址别名相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。In the embodiment of the present application, the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect whether the second interface address alias configured by the second inline interface is the same as the first interface address alias. An interface address alias matches. If they match, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
结合第一方面,在第一方面第一种可能的实现方式中,当所述第一节点和第二节点分属于不同的自治系统时,在所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配之前,还包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, when the first node and the second node belong to different autonomous systems, in the second detecting of the second inline interface of the first node and the second node, Before the interface address alias matches the first interface address alias, the method further includes:
所述第一节点接收所述第二节点所属的第一自治系统的第一自治系统号;Receiving, by the first node, a first autonomous system number of a first autonomous system to which the second node belongs;
所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,包括:The detecting whether the second interface address alias of the second inline interface of the second interface inline with the first interface address alias includes:
所述第一节点检测自身所属的第二自治系统的第二自治系统号与所述第一自治系统号是否相同;Detecting, by the first node, whether a second autonomous system number of a second autonomous system to which the first node belongs is the same as the first autonomous system number;
当所述第二自治系统号与所述第一自治系统号不同时,所述第一节点执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作;When the second autonomous system number is different from the first autonomous system number, the first node performs the detection to check whether the second interface address alias of the second inline interface of the first autonomous system is the same as the first interface address alias. Matching operation
当所述第二自治系统号与所述第一自治系统号相同时,所述第一节点根据待交互数据的数据参数,判断所述待交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number, the first node determines whether the data priority of the data to be interacted is a high priority according to the data parameters of the data to be interacted, Data parameters include data traffic and / or data importance;
当所述数据优先级为高优先级时,所述第一节点执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作。When the data priority is a high priority, the first node performs the operation of detecting whether a second interface address alias of a second inline interface of the first node matches the first interface address alias.
通过上述步骤,当第二自治系统号与第一自治系统号不同时,能够根据待交互的数据的数据优先级,实现对BGP会话的相应处理,从而能够在数据优先级并非高优先级的情况下,不再建立BGP会话,避免自治系统号分配错误对影响后续的数据交互,并在数据优先级为高优先级的情况下,建立BGP会话,以通过BGP会话传输高优先级的数据。Through the above steps, when the second autonomous system number is different from the first autonomous system number, the corresponding processing of the BGP session can be realized according to the data priority of the data to be exchanged, so that the case where the data priority is not a high priority In this case, BGP sessions are no longer established, to avoid subsequent data interactions due to incorrect allocation of autonomous system numbers, and to establish high-priority BGP sessions to transmit high-priority data through BGP sessions.
结合第一方面,在第一方面第二种可能的实现方式中,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,还包括:With reference to the first aspect, in a second possible implementation manner of the first aspect, after establishing a BGP session between the second inline interface and the first inline interface, the method further includes:
所述第一节点再次接收到接口地址和接口地址别名之后,当所述接口地址别名与所述第二接口地址别名相匹配时,所述第一节点根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;After the first node receives the interface address and the interface address alias again, when the interface address alias matches the second interface address alias, the first node according to the data parameter of the current interaction data of the BGP session To determine whether the data priority of the current interaction data is high priority, and the data parameters include data traffic and / or data importance;
当所述数据优先级为高优先级时,所述第一节点保持所述BGP会话不变;When the data priority is high priority, the first node keeps the BGP session unchanged;
当所述数据优先级不是高优先级时,所述第一节点根据再次接收到的第一接口地址,重新在所述第二内联接口与所述第一内联接口之间建立BGP会话。When the data priority is not a high priority, the first node re-establishes a BGP session between the second inline interface and the first inline interface according to the first interface address received again.
通过上述步骤,当再次接收到所述第一内联接口的接口地址和接口地址的别名时,能够根据BGP会话当前交互数据的数据优先级,实现对BGP会话的相应处理,从而能够在数据优先级为高优先级的情况下,保持所述BGP会话不变,以保持数据的传输,数据优先级为低优先级时,重新建立与所述第一节点的BGP会话。Through the above steps, when the interface address and the alias of the interface address of the first inline interface are received again, the corresponding processing of the BGP session can be realized according to the data priority of the current interactive data of the BGP session, so that the data can be prioritized. When the priority is high, the BGP session is kept unchanged to maintain data transmission. When the data priority is low, the BGP session with the first node is re-established.
结合第一方面,在第一方面第三种可能的实现方式中,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,还包括:With reference to the first aspect, in a third possible implementation manner of the first aspect, after establishing a BGP session between the second inline interface and the first inline interface, the method further includes:
所述第一节点再次接收到所述第二节点传输的第一自治系统号之后,所述第一节点检测所述第二自治系统号与再次接收到的所述第一自治系统号是否相同;After the first node receives the first autonomous system number transmitted by the second node again, the first node detects whether the second autonomous system number is the same as the first autonomous system number received again;
当所述第二自治系统号与再次接收到的所述第一自治系统号不同时,所述第一节点保持所述BGP会话不变;When the second autonomous system number is different from the first autonomous system number received again, the first node keeps the BGP session unchanged;
当所述第二自治系统号与再次接收到的所述第一自治系统号相同时,所述第一节点根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number received again, the first node judges the data priority of the current interactive data according to the data parameters of the current interactive data of the BGP session Whether it is high priority, the data parameters include data traffic and / or data importance;
当所述数据优先级为高优先级时,所述第一节点保持所述BGP会话不变;When the data priority is high priority, the first node keeps the BGP session unchanged;
当所述数据优先级不是高优先级时,所述第一节点中断所述BGP会话。When the data priority is not a high priority, the first node interrupts the BGP session.
由此可见,通过上述步骤,当第二自治系统号与再次接收到的所述第一自治系统号不同时,能够根据BGP会话当前交互数据的数据优先级,实现对BGP会话的相应处理,从而能够在数据优先级为高优先级的情况下,保持所述BGP会话不变,以保持数据的传输,数据优先级为低优先级时,中断所述BGP会话,避免自治系统号分配错误对影响后续的数据交互。It can be seen that through the above steps, when the second autonomous system number is different from the first autonomous system number received again, the corresponding processing of the BGP session can be realized according to the data priority of the current interactive data of the BGP session, thereby When the data priority is high, the BGP session can be maintained to maintain data transmission. When the data priority is low, the BGP session can be interrupted to avoid the impact of the autonomous system number allocation error. Subsequent data interaction.
结合第一方面,结合第一方面第一种可能的实现方式,结合第一方面第二种可能的实现方式,结合第一方面第三种可能的实现方式中,在第一方面第四种可能的实现方式中,还包括:Combined with the first aspect, combined with the first possible implementation of the first aspect, combined with the second possible implementation of the first aspect, and combined with the third possible implementation of the first aspect, the fourth possible The implementation also includes:
所述第一节点接收来自于所述第二节点的第三内联接口的第三接口地址;Receiving, by the first node, a third interface address from a third inline interface of the second node;
所述第一节点检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名;Detecting, by the first node, whether to generate a second interface address of its own second inline interface according to an automatic address generation mechanism, and whether to obtain a second interface address alias;
当确定根据地址自动生成机制,生成所述第二接口地址,并获取所述第二接口地址别名时,所述第一节点根据所述第三接口地址,在所述第二内联接口与所述第三内联接口之间建立BGP会话。When it is determined that the second interface address is generated according to the automatic address generation mechanism, and the second interface address alias is obtained, the first node according to the third interface address, in the second inline interface and the The establishment of a BGP session between the third inline interfaces is described.
第二方面,本申请实施例提供了一种BGP会话建立方法,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和第二节点,所述方法包括:In a second aspect, an embodiment of the present application provides a method for establishing a BGP session, which is applied to a low-level network of a data center network DCN. The low-level network of the DCN includes a first node and a second node, and the method includes:
所述第二节点根据地址自动生成机制,生成自身的第一内联接口的第一接口地址;The second node generates a first interface address of a first inline interface of the second node according to an automatic address generation mechanism;
所述第二节点获取所述第一内联接口的第一接口地址别名;Obtaining, by the second node, a first interface address alias of the first inline interface;
所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名;Transmitting, by the second node, the first interface address and the first interface address alias to the first node;
其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
结合第二方面,在第二方面第一种可能的实现方式中,当所述第一节点和第二节点分属于不同的自治系统时,还包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, when the first node and the second node belong to different autonomous systems, the method further includes:
所述第二节点获取自身所属的第一自治系统的第一自治系统号;Obtaining, by the second node, a first autonomous system number of a first autonomous system to which the second node belongs;
所述第二节点向所述第一节点传输所述第一自治系统号。The second node transmits the first autonomous system number to the first node.
结合第二方面,在第二方面第二种可能的实现方式中,在所述第二节点向所述第一节点传输所述第一自治系统号之后,还包括:With reference to the second aspect, in a second possible implementation manner of the second aspect, after the second node transmits the first autonomous system number to the first node, the method further includes:
当所述第一内联接口的状态发生变化,和/或所述第一接口地址发生变化时,所述第二节点重新生成所述第一内联接口的第一接口地址,并向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。When the state of the first inline interface changes, and / or the first interface address changes, the second node regenerates the first interface address of the first inline interface, and sends the first interface address to the first inline interface. The first node transmits the first interface address alias and the regenerated first interface address.
结合第二方面,在第二方面第三种可能的实现方式中,在所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名之后,还包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, after the second node transmits the first interface address and the first interface address alias to the first node, the method further includes:
当所述第一自治系统号发生变化时,所述第二节点向所述第一节点传输变化后的第一自治系统号。When the first autonomous system number changes, the second node transmits the changed first autonomous system number to the first node.
结合第二方面,在第二方面第四种可能的实现方式中,还包括:With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the method further includes:
所述第二节点根据地址自动生成机制,生成自身的第三内联接口的第三接口地址,并向所述第一节点传输所述第三接口地址。The second node generates a third interface address of its own third inline interface according to the automatic address generation mechanism, and transmits the third interface address to the first node.
第三方面,本发明提供一种网络设备,用作第一节点,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点,所述网络设备用于执行第一方面或第一方面的任意可能的实现方式中的方法。具体地,所述网络设备包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的模块。In a third aspect, the present invention provides a network device that is used as a first node and is applied to a lower layer network of a data center network DCN. The lower layer network of the DCN includes the first node and the second node, and the network device Method for performing the first aspect or any possible implementation of the first aspect. Specifically, the network device includes a module for performing the first aspect or the method in any possible implementation manner of the first aspect.
第四方面,本发明提供一种网络设备,用作第二节点,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点,所述网络设备用于执行第二方面或第二方面的任意可能的实现方式中的方法。具体地,所述网络设备包括用于执行第二方面或第二方面的任意可能的实现方式中的方法的模块。According to a fourth aspect, the present invention provides a network device that is used as a second node and is applied to a lower layer network of a data center network DCN. The lower layer network of the DCN includes the first node and the second node, and the network device Method for performing the second aspect or any possible implementation of the second aspect. Specifically, the network device includes a module for performing the second aspect or the method in any possible implementation manner of the second aspect.
第五方面,本发明提供一种网络设备,用作第一节点,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点,所述网络设备包括:处理器和收发器,另外,所述网络设备还可以包括随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接发送器、随机存取存储器以及只读存储器。其中,当需要运行第一节点时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导第一节点进入正常运行状态。在第一节点进入 正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第一方面或第一方面的任意可能的实现方式中的方法。In a fifth aspect, the present invention provides a network device that is used as a first node and is applied to a bottom layer network of a data center network DCN. The bottom layer network of the DCN includes the first node and the second node, and the network device The processor includes a processor and a transceiver. In addition, the network device may further include a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the transmitter, the random access memory, and the read-only memory through a bus. Wherein, when the first node needs to be run, the booting system is booted by a basic input / output system fixed in a read-only memory or a bootloader in an embedded system to guide the first node into a normal operating state. After the first node enters a normal operating state, the application program and the operating system are run in the random access memory, so that the processor executes the method in the first aspect or any possible implementation manner of the first aspect.
第六方面,本发明提供一种网络设备,用作第二节点,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点,所述网络设备包括:处理器和收发器,另外,所述网络设备还可以包括随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接发送器、随机存取存储器以及只读存储器。其中,当需要运行第二节点时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导第二节点进入正常运行状态。在第二节点进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第二方面或第二方面的任意可能的实现方式中的方法。According to a sixth aspect, the present invention provides a network device that is used as a second node and is applied to a lower layer network of a data center network DCN. The lower layer network of the DCN includes the first node and the second node, and the network device The processor includes a processor and a transceiver. In addition, the network device may further include a random access memory, a read-only memory, and a bus. The processor is respectively coupled to the transmitter, the random access memory, and the read-only memory through a bus. Wherein, when the second node needs to be run, the basic input / output system or the bootloader in the embedded system, which is solidified in the read-only memory, is used to boot the system, and the second node is guided to enter a normal operating state. After the second node enters a normal running state, the application program and the operating system are run in the random access memory, so that the processor executes the second aspect or the method in any possible implementation manner of the second aspect.
第七方面,本申请实施例提供了一种计算机可读介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面或第一方面任意可能的设计中的方法。In a seventh aspect, an embodiment of the present application provides a computer-readable medium. The computer-readable storage medium stores instructions. When the computer-readable storage medium runs on the computer, the computer executes the first aspect or any possible design of the first aspect. Methods.
第八方面,本申请实施例提供了一种计算机可读介质,计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面或第一方面任意可能的设计中的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable medium. The computer-readable storage medium stores instructions. When the computer-readable storage medium runs the computer, the computer executes the first aspect or any possible design of the first aspect. Methods.
第九方面,本申请实施例提供了一种BGP会话建立系统,应用于数据中心网络DCN的底层网络中,所述系统包括第三方面至第五方面任一的网络设备和第六方面至第八方面任一的网络设备。In a ninth aspect, an embodiment of the present application provides a BGP session establishment system, which is applied to an underlying network of a data center network DCN. The system includes the network equipment of any one of the third aspect to the fifth aspect and the sixth aspect to the first aspect. Network equipment of any of the eight aspects.
通过现有技术建立BGP会话时,需要由技术人员人工为DCN底层中各个节点自身的内联接口配置自身的接口地址,并且还需要技术人员分别为各个节点人工配置对端节点的内联接口的接口地址,因此需要进行大量的配置操作,导致BGP会话的建立过程较为繁琐,并且耗费大量的时间和人力。When a BGP session is established through the existing technology, a technician needs to manually configure its own interface address for the inline interface of each node in the bottom layer of the DCN, and it also requires a technician to manually configure the inline interface of the peer node for each node. The interface address requires a lot of configuration operations, which leads to a tedious process of establishing a BGP session and consumes a lot of time and labor.
而本申请实施例中,第一节点能够接收第二节点传输的第一内联接口的第一接口地址和第一接口地址别名,并检测第二内联接口配置的第二接口地址别名是否与第一接口地址别名相匹配,若匹配,则第一节点根据接收到的第一接口地址,建立第二内联接口与第一内联接口的BGP会话。这种情况下,只需为第一内联接口配置第一接口地址别名,并且为第二内联接口配置与第一接口地址别名相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。In the embodiment of the present application, the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect whether the second interface address alias configured by the second inline interface is the same as The first interface address aliases match. If they match, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
例如,若需要为第一节点中的a内联接口与第二节点中b内联接口建立一个BGP会话,在现有技术中,需要为a内联接口配置a内联接口的接口地址,以及为a内联接口配置b内联接口的接口地址,并且,同时需要为b内联接口配置b内联接口的接口地址,以及a内联接口的接口地址,则需要至少四次配置操作。For example, if a BGP session needs to be established for the inline interface of a in the first node and the inline interface of b in the second node, in the prior art, the interface address of the inline interface needs to be configured for the inline interface, and Configure the interface address of the b inline interface for the a inline interface, and also need to configure the interface address of the b inline interface and the interface address of the a inline interface for the b inline interface, at least four configuration operations are required.
而采用本申请实施例公开的方案,只需要为a内联接口配置接口地址别名,并为b内联接口配置与a内联接口的接口地址别名相匹配的接口地址别名即可,即只需要两次配置操作。与现有技术相比,配置操作减少。With the solution disclosed in the embodiment of the present application, it is only necessary to configure an interface address alias for a inline interface, and configure an interface address alias for b inline interface that matches the interface address alias of a inline interface. Two configuration operations. Compared with the prior art, the configuration operation is reduced.
另外,若第二节点中的a内联接口与第一节点中b内联接口之间需要建立M(M为大于1的正整数)个BGP会话,在现有技术中,需要为a内联接口配置a内联接口的M个接口地 址,以及为a内联接口配置b内联接口的M个接口地址,并且,同时需要为b内联接口配置b内联接口的M个接口地址,以及a内联接口的M个接口地址,则需要至少4M个配置操作。In addition, if an inline interface a in the second node and an inline interface b in the first node need to establish M (M is a positive integer greater than 1) BGP sessions, in the prior art, an inline for a Configure M interface addresses for a inline interface and M interface addresses for b inline interface for a inline interface, and also need to configure M interface addresses for b inline interface for b inline interface, and a M interface addresses of an inline interface require at least 4M configuration operations.
而采用本申请实施例公开的方案,只需要为a内联接口配置M个接口地址别名,并为b内联接口配置与a内联接口的接口地址别名相匹配的M个接口地址别名即可,即只需要2M次配置操作。与现有技术相比,配置操作大大减少。With the solution disclosed in the embodiment of the present application, only M interface address aliases need to be configured for a inline interface, and M interface address aliases that match the interface address aliases of a inline interface can be configured for b inline interface. That is, only 2M configuration operations are required. Compared with the prior art, configuration operations are greatly reduced.
特别的,在DCN的Underlay network中,往往包含大量的节点,这种情况下,与现有技术相比,本申请实施例减少配置操作的效果更为明显。In particular, DCN ’s Underlay network often contains a large number of nodes. In this case, compared with the prior art, the effect of reducing the configuration operation in the embodiment of the present application is more obvious.
进一步的,若通过现有技术建立BGP会话,由于现有技术采用的是人工配置的方式,配置过程中极易出现错误,这种情况下,各个节点的接口地址或对端节点的接口地址极有可能配置错误,从而导致BGP会话的建立发生错误。Further, if a BGP session is established through the existing technology, since the prior art uses a manual configuration method, errors are very likely to occur during the configuration process. In this case, the interface address of each node or the interface address of the peer node is extremely It is possible that the configuration is incorrect, which may cause an error in the establishment of the BGP session.
而通过本申请实施例公开的方案,各个节点主动生成自身接口的接口地址,并将其传输至对端节点,无需对接口地址进行人工配置,配置出错的可能性大大减少,能够提高BGP会话的准确度。With the solution disclosed in the embodiment of the present application, each node actively generates the interface address of its own interface and transmits it to the peer node, without the need to manually configure the interface address. The possibility of configuration errors is greatly reduced, which can improve the BGP session. Accuracy.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solution of the present application more clearly, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, without paying creative labor, Other drawings can also be obtained from these drawings.
图1(a)为现有技术公开的一种DCN的Underlay network的网络拓扑架构示意图;FIG. 1 (a) is a schematic diagram of a network topology architecture of a DCN Underlay network disclosed in the prior art; FIG.
图1(b)为现有技术公开的一种DCN的Underlay network的网络拓扑架构示意图;1 (b) is a schematic diagram of a network topology architecture of a DCN Underlay network disclosed in the prior art;
图2为本申请实施例公开的一种BGP会话建立方法的工作流程示意图;2 is a schematic flowchart of a BGP session establishment method disclosed in an embodiment of the present application;
图3为本申请实施例公开的又一种BGP会话建立方法的工作流程示意图;3 is a schematic flowchart of another BGP session establishment method disclosed in an embodiment of the present application;
图4为本申请实施例公开的一种BGP会话建立方法中,RA报文的示意图;4 is a schematic diagram of an RA message in a BGP session establishment method disclosed in an embodiment of the present application;
图5为本申请实施例公开的又一种BGP会话建立方法的工作流程示意图;5 is a schematic flowchart of another BGP session establishment method disclosed in an embodiment of the present application;
图6为本申请实施例公开的又一种BGP会话建立方法的工作流程示意图;6 is a schematic flowchart of another BGP session establishment method disclosed in an embodiment of the present application;
图7为本申请实施例公开的一种发送接口地址和别名的方法的工作流程示意图;7 is a schematic flowchart of a method for sending an interface address and an alias according to an embodiment of the present application;
图8为本申请实施例公开的一种网络设备的结构示意图;8 is a schematic structural diagram of a network device disclosed in an embodiment of the present application;
图9为本申请实施例公开的又一种网络设备的结构示意图;9 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application;
图10为本申请实施例公开的一种网络设备的结构示意图;10 is a schematic structural diagram of a network device disclosed in an embodiment of the present application;
图11为本申请实施例公开的又一种网络设备的结构示意图;11 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application;
图12为本申请实施例公开的又一种网络设备的结构示意图;12 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application;
图13为本申请实施例公开的又一种网络设备的结构示意图;13 is a schematic structural diagram of still another network device disclosed in an embodiment of the present application;
图14为本申请实施例公开的一种BGP会话建立系统的结构示意图。FIG. 14 is a schematic structural diagram of a BGP session establishment system disclosed in an embodiment of the present application.
具体实施方式detailed description
为了解决通过现有技术建立BGP会话时,所存在的建立过程较为繁琐,耗费大量时间和人力的问题,本申请实施例公开一种BGP会话建立、发送接口地址和别名的方法及网络设备。In order to solve the problems of tedious establishment process and consuming a lot of time and manpower when establishing a BGP session through the prior art, the embodiment of the present application discloses a method and network device for establishing a BGP session and sending interface addresses and aliases.
在数据中心网络DCN的底层网络Underlay network中,通常包含两种类型的节点,分别为leaf节点与spine节点,其中,每个spine节点均需要与所有的leaf节点相连接,每个leaf节点均需要与所有的spine节点相连接,以便在spine节点和leaf节点之间进行数据交互。并且,若其中的第一节点与第二节点相连接,可认为第一节点为第二节点的对端节点,并且第二节点为第一节点的对端节点,而且第一节点与第二节点之间为邻居关系。In the data center network DCN's underlying network Underlay network, there are usually two types of nodes, leaf nodes and spine nodes, of which each spine node needs to be connected to all leaf nodes, and each leaf node requires Connects to all spine nodes for data interaction between spine and leaf nodes. And, if the first node is connected to the second node, the first node can be considered as the opposite node of the second node, and the second node is the opposite node of the first node, and the first node and the second node There is a neighbor relationship.
参考图1(a)和图1(b)所示的DCN的Underlay network的网络拓扑架构示意图,图1(a)所示的DCN的Underlay network为二层架构,其中一层为leaf节点,另一层为spine节点,而1(b)所示的DCN的Underlay network为三层架构,中间层为spine节点,另外两层为leaf节点。相对于图1(a)和图1(b)来说,在实际应用中,DCN的Underlay network中包含的节点数量更多,往往能达到几百个节点,对于大规模的DCN来说,Underlay network中包含的节点数量甚至上万个。这种情况下,DCN的Underlay network的各个节点可通过本申请实施例公开的方案建立BGP会话,以实现与其他节点的数据交互。Referring to the schematic diagram of the network topology of the DCN ’s Underlay network shown in Figure 1 (a) and Figure 1 (b), the DCN ’s Underlay network shown in Figure 1 (a) is a two-layer architecture, where one layer is a leaf node, and the other is One layer is a spine node, and the DCN's Underlay network shown in 1 (b) has a three-layer architecture, the middle layer is a spine node, and the other two layers are leaf nodes. Compared to Figure 1 (a) and Figure 1 (b), in practical applications, DCN's Underlay network contains more nodes, which can often reach hundreds of nodes. For large-scale DCNs, Underlay The number of nodes contained in the network is even tens of thousands. In this case, each node of the DCN's Underlay network can establish a BGP session by using the solution disclosed in the embodiment of the present application to implement data interaction with other nodes.
本申请第一实施例公开一种边界网关协议BGP会话建立方法,该方法应用于数据中心网络DCN的Underlay network中,所述DCN的Underlay network包括第一节点和第二节点,参见图2所示的工作流程示意图,所述BGP会话建立方法包括以下步骤:The first embodiment of the present application discloses a method for establishing a border gateway protocol BGP session. The method is applied to an underlay network of a data center network DCN. The underlay network of the DCN includes a first node and a second node, as shown in FIG. 2 Schematic diagram of the workflow, the BGP session establishment method includes the following steps:
步骤S11、所述第一节点接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口。Step S11: The first node receives a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline of the second node. interface.
在本申请实施例中,所述第一节点可以为DCN的Underlay network中的leaf节点,这种情况下,与所述第一节点建立BGP会话的第二节点即为DCN的Underlay network中的spine节点。另外,所述第一节点可以为DCN的Underlay network中的spine节点,这种情况下,与所述第一节点建立BGP会话的第二节点即为DCN的Underlay network中的leaf节点,本申请实施例对此不做限定。In the embodiment of the present application, the first node may be a leaf node in an Underlay network of the DCN. In this case, a second node that establishes a BGP session with the first node is a spine in the Underlay network of the DCN. node. In addition, the first node may be a spine node in an Underlay network of the DCN. In this case, a second node that establishes a BGP session with the first node is a leaf node in the Underlay network of the DCN. This application implements Examples do not limit this.
其中,内联接口指的是DCN的Underlay network内部互联的接口。也就是,在DCN的Underlay network中的各个节点之间通过内联接口实现互联,即Underlay network中的leaf节点通过自身的内联接口与spine节点的内联接口互联,相应的,Underlay network中的spine节点通过自身的内联接口与leaf节点的内联接口互联。另外,所述内联接口可以为物理接口,也可以为虚拟接口,本申请实施例对此不作限定。Among them, the inline interface refers to the internal interconnection interface of DCN's Underlay network. That is, the nodes in the Underlay network of DCN are interconnected through an inline interface, that is, the leaf node in the Underlay network is interconnected with the inline interface of the spine node through its own inline interface. Correspondingly, in the Underlay network, The spine node is interconnected with the inline interface of the leaf node through its own inline interface. In addition, the inline interface may be a physical interface or a virtual interface, which is not limited in the embodiment of the present application.
另外,第二节点能够根据地址自动生成机制,自动生成自身的第一内联接口的第一接口地址,也就是说,第二节点能够自动生成第一内联接口的第一接口地址。并且,在自动生成第一接口地址之后,第二节点会将第一接口地址和第一接口地址的别名(即第一接口地址别名)传输至第一节点。In addition, the second node can automatically generate the first interface address of its first inline interface according to the automatic address generation mechanism, that is, the second node can automatically generate the first interface address of the first inline interface. In addition, after the first interface address is automatically generated, the second node transmits the first interface address and the alias of the first interface address (that is, the first interface address alias) to the first node.
其中,第二节点自动生成的第一内联接口的接口地址,可以为遵循第6版互联网协议(Internet Protocol Version 6,IPv6)的本地链路地址(link-local address,LLA),或唯一本地地址(unique local address,ULA)。当然,还可以采用其他能够根据地址自动生成机制所生成的接口地址,本申请实施例对此不做限定。The interface address of the first inline interface automatically generated by the second node may be a link-local address (LLA) that complies with Internet Protocol Version 6 (IPv6), or a unique local address. Address (unique local address, ULA). Of course, other interface addresses that can be generated according to the automatic address generation mechanism may also be used, which is not limited in the embodiment of the present application.
步骤S12、所述第一节点检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配。Step S12: The first node detects whether a second interface address alias of a second inline interface of the first node matches the first interface address alias.
若需要在所述第二内联接口与所述第一内联接口之间建立BGP会话,则预先为第二内联接口配置第二接口地址别名,并且,在配置时使所述第二接口地址别名与第一接口地址别名相匹配。If a BGP session needs to be established between the second inline interface and the first inline interface, a second interface address alias is configured for the second inline interface in advance, and the second interface is enabled during configuration The address alias matches the first interface address alias.
这种情况下,第一节点在接收到第一接口地址和第一接口地址别名后,通过步骤S12进行检测,若检测到第二接口地址别名与第一接口地址别名相匹配,则表明当前需要在所述第二内联接口与所述第一内联接口之间建立BGP会话。In this case, after receiving the first interface address and the first interface address alias, the first node performs detection through step S12. If it is detected that the second interface address alias matches the first interface address alias, it indicates that it is currently required A BGP session is established between the second inline interface and the first inline interface.
其中,第二接口地址别名与第一接口地址别名相匹配,可以为多种情况,例如,可设定第二接口地址别名与第一接口地址别名完全相同时,则认为第二接口地址别名与第一接口地址别名相匹配,或者,若第二接口地址别名中的前N个字符与第一接口地址别名中的前N个字符相同,则确定第二接口地址别名与第一接口地址别名相匹配,N为大于0的正整数。Wherein, the second interface address alias matches the first interface address alias, which can be a variety of situations. For example, when the second interface address alias is set to be exactly the same as the first interface address alias, the second interface address alias is considered to be the same as The first interface address alias matches, or if the first N characters in the second interface address alias are the same as the first N characters in the first interface address alias, it is determined that the second interface address alias matches the first interface address alias. Match, N is a positive integer greater than 0.
这种情况下,若需要在所述第二内联接口与所述第一内联接口之间建立BGP会话,那么,在为第一内联接口配置第一接口地址别名后,可将配置好的第一接口地址别名复制至第一节点,作为第一节点中第二内联接口的第二地址别名,实现对第二内联接口的第二接口地址别名的配置。In this case, if a BGP session needs to be established between the second inline interface and the first inline interface, after configuring the first interface address alias for the first inline interface, the configuration can be completed. The first interface address alias of the second node is copied to the first node and used as the second address alias of the second inline interface in the first node to implement the configuration of the second interface address alias of the second inline interface.
一个节点可通过自身的同一内联接口与同一个对端节点的不同内联接口建立多个BGP会话,并且,还可以通过生成多个接口地址的方式,与对端节点的同一内联接口建立多个BGP会话。其中,所述接口地址别名在具有邻居关系的两个节点之间具有唯一性,这种情况下,若某一个内联接口与对端节点的同一个内联接口建立多个BGP会话,通过接口地址别名能够区分各个接口地址,进一步区分各个BGP会话。A node can establish multiple BGP sessions with different inline interfaces of the same peer node through the same inline interface of itself, and can also establish multiple interface addresses with the same inline interface of the peer node by generating multiple interface addresses. Multiple BGP sessions. The interface address alias is unique between two nodes having a neighbor relationship. In this case, if a certain inline interface establishes multiple BGP sessions with the same inline interface of the peer node, the interface The address alias can distinguish each interface address and further distinguish each BGP session.
步骤S13、当所述第二接口地址别名与所述第一接口地址别名相匹配时,所述第一节点根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话。Step S13: When the second interface address alias matches the first interface address alias, the first node uses the first interface address between the second inline interface and the first internal interface. A BGP session is established between the connected interfaces.
其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
在本申请实施例中,若所述第二接口地址别名与所述第一接口地址别名相匹配,则表明需要建立第二内联接口与第一内联接口之间的BGP会话,这种情况下,第一节点根据所述第一接口地址,建立所述第二内联接口与所述第一内联接口的BGP会话,从而实现第一节点与第二节点之间的BGP会话的建立。In the embodiment of the present application, if the second interface address alias matches the first interface address alias, it indicates that a BGP session between the second inline interface and the first inline interface needs to be established. In this case, Next, the first node establishes a BGP session between the second inline interface and the first inline interface according to the first interface address, thereby implementing the establishment of a BGP session between the first node and the second node.
在实际应用过程中,各个内联接口的接口地址别名通常预先配置,并且,所述接口地址别名在具有邻居关系的两个节点之间具有唯一性,以区分各个BGP会话。进一步的,为了简单起见,可将各个内联接口的接口地址别名配置为在DCN中具有唯一性。In practical applications, the interface address alias of each inline interface is usually pre-configured, and the interface address alias is unique between two nodes having a neighbor relationship to distinguish each BGP session. Further, for simplicity, the interface address alias of each inline interface can be configured to be unique in the DCN.
本申请实施例公开一种应用于DCN的BGP会话建立方法,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和第二节点,该方法中,第一节点接收 来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;所述第一节点检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配;当所述第二接口地址别名与所述第一接口地址别名相匹配时,所述第一节点根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话,其中,所述第一节点的第二内联接口与所述第二节点的第一内联接口互联。The embodiment of the present application discloses a BGP session establishment method applied to DCN, which is applied to a bottom layer network of a data center network DCN. The bottom layer network of the DCN includes a first node and a second node. In the method, the first node receives A first interface address and a first interface address alias from a first inline interface of the second node, the first inline interface being an inline interface of the second node; the first node detecting itself Whether the second interface address alias of the second inline interface matches the first interface address alias; when the second interface address alias matches the first interface address alias, the first node The first interface address establishes a BGP session between the second inline interface and the first inline interface, wherein the second inline interface of the first node and the first An inline interface interconnects.
通过现有技术建立BGP会话时,需要由技术人员人工为DCN底层中各个节点自身的内联接口配置自身的接口地址,并且还需要技术人员分别为各个节点人工配置对端节点的内联接口的接口地址,因此需要进行大量的配置操作,导致BGP会话的建立过程较为繁琐,并且耗费大量的时间和人力。When a BGP session is established through the existing technology, a technician needs to manually configure its own interface address for the inline interface of each node in the bottom layer of the DCN, and it also requires a technician to manually configure the inline interface of the peer node for each node. The interface address requires a lot of configuration operations, which leads to a tedious process of establishing a BGP session and consumes a lot of time and labor.
而本申请实施例中,第一节点能够接收第二节点传输的第一内联接口的第一接口地址和第一接口地址别名,并检测第二内联接口配置的第二接口地址别名是否与第一接口地址别名相匹配,若匹配,则第一节点根据接收到的第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话。这种情况下,只需为第一内联接口配置第一接口地址别名,并且为第二内联接口配置与第一接口地址别名相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。In the embodiment of the present application, the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect whether the second interface address alias configured by the second inline interface is the same as The first interface address aliases match, and if they match, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
例如,若需要为第一节点中的a内联接口与第二节点中b内联接口建立一个BGP会话,在现有技术中,需要为a内联接口配置a内联接口的接口地址,以及为a内联接口配置b内联接口的接口地址,并且,同时需要为b内联接口配置b内联接口的接口地址,以及a内联接口的接口地址,则需要至少四次配置操作。For example, if a BGP session needs to be established for the inline interface of a in the first node and the inline interface of b in the second node, in the prior art, the interface address of the inline interface needs to be configured for the inline interface, and Configure the interface address of the b inline interface for the a inline interface, and also need to configure the interface address of the b inline interface and the interface address of the a inline interface for the b inline interface, at least four configuration operations are required.
而采用本申请实施例公开的方案,只需要为a内联接口配置接口地址别名,并为b内联接口配置与a内联接口的接口地址别名相匹配的接口地址别名即可,即只需要两次配置操作。与现有技术相比,配置操作减少。With the solution disclosed in the embodiment of the present application, it is only necessary to configure an interface address alias for a inline interface, and configure an interface address alias for b inline interface that matches the interface address alias of a inline interface. Two configuration operations. Compared with the prior art, the configuration operation is reduced.
另外,若第二节点中的a内联接口与第一节点中b内联接口之间需要建立M(M为大于1的正整数)个BGP会话,在现有技术中,需要为a内联接口配置a内联接口的M个接口地址,以及为a内联接口配置b内联接口的M个接口地址,并且,同时需要为b内联接口配置b内联接口的M个接口地址,以及a内联接口的M个接口地址,则需要至少4M个配置操作。In addition, if an inline interface a in the second node and an inline interface b in the first node need to establish M (M is a positive integer greater than 1) BGP sessions, in the prior art, an inline for a Configure M interface addresses for a inline interface and M interface addresses for b inline interface for a inline interface, and also need to configure M interface addresses for b inline interface for b inline interface, and a M interface addresses of an inline interface require at least 4M configuration operations.
而采用本申请实施例公开的方案,只需要为a内联接口配置M个接口地址别名,并为b内联接口配置与a内联接口的接口地址别名相匹配的M个接口地址别名即可,即只需要2M次配置操作。与现有技术相比,配置操作大大减少。With the solution disclosed in the embodiment of the present application, only M interface address aliases need to be configured for a inline interface, and M interface address aliases that match the interface address aliases of a inline interface can be configured for b inline interface. That is, only 2M configuration operations are required. Compared with the prior art, configuration operations are greatly reduced.
特别的,在DCN的Underlay network中,往往包含大量的节点,这种情况下,与现有技术相比,本申请实施例减少配置操作的效果更为明显。In particular, DCN ’s Underlay network often contains a large number of nodes. In this case, compared with the prior art, the effect of reducing the configuration operation in the embodiment of the present application is more obvious.
进一步的,若通过现有技术建立BGP会话,由于现有技术采用的是人工配置的方式,配置过程中极易出现错误,这种情况下,各个节点的接口地址或对端节点的接口地址极有可能配置错误,从而导致BGP会话的建立发生错误。Further, if a BGP session is established through the existing technology, since the prior art uses a manual configuration method, errors are very likely to occur during the configuration process. In this case, the interface address of each node or the interface address of the peer node is extremely It is possible that the configuration is incorrect, which may cause an error in the establishment of the BGP session.
而通过本申请实施例公开的方案,各个节点主动生成自身接口的接口地址,并将其传输至对端节点,无需对接口地址进行人工配置,配置出错的可能性大大减少,能够提高BGP会话的准确度。With the solution disclosed in the embodiment of the present application, each node actively generates the interface address of its own interface and transmits it to the peer node, without the need to manually configure the interface address. The possibility of configuration errors is greatly reduced, which can improve the BGP session. Accuracy.
进一步的,通过本申请实施例公开的方案建立BGP会话时,对各个节点的内联接口的改动量较小,便于实现。Further, when the BGP session is established through the solution disclosed in the embodiment of the present application, the amount of modification to the inline interface of each node is small, which is convenient to implement.
另外,DCN的Underlay network包含的节点可属于同一个自治系统,并且,还可以分属于不同的自治系统。若Underlay network包含的各个节点属于同一个自治系统,则各个节点之间建立的BGP会话为内部边界网关协议(Internal Border Gateway Protocol,IBGP)会话。进一步的,若Underlay network包含的各个节点分属于不同的自治系统,则各个节点之间建立的BGP会话为外部边界网关协议(External Border Gateway Protocol,EBGP)会话。这种情况下,本申请公开第二实施例。In addition, the nodes included in DCN's Underlay network can belong to the same autonomous system, and can also belong to different autonomous systems. If each node included in the Underlay network belongs to the same autonomous system, the BGP session established between each node is an Internal Border Gateway Protocol (Internal Border Gateway Protocol) session. Further, if each node included in the Underlay network belongs to different autonomous systems, the BGP session established between each node is an External Border Gateway Protocol (External Gateway Protocol) session. In this case, the present application discloses a second embodiment.
参见图3所示的工作流程示意图,当所述第一节点和第二节点分属于不同的自治系统时,本申请实施例公开的BGP会话建立方法包括以下步骤:Referring to the schematic diagram of the work flow shown in FIG. 3, when the first node and the second node belong to different autonomous systems, the BGP session establishment method disclosed in the embodiment of the present application includes the following steps:
步骤S21、第一节点接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口。Step S21: The first node receives a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline interface of the second node.
其中,步骤S21的操作过程与步骤S11的操作过程相同,可相互参照,此处不再赘述。The operation process of step S21 is the same as the operation process of step S11, which can be referred to each other, and will not be repeated here.
步骤S22、所述第一节点接收所述第二节点所属的第一自治系统的第一自治系统号。Step S22: The first node receives a first autonomous system number of a first autonomous system to which the second node belongs.
其中,第一自治系统号通常由第二节点传输至所述第一节点。The first autonomous system number is usually transmitted from the second node to the first node.
在DCN的Underlay network中,每个自治系统均会被分配一个DCN内唯一的号码,该号码即为自治系统号(Autonomous System Number,ASN)。在本申请实施例中,将第二节点所属的自治系统称为第一自治系统,并将第一自治系统的号码称为第一自治系统号。In DCN's Underlay network, each autonomous system will be assigned a unique number within the DCN, which is the Autonomous System Number (ASN). In the embodiment of the present application, the autonomous system to which the second node belongs is referred to as a first autonomous system, and the number of the first autonomous system is referred to as a first autonomous system number.
步骤S23、所述第一节点检测自身所属的第二自治系统的第二自治系统号与所述第一自治系统号是否相同。若相同,执行步骤S24的操作,若不同,执行步骤S25的操作。Step S23: The first node detects whether the second autonomous system number of the second autonomous system to which it belongs is the same as the first autonomous system number. If they are the same, perform the operation of step S24; if they are different, perform the operation of step S25.
步骤S24、当所述第二自治系统号与所述第一自治系统号相同时,所述第一节点根据待交互数据的数据参数,判断所述待交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性。若是,执行步骤S25的操作。Step S24: When the second autonomous system number is the same as the first autonomous system number, the first node determines whether the data priority of the data to be interacted is a high priority according to the data parameters of the data to be interacted with The data parameters include data traffic and / or data importance. If yes, perform the operation of step S25.
其中,若所述待交互数据为高优先级,则执行步骤S25的操作,也就是说,若待交互数据优先级为高优先级,所述第一节点再执行检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作。Wherein, if the data to be exchanged has a high priority, the operation of step S25 is performed, that is, if the data to be exchanged has a high priority, the first node executes a second inline interface that detects itself. Whether the second interface address alias matches the first interface address alias.
本申请实施例中,可预先为数据设置不同的优先级,其中,通常设定两个优先级,即高优先级和低优先级,若待交互数据的数据流量较大,和/或数据重要性较高,则确定待交互数据为高优先级,若所述待交互数据的数据流量较小,和/或数据重要性较低,则确定待交互数据为低优先级。In the embodiment of the present application, different priorities may be set for the data in advance, wherein two priorities are usually set, that is, a high priority and a low priority. If the data traffic to be exchanged is large, and / or the data is important If the data is high, it is determined that the data to be interacted is a high priority. If the data flow of the data to be interacted is small and / or the data is of low importance, the data to be interacted is determined to be a low priority.
也就是说,若所述数据优先级为高优先级,即使第一自治系统号与第二自治系统号相同,第一节点仍可继续执行后续建立BGP会话的操作,以保障数据交互能够顺利进行。That is, if the data priority is high, even if the first autonomous system number is the same as the second autonomous system number, the first node can continue to perform subsequent operations to establish a BGP session to ensure that the data interaction can proceed smoothly. .
步骤S25、所述第一节点检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配。Step S25: The first node detects whether the second interface address alias of the second inline interface of the first node matches the first interface address alias.
步骤S26、当所述第二接口地址别名与所述第一接口地址别名相匹配时,所述第一节点根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话。Step S26: When the second interface address alias matches the first interface address alias, the first node uses the first interface address between the second inline interface and the first internal interface. A BGP session is established between the connected interfaces.
其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
进一步的,在本申请实施例中,若通过步骤S24的操作,判定所述待交互数据的数据优先级不是高优先级,还可以包括以下步骤:Further, in the embodiment of the present application, if it is determined by the operation of step S24 that the data priority of the data to be interacted is not a high priority, the following steps may be further included:
步骤S27、当所述数据优先级不是高优先级时,所述第一节点终止与所述第一内联接口的BGP会话的建立。Step S27: When the data priority is not a high priority, the first node terminates the establishment of a BGP session with the first inline interface.
本申请实施例中,若通过步骤S23的操作,确定第二自治系统号与所述第一自治系统号相同,则表明为第一自治系统和第二自治系统分配号码的过程中可能出现错误,这种情况下,第一节点会根据待交互数据的数据优先级,确定处理措施。其中,若待交互数据的数据流量较大,和/或数据重要性较高,则确定待交互数据为高优先级,并继续执行建立BGP会话的后续操作。这种情况下,在建立BGP会话的同时,还可以记录该BGP会话的相关信息,将其作为诊断信息,以便后续进行问题定位。In the embodiment of the present application, if it is determined through the operation of step S23 that the second autonomous system number is the same as the first autonomous system number, it indicates that an error may occur in the process of assigning numbers to the first autonomous system and the second autonomous system. In this case, the first node will determine a processing measure according to the data priority of the data to be exchanged. Wherein, if the data flow of the data to be exchanged is large and / or the data is of high importance, it is determined that the data to be exchanged is of high priority, and the subsequent operations of establishing a BGP session are continued. In this case, when a BGP session is established, related information about the BGP session can also be recorded and used as diagnostic information for subsequent problem location.
进一步的,若待交互数据的数据流量较小,和/或数据重要性较低,则确定待交互数据并非高优先级,为了避免影响后续的数据交互,第一节点终止BGP会话的建立操作,不再建立与所述第二节点的BGP会话。Further, if the data flow of the data to be exchanged is small and / or the data is of low importance, it is determined that the data to be exchanged is not a high priority. In order to avoid affecting subsequent data interactions, the first node terminates the establishment of the BGP session. A BGP session with the second node is no longer established.
另外,若第一自治系统号与第二自治系统号不同,第一节点会继续执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作。In addition, if the first autonomous system number is different from the second autonomous system number, the first node will continue to perform the check whether the second interface address alias of the second inline interface of the first autonomous system matches the first interface address alias. operating.
另外,在上述步骤的描述中,以及图3所示的工作流程示意图中,第一节点在接收第二节点传输的第一接口地址和第一接口地址别名之后,再接收第一自治系统号。在实际应用过程中,第一节点接收第一接口地址和第一接口地址的别名的操作,与接收第一自治系统号的操作没有严格的时间先后顺序。例如,还可以先接收第一自治系统号,再接收第一接口地址和第一接口地址别名。或者,若第二节点将第一自治系统号、第一接口地址和第一接口地址别名加载在同一报文,第一节点还可以同时接收第一自治系统号、第一接口地址和第一接口地址别名。In addition, in the description of the above steps and the schematic diagram of the work flow shown in FIG. 3, the first node receives the first autonomous system number after receiving the first interface address and the first interface address alias transmitted by the second node. In the actual application process, the operation of the first node receiving the first interface address and the alias of the first interface address is not in strict sequence with the operation of receiving the first autonomous system number. For example, the first autonomous system number may be received first, and then the first interface address and the first interface address alias may be received. Alternatively, if the second node loads the first autonomous system number, the first interface address, and the first interface address alias in the same packet, the first node may also receive the first autonomous system number, the first interface address, and the first interface at the same time. Address alias.
其中,若第二节点将第一自治系统号、第一接口地址和第一接口地址别名加载在同一报文,通过同一报文向第一节点传输上述信息,该报文可以为扩展后的路由器通告(Router Advertisement,RA)报文。Wherein, if the second node loads the first autonomous system number, the first interface address, and the first interface address alias into the same message, and transmits the above information to the first node through the same message, the message may be an extended router. Advertisement (Router, Advertisement, RA) message.
本申请实施例采用的RA报文可如图4所示。图4公开一种RA报文的格式示意图,该RA报文遵循第6版互联网协议(Internet Protocol Version 6,IPv6),参见图4,该报 文中的字段包括:Type、Length、ASN type、Reserved 1、Reserved 2、IPv6 address、ASN和alias-name,其中,“Type”字段用于加载该RA报文的类型,通常为1字节;“Length”字段用于加载该“Type、Length、ASN type、Reserved 1、Reserved 2、IPv6 address、ASN和alias-name”这八个字段的长度,通常取值范围为[24,255]字节;“ASN type”字段用于加载第一自治系统号的类型,通常为1字节,其中,若第一自治系统号的类型为RFC4271规定的类型,则第一自治系统号通常为2字节定长,若第一自治系统号的类型为RFC6793规定的类型,则第一自治系统号通常为4字节定长;“IPv6 address”字段用于加载第一内联接口的第一接口地址,通常为16字节;“ASN”字段用于加载第一自治系统号,该字段可以为2字节或4字节,若该字段为4字节,往往不需要设置图4所示报文中的“Reserved 2”字段,仅通过“ASN”字段加载第一自治系统号,若该字段为2字节,则可设置所述“Reserved 2”字段,并且“Reserved 2”字段为2字节,通过“ASN”字段与“Reserved 2”字段共同加载第一自治系统号;“alias-name”字段用于加载第一内联接口的第一接口地址别名,通常情况下,“alias-name”字段的长度=“Length”字段的长度-24字节。另外,“alias-name”字段加载第一接口地址别名,可通过美国信息交换标准代码(American Standard Code for Information Interchange,ASCII)的方式进行编码获得。The RA message used in the embodiment of the present application may be shown in FIG. 4. FIG. 4 discloses a schematic format of an RA message. The RA message complies with Internet Protocol Version 6 (IPv6). Referring to FIG. 4, the fields in the message include: Type, Length, ASN, Type, Reserved1, Reserved2, IPv6 address, ASN, and alias-name, where the "Type" field is used to load the type of the RA message, which is usually 1 byte; the "Length" field is used to load the "Type, Length, The lengths of the eight fields: ASN, Type1, Reserved1, Reserved2, IPv6 address, ASN, and alias-name are usually in the range of [24,255] bytes; the "ASNtype" field is used to load the first autonomous system number. Type, usually 1 byte. Among them, if the type of the first autonomous system number is the type specified by RFC4271, the first autonomous system number is usually a fixed length of 2 bytes. Type, the first autonomous system number is usually a 4-byte fixed length; the "IPv6 address" field is used to load the first interface address of the first inline interface, which is usually 16 bytes; the "ASN" field is used to load the first Autonomous system number, the The segment can be 2 bytes or 4 bytes. If the field is 4 bytes, it is often not necessary to set the "Reserved 2" field in the message shown in Figure 4, and only load the first autonomous system number through the "ASN" field. If the field is 2 bytes, the "Reserved 2" field can be set, and the "Reserved 2" field is 2 bytes. The first autonomous system number is loaded together through the "ASN" field and the "Reserved 2" field; " The "alias-name" field is used to load the first interface address alias of the first inline interface. Generally, the length of the "alias-name" field = the length of the "Length" field is 24 bytes. In addition, the "alias-name" field loads the first interface address alias, which can be obtained by encoding in the form of American Standard Code (Information Interchange, ASCII).
另外,若第二节点并未将第一自治系统号与第一接口地址和第一接口地址别名同时传输,为了使第一节点在接收到第一自治系统号后,确定该第一自治系统号所属的内联接口,第二节点在传输第一自治系统号时,需要同时传输第一接口地址别名,或者,同时传输第一接口地址,以便所述第一节点在接收到所述第一自治系统号后,根据同时传输的第一接口地址别名或第一接口地址确定接收到的第一自治系统号所对应的BGP会话。In addition, if the second node does not transmit the first autonomous system number simultaneously with the first interface address and the first interface address alias, in order for the first node to determine the first autonomous system number after receiving the first autonomous system number For the inline interface to which it belongs, when the second node transmits the first autonomous system number, it needs to transmit the alias of the first interface address at the same time, or transmit the first interface address at the same time, so that the first node receives the first autonomous system. After the system number, the BGP session corresponding to the received first autonomous system number is determined according to the first interface address alias or the first interface address transmitted simultaneously.
在第二节点向第一节点传输第一接口地址和第一接口地址别名之后,所述第二节点的第一内联接口的状态可能会发生变化,另外所述第一接口地址也可能发生变化。After the second node transmits the first interface address and the first interface address alias to the first node, the state of the first inline interface of the second node may change, and the first interface address may also change .
这种情况下,在本申请实施例公开的BGP会话建立方法中,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,若所述第一内联接口的状态发生变化,和/或所述第一接口地址发生变化,第二节点会重新生成所述第一内联接口的第一接口地址,并向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。In this case, in the BGP session establishment method disclosed in the embodiment of the present application, after a BGP session is established between the second inline interface and the first inline interface, if the The state changes, and / or the first interface address changes, the second node regenerates the first interface address of the first inline interface, and transmits the first interface address alias to the first node And the regenerated first interface address.
在第二节点向第一节点传输所述第一接口地址和第一接口地址别名之后,第一内联接口的状态可能会发生变化,由up状态变为down状态。这种情况下,在第一内联接口的状态由down状态再次转变为up状态之后,所述第二节点会重新生成第一内联接口的第一接口地址,并向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。After the second node transmits the first interface address and the first interface address alias to the first node, the state of the first inline interface may change, from an up state to a down state. In this case, after the state of the first inline interface changes from the down state to the up state again, the second node will regenerate the first interface address of the first inline interface and transmit it to the first node. The first interface address alias and the regenerated first interface address.
另外,第一内联接口的第一接口地址也可能发生变化,这种情况下,第二节点也会重新生成第一内联接口的第一接口地址,并向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。In addition, the first interface address of the first inline interface may also change. In this case, the second node also regenerates the first interface address of the first inline interface and transmits the first interface address to the first node. The first interface address is aliased and the regenerated first interface address.
这种情况下,参见图5所示的工作流程示意图,本申请实施例公开的BGP会话建立方法中,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,还包括以下步骤:In this case, referring to the working flow diagram shown in FIG. 5, in the BGP session establishment method disclosed in the embodiment of the present application, after a BGP session is established between the second inline interface and the first inline interface, The following steps are also included:
步骤S31、所述第一节点再次接收到接口地址和接口地址别名之后,当所述接口地址别名与所述第二接口地址别名相同时,所述第一节点根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级。Step S31. After the first node receives the interface address and the interface address alias again, when the interface address alias is the same as the second interface address alias, the first node according to the current interaction data of the BGP session. Data parameter to determine whether the data priority of the current interaction data is high priority.
其中,所述数据参数包括数据流量和/或数据重要性。The data parameters include data traffic and / or data importance.
若第一节点再次接收到的接口地址别名与第二接口地址别名相匹配,则表明再次接收到的接口地址别名为第一接口地址别名,再次接收到的接口地址为第一内联接口的接口地址,并且表明在建立与第一内联接口的BGP会话之后,第一内联接口的状态可能发生变化,或者第一内联接口的第一接口地址发生了变化。据此,可以根据第一接口地址别名,确定与第一内联接口建立的BGP会话,进一步再根据该BGP会话当前交互数据的数据参数,判断当前交互数据的数据优先级是否为高优先级。If the interface address alias received again by the first node matches the second interface address alias, it indicates that the interface address alias received again is the first interface address alias, and the interface address received again is the interface of the first inline interface. Address and indicates that after the BGP session with the first inline interface is established, the state of the first inline interface may change, or the first interface address of the first inline interface may change. Based on this, the BGP session established with the first inline interface can be determined according to the first interface address alias, and further based on the data parameters of the current interactive data of the BGP session, it is determined whether the data priority of the current interactive data is high priority.
步骤S32、当所述数据优先级为高优先级时,所述第一节点保持所述BGP会话不变。Step S32: When the data priority is a high priority, the first node keeps the BGP session unchanged.
步骤S33、当所述数据优先级不是高优先级时,所述第一节点根据再次接收到的第一接口地址,重新在所述第二内联接口与所述第一内联接口之间建立BGP会话。Step S33: When the data priority is not high priority, the first node re-establishes between the second inline interface and the first inline interface according to the first interface address received again. BGP session.
本申请实施例中,可预先为数据设置不同的优先级,其中,通常设定两个优先级,即高优先级和低优先级,若当前交互数据的数据流量较大,和/或数据重要性较高,则确定当前交互数据为高优先级,若当前交互数据的数据流量较小,和/或数据重要性较低,则确定当前交互数据为低优先级。In the embodiment of the present application, different priorities may be set for the data in advance, wherein two priorities are usually set, that is, a high priority and a low priority. If the current interactive data has a large data flow, and / or the data is important If it is high, it is determined that the current interaction data is of high priority. If the data flow of the current interaction data is small and / or the data is of low importance, it is determined that the current interaction data is of low priority.
上述步骤中,若第一节点通过与第一内联接口建立的BGP会话所交互的数据较为重要,和/或数据流量较大,则设定数据优先级为高优先级,这种情况下,第一节点可保持当前已经与第一内联接口建立的BGP会话不变,以避免BGP会话中断,从而影响数据的交互。并且,还可以记录诊断信息,该诊断信息中记录该BGP会话的相关信息,以便后续进行问题定位。In the above steps, if the data exchanged by the first node through the BGP session established with the first inline interface is more important and / or the data traffic is large, the data priority is set to a high priority. In this case, The first node may keep the BGP session that has been established with the first inline interface unchanged to avoid interruption of the BGP session, thereby affecting data interaction. In addition, diagnostic information may also be recorded. The diagnostic information records related information of the BGP session, so that problem location can be performed later.
另外,若第二节点和第一节点之间当前进行交互的数据不重要和/或数据流较小,则确定数据优先级并非高优先级,这种情况下,第一节点可根据再次接收到接口地址,重新建立与第一内联接口的BGP会话,以保持对BGP会话的更新。In addition, if the data currently interacting between the second node and the first node is not important and / or the data flow is small, it is determined that the data priority is not high priority. In this case, the first node may The interface address, and re-establish the BGP session with the first inline interface to keep the BGP session updated.
在现有技术中,通过人工配置的方式创建各个节点之间的BGP会话,若其中一个节点中内联接口的接口地址发生变化,则需要重新配置该内联接口的接口地址,并且必须修改该节点的对端节点的配置,过程较为繁琐。而通过本申请公开的方案,在第一内联接口的第一接口地址发生变化之后,第二节点重新生成第一接口地址,并向第一节点传输第一接口地址别名和重新生成的第一接口地址。In the prior art, a BGP session between nodes is created by manual configuration. If the interface address of an inline interface in one of the nodes changes, the interface address of the inline interface needs to be reconfigured, and the interface address must be modified. The configuration of the peer node of the node is relatively tedious. With the solution disclosed in this application, after the first interface address of the first inline interface changes, the second node regenerates the first interface address, and transmits the first interface address alias and the regenerated first interface to the first node. interface address.
而第一节点在建立与第一内联接口的BGP会话之后,若再次接收到接口地址和接口地址别名,检测再次接收到的接口地址别名是否与第二接口地址别名相匹配,若相匹配,则表明再次接收到的接口地址别名为第一接口地址别名,再次接收到的接口地址为第一 内联接口的接口地址。这种情况下,第一节点根据与第一内联接口建立的BGP会话当前交互数据的数据参数,确定是否需要重新建立与第二节点之间的BGP会话。相对于现有技术,该方案重新进行配置,简化了操作,进一步节省了BGP会话建立所需的时间和人力,提高了BGP会话的建立效率。After the first node establishes a BGP session with the first inline interface, if the interface address and the interface address alias are received again, it is detected whether the received interface address alias matches the second interface address alias. If they match, It means that the interface address alias received again is the first interface address alias, and the interface address received again is the interface address of the first inline interface. In this case, the first node determines whether the BGP session with the second node needs to be re-established according to the data parameters of the current interaction data of the BGP session established with the first inline interface. Compared with the prior art, this solution reconfigures, simplifies operations, further saves time and labor required for BGP session establishment, and improves BGP session establishment efficiency.
另外,每次第一内联接口的状态发生变化,在第一内联接口的状态由down状态再次转变为up状态之后,第二节点也会重新向第一节点发送第一内联接口的接口地址和接口地址别名,这种情况下,第一节点能够在第一内联接口转变为up状态之后,再次在所述第二内联接口与所述第一内联接口之间建立BGP会话,以便在第一内联接口的状态转变为up状态之后,第一节点能够及时与第一内联接口建立BGP会话,保障数据的交互。In addition, every time the state of the first inline interface changes, after the state of the first inline interface changes from the down state to the up state again, the second node will also resend the interface of the first inline interface to the first node. Address and interface address alias, in this case, the first node can establish a BGP session between the second inline interface and the first inline interface again after the first inline interface transitions to the up state, So that after the state of the first inline interface changes to the up state, the first node can establish a BGP session with the first inline interface in time to ensure data interaction.
其中,第二节点向第一节点再次传输接口地址别名和重新生成的接口地址时,也可采用图4所示的RA报文进行传输,当然,也可以采用其他形式的报文,本申请实施例对此不作限定。When the second node transmits the interface address alias and the regenerated interface address to the first node again, the RA message shown in FIG. 4 may also be used for transmission. Of course, other types of messages may also be used. This application implements Examples do not limit this.
进一步的,在DCN的运行过程中,节点的自治系统号也可能发生变化。这种情况下,参见图6所示的工作流程示意图,在本申请实施例中,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,还包括:Further, during the operation of the DCN, the autonomous system number of the node may also change. In this case, referring to the working flow diagram shown in FIG. 6, in the embodiment of the present application, after the BGP session is established between the second inline interface and the first inline interface, the method further includes:
步骤S41、所述第一节点再次接收到所述第二节点传输的第一自治系统号之后,所述第一节点检测所述第二自治系统号与再次接收到的所述第一自治系统号是否相同。若否,执行步骤S42的操作,若是,执行步骤S43的操作。Step S41. After the first node receives the first autonomous system number transmitted by the second node again, the first node detects the second autonomous system number and the first autonomous system number received again. Is it the same. If not, perform the operation of step S42, and if so, perform the operation of step S43.
其中,第二节点在第一自治系统号发生变化之后,会向第一节点传输改变后的第一自治系统号。The second node transmits the changed first autonomous system number to the first node after the first autonomous system number changes.
另外,在向第一节点传输改变后的第一自治系统号时,通常需要同时传输第一接口地址别名,或者,同时传输第一接口地址,以便所述第一节点在接收到所述第一自治系统号后,根据同时传输的第一接口地址别名或第一接口地址确定接收到的第一自治系统号所对应的BGP会话。In addition, when transmitting the changed first autonomous system number to the first node, it is usually necessary to transmit the first interface address alias at the same time, or simultaneously transmit the first interface address so that the first node receives the first After the autonomous system number, the BGP session corresponding to the received first autonomous system number is determined according to the first interface address alias or the first interface address transmitted simultaneously.
步骤S42、第一节点保持所述BGP会话不变。Step S42: The first node keeps the BGP session unchanged.
步骤S43、当所述第二自治系统号与再次接收到的所述第一自治系统号相同时,所述第一节点根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性。若是,返回执行步骤S42的操作,若否,执行步骤S44的操作。Step S43: When the second autonomous system number is the same as the first autonomous system number received again, the first node judges the current interaction data according to the data parameters of the current interaction data of the BGP session. Whether the data priority is high priority, and the data parameters include data traffic and / or data importance. If yes, go back to step S42, if no, go to step S44.
本申请实施例中,可预先为数据设置不同的优先级,其中,通常设定两个优先级,即高优先级和低优先级,若当前交互数据的数据流量较大,和/或数据重要性较高,则确定当前交互数据为高优先级,若所述当前交互数据的数据流量较小,和/或数据重要性较低,则确定当前交互数据为低优先级。In the embodiment of the present application, different priorities may be set for the data in advance, wherein two priorities are usually set, that is, a high priority and a low priority. If the current interactive data has a large data flow, and / or the data is important If it is high, it is determined that the current interaction data has a high priority. If the data flow of the current interaction data is small and / or the data is of low importance, it is determined that the current interaction data is a low priority.
步骤S44、当所述数据优先级不是高优先级时,所述第一节点中断所述BGP会话。Step S44: When the data priority is not a high priority, the first node interrupts the BGP session.
DCN中各个节点在运行过程中,自治系统号可能会发生变化。若第二节点与第一节点分属于不同的自治系统,在第二节点的第一自治系统号发生变化之后,第二节点还会向第一节点传输变化后的第一自治系统号。During the operation of each node in the DCN, the autonomous system number may change. If the second node and the first node belong to different autonomous systems, after the first autonomous system number of the second node changes, the second node also transmits the changed first autonomous system number to the first node.
这种情况下,第一节点若在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,再次接收到所述第二节点传输的第一自治系统号,则检测自身的第二自治系统号与再次接收到的所述第一自治系统号是否相同。其中,若通过检测,确定第二自治系统号与再次接收到的第一自治系统号不同,则所述第一节点保持所述BGP会话不变。In this case, if the first node establishes a BGP session between the second inline interface and the first inline interface, and then receives the first autonomous system number transmitted by the second node again, it detects Whether its own second autonomous system number is the same as the first autonomous system number received again. If it is determined through inspection that the second autonomous system number is different from the first autonomous system number received again, the first node keeps the BGP session unchanged.
另外,若确定所述第二自治系统号与再次接收到的第一自治系统号相同,则表明在当前情况下,为第二节点或第一节点分配的自治系统号可能出现错误,这种情况下,第一节点会根据业务需求,确定处理措施,其中,若第一节点通过与第一内联接口建立的BGP会话所交互的数据较为重要,和/或数据流量较大,则设定数据优先级为高优先级,这种情况下,第一节点可保持当前已经与第一内联接口建立的BGP会话不变,以避免BGP会话中断,从而影响数据的交互。并且,还可以记录诊断信息,该诊断信息中记录该BGP会话的相关信息,以便后续进行问题定位。In addition, if it is determined that the second autonomous system number is the same as the first autonomous system number received again, it indicates that in the current situation, there may be an error in the autonomous system number assigned to the second node or the first node. Next, the first node will determine the processing measures according to the business requirements. Among them, if the data exchanged by the first node through the BGP session established with the first inline interface is more important, and / or the data traffic is large, the data is set. The priority is high priority. In this case, the first node can keep the BGP session that has been established with the first inline interface unchanged, so as to avoid interruption of the BGP session and affect data interaction. In addition, diagnostic information may also be recorded. The diagnostic information records related information of the BGP session, so that problem location can be performed later.
另外,若第二节点和第一节点之间当前进行交互的数据不重要和/或数据流较小,则确定数据优先级并非高优先级,这种情况下,第一节点可根据再次接收到接口地址,重新在所述第二内联接口与所述第一内联接口之间建立BGP会话,以保持对BGP会话的更新。In addition, if the data currently interacting between the second node and the first node is not important and / or the data flow is small, it is determined that the data priority is not high priority. In this case, the first node may An interface address to re-establish a BGP session between the second inline interface and the first inline interface to keep the BGP session updated.
例如,若通过BGP会话,在当前进行交互的数据较为重要,和/或数据流量较大,即使第一自治系统号与第二自治系统号相同,为了保障数据能够交互,第一节点仍可保持已经与第二节点建立的BGP会话不变,进一步的,第一节点还可以记录诊断信息,该诊断信息中记录该BGP会话的相关信息,以便后续进行问题定位;或者,若第一内联接口和第一节点之间当前进行交互的数据不重要和/或数据流较小,第一节点可断开与第一内联接口之间的BGP会话,避免自治系统号分配错误对数据交互过程中带来的影响。For example, if a BGP session is used, the data that is currently interacting is more important and / or the data traffic is large. Even if the first autonomous system number is the same as the second autonomous system number, in order to ensure that the data can interact, the first node can still maintain The BGP session that has been established with the second node remains unchanged. Further, the first node can also record diagnostic information. The diagnostic information records relevant information about the BGP session for subsequent problem location; or, if the first inline interface The data currently interacting with the first node is not important and / or the data flow is small. The first node can disconnect the BGP session with the first inline interface to avoid the error of autonomous system number assignment during data interaction. The impact.
另外,在某些应用场景下,无需对BGP会话进行区分。例如,若第二节点中的第三内联接口只需要与第一节点中的第二内联接口建立一个BGP会话,因此无需对第三内联接口与第二内联接口之间的BGP会话进行区分。这种情况下,本申请还公开另一实施例,相对于上述实施例来说,本申请的实施例还包括以下步骤:In addition, in some application scenarios, it is not necessary to distinguish BGP sessions. For example, if the third inline interface in the second node only needs to establish a BGP session with the second inline interface in the first node, there is no need to establish a BGP session between the third inline interface and the second inline interface. Make a distinction. In this case, this application also discloses another embodiment. Compared with the above embodiment, the embodiment of this application further includes the following steps:
首先,所述第一节点接收来自于所述第二节点的第三内联接口的第三接口地址。First, the first node receives a third interface address from a third inline interface of the second node.
然后,所述第一节点检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名。当确定根据地址自动生成机制,生成所述第二接口地址,并获取所述第二接口地址别名时,所述第一节点根据所述第三接口地址,在所述第二内联接口与所述第三内联接口之间建立BGP会话。Then, the first node detects whether to generate a second interface address of its second inline interface according to the automatic address generation mechanism, and whether to obtain a second interface address alias. When it is determined that the second interface address is generated according to the automatic address generation mechanism, and the second interface address alias is obtained, the first node according to the third interface address, in the second inline interface and the The establishment of a BGP session between the third inline interfaces is described.
其中,第一节点在接收到来自第二节点的报文后,通常先检测该报文中是否加载接口地址别名,若加载有接口地址别名,则执行步骤S12至步骤S13的操作。另外,若经过检测,确定接收到的报文中未加载有接口地址别名,再执行本申请实施例的操作,即若第一节点确定接收到的报文中未加载接口地址别名,只加载了第三内联接口的第三接口 地址,则执行检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名的操作。After receiving the message from the second node, the first node usually detects whether an interface address alias is loaded in the message. If an interface address alias is loaded, the operations in steps S12 to S13 are performed. In addition, if it is determined that the interface address alias is not loaded in the received message, then the operations of the embodiment of the present application are performed, that is, if the first node determines that the interface address alias is not loaded in the received message, only the interface address alias is loaded. The third interface address of the third inline interface performs an operation of detecting whether to generate the second interface address of the second inline interface of itself according to the automatic address generation mechanism, and whether to obtain an alias of the second interface address.
若第二节点通过图4所示的RA报文向所述第一节点传输信息,则第二节点检测到“alias-name”字段中未加载字节时,则可确定接收到的报文中未加载有接口地址别名。If the second node transmits information to the first node through the RA message shown in FIG. 4, when the second node detects that no bytes are loaded in the "alias-name" field, it may determine that the received message is in the received message. No interface address alias is loaded.
如果第二节点的第三内联接口只与第一节点中的第二内联接口建立一个BGP会话,由于无需对BGP会话进行区分,这种情况下,第二节点在生成第三内联接口的第三接口地址后,就将该第三接口地址传输至第一节点,而无需传输第三内联接口的接口地址别名。If the third inline interface of the second node only establishes a BGP session with the second inline interface of the first node, since there is no need to distinguish the BGP session, in this case, the second node is generating the third inline interface After transmitting the third interface address, the third interface address is transmitted to the first node without transmitting the interface address alias of the third inline interface.
这种情况下,若第一节点接收到第一内联接口的接口地址,而并未接收到第一接口地址别名的情况下,第一节点会检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取所述第二内联接口的第二接口地址别名。In this case, if the first node receives the interface address of the first inline interface, but does not receive the first interface address alias, the first node will detect whether to generate its own first address according to the automatic address generation mechanism. A second interface address of the two inline interfaces, and whether to obtain a second interface address alias of the second inline interface.
若第一节点确定根据地址自动生成机制,生成所述第二内联接口的第二接口地址,以及获取第二接口地址别名,则表明第一节点当前能够根据第一内联接口的第一接口地址,建立与第一内联接口之间的BGP会话。If the first node determines to generate the second interface address of the second inline interface according to the automatic address generation mechanism, and obtains the second interface address alias, it indicates that the first node can currently use the first interface of the first inline interface. Address to establish a BGP session with the first inline interface.
另外,若所述第一节点未根据地址自动生成机制,生成第二内联接口的第二接口地址,或者,未获取所述第二内联接口的第二接口地址别名,或者,所述第一节点既未根据地址自动生成机制,生成第二内联接口的第二接口地址,也未获取第二内联接口的第二接口地址别名,则表明第一节点当前不适合建立与第一内联接口的BGP会话,则暂时不再建立与第三内联接口的BGP会话。In addition, if the first node does not generate the second interface address of the second inline interface according to the automatic address generation mechanism, or the second interface address alias of the second inline interface is not obtained, or the first If a node neither generates the second interface address of the second inline interface nor obtains the second interface address alias of the second inline interface according to the automatic address generation mechanism, it indicates that the first node is currently unsuitable to establish a connection with the first internal interface. For a BGP session with an interconnected interface, a BGP session with a third inline interface is no longer established.
在本申请实施例中,第二节点能够根据地址自动生成机制,生成自身的第一内联接口的接口地址。其中,所述第一内联接口的接口地址可以为遵循IPv6的LLA或ULA。其中,LLA为前缀为“FE80::/10”的IPv6单播地址,在本地链路上唯一,ULA为前缀为“FC00::/7”的IPv6单播地址,在本地网络范围内唯一。LLA和ULA均支持地址自动生成机制,也就是说,DCN中的节点能够根据地址自动生成机制,主动生成LLA或ULA。In the embodiment of the present application, the second node can generate an interface address of the first inline interface of the second node according to an automatic address generation mechanism. The interface address of the first inline interface may be an LLA or ULA that complies with IPv6. Among them, LLA is an IPv6 unicast address with the prefix "FE80 :: / 10", which is unique on the local link, and ULA is an IPv6 unicast address with the prefix "FC00 :: / 7", which is unique within the local network. Both LLA and ULA support the automatic address generation mechanism, that is, the nodes in the DCN can actively generate LLA or ULA according to the automatic address generation mechanism.
进一步的,在通过RFC 4193文件定义的算法自动生成的ULA,往往具有极低的冲突概率,因此,第二节点在应用本申请实施例公开的应用于DCN的BGP会话建立方法时,所应用的接口地址可优先选用通过RFC 4193文件定义的算法自动生成的ULA。Further, the ULA automatically generated by the algorithm defined in the RFC 4193 file often has a very low collision probability. Therefore, when the second node applies the BGP session establishment method applied to DCN disclosed in the embodiments of this application, The interface address can be preferentially selected from the ULA automatically generated by the algorithm defined in the RFC 4193 file.
当然,第二节点所应用的接口地址还可以为其他支持地址自动生成机制的地址,本申请实施例对此不做限定。Of course, the interface address applied by the second node may also be another address that supports an automatic address generation mechanism, which is not limited in this embodiment of the present application.
相应的,在本申请另一实施例中,公开一种发送接口地址和别名的方法,该方法应用于数据中心网络DCN的底层网络Underlay network中,所述DCN的Underlay network包括第一节点和第二节点。参见图7所示的工作流程示意图,该方法包括:Correspondingly, in another embodiment of the present application, a method for transmitting an interface address and an alias is disclosed. The method is applied to an underlying network Underlay network of a data center network DCN. The Underlay network of the DCN includes a first node and a first node. Two nodes. Referring to the schematic diagram of the workflow shown in FIG. 7, the method includes:
步骤S51、所述第二节点根据地址自动生成机制,生成自身的第一内联接口的第一接口地址。Step S51: The second node generates a first interface address of a first inline interface of the second node according to an automatic address generation mechanism.
其中,第二节点自动生成的第一内联接口的接口地址,可以为遵循IPv6的LLA或ULA。当然,还可以采用其他能够根据地址自动生成机制所生成的接口地址,本申请实施例对此不做限定。The interface address of the first inline interface automatically generated by the second node may be an LLA or ULA that complies with IPv6. Of course, other interface addresses that can be generated according to the automatic address generation mechanism may also be used, which is not limited in the embodiment of the present application.
步骤S52、所述第二节点获取所述第一内联接口的第一接口地址别名。Step S52: The second node obtains a first interface address alias of the first inline interface.
其中,所述第一接口地址的别名,即为所述第一接口地址别名。一个节点可通过自身的同一内联接口与同一个对端节点的不同内联接口建立多个BGP会话,并且,还可以通过生成多个接口地址的方式,与对端节点的同一内联接口建立多个BGP会话。其中,所述接口地址别名在具有邻居关系的两个节点之间具有唯一性,这种情况下,接口地址别名能够区分各个接口地址,进一步区分各个BGP会话。The alias of the first interface address is the alias of the first interface address. A node can establish multiple BGP sessions with different inline interfaces of the same peer node through the same inline interface of itself, and can also establish multiple interface addresses with the same inline interface of the peer node by generating multiple interface addresses. Multiple BGP sessions. The interface address alias is unique between two nodes having a neighbor relationship. In this case, the interface address alias can distinguish each interface address and further distinguish each BGP session.
本申请实施例中,可以预先为第一内联接口配置第一接口地址别名。这种情况下,生成第一内联接口的第一接口地址后,则可以获取预先配置的第一接口地址别名。In the embodiment of the present application, a first interface address alias may be configured for the first inline interface in advance. In this case, after the first interface address of the first inline interface is generated, a pre-configured first interface address alias can be obtained.
步骤S53、所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名。Step S53: The second node transmits the first interface address and the first interface address alias to the first node.
其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
在本申请实施例中,若第一节点中的第二内联接口需要与第一内联接口建立BGP会话,则预先为第二内联接口配置第二接口地址别名,并且,在配置时使所述第二接口地址别名与第一接口地址别名相匹配。第一节点在接收到第一内联接口的第一接口地址和第一接口地址别名之后,检测第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,若所述第二接口地址别名与所述第一接口地址别名相匹配,所述第一节点根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话。In the embodiment of the present application, if the second inline interface in the first node needs to establish a BGP session with the first inline interface, a second interface address alias is configured for the second inline interface in advance, and, during configuration, the The second interface address alias matches the first interface address alias. After receiving the first interface address and the first interface address alias of the first inline interface, the first node detects whether the second interface address alias of the second inline interface matches the first interface address alias. The second interface address alias matches the first interface address alias, and the first node establishes BGP between the second inline interface and the first inline interface according to the first interface address. Conversation.
通过现有技术建立BGP会话时,需要由技术人员人工为DCN底层中各个节点自身的内联接口配置自身的接口地址,并且还需要由技术人员分别为各个节点人工配置对端节点的内联接口的接口地址,因此需要进行大量的配置操作,导致BGP会话的建立过程较为繁琐,并且耗费大量的时间和人力。When establishing a BGP session through the existing technology, a technician needs to manually configure its own interface address for the inline interface of each node in the bottom layer of the DCN, and a technician must manually configure the inline interface of the peer node for each node. Therefore, a large number of configuration operations are required, which leads to a tedious process of establishing a BGP session and consumes a lot of time and labor.
而本申请实施例中,第一节点能够接收第二节点传输的第一内联接口的第一接口地址和第一接口地址别名,并检测预先为第二内联接口配置的第二接口地址别名是否与第一接口第一地址别名相匹配,若匹配,则第一节点根据接收到的第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话。这种情况下,只需为第二内联接口配置与第一内联接口相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。In the embodiment of the present application, the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect the second interface address alias configured for the second inline interface in advance. Whether it matches the first address alias of the first interface, and if it matches, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, you only need to configure an interface address alias for the second inline interface that matches the first inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
进一步的,若通过现有技术建立BGP会话,由于现有技术采用的是人工配置的方式,配置过程中极易出现错误,这种情况下,各个节点的接口地址或对端节点的接口地址极有可能配置错误,从而导致BGP会话的建立发生错误。Further, if a BGP session is established through the existing technology, since the prior art uses a manual configuration method, errors are very likely to occur during the configuration process. In this case, the interface address of each node or the interface address of the peer node is extremely It is possible that the configuration is incorrect, which may cause an error in the establishment of the BGP session.
而通过本申请实施例公开的方案,各个节点主动生成自身接口的接口地址,并将其传输至对端节点,无需对接口地址进行人工配置,配置出错的可能性大大减少,能够提高BGP会话的准确度。With the solution disclosed in the embodiment of the present application, each node actively generates the interface address of its own interface and transmits it to the peer node, without the need to manually configure the interface address. The possibility of configuration errors is greatly reduced, which can improve the BGP session. Accuracy.
另外,第一节点和第二节点可属于同一个自治系统,并且,还可以分属于不同的自治系统。若第一节点和第二节点属于同一个自治系统,则第一节点和第二节点之间建立的BGP会话为内部边界网关协议(Internal Border Gateway Protocol,IBGP)会话。进一步的,若第一节点和第二节点分属于不同的自治系统,则第一节点和第二节点之间建立的BGP会话为外部边界网关协议(External Border Gateway Protocol,EBGP)会话。In addition, the first node and the second node may belong to the same autonomous system, and may also belong to different autonomous systems. If the first node and the second node belong to the same autonomous system, the BGP session established between the first node and the second node is an Internal Border Gateway Protocol (Internal Border Gateway Protocol) session. Further, if the first node and the second node belong to different autonomous systems, the BGP session established between the first node and the second node is an External Border Gateway Protocol (External Border Gateway Protocol) session.
这种情况下,当所述第一节点和第二节点分属于不同的自治系统时,本申请实施例公开的应用于DCN的BGP会话建立方法,还包括:In this case, when the first node and the second node belong to different autonomous systems, the method for establishing a BGP session applied to DCN disclosed in the embodiments of the present application further includes:
所述第二节点获取自身所属的第一自治系统的第一自治系统号;Obtaining, by the second node, a first autonomous system number of a first autonomous system to which the second node belongs;
所述第二节点向所述第一节点传输所述第一自治系统号。The second node transmits the first autonomous system number to the first node.
在实际应用过程中,第一节点接收第一接口地址和第一接口地址的别名的操作,与接收第一自治系统号的操作没有严格的时间先后顺序。例如,还可以先接收第一自治系统号,再接收第一接口地址和第一接口地址别名。或者,若第二节点将第一自治系统号、第一接口地址和第一接口地址别名加载在同一报文,第一节点还可以同时接收第一自治系统号、第一接口地址和第一接口地址别名。In the actual application process, the operation of the first node receiving the first interface address and the alias of the first interface address is not in strict sequence with the operation of receiving the first autonomous system number. For example, the first autonomous system number may be received first, and then the first interface address and the first interface address alias may be received. Alternatively, if the second node loads the first autonomous system number, the first interface address, and the first interface address alias in the same packet, the first node may also receive the first autonomous system number, the first interface address, and the first interface at the same time. Address alias.
其中,若第二节点将第一自治系统号、第一接口地址和第一接口地址别名加载在同一报文,通过同一报文向第一节点传输上述信息,该报文可以为扩展后的路由器通告(Router Advertisement,RA)报文,该RA报文的格式如图4所示。Wherein, if the second node loads the first autonomous system number, the first interface address, and the first interface address alias into the same message, and transmits the above information to the first node through the same message, the message may be an extended router. An advertisement (Router, Advertisement, RA) message. The format of the RA message is shown in Figure 4.
在第二节点向第一节点传输第一接口地址和第一接口地址别名之后,所述第二节点的第一内联接口的状态可能会发生变化,并且所述第一接口地址也可能发生变化。这种情况下,在本申请实施例公开的应用于DCN的BGP会话建立方法中,在所述第二节点向DCN的底层网络中的第一节点传输所述第一接口地址和所述第一接口地址别名之后,还包括:After the second node transmits the first interface address and the first interface address alias to the first node, the state of the first inline interface of the second node may change, and the first interface address may also change . In this case, in the method for establishing a BGP session applied to DCN disclosed in the embodiments of the present application, the second node transmits the first interface address and the first node to a first node in an underlying network of the DCN. After the interface address alias, it also includes:
当所述第一内联接口的状态发生变化,和/或所述第一接口地址发生变化时,所述第二节点重新生成所述第一内联接口的第一接口地址,并向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。When the state of the first inline interface changes, and / or the first interface address changes, the second node regenerates the first interface address of the first inline interface, and sends the first interface address to the first inline interface. The first node transmits the first interface address alias and the regenerated first interface address.
进一步的,在DCN的运行过程中,节点的自治系统号也可能发生变化。这种情况下,在所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名之后,还包括:Further, during the operation of the DCN, the autonomous system number of the node may also change. In this case, after the second node transmits the first interface address and the first interface address alias to the first node, the method further includes:
当所述第一自治系统号发生变化时,所述第二节点向述第一节点传输变化后的第一自治系统号。When the first autonomous system number changes, the second node transmits the changed first autonomous system number to the first node.
另外,在本申请实施例中,还包括:所述第二节点根据地址自动生成机制,生成自身的第三内联接口的第三接口地址,并向所述第一节点传输所述第三接口地址。In addition, in the embodiment of the present application, the method further includes: the second node generates a third interface address of a third inline interface of the second node according to an automatic address generation mechanism, and transmits the third interface to the first node. address.
另外,在某些应用场景下,无需对BGP会话进行区分。例如,若第二节点中的第三内联接口只需要与第一节点中的第二内联接口建立一个BGP会话,因此无需对第三内联接口与第二内联接口之间的BGP会话进行区分。In addition, in some application scenarios, it is not necessary to distinguish BGP sessions. For example, if the third inline interface in the second node only needs to establish a BGP session with the second inline interface in the first node, there is no need to establish a BGP session between the third inline interface and the second inline interface. Make a distinction.
这种情况下,第二节点接收到第三内联接口的第三接口地址之后,检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名。当确定根据地址自动生成机制,生成所述第二接口地址,并获取所述第二接口地址别名时,所述第一节点根据所述第三接口地址,在所述第二内联接口与所述第三内联接口之间建立BGP会话。In this case, after receiving the third interface address of the third inline interface, the second node detects whether to generate the second interface address of its second inline interface according to the automatic address generation mechanism, and whether to obtain the second interface. Address alias. When it is determined that the second interface address is generated according to the automatic address generation mechanism, and the second interface address alias is obtained, the first node according to the third interface address, in the second inline interface and the The establishment of a BGP session between the third inline interfaces is described.
相应的,在本申请另一实施例中,公开一种网络设备,用作第一节点。该网络设备应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和第二节点。Accordingly, in another embodiment of the present application, a network device is disclosed and used as the first node. The network device is applied to a lower layer network of a data center network DCN, and the lower layer network of the DCN includes a first node and a second node.
在本申请实施例中,所述第一节点可以为DCN的Underlay network中的leaf节点,这种情况下,与所述第一节点建立BGP会话的第二节点即为DCN的Underlay network中的spine节点。另外,所述第一节点可以为DCN的Underlay network中的spine节点,这种情况下,与所述第一节点建立BGP会话的第二节点即为DCN的Underlay network中的leaf节点,本申请实施例对此不做限定。In the embodiment of the present application, the first node may be a leaf node in an Underlay network of the DCN. In this case, a second node that establishes a BGP session with the first node is a spine in the Underlay network of the DCN. node. In addition, the first node may be a spine node in an Underlay network of the DCN. In this case, a second node that establishes a BGP session with the first node is a leaf node in the Underlay network of the DCN. This application implements Examples do not limit this.
参见图8所示的结构示意图,本申请实施例公开的网络设备包括:收发单元110和处理单元120。Referring to the schematic structural diagram shown in FIG. 8, the network device disclosed in the embodiment of the present application includes a transceiver unit 110 and a processing unit 120.
其中,所述收发单元110,用于接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;The transceiver unit 110 is configured to receive a first interface address and a first interface address alias from a first inline interface of the second node, where the first inline interface is the second node's Inline interface
所述处理单元120,用于检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,并且,当所述第二接口地址别名与所述第一接口地址别名相匹配时,根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话;The processing unit 120 is configured to detect whether a second interface address alias of a second inline interface of the second interface address alias matches the first interface address alias, and when the second interface address alias matches the first interface, When the address alias matches, a BGP session is established between the second inline interface and the first inline interface according to the first interface address;
其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
第二节点能够根据地址自动生成机制,自动生成自身的第一内联接口的第一接口地址,也就是说,第二节点能够自动生成第一内联接口的第一接口地址。并且,在自动生成第一接口地址之后,第二节点会将第一接口地址和第一接口地址的别名(即第一接口地址别名)传输至第一节点。The second node can automatically generate the first interface address of the first inline interface according to the automatic address generation mechanism, that is, the second node can automatically generate the first interface address of the first inline interface. In addition, after the first interface address is automatically generated, the second node transmits the first interface address and the alias of the first interface address (that is, the first interface address alias) to the first node.
另外,若需要在所述第二内联接口与所述第一内联接口之间建立BGP会话,则预先为第二内联接口配置第二接口地址别名,并且,在配置时使所述第二接口地址别名与第一接口地址别名相匹配。In addition, if a BGP session needs to be established between the second inline interface and the first inline interface, a second interface address alias is configured for the second inline interface in advance, and the first The second interface address alias matches the first interface address alias.
这种情况下,第一节点在接收到第一接口地址和第一接口地址别名后,通过步骤S12进行检测,若检测到第二接口地址别名与第一接口地址别名相匹配,则表明当前需要在所述第二内联接口与所述第一内联接口之间建立BGP会话。In this case, after receiving the first interface address and the first interface address alias, the first node performs detection through step S12. If it is detected that the second interface address alias matches the first interface address alias, it indicates that it is currently required A BGP session is established between the second inline interface and the first inline interface.
通过本申请实施例公开的方案,第一节点能够接收第二节点传输的第一内联接口的第一接口地址和第一接口地址别名,并检测第二内联接口配置的第二接口地址别名是否与第一接口地址别名相匹配,若匹配,则第一节点根据接收到的第一接口地址,建立第二内联接口与第一内联接口的BGP会话。这种情况下,只需为第一内联接口配置第一接口地址别名,并且为第二内联接口配置与第一接口地址别名相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。Through the solution disclosed in the embodiment of the present application, the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect the second interface address alias configured by the second inline interface. Whether it matches the alias of the first interface address, and if it matches, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
进一步的,在本申请实施例公开的BGP会话建立装置中,当所述第一节点和第二节点分属于不同的自治系统时,所述收发单元,还用于接收所述第二节点所属的第一自治系统的第一自治系统号;Further, in the BGP session establishment apparatus disclosed in the embodiments of the present application, when the first node and the second node belong to different autonomous systems, the transceiver unit is further configured to receive the second node to which the second node belongs. The first autonomous system number of the first autonomous system;
所述处理单元执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作,包括:The performing, by the processing unit, the operation of detecting whether a second interface address alias of a second inline interface of the processing unit matches the first interface address alias, includes:
检测自身所属的第二自治系统的第二自治系统号与所述第一自治系统号是否相同;Detecting whether the second autonomous system number of the second autonomous system to which it belongs is the same as the first autonomous system number;
当所述第二自治系统号与所述第一自治系统号不同时,执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作;When the second autonomous system number is different from the first autonomous system number, performing an operation of detecting whether a second interface address alias of a second inline interface of the second autonomous system matches the first interface address alias;
当所述第二自治系统号与所述第一自治系统号相同时,根据待交互数据的数据参数,判断所述待交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number, determine whether the data priority of the data to be interacted is a high priority according to the data parameter of the data to be interacted, and the data parameter includes data traffic And / or data importance;
当所述数据优先级为高优先级时,执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作。When the data priority is high priority, performing the operation of detecting whether a second interface address alias of a second inline interface of the data interface matches the first interface address alias.
在DCN的Underlay network中,每个自治系统均会被分配一个DCN内唯一的号码,该号码即为自治系统号(Autonomous System Number,ASN)。在本申请实施例中,将第二节点所属的自治系统称为第一自治系统,并将第一自治系统的号码称为第一自治系统号。In DCN's Underlay network, each autonomous system will be assigned a unique number within the DCN, which is the Autonomous System Number (ASN). In the embodiment of the present application, the autonomous system to which the second node belongs is referred to as a first autonomous system, and the number of the first autonomous system is referred to as a first autonomous system number.
本申请实施例中,若确定第二自治系统号与所述第一自治系统号相同,则表明为第一自治系统和第二自治系统分配号码的过程中可能出现错误,这种情况下,第一节点会根据待交互数据的数据优先级,确定处理措施。其中,若待交互数据的数据流量较大,和/或数据重要性较高,则确定待交互数据为高优先级,并继续执行建立BGP会话的后续操作。这种情况下,在建立BGP会话的同时,还可以记录该BGP会话的相关信息,将其作为诊断信息,以便后续进行问题定位。In the embodiment of the present application, if it is determined that the second autonomous system number is the same as the first autonomous system number, it indicates that an error may occur in the process of assigning numbers to the first autonomous system and the second autonomous system. In this case, the first A node will determine the processing measures according to the data priority of the data to be exchanged. Wherein, if the data flow of the data to be exchanged is large and / or the data is of high importance, it is determined that the data to be exchanged is of high priority, and the subsequent operations of establishing a BGP session are continued. In this case, when a BGP session is established, related information about the BGP session can also be recorded and used as diagnostic information for subsequent problem location.
若待交互数据的数据流量较小,和/或数据重要性较低,则确定待交互数据并非高优先级,为了避免影响后续的数据交互,第一节点终止BGP会话的建立操作,不再建立与所述第二节点的BGP会话。If the data flow of the data to be exchanged is small and / or the data is of low importance, it is determined that the data to be exchanged is not a high priority. In order to avoid affecting subsequent data interactions, the first node terminates the establishment of the BGP session and does not establish A BGP session with the second node.
进一步的,在本申请实施例公开的网络设备中,所述处理单元,还用于在所述第二内联接口与所述第一内联接口之间建立BGP会话,并且再次接收到接口地址和接口地址别名之后,当所述接口地址别名与所述第二接口地址别名相匹配时,根据所述BGP会话 当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;Further, in the network device disclosed in the embodiments of the present application, the processing unit is further configured to establish a BGP session between the second inline interface and the first inline interface, and receive the interface address again. After the interface address alias, when the interface address alias matches the second interface address alias, determine whether the data priority of the current interaction data is high priority according to the data parameters of the current interaction data of the BGP session Level, the data parameters include data traffic and / or data importance;
当所述数据优先级为高优先级时,所述处理单元还用于保持所述BGP会话不变;When the data priority is high priority, the processing unit is further configured to keep the BGP session unchanged;
当所述数据优先级不是高优先级时,所述处理单元还用于根据再次接收到的第一接口地址,重新在所述第二内联接口与所述第一内联接口之间建立BGP会话。When the data priority is not a high priority, the processing unit is further configured to re-establish BGP between the second inline interface and the first inline interface according to the first interface address received again. Conversation.
进一步的,在本申请实施例公开的网络设备中,所述处理单元,还用于在所述第二内联接口与所述第一内联接口之间建立BGP会话,并且再次接收到所述第二节点传输的第一自治系统号之后,检测所述第二自治系统号与再次接收到的所述第一自治系统号是否相同;Further, in the network device disclosed in the embodiments of the present application, the processing unit is further configured to establish a BGP session between the second inline interface and the first inline interface, and receive the BGP session again. After the first autonomous system number transmitted by the second node, detecting whether the second autonomous system number is the same as the first autonomous system number received again;
当所述第二自治系统号与再次接收到的所述第一自治系统号不同时,所述处理单元还用于保持所述BGP会话不变;When the second autonomous system number is different from the first autonomous system number received again, the processing unit is further configured to keep the BGP session unchanged;
当所述第二自治系统号与再次接收到的所述第一自治系统号相同时,所述处理单元还用于根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number received again, the processing unit is further configured to determine data of the current interaction data according to data parameters of the current interaction data of the BGP session. Whether the priority is high priority, and the data parameters include data traffic and / or data importance;
当所述数据优先级为高优先级时,所述处理单元还用于保持所述BGP会话不变;When the data priority is high priority, the processing unit is further configured to keep the BGP session unchanged;
当所述数据优先级不是高优先级时,所述处理单元还用于中断所述BGP会话。When the data priority is not a high priority, the processing unit is further configured to interrupt the BGP session.
进一步的,在本申请实施例公开的网络设备中,所述收发单元,还用于接收来自于所述第二节点的第三内联接口的第三接口地址;Further, in the network device disclosed in the embodiments of the present application, the transceiver unit is further configured to receive a third interface address from a third inline interface of the second node;
所述处理单元,还用于检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名;The processing unit is further configured to detect whether to generate a second interface address of its second inline interface according to an automatic address generation mechanism, and whether to obtain a second interface address alias;
当确定根据地址自动生成机制,生成所述第二接口地址,并获取所述第二接口地址别名时,所述处理单元还用于触发所述BGP会话建立模块,以使所述BGP会话建立模块根据所述第三接口地址,在所述第二内联接口与所述第三内联接口之间建立BGP会话。When it is determined that the second interface address is generated according to the automatic address generation mechanism, and the second interface address alias is obtained, the processing unit is further configured to trigger the BGP session establishment module to enable the BGP session establishment module Establishing a BGP session between the second inline interface and the third inline interface according to the third interface address.
另外,在某些应用场景下,无需对BGP会话进行区分。例如,若第二节点中的第三内联接口只需要与第一节点中的第二内联接口建立一个BGP会话,因此无需对第三内联接口与第二内联接口之间的BGP会话进行区分。这种情况下,可通过上述实施例建立第二内联接口与所述第三内联接口的BGP会话。In addition, in some application scenarios, it is not necessary to distinguish BGP sessions. For example, if the third inline interface in the second node only needs to establish a BGP session with the second inline interface in the first node, there is no need to establish a BGP session between the third inline interface and the second inline interface. Make a distinction. In this case, a BGP session between the second inline interface and the third inline interface may be established through the foregoing embodiment.
相应的,在本申请另一实施例中,还公开一种网络设备,用作第二节点。该网络设备应用于数据中心网络DCN的底层网络Underlay network中,所述DCN的Underlay network包括第一节点和第二节点。Correspondingly, in another embodiment of the present application, a network device is also disclosed and used as the second node. The network device is applied to an underlay network of a data center network DCN. The underlay network of the DCN includes a first node and a second node.
参见图9所示的结构示意图,本申请实施例公开的网络设备包括:处理单元210和收发单元220。Referring to the schematic structural diagram shown in FIG. 9, the network device disclosed in the embodiment of the present application includes a processing unit 210 and a transceiver unit 220.
其中,所述处理单元210,用于根据地址自动生成机制,生成自身的第一内联接口的第一接口地址,并获取所述第一内联接口的第一接口地址别名;Wherein, the processing unit 210 is configured to generate a first interface address of a first inline interface of itself according to an automatic address generation mechanism, and obtain a first interface address alias of the first inline interface;
所述收发单元220,用于向所述第一节点传输所述第一接口地址和所述第一接口地址别名;The transceiver unit 220 is configured to transmit the first interface address and the first interface address alias to the first node;
其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
第二节点自动生成的第一内联接口的接口地址,可以为遵循IPv6的LLA或ULA。当然,还可以采用其他能够根据地址自动生成机制所生成的接口地址,本申请实施例对此不做限定。The interface address of the first inline interface automatically generated by the second node may be an LLA or ULA that complies with IPv6. Of course, other interface addresses that can be generated according to the automatic address generation mechanism may also be used, which is not limited in the embodiment of the present application.
本申请实施例公开的网络设备,只需为第二内联接口配置与第一内联接口相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。The network device disclosed in the embodiments of the present application only needs to configure an interface address alias for the second inline interface that matches the first inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
进一步的,在本申请实施例公开的网络设备中,当所述第一节点和第二节点分属于不同的自治系统时,所述处理单元,还用于获取自身所属的第一自治系统的第一自治系统号;所述收发单元,还用于向所述第一节点传输所述第一自治系统号。Further, in the network device disclosed in the embodiments of the present application, when the first node and the second node belong to different autonomous systems, the processing unit is further configured to obtain a first autonomous system to which the first node belongs. An autonomous system number; the transceiver unit is further configured to transmit the first autonomous system number to the first node.
进一步的,在本申请实施例公开的网络设备中,在所述第二节点向所述第一节点传输所述第一自治系统号之后,当所述第一内联接口的状态发生变化,和/或所述第一接口地址发生变化时,所述处理单元还用于重新生成所述第一内联接口的第一接口地址;Further, in the network device disclosed in the embodiments of the present application, after the second node transmits the first autonomous system number to the first node, when the state of the first inline interface changes, and And / or when the first interface address changes, the processing unit is further configured to regenerate the first interface address of the first inline interface;
所述收发单元,还用于向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。The transceiver unit is further configured to transmit the first interface address alias and the regenerated first interface address to the first node.
进一步的,在本申请实施例公开的网络设备中,在所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名之后,所述收发单元还用于,当所述第一自治系统号发生变化时,向所述第一节点传输变化后的第一自治系统号。Further, in the network device disclosed in the embodiments of the present application, after the second node transmits the first interface address and the first interface address alias to the first node, the transceiver unit is further configured to: When the first autonomous system number changes, the changed first autonomous system number is transmitted to the first node.
图10示出了上述实施例中所涉及的作为第一节点的网络设备的一种可能的结构示意图。该第一节点应用于DCN的Underlay network中,包括:主控板310、接口板330、交换网板320和接口板340。主控板310用于完成系统管理、设备维护、协议处理等功能。交换网板320用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板330和340用于提供各种业务接口(例如,以太网接口、POS接口等),并实现数据包的转发。主控板310、接口板330和340,以及交换网板320之间通过系统总线与系统背板相连实现互通。接口板330上的中央处理器331用于对接口板进行控制管理并与主控板310上的中央处理器311进行通信。FIG. 10 shows a possible structural diagram of a network device as a first node involved in the foregoing embodiment. The first node is applied to the DCN's Underlay network and includes: a main control board 310, an interface board 330, a switching network board 320, and an interface board 340. The main control board 310 is used to perform functions such as system management, equipment maintenance, and protocol processing. The switching network board 320 is used to complete data exchange between interface boards (the interface board is also called a line card or a service board). The interface boards 330 and 340 are used to provide various service interfaces (for example, an Ethernet interface, a POS interface, etc.) and implement data packet forwarding. The main control board 310, the interface boards 330 and 340, and the switching network board 320 are connected to the system backplane through a system bus to achieve intercommunication. The central processing unit 331 on the interface board 330 is used to control and manage the interface board and communicate with the central processing unit 311 on the main control board 310.
第一节点接收来自第二节点的第一内联接口的第一接口地址和第一接口地址别名,并且还可以接收第二节点所属的第一自治系统的第一自治系统号。在本申请实施例中,第一节点的内联接口能够与第二节点中内联接口建立BGP会话。其中,该内联接口可以为物理接口和/或逻辑接口。若为物理接口,则第一节点从物理接口卡333接收第二节点传输的报文信息(该报文信息为第一内联接口的第一接口地址和第一接口地址别名,并 且,还可以包括第二节点所属的第一自治系统的第一自治系统号),并且,物理接口卡333将接收到的报文信息送到网络处理器332,网络处理器332根据所述报文信息中的目的地址(是所述第一节点的IP地址)查找转发表项存储器334,匹配结果指示是本机报文。于是网络处理器332执行本申请上述实施例公开的第一节点执行的BGP会话建立的操作,具体操作可参考上面相关描述,此处不再赘述。The first node receives the first interface address and the first interface address alias from the first inline interface of the second node, and may also receive the first autonomous system number of the first autonomous system to which the second node belongs. In the embodiment of the present application, the inline interface of the first node can establish a BGP session with the inline interface of the second node. The inline interface may be a physical interface and / or a logical interface. If it is a physical interface, the first node receives the message information transmitted by the second node from the physical interface card 333 (the message information is the first interface address and the first interface address alias of the first inline interface, and may also Including the first autonomous system number of the first autonomous system to which the second node belongs), and the physical interface card 333 sends the received message information to the network processor 332, and the network processor 332 according to the message information The destination address (which is the IP address of the first node) searches the forwarding entry memory 334, and the matching result indicates that it is a local message. Therefore, the network processor 332 performs the operation of establishing a BGP session performed by the first node disclosed in the foregoing embodiment of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again.
另外,若内联接口为逻辑接口,则第一节点通过主控板310接收第二节点传输的报文信息(该报文信息为第一内联接口的第一接口地址和第一接口地址别名,并且,还可以包括第二节点所属的第一自治系统的第一自治系统号),并且,主控板310接收到的报文信息上送控制面的中央处理器311。于是,主控板310上的中央处理器311,由中央处理器311执行本申请上述实施例公开的第一节点执行的BGP会话建立的操作,具体操作可参考上面相关描述,此处不再赘述。In addition, if the inline interface is a logical interface, the first node receives the message information transmitted by the second node through the main control board 310 (the message information is the first interface address and the first interface address alias of the first inline interface) Moreover, the first autonomous system number of the first autonomous system to which the second node belongs may also be included, and the message information received by the main control board 310 is sent to the central processor 311 of the control plane. Therefore, the central processing unit 311 on the main control board 310 performs the operation of establishing a BGP session performed by the first node disclosed in the foregoing embodiments of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again. .
应理解,本发明实施例中接口板340上的操作与所述接口板330的操作一致,为了简洁,不再赘述。应理解,本发明实施例的第一节点可对应于上述BGP会话建立方法实施例中的网络设备,并且,该第一节点中的各模块和上述其他操作和/或功能分别为了实现图2、图3、图5和图6所对应的实施例中的网络设备所实施的各种步骤和方法,为了简洁,在此不再赘述。It should be understood that, the operation on the interface board 340 in the embodiment of the present invention is consistent with the operation of the interface board 330, and for the sake of brevity, details are not described again. It should be understood that the first node in the embodiment of the present invention may correspond to the network device in the foregoing embodiment of the BGP session establishment method, and each module in the first node and the other operations and / or functions described above are implemented to implement FIG. 2 respectively. Various steps and methods implemented by the network device in the embodiments corresponding to FIG. 3, FIG. 5, and FIG. 6 are omitted here for brevity.
值得说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,第一节点的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,第一网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,第一网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的第一网络设备的数据接入和处理能力要大于集中式架构的设备。可选地,第一节点的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth noting that the main control board may have one or more. When there are multiple, the main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the first node, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. The switching network board may not be available, or there may be one or more, and when there are multiple, the load sharing redundant backup can be implemented together. Under the centralized forwarding architecture, the first network device may not need to exchange the network board, and the interface board is responsible for the service data processing function of the entire system. In the distributed forwarding architecture, the first network device may have at least one switching network board, and the data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the first network device in the distributed architecture are greater than those in the centralized architecture. Optionally, the form of the first node may also be only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the board. At this time, the central processor and the main board of the interface board The central processing unit on the control board can be combined into one central processing unit on the board and perform the functions of the two superimposed. This type of equipment has low data exchange and processing capabilities (for example, low-end switches or routers, etc. Internet equipment). Which architecture is used depends on the specific network deployment scenario and is not limited here.
图11示出了上述实施例中所涉及的作为第二节点的网络设备的一种可能的结构示意图。该第二节点应用于DCN的Underlay network中,包括:主控板410、接口板430、交换网板420和接口板440。主控板410用于完成系统管理、设备维护、协议处理等功能。交换网板420用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板430和440用于提供各种业务接口(例如,以太网接口、POS接口等),并实现数据包的转发。主控板410、接口板430和440,以及交换网板420之间通过系统总线与系统背板相连实现互通。接口板430上的中央处理器431用于对接口板进行控制管理并与主控板410上的中央处理器411进行通信。FIG. 11 illustrates a possible structural diagram of a network device as a second node involved in the foregoing embodiment. The second node is applied to the DCN's Underlay network and includes: a main control board 410, an interface board 430, a switching network board 420, and an interface board 440. The main control board 410 is used to perform functions such as system management, equipment maintenance, and protocol processing. The switching network board 420 is used to complete data exchange between interface boards (the interface board is also called a line card or a service board). The interface boards 430 and 440 are used to provide various service interfaces (for example, an Ethernet interface, a POS interface, etc.) and implement data packet forwarding. The main control board 410, the interface boards 430 and 440, and the switching network board 420 are connected to the system backplane through a system bus to achieve intercommunication. The central processing unit 431 on the interface board 430 is used to control and manage the interface board and communicate with the central processing unit 411 on the main control board 410.
第二节点能够获取自身的第一内联接口的第一接口地址和第一内联接口的第一接口地址别名,并且,还能够获取自身所属的第一自治系统的第一自治系统号。在本申请实施例中,第一节点的内联接口能够与第二节点中内联接口建立BGP会话。其中,该内联接口可以为物理接口和/或逻辑接口。The second node can obtain the first interface address of the first inline interface and the first interface address alias of the first inline interface, and can also obtain the first autonomous system number of the first autonomous system to which the second node belongs. In the embodiment of the present application, the inline interface of the first node can establish a BGP session with the inline interface of the second node. The inline interface may be a physical interface and / or a logical interface.
若该内联接口为物理接口,则第二节点通过网络处理器432生成报文信息(该报文信息为第一内联接口的第一接口地址和第一接口地址别名,并且,还可以包括第二节点所属的第一自治系统的第一自治系统号),再通过物理接口卡433传输至第二节点,以便第二节点建立BGP会话。也就是说,网络处理器432执行本申请上述实施例公开的第二节点执行的发送接口地址和别名的操作,具体操作可参考上面相关描述,此处不再赘述。If the inline interface is a physical interface, the second node generates message information through the network processor 432 (the message information is the first interface address and the first interface address alias of the first inline interface, and may further include The first autonomous system number of the first autonomous system to which the second node belongs) is transmitted to the second node through the physical interface card 433, so that the second node establishes a BGP session. That is, the network processor 432 performs the operations of the sending interface address and the alias performed by the second node disclosed in the foregoing embodiments of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again.
另外,若该内联接口为逻辑接口,则第二节点通过通过主控板410上的中央处理器411生成报文信息(该报文信息为第一内联接口的第一接口地址和第一接口地址别名,并且,还可以包括第二节点所属的第一自治系统的第一自治系统号),再通过主控板将该报文新传输至第二节点,以便第二节点建立BGP会话。也就是说,中央处理器411执行本申请上述实施例公开的第二节点执行的发送接口地址和别名的操作,具体操作可参考上面相关描述,此处不再赘述。In addition, if the inline interface is a logical interface, the second node generates message information through the central processing unit 411 on the main control board 410 (the message information is the first interface address and the first inline interface of the first inline interface). The interface address alias may further include the first autonomous system number of the first autonomous system to which the second node belongs, and then the packet is newly transmitted to the second node through the main control board, so that the second node establishes a BGP session. That is, the central processing unit 411 performs the operations of the sending interface address and the alias performed by the second node disclosed in the foregoing embodiments of the present application. For specific operations, refer to the related descriptions above, and details are not described herein again.
应理解,本发明实施例中接口板440上的操作与所述接口板430的操作一致,为了简洁,不再赘述。应理解,本发明实施例的第二节点可对应于上述发送接口地址和别名方法实施例中的网络设备,并且,该第一节点中的各模块和上述其他操作和/或功能分别为了实现图7所对应的实施例中的网络设备所实施的各种步骤和方法,为了简洁,在此不再赘述。It should be understood that, the operation on the interface board 440 in the embodiment of the present invention is consistent with the operation of the interface board 430, and for the sake of brevity, details are not described again. It should be understood that the second node in the embodiment of the present invention may correspond to the network device in the foregoing sending interface address and alias method embodiment, and each module in the first node and the other operations and / or functions described above are respectively implemented to implement the diagram. The various steps and methods implemented by the network device in the embodiment corresponding to 7 are not repeated here for brevity.
值得说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,第一节点的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,第一网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,第一网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的第一网络设备的数据接入和处理能力要大于集中式架构的设备。可选地,第二节点的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。It is worth noting that the main control board may have one or more. When there are multiple, the main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the first node, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. The switching network board may not be available, or there may be one or more, and when there are multiple, the load sharing redundant backup can be implemented together. Under the centralized forwarding architecture, the first network device may not need to exchange the network board, and the interface board is responsible for the service data processing function of the entire system. In the distributed forwarding architecture, the first network device may have at least one switching network board, and the data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the first network device in the distributed architecture are greater than those in the centralized architecture. Optionally, the form of the second node may also be only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the one board. At this time, the central processor and the main board of the interface board The central processing unit on the control board can be combined into one central processing unit on the board and perform the functions of the two superimposed. This type of equipment has low data exchange and processing capabilities (for example, low-end switches or routers, etc. Internet equipment). Which architecture is used depends on the specific network deployment scenario and is not limited here.
图12示出了上述实施例中所涉及的作为第一节点的网络设备的一种可能的结构示意图,该网络设备应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点。该网络设备包括:收发器510和处理器520,进一步的,还可以包 括随机存取存储器530、只读存储器540以及总线550。其中,处理器520通过总线550分别耦接收发器510、随机存取存储器530以及只读存储器540。其中,当需要运行作为第一节点的网络设备时,通过固化在只读存储器540中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导作为第一节点的网络设备进入正常运行状态。在作为第一节点的网络设备进入正常运行状态后,在随机存取存储器530中运行应用程序和操作系统,使得:FIG. 12 shows a possible schematic structural diagram of a network device as a first node involved in the foregoing embodiment. The network device is applied to a lower layer network of a data center network DCN, and the lower layer network of the DCN includes the First node and second node. The network device includes a transceiver 510 and a processor 520. Further, the network device may further include a random access memory 530, a read-only memory 540, and a bus 550. The processor 520 is coupled to the receiver 510, the random access memory 530, and the read-only memory 540 through a bus 550, respectively. Wherein, when the network device serving as the first node needs to be operated, the basic input output system or the bootloader boot system in the embedded system which is solidified in the read-only memory 540 is used to start the network device serving as the first node to enter the normal operation status. After the network device serving as the first node enters a normal operating state, the application program and the operating system are run in the random access memory 530, so that:
收发器,用于接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;A transceiver, configured to receive a first interface address and a first interface address alias from a first inline interface of the second node, where the first inline interface is an inline interface of the second node;
处理器,用于检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,并且,当所述第二接口地址别名与所述第一接口地址别名相匹配时,根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话;A processor for detecting whether a second interface address alias of a second inline interface of the processor matches the first interface address alias, and when the second interface address alias matches the first interface address alias When matching, establishing a BGP session between the second inline interface and the first inline interface according to the first interface address;
其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
本发明实施例的网络设备可对应于上述图2、图3、图5和图6所对应的实施例中的第一节点,并且,该网络设备中的处理器520、收发器510等可以实现图2、图3、图5和图6所对应的实施例中的网络设备所具有的功能和/或所实施的各种步骤和方法。为了简洁,在此不再赘述。The network device in this embodiment of the present invention may correspond to the first node in the embodiments corresponding to FIG. 2, FIG. 3, FIG. 5, and FIG. 6, and the processor 520, the transceiver 510, and the like in the network device may implement The functions of the network device and / or various steps and methods implemented in the embodiments corresponding to FIG. 2, FIG. 3, FIG. 5, and FIG. 6. For brevity, I will not repeat them here.
需要说明的是,本实施例也可以基于通用的物理服务器结合网络功能虚拟化(英文:Network Function Virtualization,NFV)技术实现的网络设备,该网络设备为虚拟网络设备(如,虚拟主机、虚拟路由器或虚拟交换机)。所述虚拟网络设备可以是虚拟机(英文:Virtual Machine,VM),所述虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。本领域技术人员通过阅读本申请,即可在通用物理服务器上虚拟出具有上述功能的多个网络设备。此处不再赘述。It should be noted that this embodiment may also be a network device implemented based on a universal physical server in combination with Network Function Virtualization (NFV) technology. The network device is a virtual network device (such as a virtual host or a virtual router). Or virtual switch). The virtual network device may be a virtual machine (English: Virtual Machine, VM), and the virtual machine is deployed on a hardware device (for example, a physical server). Virtual machine refers to a complete computer system with complete hardware system functions and running in a completely isolated environment simulated by software. Those skilled in the art can virtually obtain a plurality of network devices with the above functions on a general physical server by reading this application. I won't repeat them here.
图13示出了上述实施例中所涉及的作为第二节点的网络设备的一种可能的结构示意图,该网络设备应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点。该网络设备包括:收发器610、处理器620、随机存取存储器630、只读存储器640以及总线650。其中,处理器620通过总线650分别耦接收发器610、随机存取存储器630以及只读存储器640。其中,当需要运行该网络设备时,通过固化在只读存储器640中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导第二网络设备600C进入正常运行状态。在第二网络设备600C进入正常运行状态后,在随机存取存储器630中运行应用程序和操作系统,使得:FIG. 13 shows a possible structural diagram of a network device as a second node involved in the foregoing embodiment, and the network device is applied to a lower layer network of a data center network DCN, where the lower layer network of the DCN includes the First node and second node. The network device includes a transceiver 610, a processor 620, a random access memory 630, a read-only memory 640, and a bus 650. The processor 620 is coupled to the receiver 610, the random access memory 630, and the read-only memory 640 through a bus 650, respectively. Wherein, when the network device needs to be run, the second network device 600C is booted into a normal operating state by booting through a basic input / output system fixed in the read-only memory 640 or a bootloader in an embedded system. After the second network device 600C enters a normal operating state, the application program and the operating system are run in the random access memory 630, so that:
处理器620,用于根据地址自动生成机制,生成自身的第一内联接口的第一接口地址,并获取所述第一内联接口的第一接口地址别名;A processor 620, configured to generate a first interface address of a first inline interface of the processor according to an automatic address generation mechanism, and obtain a first interface address alias of the first inline interface;
收发器610,用于向所述第一节点传输所述第一接口地址和所述第一接口地址别名;A transceiver 610, configured to transmit the first interface address and the first interface address alias to the first node;
其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
本发明实施例的网络设备可对应于上述图7所对应的实施例中的第二节点,并且,该网络设备中的处理器620、收发器610等可以实现图7所对应的实施例中的第二节点所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述。The network device in the embodiment of the present invention may correspond to the second node in the embodiment corresponding to FIG. 7 described above, and the processor 620, the transceiver 610, and the like in the network device may implement the For the sake of brevity, functions and / or various steps and methods implemented by the second node will not be repeated here.
需要说明的是,本实施例也可以基于通用的物理服务器结合网络功能虚拟化(英文:Network Function Virtualization,NFV)技术实现的网络设备,所述网络设备为虚拟网络设备(如,虚拟主机、虚拟路由器或虚拟交换机)。所述虚拟网络设备可以是运行有用于发送通告报文功能的程序的虚拟机(英文:Virtual Machine,VM),所述虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。本领域技术人员通过阅读本申请即可在通用物理服务器上虚拟出具有上述功能的多个网络设备。此处不再赘述。It should be noted that this embodiment may also be a network device implemented based on a universal physical server combined with Network Function Virtualization (NFV) technology. The network device is a virtual network device (such as a virtual host, virtual Router or virtual switch). The virtual network device may be a virtual machine (English: Virtual Machine, VM) running a program for sending an announcement message function, and the virtual machine is deployed on a hardware device (for example, a physical server). Virtual machine refers to a complete computer system with complete hardware system functions and running in a completely isolated environment simulated by software. Those skilled in the art can virtually generate a plurality of network devices with the foregoing functions on a general physical server by reading this application. I won't repeat them here.
具体实现中,本申请实施例还提供一种计算机存储介质,其中,设置在任意设备中计算机存储介质可存储有程序,该程序执行时,可实施包括图2、图3、图5和图6提供的BGP会话建立方法的部分或全部步骤。任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In specific implementation, the embodiment of the present application further provides a computer storage medium. The computer storage medium provided in any device may store a program. When the program is executed, the program may be implemented including FIG. 2, FIG. 3, FIG. 5, and FIG. 6. Some or all steps of the provided BGP session establishment method. The storage medium in any device can be a magnetic disk, a compact disc, a read-only memory (English: read-only memory, referred to as ROM) or a random access memory (English: random access memory, referred to as RAM).
其中,处理器可以是中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The processor may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof. The memory may include volatile memory (for example, random-access memory (RAM); the memory may also include non-volatile memory (for example, read-only memory) memory (ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.
具体实现中,本申请实施例还提供一种计算机存储介质,其中,设置在任意设备中计算机存储介质可存储有程序,该程序执行时,可实施包括图7所公开的发送接口地址和别名的方法的部分或全部步骤。任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In specific implementation, the embodiment of the present application further provides a computer storage medium, wherein the computer storage medium provided in any device may store a program, and when the program is executed, a program including a sending interface address and an alias disclosed in FIG. 7 may be implemented. Part or all of the steps of a method. The storage medium in any device can be a magnetic disk, a compact disc, a read-only memory (English: read-only memory, referred to as ROM) or a random access memory (English: random access memory, referred to as RAM).
其中,处理器可以是中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit, ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The processor may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP. The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL), or any combination thereof. The memory may include volatile memory (for example, random-access memory (RAM); the memory may also include non-volatile memory (for example, read-only memory) memory (ROM), flash memory (flash memory), hard disk (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memory.
图14是本发明实施例提供的BGP会话建立系统的系统示意图。如图14所示,系统包括第一节点710和第二节点720。第一节点710为上述图2、图3、图5和图6所述的任一网络设备或虚拟网络设备,第二节点720为上述图7所述的网络设备或虚拟网络设备。有关系统中各设备的详细描述,请参见上述图图2、图3、图5、图6和图7等相关章节,此处不再赘述。FIG. 14 is a system diagram of a BGP session establishment system according to an embodiment of the present invention. As shown in FIG. 14, the system includes a first node 710 and a second node 720. The first node 710 is any network device or virtual network device described in FIG. 2, FIG. 3, FIG. 5, and FIG. 6, and the second node 720 is the network device or virtual network device described in FIG. 7. For detailed descriptions of each device in the system, please refer to the relevant sections of FIG. 2, FIG. 3, FIG. 5, FIG. 6, and FIG. 7 described above, which will not be repeated here.
该系统中,第一节点接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;所述第一节点检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配;当所述第二接口地址别名与所述第一接口地址别名相匹配时,所述第一节点根据所述第一接口地址,建立所述第二内联接口与所述第一内联接口的BGP会话,其中,所述第一节点的第二内联接口与所述第二节点的第一内联接口互联。In this system, a first node receives a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline interface of the second node The first node detects whether the second interface address alias of its second inline interface matches the first interface address alias; when the second interface address alias matches the first interface address alias When the first node establishes a BGP session between the second inline interface and the first inline interface according to the first interface address, wherein the second inline interface of the first node communicates with all The first inline interface of the second node is interconnected.
通过本申请实施例公开的系统,第一节点能够接收第二节点传输的第一内联接口的第一接口地址和第一接口地址别名,并检测第二内联接口配置的第二接口地址别名是否与第一接口地址别名相匹配,若匹配,则第一节点根据接收到的第一接口地址,建立第二内联接口与第一内联接口的BGP会话。这种情况下,只需为第一内联接口配置第一接口地址别名,并且为第二内联接口配置与第一接口地址别名相匹配的接口地址别名,即可实现BGP会话的建立。与现有技术相比,有效减少配置操作,简化了BGP会话的建立过程,减少时间和人力的耗费,从而提高BGP会话的建立效率。Through the system disclosed in the embodiment of the present application, the first node can receive the first interface address and the first interface address alias of the first inline interface transmitted by the second node, and detect the second interface address alias configured by the second inline interface. Whether it matches the alias of the first interface address, and if it matches, the first node establishes a BGP session between the second inline interface and the first inline interface according to the received first interface address. In this case, it is only necessary to configure a first interface address alias for the first inline interface and an interface address alias that matches the first interface address alias for the second inline interface to establish a BGP session. Compared with the prior art, the configuration operation is effectively reduced, the process of establishing a BGP session is simplified, and the time and labor are reduced, thereby improving the efficiency of establishing a BGP session.
或者,所述系统包括上述两个实施例所述的计算机可读介质,第一节点和第二节点分别通过运行上述两个实施例所述的计算机可读介质,能够建立BGP会话,并且简化了BGP会话的建立过程,减少时间和人力的耗费,提高了BGP会话的建立效率。Alternatively, the system includes the computer-readable medium described in the two embodiments, and the first node and the second node can establish a BGP session by running the computer-readable medium described in the two embodiments, and simplify the process. The BGP session establishment process reduces the time and labor consumption and improves the BGP session establishment efficiency.
本领域技术任何还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。Any person skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art can use various methods to implement the described functions for each specific application, but such implementation should not be construed as beyond the scope of protection of the embodiments of the present application.
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。Various illustrative logic units and circuits described in the embodiments of the present application may be implemented by a general-purpose processor, a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices. Discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions. The general-purpose processor may be a microprocessor. Alternatively, the general-purpose processor may also be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other similar configuration. achieve.
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于UE中。可选地,处理器和存储媒介也可以设置于UE中的不同的部件中。The steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. A software unit may be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium in the art. For example, the storage medium may be connected to the processor, so that the processor can read information from the storage medium and can write information to the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may be provided in an ASIC, and the ASIC may be provided in a UE. Optionally, the processor and the storage medium may also be provided in different components in the UE.
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that, in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic. The implementation process constitutes any limitation.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it 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 the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server, or data center Transmission by wire (for example, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example, infrared, wireless, microwave, etc.) to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like that includes one or more available medium integration. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (Solid State Disk (SSD)), and the like.
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device and the system, since they are basically similar to the method embodiments, the description is relatively simple. For the related parts, refer to the description of the method embodiments.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the following claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this application.
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiment of the present invention can be implemented by means of software plus a necessary universal hardware platform. Based on such an understanding, the technical solutions in the embodiments of the present invention can be embodied in the form of software products that are essentially or contribute to the existing technology. The computer software product can be stored in a storage medium, such as ROM / RAM. , Magnetic disks, optical disks, etc., including a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention or certain parts of the embodiments.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于……实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。The same or similar parts among the various embodiments in this specification may refer to each other. In particular, for the… embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the relevant parts, refer to the description in the method embodiment.
以上所述的本发明实施方式并不构成对本发明保护范围的限定。The embodiments of the present invention described above do not constitute a limitation on the protection scope of the present invention.

Claims (23)

  1. 一种边界网关协议BGP会话建立方法,其特征在于,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和第二节点,所述方法包括:A method for establishing a border gateway protocol BGP session, which is characterized in that the method is applied to a bottom network of a data center network DCN. The bottom network of the DCN includes a first node and a second node. The method includes:
    所述第一节点接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;Receiving, by the first node, a first interface address and a first interface address alias from a first inline interface of the second node, and the first inline interface is an inline interface of the second node;
    所述第一节点检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配;Detecting, by the first node, whether a second interface address alias of a second inline interface of the first node matches the first interface address alias;
    当所述第二接口地址别名与所述第一接口地址别名相匹配时,所述第一节点根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话;When the second interface address alias matches the first interface address alias, the first node uses the first interface address between the second inline interface and the first inline interface. Establish BGP sessions between them;
    其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  2. 根据权利要求1所述的BGP会话建立方法,其特征在于,当所述第一节点和第二节点分属于不同的自治系统时,还包括:The method for establishing a BGP session according to claim 1, wherein when the first node and the second node belong to different autonomous systems, the method further comprises:
    所述第一节点接收所述第二节点所属的第一自治系统的第一自治系统号;Receiving, by the first node, a first autonomous system number of a first autonomous system to which the second node belongs;
    所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,包括:The detecting whether the second interface address alias of the second inline interface of the second interface inline with the first interface address alias includes:
    所述第一节点检测自身所属的第二自治系统的第二自治系统号与所述第一自治系统号是否相同;Detecting, by the first node, whether a second autonomous system number of a second autonomous system to which the first node belongs is the same as the first autonomous system number;
    当所述第二自治系统号与所述第一自治系统号不同时,所述第一节点执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作;When the second autonomous system number is different from the first autonomous system number, the first node performs the detection to check whether the second interface address alias of the second inline interface of the first autonomous system is the same as the first interface address alias. Matching operation
    当所述第二自治系统号与所述第一自治系统号相同时,所述第一节点根据待交互数据的数据参数,判断所述待交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number, the first node determines whether the data priority of the data to be interacted is a high priority according to the data parameters of the data to be interacted, Data parameters include data traffic and / or data importance;
    当所述数据优先级为高优先级时,所述第一节点执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作。When the data priority is a high priority, the first node performs the operation of detecting whether a second interface address alias of a second inline interface of the first node matches the first interface address alias.
  3. 根据权利要求1所述的BGP会话建立方法,其特征在于,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,还包括:The method for establishing a BGP session according to claim 1, after establishing a BGP session between the second inline interface and the first inline interface, further comprising:
    所述第一节点再次接收到接口地址和接口地址别名之后,当所述接口地址别名与所述第二接口地址别名相匹配时,所述第一节点根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;After the first node receives the interface address and the interface address alias again, when the interface address alias matches the second interface address alias, the first node according to the data parameter of the current interaction data of the BGP session To determine whether the data priority of the current interaction data is high priority, and the data parameters include data traffic and / or data importance;
    当所述数据优先级为高优先级时,所述第一节点保持所述BGP会话不变;When the data priority is high priority, the first node keeps the BGP session unchanged;
    当所述数据优先级不是高优先级时,所述第一节点根据再次接收到的第一接口地址,重新在所述第二内联接口与所述第一内联接口之间建立BGP会话。When the data priority is not a high priority, the first node re-establishes a BGP session between the second inline interface and the first inline interface according to the first interface address received again.
  4. 根据权利要求2所述的BGP会话建立方法,其特征在于,在所述第二内联接口与所述第一内联接口之间建立BGP会话之后,还包括:The method for establishing a BGP session according to claim 2, after establishing a BGP session between the second inline interface and the first inline interface, further comprising:
    所述第一节点再次接收到所述第二节点传输的第一自治系统号之后,所述第一节点检测所述第二自治系统号与再次接收到的所述第一自治系统号是否相同;After the first node receives the first autonomous system number transmitted by the second node again, the first node detects whether the second autonomous system number is the same as the first autonomous system number received again;
    当所述第二自治系统号与再次接收到的所述第一自治系统号不同时,所述第一节点保持所述BGP会话不变;When the second autonomous system number is different from the first autonomous system number received again, the first node keeps the BGP session unchanged;
    当所述第二自治系统号与再次接收到的所述第一自治系统号相同时,所述第一节点根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number received again, the first node judges the data priority of the current interactive data according to the data parameters of the current interactive data of the BGP session Whether it is high priority, the data parameters include data traffic and / or data importance;
    当所述数据优先级为高优先级时,所述第一节点保持所述BGP会话不变;When the data priority is high priority, the first node keeps the BGP session unchanged;
    当所述数据优先级不是高优先级时,所述第一节点中断所述BGP会话。When the data priority is not a high priority, the first node interrupts the BGP session.
  5. 根据权利要求1至4任一项所述的BGP会话建立方法,其特征在于,还包括:The method for establishing a BGP session according to any one of claims 1 to 4, further comprising:
    所述第一节点接收来自于所述第二节点的第三内联接口的第三接口地址;Receiving, by the first node, a third interface address from a third inline interface of the second node;
    所述第一节点检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名;Detecting, by the first node, whether to generate a second interface address of its own second inline interface according to an automatic address generation mechanism, and whether to obtain a second interface address alias;
    当确定根据地址自动生成机制,生成所述第二接口地址,并获取所述第二接口地址别名时,所述第一节点根据所述第三接口地址,在所述第二内联接口与所述第三内联接口之间建立BGP会话。When it is determined that the second interface address is generated according to the automatic address generation mechanism, and the second interface address alias is obtained, the first node according to the third interface address, in the second inline interface and the The establishment of a BGP session between the third inline interfaces is described.
  6. 一种发送接口地址和别名的方法,其特征在于,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和第二节点,所述方法包括:A method for sending an interface address and an alias, which is characterized in that it is applied to a lower layer network of a data center network DCN. The lower layer network of the DCN includes a first node and a second node, and the method includes:
    所述第二节点根据地址自动生成机制,生成自身的第一内联接口的第一接口地址;The second node generates a first interface address of a first inline interface of the second node according to an automatic address generation mechanism;
    所述第二节点获取所述第一内联接口的第一接口地址别名;Obtaining, by the second node, a first interface address alias of the first inline interface;
    所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名;Transmitting, by the second node, the first interface address and the first interface address alias to the first node;
    其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  7. 根据权利要求6所述的发送接口地址和别名的方法,其特征在于,当所述第一节点和第二节点分属于不同的自治系统时,还包括:The method according to claim 6, wherein when the first node and the second node belong to different autonomous systems, the method further comprises:
    所述第二节点获取自身所属的第一自治系统的第一自治系统号;Obtaining, by the second node, a first autonomous system number of a first autonomous system to which the second node belongs;
    所述第二节点向所述第一节点传输所述第一自治系统号。The second node transmits the first autonomous system number to the first node.
  8. 根据权利要求6所述的发送接口地址和别名的方法,其特征在于,在所述第二节点向所述第一节点传输所述第一自治系统号之后,还包括:The method according to claim 6, wherein after the second node transmits the first autonomous system number to the first node, the method further comprises:
    当所述第一内联接口的状态发生变化,和/或所述第一接口地址发生变化时,所述第二节点重新生成所述第一内联接口的第一接口地址,并向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。When the state of the first inline interface changes, and / or the first interface address changes, the second node regenerates the first interface address of the first inline interface, and sends the first interface address to the first inline interface. The first node transmits the first interface address alias and the regenerated first interface address.
  9. 根据权利要求7所述的发送接口地址和别名的方法,其特征在于,在所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名之后,还包括:The method according to claim 7, wherein after the second node transmits the first interface address and the first interface address alias to the first node, the method further comprises: :
    当所述第一自治系统号发生变化时,所述第二节点向所述第一节点传输变化后的第一自治系统号。When the first autonomous system number changes, the second node transmits the changed first autonomous system number to the first node.
  10. 一种网络设备,用作第一节点,其特征在于,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点,所述网络设备包括:A network device used as a first node is characterized in that it is applied to a lower layer network of a data center network DCN, the lower layer network of the DCN includes the first node and a second node, and the network device includes:
    收发单元,用于接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;A transceiver unit, configured to receive a first interface address and a first interface address alias from a first inline interface of the second node, where the first inline interface is an inline interface of the second node;
    处理单元,用于检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,并且,当所述第二接口地址别名与所述第一接口地址别名相匹配时,根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话;A processing unit, configured to detect whether a second interface address alias of its own second inline interface matches the first interface address alias, and when the second interface address alias matches the first interface address alias When matching, establishing a BGP session between the second inline interface and the first inline interface according to the first interface address;
    其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  11. 根据权利要求10所述的网络设备,其特征在于,The network device according to claim 10, wherein:
    当所述第一节点和第二节点分属于不同的自治系统时,所述收发单元,还用于接收所述第二节点所属的第一自治系统的第一自治系统号;When the first node and the second node belong to different autonomous systems, the transceiver unit is further configured to receive a first autonomous system number of a first autonomous system to which the second node belongs;
    所述处理单元执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作,包括:The performing, by the processing unit, the operation of detecting whether a second interface address alias of a second inline interface of the processing unit matches the first interface address alias, includes:
    检测自身所属的第二自治系统的第二自治系统号与所述第一自治系统号是否相同;Detecting whether the second autonomous system number of the second autonomous system to which it belongs is the same as the first autonomous system number;
    当所述第二自治系统号与所述第一自治系统号不同时,执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作;When the second autonomous system number is different from the first autonomous system number, performing an operation of detecting whether a second interface address alias of a second inline interface of the second autonomous system matches the first interface address alias;
    当所述第二自治系统号与所述第一自治系统号相同时,根据待交互数据的数据参数,判断所述待交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number, determine whether the data priority of the data to be interacted is a high priority according to the data parameter of the data to be interacted, and the data parameter includes data traffic And / or data importance;
    当所述数据优先级为高优先级时,执行所述检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配的操作。When the data priority is high priority, performing the operation of detecting whether a second interface address alias of a second inline interface of the data interface matches the first interface address alias.
  12. 根据权利要求10所述的网络设备,其特征在于,The network device according to claim 10, wherein:
    所述处理单元,还用于在所述第二内联接口与所述第一内联接口之间建立BGP会话,并且再次接收到接口地址和接口地址别名之后,当所述接口地址别名与所述第二接口地址别名相匹配时,根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;The processing unit is further configured to establish a BGP session between the second inline interface and the first inline interface, and after receiving the interface address and the interface address alias again, when the interface address alias and the When the second interface address alias matches, it is determined whether the data priority of the current interaction data is a high priority according to the data parameters of the current interaction data of the BGP session, and the data parameters include data traffic and / or data importance Sex
    当所述数据优先级为高优先级时,所述处理单元还用于保持所述BGP会话不变;When the data priority is high priority, the processing unit is further configured to keep the BGP session unchanged;
    当所述数据优先级不是高优先级时,所述处理单元还用于根据再次接收到的第一接口地址,重新在所述第二内联接口与所述第一内联接口之间建立BGP会话。When the data priority is not a high priority, the processing unit is further configured to re-establish BGP between the second inline interface and the first inline interface according to the first interface address received again. Conversation.
  13. 根据权利要求10所述的网络设备,其特征在于,The network device according to claim 10, wherein:
    所述处理单元,还用于在所述第二内联接口与所述第一内联接口之间建立BGP会话,并且再次接收到所述第二节点传输的第一自治系统号之后,检测所述第二自治系统号与再次接收到的所述第一自治系统号是否相同;The processing unit is further configured to establish a BGP session between the second inline interface and the first inline interface, and after receiving the first autonomous system number transmitted by the second node again, detect the Whether the second autonomous system number is the same as the first autonomous system number received again;
    当所述第二自治系统号与再次接收到的所述第一自治系统号不同时,所述处理单元还用于保持所述BGP会话不变;When the second autonomous system number is different from the first autonomous system number received again, the processing unit is further configured to keep the BGP session unchanged;
    当所述第二自治系统号与再次接收到的所述第一自治系统号相同时,所述处理单元还用于根据所述BGP会话当前交互数据的数据参数,判断所述当前交互数据的数据优先级是否为高优先级,所述数据参数包括数据流量和/或数据重要性;When the second autonomous system number is the same as the first autonomous system number received again, the processing unit is further configured to determine data of the current interaction data according to data parameters of the current interaction data of the BGP session. Whether the priority is high priority, and the data parameters include data traffic and / or data importance;
    当所述数据优先级为高优先级时,所述处理单元还用于保持所述BGP会话不变;When the data priority is high priority, the processing unit is further configured to keep the BGP session unchanged;
    当所述数据优先级不是高优先级时,所述处理单元还用于中断所述BGP会话。When the data priority is not a high priority, the processing unit is further configured to interrupt the BGP session.
  14. 根据权利要求10至13任一项所述的网络设备,其特征在于,The network device according to any one of claims 10 to 13, wherein:
    所述收发单元,还用于接收来自于所述第二节点的第三内联接口的第三接口地址;The transceiver unit is further configured to receive a third interface address from a third inline interface of the second node;
    所述处理单元,还用于检测是否根据地址自动生成机制,生成自身的第二内联接口的第二接口地址,以及是否获取第二接口地址别名;The processing unit is further configured to detect whether to generate a second interface address of its second inline interface according to an automatic address generation mechanism, and whether to obtain a second interface address alias;
    当确定根据地址自动生成机制,生成所述第二接口地址,并获取所述第二接口地址别名时,所述处理单元还用于触发所述BGP会话建立模块,以使所述BGP会话建立模块根据所述第三接口地址,在所述第二内联接口与所述第三内联接口之间建立BGP会话。When it is determined that the second interface address is generated according to the automatic address generation mechanism, and the second interface address alias is obtained, the processing unit is further configured to trigger the BGP session establishment module to enable the BGP session establishment module Establishing a BGP session between the second inline interface and the third inline interface according to the third interface address.
  15. 一种网络设备,用作第二节点,其特征在于,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和所述第二节点,包括:A network device used as a second node is characterized in that it is applied to a lower layer network of a data center network DCN. The lower layer network of the DCN includes a first node and the second node, and includes:
    处理单元,用于根据地址自动生成机制,生成自身的第一内联接口的第一接口地址,并获取所述第一内联接口的第一接口地址别名;A processing unit, configured to generate a first interface address of its own first inline interface according to an automatic address generation mechanism, and obtain a first interface address alias of the first inline interface;
    收发单元,用于向所述第一节点传输所述第一接口地址和所述第一接口地址别名;A transceiver unit, configured to transmit the first interface address and the first interface address alias to the first node;
    其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  16. 根据权利要求15所述的网络设备,其特征在于,当所述第一节点和第二节点分属于不同的自治系统时,The network device according to claim 15, wherein when the first node and the second node belong to different autonomous systems,
    所述处理单元,还用于获取自身所属的第一自治系统的第一自治系统号;The processing unit is further configured to obtain a first autonomous system number of a first autonomous system to which the processing unit belongs;
    所述收发单元,还用于向所述第一节点传输所述第一自治系统号。The transceiver unit is further configured to transmit the first autonomous system number to the first node.
  17. 根据权利要求15所述的网络设备,其特征在于,The network device according to claim 15, wherein:
    在所述第二节点向所述第一节点传输所述第一自治系统号之后,当所述第一内联接口的状态发生变化,和/或所述第一接口地址发生变化时,所述处理单元还用于重新生成所述第一内联接口的第一接口地址;After the second node transmits the first autonomous system number to the first node, when the state of the first inline interface changes, and / or the first interface address changes, the The processing unit is further configured to regenerate a first interface address of the first inline interface;
    所述收发单元,还用于向所述第一节点传输所述第一接口地址别名和重新生成的第一接口地址。The transceiver unit is further configured to transmit the first interface address alias and the regenerated first interface address to the first node.
  18. 根据权利要求15所述的网络设备,其特征在于,The network device according to claim 15, wherein:
    在所述第二节点向所述第一节点传输所述第一接口地址和所述第一接口地址别名之后,所述收发单元还用于,当所述第一自治系统号发生变化时,向所述第一节点传输变化后的第一自治系统号。After the second node transmits the first interface address and the first interface address alias to the first node, the transceiver unit is further configured to: when the first autonomous system number changes, The first node transmits a changed first autonomous system number.
  19. 一种网络设备,用作第一节点,其特征在于,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括所述第一节点和第二节点,所述网络设备包括:A network device used as a first node is characterized in that it is applied to a lower layer network of a data center network DCN, the lower layer network of the DCN includes the first node and a second node, and the network device includes:
    收发器,用于接收来自于所述第二节点的第一内联接口的第一接口地址和第一接口地址别名,所述第一内联接口为所述第二节点的内联接口;A transceiver, configured to receive a first interface address and a first interface address alias from a first inline interface of the second node, where the first inline interface is an inline interface of the second node;
    处理器,用于检测自身的第二内联接口的第二接口地址别名是否与所述第一接口地址别名相匹配,并且,当所述第二接口地址别名与所述第一接口地址别名相匹配时,根据所述第一接口地址,在所述第二内联接口与所述第一内联接口之间建立BGP会话;A processor for detecting whether a second interface address alias of a second inline interface of the processor matches the first interface address alias, and when the second interface address alias matches the first interface address alias When matching, establishing a BGP session between the second inline interface and the first inline interface according to the first interface address;
    其中,所述第一节点的第二内联接口和所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The second inline interface of the first node and the first inline interface of the second node are internally interconnected interfaces of the DCN's underlying network.
  20. 一种网络设备,用作第二节点,其特征在于,应用于数据中心网络DCN的底层网络中,所述DCN的底层网络包括第一节点和所述第二节点,包括:A network device used as a second node is characterized in that it is applied to a lower layer network of a data center network DCN. The lower layer network of the DCN includes a first node and the second node, and includes:
    处理器,用于根据地址自动生成机制,生成自身的第一内联接口的第一接口地址,并获取所述第一内联接口的第一接口地址别名;A processor, configured to generate a first interface address of its own first inline interface according to an automatic address generation mechanism, and obtain a first interface address alias of the first inline interface;
    收发器,用于向所述第一节点传输所述第一接口地址和所述第一接口地址别名;A transceiver, configured to transmit the first interface address and the first interface address alias to the first node;
    其中,所述第二节点的第一内联接口为所述DCN的底层网络内部互联的接口。The first inline interface of the second node is an internal interconnection interface of the DCN's underlying network.
  21. 一种计算机可读介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1至5中任意一项所述的方法。A computer-readable medium includes instructions that, when executed on a computer, cause the computer to perform the method according to any one of claims 1 to 5.
  22. 一种计算机可读介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求6至9中任意一项所述的方法。A computer-readable medium includes instructions that, when executed on a computer, cause the computer to perform the method according to any one of claims 6 to 9.
  23. 一种BGP会话建立系统,其特征在于,应用于数据中心网络DCN的底层网络中,所述系统包括如权利要求10至14任一项所述的第一节点和如权利要求15至权利要求18任一项所述的第二节点;或者所述系统包括如权利要求19所述的第一节点和如权利要求20所述的第二节点;或者所述系统包括如权利要求21所述的计算机可读介质和如权利要求22所述的计算机可读介质。A BGP session establishment system, which is characterized in that it is applied to the underlying network of a data center network DCN, and the system includes a first node according to any one of claims 10 to 14 and a claim 15 to claim 18 The second node according to any one; or the system includes the first node according to claim 19 and the second node according to claim 20; or the system includes the computer according to claim 21 A readable medium and a computer-readable medium according to claim 22.
PCT/CN2019/099329 2018-08-07 2019-08-06 Method for establishing bgp session and sending interface address and alias, and network device WO2020029928A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810893296.2A CN110830598B (en) 2018-08-07 2018-08-07 Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN201810893296.2 2018-08-07

Publications (1)

Publication Number Publication Date
WO2020029928A1 true WO2020029928A1 (en) 2020-02-13

Family

ID=69414468

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/099329 WO2020029928A1 (en) 2018-08-07 2019-08-06 Method for establishing bgp session and sending interface address and alias, and network device

Country Status (2)

Country Link
CN (1) CN110830598B (en)
WO (1) WO2020029928A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629819A (en) * 2020-12-10 2022-06-14 中移(苏州)软件技术有限公司 Network detection method and device, electronic equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338768A (en) * 2020-09-25 2022-04-12 华为技术有限公司 Method for establishing session and network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702765B1 (en) * 2004-03-01 2010-04-20 Cisco Technology, Inc. Techniques for automatically creating an iBGP mesh
CN104092687A (en) * 2014-07-14 2014-10-08 杭州华三通信技术有限公司 BGP conversation establishing method and device
CN104468368A (en) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 Method and device for allocating BGP neighbors

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030079027A1 (en) * 2001-10-18 2003-04-24 Michael Slocombe Content request routing and load balancing for content distribution networks
CN102739497B (en) * 2012-06-07 2015-07-08 杭州华三通信技术有限公司 Automatic generation method for routes and device thereof
CN103220228A (en) * 2013-04-10 2013-07-24 杭州华三通信技术有限公司 Method and equipment for sending border gateway protocol (BGP) routes
CN107959636B (en) * 2016-10-17 2021-01-26 新华三技术有限公司 Method and device for sending BGP (Border gateway protocol) message

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702765B1 (en) * 2004-03-01 2010-04-20 Cisco Technology, Inc. Techniques for automatically creating an iBGP mesh
CN104092687A (en) * 2014-07-14 2014-10-08 杭州华三通信技术有限公司 BGP conversation establishing method and device
CN104468368A (en) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 Method and device for allocating BGP neighbors

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629819A (en) * 2020-12-10 2022-06-14 中移(苏州)软件技术有限公司 Network detection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110830598B (en) 2021-10-22
CN110830598A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
US11050586B2 (en) Inter-cloud communication method and related device, and inter-cloud communication configuration method and related device
CN105657081B (en) The method, apparatus and system of DHCP service are provided
CN107646185A (en) Operation, management and processing (OAM) in data center environment is covered
CN109714238A (en) A kind of method and apparatus for realizing inter-virtual machine communication
EP3787232A1 (en) Network configuration method, device, and system
WO2021047320A1 (en) Method and apparatus for determining forwarding path
WO2020073908A1 (en) Method and device for sending routing information
CN111614505B (en) Message processing method and gateway equipment
CN114143283B (en) Tunnel self-adaptive configuration method and device, central terminal equipment and communication system
US11522754B2 (en) Systems and methods for Zero-Touch Provisioning of a switch in intermediate distribution frames and main distribution frames
WO2022105927A1 (en) Method, device, and system for notifying processing capability of network device
JP2022095786A (en) Loop avoidance communication method, loop avoidance communication device, and loop avoidance communication system
WO2021139304A1 (en) Method and device for multi-cloud interconnection
WO2020029928A1 (en) Method for establishing bgp session and sending interface address and alias, and network device
US11929851B2 (en) Gateway selection method, device, and system
WO2022057810A1 (en) Service packet forwarding method, sr policy sending method, device, and system
US11804985B2 (en) Packet transmission method, apparatus, and system, and storage medium
US10999151B2 (en) Apparatus, system, and method for topology discovery across geographically redundant gateway devices
CN114765572A (en) Fault processing method, control plane network element, switching decision network element and related equipment
JP2020113836A (en) Information processing device, information processing system, and setting program
CN110545240B (en) Method for establishing label forwarding table and forwarding message based on distributed aggregation system
EP4149062A1 (en) Deployment method and apparatus for virtualized network service
US20240056412A1 (en) Underlay path selection in fabric/overlay access networks
WO2023284547A1 (en) Fault detection method, apparatus and system
WO2023088145A1 (en) Packet processing method, apparatus and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19848481

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19848481

Country of ref document: EP

Kind code of ref document: A1