WO2022062744A1 - 一种建立会话的方法及网络设备 - Google Patents

一种建立会话的方法及网络设备 Download PDF

Info

Publication number
WO2022062744A1
WO2022062744A1 PCT/CN2021/111935 CN2021111935W WO2022062744A1 WO 2022062744 A1 WO2022062744 A1 WO 2022062744A1 CN 2021111935 W CN2021111935 W CN 2021111935W WO 2022062744 A1 WO2022062744 A1 WO 2022062744A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
interface
message
configuration information
information corresponding
Prior art date
Application number
PCT/CN2021/111935
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP21871121.6A priority Critical patent/EP4207708A4/en
Publication of WO2022062744A1 publication Critical patent/WO2022062744A1/zh
Priority to US18/189,420 priority patent/US20230231803A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised routing
    • 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/12Discovery or management of network topologies
    • 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/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/56Routing software
    • H04L45/566Routing instructions carried by the data packet, e.g. active networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing

Definitions

  • the present application relates to the field of communications, and in particular, to a method and network device for establishing a session.
  • Border Gateway Protocol is a routing protocol that implements routing exchange between network devices within or between autonomous systems (Autonomous System, AS). Two network devices that are adjacent to each other are called peers. Before peers can communicate with each other, a BGP session needs to be established.
  • the traditional technology not only needs to manually configure the Internet Protocol (Internet Protocol, IP) address of its own interface on the network device in advance, but also needs to manually configure the IP address of the interface of its peer.
  • IP Internet Protocol
  • the network device initiates a BGP session establishment request to the peer according to the IP address of the peer's interface, so as to establish a BGP session with the peer.
  • IP Internet Protocol
  • the traditional BGP session establishment method has low efficiency and is not suitable for the current increasingly large BGP network architecture.
  • the present application provides a method and network device for establishing a session, so as to achieve the purpose of improving the efficiency of establishing a BGP session.
  • a first aspect provides a method for establishing a session, the method is applied to a first network device, and specifically includes the following steps: the first network device receives a first message from a second network device, where the first message includes a first message. Configuration information corresponding to an interface.
  • the second network device is connected to the first network device through the first interface, and the configuration information corresponding to the first interface includes the IP address of the first interface.
  • the first interface may be a physical interface or a logical interface. Therefore, the IP address of the first interface may be an IP address corresponding to a physical interface or an IP address corresponding to a logical interface.
  • the IP address of the first interface is an IPv4 address; if the method provided by this application is applied to IPv6, then the IP address of the first interface is an IPv6 address.
  • the IP address of the first interface may be preconfigured or automatically generated.
  • the first network device After obtaining the configuration information corresponding to the first interface, the first network device establishes a border gateway protocol BGP session with the second network device according to the configuration information corresponding to the first interface.
  • the present application does not need to manually configure the configuration information of the first interface of the second network device on the first network device, but automatically obtains the configuration information of the first interface, thereby completing the establishment of the BGP session.
  • the success rate of BGP session establishment is improved, and the establishment efficiency of BGP session is improved.
  • the method further includes: the first network device sends a second message to the second network device, where the second message includes configuration information corresponding to the second interface, the first network device The second network device is connected to the second network device through the second interface, and the configuration information corresponding to the second interface includes the IP address of the second interface, so that the second network device can complete the communication with the first network device according to the IP address of the second interface.
  • the first message further includes indication information, where the indication information is used to instruct the first network device to establish a communication with the second network device according to the configuration information corresponding to the first interface. between BGP sessions. After receiving the first message, the first network device establishes a BGP session with the second network device according to the configuration information corresponding to the first interface based on the indication information.
  • the first message is a Neighbor Discovery (ND) message.
  • ND Neighbor Discovery
  • the first message is not limited to the ND message, and those skilled in the art can design it by themselves according to the actual situation.
  • the ND message includes a neighbor advertisement (Neighbor Advertisement, NA) message or a router advertisement (Router Advertisement, RA) message.
  • NA Neighbor Advertisement
  • RA Route Advertisement
  • the configuration information corresponding to the first interface is carried in the type length value (TLV) of the ND message.
  • TLV type length value
  • the configuration information corresponding to the first interface is carried in the type length value (TLV) of the ND message.
  • TLV type length value
  • the method further includes : The first network device confirms that the priority of the first network device is higher than the priority of the second network device. That is to say, if the priority of the first network device is higher than the priority of the second network device, the first network device can be the party that initiates the request to establish the BGP session actively, and the second network device does not initiate the request to avoid both parties.
  • the problem of resource waste caused by initiation is to say, if the priority of the first network device is higher than the priority of the second network device, the first network device can be the party that initiates the request to establish the BGP session actively, and the second network device does not initiate the request to avoid both parties.
  • the first message further includes the priority of the second network device.
  • the first network device may compare the priority of the first network device with the priority of the second network device included in the first message to confirm that the priority of the first network device is higher than the priority of the second network device.
  • the first network device confirming that the priority of the first network device is higher than the priority of the second network device includes: the first network device confirming the IP address of the second interface The size of the address is greater than the IP address of the first interface, where the second interface is an interface of the first network device that receives the first message. That is, if the first network device confirms that the size of the IP address of the second interface is larger than the IP address of the first interface, the first network device confirms that the priority of the first network device is higher than that of the second network device.
  • the configuration information corresponding to the first interface further includes the autonomous system AS identifier of the second network device.
  • the AS identification may be an autonomous system number (as-number, ASN).
  • the method provided in this application can be applied to a data center network (Data Center Network, DCN) network.
  • DCN Data Center Network
  • the second network device is a spine node, and the first network device is a leaf node; or, the second network device is a leaf node, and the first network device is a spine node.
  • the method provided in this application can also be applied to other BGP networks except DCN network, which is not specifically limited in this application.
  • the first interface may be a logical interface, then in a possible design, the first interface is a loopback interface.
  • the destination address of the first message is an IPv6 all-nodes multicast address (all-nodes multicast address). That is, the second network device may send the first message to all peers (including the first network device) connected to the first interface, so as to achieve the purpose of establishing a BGP session with these peers.
  • a method for establishing a session is provided.
  • the method is applied to a second network device, and specifically includes the following steps: the second network device obtains configuration information corresponding to the first interface, and the second network device passes the first interface through the second network device.
  • An interface is connected to the first network device, and the configuration information corresponding to the first interface includes the IP address of the first interface.
  • the second network device sends a first message to the first network device, where the first message includes configuration information corresponding to the first interface, and the configuration information corresponding to the first interface is used for the first network
  • the device establishes a Border Gateway Protocol BGP session with the second network device.
  • the present application does not need to manually configure the configuration information of the first interface of the second network device on the first network device, but the second network device sends the configuration information of the first interface to the first network device, thereby completing the BGP session
  • the establishment of the BGP session not only saves labor costs, improves the success rate of BGP session establishment, but also improves the establishment efficiency of BGP sessions.
  • the first message further includes indication information, where the indication information is used to instruct the first network device to establish a communication with the second network device according to the configuration information corresponding to the first interface. between BGP sessions.
  • the second network device may determine the first interface Being in the IPv6 connection state, that is, confirming that the first interface has the ability to send the first message.
  • the second network device may determine the first interface
  • the corresponding physical interface is in the IPv6 connection state, that is, the physical interface corresponding to the first interface has the ability to send the first message.
  • the logical interface is a loopback interface.
  • the method further includes: the second network device receives a second message from the first network device, the second message includes configuration information corresponding to the second interface, the first A network device is connected to the second network device through the second interface, and the configuration information corresponding to the second interface includes the IP address of the second interface. That is, the first network device may also send the configuration of the interface connected to the second network device to the second network device, so that the second network device can obtain the configuration information of the interface without manual configuration.
  • the method further includes: the second network device monitors a Transmission Control Protocol (Transmission Control Protocol, TCP) port according to the IP address of the second interface, to receive a BGP session establishment request from the first network device, and establish the BGP session according to the BGP session establishment request.
  • TCP Transmission Control Protocol
  • the first message further includes a priority of the second network device, where the priority of the second network device is used by the first network device to determine whether the BGP session is actively initiated by the first network device Build request.
  • the configuration information of the first interface further includes the autonomous system identifier of the second network device.
  • a third aspect provides a first network device, where the first network device includes: a receiving unit configured to receive a first message from a second network device, where the first message includes configuration information corresponding to the first interface , the second network device is connected to the first network device through the first interface, and the configuration information corresponding to the first interface includes the Internet Protocol IP address of the first interface; The configuration information corresponding to the first interface establishes a border gateway protocol BGP session with the second network device.
  • the first network device further includes: a sending unit, configured to send a second message to the second network device, where the second message includes configuration information corresponding to the second interface, the first The network device is connected to the second network device through the second interface, and the configuration information corresponding to the second interface includes the IP address of the second interface.
  • the first message further includes indication information, where the indication information is used to instruct the first network device to establish a communication with the second network device according to the configuration information corresponding to the first interface. between BGP sessions.
  • the processing unit is further configured to, before establishing a BGP session with the second network device according to the configuration information corresponding to the first interface, confirm the configuration of the first network device.
  • the priority is higher than the priority of the second network device.
  • the first message further includes the priority of the second network device.
  • the processing unit confirming that the priority of the first network device is higher than the priority of the second network device includes: the processing unit confirming that the size of the IP address of the second interface is greater than that of the second interface.
  • the IP address of the first interface, and the second interface is an interface of the first network device that receives the first message.
  • a second network device in a fourth aspect, includes: a processing unit configured to acquire configuration information corresponding to a first interface, the second network device communicates with the first interface through the first interface a network device is connected, and the configuration information corresponding to the first interface includes the Internet Protocol IP address of the first interface; a sending unit is configured to send a first message to the first network device, where the first message includes the Configuration information corresponding to the first interface, where the configuration information corresponding to the first interface is used by the first network device to establish a border gateway protocol BGP session with the second network device.
  • the first message further includes indication information, where the indication information is used to instruct the first network device to establish a communication with the second network device according to the configuration information corresponding to the first interface. between BGP sessions.
  • the first interface is a physical interface
  • the sending unit is further configured to determine that the first interface is in an Internet Protocol version 6 IPv6 connection state before the second network device sends the first message to the first network device.
  • the first interface is a logical interface
  • the sending unit is further configured to determine that the physical interface corresponding to the first interface is in an IPv6 connection state before the second network device sends the first message to the first network device.
  • the second network device further includes: a receiving unit, configured to receive a second message from the first network device, where the second message includes configuration information corresponding to the second interface, the The first network device is connected to the second network device through the second interface, and the configuration information corresponding to the second interface includes the IP address of the second interface.
  • the processing unit is further configured to monitor the transmission control protocol TCP port according to the IP address of the second interface, so as to receive the BGP session establishment request from the first network device, and according to the IP address of the second interface
  • the BGP session establishment request establishes the BGP session.
  • the first message further includes the priority of the second network device.
  • a network system in a fifth aspect, includes the first network device and the second network device provided in the foregoing aspects.
  • a computer-readable storage medium comprising instructions, programs or codes that, when executed on a computer, cause the computer to perform the method described in the preceding aspects.
  • a computer program product including computer instructions is provided, when the computer program product is run on a network device, the network device is made to perform the first aspect, the second aspect, and any one of the above two possible aspects.
  • a chip including a memory and a processor.
  • Memory is used to store instructions or program code.
  • the processor is used to call and run the instruction or program code from the memory to execute the method in the first aspect or any possible design of the first aspect; or, the processor executes the second aspect or any one of the second aspect method in a possible design.
  • the above-mentioned chip only includes a processor, and the processor is used to read and execute the instructions or program codes stored in the memory, and when the instructions or program codes are executed, the processor executes the first aspect or the first aspect or, the processor executes the second aspect or the method in any possible design of the second aspect; or, the processor executes the third aspect or any possible method in design.
  • FIG. 1 is a schematic structural diagram of a network architecture provided by an embodiment of the present application.
  • FIG. 2 is a flowchart of a session establishment method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a format of an NA message provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a format of an RA message provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a TLV format in an IPv4 scenario provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a TLV format in an IPv6 scenario provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a first network device 700 according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a second network device 800 according to an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a network system 900 provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a device 1000 provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a device 1100 provided by an embodiment of the present application.
  • the IP address of the interface of the network device and the IP address of the interface of the peer need to be manually configured on the network device in advance.
  • the so-called IP address of the interface refers to the IP address corresponding to the interface on the network device that communicates with the peer.
  • the IP addresses corresponding to different interfaces may be the same or different.
  • a user can configure the following command on a network device: peer ipv6-address as-number, and the network device executes this command to configure the peer's Internet Protocol version 6 (IPv6) on the network device.
  • IPv6 Internet Protocol version 6
  • the purpose of the address and autonomous system number (as-number, ASN).
  • network device 101 and network device 102 are peers with each other, network device 101 has interface 1 , network device 102 has interface 2 , and interface 1 of network device 101 is connected to interface 2 of network device 102 .
  • the network device 101 Before the network device 101 establishes a BGP session with the network device 102, it needs to manually configure the IP address of the interface 1 and the IP address of the interface 2 with the network device 102 on the network device 101 in advance.
  • the IP address of 2 sends a BGP session establishment request to the network device 102 , and the BGP session establishment request includes the IP address of the interface 1 to establish a BGP session with the network device 102 .
  • the IP address of the interface 2 and the IP address of the interface 1 of the network device 101 may also be manually configured on the network device 102 to complete the establishment of the BGP session.
  • the workload of configuring the IP addresses of the interfaces of the peers will be increased, thereby reducing the establishment efficiency of BGP sessions.
  • the configuration may be incorrect, resulting in the problem that the BGP session cannot be established.
  • an embodiment of the present application provides a session establishment method, which can achieve the purpose of establishing a BGP session without manually configuring the IP address of a peer on a network device, which not only saves labor costs, but also Improves the efficiency of BGP session establishment.
  • FIG. 2 is a flowchart of a session establishment method provided by an embodiment of the present application.
  • the session establishment method provided by the embodiment of the present application includes the following steps:
  • the second network device acquires configuration information corresponding to the first interface.
  • the first network device and the second network device may be devices such as a router (router), a switch (switch), and the like.
  • the method provided by this embodiment of the present application may be applied to a data center network (Data Center Network, DCN) network.
  • DCN Data Center Network
  • the first network device may be, for example, a spine node
  • the second network device may be, for example, a leaf ( leaf) node.
  • the first network device is a leaf node
  • the second network device is a spine node.
  • the first network device and the second network device are not limited to belong to the DCN network architecture, and may also be applicable to other BGP network architectures.
  • the second network device communicates with the first network device through the first interface.
  • the first interface may be a physical interface or a logical interface. If the first interface is a logical interface, the first interface may be a loopback interface, and the second network device is connected to the first network device through a physical interface corresponding to the loopback interface.
  • the second network device may be, for example, the network device 101 in FIG. 1
  • the first network device may be, for example, the network device 102
  • the first interface may be the above-mentioned interface 1 .
  • the first network device obtains configuration information corresponding to the first interface, the configuration information corresponding to the first interface includes the IP address of the first interface, and the configuration information corresponding to the first interface is used for The first network device establishes a BGP session with the second network device.
  • the first interface may be a physical interface or a logical interface. Therefore, the IP address of the first interface may be an IP address corresponding to a physical interface or an IP address corresponding to a logical interface.
  • IP address of the first interface is an IPv4 address; if the method provided by the embodiment of the present application is applied to IPv6, then the first interface
  • IPv6 address if the method provided by the embodiment of the present application is applied to IPv6, then the first interface
  • the IP address of the interface is an IPv6 address.
  • the IP address of the first interface may be preconfigured or automatically generated.
  • the user can configure the following command on the second network device: ip address ⁇ ip-address>bgp auto-discovery, the The meaning of the command is to specify the ip-address as the local source address for establishing a single-hop BGP session.
  • the second network device can complete the purpose of configuring the IP address of the first interface.
  • the user can configure the following command on the second network device: ip address ⁇ ip-address>bgp auto-discovery outbound ⁇ ifname>, the meaning of this command is to specify the ip-address as the IP address for establishing a single-hop BGP session, and ⁇ ifname> indicates the physical interface corresponding to the first interface.
  • the second network device can complete the purpose of configuring the IP address of the first interface.
  • the configuration information corresponding to the first interface further includes one or more of the AS identifier of the second network device, the priority of the second network device, and other information.
  • the priority of the second network device is used to determine the initiator of the BGP session request, which will be described in detail below, and will not be repeated here.
  • the second network device sends a first message to the first network device.
  • the first message may be, but is not limited to, a Neighbor Discovery (ND) message, and may specifically be a Neighbor Advertisement (NA) message or a Router Advertisement (RA) in the ND message.
  • message, the NA message or the RA message may be an unsolicited message.
  • the first message carries configuration information corresponding to the first interface. Since the configuration information corresponding to the first interface includes the IP address of the first interface, the second network device achieves the purpose of notifying the first network device of the IP address of the first interface by sending the first message to the first network device, so that The first network device can establish a BGP session with the second network device according to the IP address of the first interface.
  • the first message further includes indication information, where the indication information is used to instruct the first network device to establish a connection with the second network device according to the configuration information corresponding to the first interface. between BGP sessions.
  • the configuration information and indication information of the first interface may be carried in a type length value (type length value, TLV) of the first message.
  • the figure is a schematic diagram of the format of the NA message.
  • the NA message includes a type field, a code field, a checksum field, an R field, an S field, an O field, a reserved field, and a target address field. and optional (options) field.
  • the optional field is TLV, and the configuration information and indication information of the first interface can be carried in the TLV.
  • the figure is a schematic diagram of the format of the RA message.
  • the RA message includes a type field, a code field, a checksum field, a current hop limit (Cur Hop Limit) field, an M field, an O field, a reserved field, a router lifetime field, a reachable time ( reachable time) field, retrans timer field and options field.
  • the options field is the TLV, and the configuration information and indication information of the first interface may be carried in the TLV.
  • the TLV includes a type field, a length field, an ASN type field, an IPv4address field, an ASN field, and a reserved field.
  • the type field is used to carry the above-mentioned indication information, and this field may occupy 1 bit (byte, B).
  • the value of the length field is the length of the TLV, and this field may occupy 1 bit.
  • the value of ASN type is the type of ASN, for example, it can be a two-byte ASN or a four-byte ASN, and this field can occupy 1 bit.
  • the value of the IPv4address field is the IPv4 address of the first interface, and this field may occupy 4 bits.
  • the ASN field may carry the autonomous system identifier of the first interface, and this field may occupy 2 bits or 4 bits. If the first interface further includes other configuration information, the other configuration information may be carried in the reserved field; if the first interface does not include other configuration information, the TLV may not have the reserved field.
  • FIG. 6 is a schematic diagram of one of the TLV formats.
  • the TLV includes a type field, a length field, an ASN type field, an IPv6 address field, an ASN field, and a reserved field.
  • the difference between the TLV format shown in FIG. 6 and the TLV format shown in FIG. 5 is that the IP address of the first interface of the TLV in FIG. 6 is an IPv6 address, which is carried in the IPv6 address field.
  • the IPv6 address which is carried in the IPv6 address field.
  • the second network device may first confirm whether it has the ability to send the first message to the first network device. Since the ND message can only be sent based on the IPv6 protocol, if the first interface is a physical interface, the second network device can confirm whether it has the ability to send the first message by judging whether the first interface is in the IPv6 connection state. If the first interface is in the IPv6 connection state, it is considered that the first interface of the second network device has the ability to send the first message, and the action of sending the first message to the second network device through the first interface can be performed; otherwise, it is not sent.
  • the second network device can confirm whether it has the ability to send the first message by judging whether the physical interface corresponding to the first interface is in the IPv6 connection state. If the physical interface corresponding to the first interface is in the IPv6 connection state, it is considered that the first interface of the second network device has the ability to send the first message, and the action of sending the first message to the second network device through the first interface can be performed, and also That is, the first message is sent to the second network device through the physical interface corresponding to the first interface; otherwise, it is not sent.
  • the destination address of the first message may be an IPv6 all-nodes multicast address (for example, FF02::1), that is, the first message
  • the second network device may send the first message to all peers (including the first network device) communicating with the first interface, that is, to notify these peers of the configuration information of the first interface of the second network device, so that these peers can The peers can respectively establish a BGP session with the second network device according to the configuration information of the first interface.
  • the following command can be configured in the second network device: peer ⁇ out-ifname>auto-discovery, the meaning of this command is to automatically discover all peers communicating with the first interface.
  • the first interface is a logical interface
  • ⁇ out-ifname> indicates the physical interface corresponding to the first interface, that is, the above-mentioned ⁇ ifname>
  • the second network device can obtain information (excluding the peer's IP address) of the peer (including the first network device) communicating with the first interface, and execute subsequent steps according to the peer's information. The act of sending the first message to these peers.
  • the following command can also be configured on the second network device: peer ⁇ out-ifname>description ⁇ description-text>, this command indicates that the corresponding relationship between the first interface and the obtained peer information can be established.
  • the second network device may establish and store the corresponding relationship, so that the second network device can send the first message to the peer corresponding to the first interface according to the corresponding relationship.
  • the second network device may also be configured with the following command: peer ⁇ out-ifname>tcp-mss ⁇ tcp-mss-number>, this command is used to configure the Transmission Control Protocol (TCP) connection of the BGP session
  • TCP Transmission Control Protocol
  • MSS Maximum message length parameter of , this parameter is used for the second network device to establish a TCP connection with the first network device.
  • S103 The first network device receives the first message from the second network device.
  • the first network device establishes a BGP session with the second network device according to the configuration information corresponding to the first interface.
  • the first network device receives the first message from the second network device. Since the first message carries the configuration information of the first interface, the first network device can The configuration information establishes a BGP session with the second network device. That is to say, this embodiment of the present application does not need to manually configure the configuration information of the first interface of the second network device on the first network device, but automatically obtains the configuration information of the first interface, thereby completing the establishment of the BGP session. Compared with the traditional technology, it not only saves labor cost, improves the success rate of BGP session establishment, but also improves the establishment efficiency of BGP session.
  • the first network device may establish a BGP session with the second network device according to the configuration information corresponding to the first interface based on the indication information. For example, if the indication information is carried in the type field of the TLV of the first message, the first network device obtains the configuration information of the first interface included in the value according to the value of the type field, so as to perform subsequent steps of establishing a BGP session.
  • the first network device may also send a second message to the second network device, where the second message carries configuration information of the first network device, the configuration information of the first network device includes the IP address of the second interface, and the second message carries the configuration information of the first network device.
  • the second interface is an interface of the first network device that communicates with the second network device, that is, an interface that receives the first message. In this way, the second network device can also establish a BGP session with the first network device according to the configuration information of the second interface.
  • the configuration information of the second interface is similar to the content included in the configuration information of the first interface, that is, it also includes, for example, the autonomous system identifier of the first network device, etc., which will not be repeated here.
  • a command similar to the above-mentioned command configured by the second network device may be configured, which will not be repeated here.
  • the second network device may also monitor the TCP port according to the IP address of the second interface, so as to receive a BGP session establishment request from the first network device, and complete the BGP session establishment action. That is to say, in this implementation manner, in order to establish a BGP session, both the second network device and the first network device need to send the IP addresses of their respective interfaces to each other.
  • the first network device and the second network device can determine who initiates the request according to their respective priorities BGP session establishment request. Assuming that the priority of the first network device is higher than the priority of the second network device, the first network device may be a network device that initiates a BGP session establishment request to the opposite party. Certainly, the network device with lower priority may also be set as the network device that initiates the BGP session establishment request, which is not specifically limited in this application. For the purpose of description, the following description is given by taking the network device with a higher priority as the network device that initiates the BGP session establishment request as an example.
  • the first network device may obtain the priority of the first network device through configuration in advance, or receive the priority of the first network device delivered by a device such as a controller. level and stored.
  • the second network device may also obtain the priority of the second network device through configuration in advance, or receive the priority of the second network device delivered from a device such as a controller, and store the priority.
  • the second network device may carry the priority of the second network device in the first message.
  • the TLV format further includes a priority field, where the priority field is used to carry the priority of the second network device.
  • the first network device After receiving the first message, the first network device compares the priority of the first network device and the priority of the second network device to obtain a comparison result. If the comparison result is that the priority of the first network device is higher than the priority of the second network device, the first network device sends a BGP session establishment request to the second network device according to the IP address of the first interface to establish a connection with the second network device. BGP sessions between devices.
  • the first network device may determine the priority of the first network device and the priority of the second network device according to the size of the IP address of the first interface and the IP address of the second interface. For example, if the IP address of the first interface is greater than the IP address of the second interface, it may be considered that the priority of the first network device is higher than the priority of the second network device. Of course, it can also be reversed, that is, it is considered that the priority of the first network device is lower than the priority of the second network device, which is not specifically limited in this application. For simplicity of description, the former is taken as an example to be introduced below.
  • the first network device After the first network device receives the first message, it can compare the size of the IP address of the first interface and the IP address of the second interface. If the IP address of the first interface is greater than the IP address of the second interface, the first network The device sends a BGP session establishment request to the second network device to establish a BGP session with the second network device; if the IP address of the first interface is smaller than the IP address of the second interface, it will abandon the establishment of the BGP session with the second network device. In the BGP session, if the second message has not been sent to the second network device before, the second message may be sent to the second network device, so that the second network device initiates the establishment of the BGP session with the first network device.
  • the bytes of the IP address of the first interface and the bytes of the IP address of the second interface may be compared one by one in a preset order.
  • the preset order may be an order from high order to low order, or may be an order from low order to high order. If a certain byte of the IP address of the first interface is different in size from a byte in the same position of the IP address of the second interface, the size of the IP address can be determined according to the size of the bytes.
  • the IP address of the first interface is 100.4.4.6, it is 01100100.00000100.00000011.00000110 when converted into a 32-bit binary number.
  • the IP address of the second interface is 100.3.5.6, which is 01100100.00000011.00000101.00000110 when converted into a 32-bit binary number.
  • the size of the second byte of the IP address of the first interface, 00000100, and the second byte of the IP address of the second interface 00000011.
  • the former is greater than the latter, so it can be determined that the IP address of the first interface is greater than the IP address of the second interface.
  • the IP address of the first interface and the IP address of the second interface may be hashed respectively to obtain the first hash value and the second hash value, and the first hash value is the hash value corresponding to the IP address of the first interface, and the second hash value is the hash value corresponding to the IP address of the second interface. Then compare the size of the first hash value and the second hash value, if the first hash value is greater than the second hash value, it can be considered that the IP address of the first interface is greater than the IP address of the second interface. vice versa.
  • the first network device may use a secure neighbor discovery (SEcure Neighbor Discovery, SEND) technology to verify the source of the first message, so as to reduce the number of first network devices possibility of being attacked.
  • SEND Secure Neighbor Discovery
  • FIG. 7 shows a possible schematic structural diagram of the first network device involved in the above embodiment, and the first network device 700 may implement the functions of the first network device in the example shown in FIG. 2 .
  • the network device 700 includes: a receiving unit 701 and a processing unit 702 . These units may perform the corresponding functions of the first network device in the above method examples.
  • the receiving unit 701 is configured to perform various receiving operations performed by the first network device in the foregoing method embodiments; the processing unit 702 is configured to perform various processing operations performed by the first network device in the foregoing method embodiments.
  • the receiving unit 701 is configured to receive a first message from the second network device, where the first message includes configuration information corresponding to the first interface; the processing unit 702 is configured to receive configuration information corresponding to the first interface according to the first interface
  • the information establishes a Border Gateway Protocol BGP session with the second network device.
  • the specific execution process please refer to the detailed description of the corresponding steps in the above-mentioned embodiment shown in FIG. 2 , which will not be repeated here.
  • FIG. 8 shows a possible schematic structural diagram of the second network device involved in the above embodiment, and the second network device 800 can implement the functions of the second network device in the example shown in FIG. 2 .
  • the network device 800 includes: a processing unit 801 and a sending unit 802 . These units may perform the corresponding functions of the second network device in the above method examples.
  • the processing unit 801 is configured to acquire configuration information corresponding to the first interface; the sending unit 802 is configured to send a first message to the first network device, where the first message includes the configuration information corresponding to the first interface. configuration information.
  • the specific execution process please refer to the detailed description of the corresponding steps in the above-mentioned embodiment shown in FIG. 2 , which will not be repeated here.
  • each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the acquiring unit and the processing unit may be the same unit or different units.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • an embodiment of the present application provides a network system 900, where the system 900 is configured to implement the method for establishing a session in the foregoing method embodiments.
  • the system 900 includes a network device 901 and a network device 902 .
  • the network device 901 can implement the functions of the first network device in the embodiment shown in FIG. 2 or the first network device 700 in FIG. 7 , and the network device 902 Functions of the second network device 800 in 8.
  • the specific execution process please refer to the detailed description of the corresponding steps in the above-mentioned embodiment shown in FIG. 2 , which will not be repeated here.
  • FIG. 10 is a schematic structural diagram of a device 1000 provided by an embodiment of the present application.
  • the network device 700 in FIG. 7 and the network device 800 in FIG. 8 may be implemented by the devices shown in FIG. 10 .
  • the device 1000 includes at least one processor 1001 , a communication bus 1002 and at least one network interface 1004 , and optionally, the device 1000 may further include a memory 1003 .
  • the processor 1001 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits (integrated circuits) used to control the execution of the programs of the present application. , IC).
  • the processor may be configured to process the message, so as to implement the method for sending a message provided in the embodiments of the present application.
  • the processor may be configured to receive the first message from the second network device, and according to the first interface in the first message
  • the corresponding configuration information establishes a border gateway protocol BGP session with the second network device.
  • the processor may be configured to acquire configuration information corresponding to the first interface, and send a message including the first interface to the first network device.
  • the specific function implementation may refer to the processing part of the second network device in the method embodiment.
  • Communication bus 1002 is used to transfer information between processor 1001 , network interface 1004 and memory 1003 .
  • the memory 1003 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the memory 1003 can also be a random access memory (random access memory, RAM) or can store information. and other types of dynamic storage devices for instructions, also can be compact disc read-only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray optical disks, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, without limitation.
  • the memory 1003 can exist independently and is connected to the processor 1001 through the communication bus 1002 .
  • the memory 1003 may also be integrated with the processor 1001 .
  • the memory 1003 is used for storing program codes or instructions for executing the solution of the present application, and the execution is controlled by the processor 1001 .
  • the processor 1001 is used to execute program codes or instructions stored in the memory 1003 .
  • One or more software modules may be included in the program code.
  • the processor 1001 may also store program codes or instructions for executing the solutions of the present application, in which case the processor 1001 does not need to read the program codes or instructions from the memory 1003 .
  • the network interface 1004 may be a device such as a transceiver for communicating with other devices or a communication network, which may be Ethernet, a radio access network (RAN), or a wireless local area network (WLAN), or the like.
  • the network interface 1004 may be configured to receive packets sent by other nodes in the segment routing network, and may also send packets to other nodes in the segment routing network.
  • the network interface 1004 may be an ethernet (ethernet) interface, a fast ethernet (FE) interface, or a gigabit ethernet (GE) interface, and the like.
  • the device 1000 may include multiple processors, such as the processor 1001 and the processor 405 shown in FIG. 10 .
  • processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • FIG. 11 is a schematic structural diagram of a device 1100 provided by an embodiment of the present application.
  • the first network device and the second network device in FIG. 2 may be implemented by the devices shown in FIG. 11 .
  • the device 1100 includes a main control board and one or more interface boards.
  • the main control board communicates with the interface board.
  • the main control board is also called a main processing unit (MPU) or a route processor card.
  • the main control board includes a CPU and a memory.
  • the main control board is responsible for the control and management of various components in the device 1100, including Route calculation, device management and maintenance functions.
  • Interface boards also known as line processing units (LPUs) or line cards, are used to receive and send messages.
  • LPUs line processing units
  • the communication between the main control board and the interface board or between the interface board and the interface board is through a bus.
  • the interface boards communicate through a switch fabric board.
  • the device 1100 also includes a switch fabric board.
  • the switch fabric board is communicatively connected to the main control board and the interface board.
  • the switch fabric board is used to forward the interface board.
  • the data between them, the switch fabric board can also be called a switch fabric unit (SFU).
  • the interface board includes a CPU, a memory, a forwarding engine, and an interface card (IC), wherein the interface card may include one or more network interfaces.
  • the network interface can be an Ethernet interface, an FE interface, or a GE interface.
  • the CPU is connected in communication with the memory, the forwarding engine and the interface card, respectively.
  • the memory is used to store the forwarding table.
  • the forwarding engine is used to forward the received packet based on the forwarding table stored in the memory. If the destination address of the received packet is the IP address of device 1100, the packet is sent to the CPU of the main control board or interface board for processing. Processing; if the destination address of the received packet is not the IP address of the device 1100, then look up the forwarding table according to the destination, if the next hop and outgoing interface corresponding to the destination address are found from the forwarding table, the packet Forwarding to the outbound interface corresponding to the destination address.
  • the forwarding engine may be a network processor (NP).
  • the interface card also known as the daughter card, can be installed on the interface board and is responsible for converting photoelectric signals into data frames, and after checking the validity of the data frames, forwards them to the forwarding engine for processing or the interface board CPU.
  • the CPU can also perform the function of a forwarding engine, such as implementing soft forwarding based on a general-purpose CPU, so that a forwarding engine is not required in the interface board.
  • the forwarding engine may be implemented by an ASIC or a field programmable gate array (FPGA).
  • the memory that stores the forwarding table may also be integrated into the forwarding engine as part of the forwarding engine.
  • An embodiment of the present application further provides a chip system, including: a processor, where the processor is coupled with a memory, the memory is used to store a program or an instruction, and when the program or instruction is executed by the processor, the The chip system implements the method for the first network device or the second network device in the embodiment shown in FIG. 2 .
  • the number of processors in the chip system may be one or more.
  • the processor can be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software codes stored in memory.
  • there may also be one or more memories in the chip system.
  • the memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application.
  • the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips.
  • the setting method of the processor is not particularly limited.
  • the chip system may be an FPGA, an ASIC, a system on chip (system on chip, SoC), a CPU, an NP, or a digital signal processing circuit (digital signal processor, DSP), can also be a microcontroller (micro controller unit, MCU), can also be a programmable logic device (programmable logic device, PLD) or other integrated chips.
  • SoC system on chip
  • DSP digital signal processing circuit
  • MCU microcontroller
  • PLD programmable logic device
  • each step in the above method embodiments may be implemented by a hardware integrated logic circuit in a processor or an instruction in the form of software.
  • the method steps disclosed in conjunction with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • Embodiments of the present application also provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the methods in the foregoing embodiments.
  • At least one item (piece) refers to one or more, and “multiple” refers to two or more.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • at least one item (a) of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple .
  • “A and/or B” is considered to include A alone, B alone, and A+B.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical module division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be acquired according to actual needs to achieve the purpose of the solution in this embodiment.
  • each module unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of software module units.
  • the integrated unit if implemented in the form of a software module unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
  • the functions described in this application may be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Landscapes

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

Abstract

本申请实施例公开了一种建立会话的方法及网络设备,提高边界网关协议BGP会话建立效率。其中方法包括:第一网络设备接收来自第二网络设备的第一消息,所述第一消息包括第一接口对应的配置信息,所述第二网络设备通过所述第一接口与所述第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。

Description

一种建立会话的方法及网络设备
本申请要求于2020年9月25日提交中国国家知识产权局、申请号为202011024146.1、发明名称为“一种建立会话的方法及网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,尤其涉及一种建立会话的方法及网络设备。
背景技术
边界网关协议(Border Gateway Protocol,BGP)是实现自治系统(Autonomous System,AS)内部或之间的网络设备进行路由交换的路由协议。相邻的互通报文的两个网络设备互称对等体(peer)。在对等体相互进行通信之前,需要先建立BGP会话(session)。为了建立BGP会话,传统技术不仅需要预先在网络设备上手动配置自己接口的互联网协议(Internet Protocol,IP)地址,还需要手动配置其对等体的接口的IP地址。在配置完成之后,网络设备根据对等体的接口的IP地址向对等体发起BGP会话建立请求,以建立与对等体之间的BGP会话。然而,传统的BGP会话建立方法效率较低,不适用于目前日益庞大的BGP网络架构。
申请内容
本申请提供了一种建立会话的方法及网络设备,实现提高BGP会话建立效率的目的。
第一方面,提供了一种建立会话的方法,所述方法应用于第一网络设备,具体包括如下步骤:第一网络设备接收来自第二网络设备的第一消息,所述第一消息包括第一接口对应的配置信息。其中,所述第二网络设备通过所述第一接口与所述第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的IP地址。第一接口可以是物理接口,也可以是逻辑接口,因此,第一接口的IP地址可以是与物理接口对应的IP地址,也可以是与逻辑接口对应的IP地址。若本申请提供的方法应用于第四版互联网协议(Internet Protocol version 4,IPv4),那么第一接口的IP地址为IPv4地址;若本申请提供的方法应用于IPv6,那么第一接口的IP地址为IPv6地址。第一接口的IP地址可以是预先配置的,也可以是自动生成的。在得到第一接口对应的配置信息之后,所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的边界网关协议BGP会话。本申请不需要在第一网络设备上手动配置第二网络设备的第一接口的配置信息,而是自动的获取该第一接口的配置信息,从而完成BGP会话的建立,相对于传统技术,不仅节约了人工成本、提高了BGP会话建立的成功率,而且提高了BGP会话的建立效率。
在一种可能的设计中,所述方法还包括:所述第一网络设备向第二网络设备发送第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址,以 使第二网络设备根据第二接口的IP地址完成与第一网络设备之间的BGP会话的建立。
在一种可能的设计中,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。第一网络设备在接收到第一消息之后,基于该指示信息,根据第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
在一种可能的设计中,所述第一消息为邻居发现(Neighbor Discovery,ND)消息。当然,第一消息不限于ND消息,本领域技术人员可以根据实际情况自行设计。
在一种可能的设计中,所述ND消息包括邻居通告(Neighbor Advertisement,NA)消息或路由器通告(Router Advertisement,RA)消息。
在一种可能的设计中,所述第一接口对应的配置信息携带在所述ND消息的类型长度值(type length value,TLV)中,当然,也可以携带在ND消息的其他字段中,本申请不做具体限定。
为了节约网络资源,在一种可能的设计中,在所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话之前,所述方法还包括:所述第一网络设备确认所述第一网络设备的优先级高于所述第二网络设备的优先级。也就是说,若第一网络设备的优先级高于第二网络设备的优先级,则可以由第一网络设备作为主动发起建立BGP会话请求的一方,第二网络设备不主动发起,避免双方都发起造成的资源浪费问题。
作为其中一种可能的实现方式,所述第一消息还包括所述第二网络设备的优先级。第一网络设备可以对第一网络设备的优先级和第一消息中包括的第二网络设备的优先级进行比较,以确认第一网络设备的优先级高于第二网络设备的优先级。
作为另一种可能的实现方式,所述第一网络设备确认所述第一网络设备的优先级高于所述第二网络设备的优先级包括:所述第一网络设备确认第二接口的IP地址的大小大于所述第一接口的IP地址,其中,所述第二接口为所述第一网络设备的接收所述第一消息的接口。也就是说,若第一网络设备确认第二接口的IP地址的大小大于第一接口的IP地址,则第一网络设备确认第一网络设备的优先级高于第二网络设备的优先级。
在一种可能的设计中,所述第一接口对应的配置信息还包括所述第二网络设备的自治系统AS标识。该AS标识可以是自治系统号码(as-number,ASN)。
在一种可能的设计中,本申请提供的方法可以应用于数据中心网络(Data Center Network,DCN)网络,在该场景下,所述第二网络设备为脊Spine节点,所述第一网络设备为叶子Leaf节点;或,所述第二网络设备为叶子Leaf节点,所述第一网络设备为脊Spine节点。当然,本申请提供的方法还可以应用于除DCN网络以外的其他BGP网络,本申请不做具体限定。
如前文所提,第一接口可以是逻辑接口,那么在一种可能的设计中,所述第一接口为环回(loopback)接口。
在一种可能的设计中,所述第一消息的目的地址为IPv6全部节点多播地址(all-nodes multicast address)。也就是说,第二网络设备可以向与第一接口连接的所有对等体(包 括第一网络设备)都发该第一消息,以实现与这些对等体之间建立BGP会话的目的。
第二方面,提供了一种建立会话的方法,该方法应用于第二网络设备,具体包括如下步骤:第二网络设备获取第一接口对应的配置信息,所述第二网络设备通过所述第一接口与第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的IP地址。所述第二网络设备向所述第一网络设备发送第一消息,所述第一消息包括所述第一接口对应的配置信息,所述第一接口对应的配置信息用于所述第一网络设备建立与所述第二网络设备之间的边界网关协议BGP会话。可见,本申请不需要在第一网络设备上手动配置第二网络设备的第一接口的配置信息,而是由第二网络设备向第一网络设备发送第一接口的配置信息,从而完成BGP会话的建立,相对于传统技术,不仅节约了人工成本、提高了BGP会话建立的成功率,而且提高了BGP会话的建立效率
在一种可能的设计中,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
在一种可能的设计中,当第一接口为物理接口时,在所述第二网络设备向所述第一网络设备发送第一消息之前,所述第二网络设备可以确定所述第一接口处于IPv6连接状态,即确认第一接口具备发送第一消息的能力。
在一种可能的设计中,当第一接口为逻辑接口时,在所述第二网络设备向所述第一网络设备发送第一消息之前,所述第二网络设备可以确定所述第一接口对应的物理接口处于IPv6连接状态,即第一接口对应的物理接口具备发送第一消息的能力。
在一种可能的设计中,所述逻辑接口为环回loopback接口。
在一种可能的设计中,所述方法还包括:所述第二网络设备接收来自所述第一网络设备的第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。也就是说,第一网络设备也可以向第二网络设备发送其与第二网络设备连接的接口的配置,以使第二网络设备不需要手动配置就能够获取到该接口的配置信息。
在一种可能的设计中,在接收到第二消息之后,所述方法还包括:所述第二网络设备根据所述第二接口的IP地址监听传输控制协议(Transmission Control Protocol,TCP)端口,以接收来自所述第一网络设备的BGP会话建立请求,并根据所述BGP会话建立请求建立所述BGP会话。
在一种可能的设计中,所述第一消息还包括所述第二网络设备的优先权,该第二网络设备的优先权用于第一网络设备确定是否由第一网络设备主动发起BGP会话建立请求。
在一种可能的设计中,所述第一接口的配置信息还包括所述第二网络设备的自治系统标识。
第三方面,提供了一种第一网络设备,所述第一网络设备包括:接收单元,用于接收来自第二网络设备的第一消息,所述第一消息包括第一接口对应的配置信息,所述第二网络设备通过所述第一接口与所述第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;处理单元,用于根据所述第一接口对应的配置信息建立与所述第二网络设备之间的边界网关协议BGP会话。
在一种可能的设计中,所述第一网络设备还包括:发送单元,用于向第二网络设备发送第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。
在一种可能的设计中,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
在一种可能的设计中,所述处理单元,还用于在根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话之前,确认所述第一网络设备的优先级高于所述第二网络设备的优先级。
在一种可能的设计中,所述第一消息还包括所述第二网络设备的优先级。
在一种可能的设计中,所述处理单元确认所述第一网络设备的优先级高于所述第二网络设备的优先级包括:所述处理单元确认第二接口的IP地址的大小大于所述第一接口的IP地址,所述第二接口为所述第一网络设备的接收所述第一消息的接口。
第四方面,提供了一种第二网络设备,所述第二网络设备包括:处理单元,用于获取第一接口对应的配置信息,所述第二网络设备通过所述第一接口与第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;发送单元,用于向所述第一网络设备发送第一消息,所述第一消息包括所述第一接口对应的配置信息,所述第一接口对应的配置信息用于所述第一网络设备建立与所述第二网络设备之间的边界网关协议BGP会话。
在一种可能的设计中,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
在一种可能的设计中,所述第一接口为物理接口;
所述发送单元,还用于在所述第二网络设备向所述第一网络设备发送第一消息之前,确定所述第一接口处于第六版互联网协议IPv6连接状态。
在一种可能的设计中,所述第一接口为逻辑接口;
所述发送单元,还用于在所述第二网络设备向所述第一网络设备发送第一消息之前,确定所述第一接口对应的物理接口处于IPv6连接状态。
在一种可能的设计中,所述第二网络设备还包括:接收单元,用于接收来自所述第一网络设备的第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。
在一种可能的设计中,所述处理单元,还用于根据所述第二接口的IP地址监听传输控制协议TCP端口,以接收来自所述第一网络设备的BGP会话建立请求,并根据所述BGP会话建立请求建立所述BGP会话。
在一种可能的设计中,所述第一消息还包括所述第二网络设备的优先权。
第二方面至第四方面关于第一消息可能的实现方式以及第一接口的配置信息在第一消息中携带的位置,请参见第一方面的相关描述,此处不再赘述。
第五方面,提供了一种网络系统,该系统包括前述方面提供的第一网络设备和第二网络设备。
第六方面,提供了一种计算机可读存储介质,包括指令、程序或代码,当其在计算机上执行时,使得计算机执行前述方面所述的方法。
第七方面,提供了一种包括计算机指令的计算机程序产品,当该计算机程序产品在网络设备上运行时,使得网络设备执行第一方面、第二方面以及上述两个方面的任意一种可能的实现方式之一提供的方法。
第八方面,提供了一种芯片,包括存储器和处理器。存储器用于存储指令或程序代码。处理器用于从存储器中调用并运行该指令或程序代码,以执行上述第一方面或第一方面的任意一种可能的设计中的方法;或,处理器执行第二方面或第二方面任意一种可能的设计中的方法。
在一种可能的设计中,上述芯片仅包括处理器,处理器用于读取并执行存储器中存储的指令或程序代码,当指令或程序代码被执行时,处理器执行第一方面或第一方面的任意一种可能的设计中的方法;或,处理器执行第二方面或第二方面任意一种可能的设计中的方法;或,处理器执行第三方面或第三方面任意一种可能的设计中的方法。
附图说明
图1为本申请实施例提供的网络架构的结构示意图;
图2为本申请实施例提供的会话建立方法的流程图;
图3为本申请实施例提供的NA消息的格式示意图;
图4为本申请实施例提供的RA消息的格式示意图;
图5为本申请实施例提供的IPv4场景下TLV格式的其中一种示意图;
图6为本申请实施例提供的IPv6场景下TLV格式的其中一种示意图;
图7为本申请实施例提供的第一网络设备700的结构示意图;
图8为本申请实施例提供的第二网络设备800的结构示意图;
图9为本申请实施例提供的网络系统900的结构示意图;
图10为本申请实施例提供的设备1000的结构示意图;
图11为本申请实施例提供的设备1100的结构示意图。
具体实施方式
传统技术中,在建立BGP会话之前,需要预先在网络设备上手动配置网络设备的接口的IP地址和对等体的接口的IP地址。所谓接口的IP地址是指网络设备上与对等体通信的接口对应的IP地址。当同一个网络设备具有多个接口时,不同的接口对应的IP地址可以相同,也可以不同。例如,用户在网络设备上可以配置如下命令:peer ipv6-address as-number,网络设备通过执行该命令,实现在网络设备上配置对等体的第六版互联网协议(Internet Protocol version 6,IPv6)地址和自治系统号码(as-number,ASN)的目的。
例如,参见图1,网络设备101与网络设备102互为对等体,网络设备101具有接口1, 网络设备102具有接口2,网络设备101的接口1与网络设备102的接口2连接。网络设备101在建立与网络设备102之间的BGP会话之前,需要预先在网络设备101上手动配置接口1的IP地址,以及与网络设备102的接口2的IP地址,然后,网络设备101根据接口2的IP地址向网络设备102发送BGP会话建立请求,该BGP会话建立请求包括接口1的IP地址,以建立与网络设备102之间的BGP会话。当然,网络设备102上也可以手动配置接口2的IP地址以及网络设备101的接口1的IP地址,以完成BGP会话的建立。
当对等体数目众多时,就会加大工作人员配置对等体的接口的IP地址的工作量,进而降低BGP会话的建立效率。而且,在配置对等体的接口的IP地址的过程中,有可能会配置错误,导致无法建立BGP会话的问题。
为了克服上述技术问题,本申请实施例提供了一种会话建立方法,该方法不需要在网络设备上手动配置对等体的IP地址就能实现建立BGP会话的目的,不仅节约了人工成本,而且提高了BGP会话建立效率。
参见图2,该图为本申请实施例提供的会话建立方法的流程图。
在图2中,本申请实施例提供的会话建立方法包括如下步骤:
S101:第二网络设备获取第一接口对应的配置信息。
在本申请实施例中,第一网络设备和第二网络设备可以是路由器(router)、交换机(switch)等设备。本申请实施例提供的方法可以应用于数据中心网络(Data Center Network,DCN)网络,在该应用场景下,第一网络设备可以例如为脊(spine)节点,第二网络设备可以例如为叶子(leaf)节点。或者,第一网络设备为叶子节点,第二网络设备为脊节点。当然,第一网络设备和第二网络设备不限于属于DCN网络架构,也可以适用于其他BGP网络架构。
所述第二网络设备通过所述第一接口与第一网络设备通信。其中,第一接口可以是物理接口,也可以是逻辑接口。如果第一接口为逻辑接口,那么第一接口可以为环回(loopback)接口,第二网络设备通过与环回接口对应的物理接口连接第一网络设备。
其中,第二网络设备可以例如是图1中的网络设备101,第一网络设备可以例如为网络设备102,第一接口可以是上述接口1。
在本申请实施例中,第一网络设备获取第一接口对应的配置信息,所述第一接口对应的配置信息包括所述第一接口的IP地址,所述第一接口对应的配置信息用于所述第一网络设备建立与所述第二网络设备之间的BGP会话。
如前文所提,第一接口可以是物理接口,也可以是逻辑接口,因此,第一接口的IP地址可以是与物理接口对应的IP地址,也可以是与逻辑接口对应的IP地址。
若本申请实施例提供的方法应用于第四版互联网协议(Internet Protocol version 4,IPv4),那么第一接口的IP地址为IPv4地址;若本申请实施例提供的方法应用于IPv6,那么第一接口的IP地址为IPv6地址。第一接口的IP地址可以是预先配置的,也可以是自动生成的。
若第一接口的IP地址为预先配置,且第一接口为物理接口,那么在实际应用中,用户可以在第二网络设备上配置如下命令:ip address<ip-address>bgp auto-discovery, 该命令的含义是将该ip-address指定为建立单跳BGP会话的本地源地址。通过执行该命令,第二网络设备可以完成配置第一接口的IP地址的目的。
若第一接口的IP地址为预先配置,且第一接口为逻辑接口,那么在实际应用中,用户可以在第二网络设备上配置如下命令:ip address<ip-address>bgp auto-discovery outbound<ifname>,该命令的含义是将该ip-address指定为建立单跳BGP会话的IP地址,<ifname>表示与第一接口对应的物理接口。通过执行该命令,第二网络设备可以完成配置第一接口的IP地址的目的。
可选的,第一接口对应的配置信息还包括第二网络设备的AS标识、第二网络设备的优先级等信息中的一种或多种。其中,第二网络设备的优先级用于确定BGP会话请求的发起方,下文详细介绍,此处不再赘述。
S102:第二网络设备向所述第一网络设备发送第一消息。
在本申请实施例中,第一消息可以但不限于是邻居发现(Neighbor Discovery,ND)消息,具体可以为ND消息中的邻居通告(Neighbor Advertisement,NA)消息或路由器通告(Router Advertisement,RA)消息,该NA消息或RA消息可以是自发(unsolicited)的消息。在本申请实施例中,所述第一消息中携带所述第一接口对应的配置信息。由于第一接口对应的配置信息包括第一接口的IP地址,所以,第二网络设备通过向第一网络设备发送第一消息,实现向第一网络设备通告第一接口的IP地址的目的,以便第一网络设备能够根据第一接口的IP地址建立与第二网络设备之间的BGP会话。
除了第一接口对应的配置信息以外,可选的,第一消息还包括指示信息,该指示信息用于指示第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
在本申请实施例中,第一接口的配置信息和指示信息可以携带在第一消息的类型长度值(type length value,TLV)中。
参见图3,该图为NA消息的格式示意图。在该图中,NA消息包括类型(type)字段、编码(code)字段、校验码(checksum)字段、R字段、S字段、O字段、保留(reserved)字段、目的地址(target address)字段以及可选(options)字段。其中,可选字段即为TLV,第一接口的配置信息和指示信息可以携带在该TLV中。
参见图4,该图为RA消息的格式示意图。在该图中,RA消息包括type字段、code字段、checksum字段、当前跳数限制(Cur Hop Limit)字段、M字段、O字段、reserved字段、路由器使用期限(router lifetime)字段、可达时间(reachable time)字段、重传计时器(retrans timer)字段和options字段。其中,options字段即为TLV,第一接口的配置信息和指示信息可以携带在该TLV中。
若本申请实施例应用于IPv4场景,那么参见图5,该图为TLV格式的其中一种示意图。在该图中,TLV包括type字段、length字段、ASN type字段、IPv4address字段、ASN字段以及reserved字段。其中,type字段用于携带上述指示信息,该字段可以占用1比特(byte,B)。length字段的值为TLV的长度,该字段可以占用1比特。ASN type的值为ASN的类型,例如可以是两字节ASN或四字节ASN,该字段可以占用1比特。IPv4address 字段的值为第一接口的IPv4地址,该字段可以占用4比特。ASN字段可以携带第一接口的自治系统标识,该字段可以占用2比特或4比特。若第一接口还包括其他配置信息,那么该其他配置信息可以携带在reserved字段中;若第一接口不包括其他配置信息,那么该TLV可以没有该reserved字段。
若本申请实施例应用于IPv6场景,那么参见图6,该图为TLV格式的其中一种示意图。在该图中,TLV包括type字段、length字段、ASN type字段、IPv6address字段、ASN字段以及reserved字段。该图6所述的TLV格式与图5所示的TLV格式的区别之处在于:图6的TLV的第一接口的IP地址为IPv6地址,携带在IPv6地址字段中。其他字段请参见上文对图5的描述,此处不再赘述。
可以理解的是,上述TLV格式、第一接口的配置信息和指示信息在TLV中携带的位置并不构成对本申请技术方案的限定,本领域技术人员还可以根据具体应用自行设计,本申请不再赘述。
如果第一消息为ND消息,那么第二网络设备在向第一网络设备发送第一消息之前,第二网络设备可以先确认是否具备向第一网络设备发送第一消息的能力。由于ND消息只能基于IPv6协议发送,所以若第一接口为物理接口,那么第二网络设备可以通过判断第一接口是否处于IPv6连接状态来确认是否具有发送第一消息的能力。如果第一接口处于IPv6连接状态,则认为第二网络设备的第一接口具有发送第一消息的能力,可以执行通过第一接口向第二网络设备发送第一消息的动作;反之则不发送。若第一接口为逻辑接口,例如上述环回接口,那么第二网络设备可以通过判断第一接口对应的物理接口是否处于IPv6连接状态来确认是否具有发送第一消息的能力。如果第一接口对应的物理接口处于IPv6连接状态,则认为第二网络设备的第一接口具有发送第一消息的能力,可以执行通过第一接口向第二网络设备发送第一消息的动作,也就是通过第一接口对应的物理接口向第二网络设备发送第一消息;反之则不发送。
此外,若本申请实施例提供的方法应用于IPv6场景,那么第一消息的目的地址可以为IPv6全部节点多播地址(all-nodes multicast address)(例如FF02::1),也就是说,第二网络设备可以向与第一接口通信的所有对等体(包括第一网络设备)发送第一消息,即向这些对等体通告第二网络设备的第一接口的配置信息,以使这些对等体能够分别根据该第一接口的配置信息建立与第二网络设备的BGP会话。
在向与第一接口通信的所有对等体(包括第一网络设备)发送第一消息之前,可以在第二网络设备中配置如下命令:peer<out-ifname>auto-discovery,该命令的含义是自动发现与第一接口通信的所有对等体。其中,若第一接口为逻辑接口,那么<out-ifname>表示与该第一接口对应的物理接口,即上述<ifname>;如果第一接口为物理接口,那么该<out-ifname>表示该物理接口。通过执行该命令,第二网络设备可以获取与第一接口通信的对等体(包括第一网络设备)的信息(不包括对等体的IP地址),并根据该对等体的信息执行后续向这些对等体发送第一消息的动作。
此外,第二网络设备上还可以配置如下命令:peer<out-ifname>description<description-text>,该命令表示可以建立第一接口 和上述获取到的对等体信息之间的对应关系,通过执行该命令,第二网络设备可以建立并存储该对应关系,以使第二网络设备能够根据该对应关系向与第一接口对应的对等体发送第一消息。
可选的,第二网络设备还可以配置如下命令:peer<out-ifname>tcp-mss<tcp-mss-number>,该命令用于配置BGP会话的传输控制协议(Transmission Control Protocol,TCP)连接的最大报文长度(Maximum Segment Size,MSS)参数,该参数用于第二网络设备建立与第一网络设备之间的TCP连接。
S103:第一网络设备接收来自第二网络设备的第一消息。
S104:第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
在本申请实施例中,第一网络设备接收到来自第二网络设备的第一消息,由于该第一消息中携带第一接口的配置信息,所以第一网络设备就能够根据第一接口对应的配置信息建立与第二网络设备之间的BGP会话。也就是说,本申请实施例不需要在第一网络设备上手动配置第二网络设备的第一接口的配置信息,而是自动的获取该第一接口的配置信息,从而完成BGP会话的建立,相对于传统技术,不仅节约了人工成本、提高了BGP会话建立的成功率,而且提高了BGP会话的建立效率。
当第一消息中还包括指示信息时,第一网络设备可以基于该指示信息,根据第一接口对应的配置信息建立与第二网络设备之间的BGP会话。例如,如果该指示信息携带在第一消息的TLV的type字段中,那么第一网络设备根据该type字段的值获取value中包括的第一接口的配置信息,从而执行后续建立BGP会话的步骤。
在实际应用中,第一网络设备也可以向第二网络设备发送第二消息,第二消息携带第一网络设备的配置信息,该第一网络设备的配置信息包括第二接口的IP地址,第二接口为第一网络设备的与第二网络设备通信的接口,也就是接收第一消息的接口。这样,第二网络设备也可以根据第二接口的配置信息与第一网络设备建立BGP会话。第二接口的配置信息与第一接口的配置信息包括的内容类似,即例如还包括第一网络设备的自治系统标识等,此处不再赘述。第一网络设备发送第二消息之前可以配置如第二网络设备配置的上述命令类似的命令,此处不再赘述。
第二网络设备还可以根据第二接口的IP地址监听TCP端口,以接收来自第一网络设备的BGP会话建立请求,完成BGP会话建立动作。也就是说,在该种实现方式下,为了建立BGP会话,第二网络设备和第一网络设备都需要向对方发送各自接口的IP地址。
为了避免第一网络设备和第二网络设备都向对方发起BGP会话建立请求而导致的资源浪费问题,在实际应用中,第一网络设备和第二网络设备可以根据各自的优先权确定由谁发起BGP会话建立请求。假设第一网络设备的优先级比第二网络设备的优先级高,那么第一网络设备可以为向对方发起BGP会话建立请求的网络设备。当然,还可以设定令优先级较低的网络设备为发起BGP会话建立请求的网络设备,本申请不做具体限定。为了描述方面,下面以优先级较高的网络设备为发起BGP会话建立请求的网络设备为例进行介绍。
以第一网络设备为例,作为一种可能的实现方式,第一网络设备可以预先通过配置获 取到第一网络设备的优先级,或者接收来自控制器等设备下发的第一网络设备的优先级,并进行存储。同理,第二网络设备也可以预先通过配置获取到第二网络设备的优先级,或接收来自控制器等设备下发的第二网络设备的优先级,并进行存储。第二网络设备可以在第一消息中携带第二网络设备的优先级。例如,在图5或图6中,TLV格式还包括优先权(priority)字段,该优先权字段用于携带第二网络设备的优先级。当第一网络设备接收到第一消息之后,比较第一网络设备的优先级和第二网络设备的优先级,得到比较结果。若比较结果为第一网络设备的优先级高于第二网络设备的优先级,那么第一网络设备根据第一接口的IP地址向第二网络设备发送BGP会话建立请求,以建立与第二网络设备之间的BGP会话。
作为另外一种可能的实现方式,第一网络设备可以根据第一接口的IP地址和第二接口的IP地址的大小确定第一网络设备的优先级和第二网络设备的优先级的大小。例如,第一接口的IP地址大于第二接口的IP地址,那么可以认为第一网络设备的优先级高于第二网络设备的优先级。当然,也可以反过来,即认为第一网络设备的优先级低于第二网络设备的优先级,本申请不做具体限定。为了描述简便,下面均以前者为例进行介绍。
当第一网络设备接收到第一消息之后,可以比较第一接口的IP地址和第二接口的IP地址的大小,若第一接口的IP地址大于第二接口的IP地址,那么由第一网络设备向第二网络设备发送BGP会话建立请求,以建立与第二网络设备之间的BGP会话;若第一接口的IP地址小于第二接口的IP地址,则放弃建立与第二网络设备之前的BGP会话,若此前未向第二网络设备发送第二消息,则可以向第二网络设备发送第二消息,以便由第二网络设备发起建立与第一网络设备之间的BGP会话。
在本申请实施例中,比较第一接口的IP地址和第二接口的IP地址之间的大小可以有多种实现方式:
作为其中一种可能的实现方式,可以按照预设顺序逐个比较第一接口的IP地址的字节和第二接口的IP地址的字节。该预设顺序可以是由高位到低位的顺序,也可以是由低位到高位的顺序。若出现第一接口的IP地址的某个字节与第二接口的IP地址相同位置的字节大小不相同的情况,则可以根据字节的大小来确定IP地址的大小。
例如,假设第一接口的IP地址为100.4.4.6,换算成32位二进制数则为01100100.00000100.00000011.00000110。第二接口的IP地址为100.3.5.6,换算成32位二进制数则为01100100.00000011.00000101.00000110。按照从高位到低位的顺序,首先确定第一接口的IP地址的第一个字节和第二接口的IP地址的第一个字节的大小,由于二者相同,均为01100100,那么再确定第一接口的IP地址的第二个字节00000100和第二接口的IP地址的第二个字节00000011的大小。显然,前者大于后者,所以可以确定第一接口的IP地址大于第二接口的IP地址。
作为另外一种可能的实现方式,可以对第一接口的IP地址和第二接口的IP地址分别进行哈希(hash),得到第一哈希值和第二哈希值,第一哈希值为与第一接口的IP地址对应的哈希值,第二哈希值为与第二接口的IP地址对应的哈希值。然后比较第一哈希值和第二哈希值的大小,若第一哈希值大于第二哈希值,那么可以认为第一接口的IP地址大于第 二接口的IP地址。反之亦然。
当然,本申请实施例不限于上述两种可能的实现方式,本领域技术人员可以根据实际情况自行确定。
此外,作为一种可能的实现,第一网络设备在接收到第一消息之后,可以利用安全邻居发现(SEcure Neighbor Discovery,SEND)技术对该第一消息的来源进行验证,以减少第一网络设备被攻击的可能性。具体请参见RFC3971,此处不再赘述。
图7示出了上述实施例中所涉及的第一网络设备的一种可能的结构示意图,该第一网络设备700可以实现图2所示实例中第一网络设备的功能。参阅图7,该网络设备700包括:接收单元701和处理单元702。这些单元可以执行上述方法示例中第一网络设备的相应功能。接收单元701,用于支持第一网络设备700执行图2中S103;处理单元702,用于支持第一网络设备700执行图2中的S104;和/或本文所描述的技术中第一网络设备执行的其它过程。例如,接收单元701,用于执行上述方法实施例中第一网络设备执行的各种接收操作;处理单元702,用于执行上述方法实施例中第一网络设备各种处理的操作。举例来说,接收单元701,用于接收来自第二网络设备的第一消息,所述第一消息包括第一接口对应的配置信息;处理单元702,用于根据所述第一接口对应的配置信息建立与所述第二网络设备之间的边界网关协议BGP会话。具体执行过程请参考上述图2所示实施例中相应步骤的详细描述,这里不再一一赘述。
图8示出了上述实施例中所涉及的第二网络设备的一种可能的结构示意图,该第二网络设备800可以实现图2所示实例中第二网络设备的功能。参阅图8,该网络设备800包括:处理单元801和发送单元802。这些单元可以执行上述方法示例中第二网络设备的相应功能。处理单元801,用于支持第二网络设备800执行图2中S101;发送单元702,用于支持第二网络设备800执行图2中的S102;和/或本文所描述的技术中第二网络设备执行的其它过程。举例来说,处理单元801,用于获取第一接口对应的配置信息;发送单元802,用于向所述第一网络设备发送第一消息,所述第一消息包括所述第一接口对应的配置信息。具体执行过程请参考上述图2所示实施例中相应步骤的详细描述,这里不再一一赘述。
需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。本申请实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。例如,上述实施例中,获取单元和处理单元可以是同一个单元,也不同的单元。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
参阅图9所示,本申请实施例提供了一种网络系统900,该系统900用于实现前述方法实施例中的建立会话的方法。该系统900包括网络设备901和网络设备902。网络设备 901可以实现图2所示的实施例中的第一网络设备或图7中的第一网络设备700的功能,网络设备902可以实现图2所示的实施例中第二网络设备或图8中的第二网络设备800的功能。具体执行过程请参考上述图2所示实施例中相应步骤的详细描述,这里不再一一赘述。
图10是本申请实施例提供的一种设备1000的结构示意图。图7中的网络设备700和图8中的网络设备800可以通过图10所示的设备来实现。参见图10,该设备1000包括至少一个处理器1001,通信总线1002以及至少一个网络接口1004,可选地,该设备1000还可以包括存储器1003。
处理器1001可以是一个通用中央处理器(central processing unit,CPU)、特定应用集成电路(application-specific integrated circuit,ASIC)或一个或多个用于控制本申请方案程序执行的集成电路(integrated circuit,IC)。处理器可以用于对报文进行处理,以实现本申请实施例中提供的发送报文的方法。
比如,当图2中的第一网络设备通过图10所示的设备来实现时,该处理器可以用于接收来自第二网络设备的第一消息,并根据所述第一消息中第一接口对应的配置信息建立与所述第二网络设备之间的边界网关协议BGP会话,具体功能实现可参考方法实施例中对应第一网络设备的处理部分。又比如,当图2中的第二网络设备通过图10所示的设备来实现时,该处理器可以用于获取第一接口对应的配置信息,并向所述第一网络设备发送包括第一接口对应的配置信息的第一消息,具体功能实现可参考方法实施例中第二网络设备的处理部分。
通信总线1002用于在处理器1001、网络接口1004和存储器1003之间传送信息。
存储器1003可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,存储器1003还可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器1003可以是独立存在,通过通信总线1002与处理器1001相连接。存储器1003也可以和处理器1001集成在一起。
可选地,存储器1003用于存储执行本申请方案的程序代码或指令,并由处理器1001来控制执行。处理器1001用于执行存储器1003中存储的程序代码或指令。程序代码中可以包括一个或多个软件模块。可选地,处理器1001也可以存储执行本申请方案的程序代码或指令,在这种情况下处理器1001不需要到存储器1003中读取程序代码或指令。
网络接口1004可以为收发器一类的装置,用于与其它设备或通信网络通信,通信网络可以为以太网、无线接入网(RAN)或无线局域网(wireless local area networks,WLAN)等。在本申请实施例中,网络接口1004可以用于接收分段路由网络中的其他节点发送的报文,也可以向分段路由网络中的其他节点发送报文。网络接口1004可以为以太接口 (ethernet)接口、快速以太(fast ethernet,FE)接口或千兆以太(gigabit ethernet,GE)接口等。
在具体实现中,作为一种实施例,设备1000可以包括多个处理器,例如图10中所示的处理器1001和处理器405。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
图11是本申请实施例提供的一种设备1100的结构示意图。图2中的第一网络设备和第二网络设备可以通过图11所示的设备来实现。参见图11所示的设备结构示意图,设备1100包括主控板和一个或多个接口板。主控板与接口板通信连接。主控板也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板包括CPU和存储器,主控板负责对设备1100中各个组件的控制和管理,包括路由计算、设备管理和维护功能。接口板也称为线处理单元(line processing unit,LPU)或线卡(line card),用于接收和发送报文。在一些实施例中,主控板与接口板之间或接口板与接口板之间通过总线通信。在一些实施例中,接口板之间通过交换网板通信,在这种情况下设备1100也包括交换网板,交换网板与主控板、接口板通信连接,交换网板用于转发接口板之间的数据,交换网板也可以称为交换网板单元(switch fabric unit,SFU)。接口板包括CPU、存储器、转发引擎和接口卡(interface card,IC),其中接口卡可以包括一个或多个网络接口。网络接口可以为Ethernet接口、FE接口或GE接口等。CPU与存储器、转发引擎和接口卡分别通信连接。存储器用于存储转发表。转发引擎用于基于存储器中保存的转发表转发接收到的报文,如果接收到的报文的目的地址为设备1100的IP地址,则将该报文发送给主控板或接口板的CPU进行处理;如果接收到的报文的目的地址不是设备1100的IP地址,则根据该目的地查转发表,如果从转发表中查找到该目的地址对应的下一跳和出接口,将该报文转发到该目的地址对应的出接口。转发引擎可以是网络处理器(network processor,NP)。接口卡也称为子卡,可安装在接口板上,负责将光电信号转换为数据帧,并对数据帧进行合法性检查后转发给转发引擎处理或接口板CPU。在一些实施例中,CPU也可执行转发引擎的功能,比如基于通用CPU实现软转发,从而接口板中不需要转发引擎。在一些实施例中,转发引擎可以通过ASIC或现场可编程门阵列(field programmable gate array,FPGA)实现。在一些实施例中,存储转发表的存储器也可以集成到转发引擎中,作为转发引擎的一部分。
本申请实施例还提供一种芯片系统,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述图2所示实施例中第一网络设备或第二网络设备的方法。
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。 可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。
示例性的,该芯片系统可以是FPGA,可以是ASIC,还可以是系统芯片(system on chip,SoC),还可以是CPU,还可以是NP,还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行前述实施例中的方法。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包括,例如,包括了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本申请中“至少一项(个)”是指一个或者多个,“多个”是指两个或两个以上。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。本申请中认为“A和/或B”包括单独A,单独B,和A+B。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑模块划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要获取其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各模块单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件模块单元的形式实现。
所述集成的单元如果以软件模块单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本申请的具体实施方式而已。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (51)

  1. 一种建立会话的方法,其特征在于,所述方法包括:
    第一网络设备接收来自第二网络设备的第一消息,所述第一消息包括第一接口对应的配置信息,所述第二网络设备通过所述第一接口与所述第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;
    所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的边界网关协议BGP会话。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述第一网络设备向第二网络设备发送第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一消息为邻居发现ND消息。
  5. 根据权利要求4所述的方法,其特征在于,所述ND消息包括邻居通告NA消息或路由器通告RA消息。
  6. 根据权利要求4或5所述的方法,其特征在于,所述第一接口对应的配置信息携带在所述ND消息的类型长度值TLV中。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,在所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话之前,所述方法还包括:
    所述第一网络设备确认所述第一网络设备的优先级高于所述第二网络设备的优先级。
  8. 根据权利要求7所述的方法,其特征在于,所述第一消息还包括所述第二网络设备的优先级。
  9. 根据权利要求7所述的方法,其特征在于,所述第一网络设备确认所述第一网络设备的优先级高于所述第二网络设备的优先级包括:
    所述第一网络设备确认第二接口的IP地址的大小大于所述第一接口的IP地址,所述第二接口为所述第一网络设备的接收所述第一消息的接口。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述第一接口对应的配置信息还包括所述第二网络设备的自治系统标识。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述第二网络设备为脊Spine节点,所述第一网络设备为叶子Leaf节点;或,
    所述第二网络设备为叶子Leaf节点,所述第一网络设备为脊Spine节点。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述第一接口为环回loopback接口。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述第一消息的目的地址为 第六版互联网协议IPv6全部节点多播地址all-nodes multicast address。
  14. 一种建立会话的方法,其特征在于,所述方法包括:
    第二网络设备获取第一接口对应的配置信息,所述第二网络设备通过所述第一接口与第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;
    所述第二网络设备向所述第一网络设备发送第一消息,所述第一消息包括所述第一接口对应的配置信息,所述第一接口对应的配置信息用于所述第一网络设备建立与所述第二网络设备之间的边界网关协议BGP会话。
  15. 根据权利要求14所述的方法,其特征在于,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
  16. 根据权利要求14或15所述的方法,其特征在于,所述第一消息为邻居发现ND消息。
  17. 根据权利要求16所述的方法,其特征在于,所述ND消息包括邻居通告NA消息或路由器通告RA消息。
  18. 根据权利要求16或17所述的方法,其特征在于,所述第一接口的配置信息携带在所述ND消息的类型长度值TLV中。
  19. 根据权利要求16-18任一项所述的方法,其特征在于,所述第一接口为物理接口;
    在所述第二网络设备向所述第一网络设备发送第一消息之前,所述方法还包括:
    所述第二网络设备确定所述第一接口处于第六版互联网协议IPv6连接状态。
  20. 根据权利要求16-18任一项所述的方法,其特征在于,所述第一接口为逻辑接口;
    在所述第二网络设备向所述第一网络设备发送第一消息之前,所述方法还包括:
    所述第二网络设备确定所述第一接口对应的物理接口处于IPv6连接状态。
  21. 根据权利要求20所述的方法,其特征在于,所述逻辑接口为环回loopback接口。
  22. 根据权利要求14-21任一项所述的方法,其特征在于,所述方法还包括:
    所述第二网络设备接收来自所述第一网络设备的第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。
  23. 根据权利要求22所述的方法,其特征在于,所述方法还包括:
    所述第二网络设备根据所述第二接口的IP地址监听传输控制协议TCP端口,以接收来自所述第一网络设备的BGP会话建立请求,并根据所述BGP会话建立请求建立所述BGP会话。
  24. 根据权利要求14-23任一项所述的方法,其特征在于,所述第一消息还包括所述第二网络设备的优先权。
  25. 根据权利要求14-24任一项所述的方法,其特征在于,所述第一接口的配置信息还包括所述第二网络设备的自治系统标识。
  26. 根据权利要求14-25任一项所述的方法,其特征在于,所述第一网络设备为脊Spine 节点,所述第二网络设备为叶子Leaf节点;或,
    所述第一网络设备为叶子Leaf节点,所述第二网络设备为脊Spine节点。
  27. 根据权利要求14-26任一项所述的方法,其特征在于,所述第一消息的目的地址为第六版互联网协议IPv6全部节点多播地址all-nodes multicast address。
  28. 一种第一网络设备,其特征在于,所述第一网络设备包括:
    接收单元,用于接收来自第二网络设备的第一消息,所述第一消息包括第一接口对应的配置信息,所述第二网络设备通过所述第一接口与所述第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;
    处理单元,用于根据所述第一接口对应的配置信息建立与所述第二网络设备之间的边界网关协议BGP会话。
  29. 根据权利要求28所述的第一网络设备,其特征在于,所述第一网络设备还包括:
    发送单元,用于向第二网络设备发送第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。
  30. 根据权利要求28或29所述的第一网络设备,其特征在于,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
  31. 根据权利要求28-30任一项所述的第一网络设备,其特征在于,所述第一消息为邻居发现ND消息。
  32. 根据权利要求31所述的第一网络设备,其特征在于,所述ND消息包括邻居通告NA消息或路由器通告RA消息。
  33. 根据权利要求31或32所述的第一网络设备,其特征在于,所述第一接口对应的配置信息携带在所述ND消息的类型长度值TLV中。
  34. 根据权利要求28-33任一项所述的第一网络设备,其特征在于,
    所述处理单元,还用于在根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话之前,确认所述第一网络设备的优先级高于所述第二网络设备的优先级。
  35. 根据权利要求34所述的第一网络设备,其特征在于,所述第一消息还包括所述第二网络设备的优先级。
  36. 根据权利要求34所述的第一网络设备,其特征在于,所述处理单元确认所述第一网络设备的优先级高于所述第二网络设备的优先级包括:
    所述处理单元确认第二接口的IP地址的大小大于所述第一接口的IP地址,所述第二接口为所述第一网络设备的接收所述第一消息的接口。
  37. 根据权利要求28-36任一项所述的第一网络设备,其特征在于,所述第二网络设备为脊Spine节点,所述第一网络设备为叶子Leaf节点;或,
    所述第二网络设备为叶子Leaf节点,所述第一网络设备为脊Spine节点。
  38. 一种第二网络设备,其特征在于,所述第二网络设备包括:
    处理单元,用于获取第一接口对应的配置信息,所述第二网络设备通过所述第一接口 与第一网络设备连接,所述第一接口对应的配置信息包括所述第一接口的互联网协议IP地址;
    发送单元,用于向所述第一网络设备发送第一消息,所述第一消息包括所述第一接口对应的配置信息,所述第一接口对应的配置信息用于所述第一网络设备建立与所述第二网络设备之间的边界网关协议BGP会话。
  39. 根据权利要求38所述的第二网络设备,其特征在于,所述第一消息还包括指示信息,所述指示信息用于指示所述第一网络设备根据所述第一接口对应的配置信息建立与所述第二网络设备之间的BGP会话。
  40. 根据权利要求38或39所述的第二网络设备,其特征在于,所述第一消息为邻居发现ND消息。
  41. 根据权利要求40所述的第二网络设备,其特征在于,所述ND消息包括邻居通告NA消息或路由器通告RA消息。
  42. 根据权利要求40或41所述的第二网络设备,其特征在于,所述第一接口的配置信息携带在所述ND消息的类型长度值TLV中。
  43. 根据权利要求40-42任一项所述的第二网络设备,其特征在于,所述第一接口为物理接口;
    所述发送单元,还用于在所述第二网络设备向所述第一网络设备发送第一消息之前,确定所述第一接口处于第六版互联网协议IPv6连接状态。
  44. 根据权利要求40-42任一项所述的第二网络设备,其特征在于,所述第一接口为逻辑接口;
    所述发送单元,还用于在所述第二网络设备向所述第一网络设备发送第一消息之前,确定所述第一接口对应的物理接口处于IPv6连接状态。
  45. 根据权利要求38-44任一项所述的第二网络设备,其特征在于,所述第二网络设备还包括:
    接收单元,用于接收来自所述第一网络设备的第二消息,所述第二消息包括第二接口对应的配置信息,所述第一网络设备通过所述第二接口与所述第二网络设备连接,所述第二接口对应的配置信息包括所述第二接口的IP地址。
  46. 根据权利要求45所述的第二网络设备,其特征在于,
    所述处理单元,还用于根据所述第二接口的IP地址监听传输控制协议TCP端口,以接收来自所述第一网络设备的BGP会话建立请求,并根据所述BGP会话建立请求建立所述BGP会话。
  47. 根据权利要求38-46任一项所述的第二网络设备,其特征在于,所述第一消息还包括所述第二网络设备的优先权。
  48. 根据权利要求38-47任一项所述的第二网络设备,其特征在于,所述第一网络设备为脊Spine节点,所述第二网络设备为叶子Leaf节点;或,
    所述第一网络设备为叶子Leaf节点,所述第二网络设备为脊Spine节点。
  49. 一种网络系统,其特征在于,所述网络系统包括如权利要求28-37任一项所述的第 一网络设备和如权利要求38-48任一项所述的第二网络设备。
  50. 一种计算机可读存储介质,其特征在于,包括指令、程序或代码,当其在计算机上执行时,使得所述计算机执行如权利要求1至27任一权利要求所述的方法。
  51. 一种芯片,其特征在于,包括存储器和处理器,存储器用于存储指令或程序代码,处理器用于从存储器中调用并运行该指令或程序代码,以执行如权利要求1至27任一权利要求所述的方法。
PCT/CN2021/111935 2020-09-25 2021-08-11 一种建立会话的方法及网络设备 WO2022062744A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21871121.6A EP4207708A4 (en) 2020-09-25 2021-08-11 METHOD FOR ESTABLISHING A SESSION AND NETWORK DEVICE
US18/189,420 US20230231803A1 (en) 2020-09-25 2023-03-24 Session establishment method and network device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011024146.1A CN114338768A (zh) 2020-09-25 2020-09-25 一种建立会话的方法及网络设备
CN202011024146.1 2020-09-25

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/189,420 Continuation US20230231803A1 (en) 2020-09-25 2023-03-24 Session establishment method and network device

Publications (1)

Publication Number Publication Date
WO2022062744A1 true WO2022062744A1 (zh) 2022-03-31

Family

ID=80846172

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/111935 WO2022062744A1 (zh) 2020-09-25 2021-08-11 一种建立会话的方法及网络设备

Country Status (4)

Country Link
US (1) US20230231803A1 (zh)
EP (1) EP4207708A4 (zh)
CN (1) CN114338768A (zh)
WO (1) WO2022062744A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468368A (zh) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 配置bgp邻居的方法及装置
US20190245784A1 (en) * 2018-02-05 2019-08-08 Juniper Networks, Inc. Prioritized formation of bgp sessions
CN110661714A (zh) * 2018-06-30 2020-01-07 华为技术有限公司 发送bgp消息的方法、接收bgp消息的方法以及设备
CN110830598A (zh) * 2018-08-07 2020-02-21 华为技术有限公司 Bgp会话建立、发送接口地址和别名的方法及网络设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10476817B2 (en) * 2017-05-31 2019-11-12 Juniper Networks, Inc. Transport LSP setup using selected fabric path between virtual nodes
JP2022052741A (ja) * 2020-09-23 2022-04-04 ノキア ソリューションズ アンド ネットワークス オサケユキチュア 境界ゲートウェイプロトコルのためのターゲットネイバー探索

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468368A (zh) * 2014-11-10 2015-03-25 杭州华三通信技术有限公司 配置bgp邻居的方法及装置
US20190245784A1 (en) * 2018-02-05 2019-08-08 Juniper Networks, Inc. Prioritized formation of bgp sessions
CN110661714A (zh) * 2018-06-30 2020-01-07 华为技术有限公司 发送bgp消息的方法、接收bgp消息的方法以及设备
CN110830598A (zh) * 2018-08-07 2020-02-21 华为技术有限公司 Bgp会话建立、发送接口地址和别名的方法及网络设备

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
K. PATEL ARRCUS, INC. A. LINDEM CISCO SYSTEMS S. ZANDI G. DAWRA LINKEDIN: "Usage and Applicability of Link State Vector Routing in Data Centers; draft-ietf-lsvr-applicability-06.txt", USAGE AND APPLICABILITY OF LINK STATE VECTOR ROUTING IN DATA CENTERS; DRAFT-IETF-LSVR-APPLICABILITY-06.TXT; INTERNET-DRAFT: LSVR, INTERNET ENGINEERING TASK FORCE, IETF; STANDARDWORKINGDRAFT, INTERNET SOCIETY (ISOC) 4, RUE DES FALAISES CH- 1205 GENEVA, no. 06, 26 July 2020 (2020-07-26), Internet Society (ISOC) 4, rue des Falaises CH- 1205 Geneva, Switzerland , pages 1 - 14, XP015140936 *
See also references of EP4207708A4

Also Published As

Publication number Publication date
US20230231803A1 (en) 2023-07-20
EP4207708A4 (en) 2023-12-20
EP4207708A1 (en) 2023-07-05
CN114338768A (zh) 2022-04-12

Similar Documents

Publication Publication Date Title
US11522790B2 (en) Multipath data transmission processing method and network device
CN105763359B (zh) 用于交织结构交换机集群的分布式双向转发检测协议(d-bfd)
EP2962431B1 (en) Spanning tree in fabric switches
US20120201246A1 (en) Multicast Traffic Management in a Network Interface
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
US20150229724A1 (en) Virtual extensible lan tunnel keepalives
CN102801623B (zh) 一种多接入数据转发方法及设备
US11153207B2 (en) Data link layer-based communication method, device, and system
US20130003729A1 (en) Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
WO2017114153A1 (zh) 基于业务功能链sfc的通信方法和装置
US10581735B2 (en) Packet processing method and apparatus
US20110305143A1 (en) Maximum transmission unit (mtu) size discovery mechanism and method for data-link layers
WO2022022366A1 (zh) 隧道bfd会话建立方法及装置
US9503418B2 (en) Method and apparatus for obtaining remote IP address
WO2021184862A1 (zh) 一种报文发送方法、第一网络设备及网络系统
WO2022062744A1 (zh) 一种建立会话的方法及网络设备
WO2023284231A1 (zh) 报文处理方法和报文处理系统
CN106034078B (zh) 一种减少pim协议dr变化的方法及系统
US10715349B2 (en) PPPoE extension over layer 2 switch embedding PPPoE agent
JP5657505B2 (ja) ネットワークシステム、中継装置、通信方法、中継方法及び中継プログラム
WO2022228293A1 (zh) 一种发送报文的方法、处理报文的方法及设备
WO2022127154A1 (zh) 一种路由通告的方法及设备
WO2022160666A1 (zh) 一种信息泛洪方法及设备
WO2023078144A1 (zh) 报文处理方法、装置及系统
WO2022083610A1 (zh) 一种ip地址分配方法、装置及系统

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2021871121

Country of ref document: EP

Effective date: 20230330

NENP Non-entry into the national phase

Ref country code: DE