WO2016011850A1 - 一种发送bgp信息的网络设备和方法 - Google Patents

一种发送bgp信息的网络设备和方法 Download PDF

Info

Publication number
WO2016011850A1
WO2016011850A1 PCT/CN2015/080438 CN2015080438W WO2016011850A1 WO 2016011850 A1 WO2016011850 A1 WO 2016011850A1 CN 2015080438 W CN2015080438 W CN 2015080438W WO 2016011850 A1 WO2016011850 A1 WO 2016011850A1
Authority
WO
WIPO (PCT)
Prior art keywords
bgp
network device
module
capability
peer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2015/080438
Other languages
English (en)
French (fr)
Inventor
庄顺万
李振斌
宋宝华
阴元斌
陈国义
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP20191919.8A priority Critical patent/EP3823216B1/en
Priority to EP15824254.5A priority patent/EP3163799B1/en
Publication of WO2016011850A1 publication Critical patent/WO2016011850A1/zh
Priority to US15/412,890 priority patent/US10826846B2/en
Anticipated expiration legal-status Critical
Priority to US17/033,260 priority patent/US11621926B2/en
Ceased legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] 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/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing

Definitions

  • the present invention relates to the field of communications, and in particular, to a network device and method for transmitting BGP information.
  • Border Gateway Protocol is a dynamic routing protocol that runs on an autonomous system (AS) and is generally configured on a network device.
  • BGP can generally support multiple capabilities, such as IPv4 unicast (IPv4 Unicast), IPv4 multicast (IPv4 multicast), IPv6 unicast (IPv6 Unicast) and other multi-protocol extension capabilities.
  • IPv4 Unicast IPv4 unicast
  • IPv4 multicast IPv4 multicast
  • IPv6 unicast IPv6 unicast
  • Other multi-protocol extension capabilities IPv4 unicast
  • the number and types of BGP-supported capabilities are likely to be different. different. For a network device configured with BGP, the BGP capability required by the configured BGP is not enabled.
  • the current method is to obtain the BGP information of each network device in the network through the monitoring server (Monitoring Server) to uniformly monitor and manage the network.
  • the BGP network device is configured.
  • the monitoring server obtains the BGP information.
  • network device A is used as an example.
  • Network devices A and B are based on The BGP rule negotiates the BGP capabilities of the BGP.
  • the BGP monitoring protocol (BMP) module is also connected to the monitoring server.
  • the BMP module can enable BGP through negotiation.
  • the BGP capability of the network device A of the capability is enabled and the BGP capability of the network device B is enabled, thereby causing the BMP module of the network device A to establish a connection notification (Peer Up Notification) to the monitoring server through the peer.
  • the BGP capability can only include the BGP capability enabled on the network device A.
  • the monitoring server needs to obtain all the BGP capabilities supported by the network device configured with BGP on the network, that is, including the enabled The ability to enable and disable BGP, and thus monitor the server to fully understand the actual capabilities that the entire network can support, and thus provide an effective basis for the deployment and decision-making of the entire network.
  • the embodiment of the invention provides a network device and method for transmitting BGP information, so that the network device can send all the capabilities supported by the configured BGP.
  • an embodiment of the present invention provides a network device that sends BGP information, where the network device includes a BGP module and a BMP module.
  • the BMP module is configured to establish a BMP connection with the monitoring server, and send a request for acquiring the capability information set to the BGP module;
  • the BGP module is configured to receive the request for acquiring the capability information set; traversing the BGP capability data saved by the BGP module to obtain all BGP capability data configured on the network device; and sending the BGP capability data to the BMP module The obtained all BGP capability data;
  • the BMP module is further configured to send the all BGP capability data and the device identifier of the network device to the monitoring server.
  • the sending, by the monitoring server, the all BGP capability data and the device identifier of the network device are sent by using an initial capability information set message.
  • the BGP capability data is encapsulated in an Optional Parameters field in the initial capability information set message.
  • the method further includes:
  • the monitoring server is configured to obtain the initial capability information set message sent by the BMP module, and obtain the all BGP capability data corresponding to the network device from the initial capability information set message.
  • the BMP module is further configured to send a connection establishment notification to the monitoring server for the peer of the network device.
  • the peer establishment connection notification carries the BGP capability that the network device is enabled.
  • the embodiment of the present invention provides a method for sending BGP information, where the method is used for a network device, where the network device includes a BGP module and a BMP module, and the method includes:
  • the BMP module establishes a BMP connection with the monitoring server
  • the BGP module obtains all the BGP capability data configured on the network device by traversing the BGP capability data saved by the BGP module;
  • the BMP module sends the all BGP capability data and the device identifier of the network device to the monitoring server.
  • the BMP module sends the all BGP capability data and the device identifier of the network device to the monitoring server, specifically: the BMP module is to the monitoring
  • the server sends an initial capability information set message, where the initial capability information set message carries the all BGP capability data and the device identifier of the network device.
  • the method further includes:
  • All the BGP capability data is encapsulated in an optional parameter field in the initial capability information set message.
  • the method further includes:
  • the monitoring server acquires the initial capability information set message sent by the BMP module
  • the monitoring server acquires, from the initial capability information set message, all the BGP capability data corresponding to the network device.
  • the BMP module When the network device establishes a BGP connection with another network device, the BMP module sends a connection establishment notification to the monitoring server for the peer of the network device, the peer The BGP capability that the network device has enabled is carried in the connection establishment notification.
  • an embodiment of the present invention provides a network device that sends BGP information, where the network device includes a BGP module and a BMP module.
  • the BMP module is configured to send, to the BGP module, a request for acquiring a capability information set
  • the BGP module is configured to receive the request for acquiring the capability information set, and obtain all the BGP capability data configured on the network device by traversing the BGP capability data saved by the BGP module;
  • the network device is configured to establish a virtual peer, and the BGP capability data is enabled on the virtual peer;
  • the BMP module is further configured to send a connection notification to the first peer of the virtual peer to the monitoring server, where the first peer establishment connection notification carries the virtual peer is enabled. All the BGP capability data, the location information in the first peer establishment connection notification is a device identifier of the network device.
  • the BMP module is further configured to send a connection notification to a second peer of the network device to the monitoring server, where the second peer establishes a connection.
  • the notification carries the BGP capability that the network device has enabled and the device identifier of the network device.
  • the monitoring server is configured to receive the first peer to establish a connection notification, and establish a connection notification from the first peer to obtain the all BGP capability data corresponding to the network device.
  • the embodiment of the present invention provides a method for transmitting BGP information, where the method is used for a network device, where the network device includes a BGP module and a BMP module, and the method includes:
  • the BGP module obtains all the BGP capability data configured on the network device by traversing the BGP capability data saved by the BGP module.
  • the network device establishes a virtual peer, and the BGP capability data is enabled on the virtual peer;
  • the BMP module sends a connection notification to the first peer of the virtual peer to the monitoring server, where the first peer establishment connection notification carries the virtual peer. All the BGP capability data, the location information in the first peer establishment connection notification is a device identifier of the network device.
  • the BMP module sends a connection notification to the second peer of the network device to the monitoring server, where the second peer establishes a connection notification that carries the BGP capability enabled by the network device and the network device Device identification.
  • the monitoring server receives the first peer establishment connection notification
  • the monitoring server establishes a connection notification from the first peer to obtain the entire BGP capability data corresponding to the network device.
  • the network device can obtain the full capability of the BGP configured on the network device through the interaction between the BGP module and the BMP module, and
  • the BMP message sends all the capabilities of the BGP to the monitoring server, so that the monitoring server can obtain all the BGP capabilities supported by the network device, that is, the enabled and disabled BGP capabilities.
  • the monitoring server can fully understand the actual capabilities that the entire network can support, and thus provide an effective basis for the deployment and decision-making of the entire network.
  • FIG. 1 is a schematic structural diagram of a network device for sending BGP information according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a network device that sends BGP information according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a network device for sending BGP information according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a network device that sends BGP information according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of a method for sending BGP information according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for acquiring BGP information according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for sending BGP information according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for acquiring BGP information according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of hardware of a network device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of hardware of a network device according to an embodiment of the present invention.
  • the BGP network device is configured to send the BGP capability to the monitoring server by establishing a connection notification by the peer, and the peer establishment connection notification includes not all the capabilities of the BGP but only on the network device.
  • the enabled BGP capability makes the monitoring server not fully aware of the BGP capabilities of the network devices in the monitored network.
  • the BGP capability information obtained by the monitoring server is not sufficient to provide effective support and basis.
  • the premise that the network device sends the peer to establish a connection notification to the monitoring server is that the network device has established a BGP connection with other network devices, and obtains the negotiation between the network devices that establish the BGP connection. Enable the BGP capability on the network device. That is, if a network device configured with BGP does not establish a BGP connection with other network devices, the monitoring server may not be able to obtain the BGP capability of the network device. .
  • the BGP capability of the network device that has established the BGP connection with the other network device can be obtained.
  • the embodiment of the present invention extends the capability of the network device, so that the network device can pass the BGP.
  • the interaction between the module and the BMP module acquires all the capabilities of the BGP configured on the network device, and carries all the BGP capabilities on the network device through an extended BMP message, such as an initial capability information set message (Initiation Capability Information). And sending to the monitoring server, so that the monitoring server can acquire all the BGP capabilities supported by the network device, that is, the enabled and disabled BGP capabilities, so that the monitoring server can fully understand the whole
  • the actual capabilities that the network can support provide an effective basis for the deployment and decision making of the entire network.
  • the BGP module BMP module of the network device in the embodiment of the present invention is only an execution subject of the functions required to implement the embodiments of the present invention, and the present invention does not limit the functions in the embodiments of the present invention.
  • the BGP module BMP module is executed, and may be executed by other modules in the network device that can implement the same function.
  • the network device may be specifically a carrier edge router (PE) device in some common application scenarios.
  • PE carrier edge router
  • FIG. 1 is a schematic structural diagram of a network device for transmitting BGP information according to an embodiment of the present invention.
  • the network device 100 includes a border gateway protocol BGP module 101 and a border gateway protocol monitoring protocol BMP module 102.
  • the BMP module 102 is configured to establish a BMP connection with the monitoring server, and send a request for acquiring the capability information set to the BGP module.
  • the acquisition capability information set request belongs to a function implemented after the BMP module is extended.
  • the action of the BMP module to send the acquisition capability information set request to the BGP module may be implemented in the network device 100, and the interaction between the BGP module and the BMP module in the network device may be a letter.
  • the form of the message may also be in the form of a callback function interface, which is not limited by the present invention.
  • the BGP module 101 is configured to receive the request for acquiring the capability information set; and traversing the BGP capability data saved by the BGP module to obtain all BGP capability data configured on the network device 100; to the BMP The module sends the obtained all BGP capability data.
  • the BGP capability data stored in the BGP module may be stored in the storage space of the corresponding BGP capability implementation unit, or may be a BGP capability set, for example, a BGP capability list.
  • Table 1 shows the representation of a BGP capability list:
  • the BGP module obtains all BGP capability data by traversing the BGP capability data stored in the BGP capability, such as the BGP capability stored in each storage space or the list in Table 1. It should be noted that although the BGP module can obtain all the BGP capability data by traversing, it is not yet determined which of the total BGP capability data is the BGP capability enabled on the network device, and which are not. Enable BGP capabilities on the network device.
  • the BMP module 102 is further configured to send the all BGP capability data and the device identifier of the network device to the monitoring server.
  • the BMP module 102 may carry the entire BGP capability data and the device identifier of the network device in an initial capability information set message, and send the initial capability information set message to the The monitoring server. More specifically, the entire BGP capability data and the device identifier of the network device may be carried in an Optional Parameters field of the initial capability information set message.
  • the initial capability information set message is a BMP elimination established by BMP rule extension.
  • the information may be used to carry all the BGP capability data.
  • the format of the field encapsulation in the initial capability information set message is the same as the encapsulation format of the BGP OPEN message, as shown in Table 2:
  • the entire BGP capability data may be encapsulated in a field of the initial capability information set message.
  • all the BGP capability data is encapsulated in an Optional Parameters field in the initial capability information set message.
  • FIG. 2 is a schematic structural diagram of a network device for sending BGP information according to an embodiment of the present invention, where:
  • the monitoring server 201 is configured to acquire the initial capability information set message sent by the BMP module, and obtain all the BGP capability data corresponding to the network device 100 from the initial capability information set message.
  • the monitoring server 201 may determine the entire BGP capability data for the network device 100 according to the device identifier by decapsulating the initial capability information set message, the monitoring server 201 It is not yet determined which of the total BGP capability data are enabled on the network device 100 and which are not enabled on the network device 100. In this way, the monitoring server 201 uses the obtained BGP capability data as a basis for deploying and making decisions on the entire network. For this case, optionally, based on the embodiment shown in FIG. 1 or FIG.
  • the BMP module 102 is further configured to send, to the monitoring server 201, a connection establishment notification for the peer of the network device 100, where the peer establishment connection notification carries the network Device 100 has enabled BGP capabilities.
  • the network device 100 and other network devices supervise the BGP connection, the respective BGP capabilities that are enabled are mutually negotiated, and the peers sent by the BMP module to the monitoring server 201.
  • the establishing connection notification will carry the BGP capability that the network device 100 has enabled.
  • there are three BGP capabilities configured on the network device 100 namely IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast. Only one of the network devices 100 is enabled: IPv4 Unicast.
  • the monitoring server 201 acquires all three capabilities of the BGP, IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast, according to the initial capability information set message sent by the BMP module, but does not know which capabilities are enabled.
  • the capability is not enabled on the network device 100, and the monitoring server 201 establishes a connection notification according to the peer sent by the BMP module for the network device 100 to obtain the network device.
  • the monitoring server 201 not only acquires all the BGP capability data of the network device 100, but also acquires the enabled BGP capability of the network device 100, whereby the monitoring server 201 can obtain the BGP capability.
  • the BGP capability is determined based on the BGP capability enabled.
  • the degree of awareness of the entire BGP capability data of the network device 100 by the monitoring server 201 is further improved.
  • the monitoring server 201 can determine which network devices can be obtained by the learned BGP capability and the BGP-enabled capability of the network device.
  • the ability to expand can be directly enabled without additional configuration protocols, which improves the efficiency of network capacity expansion or network device redeployment, and saves network resources and operating costs.
  • the network device can obtain all BGP capability data configured on the network device through the interaction between the BGP module and the BMP module, and pass the extended BMP message: initial The capability information set message carries the entire BGP capability data and is sent to the monitoring server, so that the monitoring server can obtain the All the BGP capabilities supported by the network device include the enabled and disabled BGP capabilities, so that the monitoring server can fully understand the actual capabilities that the entire network can support, and then deploy and decide the entire network. Provide a valid basis.
  • FIG. 3 is a schematic structural diagram of a network device that sends BGP information according to an embodiment of the present invention.
  • the network device 300 includes a border gateway protocol BGP module 301 and a border gateway protocol monitoring protocol BMP module 302.
  • the BMP module 302 is configured to send an acquisition capability information set request to the BGP module.
  • the acquisition capability information set request belongs to a function implemented after the BMP module is extended.
  • the action of the BMP module to send the acquisition capability information set request to the BGP module may be implemented in the network device 300.
  • the interaction between the BGP module and the BMP module in the network device 300 may be
  • the form of the signaling message may also be in the form of a callback function interface, which is not limited by the present invention.
  • the BGP module 301 is configured to receive the acquisition capability information set request, and obtain all the BGP capability data configured on the network device 300 by traversing the BGP capability data saved by the BGP module.
  • the BGP capability data stored in the BGP module may be stored in the storage space of the corresponding BGP capability implementation unit, or may be a BGP capability set, for example, a BGP capability list. As shown in Table 1, it is a manifestation of a BGP capability list.
  • the BGP module obtains all BGP capability data by traversing the BGP capability data stored in the BGP capability, such as the BGP capability stored in each storage space or the list in Table 1. It should be noted that although the BGP module can obtain all the BGP capability data by traversing, it is not yet determined which of the total BGP capability data is the BGP capability enabled on the network device, and which are not. Enable BGP capabilities on the network device.
  • the network device 300 is configured to establish a virtual peer, and the BGP capability data is enabled on the virtual peer.
  • the BMP module of the network device can be enabled by the virtual peer.
  • BGP capability that is, all BGP capabilities configured on the network device data.
  • the network device 300 establishes a virtual peer, it may be that one of the network devices performs the establishment of a virtual peer.
  • the BMP module 302 is further configured to send a Peer Up Notification to the first peer of the virtual peer to the monitoring server, where the first peer establishes a connection notification to carry the virtual
  • the BGP capability data that is enabled by the peer, the location information in the first peer establishment connection notification is the device identifier of the network device 300.
  • the encapsulation format of the first peer establishment connection notification is the same as the encapsulation format of the peer establishment connection notification in the prior art, as shown in Table 3.
  • the local location information of the first peer establishing the connection notification is the device identifier of the network device, where the device identifier may refer to the router ID of the network device, and the like.
  • the content carried by the Received OPEN Message of the first peer establishing the connection notification may be empty.
  • FIG. 4 is a schematic structural diagram of a network device for transmitting BGP information according to an embodiment of the present invention, as shown in FIG.
  • the monitoring server 401 is configured to receive the first peer to establish a connection notification, and establish a connection notification from the first peer to obtain the all BGP capabilities corresponding to the network device 300. data.
  • the monitoring server 401 is still unable to distinguish the BGP capability enabled on the network device 300 and the BGP capability not enabled on the network device from the entire BGP capability data.
  • the BMP module 302 is further configured to send a connection notification to the second peer of the network device to the monitoring server, where the second peer is The establishing connection notification carries the BGP capability that the network device is enabled and the device identifier of the network device.
  • the BMP module can send the first peer to the virtual peer to the monitoring server, because the network device has established a BGP connection with the virtual peer.
  • Establishing a connection notification may also send a connection notification to the monitoring server for the second peer of the network device.
  • the second peer establishment connection notification carries the BGP capability that is enabled on the network device, which is obtained when the network device negotiates with the virtual peer to obtain the BGP capability.
  • there are three BGP capability data configured on the network device namely IPv4 Unicast (IPv4 Unicast), IPv4 Multicast (IPv4 Multicast), and IPv6 Unicast (IPv6 Unicast), which are currently in the network. Only one device is enabled on the device: IPv4 Unicast.
  • the network device enables all three capabilities of the BGP, IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast, on the virtual peer by establishing a virtual peer, and negotiates with the virtual peer by using the virtual peer.
  • the BMP module sends a first peer establishment connection notification to the monitoring server, and the monitoring server acquires the connection notification according to the first peer that is sent by the BMP module.
  • All three of BGP's capabilities are IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast, but it is not known which capabilities are enabled on the network device and which capabilities are not enabled on the network device.
  • the monitoring server acquires a BGP capability that the network device has enabled according to the second peer establishment connection notification sent by the BMP module to the network device: IPv4 Unicast, whereby the monitoring server determines the network device
  • IPv4 Unicast the second peer establishment connection notification sent by the BMP module to the network device: IPv4 Unicast.
  • the BGP capabilities enabled in the BGP capabilities are IPv4 Unicast, and the BGP capabilities that are not enabled are IPv4 Multicast and IPv6 Unicast.
  • the monitoring server may be configured from the all BGP capability data according to the enabled BGP capability distinguishes BGP capabilities that are not enabled. Further improved the said Monitoring the extent to which the server is aware of the total BGP capability data of the network device.
  • the monitoring server can determine which network devices can be used by using the enabled BGP capability and the BGP-enabled capability of the network device.
  • the additional configuration protocol can directly enable the ability to be expanded, and the efficiency of network capacity expansion or network device redeployment is improved, and network resources and operation costs are saved.
  • the BGP module of the network device can obtain all BGP capability data configured on the network device by using the interaction between the BGP module and the BMP module.
  • the network device establishes a virtual peer, and enables the obtained BGP capability data on the virtual peer, and the network device and the virtual peer negotiate respective BGP capabilities that are enabled.
  • the BMP module acquires BGP capability enabled on the virtual peer, that is, all BGP capability data configured on the network device, and the BMP module sends the virtual pair to the monitoring server.
  • the first peer of the body establishes a connection notification, so that the monitoring server acquires the all BGP capability data of the network device, so that the monitoring server can comprehensively understand the actual capabilities that the entire network can support, and thus Provide an effective basis for deployment and decision making throughout the network.
  • FIG. 5 is a flowchart of a method for sending BGP information according to an embodiment of the present invention.
  • the network device includes a BGP module and a BMP module, and the method includes:
  • the BMP module establishes a BMP connection with the monitoring server.
  • the BMP module sends a request for acquiring a capability information set to the BGP module.
  • the acquisition capability information set request belongs to a function implemented after the BMP module is extended.
  • the action of the BMP module to send the acquisition capability information set request to the BGP module may be implemented in the network device 100, and the interaction between the BGP module and the BMP module in the network device may be a letter.
  • the form of the message may also be in the form of a callback function interface, which is not limited by the present invention.
  • the BGP module receives the request for acquiring the capability information set.
  • the BGP module obtains all BGP capability data configured on the network device by traversing BGP capability data saved by the BGP module.
  • the BGP module sends the obtained all BGP capability data to the BMP module.
  • the BGP capability data stored in the BGP module may be stored in the storage space of the corresponding BGP capability implementation unit, or may be a BGP capability set, for example, a BGP capability list.
  • the table 1 is a representation of a BGP capability list.
  • the BGP module obtains all BGP capability data by traversing the BGP capability data stored in the BGP capability, such as the BGP capability stored in each storage space or the list in Table 1. It should be noted that although the BGP module can obtain all the BGP capability data by traversing, it is not yet determined which of the total BGP capability data is the BGP capability enabled on the network device, and which are not. Enable BGP capabilities on the network device.
  • the BMP module sends the all BGP capability data and the device identifier of the network device to the monitoring server.
  • the BMP module 102 may carry the entire BGP capability data and the device identifier of the network device in an initial capability information set message, and send the initial capability information set message to the The monitoring server. More specifically, the entire BGP capability data and the device identifier of the network device may be carried in an Optional Parameters field of the initial capability information set message.
  • the initial capability information set message is a BMP message established by the BMP rule extension, and can be used to carry the all BGP capability data.
  • the format of the field encapsulation in the initial capability information set message is the same as the encapsulation format of the BGP OPEN message. , as shown in Table 2.
  • the entire BGP capability data may be encapsulated in a field of the initial capability information set message.
  • all the BGP capability data is encapsulated in an optional parameter field in the initial capability information set message.
  • FIG. 6 is a flowchart of a method for sending BGP information according to an embodiment of the present invention, where:
  • the monitoring server acquires the initial capability information set message sent by the BMP module.
  • the monitoring server acquires, from the initial capability information set message, all the BGP capability data corresponding to the network device.
  • the monitoring server can decapsulate the initial capability letter And determining, by the device identifier, the total BGP capability data for the network device, but the monitoring server is still unable to determine which of the all BGP capability data is enabled on the network device. Which ones are not enabled on the network device. In this way, the monitoring server will not accurately determine the total BGP capability data obtained as the basis for deploying and making decisions for the entire network.
  • the BMP module is further used to the monitoring server. Sending a connection notification to the peer of the network device, where the peer establishment connection notification carries the BGP capability that the network device has enabled.
  • the respective BGP capabilities that are enabled are mutually negotiated, and the BMP module establishes a connection to the peer that is sent by the monitoring server.
  • the BGP capability that the network device has enabled will be carried in the notification.
  • IPv4 Unicast IPv4 Unicast
  • IPv4 Multicast IPv4 Multicast
  • IPv6 Unicast IPv6 Unicast
  • the monitoring server acquires all three capabilities of the BGP, IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast, according to the initial capability information set message sent by the BMP module, but does not know which capabilities are enabled in the network. On the device, the capability is not enabled on the network device, and the monitoring server establishes a connection notification according to the peer sent by the BMP module for the network device to obtain the BGP that is enabled by the network device. Capability: IPv4 Unicast, whereby the monitoring server determines that the BGP capability enabled in the BGP full capabilities of the network device is IPv4 Unicast, and the BGP capabilities that are not enabled are IPv4 Multicast and IPv6 Unicast.
  • the monitoring server not only acquires all the BGP capability data of the network device, but also acquires the enabled BGP capability of the network device, so that the monitoring server can obtain all the BGP capabilities from the network.
  • the data is differentiated according to the enabled BGP capabilities.
  • Ability to BGP The degree of awareness of the monitoring server to the total BGP capability data of the network device is further improved.
  • the monitoring server can determine which network devices can be used by using the enabled BGP capability and the BGP-enabled capability of the network device.
  • the additional configuration protocol can directly enable the ability to be expanded, and the efficiency of network capacity expansion or network device redeployment is improved, and network resources and operation costs are saved.
  • the network device can obtain all BGP capability data configured on the network device through the interaction between the BGP module and the BMP module, and pass the extended BMP message: initial The capability information collection message carries the entire BGP capability data and is sent to the monitoring server, so that the monitoring server can obtain all the BGP capabilities supported by the network device, that is, the BGP that is enabled and disabled. Capability, so that the monitoring server can fully understand the actual capabilities that the entire network can support, and thus provide an effective basis for the deployment and decision-making of the entire network.
  • FIG. 7 is a flowchart of a method for sending BGP information according to an embodiment of the present invention.
  • the network device includes a BGP module and a BMP module, and the method includes:
  • the BMP module sends a request for acquiring a capability information set to the BGP module.
  • the acquisition capability information set request belongs to a function implemented after the BMP module is extended.
  • the action of the BMP module to send the acquisition capability information set request to the BGP module may be implemented in the network device, and the interaction between the BGP module and the BMP module in the network device may be signaling.
  • the form of the message may also be in the form of a callback function interface, which is not limited by the present invention.
  • the BGP module receives the request for acquiring the capability information set.
  • the BGP module obtains all BGP capability data configured on the network device by traversing BGP capability data saved by the BGP module.
  • the BGP capability data stored in the BGP module may be stored in the storage space of the corresponding BGP capability implementation unit, or may be a BGP capability set, for example, a BGP capability list. As shown in Table 1, it is a manifestation of a BGP capability list.
  • the BGP module traverses the BGP capability data stored by itself (for example, stored in each The BGP capability in the storage space or the list in Table 1 is used to obtain all BGP capability data. It should be noted that although the BGP module can obtain all the BGP capability data by traversing, it is not yet determined which of the total BGP capability data is the BGP capability enabled on the network device, and which are not. Enable BGP capabilities on the network device.
  • S704 The network device establishes a virtual peer, and the BGP capability data is enabled on the virtual peer.
  • the BGP capability is enabled when the BGP capability is enabled.
  • the BMP module of the network device can learn the enabled BGP capability of the virtual peer, that is, all the BGP capability data configured on the network device.
  • the network device establishes a virtual peer, it may be that one of the network devices performs the establishment of a virtual peer.
  • the BMP module sends a connection notification to the first peer of the virtual peer to the monitoring server, where the first peer establishment connection notification carries the virtual peer that is enabled. All the BGP capability data is described, and the location information in the first peer establishment connection notification is the device identifier of the network device.
  • the encapsulation format of the first peer establishment connection notification is the same as the encapsulation format of the peer establishment connection notification in the prior art, as shown in Table 3.
  • the local location information of the first peer establishing the connection notification is the device identifier of the network device, where the device identifier may refer to the router ID of the network device, and the like.
  • the content carried by the Received OPEN Message of the first peer establishing the connection notification may be empty.
  • FIG. 8 is a flowchart of a method for sending BGP information according to an embodiment of the present invention, as shown in FIG.
  • the monitoring server receives the first peer establishment connection notification.
  • the monitoring server establishes a connection notification from the first peer to obtain the all BGP capability data corresponding to the network device.
  • the monitoring server 401 is still unable to distinguish the BGP capability enabled on the network device 300 from the entire BGP capability data and is not enabled on the network device. BGP capabilities. In this way, the monitoring server will not be accurate enough to use the full capabilities of the BGP obtained as a basis for deploying and making decisions for the entire network.
  • the BMP module sends a connection notification to the second peer of the network device to the monitoring server, where the second peer The establishing connection notification carries the BGP capability that the network device is enabled and the device identifier of the network device.
  • the BMP module can send the first peer to the virtual peer to the monitoring server, because the network device has established a BGP connection with the virtual peer.
  • Establishing a connection notification may also send a connection notification to the monitoring server for the second peer of the network device.
  • the second peer establishment connection notification carries the BGP capability that is enabled on the network device, which is obtained when the network device negotiates with the virtual peer to obtain the BGP capability.
  • there are three BGP capability data configured on the network device namely IPv4 Unicast (IPv4 Unicast), IPv4 Multicast (IPv4 Multicast), and IPv6 Unicast (IPv6 Unicast), which are currently in the network. Only one device is enabled on the device: IPv4 Unicast.
  • the network device enables all three capabilities of the BGP, IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast, on the virtual peer by establishing a virtual peer, and negotiates with the virtual peer by using the virtual peer.
  • the BMP module sends a first peer establishment connection notification to the monitoring server, and the monitoring server acquires the connection notification according to the first peer that is sent by the BMP module.
  • All three of BGP's capabilities are IPv4 Unicast, IPv4 Multicast, and IPv6 Unicast, but it is not known which capabilities are enabled on the network device and which capabilities are not enabled on the network device.
  • the monitoring server acquires a BGP capability that the network device has enabled according to the second peer establishment connection notification sent by the BMP module to the network device: IPv4 Unicast, whereby the monitoring server determines the network device
  • IPv4 Unicast the second peer establishment connection notification sent by the BMP module to the network device: IPv4 Unicast.
  • the BGP capabilities enabled in the BGP capabilities are IPv4 Unicast, and the BGP capabilities that are not enabled are IPv4 Multicast and IPv6 Unicast.
  • the monitoring server may be used from the entire BGP capability data.
  • the BGP capabilities that are not enabled are differentiated based on the enabled BGP capabilities.
  • the degree of awareness of the monitoring server to the total BGP capability data of the network device is further improved.
  • the monitoring server can determine which network devices can be used by using the enabled BGP capability and the BGP-enabled capability of the network device.
  • the additional configuration protocol can directly enable the ability to be expanded, and the efficiency of network capacity expansion or network device redeployment is improved, and network resources and operation costs are saved.
  • the BGP module of the network device can obtain all BGP capability data configured on the network device by using the interaction between the BGP module and the BMP module.
  • the network device establishes a virtual peer, and enables the obtained BGP capability data on the virtual peer, and the network device and the virtual peer negotiate respective BGP capabilities that are enabled.
  • the BMP module acquires BGP capability enabled on the virtual peer, that is, all BGP capability data configured on the network device, and the BMP module sends the virtual pair to the monitoring server.
  • the first peer of the body establishes a connection notification, so that the monitoring server acquires the all BGP capability data of the network device, so that the monitoring server can comprehensively understand the actual capabilities that the entire network can support, and thus Provide an effective basis for deployment and decision making throughout the network.
  • FIG. 9 is a schematic diagram of a hardware structure of a network device, where the network device includes a BGP module and a BMP module, where the network device 900 includes a memory 901, a receiver 902, and a transmitter 903. And a processor 904 coupled to the memory 901, the receiver 902, and the transmitter 903, respectively, the memory 901 is configured to store a set of program instructions, and the processor 904 is configured to invoke the memory 901 to store The program instructions perform the following operations:
  • the transmitter 903 is triggered to send the all BGP capability data and the device identifier of the network device to the monitoring server.
  • the BMP module 102 may carry the entire BGP capability data and the device identifier of the network device in an initial capability information set message, and send the initial capability information set message to the The monitoring server. More specifically, the entire BGP capability data and the device identifier of the network device may be carried in an Optional Parameters field of the initial capability information set message.
  • the processor 904 may be a central processing unit (CPU), and the memory 901 may be an internal memory of a random access memory (RAM) type, the receiver 902 and The transmitter 903 may include a common physical interface, and the physical interface may be an Ethernet interface or an Asynchronous Transfer Mode (ATM) interface.
  • the processor 904, the transmitter 903, the receiver 902, and the memory 901 may be integrated into one or more independent circuits or hardware, such as an Application Specific Integrated Circuit (ASIC).
  • ASIC Application Specific Integrated Circuit
  • FIG. 10 is a schematic diagram of a hardware structure of a network device, where the network device includes a BGP module and a BMP module, where the network device 1000 includes a memory 1001, a receiver 1002, and a transmitter 1003. And a processor 1004 connected to the memory 1001, the receiver 1002, and the transmitter 1003, respectively.
  • the memory 1001 is configured to store a set of program instructions
  • the processor 1004 is configured to invoke the memory 1001 to store
  • the program instructions perform the following operations:
  • the all the BGP capability data that is enabled, the location information in the first peer establishment connection notification is the device identifier of the network device.
  • the processor 1004 may be a CPU
  • the memory 1001 may be a RAM type internal memory
  • the receiver 1002 and the transmitter 1003 may include a common physical interface, and the physical interface may be an Ethernet interface. Or ATM interface.
  • the processor 1004, the transmitter 1003, the receiver 1002, and the memory 1001 may be integrated into one or more separate circuits or hardware, such as an ASIC.
  • the first peer establishment connection notification mentioned in the embodiment of the present invention is only used for name identification, and does not represent the first in the order. The same rule applies to the "second".
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例公开了一种发送BGP信息的网络设备和方法,BMP模块,用于向BGP模块发送获取能力信息集合请求;BGP模块,用于通过遍历BGP模块所保存的BGP能力数据以获取并向BMP模块发送配置在所述网络设备上的全部BGP能力数据;BMP模块,还用于向所述监视服务器发送携带全部BGP能力数据以及所述网络设备的设备标识的初始能力信息集合消息,可见,通过对网络设备的能力扩展,使得所述网络设备可以通过BGP模块和BMP模块之间的交互获取配置在所述网络设备上的BGP的全部能力并发送到所述监视服务器,以使得所述监视服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。

Description

一种发送BGP信息的网络设备和方法
本申请要求于2014年7月23日提交中国专利局、申请号为201410352943.0、发明名称为“一种发送BGP信息的网络设备和方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,特别是涉及一种发送BGP信息的网络设备和方法。
背景技术
边界网关协议(Border Gateway Protocol,BGP)是一种运行在自治系统(Autonomous System,AS)上的动态路由协议,一般配置在网络设备上。BGP一般可以支持多种能力,比如说IPv4单播(IPv4Unicast)、IPv4组播(IPv4Multicast)、IPv6单播(IPv6Unicast)等多协议扩展能力等,不同的BGP支持的能力的个数和种类都可能不同。对于配置了BGP的网络设备,一般并不会将所配置的BGP中支持的所有能力都使能,而是根据当前的工作需求使能当前需要的BGP能力。
为了对网络中各个网络设备上配置的BGP的运行状态进行有效的监控和管理,目前的方法是通过监视服务器(Monitoring Server)获取所述网络中的各个网络设备的BGP信息来统一监控和管理网络中配置了BGP的网络设备。举例说明监视服务器获取BGP信息的流程,当配置了BGP的网络设备A和B之间(或者说对等体之间)建立了BGP连接后,以网络设备A为例,网络设备A和B根据BGP规则通过报文协商各自已使能的BGP能力,网络设备A中的还具有与监视服务器建立连接的BGP监控协议(BGP Monitoring Protocol,BMP)模块,所述BMP模块可以通过协商已使能BGP能力获得的网络设备A的已使能BGP能力和网络设备B的已使能BGP能力,由此导致网络设备A的BMP模块在通过所述对等体建立连接通知(Peer Up Notification)向监视服务器发送所述网络设备配置的BGP信息时,BGP能力这部分只能包括网络设备A上已使能的BGP能力。
然而仅仅发送已部署或使能的BGP能力是不够的,监控服务器需要获取网络中配置了BGP的网络设备所支持的所有BGP能力,也就是包括已使 能和未使能的BGP能力,并这样监控服务器才能全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
发明内容
本发明实施例提供了一种发送BGP信息的网络设备和方法,使得网络设备可以发送所配置的BGP支持的全部能力。
第一方面,本发明实施例提供了一种发送BGP信息的网络设备,所述网络设备包括BGP模块和BMP模块,
所述BMP模块,用于与监视服务器建立BMP连接,以及向所述BGP模块发送获取能力信息集合的请求;
所述BGP模块,用于接收所述获取能力信息集合的请求;通过遍历所述BGP模块所保存的BGP能力数据以获取配置在所述网络设备上的全部BGP能力数据;向所述BMP模块发送获取的所述全部BGP能力数据;
所述BMP模块,还用于向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。
在第一方面的第一种可能的实现方式中,所述向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识,是通过初始能力信息集合消息发送的。
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述初始能力信息集合消息中的可选参数(Optional Parameters)字段中封装所述全部BGP能力数据。
结合第一方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,还包括:
所述监视服务器,用于获取所述BMP模块发送的所述初始能力信息集合消息;从所述初始能力信息集合消息中获取对应所述网络设备的所述全部BGP能力数据。
结合第一方面或者第一方面的第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,
当所述网络设备与其他网络设备建立BGP连接时,所述BMP模块,还用于向所述监视服务器发送针对所述网络设备的对等体建立连接通知 (Peer Up Notification),所述对等体建立连接通知中携带所述网络设备已使能的BGP能力。
第二方面,本发明实施例提供了一种发送BGP信息的方法,该方法用于一种网络设备,该网络设备包括BGP模块和BMP模块,所述方法包括:
所述BMP模块与监视服务器建立BMP连接;
所述BMP模块向所述BGP模块发送获取能力信息集合的请求;
所述BGP模块接收所述获取能力信息集合的请求;
所述BGP模块通过遍历所述BGP模块所保存的BGP能力数据以获取配置在所述网络设备上的全部BGP能力数据;
所述BGP模块向所述BMP模块发送获取的所述全部BGP能力数据;
所述BMP模块向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。
在第二方面的第一种可能的实现方式中,所述BMP模块向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识,具体为:所述BMP模块向所述监视服务器发送初始能力信息集合消息,所述初始能力信息集合消息携带所述全部BGP能力数据以及所述网络设备的设备标识。
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,还包括:
所述初始能力信息集合消息中的可选参数字段中封装所述全部BGP能力数据。
结合第二方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,还包括:
所述监视服务器获取所述BMP模块发送的所述初始能力信息集合消息;
所述监视服务器从所述初始能力信息集合消息中获取对应所述网络设备的所述全部BGP能力数据。
结合第二方面或者第二方面的第一种或第二种或第三种可能的实现方式,在第四种可能的实现方式中,
当所述网络设备与其他网络设备建立BGP连接时,所述BMP模块向所述监视服务器发送针对所述网络设备的对等体建立连接通知,所述对等 体建立连接通知中携带所述网络设备已使能的BGP能力。
第三方面,本发明实施例提供了一种发送BGP信息的网络设备,所述网络设备包括BGP模块和BMP模块,
所述BMP模块,用于向所述BGP模块发送获取能力信息集合的请求;
所述BGP模块,用于接收所述获取能力信息集合的请求;通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备上的全部BGP能力数据;
所述网络设备,用于建立一个虚拟对等体,所述虚拟对等体上使能了所述全部BGP能力数据;
所述BMP模块,还用于向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,所述第一对等体建立连接通知中携带所述虚拟对等体已使能的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备的设备标识。
在第三方面的第一种可能的实现方式中,所述BMP模块,还用于向监视服务器发送针对所述网络设备的第二对等体建立连接通知,所述第二对等体建立连接通知中携带所述网络设备已使能的BGP能力以及所述网络设备的设备标识。
结合第三方面或者第三方面的第一种可能的实现方式,在第二种可能的实现方式中,
所述监视服务器,用于接收所述第一对等体建立连接通知;从所述第一对等体建立连接通知获取对应所述网络设备的所述全部BGP能力数据。
第四方面。本发明实施例提供了一种发送BGP信息的方法,该方法用于一种网络设备,该网络设备包括BGP模块和BMP模块,所述方法包括:
所述BMP模块向所述BGP模块发送获取能力信息集合的请求;
所述BGP模块接收所述获取能力信息集合的请求;
所述BGP模块通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备上的全部BGP能力数据;
所述网络设备建立一个虚拟对等体,所述虚拟对等体上使能了所述全部BGP能力数据;
所述BMP模块向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,所述第一对等体建立连接通知中携带所述虚拟对等体已使能 的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备的设备标识。
在第四方面的第一种可能的实现方式中,
所述BMP模块向监视服务器发送针对所述网络设备的第二对等体建立连接通知,所述第二对等体建立连接通知中携带所述网络设备已使能的BGP能力以及所述网络设备的设备标识。
结合第四方面或者第四方面的第一种可能的实现方式,在第二种可能的实现方式中,
所述监视服务器接收所述第一对等体建立连接通知;
所述监视服务器从所述第一对等体建立连接通知获取对应所述网络设备的所述全部BGP能力数据。
由上述技术方案可以看出,通过对网络设备的能力扩展,使得所述网络设备可以通过BGP模块和BMP模块之间的交互获取配置在所述网络设备上的BGP的全部能力,并通过扩展的BMP消息将所述BGP的全部能力,发送到所述监视服务器,以使得所述监视服务器可以获取所述网络设备所支持的所有BGP能力,也就是包括已使能和未使能的BGP能力,这样监控服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图;
图2为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图;
图3为本发明实施例提供的一种发送BGP信息的网络设备的结构示意 图;
图4为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图;
图5为本发明实施例提供的一种发送BGP信息的方法的流程图;
图6为本发明实施例提供的一种获取BGP信息的方法的流程图;
图7为本发明实施例提供的一种发送BGP信息的方法的流程图;
图8为本发明实施例提供的一种获取BGP信息的方法的流程图;
图9为本发明实施例提供的一种网络设备的硬件结构示意图;
图10为本发明实施例提供的一种网络设备的硬件结构示意图。
具体实施方式
现有技术中配置了BGP的网络设备主要通过对等体建立连接通知向监视服务器发送BGP能力,而且所述对等体建立连接通知中包含的并不是BGP的全部能力,而只是在网络设备上已使能的BGP能力,使得监视服务器对所监控的网络中的网络设备的BGP能力了解不全面,在需要所述监视服务器对所述网络中的网络设备进行管理、升级、能力扩充时,所述监视服务器所获取的BGP能力信息不足以提供有效的支持和依据。而且,所述网络设备发送所述对等体建立连接通知给监视服务器的前提条件是所述网络设备与其他网络设备已经建立了BGP连接,通过建立BGP连接的网络设备之间的协商来获取已使能在各自网络设备上的BGP能力,也就是说,如果一个配置了BGP的网络设备如果没有与其他网络设备建立BGP连接的话,所述监视服务器很可能是无法获取该网络设备的BGP能力的。
针对所述监视服务器只能获取与其他网络设备建立了BGP连接的网络设备的已使能BGP能力的技术问题,本发明实施例对网络设备的能力进行了扩展,使得所述网络设备可以通过BGP模块和BMP模块之间的交互获取配置在所述网络设备上的BGP的全部能力,并通过扩展的BMP消息,比如初始能力信息集合消息(Initiation Capability Information)携带所述网络设备上的全部BGP能力,发送到所述监视服务器,以使得所述监视服务器可以获取所述网络设备所支持的所有BGP能力,也就是包括已使能和未使能的BGP能力,这样监控服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
需要注意的是,本发明实施例中所述网络设备的所述BGP模块BMP模块仅为实现本发明实施例所需功能的执行主体,本发明并不限定本发明实施例中的功能均必须由所述BGP模块BMP模块来执行,也可以是所述网络设备中的能够实现相同功能的其他模块来执行。所述网络设备在一些常见的应用场景中可以具体是一个运营商边缘路由器(Provider Edge Router,PE)设备。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚的描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例一
图1为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图,如图1所示,所述网络设备100包括边界网关协议BGP模块101和边界网关协议监控协议BMP模块102。
所述BMP模块102,用于与监视服务器建立BMP连接,以及向所述BGP模块发送获取能力信息集合的请求。
这里需要说明的是,所述获取能力信息集合请求属于BMP模块扩展后所实现的功能。所述BMP模块向所述BGP模块发送所述获取能力信息集合请求的动作可以在所述网络设备100的内部实现,所述网络设备内的所述BGP模块和BMP模块之间的交互可以是信令消息的形式,也可以是回调函数接口的形式,本发明对此不进行限定。
所述BGP模块101,用于接收所述获取能力信息集合的请求;通过遍历所述BGP模块所保存的BGP能力数据以获取配置在所述网络设备100上的全部BGP能力数据;向所述BMP模块发送获取的所述全部BGP能力数据。
这里需要说明的是,所述BGP模块所保存的BGP能力数据的形式可以是分别存储在对应BGP能力实现单元的存储空间中,也可以是BGP能力集合,比如说BGP能力列表的形式等。表1就是一种BGP能力列表的表现形式:
Figure PCTCN2015080438-appb-000001
Figure PCTCN2015080438-appb-000002
表1
所述BGP模块通过遍历自身存储的BGP能力数据(比如分别存储在各个存储空间中的BGP能力或者如表1的列表),获取全部BGP能力数据。需要注意的是,所述BGP模块虽然能够通过遍历获取所述全部BGP能力数据,但是还无法确定所述全部BGP能力数据中哪些是已使能在所述网络设备上的BGP能力,哪些是未使能在所述网络设备上的BGP能力。
所述BMP模块102,还用于向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。具体地,所述BMP模块102可以将所述全部BGP能力数据以及所述网络设备的设备标识携带在初始能力信息集合消息(Initiation Capability Information)中,在将所述初始能力信息集合消息发送给所述监视服务器。更具体地,可以将所述全部BGP能力数据以及所述网络设备的设备标识携带在初始能力信息集合消息的可选参数(Optional Parameters)字段中。
所述初始能力信息集合消息是通过BMP规则扩展建立的一种BMP消 息,可以用于携带所述全部BGP能力数据,所述初始能力信息集合消息中字段封装的格式与BGP OPEN Message的封装格式相同,如表2所示:
Figure PCTCN2015080438-appb-000003
表2
可以将所述全部BGP能力数据封装在所述初始能力信息集合消息的字段中。可选的,所述初始能力信息集合消息中的可选参数(Optional Parameters)字段中封装所述全部BGP能力数据。
当所述网络设备的所述BMP模块向所述监视服务器发送所述初始能力信息集合消息后,所述监视服务器还将对所述初始能力信息集合消息进行进一步的处理。在图1所示的实施例的基础上,参阅图2,图2为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图,其中:
监视服务器201,用于获取所述BMP模块发送的所述初始能力信息集合消息;从所述初始能力信息集合消息中获取对应所述网络设备100的所述全部BGP能力数据。
需要注意的是,虽然所述监视服务器201可以通过解封装所述初始能力信息集合消息,根据所述设备标识确定出对于所述网络设备100的所述全部BGP能力数据,但是所述监视服务器201还不能确定所述全部BGP能力数据中哪些是已使能在所述网络设备100上的,哪些是未使能在所述网络设备100上的。这样监控服务器201将获取的所述全部BGP能力数据作为对整个网络的进行部署和决策的依据还是不够精确。针对这种情况,可选的,在图1或图2所示实施例的基础上,当所述网络设备100与其他 网络设备建立BGP连接时,所述BMP模块102,还用于向所述监视服务器201发送针对所述网络设备100的对等体建立连接通知,所述对等体建立连接通知中携带所述网络设备100已使能的BGP能力。
也就是说,当所述网络设备100与其他网络设备监理BGP连接时,将会相互协商各自已使能的BGP能力,由此所述BMP模块向所述监视服务器201发送的所述对等体建立连接通知中将会携带所述网络设备100已使能的BGP能力。举例说明,比如所述网络设备100上配置的全部BGP能力一共有三个,分别是IPv4 Unicast(IPv4单播)、IPv4 Multicast(IPv4组播)和IPv6 Unicast(IPv6单播),目前在所述网络设备100上只使能了一个:IPv4 Unicast。所述监视服务器201根据所述BMP模块发送的所述初始能力信息集合消息获取所述BGP的全部三种能力IPv4 Unicast、IPv4 Multicast和IPv6 Unicast,但是还不知道哪些能力是已使能在所述网络设备100上,哪些能力是未使能在所述网络设备100上的,所述监视服务器201根据所述BMP模块发送的针对所述网络设备100的对等体建立连接通知获取所述网络设备100已使能的BGP能力:IPv4 Unicast,由此所述监视服务器201确定所述网络设备100的所述BGP全部能力中已使能的BGP能力为IPv4Unicast,未使能的BGP能力为IPv4 Multicast和IPv6 Unicast。
也就是说所述监视服务器201不仅获取了所述网络设备100的所述全部BGP能力数据,也获取了所述网络设备100的已使能的BGP能力,由此所述监视服务器201可以从所述全部BGP能力数据中根据所述已使能的BGP能力区分出未使能的BGP能力。进一步提高了所述监视服务器201对所述网络设备100的所述全部BGP能力数据的认知程度。当需要对网络的功能进行扩展或对网络中的网络设备进行重新部署时,所述监视服务器201通过获知的所述网络设备的已使能BGP能力和未使能BGP能力可以确定哪些网络设备可以不用额外配置协议就可以直接使能需要扩展的能力等,提高了对网络能力扩展或网络设备重新部署的效率,节约了网络资源和运营成本。
可以看出,通过对网络设备的能力扩展,使得所述网络设备可以通过BGP模块和BMP模块之间的交互获取配置在所述网络设备上的全部BGP能力数据,并通过扩展的BMP消息:初始能力信息集合消息携带所述全部BGP能力数据,发送到所述监视服务器,已使得所述监视服务器可以获取 所述网络设备所支持的所有BGP能力,也就是包括已使能和未使能的BGP能力,这样监控服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
实施例二
图3为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图,如图3所示,所述网络设备300包括边界网关协议BGP模块301和边界网关协议监控协议BMP模块302。
所述BMP模块302,用于向所述BGP模块发送获取能力信息集合请求。
这里需要说明的是,所述获取能力信息集合请求属于BMP模块扩展后所实现的功能。所述BMP模块向所述BGP模块发送所述获取能力信息集合请求的动作可以在所述网络设备300的内部实现,所述网络设备300内的所述BGP模块和BMP模块之间的交互可以是信令消息的形式,也可以是回调函数接口的形式,本发明对此不进行限定。
所述BGP模块301,用于接收所述获取能力信息集合请求;通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备300上的全部BGP能力数据。
这里需要说明的是,所述BGP模块所保存的BGP能力数据的形式可以是分别存储在对应BGP能力实现单元的存储空间中,也可以是BGP能力集合,比如说BGP能力列表的形式等。如表1所示的就就是一种BGP能力列表的表现形式。
所述BGP模块通过遍历自身存储的BGP能力数据(比如分别存储在各个存储空间中的BGP能力或者如表1的列表),获取全部BGP能力数据。需要注意的是,所述BGP模块虽然能够通过遍历获取所述全部BGP能力数据,但是还无法确定所述全部BGP能力数据中哪些是已使能在所述网络设备上的BGP能力,哪些是未使能在所述网络设备上的BGP能力。
所述网络设备300,用于建立一个虚拟对等体(Virtual Peer),所述虚拟对等体上使能了所述全部BGP能力数据。
也就是说,由于在建立的虚拟对等体上使能了所述BGP模块获取的所述全部BGP能力数据,所述网络设备的BMP模块就可以由此所述虚拟对等体的已使能的BGP能力,也就是配置在所述网络设备上的全部BGP能力 数据。
这里需要说明的是,虽然所述网络设备300建立了一个虚拟对等体,但是具体可以是所述网络设备中的一个功能模块在执行建立虚拟对等体。
所述BMP模块302,还用于向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知(Peer Up Notification),所述第一对等体建立连接通知中携带所述虚拟对等体已使能的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备300的设备标识。
所述第一对等体建立连接通知的封装格式和现有技术中的对等体建立连接通知的封装格式相同,如表3所示。但是,所述第一对等体建立连接通知的本地位置信息中是所述网络设备的设备标识,这里的设备标识可以是指所述网络设备的路由器ID等。而且由于所述虚拟对等体不需要接收所述网络设备的协商的open message,故所述第一对等体建立连接通知的Received OPEN Message所携带的内容可以是空的。
Figure PCTCN2015080438-appb-000004
表3
需要注意的是,所述监视服务器收到所述第一对等体建立连接通知后,解析本地位置信息得到的是所述网络设备的设备标识,由此确定出对应所述网络设备300的所述全部BGP能力数据,也就是说,在图3的基础上,图4为本发明实施例提供的一种发送BGP信息的网络设备的结构示意图,如图4所示,
所述监视服务器401,用于接收所述第一对等体建立连接通知;从所述第一对等体建立连接通知获取对应所述网络设备300的所述全部BGP能力 数据。
但是,所述监视服务器401还不能从所述全部BGP能力数据中区分出已使能在所述网络设备300上的BGP能力和未使能在所述网络设备上的BGP能力。
可选的,在图3所示实施例的基础上,所述BMP模块302,还用于向监视服务器发送针对所述网络设备的第二对等体建立连接通知,所述第二对等体建立连接通知中携带所述网络设备已使能的BGP能力以及所述网络设备的设备标识。
也就是说,由于所述网络设备已经和所述虚拟对等体建立了BGP连接,那么所述BMP模块既可以向所述监视服务器发送针对所述虚拟对等体的所述第一对等体建立连接通知,也同样可以向所述监视服务器发送针对所述网络设备的所述第二对等体建立连接通知。所述第二对等体建立连接通知中携带所述网络设备与所述虚拟对等体协商各自已使能BGP能力时获得的已使能在所述网络设备上的BGP能力。举例说明,比如所述网络设备上配置的全部BGP能力数据一共有三个,分别是IPv4 Unicast(IPv4单播)、IPv4Multicast(IPv4组播)和IPv6 Unicast(IPv6单播),目前在所述网络设备上只使能了一个:IPv4 Unicast。所述网络设备通过建立虚拟对等体,在所述虚拟对等体上使能所述BGP的全部三个能力IPv4 Unicast、IPv4 Multicast和IPv6 Unicast,并通过与所述虚拟对等体协商各自已使能的BGP能力后,所述BMP模块向所述监视服务器发送第一对等体建立连接通知,所述监视服务器根据所述BMP模块发送的所述第一对等体建立连接通知获取所述BGP的全部三种能力IPv4 Unicast、IPv4 Multicast和IPv6 Unicast,但是还不知道哪些能力是已使能在所述网络设备上,哪些能力是未使能在所述网络设备上的。所述监视服务器根据所述BMP模块发送的针对所述网络设备的第二对等体建立连接通知获取所述网络设备已使能的BGP能力:IPv4Unicast,由此所述监视服务器确定所述网络设备的所述BGP全部能力中已使能的BGP能力为IPv4 Unicast,未使能的BGP能力为IPv4 Multicast和IPv6Unicast。
这样当所述监视服务器获取所述第一对等体建立连接通知和所述第二对等体建立连接通知后,所述监视服务器可以从所述全部BGP能力数据中根据所述已使能的BGP能力区分出未使能的BGP能力。进一步提高了所述 监视服务器对所述网络设备的所述全部BGP能力数据的认知程度。当需要对网络的功能进行扩展或对网络中的网络设备进行重新部署时,所述监视服务器通过获知的所述网络设备的已使能BGP能力和未使能BGP能力可以确定哪些网络设备可以不用额外配置协议就可以直接使能需要扩展的能力等,提高了对网络能力扩展或网络设备重新部署的效率,节约了网络资源和运营成本。
可以看出,通过对网络设备的能力扩展,使得所述网络设备的BGP模块可以通过所述BGP模块和所述BMP模块之间的交互获取配置在所述网络设备上的全部BGP能力数据,所述网络设备建立一个虚拟对等体,并在所述虚拟对等体上使能获取的所述全部BGP能力数据,当所述网络设备与所述虚拟对等体协商各自已使能的BGP能力时,所述BMP模块将获取在所述虚拟对等体上使能的BGP能力,也就是配置在所述网络设备上的全部BGP能力数据,所述BMP模块向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,以使得所述监视服务器获取所述网络设备的所述全部BGP能力数据,这样监控服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
实施例三
图5为本发明实施例提供的一种发送BGP信息的方法的流程图,网络设备包括BGP模块和BMP模块,所述方法包括:
S501:所述BMP模块与监视服务器建立BMP连接。
S502:所述BMP模块向所述BGP模块发送获取能力信息集合的请求。
这里需要说明的是,所述获取能力信息集合请求属于BMP模块扩展后所实现的功能。所述BMP模块向所述BGP模块发送所述获取能力信息集合请求的动作可以在所述网络设备100的内部实现,所述网络设备内的所述BGP模块和BMP模块之间的交互可以是信令消息的形式,也可以是回调函数接口的形式,本发明对此不进行限定。
S503:所述BGP模块接收所述获取能力信息集合的请求。
S504:所述BGP模块通过遍历所述BGP模块所保存的BGP能力数据以获取配置在所述网络设备上的全部BGP能力数据。
S505:所述BGP模块向所述BMP模块发送获取的所述全部BGP能力数据。
这里需要说明的是,所述BGP模块所保存的BGP能力数据的形式可以是分别存储在对应BGP能力实现单元的存储空间中,也可以是BGP能力集合,比如说BGP能力列表的形式等。比如所述表1就是一种BGP能力列表的表现形式。
所述BGP模块通过遍历自身存储的BGP能力数据(比如分别存储在各个存储空间中的BGP能力或者如表1的列表),获取全部BGP能力数据。需要注意的是,所述BGP模块虽然能够通过遍历获取所述全部BGP能力数据,但是还无法确定所述全部BGP能力数据中哪些是已使能在所述网络设备上的BGP能力,哪些是未使能在所述网络设备上的BGP能力。
S506:所述BMP模块向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。
具体地,所述BMP模块102可以将所述全部BGP能力数据以及所述网络设备的设备标识携带在初始能力信息集合消息(Initiation Capability Information)中,在将所述初始能力信息集合消息发送给所述监视服务器。更具体地,可以将所述全部BGP能力数据以及所述网络设备的设备标识携带在初始能力信息集合消息的可选参数(Optional Parameters)字段中。
所述初始能力信息集合消息是通过BMP规则扩展建立的一种BMP消息,可以用于携带所述全部BGP能力数据,所述初始能力信息集合消息中字段封装的格式与BGP OPEN Message的封装格式相同,如所述表2所示。
可以将所述全部BGP能力数据封装在所述初始能力信息集合消息的字段中。可选的,所述初始能力信息集合消息中的可选参数字段中封装所述全部BGP能力数据。
当所述网络设备的所述BMP模块向所述监视服务器发送所述初始能力信息集合消息后,所述监视服务器还将对所述初始能力信息集合消息进行进一步的处理。在图5所示的实施例的基础上,参阅图6,图6为本发明实施例提供的一种发送BGP信息的方法的流程图,其中:
S601:所述监视服务器获取所述BMP模块发送的所述初始能力信息集合消息。
S602:所述监视服务器从所述初始能力信息集合消息中获取对应所述网络设备的所述全部BGP能力数据。
需要注意的是,虽然所述监视服务器可以通过解封装所述初始能力信 息集合消息,根据所述设备标识确定出对于所述网络设备的所述全部BGP能力数据,但是所述监视服务器还不能确定所述全部BGP能力数据中哪些是已使能在所述网络设备上的,哪些是未使能在所述网络设备上的。这样监控服务器将获取的所述全部BGP能力数据作为对整个网络的进行部署和决策的依据还是不够精确。针对这种情况,可选的,在图5或图6所示实施例的基础上,当所述网络设备与其他网络设备建立BGP连接时,所述BMP模块,还用于向所述监视服务器发送针对所述网络设备的对等体建立连接通知,所述对等体建立连接通知中携带所述网络设备已使能的BGP能力。
也就是说,当所述网络设备与其他网络设备监理BGP连接时,将会相互协商各自已使能的BGP能力,由此所述BMP模块向所述监视服务器发送的所述对等体建立连接通知中将会携带所述网络设备已使能的BGP能力。举例说明,比如所述网络设备上配置的全部BGP能力一共有三个,分别是IPv4 Unicast(IPv4单播)、IPv4 Multicast(IPv4组播)和IPv6 Unicast(IPv6单播),目前在所述网络设备上只使能了一个:IPv4 Unicast。所述监视服务器根据所述BMP模块发送的所述初始能力信息集合消息获取所述BGP的全部三种能力IPv4 Unicast、IPv4 Multicast和IPv6 Unicast,但是还不知道哪些能力是已使能在所述网络设备上,哪些能力是未使能在所述网络设备上的,所述监视服务器根据所述BMP模块发送的针对所述网络设备的对等体建立连接通知获取所述网络设备已使能的BGP能力:IPv4 Unicast,由此所述监视服务器确定所述网络设备的所述BGP全部能力中已使能的BGP能力为IPv4 Unicast,未使能的BGP能力为IPv4 Multicast和IPv6Unicast。
也就是说所述监视服务器不仅获取了所述网络设备的所述全部BGP能力数据,也获取了所述网络设备的已使能的BGP能力,由此所述监视服务器可以从所述全部BGP能力数据中根据所述已使能的BGP能力区分出未使 能的BGP能力。进一步提高了所述监视服务器对所述网络设备的所述全部BGP能力数据的认知程度。当需要对网络的功能进行扩展或对网络中的网络设备进行重新部署时,所述监视服务器通过获知的所述网络设备的已使能BGP能力和未使能BGP能力可以确定哪些网络设备可以不用额外配置协议就可以直接使能需要扩展的能力等,提高了对网络能力扩展或网络设备重新部署的效率,节约了网络资源和运营成本。
可以看出,通过对网络设备的能力扩展,使得所述网络设备可以通过BGP模块和BMP模块之间的交互获取配置在所述网络设备上的全部BGP能力数据,并通过扩展的BMP消息:初始能力信息集合消息携带所述全部BGP能力数据,发送到所述监视服务器,已使得所述监视服务器可以获取所述网络设备所支持的所有BGP能力,也就是包括已使能和未使能的BGP能力,这样监控服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
实施例四
图7为本发明实施例提供的一种发送BGP信息的方法的流程图,如图7所示,网络设备包括BGP模块和BMP模块,所述方法包括:
S701:所述BMP模块向所述BGP模块发送获取能力信息集合的请求。
这里需要说明的是,所述获取能力信息集合请求属于BMP模块扩展后所实现的功能。所述BMP模块向所述BGP模块发送所述获取能力信息集合请求的动作可以在所述网络设备的内部实现,所述网络设备内的所述BGP模块和BMP模块之间的交互可以是信令消息的形式,也可以是回调函数接口的形式,本发明对此不进行限定。
S702:所述BGP模块接收所述获取能力信息集合的请求。
S703:所述BGP模块通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备上的全部BGP能力数据。
这里需要说明的是,所述BGP模块所保存的BGP能力数据的形式可以是分别存储在对应BGP能力实现单元的存储空间中,也可以是BGP能力集合,比如说BGP能力列表的形式等。如表1所示的就就是一种BGP能力列表的表现形式。
所述BGP模块通过遍历自身存储的BGP能力数据(比如分别存储在各 个存储空间中的BGP能力或者如表1的列表),获取全部BGP能力数据。需要注意的是,所述BGP模块虽然能够通过遍历获取所述全部BGP能力数据,但是还无法确定所述全部BGP能力数据中哪些是已使能在所述网络设备上的BGP能力,哪些是未使能在所述网络设备上的BGP能力。
S704:所述网络设备建立一个虚拟对等体,所述虚拟对等体上使能了所述全部BGP能力数据。
也就是说,由于在建立的虚拟对等体上使能了所述BGP模块获取的所述全部BGP能力数据,这样在与所述虚拟对等体协商各自已使能的BGP能力时,所述网络设备的BMP模块就可以由此获知所述虚拟对等体的已使能的BGP能力,也就是配置在所述网络设备上的全部BGP能力数据。
这里需要说明的是,虽然所述网络设备建立了一个虚拟对等体,但是具体可以是所述网络设备中的一个功能模块在执行建立虚拟对等体。
S705:所述BMP模块向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,所述第一对等体建立连接通知中携带所述虚拟对等体已使能的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备的设备标识。
所述第一对等体建立连接通知的封装格式和现有技术中的对等体建立连接通知的封装格式相同,如表3所示。但是,所述第一对等体建立连接通知的本地位置信息中是所述网络设备的设备标识,这里的设备标识可以是指所述网络设备的路由器ID等。而且由于所述虚拟对等体不需要接收所述网络设备的协商的open message,故所述第一对等体建立连接通知的Received OPEN Message所携带的内容可以是空的。
需要注意的是,所述监视服务器收到所述第一对等体建立连接通知后,解析本地位置信息得到的是所述网络设备的设备标识,由此确定出对应所述网络设备的所述全部BGP能力数据,也就是说,在图7的基础上,图8为本发明实施例提供的一种发送BGP信息的方法的流程图,如图8所示,
S801:所述监视服务器接收所述第一对等体建立连接通知。
S802:所述监视服务器从所述第一对等体建立连接通知获取对应所述网络设备的所述全部BGP能力数据。
但是,所述监视服务器401还不能从所述全部BGP能力数据中区分出已使能在所述网络设备300上的BGP能力和未使能在所述网络设备上的 BGP能力。这样监控服务器将获取的所述BGP的全部能力作为对整个网络的进行部署和决策的依据还是不够精确。针对这种情况,可选的,在图7所示实施例的基础上,所述BMP模块向监视服务器发送针对所述网络设备的第二对等体建立连接通知,所述第二对等体建立连接通知中携带所述网络设备已使能的BGP能力以及所述网络设备的设备标识。
也就是说,由于所述网络设备已经和所述虚拟对等体建立了BGP连接,那么所述BMP模块既可以向所述监视服务器发送针对所述虚拟对等体的所述第一对等体建立连接通知,也同样可以向所述监视服务器发送针对所述网络设备的所述第二对等体建立连接通知。所述第二对等体建立连接通知中携带所述网络设备与所述虚拟对等体协商各自已使能BGP能力时获得的已使能在所述网络设备上的BGP能力。举例说明,比如所述网络设备上配置的全部BGP能力数据一共有三个,分别是IPv4 Unicast(IPv4单播)、IPv4Multicast(IPv4组播)和IPv6 Unicast(IPv6单播),目前在所述网络设备上只使能了一个:IPv4 Unicast。所述网络设备通过建立虚拟对等体,在所述虚拟对等体上使能所述BGP的全部三个能力IPv4 Unicast、IPv4 Multicast和IPv6 Unicast,并通过与所述虚拟对等体协商各自已使能的BGP能力后,所述BMP模块向所述监视服务器发送第一对等体建立连接通知,所述监视服务器根据所述BMP模块发送的所述第一对等体建立连接通知获取所述BGP的全部三种能力IPv4 Unicast、IPv4 Multicast和IPv6 Unicast,但是还不知道哪些能力是已使能在所述网络设备上,哪些能力是未使能在所述网络设备上的。所述监视服务器根据所述BMP模块发送的针对所述网络设备的第二对等体建立连接通知获取所述网络设备已使能的BGP能力:IPv4Unicast,由此所述监视服务器确定所述网络设备的所述BGP全部能力中已使能的BGP能力为IPv4 Unicast,未使能的BGP能力为IPv4 Multicast和IPv6Unicast。
这样当所述监视服务器获取所述第一对等体建立连接通知和所述第二对等体建立连接通知后,所述监视服务器可以从所述全部BGP能力数据中 根据所述已使能的BGP能力区分出未使能的BGP能力。进一步提高了所述监视服务器对所述网络设备的所述全部BGP能力数据的认知程度。当需要对网络的功能进行扩展或对网络中的网络设备进行重新部署时,所述监视服务器通过获知的所述网络设备的已使能BGP能力和未使能BGP能力可以确定哪些网络设备可以不用额外配置协议就可以直接使能需要扩展的能力等,提高了对网络能力扩展或网络设备重新部署的效率,节约了网络资源和运营成本。
可以看出,通过对网络设备的能力扩展,使得所述网络设备的BGP模块可以通过所述BGP模块和所述BMP模块之间的交互获取配置在所述网络设备上的全部BGP能力数据,所述网络设备建立一个虚拟对等体,并在所述虚拟对等体上使能获取的所述全部BGP能力数据,当所述网络设备与所述虚拟对等体协商各自已使能的BGP能力时,所述BMP模块将获取在所述虚拟对等体上使能的BGP能力,也就是配置在所述网络设备上的全部BGP能力数据,所述BMP模块向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,以使得所述监视服务器获取所述网络设备的所述全部BGP能力数据,这样监控服务器可以全面的了解到整个网络所能支持的实际能力,进而对整个网络的部署和决策提供有效依据。
实施例五
参阅图9,图9为本发明实施例提供的一种网络设备的硬件结构示意图,所述网络设备包括BGP模块和BMP模块,所述网络设备900包括存储器901、接收器902和发送器903,以及分别与所述存储器901、所述接收器902和所述发送器903连接的处理器904,所述存储器901用于存储一组程序指令,所述处理器904用于调用所述存储器901存储的程序指令执行如下操作:
与监视服务器建立BMP连接;
触发所述发送器903向所述BGP模块发送获取能力信息集合的请求;
触发所述接收器902接收所述获取能力信息集合的请求;
通过遍历所述BGP模块所保存的BGP能力数据以获取配置在所述网络 设备上的全部BGP能力数据;
触发所述发送器903向所述BMP模块发送获取的所述全部BGP能力数据;
触发所述发送器903向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。具体地,所述BMP模块102可以将所述全部BGP能力数据以及所述网络设备的设备标识携带在初始能力信息集合消息(Initiation Capability Information)中,在将所述初始能力信息集合消息发送给所述监视服务器。更具体地,可以将所述全部BGP能力数据以及所述网络设备的设备标识携带在初始能力信息集合消息的可选参数(Optional Parameters)字段中。
可选地,所述处理器904可以为中央处理器(Central Processing Unit,CPU),所述存储器901可以为随机存取存储器(Random Access Memory,RAM)类型的内部存储器,所述接收器902和所述发送器903可以包含普通物理接口,所述物理接口可以为以太(Ethernet)接口或异步传输模式(Asynchronous Transfer Mode,ATM)接口。所述处理器904、发送器903、接收器902和存储器901可以集成为一个或多个独立的电路或硬件,如:专用集成电路(Application Specific Integrated Circuit,ASIC)。
实施例六
参阅图10,图10为本发明实施例提供的一种网络设备的硬件结构示意图,所述网络设备包括BGP模块和BMP模块,所述网络设备1000包括存储器1001、接收器1002和发送器1003,以及分别与所述存储器1001、所述接收器1002和所述发送器1003连接的处理器1004,所述存储器1001用于存储一组程序指令,所述处理器1004用于调用所述存储器1001存储的程序指令执行如下操作:
触发所述发送器1003向所述BGP模块发送获取能力信息集合的请求;
触发所述接收器1002接收所述获取能力信息集合的请求;
通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备上的全部BGP能力数据;
建立一个虚拟对等体,所述虚拟对等体上使能了所述全部BGP能力数据;
触发所述发送器1003向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知(Peer Up Notification),所述第一对等体建立连接通知中携带所述虚拟对等体已使能的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备的设备标识。
可选地,所述处理器1004可以为CPU,所述存储器1001可以为RAM类型的内部存储器,所述接收器1002和所述发送器1003可以包含普通物理接口,所述物理接口可以为Ethernet接口或ATM接口。所述处理器1004、发送器1003、接收器1002和存储器1001可以集成为一个或多个独立的电路或硬件,如:ASIC。
本发明实施例中提到的第一对等体建立连接通知“第一”只是用来做名字标识,并不代表顺序上的第一。该规则同样适用于“第二”。
需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上对本发明所提供的一种发送BGP信息的网络设备和方法进行了详细介绍,本文中应用了具体实施例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (16)

  1. 一种发送边界网关协议BGP信息的网络设备,其特征在于,所述网络设备包括BGP模块和BGP监控协议BMP模块,
    所述BMP模块,用于与监视服务器建立BMP连接,以及向所述BGP模块发送获取能力信息集合的请求;
    所述BGP模块,用于接收所述获取能力信息集合的请求;通过遍历所述BGP模块所保存的BGP能力数据以获取配置在所述网络设备上的全部BGP能力数据;向所述BMP模块发送获取的所述全部BGP能力数据;
    所述BMP模块,还用于向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。
  2. 根据权利要求1所述的网络设备,其特征在于,
    所述向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识,是通过初始能力信息集合消息发送的。
  3. 根据权利要求2所述的网络设备,其特征在于,所述初始能力信息集合消息中的可选参数字段中封装所述全部BGP能力数据。
  4. 根据权利要求2或3所述的网络设备,还包括:
    所述监视服务器,用于获取所述BMP模块发送的所述初始能力信息集合消息;从所述初始能力信息集合消息中获取对应所述网络设备的所述全部BGP能力数据。
  5. 根据权利要求1至4任意一项所述的网络设备,其特征在于,
    当所述网络设备与其他网络设备建立BGP连接时,所述BMP模块,还用于向所述监视服务器发送针对所述网络设备的对等体建立连接通知,所述对等体建立连接通知中携带所述网络设备已使能的BGP能力。
  6. 一种发送边界网关协议BGP信息的方法,其特征在于,该方法用于一种网络设备,该网络设备包括BGP模块和BGP监控协议BMP模块,所述方法包括:
    所述BMP模块与监视服务器建立BMP连接;
    所述BMP模块向所述BGP模块发送获取能力信息集合的请求;
    所述BGP模块接收所述获取能力信息集合的请求;
    所述BGP模块通过遍历所述BGP模块所保存的BGP能力数据以获取 配置在所述网络设备上的全部BGP能力数据;
    所述BGP模块向所述BMP模块发送获取的所述全部BGP能力数据;
    所述BMP模块向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识。
  7. 根据权利要求6所述的方法,其特征在于,
    所述BMP模块向所述监视服务器发送所述全部BGP能力数据以及所述网络设备的设备标识,具体为:所述BMP模块向所述监视服务器发送初始能力信息集合消息,所述初始能力信息集合消息携带所述全部BGP能力数据以及所述网络设备的设备标识。
  8. 根据权利要求7所述的方法,其特征在于,
    所述初始能力信息集合消息中的可选参数字段中封装所述全部BGP能力数据。
  9. 根据权利要求7或8所述的方法,还包括:
    所述监视服务器获取所述BMP模块发送的所述初始能力信息集合消息;
    所述监视服务器从所述初始能力信息集合消息中获取对应所述网络设备的所述全部BGP能力数据。
  10. 根据权利要求6至9任意一项所述的方法,其特征在于,
    当所述网络设备与其他网络设备建立BGP连接时,所述BMP模块向所述监视服务器发送针对所述网络设备的对等体建立连接通知,所述对等体建立连接通知中携带所述网络设备已使能的BGP能力。
  11. 一种发送边界网关协议BGP信息的网络设备,其特征在于,所述网络设备包括BGP模块和BGP监控协议BMP模块,
    所述BMP模块,用于向所述BGP模块发送获取能力信息集合的请求;
    所述BGP模块,用于接收所述获取能力信息集合的请求;通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备上的全部BGP能力数据;
    所述网络设备,用于建立一个虚拟对等体,所述虚拟对等体上使能了所述全部BGP能力数据;
    所述BMP模块,还用于向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,所述第一对等体建立连接通知中携带所述虚拟对等 体已使能的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备的设备标识。
  12. 根据权利要求11所述的网络设备,其特征在于,所述BMP模块,还用于向监视服务器发送针对所述网络设备的第二对等体建立连接通知,所述第二对等体建立连接通知中携带所述网络设备已使能的BGP能力以及所述网络设备的设备标识。
  13. 根据权利要求11或12所述的网络设备,其特征在于,
    所述监视服务器,用于接收所述第一对等体建立连接通知;从所述第一对等体建立连接通知获取对应所述网络设备的所述全部BGP能力数据。
  14. 一种发送边界网关协议BGP信息的方法,其特征在于,该方法用于一种网络设备,该网络设备包括BGP模块和BGP监控协议BMP模块,所述方法包括:
    所述BMP模块向所述BGP模块发送获取能力信息集合的请求;
    所述BGP模块接收所述获取能力信息集合的请求;
    所述BGP模块通过遍历所述BGP模块所保存的BGP能力数据获取配置在所述网络设备上的全部BGP能力数据;
    所述网络设备建立一个虚拟对等体,所述虚拟对等体上使能了所述全部BGP能力数据;
    所述BMP模块向监视服务器发送针对所述虚拟对等体的第一对等体建立连接通知,所述第一对等体建立连接通知中携带所述虚拟对等体已使能的所述全部BGP能力数据,所述第一对等体建立连接通知中的位置信息为所述网络设备的设备标识。
  15. 根据权利要求14所述的方法,其特征在于,
    所述BMP模块向监视服务器发送针对所述网络设备的第二对等体建立连接通知,所述第二对等体建立连接通知中携带所述网络设备已使能的BGP能力以及所述网络设备的设备标识。
  16. 根据权利要求14或15所述的方法,其特征在于,
    所述监视服务器接收所述第一对等体建立连接通知;
    所述监视服务器从所述第一对等体建立连接通知获取对应所述网络设备的所述全部BGP能力数据。
PCT/CN2015/080438 2014-07-23 2015-05-30 一种发送bgp信息的网络设备和方法 Ceased WO2016011850A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP20191919.8A EP3823216B1 (en) 2014-07-23 2015-05-30 Network device and method for sending bgp information
EP15824254.5A EP3163799B1 (en) 2014-07-23 2015-05-30 Network device and method for sending bgp information
US15/412,890 US10826846B2 (en) 2014-07-23 2017-01-23 Network device and method for sending BGP information
US17/033,260 US11621926B2 (en) 2014-07-23 2020-09-25 Network device and method for sending BGP information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410352943.0A CN105281942B (zh) 2014-07-23 2014-07-23 一种发送bgp信息的网络设备和方法
CN201410352943.0 2014-07-23

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/412,890 Continuation US10826846B2 (en) 2014-07-23 2017-01-23 Network device and method for sending BGP information

Publications (1)

Publication Number Publication Date
WO2016011850A1 true WO2016011850A1 (zh) 2016-01-28

Family

ID=55150317

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080438 Ceased WO2016011850A1 (zh) 2014-07-23 2015-05-30 一种发送bgp信息的网络设备和方法

Country Status (4)

Country Link
US (2) US10826846B2 (zh)
EP (2) EP3163799B1 (zh)
CN (2) CN109246008B (zh)
WO (1) WO2016011850A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506376A (zh) * 2016-10-27 2017-03-15 杭州华三通信技术有限公司 一种被监控邻居初始路由信息发送方法及装置
CN113794644A (zh) * 2021-10-12 2021-12-14 新华三信息安全技术有限公司 一种路由表项删除方法及装置

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246008B (zh) * 2014-07-23 2021-08-20 华为技术有限公司 网络设备、系统和发送bgp信息的方法
CN106059916B (zh) * 2016-05-31 2020-10-13 新华三技术有限公司 一种路由注入方法及装置
CN106169978B (zh) * 2016-07-07 2019-09-17 新华三技术有限公司 Bmp报文的处理方法和装置
CN106789638B (zh) * 2016-12-28 2020-08-07 华为技术有限公司 一种处理路由的方法及网络设备
CN110557317B (zh) * 2018-06-01 2022-05-13 华为技术有限公司 管理虚拟专用网络的方法和设备
CN110971522B (zh) * 2018-09-30 2021-09-17 华为技术有限公司 一种确定路由泄露的方法、设备和系统
CN111225006A (zh) * 2018-11-23 2020-06-02 中兴通讯股份有限公司 连接建立方法、报文传输方法、设备及存储介质
CN110191059B (zh) * 2019-07-29 2019-12-13 华为技术有限公司 一种路由信息监控方法和装置
CN112787930B (zh) 2019-11-06 2024-04-09 华为技术有限公司 一种监控对等体的运行状态的方法、装置及存储介质
CN112822103B (zh) * 2019-11-15 2022-09-23 华为技术有限公司 一种信息上报方法和信息处理方法及设备
US20250240231A1 (en) * 2024-01-23 2025-07-24 Juniper Networks, Inc. Optimizing border gateway protocol graceful shutdown
CN119697078B (zh) * 2024-12-20 2026-03-13 紫金山实验室 基于边界网关协议的监测系统的测试方法及系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155135A (zh) * 2006-09-28 2008-04-02 华为技术有限公司 一种泛洪自治系统边界路由器能力信息的方法及装置
CN102761482A (zh) * 2012-06-29 2012-10-31 杭州华三通信技术有限公司 一种bgp邻居的建立方法和设备

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553423B1 (en) * 1999-05-27 2003-04-22 Cisco Technology, Inc. Method and apparatus for dynamic exchange of capabilities between adjacent/neighboring networks nodes
JP3729051B2 (ja) * 2000-10-18 2005-12-21 日本電気株式会社 インタードメインルーティング装置、システムおよび方法
US9137033B2 (en) * 2003-03-18 2015-09-15 Dynamic Network Services, Inc. Methods and systems for monitoring network routing
EP1618706A4 (en) * 2003-03-18 2009-04-29 Renesys Corp METHOD AND SYSTEM FOR MONITORING NETWORK ROUTING
US20050050225A1 (en) * 2003-08-29 2005-03-03 Tatman Lance A. System and method for discovery of BGP router topology
US7710885B2 (en) * 2003-08-29 2010-05-04 Agilent Technologies, Inc. Routing monitoring
US7688714B2 (en) * 2004-04-28 2010-03-30 Cisco Technology, Inc. Network routing apparatus that performs soft graceful restart
US7590119B2 (en) * 2005-01-27 2009-09-15 Cisco Technology, Inc. Method and apparatus for context-based prefix updates in border gateway protocol
US7782866B1 (en) * 2006-09-29 2010-08-24 Qurio Holdings, Inc. Virtual peer in a peer-to-peer network
US8254396B2 (en) * 2006-10-13 2012-08-28 Cisco Technology, Inc. Fast border gateway protocol synchronization
CN101610208A (zh) * 2008-06-19 2009-12-23 华为技术有限公司 Bgp邻居间通告的方法、系统及路由器
US8953590B1 (en) * 2011-03-23 2015-02-10 Juniper Networks, Inc. Layer two virtual private network having control plane address learning supporting multi-homed customer networks
ES2410366B1 (es) * 2011-06-10 2014-02-28 Telefónica, S.A. Método para intercambiar información sobre recursos de red
EP2767051B1 (en) * 2011-11-03 2017-01-11 Huawei Technologies Co., Ltd. Border gateway protocol extension for the host joining/leaving a virtual private network
CN102404155A (zh) * 2011-12-01 2012-04-04 华为数字技术有限公司 一种诊断网络故障的方法及装置
CN102594714B (zh) * 2012-03-29 2015-01-28 杭州华三通信技术有限公司 一种bgp路由处理方法和bgp路由设备
US20130322437A1 (en) * 2012-05-31 2013-12-05 Robert Raszuk Method and apparatus for removing bgp state from network edge elements
CN104871495B (zh) * 2012-09-26 2018-07-13 华为技术有限公司 用于叠加网络的虚拟叠加网关
US8982707B2 (en) * 2013-03-14 2015-03-17 Cisco Technology, Inc. Interoperability of data plane based overlays and control plane based overlays in a network environment
CN103269286B (zh) * 2013-06-04 2016-01-13 上海数讯信息技术有限公司 基于边界网关协议的可视化路由监控管理系统
US9912577B2 (en) * 2014-04-17 2018-03-06 Cisco Technology, Inc. Segment routing—egress peer engineering (SP-EPE)
US9350668B2 (en) * 2014-06-03 2016-05-24 The Viki Group, Inc. Systems and methods for IP sharing across wide area networks
US9667535B2 (en) * 2014-06-11 2017-05-30 Level 3 Communications, Llc Multi-peer routing in a network
CN109246008B (zh) * 2014-07-23 2021-08-20 华为技术有限公司 网络设备、系统和发送bgp信息的方法
US9912584B2 (en) * 2014-11-07 2018-03-06 Cisco Technology, Inc. Data center inbound routing optimization in the event of virtual machine mobility

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155135A (zh) * 2006-09-28 2008-04-02 华为技术有限公司 一种泛洪自治系统边界路由器能力信息的方法及装置
CN102761482A (zh) * 2012-06-29 2012-10-31 杭州华三通信技术有限公司 一种bgp邻居的建立方法和设备

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SCUDDER, J. ET AL.: "BGP Monitoring Protocol", DRAFT-IETF-GROW-BMP-07, 22 October 2012 (2012-10-22), XP015112885 *
SCUDDER, J. ET AL.: "Capabilities Advertisement with BGP-4", RFC5492, 28 February 2009 (2009-02-28), XP015065493 *
See also references of EP3163799A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506376A (zh) * 2016-10-27 2017-03-15 杭州华三通信技术有限公司 一种被监控邻居初始路由信息发送方法及装置
CN113794644A (zh) * 2021-10-12 2021-12-14 新华三信息安全技术有限公司 一种路由表项删除方法及装置

Also Published As

Publication number Publication date
US20170134308A1 (en) 2017-05-11
CN109246008B (zh) 2021-08-20
CN105281942A (zh) 2016-01-27
US20210014175A1 (en) 2021-01-14
EP3823216A1 (en) 2021-05-19
CN109246008A (zh) 2019-01-18
US11621926B2 (en) 2023-04-04
EP3163799A4 (en) 2017-08-02
EP3823216B1 (en) 2025-02-19
EP3163799B1 (en) 2020-10-07
CN105281942B (zh) 2018-10-30
US10826846B2 (en) 2020-11-03
EP3163799A1 (en) 2017-05-03

Similar Documents

Publication Publication Date Title
WO2016011850A1 (zh) 一种发送bgp信息的网络设备和方法
CN113810206B (zh) 一种网络自动化编排管理方法、实体、控制器及电子设备
WO2015109821A1 (zh) 一种管理业务链的方法、系统及装置
CN107615710B (zh) Sdn交换机中的直接回复动作
US11503498B2 (en) Information-centric networking over 5G or later networks
CN113691385A (zh) 报文处理、通告方法、装置、网桥节点、源设备及介质
WO2014110997A1 (en) Border gateway protocol (bgp) routes advertisement
CN112470543B (zh) 执行群组通信的装置和方法
BR102020014994A2 (pt) Método para configuração de um sistema de extensão de cobertura de comunicação sem fio e um sistema de extensão de cobertura de comunicação sem fio que implementa o dito método
CN107147580A (zh) 一种隧道建立的方法及通信系统
GB2595937A (en) Access traffic management
KR20230084583A (ko) Ue 서비스 관리 방법 및 장치
CN105743852B (zh) 通过http实现跨越网闸进行Socket保持连接通信的方法及系统
WO2016086890A1 (zh) 一种检测连通性的方法和装置
WO2015196923A1 (zh) 一种发送信息的方法和网络装置
CN107911495B (zh) 一种mac地址同步方法和vtep
CN102859947B (zh) 一种邻居发现的方法,装置和系统
CN105591967A (zh) 一种数据传输方法和装置
CN112887387A (zh) 业务功能链和覆盖传输环路预防
WO2015070763A1 (zh) X2接口的自建立方法及装置
CN112005533B (zh) 代理多路径协议连接的方法和设备
CN106209617B (zh) 一种通告路由和撤销路由的方法和相应的路由设备
CN105812272A (zh) 业务链的处理方法、装置与系统
WO2016173233A1 (zh) 一种路由控制方法、设备及系统
WO2015188682A1 (zh) 业务链的处理方法、装置与系统

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: 15824254

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2015824254

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2015824254

Country of ref document: EP