WO2016127719A1 - Information transmitting method, related network device and system - Google Patents

Information transmitting method, related network device and system Download PDF

Info

Publication number
WO2016127719A1
WO2016127719A1 PCT/CN2015/099939 CN2015099939W WO2016127719A1 WO 2016127719 A1 WO2016127719 A1 WO 2016127719A1 CN 2015099939 W CN2015099939 W CN 2015099939W WO 2016127719 A1 WO2016127719 A1 WO 2016127719A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
network device
information
protocol
request
Prior art date
Application number
PCT/CN2015/099939
Other languages
French (fr)
Chinese (zh)
Inventor
董杰
陈国义
张民贵
苗福友
何健飞
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016127719A1 publication Critical patent/WO2016127719A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications, and in particular, to an information sending method, a related network device, and a system.
  • SDN Software Defined Network
  • the Interface to the Routing System is a technology proposed by the Internet Engineering Task Force (IETF) to provide an open interface on a routing system. Enables upper-level users to read and manipulate information, policies, and status in the routing system.
  • the upper layer users of I2RS can be network management applications, network controllers, or various applications that need to use the network.
  • the architecture of the I2RS includes a client client and a proxy device agent, wherein the client can be located in the upper layer user (eg, a network management device, a network controller, or various applications), and the agent is usually located in the network device. Between the client and the agent, a protocol is needed to implement the connection and information interaction between the two.
  • the control management protocol with the hierarchical structure, the message layer and the content layer are independent, and the message layer contains the request response message mechanism is expected to be Check the protocol that is used to send messages between the client and the agent.
  • the information that I2RS needs to pass between the client and the agent is diverse, including network topology information, routing information, policy information, status information, and various entries in the network device.
  • the amount of information in this type of information is large, and the frequency of updates Higher.
  • such a protocol having a hierarchical structure and including a request response message mechanism cannot be directly applied to the I2RS architecture.
  • the request response mechanism requires the first network device to first initiate a request message to the second network device to request the required
  • the information after receiving the request message, the second network device replies with a response message carrying the information requested by the first network device, and responds to the received request message, which is not suitable for a large number of frequently changing information update scenarios. Use, otherwise it will make the devices supporting this protocol inefficient and increase the burden on the device and network.
  • Embodiments of the present invention provide an information sending method, a related network device, and a system, which are used to solve a large number of devices that support a control management protocol having a hierarchical structure, a message layer and a content layer being independent of each other, and a message layer including a request response message mechanism. Inefficiencies in changing information scenarios with frequent changes.
  • a first aspect of the embodiments of the present invention provides an information sending method, where a first network device and a second network device support a specific protocol, where the specific protocol is a control management protocol, has a hierarchical structure, and includes at least a message. a layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact with,
  • the message layer and the content layer are independent of each other, and the method includes:
  • the first network device collects information in the network
  • the first network device and the second network device establish a session by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
  • the first network device When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and sends a first message to the second network device. And the first message carries the information that is collected by the first network device that meets the information identifier, and the information request indicates that the information that meets the information identifier is obtained.
  • the first network device determines that information carried in the first message sent to the second network device needs to be updated, the first network device collects updated information
  • the first network device sends a second message to the second network device, where the second message carries the updated information collected by the first network device.
  • the information identifier is used to indicate that the second network device supports Type of information
  • the first network device When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and actively sends the information to the second network device.
  • a message where the first message carries the information that is collected by the first network device and meets the information identifier, and specifically includes:
  • the first network device When the information collected by the first network device meets the information type supported by the second network device, the first network device does not need to first receive the information request from the second network device, and actively sends the second request to the second network device.
  • the network device sends a first message, where the first message carries information that is collected by the first network device and that matches the type of information supported by the second network device.
  • the information identifier is used to indicate information about the second network device. demand;
  • the first network device When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and actively sends the information to the second network device.
  • a message where the first message carries the information that is collected by the first network device and meets the information identifier, and specifically includes:
  • the first network device When the information collected by the first network device meets the information requirement of the second network device, the first network device does not need to first receive the information request from the second network device, and actively sends the information request to the second network device.
  • the device sends a first message, where the first message carries information that is collected by the first network device and meets the information requirement of the second network device.
  • the message type further includes a push message, where the push message is A one-way message, the second network device does not need to reply to the response message after receiving the push message, and the first message belongs to the push message.
  • the message type further includes a push message, and the push message
  • the push message For a one-way message, the second network device does not need to reply to the response message after receiving the push message, and both the first message and the second message belong to the push message.
  • the specific protocol is an extended network configuration Netconf.
  • the protocol message is a remote procedure call request message rpc in the Netconf protocol
  • the response message is a remote procedure call response message rpc-reply in the Netconf protocol
  • the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
  • the rpc-push includes the rpc-push namespace and the rpc- Push the specific information content to be published.
  • the operation type supported by the request message includes a publishing operation
  • the publishing The operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the request message carrying the publishing operation.
  • the operation type supported by the request message includes a publishing operation
  • the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
  • the method further includes:
  • the first network device receives a third message sent by the second network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation.
  • the response to the at least two request messages carrying the publishing operation is The message includes: at least two message numbers carrying request messages for the publishing operation.
  • the specific protocol is configured to be an extended network configuration Netconf protocol, where the response message is An extended rpc-reply in the extended Netconf protocol, the extended rpc-reply includes at least two message numbers carrying request messages for issuing operations.
  • the specific protocol configures the Netconf protocol for the extended network
  • the request message is an extended rpc in the extended Netconf protocol
  • the extended rpc includes the publishing operation.
  • the first network device collects The information includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and at least one of statistical information of the network device;
  • At least one of configuration information, policy information, and demand information At least one of configuration information, policy information, and demand information.
  • a second aspect of the embodiments of the present invention provides an information sending method, where a first network device and a second network device support a specific protocol, where the specific protocol is a control management protocol, has a hierarchical structure, and includes at least a message. a layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact with,
  • the message layer and the content layer are independent of each other, and the method includes:
  • the second network device After the second network device and the first network device establish a session by using the specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first network. a first message sent by the device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the second Information identifying the information of the network device;
  • the second network device saves the information that meets the information identifier of the second network device.
  • the step of directly receiving the first message sent by the first network device further includes:
  • the second network device extracts the updated information from the second message
  • the second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
  • the information that meets the information identifier of the second network device includes: : information conforming to the type of information supported by the second network device, or information satisfying the information requirement of the second network device.
  • the message type further includes a push message, where the push message is A one-way message, the second network device does not need to reply to the response message after receiving the push message, and the first message belongs to the push message.
  • the message type further includes a push message, where the push message is a one-way The message that the second network device does not need to reply to the response message after receiving the push message, where the first message and the second message belong to the push message.
  • the specific protocol is an extended network configuration Netconf.
  • the protocol message is a remote procedure call request message rpc in the Netconf protocol
  • the response message is a remote procedure call response message rpc-reply in the Netconf protocol
  • the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
  • the rpc-push includes the rpc-push namespace and the rpc- Push the specific information content to be published.
  • the operation type supported by the request message includes: a publishing operation, the publishing operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the carrying The request message for the release operation.
  • the operation type supported by the request message includes a publishing operation
  • the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
  • the method further includes:
  • the second network device sends a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
  • the response message that responds to at least two request messages carrying the publishing operation This includes: at least two message numbers carrying request messages for the publish operation.
  • the specific protocol is configured as an extended network configuration Netconf protocol
  • the response message is Extended rpc-reply in the extended Netconf protocol
  • the extended rpc-reply includes at least two message numbers carrying request messages for the publish operation.
  • the information of the information identifier of the network device includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and statistical information of the network device; or configuration information, policy information, and demand information. At least one of them.
  • a third aspect of the embodiments of the present invention provides a network device, which is used as a first network device, where the first network device and the second network device both support a specific protocol, and the specific protocol is a control management protocol.
  • the specific protocol is a control management protocol.
  • the message layer being used to define a message type that implements protocol interaction, and the message type includes request cancellation
  • the content layer is used to define data and information that the protocol needs to transmit and interact, the message layer and the content layer are independent of each other, and the first network device includes:
  • a collection module for collecting information in the network
  • Establishing a module configured to establish a session with the second network device by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
  • the first sending module is configured to: when the information collected by the collecting module meets the information identifier, do not need to first receive the information request that is sent by the second network device, and send the first message to the second network device.
  • the first message carries the information that is collected by the collecting module and meets the information identifier of the second network device, and the information request indicates that the information that meets the information identifier is obtained.
  • the collecting module is further configured to: when determining to be carried in the first message sent to the second network device Collect updated information when information needs to be updated;
  • the first sending module is further configured to: send a second message to the second network device, where the second message carries the updated information collected by the collecting module.
  • the information identifier is used to indicate that the second network device supports Type of information
  • the first sending module is specifically configured to: when the information collected by the collecting module meets the information type supported by the second network device, do not need to first receive the information request submitted by the second network device, and actively report to the The second network device sends a first message, where the first message carries information collected by the collection module that conforms to the type of information supported by the second network device.
  • the information identifier is used to indicate information about the second network device. demand;
  • the first sending module is specifically configured to: when the information collected by the collecting module meets the information requirement of the second network device, do not need to first receive the information request that is sent by the second network device, and actively send the information to the first
  • the second network device sends a first message, where the first message carries information collected by the collection module that satisfies the information requirement of the second network device.
  • the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to receive the push message. Replying to a reply message, the first message belongs to the push message.
  • the message type further includes a push message, where the push message is a one-way The message that the second network device does not need to reply to the response message after receiving the push message, where the first message and the second message belong to the push message.
  • the specific protocol is an extended network configuration Netconf.
  • the protocol message is a remote procedure call request message rpc in the Netconf protocol
  • the response message is a remote procedure call response message rpc-reply in the Netconf protocol
  • the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
  • the rpc-push includes the rpc-push namespace and the rpc- Push the specific information content to be published.
  • the operation type supported by the request message includes a publishing operation
  • the publishing The operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the request message carrying the publishing operation.
  • the operation type supported by the request message includes a publishing operation
  • the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
  • the first network device further includes:
  • a first receiving module configured to receive a third message sent by the second network device, where the The three message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
  • the response to the at least two request messages carrying the publishing operation is The message includes: at least two message numbers carrying request messages for the publishing operation.
  • the specific protocol is an extended network configuration Netconf protocol
  • the response message is An extended rpc-reply in the extended Netconf protocol
  • the extended rpc-reply includes at least two message numbers carrying request messages for issuing operations.
  • the specific protocol is configured to configure the Netconf protocol for the extended network, where the request message is The extended rpc in the extended Netconf protocol, the extended rpc including the publishing operation.
  • the information collected by the collection module in the fourteenth implementation manner of the third aspect of the embodiments of the present invention includes: at least one of network topology information, network routing information, network performance information, network device status information, and network device statistics; or at least one of configuration information, policy information, and requirement information.
  • a fourth aspect of the present invention provides a network device, which is used as a second network device, where the first network device and the second network device both support a specific protocol, and the specific protocol is a control management protocol.
  • the message layer is used to define a message type for implementing protocol interaction
  • the message type includes a request message and a response message
  • the content layer is used to define a protocol that needs to be transmitted and
  • the data and information of the interaction, the message layer and the content layer are independent of each other
  • the second network device comprises:
  • a second receiving module configured to: after the second network device and the first network device establish a session by using the specific protocol, do not need to first send an information request to the first network device, directly receiving the first a first message sent by the network device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the Information of the information identification of the network device;
  • An extracting module configured to extract, from the first message received by the second receiving module, the information that meets the information identifier of the second network device;
  • a saving module configured to save information that is extracted by the extraction module and meets the information identifier of the second network device.
  • the second receiving module is further configured to receive a second message that is sent by the first network device, The second message carries the updated information collected by the first network device;
  • the extracting module is further configured to: extract the updated information from the second message;
  • the second network device further includes:
  • an update module configured to update, by using the updated information extracted by the extraction module, the saved information that meets the information identifier of the second network device.
  • the information that meets the information identifier of the second network device includes: : information conforming to the type of information supported by the second network device, or information satisfying the information requirement of the second network device.
  • the message type further includes a push message, where the push message is A one-way message, the second network device does not need to reply to the response message after receiving the push message, and the first message belongs to the push message.
  • the message type further includes a push message, where the push message is a one-way The message that the second network device does not need to reply to the response message after receiving the push message, where the first message and the second message belong to the push message.
  • the specific protocol is an extended network configuration Netconf.
  • the protocol message is a remote procedure call request message rpc in the Netconf protocol
  • the response message is a remote procedure call response message rpc-reply in the Netconf protocol
  • the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
  • the fourth party of the embodiment of the present invention includes the rpc-push namespace and the specific information content to be advertised by the rpc-push.
  • the operation type supported by the request message includes a publishing operation
  • the publishing The operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the request message carrying the publishing operation.
  • the operation type supported by the request message includes a publishing operation
  • the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
  • the second network device further includes:
  • the second sending module is configured to send a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation.
  • the response message that responds to at least two request messages carrying the publishing operation This includes: at least two message numbers carrying request messages for the publish operation.
  • the specific protocol is an extended network configuration Netconf protocol
  • the response message is Extended rpc-reply in the extended Netconf protocol
  • the extended rpc-reply includes at least two message numbers carrying request messages for the publish operation.
  • the information of the information identifier of the network device includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and statistics of the network device. One less; or, at least one of configuration information, policy information, and demand information.
  • a fifth aspect of the embodiments of the present invention provides an information sending system, including:
  • the network device used as the first network device provided by any one of the implementation manners of the fourth aspect to the fourteenth aspect of the present invention, and the fourth to fourth aspects of the embodiment of the present invention
  • a network device used as a second network device provided by any one of the twelfth implementations.
  • the embodiment of the present invention has the following advantages: when the information collected by the first network device supporting the specific protocol in the embodiment of the present invention conforms to the information identifier of the second network device, the first network device does not need to be first. Receiving the information request from the second network device, and actively sending the first message to the second network device that also supports the specific protocol, where the first message carries the second network device that is collected by the first network device. Information identifies the information.
  • the specific protocol has a hierarchical structure, at least a message layer and a content layer, the message layer and the content layer are independent of each other, and the message layer includes a request response message mechanism.
  • the information collected by the first network device does not need to wait for the request message from the second network device to send the collected information every time after collecting the information.
  • the time when the collected information is sent out, and the second network device does not need to reply to the response message after receiving the first message, which saves the information processing flow and improves the first network device and the second network device supporting the specific protocol.
  • FIG. 1 is a schematic flowchart of a message sending method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for sending a message according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another method for sending a message according to an embodiment of the present invention.
  • FIG. 4 is another schematic flowchart of a message sending method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a network device used as a first network device according to an embodiment of the present disclosure
  • FIG. 6 is another schematic structural diagram of a network device used as a first network device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a network device used as a second network device according to an embodiment of the present invention.
  • FIG. 8 is another schematic structural diagram of a network device used as a second network device according to an embodiment of the present invention.
  • FIG. 9 is another schematic structural diagram of a network device used as a second network device according to an embodiment of the present invention.
  • FIG. 10 is another schematic structural diagram of a network device according to an embodiment of the present invention.
  • Control Management Protocol A communication protocol used to exchange control, data, and status information of a network between network entities to implement control and management of the network.
  • the message layer and the content layer are independent of each other: any data described by the content layer can be carried by any type of message, and there is no limitation that a certain data content can only be carried by a certain message type.
  • the message sending method includes two execution entities: a first network device as an information sender, and a second network device as an information receiver.
  • the first network device and the second network device both support a specific protocol, and the specific protocol is a control management protocol, and has a hierarchical structure including at least a message layer and a content layer.
  • the message layer is used to define a message type that implements protocol interaction.
  • the message type includes a request message and a response message.
  • the content layer is used to define data and information that the protocol needs to transmit and interact.
  • the message layer and the content layer are independent of each other.
  • the executive body is the first network device:
  • an embodiment of a message sending method in an embodiment of the present invention includes:
  • the first network device collects information in the network.
  • the first network device supporting the particular protocol collects information in the network.
  • the first network device can collect required information in the network according to a specific rule, and the specific rule and the required information may be specifically according to a network environment in which the first network device is located and the first network device is The responsibilities in the network vary, and are not limited here.
  • the first network device establishes a session with the second network device by using a specific protocol, and obtains the information identifier of the second network device during the session establishment process.
  • the information identifier of the second network device is obtained.
  • the first network device may have a communication connection with the plurality of network devices, and the second network device may only be one of the devices that establish a communication connection with the first network device, and therefore, the first network device collects
  • the information may be more than the information sent to the second network device, the information that meets the information identifier of the second network device may be sent to the second network device, and the collected additional information may be sent to the other and the first
  • the network device establishes a communication connection device, which is not limited herein.
  • the information identifier may indicate the type of information supported by the second network device, that is, the type of information that the first network device can obtain by the second network device, indicating that the first network device needs to match the collected information.
  • the information of the information type supported by the second network device is sent to the second network device;
  • the information identifier may represent the information requirement of the second network device, that is, the information obtained by the first network device may also be the information requirement of the second network device, indicating that the first network device does not need to collect the collected information. All the information that meets the information type supported by the second network device is sent to the second network device, and only the information that meets the information requirement of the second network device needs to be sent to the second network device.
  • the first network device does not need to first receive the information request sent by the second network device, and actively sends the information to the second network device.
  • a message the first message carries information that is collected by the first network device and that meets the information identifier.
  • the first network device After the first network device collects the information and obtains the information identifier of the second network device, when the information collected by the first network device meets the information identifier of the second network device, the first network device The device does not need to receive the information request from the second network device, and sends a first message to the second network device, where the first message carries the second network device that is collected by the first network device.
  • Information identifying information wherein the information request indicates obtaining information conforming to the information identifier of the second network device.
  • the triggering condition that the first network device sends the first message to the second network device is that the information collected by the first network device meets the information identifier of the second network device, and specifically, according to different information identifiers, Divided into: 1.
  • the information identifier is used to indicate the type of information supported by the second network device, and when the information collected by the first network device meets the information type supported by the second network device, The second network device sends a first message, where the first message carries information that is collected by the first network device and meets the type of information supported by the second network device; 2.
  • the information identifier is used to indicate The information request of the second network device is: when the information collected by the first network device meets the information requirement of the second network device, the first message is sent to the second network device, the first The message carries the information collected by the first network device that meets the information requirement of the second network device.
  • the foregoing sending the first message to the second network device is performed, except that the trigger condition is met, and in addition, in order to reduce the number of times of information transmission, a preset time period may also be defined, and the trigger condition may be The first message is sent to the second network device directly, and is not limited herein.
  • the first network device when the information collected by the first network device that supports the specific protocol meets the information identifier of the second network device, the first network device does not need to receive the information request from the second network device first, and the active support is also supported.
  • the second network device of the specific protocol sends a first message, where the first message carries the information collected by the first network device that meets the information identifier of the second network device.
  • the specific protocol has a hierarchical structure, at least a message layer and a content layer, the message layer and the content layer are independent of each other, and the message layer includes a request response message mechanism.
  • the information collected by the first network device does not need to wait for the request message from the second network device to send the collected information every time after collecting the information.
  • the time when the collected information is sent out, and the second network device does not need to reply to the response message after receiving the first message, which saves the information processing flow and improves the first network device and the second network device supporting the specific protocol.
  • the first network device sends, to the second network device, the first message that carries the information that is collected by the first network device and meets the information identifier of the second network device, if the first network device determines to send to the first The information of the network device needs to be updated, and the second message may be sent to the second network device, where the second message carries the updated information.
  • FIG. 2 another embodiment of the message sending method in the embodiment of the present invention is shown.
  • the first network device collects information in the network.
  • the first network device and the second network device establish a session by using a specific protocol, and obtain the information identifier of the second network device in the session establishment process.
  • the first network device does not need to first receive the information request that is sent by the second network device, and sends the first to the second network device. a message, the first message carrying information that is collected by the first network device and that meets the information identifier;
  • Steps 201 to 203 are similar to steps 101 to 103, and are not described herein.
  • the first network device collects updated information.
  • the first network device After the first network device sends the first message to the second network device, when the first network device determines that the information carried in the first message sent to the second network device needs to be updated, the first network device collects the updated information. .
  • the first network device determines that the information carried in the first message sent to the second network device needs to be updated, and the first network device may actively detect the information sent to the second network device. If there is an update, the first network device information may be notified by the information source that communicates with the first network device, which is not limited herein.
  • the first network device sends a second message to the second network device, where the second message carries the updated information collected by the first network device.
  • the first network device After collecting the updated information, the first network device does not need to wait for the second network device to send an information request, and directly sends a second message to the second network device, where the second message carries the information collected by the first network device. Updated information.
  • the first network device determines that the information carried in the first message sent to the second network device needs to be updated
  • the information that can be collected and updated is carried in the second message and then sent to the second network device, and the The second network device obtains the latest information in time.
  • the first network device supporting the specific protocol may directly send a message to the second network device, where the message type of the specific protocol includes a request message and a response message.
  • the specific protocol may be a type of The newly defined protocol can also be obtained by extending a message type in the message type of the existing protocol, and can also be obtained by extending the type of operation supported by the request message in the existing protocol, which is not limited herein.
  • the message type of the specific protocol further includes a push message, where the push message is a one-way message, and the second network device does not need to reply after receiving the push message.
  • the response message in the foregoing embodiment, the first message and the second message belong to the push message.
  • the specific protocol may be an extension performed on a network configuration Netconf protocol, that is, the specific protocol may be an extended Netconf protocol, and the specific protocol may be
  • the request message is the remote procedure call request message rpc in the Netconf protocol
  • the response message in the specific protocol is the remote procedure call response message rpc-reply in the Netconf protocol
  • the extended Netconf protocol also includes a remote procedure call.
  • the push message rpc-push the push message described in the above embodiment may be the rpc-push. It can be understood that, in practical applications, in addition to using a push message, or rpc-push, other names may be used as the name of the newly added message type, which is not limited herein.
  • the Netconf protocol satisfies the characteristics of the specific protocol.
  • the Netconf protocol is a network configuration protocol defined by the IETF RFC6241, which is mainly used for writing and reading the configuration of the network device.
  • the Netconf protocol is divided into the following four layers:
  • Content layer including configuration information and notification information, the specific content is defined using the Yang modeling language
  • Operation layer defines a series of protocol operations for netconf to edit and obtain configuration and configuration information
  • Message layer adopts XML-encoded message format.
  • the defined message types include rpc request message and rpc-reply message for implementing request-response, and notification message for event notification;
  • Transport layer A variety of reliable transport protocols, such as SSH, TLS, etc., can be used.
  • the rpc-push The rpc-push namespace and the specific information content to be published by the rpc-push are included.
  • the rpc-push namespace is used to indicate the specific location of the rpc-push definition in the protocol.
  • the specific information content to be advertised by the rpc-push is the information carried in the first message or the information carried in the second message.
  • the rpc-push can be defined in a variety of formats, as an example:
  • ⁇ rpc-push xmlns "urn:ietf:params:xml:ns:netconf:base:x.x”> is used to represent the rpc-push namespace, ⁇ push-info> ⁇ ! – The specific information content to be published --> ⁇ /push-info> is used to indicate the specific information content to be published by the rpc-push.
  • Extending the existing protocol in this way does not require modification of the request message and the reply message in the existing protocol, and only needs to add a new message type to obtain the specific protocol.
  • the operation type supported by the request message in the specific protocol includes a publishing operation, and the publishing operation enables the second network device to save and carry the request message carrying the publishing operation.
  • the existing protocol is extended by the type of operation supported by the extended request message. Since the first network device sends the request message, the second network device must reply the response message to the request message according to the protocol of the request response mechanism. Answer it.
  • the first network device may receive the third message sent by the second network device, where the third message is that the second network device carries at least two of the publishing operations. Request message to respond Answer the message. That is, the extended response message can respond to multiple request messages carrying the publishing operation at one time, thereby reducing the overhead caused by sending the response message.
  • the extended request message can be the same as the existing request message in the message format, but when the operation type is selected, the extended publishing operation can be carried in the request message, so that the received publishing operation is received.
  • the second network device of the request message saves the information carried in the request message.
  • the extended response message is responsive to the at least two request messages carrying the advertised operation, and the response message may carry the message number of the at least two request messages carrying the advertised operation, and may also carry the OK field.
  • the specific protocol may be an extension of the Netconf protocol configured on the network, that is, the specific protocol may be an extended Netconf protocol, where the response message may be an extended rpc-reply in the extended Netconf protocol, where The extended rpc-reply includes at least two message numbers carrying request messages for the publish operation.
  • the specific protocol may be an extension based on a network configuration Netconf protocol, where the specific protocol may be an extended Netconf protocol, where the request message is an extended rpc in the extended Netconf protocol,
  • the extended rpc includes the publish operation.
  • the advertised operation may use advertise as the name, and other names may be used, which are not limited herein.
  • the format of the extended rpc can be as follows:
  • the format of the extended rpc-reply can be as follows:
  • the message numbers carrying the three request messages carrying the advertise operation are 98, 99, and 100, respectively.
  • the information collected by the first network device may be different according to different application scenarios of the first network device and the second network device, for example, in the I2RS scenario, the first network device is an agent agent,
  • the information collected by the first network device may include: at least network topology information, network routing information, network performance information, network device status information, network device statistics, and the like.
  • the first network device is a client, and the information collected by the first network device may include at least one of configuration information, policy information, and demand information.
  • the executive body is the second network device:
  • another embodiment of the message sending method in the embodiment of the present invention includes:
  • the second network device After the second network device establishes a session with the first network device by using a specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first information sent by the first network device. a message, the first message carrying information that is collected by the first network device and conforms to the information identifier of the second network device;
  • the information request indicates that the information that meets the information identifier of the second network device is obtained.
  • the information that meets the information identifier of the second network device may be information that meets the information type supported by the second network device, or may satisfy the foregoing. Information about the information needs of the network device.
  • the second network device when the second network device establishes a session with the first network device by using a specific protocol, the information type supported by the second network device or the information requirement of the second network device may be used as the second network device.
  • the information identifier is notified to the first network device.
  • the second network device extracts the information that meets the information identifier of the second network device from the first message.
  • the second network device After receiving the first message sent by the first network device, the second network device extracts information corresponding to the information identifier of the second network device from the first message.
  • the second network device saves the information that meets the information identifier of the second network device.
  • the second network device After the second network device extracts the information that meets the information identifier of the second network device, the information that meets the information identifier of the second network device is saved.
  • the second network device does not need to first send an information request to the first network device, directly receives the message sent by the first network device, and saves the information in the message, and does not need to reply to the response message. Greatly improve the efficiency of interaction between devices.
  • the second network device may further receive a message that is sent by the first network device and that carries the updated information.
  • another embodiment of the method for sending a message in the embodiment of the present invention includes:
  • the second network device After the second network device establishes a session with the first network device by using a specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first information sent by the first network device. a message, the first message carrying information that is collected by the first network device and conforms to the information identifier of the second network device;
  • the second network device extracts the information that meets the information identifier of the second network device from the first message.
  • the second network device saves the information that meets the information identifier of the second network device.
  • Steps 401 to 403 are similar to steps 301 to 303, and are not described herein.
  • the second network device receives the second message sent by the first network device, where the second message carries the updated information collected by the first network device.
  • the second network device may also receive the second message sent by the first network device, where the second message carries the updated information collected by the first network device.
  • the updated information is information for updating information that the first network device has sent to the second network device.
  • the second network device extracts the updated information from the second message.
  • the second network device extracts the updated information from the received second message.
  • the second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
  • the second network device After extracting the updated information, the second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
  • the second network device may receive the second message carrying the updated information, and extract the updated message to update the saved information that meets the information identifier of the second network device, thereby ensuring real-time information. Sex.
  • the second network device supporting the specific protocol may receive the message sent by the first network device and save the information in the message if the request information is not initiated.
  • the specific protocol may be one.
  • the newly defined protocol can also be obtained by extending a message type in the message type of the existing protocol, and can also be obtained by extending the type of operation supported by the request message in the existing protocol, which is not limited herein.
  • the method of the present invention can be applied to multiple scenarios.
  • I2RS scenario it can also be used for interaction of control information between multiple controllers in an SDN network, and can also be used for control between network devices.
  • Information interaction and the like are not limited herein.
  • rpc-push a new message mechanism called "rpc-push"
  • the existing rpc and rpc-reply messages are used by a node to publish the collected nodes of the node to the peer node with which the Netconf session is established.
  • Information to be updated, the "rpc-push" message is a one-way message that can be initiated by either party to the Netconf session, and the recipient does not need to reply to any response message;
  • the network device (the first network device) It is necessary to quickly release a large amount of information collected by itself to the network controller (second network device). At this time, the network device can use rpc-push to send the information to be released to the network controller in one direction without waiting for the network controller to propose. After receiving the rpc-push, the network controller saves the information carried in the rpc-push in the corresponding database, and the network controller does not need to respond to the rpc-push;
  • the network device When the network device finds that a part of the information previously issued to the network controller is updated, the network device sends the updated information to the network controller by using rpc-push, and the network controller uses the update information in the message after receiving the rpc-push. To replace stale information in the database, the network controller does not need to respond to rpc-push.
  • rpc In the Netconf protocol, a new type of operation is defined for rpc, which can be called “advertise”. It is used by a node to actively publish the information collected by the node or needs to be updated to the peer node that established the Netconf session, and define one at the same time. A new rpc-reply mechanism that allows multiple rpcs to be answered with one rpc-reply, thereby reducing the overhead of rpc-reply;
  • the network device (the first network device) needs to quickly release a large amount of information collected by the device to the network controller (the second network device).
  • the network device can use the rpc carrying the advertise operation.
  • the information to be advertised is sent to the network controller in one direction, without waiting for the network controller to make any request, and after receiving the rpc carrying the advertise operation, the network controller saves the information in the corresponding database;
  • the network controller does not need to respond to rcp-reply for each rpc carrying the advertise operation. It can package multiple rpc-reply packets with advertised rpc. The rpc-reply of the response needs to carry the id of all rpcs that are responded. And carry the ⁇ ok> field;
  • the network device When the network device finds that a part of the information previously issued to the network controller is updated, the network device sends the updated information to the network controller by using the rpc carrying the advertise operation; the network controller uses the message after receiving the rpc carrying the advertise operation.
  • the update information in the database replaces the stale information in the database.
  • the network controller does not need to respond to rcp-reply for each rpc carrying the advertise operation, and can package multiple rpc-reply responses to the rpc with the advertise operation. -reply needs to carry the id of all rpcs that are responded, and carry the ⁇ ok> field.
  • the following describes the network device in the embodiment of the present invention, where the network device is used in the embodiment of the present invention. Both support the above specific protocols.
  • Network equipment used as the first network device :
  • an embodiment of a network device used as a first network device in the embodiment of the present invention includes:
  • the collecting module 501 is configured to collect information in the network
  • the establishing module 502 is configured to establish a session with the second network device by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
  • the first sending module 503 is configured to: when the information collected by the collecting module 501 meets the information identifier, do not need to first receive the information request by the second network device, and send the first to the second network device. And the information that is collected by the collecting module 501 and that meets the information identifier of the second network device, where the information request indicates that the information that meets the information identifier is obtained.
  • the first sending module 503 when the information collected by the collecting module 501 in the first network device that supports the specific protocol is in accordance with the information identifier of the second network device, the first sending module 503 is not required to receive the information request from the second network device.
  • the specific protocol has a hierarchical structure, at least a message layer and a content layer, the message layer and the content layer are independent of each other, and the message layer includes a request response message mechanism.
  • the information collected by the first network device does not need to wait for the request message from the second network device to send the collected information every time after collecting the information.
  • the time when the collected information is sent out, and the second network device does not need to reply to the response message after receiving the first message, which saves the information processing flow and improves the first network device and the second network device supporting the specific protocol.
  • the first network device determines to send the first message to the second network device.
  • the information of the second network device needs to be updated, and the second message may be sent to the second network device, where the updated information is carried in the second message.
  • another embodiment of the network device used as the first network device in the embodiment of the present invention :
  • the foregoing collecting module 501 is further configured to: when determining the first cancellation sent to the second network device Collect updated information when the information carried in the information needs to be updated;
  • the first sending module 503 is further configured to: send the second message to the second network device, where the second message carries the updated information collected by the collecting module 501.
  • the first sending module 503 may carry the collected updated information in the second message and send the information to the second message.
  • the second network device ensures that the second network device obtains the latest information in time.
  • the information identifier of the second network device may be multiple:
  • the information identifier is used to indicate a type of information supported by the second network device
  • the first sending module 503 is specifically configured to: when the information collected by the collecting module 501 meets the information type supported by the second network device, The second network device sends a first message, where the first message carries information collected by the collection module that meets the type of information supported by the second network device.
  • the information identifier is used to indicate an information requirement of the second network device
  • the first sending module 503 is specifically configured to: when the information collected by the collecting module 501 meets the information requirement of the second network device, do not need to first receive the information request submitted by the second network device, and actively The second network device sends a first message, where the first message carries information collected by the collection module that satisfies the information requirement of the second network device.
  • the message type of the specific protocol supported by the network device used by the first network device includes a request message and a response message.
  • the specific protocol may be a newly defined protocol, or may be The extension of a message type in the message type of the existing protocol can also be obtained by extending the type of operation supported by the request message in the existing protocol, which is not limited herein.
  • the first network device can respond to the multiple request messages with a response message.
  • the network device further includes:
  • the first receiving module 601 is configured to receive a third message sent by the second network device, where the third message is a response that the second network device responds to at least two request messages carrying the publishing operation. Message.
  • the first receiving module 601 can receive a response message for responding to multiple request messages carrying the issuing operation, thereby reducing the overhead caused by sending and receiving the response message.
  • the information collected by the collecting module 501 includes: network topology information, network routing information, network performance information, and network device. State information, at least one of network device statistics; or at least one of configuration information, policy information, and demand information.
  • an embodiment of a network device used as a second network device in the embodiment of the present invention includes:
  • the second receiving module 701 is configured to directly receive the information request to the first network device after the second network device establishes a session with the first network device by using the specific protocol. a first message sent by the network device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the Information of the information identification of the second network device;
  • the extracting module 702 is configured to extract, according to the first message received by the second receiving module 701, the information that meets the information identifier of the second network device;
  • the saving module 703 is configured to save information that is extracted by the extraction module 702 and meets the information identifier of the second network device.
  • the second receiving module 701 does not need to first send an information request to the first network device, and directly receives the message sent by the first network device, and the saving module 703 is in the message. The information is saved and does not need to reply to the response message, which greatly improves the efficiency of interaction between devices.
  • the second receiving module 701 may further receive a message that is sent by the first network device and that carries the updated information.
  • the network device used as the second network device in the embodiment of the present invention is another. Example:
  • the second receiving module 701 is further configured to receive the second message sent by the first network device, where the second message carries the updated information collected by the first network device;
  • the foregoing extraction module 702 is further configured to: extract the updated information from the second message;
  • the network device also includes:
  • the update module 801 is configured to update, by using the updated information extracted by the extraction module 702, the saved information that meets the information identifier of the second network device.
  • the second receiving module 701 can receive the second message carrying the updated information, the extracting module 702 extracts the updated message, and the updating module 801 performs the saved information that meets the information identifier of the second network device. Updates ensure the real-time nature of the information.
  • the information that meets the information identifier of the second network device includes: information that meets the type of information supported by the second network device, or information that meets information requirements of the second network device.
  • the specific protocol supported by the network device used by the second network device may be a newly defined protocol, or may be obtained by extending a message type in a message type of an existing protocol, and may also be extended by There are types of operations supported by the request message in the protocol, which are not limited here.
  • the second network device can send a response message to respond to the multiple request messages.
  • the network device further includes:
  • the second sending module 901 is configured to send a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation. .
  • the second sending module 901 can send a response message to respond to multiple request messages carrying the publishing operation at a time, thereby reducing the overhead caused by sending and receiving the response message.
  • the foregoing information that meets the information identifier of the second network device may include: at least one of network topology information, network routing information, network performance information, network device status information, and network device statistics information. Or, at least one of configuration information, policy information, and demand information.
  • FIG. 10 is a schematic structural diagram of a network device 1000. It can be understood that the network device shown in the schematic diagram can represent either a network device used as the first network device or a second network device.
  • Network equipment including:
  • the input device 1001, the output device 1002, the processor 1003, and the memory 1004 (wherein the number of processors 1003 in the network device 1000 may be one or more, and one processor 1003 in FIG. 10 is taken as an example).
  • the input device 1001, the output device 1002, the processor 1003, and the memory 1004 may be connected by a bus or other means, wherein the connection through the bus is taken as an example in FIG.
  • both the first network device and the second network device support a specific protocol, and the specific protocol is a control management protocol, and has a a layer structure, comprising at least a message layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define a protocol that needs to be transmitted and interacted. Data and information, the message layer and the content layer are independent of each other.
  • the processor 1003 is configured to perform the following steps by calling an operation instruction stored in the memory 1004:
  • the second network device When the collected information meets the information identifier, the second network device does not need to be received first. Sending, by the proposed information request, the first message to the second network device, where the first message carries the information that is collected by the collecting module and meets the information identifier of the second network device, where the information request Instructing to obtain the information that meets the information identifier;
  • the processor 1003 is further configured to perform the following steps:
  • the second message is sent to the second network device, and the second message carries the updated information collected by the collection module.
  • the information identifier is used to indicate the type of information supported by the second network device, and the processor 1003 is specifically configured to perform the following steps:
  • the collected information meets the information type supported by the second network device
  • the information request from the second network device is not required to be received, and the first message is sent to the second network device, the first message. And carrying information collected by the collection module that meets the type of information supported by the second network device.
  • the information identifier is used to indicate the information requirement of the second network device, and the processor 1003 is specifically configured to perform the following steps:
  • the information request by the second network device is not required to be received, and the first message is sent to the second network device, where the first message is sent. And carrying information collected by the collection module that meets information requirements of the second network device.
  • the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message.
  • the first message belongs to the push message.
  • the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message. Both the first message and the second message belong to the push message.
  • the specific protocol configures the Netconf protocol for the extended network
  • the request message is a remote procedure call request message rpc in the Netconf protocol
  • the response message is a remote procedure call in the Netconf protocol.
  • the extended Netconf protocol includes a remote procedure call push message rpc-push, the push cancellation The information is the rpc-push.
  • the rpc-push includes the rpc-push namespace and the specific information content to be advertised by the rpc-push.
  • the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation.
  • the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation.
  • Information in the request message; both the first message and the second message belong to a request message carrying the publishing operation.
  • the processor 1003 is further configured to perform the following steps:
  • the response message that responds to the at least two request messages carrying the publishing operation includes: at least two message numbers carrying request messages for the publishing operation.
  • the specific protocol configures the Netconf protocol for the extended network
  • the response message is an extended rpc-reply in the extended Netconf protocol, where the extended rpc-reply includes at least two carriers.
  • the message number of the request message with the publish operation is not limited to the specific protocol.
  • the specific protocol configures the Netconf protocol for the extended network
  • the request message is an extended rpc in the extended Netconf protocol
  • the extended rpc includes the publishing operation
  • the collected information includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and at least one of statistical information of the network device; or, configuration information. At least one of policy information and demand information.
  • both the first network device and the second network device support a specific protocol, and the specific protocol is a control management protocol, and has a
  • the layer structure includes at least a message layer and a content layer, and the message layer is used to define a message type that implements protocol interaction, and the message type includes a request message and a response cancellation.
  • the content layer is used to define data and information that the protocol needs to transmit and interact.
  • the message layer and the content layer are independent of each other.
  • the processor 1003 is configured to execute by calling an operation instruction stored in the memory 1004. The following steps:
  • the second network device and the first network device After the second network device and the first network device establish a session by using the specific protocol, do not need to first send an information request to the first network device, and directly receive the first message sent by the first network device.
  • the first message carries the information that is collected by the first network device and meets the information identifier of the second network device, where the information request indicates that the information identifier corresponding to the second network device is obtained. information;
  • the extracted information that meets the information identifier of the second network device is saved.
  • the processor 1003 is further configured to perform the following steps:
  • the information that meets the information identifier of the second network device includes: information that meets the type of information supported by the second network device, or meets information requirements of the second network device. Information.
  • the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message.
  • the first message belongs to the push message.
  • the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message. Both the first message and the second message belong to the push message.
  • the specific protocol configures the Netconf protocol for the extended network
  • the request message is a remote procedure call request message rpc in the Netconf protocol
  • the response message is a remote procedure call in the Netconf protocol.
  • the extended Netconf protocol includes a remote procedure call push message rpc-push, the push cancellation The information is the rpc-push.
  • the rpc-push includes the rpc-push namespace and the specific information content to be advertised by the rpc-push.
  • the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation.
  • the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation.
  • Information in the request message; both the first message and the second message belong to a request message carrying the publishing operation.
  • the processor 1003 is further configured to perform the following steps:
  • the response message that responds to the at least two request messages carrying the publishing operation includes: at least two message numbers carrying request messages for the publishing operation.
  • the specific protocol configures the Netconf protocol for the extended network
  • the response message is an extended rpc-reply in the extended Netconf protocol
  • the extended rpc-reply includes at least two The message number carrying the request message for the publish operation.
  • the information that meets the information identifier of the second network device includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and statistical information of the network device. At least one of; or, at least one of configuration information, policy information, and demand information.
  • FIG. 10 a network device used as the first network device shown in any one of FIG. 5, FIG. 6, or FIG. 10, and a network used as the second network device shown in any one of FIG. 7, FIG. 8, FIG. 9, or FIG. device.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the 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 selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are an information transmitting method, related network device and system, for addressing the problem of low efficiency of a device supporting a specific protocol in a situation of updating a large amount of frequently changing information. The method provided in an embodiment of the present invention comprises: when information collected by a first network device supporting a specific protocol complies with an information identification of a second network device, actively transmitting, by the first network device, first information to the second network device also supporting the specific protocol without needing to receive an information request proposed by the second network device, the first information carrying the information complied with the information identification of the second network device and collected by the first network device therein.

Description

信息发送方法、相关网络设备以及系统Information transmission method, related network device and system
本申请要求于2015年2月12日提交中国专利局、申请号为CN 201510075461.X、发明名称为“信息发送方法、相关网络设备以及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on February 12, 2015 by the Chinese Patent Office, the application number is CN 201510075461.X, and the invention is entitled "Information Transmission Method, Related Network Equipment and System", the entire contents of which are incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及通信领域,尤其涉及信息发送方法、相关网络设备以及系统。The present invention relates to the field of communications, and in particular, to an information sending method, a related network device, and a system.
背景技术Background technique
软件定义网络(Software Defined Network,SDN)是网络领域当前的热门技术,其主要目的是通过控制和转发平面的分离、分层抽象以及提供开放接口使网络管理者和网络的上层应用(application)能够更加便捷和高效的使用网络的各种资源,提高网络的利用效率,降低使用和运营成本。Software Defined Network (SDN) is a popular technology in the network field. Its main purpose is to enable the network administrator and the upper application of the network by separating and layering the control and forwarding planes and providing an open interface. More convenient and efficient use of various resources of the network, improve network utilization efficiency, reduce usage and operating costs.
实现SDN可以有多种具体的技术,其中路由系统接口(Interface to the Routing System,I2RS)是互联网工程任务组(Internet Engineering Task Force,IETF)提出的一种在路由系统上提供开放接口的技术,使得上层用户能够读取和操作路由系统中的信息、策略和状态等。I2RS的上层用户可以是网络管理应用,网络控制器,或者需要使用网络的各种应用。I2RS的架构中包括客户端client和代理设备agent,其中client可以位于所述上层用户中(如,网络管理设备、网络控制器或各种应用中),而agent通常位于网络设备中。在client与agent之间,需要一种协议来实现二者之间的连接和信息交互,具有分层结构,消息层与内容层相互独立且消息层中包含请求应答消息机制的控制管理协议有望被选中作为client与agent之间发送消息的协议。There are a variety of specific technologies for implementing SDN. The Interface to the Routing System (I2RS) is a technology proposed by the Internet Engineering Task Force (IETF) to provide an open interface on a routing system. Enables upper-level users to read and manipulate information, policies, and status in the routing system. The upper layer users of I2RS can be network management applications, network controllers, or various applications that need to use the network. The architecture of the I2RS includes a client client and a proxy device agent, wherein the client can be located in the upper layer user (eg, a network management device, a network controller, or various applications), and the agent is usually located in the network device. Between the client and the agent, a protocol is needed to implement the connection and information interaction between the two. The control management protocol with the hierarchical structure, the message layer and the content layer are independent, and the message layer contains the request response message mechanism is expected to be Check the protocol that is used to send messages between the client and the agent.
然而,在实际应用中,由于I2RS需要在client和agent之间传递的信息多种多样,包括网络拓扑信息,路由信息,策略信息,状态信息,以及网络设备中的各种表项等。这类信息中有的信息量较大,有的更新的频率 较高。目前这类具有分层结构且包含请求应答消息机制的协议并不能直接应用在该I2RS架构中,具体的,由于请求应答机制需要第一网络设备先向第二网络设备发起请求消息以请求需要的信息,第二网络设备接收到请求消息之后才回复携带有第一网络设备请求的信息的应答消息,对接收到的请求消息作出应答,这样的方式不适合在大量、变化频繁的信息更新场景下使用,否则将使支持该协议的设备效率低下,增加设备和网络负担。However, in practical applications, the information that I2RS needs to pass between the client and the agent is diverse, including network topology information, routing information, policy information, status information, and various entries in the network device. The amount of information in this type of information is large, and the frequency of updates Higher. At present, such a protocol having a hierarchical structure and including a request response message mechanism cannot be directly applied to the I2RS architecture. Specifically, since the request response mechanism requires the first network device to first initiate a request message to the second network device to request the required The information, after receiving the request message, the second network device replies with a response message carrying the information requested by the first network device, and responds to the received request message, which is not suitable for a large number of frequently changing information update scenarios. Use, otherwise it will make the devices supporting this protocol inefficient and increase the burden on the device and network.
发明内容Summary of the invention
本发明实施例提供了信息发送方法、相关网络设备以及系统,用于解决支持具有分层结构,消息层和内容层相互独立且消息层中包含请求应答消息机制的控制管理协议的设备在大量、变化频繁的信息更新场景下的低效率问题。Embodiments of the present invention provide an information sending method, a related network device, and a system, which are used to solve a large number of devices that support a control management protocol having a hierarchical structure, a message layer and a content layer being independent of each other, and a message layer including a request response message mechanism. Inefficiencies in changing information scenarios with frequent changes.
本发明实施例第一方面提供了一种信息发送方法,其中,第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,该方法包括:A first aspect of the embodiments of the present invention provides an information sending method, where a first network device and a second network device support a specific protocol, where the specific protocol is a control management protocol, has a hierarchical structure, and includes at least a message. a layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact with, The message layer and the content layer are independent of each other, and the method includes:
所述第一网络设备收集网络中的信息;The first network device collects information in the network;
所述第一网络设备与所述第二网络设备通过所述特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;The first network device and the second network device establish a session by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
当所述第一网络设备收集的信息符合所述信息标识时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述信息标识的信息,所述信息请求指示获取所述符合所述信息标识的信息。When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and sends a first message to the second network device. And the first message carries the information that is collected by the first network device that meets the information identifier, and the information request indicates that the information that meets the information identifier is obtained.
结合本发明实施例的第一方面,本发明实施例第一方面的第一种实现方式中,所述主动向所述第二网络设备发送第一消息的步骤之后还包括:With reference to the first aspect of the embodiments of the present invention, in the first implementation manner of the first aspect of the embodiment, the step of: sending the first message to the second network device:
当所述第一网络设备确定发送给所述第二网络设备的第一消息中携带的信息需要更新时,所述第一网络设备收集更新的信息; When the first network device determines that information carried in the first message sent to the second network device needs to be updated, the first network device collects updated information;
所述第一网络设备主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息。The first network device sends a second message to the second network device, where the second message carries the updated information collected by the first network device.
结合本发明实施例的第一方面或第一方面的第一种实现方式,本发明实施例第一方面的第二种实现方式中,所述信息标识用于表示所述第二网络设备支持的信息类型;With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a second implementation manner of the first aspect of the embodiment, the information identifier is used to indicate that the second network device supports Type of information;
所述当所述第一网络设备收集的信息符合所述信息标识时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述信息标识的信息,具体包括:When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and actively sends the information to the second network device. a message, where the first message carries the information that is collected by the first network device and meets the information identifier, and specifically includes:
当所述第一网络设备收集的信息符合所述第二网络设备支持的信息类型时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备支持的信息类型的信息。When the information collected by the first network device meets the information type supported by the second network device, the first network device does not need to first receive the information request from the second network device, and actively sends the second request to the second network device. The network device sends a first message, where the first message carries information that is collected by the first network device and that matches the type of information supported by the second network device.
结合本发明实施例的第一方面或第一方面的第一种实现方式,本发明实施例第一方面的第三种实现方式中,所述信息标识用于表示所述第二网络设备的信息需求;In conjunction with the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a third implementation manner of the first aspect of the embodiment, the information identifier is used to indicate information about the second network device. demand;
所述当所述第一网络设备收集的信息符合所述信息标识时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述信息标识的信息,具体包括:When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and actively sends the information to the second network device. a message, where the first message carries the information that is collected by the first network device and meets the information identifier, and specifically includes:
当所述第一网络设备收集的信息满足所述第二网络设备的信息需求时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的满足所述第二网络设备的信息需求的信息。When the information collected by the first network device meets the information requirement of the second network device, the first network device does not need to first receive the information request from the second network device, and actively sends the information request to the second network device. The device sends a first message, where the first message carries information that is collected by the first network device and meets the information requirement of the second network device.
结合本发明实施例的第一方面或第一方面的第一种实现方式,本发明实施例第一方面的第四种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a fourth implementation manner of the first aspect of the embodiment, the message type further includes a push message, where the push message is A one-way message, the second network device does not need to reply to the response message after receiving the push message, and the first message belongs to the push message.
结合本发明实施例第一方面的第一种实现方式,本发明实施例第一方面的第五种实现方式中,所述消息类型中还包括推送消息,所述推送消息 为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息和所述第二消息均属于所述推送消息。With reference to the first implementation manner of the first aspect of the embodiment of the present invention, in a fifth implementation manner of the first aspect of the embodiment, the message type further includes a push message, and the push message For a one-way message, the second network device does not need to reply to the response message after receiving the push message, and both the first message and the second message belong to the push message.
结合本发明实施例第一方面的第四种实现方式或第一方面的第五种实现方式,本发明实施例第一方面的第六种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。With reference to the fourth implementation manner of the first aspect of the embodiment of the present invention or the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect of the embodiment, the specific protocol is an extended network configuration Netconf. The protocol message is a remote procedure call request message rpc in the Netconf protocol, the response message is a remote procedure call response message rpc-reply in the Netconf protocol, and the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
结合本发明实施例第一方面的第六种实现方式,本发明实施例第一方面的第七种实现方式中,所述rpc-push中包括所述rpc-push的命名空间和所述rpc-push要发布的具体信息内容。With reference to the sixth implementation manner of the first aspect of the embodiment of the present invention, in a seventh implementation manner of the first aspect of the embodiment, the rpc-push includes the rpc-push namespace and the rpc- Push the specific information content to be published.
结合本发明实施例的第一方面或第一方面的第一种实现方式,本发明实施例第一方面的第八种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in an eighth implementation manner of the first aspect of the embodiment, the operation type supported by the request message includes a publishing operation, and the publishing The operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the request message carrying the publishing operation.
结合本发明实施例第一方面的第一种实现方式,本发明实施例第一方面的第九种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息和所述第二消息均属于携带有所述发布操作的请求消息。With reference to the first implementation manner of the first aspect of the embodiments of the present disclosure, in a ninth implementation manner of the first aspect of the embodiments, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
结合本发明实施例第一方面的第八种实现方式或第一方面的第九种实现方式,本发明实施例第一方面的第十种实现方式中,所述方法还包括:With reference to the eighth implementation manner of the first aspect of the embodiment of the present invention or the ninth implementation manner of the first aspect, in the tenth implementation manner of the first aspect of the embodiment, the method further includes:
所述第一网络设备接收所述第二网络设备发送的第三消息,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The first network device receives a third message sent by the second network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation.
结合本发明实施例第一方面的第十种实现方式,本发明实施例第一方面的第十一种实现方式中,所述对至少两个携带有所述发布操作的请求消息进行应答的应答消息中包括:至少两个携带有发布操作的请求消息的消息编号。 With reference to the tenth implementation manner of the first aspect of the embodiment of the present invention, in the eleventh implementation manner of the first aspect of the embodiment, the response to the at least two request messages carrying the publishing operation is The message includes: at least two message numbers carrying request messages for the publishing operation.
结合本发明实施例第一方面的第十一种实现方式,本发明实施例第一方面的第十二种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,该扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。With reference to the eleventh implementation manner of the first aspect of the embodiments of the present invention, in the twelfth implementation manner of the first aspect of the embodiments, the specific protocol is configured to be an extended network configuration Netconf protocol, where the response message is An extended rpc-reply in the extended Netconf protocol, the extended rpc-reply includes at least two message numbers carrying request messages for issuing operations.
结合本发明实施例第一方面的第八种实现方式至第一方面的第十二种实现方式中任一种实现方式,本发明实施例第一方面的第十三种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为所述扩展的Netconf协议中扩展的rpc,所述扩展的rpc中包括所述发布操作。With reference to the eighth implementation manner of the first aspect of the first aspect of the embodiments of the present invention, to any one of the twelfth implementation manners of the first aspect, The specific protocol configures the Netconf protocol for the extended network, the request message is an extended rpc in the extended Netconf protocol, and the extended rpc includes the publishing operation.
结合本发明实施例的第一方面至第一方面的第十三种实现方式中任一种实现方式,本发明实施例第一方面的第十四种实现方式中,所述第一网络设备收集的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;With reference to any one of the implementation of the first aspect of the present invention to the thirteenth implementation manner of the first aspect, in the fourteenth implementation manner of the first aspect of the embodiment, the first network device collects The information includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and at least one of statistical information of the network device;
或,or,
配置信息,策略信息,需求信息中至少一种。At least one of configuration information, policy information, and demand information.
本发明实施例第二方面提供了一种信息发送方法,其中,第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,所述方法包括:A second aspect of the embodiments of the present invention provides an information sending method, where a first network device and a second network device support a specific protocol, where the specific protocol is a control management protocol, has a hierarchical structure, and includes at least a message. a layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact with, The message layer and the content layer are independent of each other, and the method includes:
在所述第二网络设备与所述第一网络设备通过所述特定协议建立会话之后,所述第二网络设备不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述第二网络设备的信息标识的信息;After the second network device and the first network device establish a session by using the specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first network. a first message sent by the device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the second Information identifying the information of the network device;
所述第二网络设备从所述第一消息中提取出所述符合所述第二网络设备的信息标识的信息;Extracting, by the second network device, the information that meets the information identifier of the second network device from the first message;
所述第二网络设备保存所述符合所述第二网络设备的信息标识的信息。The second network device saves the information that meets the information identifier of the second network device.
结合本发明实施例的第二方面,本发明实施例第二方面的第一种实现 方式中,所述直接接收所述第一网络设备发送的第一消息的步骤之后还包括:In conjunction with the second aspect of the embodiments of the present invention, the first implementation of the second aspect of the embodiments of the present invention In the mode, the step of directly receiving the first message sent by the first network device further includes:
所述第二网络设备接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;Receiving, by the second network device, the second message sent by the first network device, where the second message carries the updated information collected by the first network device;
所述第二网络设备从所述第二消息中提取出所述更新的信息;The second network device extracts the updated information from the second message;
所述第二网络设备利用所述更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。And the second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
结合本发明实施例的第二方面或第二方面的第一种实现方式,本发明实施例第二方面的第二种实现方式中,所述符合所述第二网络设备的信息标识的信息包括:符合所述第二网络设备支持的信息类型的信息,或,满足所述第二网络设备的信息需求的信息。With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in the second implementation manner of the second aspect of the embodiment of the present disclosure, the information that meets the information identifier of the second network device includes: : information conforming to the type of information supported by the second network device, or information satisfying the information requirement of the second network device.
结合本发明实施例的第二方面或第二方面的第一种实现方式,本发明实施例第二方面的第三种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in a third implementation manner of the second aspect of the embodiment, the message type further includes a push message, where the push message is A one-way message, the second network device does not need to reply to the response message after receiving the push message, and the first message belongs to the push message.
结合本发明实施例第二方面的第一种实现方式,本发明实施例第二方面的第四种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息和所述第二消息均属于所述推送消息。With reference to the first implementation manner of the second aspect of the embodiment of the present invention, in a fourth implementation manner of the second aspect of the embodiment, the message type further includes a push message, where the push message is a one-way The message that the second network device does not need to reply to the response message after receiving the push message, where the first message and the second message belong to the push message.
结合本发明实施例第二方面的第三种实现方式或第二方面的第四种实现方式,本发明实施例第二方面的第五种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。With reference to the third implementation manner of the second aspect of the embodiment of the present invention or the fourth implementation manner of the second aspect, in the fifth implementation manner of the second aspect of the embodiment of the present disclosure, the specific protocol is an extended network configuration Netconf. The protocol message is a remote procedure call request message rpc in the Netconf protocol, the response message is a remote procedure call response message rpc-reply in the Netconf protocol, and the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
结合本发明实施例第二方面的第五种实现方式,本发明实施例第二方面的第六种实现方式中,所述rpc-push中包括所述rpc-push的命名空间和所述rpc-push要发布的具体信息内容。With reference to the fifth implementation manner of the second aspect of the embodiment of the present invention, in a sixth implementation manner of the second aspect of the embodiment, the rpc-push includes the rpc-push namespace and the rpc- Push the specific information content to be published.
结合本发明实施例的第二方面或第二方面的第一种实现方式,本发明实施例第二方面的第七种实现方式中,所述请求消息支持的操作类型包括 发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in the seventh implementation manner of the second aspect of the embodiment, the operation type supported by the request message includes: a publishing operation, the publishing operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the carrying The request message for the release operation.
结合本发明实施例第二方面的第一种实现方式,本发明实施例第二方面的第八种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息和所述第二消息均属于携带有所述发布操作的请求消息。With reference to the first implementation manner of the second aspect of the embodiment of the present invention, in an eighth implementation manner of the second aspect of the embodiments, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
结合本发明实施例第二方面的第七种实现方式或第二方面的第八种实现方式,本发明实施例第二方面的第九种实现方式中,所述方法还包括:With reference to the seventh implementation manner of the second aspect of the embodiment of the present invention or the eighth implementation manner of the second aspect, in the ninth implementation manner of the second aspect of the embodiment, the method further includes:
所述第二网络设备发送第三消息给所述第一网络设备,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The second network device sends a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
结合本发明实施例第二方面的第九种实现方式,本发明实施例第二方面的第十种实现方式中,所述对至少两个携带有所述发布操作的请求消息进行应答的应答消息中包括:至少两个携带有发布操作的请求消息的消息编号。With reference to the ninth implementation manner of the second aspect of the embodiment of the present invention, in the tenth implementation manner of the second aspect of the embodiment, the response message that responds to at least two request messages carrying the publishing operation This includes: at least two message numbers carrying request messages for the publish operation.
结合本发明实施例第二方面的第十种实现方式,本发明实施例第二方面的第十一种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,所述扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。With reference to the tenth implementation manner of the second aspect of the embodiments of the present disclosure, in the eleventh implementation manner of the second aspect of the embodiments of the present disclosure, the specific protocol is configured as an extended network configuration Netconf protocol, and the response message is Extended rpc-reply in the extended Netconf protocol, the extended rpc-reply includes at least two message numbers carrying request messages for the publish operation.
结合本发明实施例的第二方面至第二方面的第十一种实现方式中任一种实现方式,本发明实施例第二方面的第十二种实现方式中,所述符合所述第二网络设备的信息标识的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;或,配置信息,策略信息,需求信息中至少一种。With reference to the second aspect of the second aspect of the present invention, the implementation of the eleventh implementation manner of the second aspect, the second implementation manner of the second aspect of the embodiment of the present invention, The information of the information identifier of the network device includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and statistical information of the network device; or configuration information, policy information, and demand information. At least one of them.
本发明实施例第三方面提供了一种网络设备,作为第一网络设备使用,其中,所述第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消 息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,所述第一网络设备包括:A third aspect of the embodiments of the present invention provides a network device, which is used as a first network device, where the first network device and the second network device both support a specific protocol, and the specific protocol is a control management protocol. Having a hierarchical structure comprising at least a message layer and a content layer, the message layer being used to define a message type that implements protocol interaction, and the message type includes request cancellation And the content layer is used to define data and information that the protocol needs to transmit and interact, the message layer and the content layer are independent of each other, and the first network device includes:
收集模块,用于收集网络中的信息;a collection module for collecting information in the network;
建立模块,用于与所述第二网络设备通过所述特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;Establishing a module, configured to establish a session with the second network device by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
第一发送模块,用于当所述收集模块收集的信息符合所述信息标识时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述信息标识的信息。The first sending module is configured to: when the information collected by the collecting module meets the information identifier, do not need to first receive the information request that is sent by the second network device, and send the first message to the second network device. The first message carries the information that is collected by the collecting module and meets the information identifier of the second network device, and the information request indicates that the information that meets the information identifier is obtained.
结合本发明实施例的第三方面,本发明实施例第三方面的第一种实现方式中,所述收集模块还用于,当确定发送给所述第二网络设备的第一消息中携带的信息需要更新时,收集更新的信息;With reference to the third aspect of the embodiments of the present invention, in a first implementation manner of the third aspect of the embodiment, the collecting module is further configured to: when determining to be carried in the first message sent to the second network device Collect updated information when information needs to be updated;
所述第一发送模块还用于,主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述收集模块收集到的更新的信息。The first sending module is further configured to: send a second message to the second network device, where the second message carries the updated information collected by the collecting module.
结合本发明实施例的第三方面或第三方面的第一种实现方式,本发明实施例第三方面的第二种实现方式中,所述信息标识用于表示所述第二网络设备支持的信息类型;With reference to the third aspect of the embodiment of the present invention or the first implementation manner of the third aspect, in the second implementation manner of the third aspect of the embodiment, the information identifier is used to indicate that the second network device supports Type of information;
所述第一发送模块具体用于,当所述收集模块收集的信息符合所述第二网络设备支持的信息类型时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的符合所述第二网络设备支持的信息类型的信息。The first sending module is specifically configured to: when the information collected by the collecting module meets the information type supported by the second network device, do not need to first receive the information request submitted by the second network device, and actively report to the The second network device sends a first message, where the first message carries information collected by the collection module that conforms to the type of information supported by the second network device.
结合本发明实施例的第三方面或第三方面的第一种实现方式,本发明实施例第三方面的第三种实现方式中,所述信息标识用于表示所述第二网络设备的信息需求;With reference to the third aspect of the embodiment of the present invention or the first implementation manner of the third aspect, in a third implementation manner of the third aspect of the embodiment, the information identifier is used to indicate information about the second network device. demand;
所述第一发送模块具体用于,当所述收集模块收集的信息满足所述第二网络设备的信息需求时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的满足所述第二网络设备的信息需求的信息。The first sending module is specifically configured to: when the information collected by the collecting module meets the information requirement of the second network device, do not need to first receive the information request that is sent by the second network device, and actively send the information to the first The second network device sends a first message, where the first message carries information collected by the collection module that satisfies the information requirement of the second network device.
结合本发明实施例的第三方面或第三方面的第一种实现方式,本发明 实施例第三方面的第四种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。In conjunction with the third aspect of the embodiments of the present invention or the first implementation of the third aspect, the present invention In a fourth implementation manner of the third aspect, the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to receive the push message. Replying to a reply message, the first message belongs to the push message.
结合本发明实施例第三方面的第一种实现方式,本发明实施例第三方面的第五种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息和所述第二消息均属于所述推送消息。With reference to the first implementation manner of the third aspect of the embodiments of the present invention, in a fifth implementation manner of the third aspect, the message type further includes a push message, where the push message is a one-way The message that the second network device does not need to reply to the response message after receiving the push message, where the first message and the second message belong to the push message.
结合本发明实施例第三方面的第四种实现方式或第三方面的第五种实现方式,本发明实施例第三方面的第六种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。With reference to the fourth implementation manner of the third aspect of the embodiment of the present invention or the fifth implementation manner of the third aspect, in the sixth implementation manner of the third aspect of the embodiment of the present invention, the specific protocol is an extended network configuration Netconf. The protocol message is a remote procedure call request message rpc in the Netconf protocol, the response message is a remote procedure call response message rpc-reply in the Netconf protocol, and the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
结合本发明实施例第三方面的第六种实现方式,本发明实施例第三方面的第七种实现方式中,所述rpc-push中包括所述rpc-push的命名空间和所述rpc-push要发布的具体信息内容。With reference to the sixth implementation manner of the third aspect of the embodiment of the present invention, in a seventh implementation manner of the third aspect of the embodiment, the rpc-push includes the rpc-push namespace and the rpc- Push the specific information content to be published.
结合本发明实施例的第三方面或第三方面的第一种实现方式,本发明实施例第三方面的第八种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。With reference to the third aspect of the embodiment of the present invention or the first implementation manner of the third aspect, in the eighth implementation manner of the third aspect of the embodiment, the operation type supported by the request message includes a publishing operation, and the publishing The operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the request message carrying the publishing operation.
结合本发明实施例第三方面的第一种实现方式,本发明实施例第三方面的第九种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息和所述第二消息均属于携带有所述发布操作的请求消息。With reference to the first implementation manner of the third aspect of the embodiments of the present disclosure, in a ninth implementation manner of the third aspect of the embodiments, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
结合本发明实施例第三方面的第八种实现方式或第三方面的第九种实现方式,本发明实施例第三方面的第十种实现方式中,所述第一网络设备还包括:With reference to the eighth implementation manner of the third aspect of the embodiment of the present invention or the ninth implementation manner of the third aspect, in the tenth implementation manner of the third aspect of the embodiment, the first network device further includes:
第一接收模块,用于接收所述第二网络设备发送的第三消息,所述第 三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。a first receiving module, configured to receive a third message sent by the second network device, where the The three message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
结合本发明实施例第三方面的第十种实现方式,本发明实施例第三方面的第十一种实现方式中,所述对至少两个携带有所述发布操作的请求消息进行应答的应答消息中包括:至少两个携带有发布操作的请求消息的消息编号。With reference to the tenth implementation manner of the third aspect of the embodiments of the present invention, in the eleventh implementation manner of the third aspect of the embodiments of the present invention, the response to the at least two request messages carrying the publishing operation is The message includes: at least two message numbers carrying request messages for the publishing operation.
结合本发明实施例第三方面的第十一种实现方式,本发明实施例第三方面的第十二种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,该扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。With reference to the eleventh implementation manner of the third aspect of the embodiments of the present invention, in a twelfth implementation manner of the third aspect of the embodiments, the specific protocol is an extended network configuration Netconf protocol, and the response message is An extended rpc-reply in the extended Netconf protocol, the extended rpc-reply includes at least two message numbers carrying request messages for issuing operations.
结合本发明实施例第三方面的第八种实现方式至第三方面的第十二种实现方式中任一种实现方式,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为所述扩展的Netconf协议中扩展的rpc,所述扩展的rpc中包括所述发布操作。With reference to any one of the implementation manners of the eighth implementation manner of the third aspect of the embodiments of the present invention to the twelfth implementation manner of the third aspect, the specific protocol is configured to configure the Netconf protocol for the extended network, where the request message is The extended rpc in the extended Netconf protocol, the extended rpc including the publishing operation.
结合本发明实施例的第三方面至第三方面的第十三种实现方式中任一种实现方式,本发明实施例第三方面的第十四种实现方式中,所述收集模块收集的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;或,配置信息,策略信息,需求信息中至少一种。With reference to any one of the thirteenth implementation manners of the third to third aspects of the embodiments of the present invention, the information collected by the collection module in the fourteenth implementation manner of the third aspect of the embodiments of the present invention The method includes: at least one of network topology information, network routing information, network performance information, network device status information, and network device statistics; or at least one of configuration information, policy information, and requirement information.
本发明实施例第四方面提供了一种网络设备,作为第二网络设备使用,其中,第一网络设备与所述第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,所述第二网络设备包括:A fourth aspect of the present invention provides a network device, which is used as a second network device, where the first network device and the second network device both support a specific protocol, and the specific protocol is a control management protocol. Having a hierarchical structure comprising at least a message layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define a protocol that needs to be transmitted and The data and information of the interaction, the message layer and the content layer are independent of each other, and the second network device comprises:
第二接收模块,用于在所述第二网络设备与所述第一网络设备通过所述特定协议建立会话之后,不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述第二网络设备的信息标识的信息; a second receiving module, configured to: after the second network device and the first network device establish a session by using the specific protocol, do not need to first send an information request to the first network device, directly receiving the first a first message sent by the network device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the Information of the information identification of the network device;
提取模块,用于从所述第二接收模块接收到的第一消息中提取出所述符合所述第二网络设备的信息标识的信息;An extracting module, configured to extract, from the first message received by the second receiving module, the information that meets the information identifier of the second network device;
保存模块,用于保存所述提取模块提取出的符合所述第二网络设备的信息标识的信息。And a saving module, configured to save information that is extracted by the extraction module and meets the information identifier of the second network device.
结合本发明实施例的第四方面,本发明实施例第四方面的第一种实现方式中,所述第二接收模块还用于,接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;With reference to the fourth aspect of the embodiments of the present invention, in a first implementation manner of the fourth aspect, the second receiving module is further configured to receive a second message that is sent by the first network device, The second message carries the updated information collected by the first network device;
所述提取模块还用于,从所述第二消息中提取出所述更新的信息;The extracting module is further configured to: extract the updated information from the second message;
所述第二网络设备还包括:The second network device further includes:
更新模块,用于利用所述提取模块提取出的更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。And an update module, configured to update, by using the updated information extracted by the extraction module, the saved information that meets the information identifier of the second network device.
结合本发明实施例的第四方面或第四方面的第一种实现方式,本发明实施例第四方面的第二种实现方式中,所述符合所述第二网络设备的信息标识的信息包括:符合所述第二网络设备支持的信息类型的信息,或,满足所述第二网络设备的信息需求的信息。With reference to the fourth aspect of the embodiment of the present invention or the first implementation manner of the fourth aspect, in the second implementation manner of the fourth aspect of the embodiment, the information that meets the information identifier of the second network device includes: : information conforming to the type of information supported by the second network device, or information satisfying the information requirement of the second network device.
结合本发明实施例的第四方面或第四方面的第一种实现方式,本发明实施例第四方面的第三种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。With reference to the fourth aspect of the embodiment of the present invention or the first implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect of the embodiments, the message type further includes a push message, where the push message is A one-way message, the second network device does not need to reply to the response message after receiving the push message, and the first message belongs to the push message.
结合本发明实施例第四方面的第一种实现方式,本发明实施例第四方面的第四种实现方式中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息和所述第二消息均属于所述推送消息。With reference to the first implementation manner of the fourth aspect of the embodiments of the present invention, in a fourth implementation manner of the fourth aspect, the message type further includes a push message, where the push message is a one-way The message that the second network device does not need to reply to the response message after receiving the push message, where the first message and the second message belong to the push message.
结合本发明实施例第四方面的第三种实现方式或第四方面的第四种实现方式,本发明实施例第四方面的第五种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。With reference to the third implementation manner of the fourth aspect of the embodiment of the present invention or the fourth implementation manner of the fourth aspect, in the fifth implementation manner of the fourth aspect of the embodiments of the present disclosure, the specific protocol is an extended network configuration Netconf. The protocol message is a remote procedure call request message rpc in the Netconf protocol, the response message is a remote procedure call response message rpc-reply in the Netconf protocol, and the extended Netconf protocol includes a remote procedure call. Pushing the message rpc-push, the push message is the rpc-push.
结合本发明实施例第四方面的第五种实现方式,本发明实施例第四方 面的第六种实现方式中,所述rpc-push中包括所述rpc-push的命名空间和所述rpc-push要发布的具体信息内容。With reference to the fifth implementation manner of the fourth aspect of the embodiments of the present invention, the fourth party of the embodiment of the present invention In a sixth implementation manner, the rpc-push includes the rpc-push namespace and the specific information content to be advertised by the rpc-push.
结合本发明实施例的第四方面或第四方面的第一种实现方式,本发明实施例第四方面的第七种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。With reference to the fourth aspect of the embodiment of the present invention or the first implementation manner of the fourth aspect, in a seventh implementation manner of the fourth aspect of the embodiments, the operation type supported by the request message includes a publishing operation, and the publishing The operation may enable the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; the first message belongs to the request message carrying the publishing operation.
结合本发明实施例第四方面的第一种实现方式,本发明实施例第四方面的第八种实现方式中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息和所述第二消息均属于携带有所述发布操作的请求消息。With reference to the first implementation manner of the fourth aspect of the embodiments of the present invention, in an eighth implementation manner of the fourth aspect of the embodiments, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the After receiving the request message carrying the publishing operation, the second network device saves the information in the request message carrying the publishing operation; the first message and the second message belong to the request carrying the publishing operation Message.
结合本发明实施例第四方面的第七种实现方式或第四方面的第八种实现方式,本发明实施例第四方面的第九种实现方式中,所述第二网络设备还包括:With reference to the seventh implementation manner of the fourth aspect of the embodiment of the present invention or the eighth implementation manner of the fourth aspect, in the ninth implementation manner of the fourth aspect of the embodiment, the second network device further includes:
第二发送模块,用于发送第三消息给所述第一网络设备,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The second sending module is configured to send a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation.
结合本发明实施例第四方面的第九种实现方式,本发明实施例第四方面的第十种实现方式中,所述对至少两个携带有所述发布操作的请求消息进行应答的应答消息中包括:至少两个携带有发布操作的请求消息的消息编号。With reference to the ninth implementation manner of the fourth aspect of the embodiments of the present invention, in the tenth implementation manner of the fourth aspect of the embodiments of the present invention, the response message that responds to at least two request messages carrying the publishing operation This includes: at least two message numbers carrying request messages for the publish operation.
结合本发明实施例第四方面的第十种实现方式,本发明实施例第四方面的第十一种实现方式中,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,所述扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。With reference to the tenth implementation manner of the fourth aspect of the embodiments of the present invention, in the eleventh implementation manner of the fourth aspect of the embodiments of the present disclosure, the specific protocol is an extended network configuration Netconf protocol, and the response message is Extended rpc-reply in the extended Netconf protocol, the extended rpc-reply includes at least two message numbers carrying request messages for the publish operation.
结合本发明实施例的第四方面至第四方面的第十一种实现方式中任一种实现方式,本发明实施例第四方面的第十二种实现方式中,所述符合所述第二网络设备的信息标识的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至 少一种;或,配置信息,策略信息,需求信息中至少一种。With reference to any one of the implementation manners of the fourth aspect to the fourth aspect of the present invention, in a twelfth implementation manner of the fourth aspect, The information of the information identifier of the network device includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and statistics of the network device. One less; or, at least one of configuration information, policy information, and demand information.
本发明实施例第五方面提供了一种信息发送系统,包括:A fifth aspect of the embodiments of the present invention provides an information sending system, including:
本发明实施例的第三方面至第三方面的第十四中实现方式中任一种实现方式提供的作为第一网络设备使用的网络设备,和本发明实施例的第四方面至第四方面的第十二种实现方式中任一种实现方式提供的作为第二网络设备使用的网络设备。The network device used as the first network device provided by any one of the implementation manners of the fourth aspect to the fourteenth aspect of the present invention, and the fourth to fourth aspects of the embodiment of the present invention A network device used as a second network device provided by any one of the twelfth implementations.
从以上技术方案可以看出,本发明实施例具有以下优点:本发明实施例中支持特定协议的第一网络设备收集的信息符合第二网络设备的信息标识时,该第一网络设备不需要先接收该第二网络设备提出的信息请求,主动的向同样支持该特定协议的第二网络设备发送第一消息,在该第一消息中携带该第一网络设备收集到的符合该第二网络设备的信息标识的信息。其中,该特定协议具有分层结构,至少包含消息层和内容层,消息层与内容层相互独立且消息层中包含请求应答消息机制。这样在支持该第一协议的同时,在大量、变化频繁的信息更新场景下,第一网络设备收集信息后不再需要每次都等待第二网络设备提出请求消息后才能发出收集的信息,节省了将收集的信息发送出去的时间,且第二网络设备接收到该第一消息后不需要回复应答消息,节省了信息处理流程,提高了支持该特定协议的第一网络设备和第二网络设备在该大量、变化频繁的信息更新场景下对信息的处理效率。As can be seen from the foregoing technical solutions, the embodiment of the present invention has the following advantages: when the information collected by the first network device supporting the specific protocol in the embodiment of the present invention conforms to the information identifier of the second network device, the first network device does not need to be first. Receiving the information request from the second network device, and actively sending the first message to the second network device that also supports the specific protocol, where the first message carries the second network device that is collected by the first network device. Information identifies the information. The specific protocol has a hierarchical structure, at least a message layer and a content layer, the message layer and the content layer are independent of each other, and the message layer includes a request response message mechanism. In the scenario of supporting the first protocol, the information collected by the first network device does not need to wait for the request message from the second network device to send the collected information every time after collecting the information. The time when the collected information is sent out, and the second network device does not need to reply to the response message after receiving the first message, which saves the information processing flow and improves the first network device and the second network device supporting the specific protocol. The efficiency of processing information in this large and frequently changing information update scenario.
附图说明DRAWINGS
图1为本发明实施例中消息发送方法一个流程示意图;FIG. 1 is a schematic flowchart of a message sending method according to an embodiment of the present invention;
图2为本发明实施例中消息发送方法另一个流程示意图;2 is a schematic flowchart of another method for sending a message according to an embodiment of the present invention;
图3为本发明实施例中消息发送方法另一个流程示意图;3 is a schematic flowchart of another method for sending a message according to an embodiment of the present invention;
图4为本发明实施例中消息发送方法另一个流程示意图;4 is another schematic flowchart of a message sending method according to an embodiment of the present invention;
图5为本发明实施例中作为第一网络设备使用的网络设备一个结构示意图;FIG. 5 is a schematic structural diagram of a network device used as a first network device according to an embodiment of the present disclosure;
图6为本发明实施例中作为第一网络设备使用的网络设备另一个结构示意图;FIG. 6 is another schematic structural diagram of a network device used as a first network device according to an embodiment of the present invention;
图7为本发明实施例中作为第二网络设备使用的网络设备一个结构示意图; FIG. 7 is a schematic structural diagram of a network device used as a second network device according to an embodiment of the present invention;
图8为本发明实施例中作为第二网络设备使用的网络设备另一个结构示意图;FIG. 8 is another schematic structural diagram of a network device used as a second network device according to an embodiment of the present invention;
图9为本发明实施例中作为第二网络设备使用的网络设备另一个结构示意图;FIG. 9 is another schematic structural diagram of a network device used as a second network device according to an embodiment of the present invention;
图10为本发明实施例中网络设备另一个结构示意图。FIG. 10 is another schematic structural diagram of a network device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
此处在本发明的描述中使用的术语是用于描述特定实施例的目的并且不旨在作为对本发明的限制。The terminology used in the description of the present invention is for the purpose of describing particular embodiments and is not intended to limit the invention.
控制管理协议:用于在网络实体之间交换网络的控制、数据和状态等信息,以实现对网络的控制和管理的通信协议。Control Management Protocol: A communication protocol used to exchange control, data, and status information of a network between network entities to implement control and management of the network.
消息层和内容层相互独立:表示内容层所描述的任何数据都可由任何类型的消息携带,不存在某个数据内容只能由某种消息类型携带的限制。The message layer and the content layer are independent of each other: any data described by the content layer can be carried by any type of message, and there is no limitation that a certain data content can only be carried by a certain message type.
可以理解的是,本发明实施例中,消息发送方法包括两个执行主体:作为信息发送方的第一网络设备,和作为信息接收方的第二网络设备。It can be understood that, in the embodiment of the present invention, the message sending method includes two execution entities: a first network device as an information sender, and a second network device as an information receiver.
需要说明的是,本发明各实施例中,第一网络设备与第二网络设备均支持特定协议,该特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,该消息层用于定义实现协议交互的消息类型,该消息类型中包括请求消息和应答消息,该内容层用于定义协议需要传输和交互的数据和信息,该消息层和该内容层相互独立。It should be noted that, in the embodiments of the present invention, the first network device and the second network device both support a specific protocol, and the specific protocol is a control management protocol, and has a hierarchical structure including at least a message layer and a content layer. The message layer is used to define a message type that implements protocol interaction. The message type includes a request message and a response message. The content layer is used to define data and information that the protocol needs to transmit and interact. The message layer and the content layer are independent of each other.
下面分别从这两个执行主体的角度对本发明实施例中消息发送方法进行描述:The message sending method in the embodiment of the present invention is described below from the perspective of the two executive bodies:
一、执行主体为第一网络设备:First, the executive body is the first network device:
请参阅图1,本发明实施例中消息发送方法一个实施例包括:Referring to FIG. 1, an embodiment of a message sending method in an embodiment of the present invention includes:
101、第一网络设备收集网络中的信息; 101. The first network device collects information in the network.
支持该特定协议的第一网络设备收集网络中的信息。The first network device supporting the particular protocol collects information in the network.
可以理解的是,该第一网络设备可以按照特定规则在网络中收集需要的信息,该特定规则和该需要的信息具体可以根据该第一网络设备所处的网络环境以及该第一网络设备在网络中的职责的不同而不同,此处不作限定。It can be understood that the first network device can collect required information in the network according to a specific rule, and the specific rule and the required information may be specifically according to a network environment in which the first network device is located and the first network device is The responsibilities in the network vary, and are not limited here.
102、第一网络设备与第二网络设备通过特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;102. The first network device establishes a session with the second network device by using a specific protocol, and obtains the information identifier of the second network device during the session establishment process.
本步骤中,根据第二网络设备的需求不同,在第一网络设备与第二网络设备建立会话的过程中,得到该第二网络设备的信息标识。In this step, according to the requirements of the second network device, in the process of establishing a session between the first network device and the second network device, the information identifier of the second network device is obtained.
可以理解的是,第一网络设备可能与多个网络设备均有通信连接,第二网络设备可能只是与第一网络设备建立有通信连接的设备中的其中一个,因此,第一网络设备收集的信息可能会多于发送给第二网络设备的信息,可以将其中符合第二网络设备的信息标识的信息发送给该第二网络设备,还可以将收集的另外的信息发送给其他与该第一网络设备建立了通信连接的设备,此处不作限定。It can be understood that the first network device may have a communication connection with the plurality of network devices, and the second network device may only be one of the devices that establish a communication connection with the first network device, and therefore, the first network device collects The information may be more than the information sent to the second network device, the information that meets the information identifier of the second network device may be sent to the second network device, and the collected additional information may be sent to the other and the first The network device establishes a communication connection device, which is not limited herein.
可选的,该信息标识可以表示第二网络设备支持的信息类型,即第一网络设备可以得到该第二网络设备支持的信息类型,则表示该第一网络设备需要将收集到的信息中符合该第二网络设备支持的信息类型的信息均发送给该第二网络设备;Optionally, the information identifier may indicate the type of information supported by the second network device, that is, the type of information that the first network device can obtain by the second network device, indicating that the first network device needs to match the collected information. The information of the information type supported by the second network device is sent to the second network device;
可选的,该信息标识可以表示该第二网络设备的信息需求,即第一网络设备得到的还可以是该第二网络设备的信息需求,则表示第一网络设备不需要将收集到的信息中符合第二网络设备支持的信息类型的信息全部发送给第二网络设备,只需要发送满足第二网络设备的信息需求的信息给第二网络设备即可。Optionally, the information identifier may represent the information requirement of the second network device, that is, the information obtained by the first network device may also be the information requirement of the second network device, indicating that the first network device does not need to collect the collected information. All the information that meets the information type supported by the second network device is sent to the second network device, and only the information that meets the information requirement of the second network device needs to be sent to the second network device.
103、当所述第一网络设备收集的信息符合所述信息标识时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述信息标识的信息。103. When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request sent by the second network device, and actively sends the information to the second network device. A message, the first message carries information that is collected by the first network device and that meets the information identifier.
第一网络设备收集信息,并得到第二网络设备的信息标识后,当该第一网络设备收集的信息符合该第二网络设备的信息标识时,该第一网络设 备不不需要先接收所述第二网络设备提出的信息请求,主动向该第二网络设备发送第一消息,该第一消息中携带了该第一网络设备收集到的符合该第二网络设备的信息标识的信息,其中,该信息请求指示获取符合该第二网络设备的信息标识的信息。After the first network device collects the information and obtains the information identifier of the second network device, when the information collected by the first network device meets the information identifier of the second network device, the first network device The device does not need to receive the information request from the second network device, and sends a first message to the second network device, where the first message carries the second network device that is collected by the first network device. Information identifying information, wherein the information request indicates obtaining information conforming to the information identifier of the second network device.
本步骤中,第一网络设备主动向第二网络设备发送该第一消息的触发条件为:第一网络设备收集的信息符合第二网络设备的信息标识,具体的,根据信息标识的不同,可以分为:1、该信息标识用于表示所述第二网络设备支持的信息类型,则,当所述第一网络设备收集的信息符合所述第二网络设备支持的信息类型时,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备支持的信息类型的信息;2、该信息标识用于表示所述第二网络设备的信息需求,则,当所述第一网络设备收集的信息满足所述第二网络设备的信息需求时,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的满足所述第二网络设备的信息需求的信息。In this step, the triggering condition that the first network device sends the first message to the second network device is that the information collected by the first network device meets the information identifier of the second network device, and specifically, according to different information identifiers, Divided into: 1. The information identifier is used to indicate the type of information supported by the second network device, and when the information collected by the first network device meets the information type supported by the second network device, The second network device sends a first message, where the first message carries information that is collected by the first network device and meets the type of information supported by the second network device; 2. the information identifier is used to indicate The information request of the second network device is: when the information collected by the first network device meets the information requirement of the second network device, the first message is sent to the second network device, the first The message carries the information collected by the first network device that meets the information requirement of the second network device.
需要说明的是,上述主动向第二网络设备发送第一消息,除了可以当触发条件满足时就立即发送,此外,为了减少信息发送次数,还可以定义一个预置时间周期,可以在当触发条件满足且预置时间周期达到时,才直接向该第二网络设备发送该第一消息,此处不作限定。It should be noted that the foregoing sending the first message to the second network device is performed, except that the trigger condition is met, and in addition, in order to reduce the number of times of information transmission, a preset time period may also be defined, and the trigger condition may be The first message is sent to the second network device directly, and is not limited herein.
本发明实施例中支持特定协议的第一网络设备收集的信息符合第二网络设备的信息标识时,该第一网络设备不需要先接收该第二网络设备提出的信息请求,主动的向同样支持该特定协议的第二网络设备发送第一消息,在该第一消息中携带该第一网络设备收集到的符合该第二网络设备的信息标识的信息。其中,该特定协议具有分层结构,至少包含消息层和内容层,消息层与内容层相互独立且消息层中包含请求应答消息机制。这样在支持该第一协议的同时,在大量、变化频繁的信息更新场景下,第一网络设备收集信息后不再需要每次都等待第二网络设备提出请求消息后才能发出收集的信息,节省了将收集的信息发送出去的时间,且第二网络设备接收到该第一消息后不需要回复应答消息,节省了信息处理流程,提高了支持该特定协议的第一网络设备和第二网络设备在该大量、变化频繁的信息更新场景下对信息的处理效率。 In the embodiment of the present invention, when the information collected by the first network device that supports the specific protocol meets the information identifier of the second network device, the first network device does not need to receive the information request from the second network device first, and the active support is also supported. The second network device of the specific protocol sends a first message, where the first message carries the information collected by the first network device that meets the information identifier of the second network device. The specific protocol has a hierarchical structure, at least a message layer and a content layer, the message layer and the content layer are independent of each other, and the message layer includes a request response message mechanism. In the scenario of supporting the first protocol, the information collected by the first network device does not need to wait for the request message from the second network device to send the collected information every time after collecting the information. The time when the collected information is sent out, and the second network device does not need to reply to the response message after receiving the first message, which saves the information processing flow and improves the first network device and the second network device supporting the specific protocol. The efficiency of processing information in this large and frequently changing information update scenario.
在实际应用中,第一网络设备向第二网络设备发送携带有第一网络设备收集到的符合第二网络设备的信息标识的信息的第一消息之后,若该第一网络设备确定发送给第二网络设备的信息需要更新,还可以再发送第二消息给该第二网络设备,在该第二消息中携带更新的信息,请参阅图2,本发明实施例中消息发送方法另一个实施例包括:In a practical application, after the first network device sends, to the second network device, the first message that carries the information that is collected by the first network device and meets the information identifier of the second network device, if the first network device determines to send to the first The information of the network device needs to be updated, and the second message may be sent to the second network device, where the second message carries the updated information. Referring to FIG. 2, another embodiment of the message sending method in the embodiment of the present invention is shown. include:
201、第一网络设备收集网络中的信息;201. The first network device collects information in the network.
202、第一网络设备与第二网络设备通过特定协议建立会话,在会话建立过程中得到所述第二网络设备的信息标识;202. The first network device and the second network device establish a session by using a specific protocol, and obtain the information identifier of the second network device in the session establishment process.
203、当所述第一网络设备收集的信息符合所述信息标识时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述信息标识的信息;203. When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request that is sent by the second network device, and sends the first to the second network device. a message, the first message carrying information that is collected by the first network device and that meets the information identifier;
步骤201至203与步骤101至103类似,此处不作赘述。 Steps 201 to 203 are similar to steps 101 to 103, and are not described herein.
204、当所述第一网络设备确定发送给所述第二网络设备的第一消息中携带的信息需要更新时,所述第一网络设备收集更新的信息;204. When the first network device determines that information carried in the first message sent to the second network device needs to be updated, the first network device collects updated information.
第一网络设备发送第一消息给第二网络设备后,当该第一网络设备确定发送给该第二网络设备的第一消息中携带的信息需要更新时,该第一网络设备收集更新的信息。After the first network device sends the first message to the second network device, when the first network device determines that the information carried in the first message sent to the second network device needs to be updated, the first network device collects the updated information. .
可以理解的是,第一网络设备确定发送给第二网络设备的第一消息中携带的信息需要更新的方式可以有多种,可以由第一网络设备主动检测发送给该第二网络设备的信息是否有更新,也可以由与第一网络设备通信的信息来源通知该第一网络设备信息有更新,此处不作限定。It can be understood that the first network device determines that the information carried in the first message sent to the second network device needs to be updated, and the first network device may actively detect the information sent to the second network device. If there is an update, the first network device information may be notified by the information source that communicates with the first network device, which is not limited herein.
205、所述第一网络设备主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息。205. The first network device sends a second message to the second network device, where the second message carries the updated information collected by the first network device.
第一网络设备收集完更新的信息后,也不需要等待第二网络设备提出信息请求,直接向该第二网络设备发送第二消息,该第二消息中携带了该第一网络设备收集到的更新的信息。After collecting the updated information, the first network device does not need to wait for the second network device to send an information request, and directly sends a second message to the second network device, where the second message carries the information collected by the first network device. Updated information.
本实施例中,第一网络设备确定发送给第二网络设备的第一消息中携带的信息需要更新时,可以收集更新的信息携带在第二消息中再发送给该第二网络设备,保证了第二网络设备及时得到最新的信息。 In this embodiment, when the first network device determines that the information carried in the first message sent to the second network device needs to be updated, the information that can be collected and updated is carried in the second message and then sent to the second network device, and the The second network device obtains the latest information in time.
上面实施例中,支持该特定协议的第一网络设备可以直接发送消息给第二网络设备,该特定协议的消息类型中包括请求消息和应答消息,在实际应用中,该特定协议可以是一种新定义的协议,也可以通过在现有协议的消息类型中扩展一种消息类型得到,还可以通过扩展现有协议中请求消息支持的操作类型得到,此处不作限定。In the above embodiment, the first network device supporting the specific protocol may directly send a message to the second network device, where the message type of the specific protocol includes a request message and a response message. In an actual application, the specific protocol may be a type of The newly defined protocol can also be obtained by extending a message type in the message type of the existing protocol, and can also be obtained by extending the type of operation supported by the request message in the existing protocol, which is not limited herein.
1、在现有协议的消息类型中扩展一种消息类型:1. Extend a message type in the message type of an existing protocol:
作为本发明实施例中消息发送方法另一个实施例,该特定协议的消息类型中还包括推送消息,该推送消息为一种单向的消息,该第二网络设备接收到推送消息后不需要回复应答消息,上述实施例中第一消息与第二消息均属于该推送消息。As another embodiment of the message sending method in the embodiment of the present invention, the message type of the specific protocol further includes a push message, where the push message is a one-way message, and the second network device does not need to reply after receiving the push message. The response message, in the foregoing embodiment, the first message and the second message belong to the push message.
可选的,作为本发明实施例中消息发送方法另一个实施例,该特定协议可以为在网络配置Netconf协议的基础上做的扩展,即,该特定协议可以为扩展的Netconf协议,该特定协议中的请求消息为Netconf协议中的远程过程调用请求消息rpc,该特定协议中的应答消息为该Netconf协议中的远程过程调用应答消息rpc-reply,该扩展的Netconf协议还包括一种远程过程调用推送消息rpc-push,上面实施例所述的推送消息即可以为该rpc-push。可以理解的是,在实际应用中,除了使用推送消息,或rpc-push,也可以采用其他的名称作为新增加的消息类型的名称,此处不作限定。Optionally, as another embodiment of the message sending method in the embodiment of the present invention, the specific protocol may be an extension performed on a network configuration Netconf protocol, that is, the specific protocol may be an extended Netconf protocol, and the specific protocol may be The request message is the remote procedure call request message rpc in the Netconf protocol, and the response message in the specific protocol is the remote procedure call response message rpc-reply in the Netconf protocol, and the extended Netconf protocol also includes a remote procedure call. The push message rpc-push, the push message described in the above embodiment may be the rpc-push. It can be understood that, in practical applications, in addition to using a push message, or rpc-push, other names may be used as the name of the newly added message type, which is not limited herein.
需要说明的是,Netconf协议满足该特定协议的特征,具体的,Netconf协议是IETF的RFC6241制定的一种网络配置协议,主要是用于进行网络设备的配置的写入和读取。Netconf协议分为如下四层:It should be noted that the Netconf protocol satisfies the characteristics of the specific protocol. Specifically, the Netconf protocol is a network configuration protocol defined by the IETF RFC6241, which is mainly used for writing and reading the configuration of the network device. The Netconf protocol is divided into the following four layers:
内容层:包括配置信息和通知信息,具体内容使用Yang建模语言来定义;Content layer: including configuration information and notification information, the specific content is defined using the Yang modeling language;
操作层:定义一系列netconf的协议操作,用来编辑和获取配置和配置信息;Operation layer: defines a series of protocol operations for netconf to edit and obtain configuration and configuration information;
消息层:采用XML编码的消息格式,已定义的消息类型包括实现请求-应答的rpc请求消息和rpc-reply消息,以及进行事件通知的notification消息;Message layer: adopts XML-encoded message format. The defined message types include rpc request message and rpc-reply message for implementing request-response, and notification message for event notification;
传输层:可以采用多种可靠的传输协议,如SSH,TLS等。Transport layer: A variety of reliable transport protocols, such as SSH, TLS, etc., can be used.
可选的,作为本发明实施例中消息发送方法另一个实施例,该rpc-push 中包括该rpc-push的命名空间和该rpc-push要发布的具体信息内容。该rpc-push的命名空间用于表明对该rpc-push的定义在协议中的具体位置。在本发明实施例中,该rpc-push要发布的具体信息内容即为第一消息中携带的信息或第二消息中携带的信息。Optionally, as another embodiment of the message sending method in the embodiment of the present invention, the rpc-push The rpc-push namespace and the specific information content to be published by the rpc-push are included. The rpc-push namespace is used to indicate the specific location of the rpc-push definition in the protocol. In the embodiment of the present invention, the specific information content to be advertised by the rpc-push is the information carried in the first message or the information carried in the second message.
该rpc-push可以采用多种格式形式进行定义,下面以一种为例:The rpc-push can be defined in a variety of formats, as an example:
Figure PCTCN2015099939-appb-000001
Figure PCTCN2015099939-appb-000001
其中,<rpc-push xmlns="urn:ietf:params:xml:ns:netconf:base:x.x">即用于表示rpc-push的命名空间,<push-info><!–要发布的具体信息内容--></push-info>即用于表示该rpc-push要发布的具体信息内容。Among them, <rpc-push xmlns="urn:ietf:params:xml:ns:netconf:base:x.x"> is used to represent the rpc-push namespace, <push-info><! – The specific information content to be published --></push-info> is used to indicate the specific information content to be published by the rpc-push.
采用这种方式扩展现有协议,不需要对现有协议中的请求消息和应答消息进行修改,仅需要增加一种新的消息类型,从而得到该特定协议。Extending the existing protocol in this way does not require modification of the request message and the reply message in the existing protocol, and only needs to add a new message type to obtain the specific protocol.
2、扩展现有协议中请求消息支持的操作类型:2. Extend the types of operations supported by the request message in the existing protocol:
作为本发明实施例中消息发送方法另一个实施例,该特定协议中请求消息支持的操作类型包括发布操作,该发布操作能使第二网络设备接收到携带该发布操作的请求消息后,保存携带该发布操作的请求消息中的信息;上述实施例中第一消息和所述第二消息均属于携带有该发布操作的请求消息。As another embodiment of the message sending method in the embodiment of the present invention, the operation type supported by the request message in the specific protocol includes a publishing operation, and the publishing operation enables the second network device to save and carry the request message carrying the publishing operation. The information in the request message of the publishing operation; in the foregoing embodiment, the first message and the second message belong to the request message carrying the publishing operation.
采用扩展请求消息支持的操作类型的方式对现有协议进行扩展,由于第一网络设备发送的还是请求消息,因此,按照请求应答机制的协议规定,第二网络设备必须回复应答消息对该请求消息进行应答。The existing protocol is extended by the type of operation supported by the extended request message. Since the first network device sends the request message, the second network device must reply the response message to the request message according to the protocol of the request response mechanism. Answer it.
需要说明的是,对该携带有发布操作的请求消息进行应答时,可以采用现有的应答消息,即对每个请求消息都回复一个应答消息;也可以对该应答消息进行扩展,可选的,作为本发明实施例中消息发送方法另一个实施例,第一网络设备可以接收第二网络设备发送的第三消息,该第三消息为第二网络设备对至少两个携带有该发布操作的请求消息进行应答的应 答消息。即,扩展后的应答消息可以一次对多个携带有该发布操作的请求消息进行应答,从而减少发送应答消息带来的开销。It should be noted that when replying to the request message carrying the publishing operation, an existing response message may be used, that is, a response message is replied to each request message; the response message may also be extended, optionally As another embodiment of the message sending method in the embodiment of the present invention, the first network device may receive the third message sent by the second network device, where the third message is that the second network device carries at least two of the publishing operations. Request message to respond Answer the message. That is, the extended response message can respond to multiple request messages carrying the publishing operation at one time, thereby reducing the overhead caused by sending the response message.
可以理解的是,扩展后的请求消息在消息格式上可以与现有请求消息相同,只是在选择操作类型时,可以在该请求消息中携带扩展的发布操作,从而使接收到该携带了发布操作的请求消息的第二网络设备,保存在该请求消息中携带的信息。It can be understood that the extended request message can be the same as the existing request message in the message format, but when the operation type is selected, the extended publishing operation can be carried in the request message, so that the received publishing operation is received. The second network device of the request message saves the information carried in the request message.
而在扩展应答消息对至少两个携带该发布操作的请求消息进行应答,可以在该应答消息中携带该至少两个携带发布操作的请求消息的消息编号,还可以同时携带OK字段。The extended response message is responsive to the at least two request messages carrying the advertised operation, and the response message may carry the message number of the at least two request messages carrying the advertised operation, and may also carry the OK field.
可选的,该特定协议可以为在网络配置Netconf协议的基础上做的扩展,即,该特定协议可以为扩展的Netconf协议,其中应答消息可以为扩展的Netconf协议中扩展的rpc-reply,该扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。Optionally, the specific protocol may be an extension of the Netconf protocol configured on the network, that is, the specific protocol may be an extended Netconf protocol, where the response message may be an extended rpc-reply in the extended Netconf protocol, where The extended rpc-reply includes at least two message numbers carrying request messages for the publish operation.
可选的,上述实施例中,该特定协议可以为在网络配置Netconf协议的基础上做的扩展,该特定协议可以为扩展的Netconf协议,该请求消息为扩展的Netconf协议中扩展的rpc,该扩展的rpc中包括发布操作。在实际应用中,该发布操作可以采用advertise作为名称,也可以使用其他的名称,此处不作限定。Optionally, in the foregoing embodiment, the specific protocol may be an extension based on a network configuration Netconf protocol, where the specific protocol may be an extended Netconf protocol, where the request message is an extended rpc in the extended Netconf protocol, The extended rpc includes the publish operation. In actual applications, the advertised operation may use advertise as the name, and other names may be used, which are not limited herein.
下面举例对扩展的rpc与扩展的rpc-reply的一种消息格式进行说明:The following example illustrates a message format for extended rpc and extended rpc-reply:
扩展的rpc的格式可以如下所示:The format of the extended rpc can be as follows:
Figure PCTCN2015099939-appb-000002
Figure PCTCN2015099939-appb-000002
其中,<advertise/>即表示该rpc中携带了发布操作。Where <advertise/> means that the rpc carries the publishing operation.
扩展的rpc-reply的格式可以如下所示: The format of the extended rpc-reply can be as follows:
Figure PCTCN2015099939-appb-000003
Figure PCTCN2015099939-appb-000003
其中,携带了3个携带advertise操作的请求消息的消息编号,分别为98,99和100。The message numbers carrying the three request messages carrying the advertise operation are 98, 99, and 100, respectively.
可以理解的是,上面各实施例中,根据第一网络设备和第二网络设备应用场景不同,第一网络设备收集的信息可以不同,例如在I2RS场景中,第一网络设备为代理agent,第二网络设备为控制器client时,该第一网络设备收集的信息可以包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息等信息中至少一种;第一网络设备为client,第二网络设备为agent时,该第一网络设备收集的信息可以包括:配置信息,策略信息,需求信息等信息中至少一种。It can be understood that, in the above embodiments, the information collected by the first network device may be different according to different application scenarios of the first network device and the second network device, for example, in the I2RS scenario, the first network device is an agent agent, When the network device is the controller client, the information collected by the first network device may include: at least network topology information, network routing information, network performance information, network device status information, network device statistics, and the like. The first network device is a client, and the information collected by the first network device may include at least one of configuration information, policy information, and demand information.
二、执行主体为第二网络设备:Second, the executive body is the second network device:
请参阅图3,本发明实施例中消息发送方法另一个实施例包括:Referring to FIG. 3, another embodiment of the message sending method in the embodiment of the present invention includes:
301、在第二网络设备与第一网络设备通过特定协议建立会话之后,所述第二网络设备不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息;301. After the second network device establishes a session with the first network device by using a specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first information sent by the first network device. a message, the first message carrying information that is collected by the first network device and conforms to the information identifier of the second network device;
需要说明的是,该信息请求指示获取所述符合所述第二网络设备的信息标识的信息。It should be noted that the information request indicates that the information that meets the information identifier of the second network device is obtained.
本步骤中,根据该第二网络设备的信息标识的不同,该符合第二网络设备的信息标识的信息可以为符合所述第二网络设备支持的信息类型的信息,也可以为满足所述第二网络设备的信息需求的信息。In this step, according to the information identifier of the second network device, the information that meets the information identifier of the second network device may be information that meets the information type supported by the second network device, or may satisfy the foregoing. Information about the information needs of the network device.
可以理解的是,第二网络设备与第一网络设备通过特定协议建立会话时,可以将该第二网络设备支持的信息类型,或该第二网络设备的信息需求,作为该第二网络设备的信息标识通知给该第一网络设备。 It can be understood that, when the second network device establishes a session with the first network device by using a specific protocol, the information type supported by the second network device or the information requirement of the second network device may be used as the second network device. The information identifier is notified to the first network device.
302、所述第二网络设备从所述第一消息中提取出所述符合所述第二网络设备的信息标识的信息;302. The second network device extracts the information that meets the information identifier of the second network device from the first message.
第二网络设备接收到第一网络设备发送的第一消息后,从该第一消息中提取出符合该第二网络设备的信息标识的信息。After receiving the first message sent by the first network device, the second network device extracts information corresponding to the information identifier of the second network device from the first message.
303、所述第二网络设备保存所述符合所述第二网络设备的信息标识的信息。303. The second network device saves the information that meets the information identifier of the second network device.
第二网络设备提取出符合该第二网络设备的信息标识的信息后,保存该符合第二网络设备的信息标识的信息。After the second network device extracts the information that meets the information identifier of the second network device, the information that meets the information identifier of the second network device is saved.
本发明实施例中,第二网络设备不需要先向所述第一网络设备提出信息请求,直接接收第一网络设备发送的消息,并对消息中的信息进行保存,并且不需要回复应答消息,极大的提高了设备之间交互的效率。In the embodiment of the present invention, the second network device does not need to first send an information request to the first network device, directly receives the message sent by the first network device, and saves the information in the message, and does not need to reply to the response message. Greatly improve the efficiency of interaction between devices.
在实际应用中,该第二网络设备还可以接收第一网络设备发送的携带有更新的信息的消息,请参阅图4,本发明实施例中消息发送的方法另一个实施例包括:In a practical application, the second network device may further receive a message that is sent by the first network device and that carries the updated information. Referring to FIG. 4, another embodiment of the method for sending a message in the embodiment of the present invention includes:
401、在第二网络设备与第一网络设备通过特定协议建立会话之后,所述第二网络设备不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息;401. After the second network device establishes a session with the first network device by using a specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first information sent by the first network device. a message, the first message carrying information that is collected by the first network device and conforms to the information identifier of the second network device;
402、所述第二网络设备从所述第一消息中提取出所述符合所述第二网络设备的信息标识的信息;402. The second network device extracts the information that meets the information identifier of the second network device from the first message.
403、所述第二网络设备保存所述符合所述第二网络设备的信息标识的信息;403. The second network device saves the information that meets the information identifier of the second network device.
步骤401至403与步骤301至303类似,此处不作赘述。 Steps 401 to 403 are similar to steps 301 to 303, and are not described herein.
404、第二网络设备接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;404. The second network device receives the second message sent by the first network device, where the second message carries the updated information collected by the first network device.
第二网络设备保存第一消息中携带的信息后,还可以接收该第一网络设备发送的第二消息,该第二消息中携带了该第一网络设备收集到的更新的信息。After the second network device saves the information carried in the first message, the second network device may also receive the second message sent by the first network device, where the second message carries the updated information collected by the first network device.
可以理解的是,该更新的信息是对于第一网络设备已经发送给该第二网络设备的信息进行更新的信息。 It can be understood that the updated information is information for updating information that the first network device has sent to the second network device.
405、所述第二网络设备从所述第二消息中提取出所述更新的信息;405. The second network device extracts the updated information from the second message.
第二网络设备从接收到的该第二消息中提取出该更新的信息。The second network device extracts the updated information from the received second message.
406、所述第二网络设备利用所述更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。406. The second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
第二网络设备提取出该更新的信息后,利用该更新的信息对保存的该符合第二网络设备的信息标识的信息进行更新。After extracting the updated information, the second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
本实施例中,第二网络设备可以接收携带有更新的信息的第二消息,并提取出该更新的消息对保存的符合该第二网络设备的信息标识的信息进行更新,保证了信息的实时性。In this embodiment, the second network device may receive the second message carrying the updated information, and extract the updated message to update the saved information that meets the information identifier of the second network device, thereby ensuring real-time information. Sex.
上面实施例中,支持该特定协议的第二网络设备在未发起请求信息的情况下,可以接收第一网络设备发送的消息并保存消息中的信息,在实际应用中,该特定协议可以是一种新定义的协议,也可以通过在现有协议的消息类型中扩展一种消息类型得到,还可以通过扩展现有协议中请求消息支持的操作类型得到,此处不作限定。In the above embodiment, the second network device supporting the specific protocol may receive the message sent by the first network device and save the information in the message if the request information is not initiated. In an actual application, the specific protocol may be one. The newly defined protocol can also be obtained by extending a message type in the message type of the existing protocol, and can also be obtained by extending the type of operation supported by the request message in the existing protocol, which is not limited herein.
1、在现有协议的消息类型中扩展一种消息类型:1. Extend a message type in the message type of an existing protocol:
2、扩展现有协议中请求消息支持的操作类型:2. Extend the types of operations supported by the request message in the existing protocol:
具体扩展方式,与上述实施例中这两种扩展方式相同,此处不作赘述。The specific extension manner is the same as the two extension manners in the foregoing embodiment, and details are not described herein.
可以理解的是,本发明方法可以应用在多种场景中,除了I2RS场景,还可以用于SDN网络中的多个控制器之间进行控制信息的交互,也可以用于网络设备之间的控制信息的交互等,此处不作限定。It can be understood that the method of the present invention can be applied to multiple scenarios. In addition to the I2RS scenario, it can also be used for interaction of control information between multiple controllers in an SDN network, and can also be used for control between network devices. Information interaction and the like are not limited herein.
为便于理解,下面分别以两种扩展方式,结合一具体应用场景,从第一网络设备与第二网络设备的交互过程对本发明实施例中消息发送的方法进行具体描述:For ease of understanding, the following describes the method for sending a message in the embodiment of the present invention from the interaction process between the first network device and the second network device in two extension manners, in combination with a specific application scenario:
1、在现有协议的消息类型中扩展一种消息类型:1. Extend a message type in the message type of an existing protocol:
在Netconf协议中定义一种叫做“rpc-push”的新的消息机制,与已有的rpc和rpc-reply消息,用于一个节点向与其建立Netconf会话的对端节点发布本节点所收集的或需要进行更新的信息,该“rpc-push”消息是一种单向的消息,可以由Netconf会话的任何一方发起,接收方不需要回复任何应答消息;In the Netconf protocol, a new message mechanism called "rpc-push" is defined, and the existing rpc and rpc-reply messages are used by a node to publish the collected nodes of the node to the peer node with which the Netconf session is established. Information to be updated, the "rpc-push" message is a one-way message that can be initiated by either party to the Netconf session, and the recipient does not need to reply to any response message;
在I2rs场景中,Netconf会话建立之后,网络设备(第一网络设备) 需要快速将本身收集的大量信息发布给网络控制器(第二网络设备),这时网络设备可以使用rpc-push将需要发布的信息单向发送给网络控制器,而不需等待网络控制器提出请求;网络控制器在收到rpc-push后,将该rpc-push中携带的信息保存在对应的数据库中,网络控制器不需要对rpc-push进行回应;In the I2rs scenario, after the Netconf session is established, the network device (the first network device) It is necessary to quickly release a large amount of information collected by itself to the network controller (second network device). At this time, the network device can use rpc-push to send the information to be released to the network controller in one direction without waiting for the network controller to propose. After receiving the rpc-push, the network controller saves the information carried in the rpc-push in the corresponding database, and the network controller does not need to respond to the rpc-push;
当网络设备发现之前发布给网络控制器的一部分信息出现更新时,网络设备使用rpc-push将更新的信息发送给网络控制器,网络控制器在收到rpc-push后,使用消息中的更新信息替换数据库中的陈旧信息,网络控制器不需要对rpc-push进行回应。When the network device finds that a part of the information previously issued to the network controller is updated, the network device sends the updated information to the network controller by using rpc-push, and the network controller uses the update information in the message after receiving the rpc-push. To replace stale information in the database, the network controller does not need to respond to rpc-push.
2、扩展现有协议中请求消息支持的操作类型:2. Extend the types of operations supported by the request message in the existing protocol:
在Netconf协议中为rpc定义一种新的操作类型,可以叫做“advertise”,用于一个节点向建立了Netconf会话的对端节点主动发布本节点所收集的或需要进行更新的信息,同时定义一种新的rpc-reply机制,允许用一个rpc-reply应答多个rpc,从而减少rpc-reply带来的开销;In the Netconf protocol, a new type of operation is defined for rpc, which can be called "advertise". It is used by a node to actively publish the information collected by the node or needs to be updated to the peer node that established the Netconf session, and define one at the same time. A new rpc-reply mechanism that allows multiple rpcs to be answered with one rpc-reply, thereby reducing the overhead of rpc-reply;
在I2rs场景中,Netconf会话建立之后,网络设备(第一网络设备)需要快速将本设备收集的大量信息发布给网络控制器(第二网络设备),这时网络设备可以使用携带advertise操作的rpc,将需要发布的信息单向发送给网络控制器,而不需等待网络控制器提出任何请求,网络控制器在收到携带advertise操作的rpc后,将信息保存在对应的数据库中;In the I2rs scenario, after the Netconf session is established, the network device (the first network device) needs to quickly release a large amount of information collected by the device to the network controller (the second network device). In this case, the network device can use the rpc carrying the advertise operation. The information to be advertised is sent to the network controller in one direction, without waiting for the network controller to make any request, and after receiving the rpc carrying the advertise operation, the network controller saves the information in the corresponding database;
网络控制器不需要对每个携带advertise操作的rpc分别回应rcp-reply,可以对多个带advertise操作的rpc进行打包回应一个rpc-reply,回应的rpc-reply需要携带所回应的所有rpc的id,并携带<ok>字段即可;The network controller does not need to respond to rcp-reply for each rpc carrying the advertise operation. It can package multiple rpc-reply packets with advertised rpc. The rpc-reply of the response needs to carry the id of all rpcs that are responded. And carry the <ok> field;
当网络设备发现之前发布给网络控制器的一部分信息出现更新时,网络设备使用携带advertise操作的rpc将更新的信息发送给网络控制器;网络控制器在收到携带advertise操作的rpc后,使用消息中的更新信息替换数据库中的陈旧信息,网络控制器不需要对每个携带advertise操作的rpc分别回应rcp-reply,可以对多个带advertise操作的rpc进行打包回应一个rpc-reply,回应的rpc-reply需要携带所回应的所有rpc的id,并携带<ok>字段即可。When the network device finds that a part of the information previously issued to the network controller is updated, the network device sends the updated information to the network controller by using the rpc carrying the advertise operation; the network controller uses the message after receiving the rpc carrying the advertise operation. The update information in the database replaces the stale information in the database. The network controller does not need to respond to rcp-reply for each rpc carrying the advertise operation, and can package multiple rpc-reply responses to the rpc with the advertise operation. -reply needs to carry the id of all rpcs that are responded, and carry the <ok> field.
下面对本发明实施例中网络设备进行描述,本发明实施例中网络设备 均支持上述特定协议。The following describes the network device in the embodiment of the present invention, where the network device is used in the embodiment of the present invention. Both support the above specific protocols.
一、作为第一网络设备使用的网络设备:1. Network equipment used as the first network device:
请参阅图5,本发明实施例中作为第一网络设备使用的网络设备一个实施例包括:Referring to FIG. 5, an embodiment of a network device used as a first network device in the embodiment of the present invention includes:
收集模块501,用于收集网络中的信息;The collecting module 501 is configured to collect information in the network;
建立模块502,用于与所述第二网络设备通过所述特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;The establishing module 502 is configured to establish a session with the second network device by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
第一发送模块503,用于当所述收集模块501收集的信息符合所述信息标识时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块501收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述信息标识的信息。The first sending module 503 is configured to: when the information collected by the collecting module 501 meets the information identifier, do not need to first receive the information request by the second network device, and send the first to the second network device. And the information that is collected by the collecting module 501 and that meets the information identifier of the second network device, where the information request indicates that the information that meets the information identifier is obtained.
本发明实施例中支持特定协议的第一网络设备中收集模块501收集的信息符合第二网络设备的信息标识时,不需要先接收该第二网络设备提出的信息请求,第一发送模块503主动的向同样支持该特定协议的第二网络设备发送第一消息,在该第一消息中携带该第一网络设备收集到的符合该第二网络设备的信息标识的信息。其中,该特定协议具有分层结构,至少包含消息层和内容层,消息层与内容层相互独立且消息层中包含请求应答消息机制。这样在支持该第一协议的同时,在大量、变化频繁的信息更新场景下,第一网络设备收集信息后不再需要每次都等待第二网络设备提出请求消息后才能发出收集的信息,节省了将收集的信息发送出去的时间,且第二网络设备接收到该第一消息后不需要回复应答消息,节省了信息处理流程,提高了支持该特定协议的第一网络设备和第二网络设备在该大量、变化频繁的信息更新场景下对信息的处理效率。In the embodiment of the present invention, when the information collected by the collecting module 501 in the first network device that supports the specific protocol is in accordance with the information identifier of the second network device, the first sending module 503 is not required to receive the information request from the second network device. Sending a first message to the second network device that also supports the specific protocol, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device. The specific protocol has a hierarchical structure, at least a message layer and a content layer, the message layer and the content layer are independent of each other, and the message layer includes a request response message mechanism. In the scenario of supporting the first protocol, the information collected by the first network device does not need to wait for the request message from the second network device to send the collected information every time after collecting the information. The time when the collected information is sent out, and the second network device does not need to reply to the response message after receiving the first message, which saves the information processing flow and improves the first network device and the second network device supporting the specific protocol. The efficiency of processing information in this large and frequently changing information update scenario.
在实际应用中,第一发送模块503向第二网络设备发送携带有第一网络设备收集到的符合第二网络设备的信息标识的信息的第一消息之后,若该第一网络设备确定发送给第二网络设备的信息需要更新,还可以再发送第二消息给该第二网络设备,在该第二消息中携带更新的信息。可选的,作为本发明实施例中作为第一网络设备使用的网络设备另一个实施例:In a practical application, after the first sending module 503 sends the first message that carries the information that is collected by the first network device and that meets the information identifier of the second network device, the first network device determines to send the first message to the second network device. The information of the second network device needs to be updated, and the second message may be sent to the second network device, where the updated information is carried in the second message. Optionally, another embodiment of the network device used as the first network device in the embodiment of the present invention:
上述收集模块501还用于,当确定发送给所述第二网络设备的第一消 息中携带的信息需要更新时,收集更新的信息;The foregoing collecting module 501 is further configured to: when determining the first cancellation sent to the second network device Collect updated information when the information carried in the information needs to be updated;
上述第一发送模块503还用于,主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述收集模块501收集到的更新的信息。The first sending module 503 is further configured to: send the second message to the second network device, where the second message carries the updated information collected by the collecting module 501.
本实施例中,收集模块501确定发送给第二网络设备的第一消息中携带的信息需要更新时,第一发送模块503可以将收集到的更新的信息携带在第二消息中再发送给该第二网络设备,保证了第二网络设备及时得到最新的信息。In this embodiment, when the collecting module 501 determines that the information carried in the first message sent to the second network device needs to be updated, the first sending module 503 may carry the collected updated information in the second message and send the information to the second message. The second network device ensures that the second network device obtains the latest information in time.
需要说明的是,上述第二网络设备的信息标识可以为多种:It should be noted that the information identifier of the second network device may be multiple:
可选的,作为本发明实施例中作为第一网络设备使用的网络设备另一个实施例,所述信息标识用于表示所述第二网络设备支持的信息类型;Optionally, as another embodiment of the network device used by the first network device in the embodiment of the present invention, the information identifier is used to indicate a type of information supported by the second network device;
所述第一发送模块503具体用于,当所述收集模块501收集的信息符合所述第二网络设备支持的信息类型时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的符合所述第二网络设备支持的信息类型的信息。The first sending module 503 is specifically configured to: when the information collected by the collecting module 501 meets the information type supported by the second network device, The second network device sends a first message, where the first message carries information collected by the collection module that meets the type of information supported by the second network device.
可选的,作为本发明实施例中作为第一网络设备使用的网络设备另一个实施例,所述信息标识用于表示所述第二网络设备的信息需求;Optionally, as another embodiment of the network device used as the first network device in the embodiment of the present invention, the information identifier is used to indicate an information requirement of the second network device;
所述第一发送模块503具体用于,当所述收集模块501收集的信息满足所述第二网络设备的信息需求时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的满足所述第二网络设备的信息需求的信息。The first sending module 503 is specifically configured to: when the information collected by the collecting module 501 meets the information requirement of the second network device, do not need to first receive the information request submitted by the second network device, and actively The second network device sends a first message, where the first message carries information collected by the collection module that satisfies the information requirement of the second network device.
上面实施例中,作为第一网络设备使用的网络设备支持的特定协议的消息类型中包括请求消息和应答消息,在实际应用中,该特定协议可以是一种新定义的协议,也可以通过在现有协议的消息类型中扩展一种消息类型得到,还可以通过扩展现有协议中请求消息支持的操作类型得到,此处不作限定。In the above embodiment, the message type of the specific protocol supported by the network device used by the first network device includes a request message and a response message. In an actual application, the specific protocol may be a newly defined protocol, or may be The extension of a message type in the message type of the existing protocol can also be obtained by extending the type of operation supported by the request message in the existing protocol, which is not limited herein.
1、在现有协议的消息类型中扩展一种消息类型:1. Extend a message type in the message type of an existing protocol:
与前述方法实施例中在现有协议的消息类型中扩展一种消息类型的具体扩展方式类似,此处不作限定。Similar to the specific extension manner of extending a message type in the message type of the existing protocol in the foregoing method embodiment, it is not limited herein.
2、扩展现有协议中请求消息支持的操作类型: 2. Extend the types of operations supported by the request message in the existing protocol:
与前述方法实施例中扩展现有协议中请求消息支持的操作类型的具体扩展方式类似,此处不作限定。Similar to the specific extension of the operation type supported by the request message in the existing protocol in the foregoing method embodiment, it is not limited herein.
若采用这种方式对该特定协议进行扩展,第一网络设备可以采用一个应答消息对多个请求消息进行应答。If the specific protocol is extended in this way, the first network device can respond to the multiple request messages with a response message.
可选的,请参阅图6,作为本发明实施例中作为第一网络设备使用的网络设备另一个实施例,该网络设备还包括:Optionally, referring to FIG. 6, as another embodiment of the network device used as the first network device in the embodiment of the present invention, the network device further includes:
第一接收模块601,用于接收所述第二网络设备发送的第三消息,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The first receiving module 601 is configured to receive a third message sent by the second network device, where the third message is a response that the second network device responds to at least two request messages carrying the publishing operation. Message.
本实施例中,第一接收模块601可以接收一次对多个携带有发布操作的请求消息进行应答的应答消息,从而减少发送与接收应答消息带来的开销。In this embodiment, the first receiving module 601 can receive a response message for responding to multiple request messages carrying the issuing operation, thereby reducing the overhead caused by sending and receiving the response message.
可选的,作为本发明实施例中作为第一网络设备使用的网络设备另一个实施例,上述收集模块501收集的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;或,配置信息,策略信息,需求信息中至少一种。Optionally, as another embodiment of the network device used by the first network device in the embodiment of the present invention, the information collected by the collecting module 501 includes: network topology information, network routing information, network performance information, and network device. State information, at least one of network device statistics; or at least one of configuration information, policy information, and demand information.
二、作为第二网络设备使用的网络设备:2. Network equipment used as the second network device:
请参阅图7,本发明实施例中作为第二网络设备使用的网络设备一个实施例包括:Referring to FIG. 7, an embodiment of a network device used as a second network device in the embodiment of the present invention includes:
第二接收模块701,用于在所述第二网络设备与所述第一网络设备通过所述特定协议建立会话之后,不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述第二网络设备的信息标识的信息;The second receiving module 701 is configured to directly receive the information request to the first network device after the second network device establishes a session with the first network device by using the specific protocol. a first message sent by the network device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the Information of the information identification of the second network device;
提取模块702,用于从所述第二接收模块701接收到的第一消息中提取出所述符合所述第二网络设备的信息标识的信息;The extracting module 702 is configured to extract, according to the first message received by the second receiving module 701, the information that meets the information identifier of the second network device;
保存模块703,用于保存所述提取模块702提取出的符合所述第二网络设备的信息标识的信息。The saving module 703 is configured to save information that is extracted by the extraction module 702 and meets the information identifier of the second network device.
本发明实施例中,第二接收模块701不需要先向所述第一网络设备提出信息请求,直接接收第一网络设备发送的消息,保存模块703对消息中 的信息进行保存,并且不需要回复应答消息,极大的提高了设备之间交互的效率。In the embodiment of the present invention, the second receiving module 701 does not need to first send an information request to the first network device, and directly receives the message sent by the first network device, and the saving module 703 is in the message. The information is saved and does not need to reply to the response message, which greatly improves the efficiency of interaction between devices.
在实际应用中,该第二接收模块701还可以接收第一网络设备发送的携带有更新的信息的消息,请参阅图8,作为本发明实施例中作为第二网络设备使用的网络设备另一个实施例:In a practical application, the second receiving module 701 may further receive a message that is sent by the first network device and that carries the updated information. Referring to FIG. 8, the network device used as the second network device in the embodiment of the present invention is another. Example:
上述第二接收模块701还用于,接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;The second receiving module 701 is further configured to receive the second message sent by the first network device, where the second message carries the updated information collected by the first network device;
上述提取模块702还用于,从所述第二消息中提取出所述更新的信息;The foregoing extraction module 702 is further configured to: extract the updated information from the second message;
该网络设备还包括:The network device also includes:
更新模块801,用于利用所述提取模块702提取出的更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。The update module 801 is configured to update, by using the updated information extracted by the extraction module 702, the saved information that meets the information identifier of the second network device.
本实施例中,第二接收模块701可以接收携带有更新的信息的第二消息,提取模块702提取出该更新的消息,更新模块801对保存的符合该第二网络设备的信息标识的信息进行更新,保证了信息的实时性。In this embodiment, the second receiving module 701 can receive the second message carrying the updated information, the extracting module 702 extracts the updated message, and the updating module 801 performs the saved information that meets the information identifier of the second network device. Updates ensure the real-time nature of the information.
可选的,上述符合所述第二网络设备的信息标识的信息包括:符合所述第二网络设备支持的信息类型的信息,或,满足所述第二网络设备的信息需求的信息。Optionally, the information that meets the information identifier of the second network device includes: information that meets the type of information supported by the second network device, or information that meets information requirements of the second network device.
上面实施例中,作为第二网络设备使用的网络设备支持的特定协议可以是一种新定义的协议,也可以通过在现有协议的消息类型中扩展一种消息类型得到,还可以通过扩展现有协议中请求消息支持的操作类型得到,此处不作限定。In the above embodiment, the specific protocol supported by the network device used by the second network device may be a newly defined protocol, or may be obtained by extending a message type in a message type of an existing protocol, and may also be extended by There are types of operations supported by the request message in the protocol, which are not limited here.
1、在现有协议的消息类型中扩展一种消息类型:1. Extend a message type in the message type of an existing protocol:
与前述方法实施例中在现有协议的消息类型中扩展一种消息类型的具体扩展方式类似,此处不作限定。Similar to the specific extension manner of extending a message type in the message type of the existing protocol in the foregoing method embodiment, it is not limited herein.
2、扩展现有协议中请求消息支持的操作类型:2. Extend the types of operations supported by the request message in the existing protocol:
与前述方法实施例中扩展现有协议中请求消息支持的操作类型的具体扩展方式类似,此处不作限定。Similar to the specific extension of the operation type supported by the request message in the existing protocol in the foregoing method embodiment, it is not limited herein.
若采用这种方式对该特定协议进行扩展,第二网络设备可以发送一个应答消息对多个请求消息进行应答。If the specific protocol is extended in this way, the second network device can send a response message to respond to the multiple request messages.
可选的,请参阅图9,作为本发明实施例中作为第二网络设备使用的 网络设备另一个实施例,该网络设备还包括:Optionally, please refer to FIG. 9 , which is used as the second network device in the embodiment of the present invention. Another embodiment of the network device, the network device further includes:
第二发送模块901,用于发送第三消息给所述第一网络设备,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The second sending module 901 is configured to send a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation. .
本实施例中,第二发送模块901可以发送一个应答消息一次对多个携带有发布操作的请求消息进行应答,从而减少发送与接收应答消息带来的开销。In this embodiment, the second sending module 901 can send a response message to respond to multiple request messages carrying the publishing operation at a time, thereby reducing the overhead caused by sending and receiving the response message.
可选的,上述符合所述第二网络设备的信息标识的信息可以包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;或,配置信息,策略信息,需求信息中至少一种。Optionally, the foregoing information that meets the information identifier of the second network device may include: at least one of network topology information, network routing information, network performance information, network device status information, and network device statistics information. Or, at least one of configuration information, policy information, and demand information.
请参阅图10,为一个网络设备1000的结构示意图,可以理解的是,该结构示意图所示的网络设备既可以表示作为第一网络设备使用的网络设备,也可以表示作为第二网络设备使用的网络设备,包括:Please refer to FIG. 10 , which is a schematic structural diagram of a network device 1000. It can be understood that the network device shown in the schematic diagram can represent either a network device used as the first network device or a second network device. Network equipment, including:
输入装置1001、输出装置1002、处理器1003和存储器1004(其中网络设备1000中的处理器1003的数量可以一个或多个,图10中以一个处理器1003为例)。在本发明的一些实施例中,输入装置1001、输出装置1002、处理器1003和存储器1004可通过总线或其它方式连接,其中,图10中以通过总线连接为例。The input device 1001, the output device 1002, the processor 1003, and the memory 1004 (wherein the number of processors 1003 in the network device 1000 may be one or more, and one processor 1003 in FIG. 10 is taken as an example). In some embodiments of the present invention, the input device 1001, the output device 1002, the processor 1003, and the memory 1004 may be connected by a bus or other means, wherein the connection through the bus is taken as an example in FIG.
当该图10所示的网络设备表示作为第一网络设备使用的网络设备时,所述第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,通过调用所述存储器1004存储的操作指令,所述处理器1003用于执行如下步骤:When the network device shown in FIG. 10 represents a network device used as the first network device, both the first network device and the second network device support a specific protocol, and the specific protocol is a control management protocol, and has a a layer structure, comprising at least a message layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define a protocol that needs to be transmitted and interacted. Data and information, the message layer and the content layer are independent of each other. The processor 1003 is configured to perform the following steps by calling an operation instruction stored in the memory 1004:
收集网络中的信息;Collect information from the network;
与所述第二网络设备通过所述特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;Establishing a session with the second network device by using the specific protocol, and obtaining an information identifier of the second network device in the session establishment process;
当收集的信息符合所述信息标识时,不需要先接收所述第二网络设备 提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述信息标识的信息;When the collected information meets the information identifier, the second network device does not need to be received first. Sending, by the proposed information request, the first message to the second network device, where the first message carries the information that is collected by the collecting module and meets the information identifier of the second network device, where the information request Instructing to obtain the information that meets the information identifier;
本发明的一些实施例中,所述处理器1003还用于执行如下步骤:In some embodiments of the present invention, the processor 1003 is further configured to perform the following steps:
当确定发送给所述第二网络设备的第一消息中携带的信息需要更新时,收集更新的信息;Collecting updated information when it is determined that the information carried in the first message sent to the second network device needs to be updated;
主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述收集模块收集到的更新的信息。The second message is sent to the second network device, and the second message carries the updated information collected by the collection module.
本发明的一些实施例中,所述信息标识用于表示所述第二网络设备支持的信息类型,所述处理器1003具体用于执行如下步骤:In some embodiments of the present invention, the information identifier is used to indicate the type of information supported by the second network device, and the processor 1003 is specifically configured to perform the following steps:
当收集的信息符合所述第二网络设备支持的信息类型时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的符合所述第二网络设备支持的信息类型的信息。When the collected information meets the information type supported by the second network device, the information request from the second network device is not required to be received, and the first message is sent to the second network device, the first message. And carrying information collected by the collection module that meets the type of information supported by the second network device.
本发明的一些实施例中,所述信息标识用于表示所述第二网络设备的信息需求,所述处理器1003具体用于执行如下步骤:In some embodiments of the present invention, the information identifier is used to indicate the information requirement of the second network device, and the processor 1003 is specifically configured to perform the following steps:
当收集的信息满足所述第二网络设备的信息需求时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的满足所述第二网络设备的信息需求的信息。When the collected information meets the information requirement of the second network device, the information request by the second network device is not required to be received, and the first message is sent to the second network device, where the first message is sent. And carrying information collected by the collection module that meets information requirements of the second network device.
本发明的一些实施例中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。In some embodiments of the present invention, the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message. The first message belongs to the push message.
本发明的一些实施例中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息和所述第二消息均属于所述推送消息。In some embodiments of the present invention, the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message. Both the first message and the second message belong to the push message.
本发明的一些实施例中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消 息为所述rpc-push。In some embodiments of the present invention, the specific protocol configures the Netconf protocol for the extended network, the request message is a remote procedure call request message rpc in the Netconf protocol, and the response message is a remote procedure call in the Netconf protocol. Responding to the message rpc-reply, the extended Netconf protocol includes a remote procedure call push message rpc-push, the push cancellation The information is the rpc-push.
本发明的一些实施例中,所述rpc-push中包括所述rpc-push的命名空间和所述rpc-push要发布的具体信息内容。In some embodiments of the present invention, the rpc-push includes the rpc-push namespace and the specific information content to be advertised by the rpc-push.
本发明的一些实施例中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。In some embodiments of the present invention, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation. Information in the request message; the first message belongs to a request message carrying the publishing operation.
本发明的一些实施例中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息和所述第二消息均属于携带有所述发布操作的请求消息。In some embodiments of the present invention, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation. Information in the request message; both the first message and the second message belong to a request message carrying the publishing operation.
本发明的一些实施例中,所述处理器1003还用于执行如下步骤:In some embodiments of the present invention, the processor 1003 is further configured to perform the following steps:
接收所述第二网络设备发送的第三消息,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。Receiving a third message sent by the second network device, where the third message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
本发明的一些实施例中,所述对至少两个携带有所述发布操作的请求消息进行应答的应答消息中包括:至少两个携带有发布操作的请求消息的消息编号。In some embodiments of the present invention, the response message that responds to the at least two request messages carrying the publishing operation includes: at least two message numbers carrying request messages for the publishing operation.
本发明的一些实施例中,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,该扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。In some embodiments of the present invention, the specific protocol configures the Netconf protocol for the extended network, and the response message is an extended rpc-reply in the extended Netconf protocol, where the extended rpc-reply includes at least two carriers. The message number of the request message with the publish operation.
本发明的一些实施例中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为所述扩展的Netconf协议中扩展的rpc,所述扩展的rpc中包括所述发布操作。In some embodiments of the present invention, the specific protocol configures the Netconf protocol for the extended network, the request message is an extended rpc in the extended Netconf protocol, and the extended rpc includes the publishing operation.
本发明的一些实施例中,所述收集的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;或,配置信息,策略信息,需求信息中至少一种。In some embodiments of the present invention, the collected information includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and at least one of statistical information of the network device; or, configuration information. At least one of policy information and demand information.
当该图10所示的网络设备表示作为第二网络设备使用的网络设备时,第一网络设备与所述第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消 息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,通过调用所述存储器1004存储的操作指令,所述处理器1003用于执行如下步骤:When the network device shown in FIG. 10 represents a network device used as the second network device, both the first network device and the second network device support a specific protocol, and the specific protocol is a control management protocol, and has a The layer structure includes at least a message layer and a content layer, and the message layer is used to define a message type that implements protocol interaction, and the message type includes a request message and a response cancellation. The content layer is used to define data and information that the protocol needs to transmit and interact. The message layer and the content layer are independent of each other. The processor 1003 is configured to execute by calling an operation instruction stored in the memory 1004. The following steps:
在所述第二网络设备与所述第一网络设备通过所述特定协议建立会话之后,不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述第二网络设备的信息标识的信息;After the second network device and the first network device establish a session by using the specific protocol, do not need to first send an information request to the first network device, and directly receive the first message sent by the first network device. The first message carries the information that is collected by the first network device and meets the information identifier of the second network device, where the information request indicates that the information identifier corresponding to the second network device is obtained. information;
从接收到的第一消息中提取出所述符合所述第二网络设备的信息标识的信息;Extracting, from the received first message, the information that meets the information identifier of the second network device;
保存提取出的符合所述第二网络设备的信息标识的信息。The extracted information that meets the information identifier of the second network device is saved.
本发明的一些实施例中,所述处理器1003还用于执行如下步骤:In some embodiments of the present invention, the processor 1003 is further configured to perform the following steps:
接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;Receiving a second message sent by the first network device, where the second message carries updated information collected by the first network device;
从所述第二消息中提取出所述更新的信息;Extracting the updated information from the second message;
利用提取出的更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。And updating the saved information that meets the information identifier of the second network device by using the extracted updated information.
本发明的一些实施例中,所述符合所述第二网络设备的信息标识的信息包括:符合所述第二网络设备支持的信息类型的信息,或,满足所述第二网络设备的信息需求的信息。In some embodiments of the present invention, the information that meets the information identifier of the second network device includes: information that meets the type of information supported by the second network device, or meets information requirements of the second network device. Information.
本发明的一些实施例中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。In some embodiments of the present invention, the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message. The first message belongs to the push message.
本发明的一些实施例中,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息和所述第二消息均属于所述推送消息。In some embodiments of the present invention, the message type further includes a push message, where the push message is a one-way message, and the second network device does not need to reply to the response message after receiving the push message. Both the first message and the second message belong to the push message.
本发明的一些实施例中,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消 息为所述rpc-push。In some embodiments of the present invention, the specific protocol configures the Netconf protocol for the extended network, the request message is a remote procedure call request message rpc in the Netconf protocol, and the response message is a remote procedure call in the Netconf protocol. Responding to the message rpc-reply, the extended Netconf protocol includes a remote procedure call push message rpc-push, the push cancellation The information is the rpc-push.
本发明的一些实施例中,所述rpc-push中包括所述rpc-push的命名空间和所述rpc-push要发布的具体信息内容。In some embodiments of the present invention, the rpc-push includes the rpc-push namespace and the specific information content to be advertised by the rpc-push.
本发明的一些实施例中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。In some embodiments of the present invention, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation. Information in the request message; the first message belongs to a request message carrying the publishing operation.
本发明的一些实施例中,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息和所述第二消息均属于携带有所述发布操作的请求消息。In some embodiments of the present invention, the operation type supported by the request message includes a publishing operation, and the publishing operation enables the second network device to save the carrying operation after receiving the request message carrying the publishing operation. Information in the request message; both the first message and the second message belong to a request message carrying the publishing operation.
本发明的一些实施例中,所述处理器1003还用于执行如下步骤:In some embodiments of the present invention, the processor 1003 is further configured to perform the following steps:
发送第三消息给所述第一网络设备,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。Sending a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
本发明的一些实施例中,所述对至少两个携带有所述发布操作的请求消息进行应答的应答消息中包括:至少两个携带有发布操作的请求消息的消息编号。In some embodiments of the present invention, the response message that responds to the at least two request messages carrying the publishing operation includes: at least two message numbers carrying request messages for the publishing operation.
本发明的一些实施例中,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,所述扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。In some embodiments of the present invention, the specific protocol configures the Netconf protocol for the extended network, the response message is an extended rpc-reply in the extended Netconf protocol, and the extended rpc-reply includes at least two The message number carrying the request message for the publish operation.
本发明的一些实施例中,所述符合所述第二网络设备的信息标识的信息包括:网络的拓扑信息,网络的路由信息,网络的性能信息,网络设备的状态信息,网络设备的统计信息中至少一种;或,配置信息,策略信息,需求信息中至少一种。In some embodiments of the present invention, the information that meets the information identifier of the second network device includes: topology information of the network, routing information of the network, performance information of the network, status information of the network device, and statistical information of the network device. At least one of; or, at least one of configuration information, policy information, and demand information.
本发明实施例中信息发送系统包括:The information sending system in the embodiment of the present invention includes:
图5,图6或图10中任一个所示的作为第一网络设备使用的网络设备,和图7,图8,图9或图10中任一个所示的作为第二网络设备使用的网络设备。a network device used as the first network device shown in any one of FIG. 5, FIG. 6, or FIG. 10, and a network used as the second network device shown in any one of FIG. 7, FIG. 8, FIG. 9, or FIG. device.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的 对应过程,在此不再赘述。It will be apparent to those skilled in the art that, for the convenience and brevity of the description, the specific working processes of the systems, devices and units described above may be referred to in the foregoing method embodiments. The corresponding process will not be described here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the 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 selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。 The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Claims (32)

  1. 一种信息发送方法,其特征在于,第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,该方法包括:A method for transmitting information, characterized in that both the first network device and the second network device support a specific protocol, and the specific protocol is a control management protocol having a hierarchical structure including at least a message layer and a content layer, The message layer is used to define a message type that implements protocol interaction, and the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact, the message layer and the content layer. Independent of each other, the method includes:
    所述第一网络设备收集网络中的信息;The first network device collects information in the network;
    所述第一网络设备与所述第二网络设备通过所述特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;The first network device and the second network device establish a session by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
    当所述第一网络设备收集的信息符合所述信息标识时,所述第一网络设备不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述信息标识的信息,所述信息请求指示获取所述符合所述信息标识的信息。When the information collected by the first network device meets the information identifier, the first network device does not need to first receive the information request from the second network device, and sends a first message to the second network device. And the first message carries the information that is collected by the first network device that meets the information identifier, and the information request indicates that the information that meets the information identifier is obtained.
  2. 根据权利要求1所述的方法,其特征在于,所述主动向所述第二网络设备发送第一消息的步骤之后还包括:The method according to claim 1, wherein the step of actively sending the first message to the second network device further comprises:
    当所述第一网络设备确定发送给所述第二网络设备的第一消息中携带的信息需要更新时,所述第一网络设备收集更新的信息;When the first network device determines that information carried in the first message sent to the second network device needs to be updated, the first network device collects updated information;
    所述第一网络设备主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息。The first network device sends a second message to the second network device, where the second message carries the updated information collected by the first network device.
  3. 根据权利要求1或2所述的方法,其特征在于,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。The method according to claim 1 or 2, wherein the message type further comprises a push message, the push message is a one-way message, and after the second network device receives the push message There is no need to reply to a reply message, the first message belonging to the push message.
  4. 根据权利要求3所述的方法,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。 The method according to claim 3, wherein the specific protocol configures the Netconf protocol for the extended network, the request message is a remote procedure call request message rpc in the Netconf protocol, and the response message is the Netconf protocol. The remote procedure call response message rpc-reply, the extended Netconf protocol includes a remote procedure call push message rpc-push, and the push message is the rpc-push.
  5. 根据权利要求1或2所述的方法,其特征在于,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。The method according to claim 1 or 2, wherein the operation type supported by the request message comprises a publishing operation, and the publishing operation enables the second network device to receive a request message carrying the publishing operation. And saving information in the request message carrying the publishing operation; the first message belongs to a request message carrying the publishing operation.
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:The method of claim 5, wherein the method further comprises:
    所述第一网络设备接收所述第二网络设备发送的第三消息,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The first network device receives a third message sent by the second network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation.
  7. 根据权利要求6所述的方法,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,该扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。The method according to claim 6, wherein the specific protocol configures the Netconf protocol for the extended network, and the response message is an extended rpc-reply in the extended Netconf protocol, and the extended rpc-reply Includes at least two message numbers carrying request messages for the publish operation.
  8. 根据权利要求5至7中任一项所述的方法,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为所述扩展的Netconf协议中扩展的rpc,所述扩展的rpc中包括所述发布操作。The method according to any one of claims 5 to 7, wherein the specific protocol configures a Netconf protocol for an extended network, and the request message is an extended rpc in the extended Netconf protocol, the extension The publishing operation is included in the rpc.
  9. 一种信息发送方法,其特征在于,第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,所述方法包括:A method for transmitting information, characterized in that both the first network device and the second network device support a specific protocol, and the specific protocol is a control management protocol having a hierarchical structure including at least a message layer and a content layer, The message layer is used to define a message type that implements protocol interaction, and the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact, the message layer and the content layer. Independent of each other, the method includes:
    在所述第二网络设备与所述第一网络设备通过所述特定协议建立会话之后,所述第二网络设备不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述第二网络设备的信息标识的信息;After the second network device and the first network device establish a session by using the specific protocol, the second network device does not need to first send an information request to the first network device, and directly receives the first network. a first message sent by the device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the second Information identifying the information of the network device;
    所述第二网络设备从所述第一消息中提取出所述符合所述第二网络设备的信息标识的信息;Extracting, by the second network device, the information that meets the information identifier of the second network device from the first message;
    所述第二网络设备保存所述符合所述第二网络设备的信息标识的信息。 The second network device saves the information that meets the information identifier of the second network device.
  10. 根据权利要求9所述的方法,其特征在于,所述直接接收所述第一网络设备发送的第一消息的步骤之后还包括:The method according to claim 9, wherein the step of directly receiving the first message sent by the first network device further comprises:
    所述第二网络设备接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;Receiving, by the second network device, the second message sent by the first network device, where the second message carries the updated information collected by the first network device;
    所述第二网络设备从所述第二消息中提取出所述更新的信息;The second network device extracts the updated information from the second message;
    所述第二网络设备利用所述更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。And the second network device uses the updated information to update the saved information that meets the information identifier of the second network device.
  11. 根据权利要求9或10所述的方法,其特征在于,所述符合所述第二网络设备的信息标识的信息包括:符合所述第二网络设备支持的信息类型的信息,或,满足所述第二网络设备的信息需求的信息。The method according to claim 9 or 10, wherein the information conforming to the information identifier of the second network device comprises: information conforming to the type of information supported by the second network device, or Information about the information requirements of the second network device.
  12. 根据权利要求9或10所述的方法,其特征在于,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。The method according to claim 9 or 10, wherein the message type further comprises a push message, the push message is a one-way message, and after the second network device receives the push message There is no need to reply to a reply message, the first message belonging to the push message.
  13. 根据权利要求12所述的方法,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。The method according to claim 12, wherein the specific protocol configures the Netconf protocol for the extended network, the request message is a remote procedure call request message rpc in the Netconf protocol, and the response message is the Netconf protocol. The remote procedure call response message rpc-reply, the extended Netconf protocol includes a remote procedure call push message rpc-push, and the push message is the rpc-push.
  14. 根据权利要求9或10所述的方法,其特征在于,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。The method according to claim 9 or 10, wherein the operation type supported by the request message comprises a publishing operation, and the publishing operation enables the second network device to receive a request message carrying the publishing operation. And saving information in the request message carrying the publishing operation; the first message belongs to a request message carrying the publishing operation.
  15. 根据权利要求14所述的方法,其特征在于,所述方法还包括:The method of claim 14, wherein the method further comprises:
    所述第二网络设备发送第三消息给所述第一网络设备,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The second network device sends a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the issuing operation.
  16. 根据权利要求15所述的方法,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,所述扩展的rpc-reply中包括至少两个携带有发布操作的 请求消息的消息编号。The method according to claim 15, wherein said specific protocol configures a Netconf protocol for an extended network, said response message being an extended rpc-reply in said extended Netconf protocol, said extended rpc-reply Including at least two carrying a release operation The message number of the request message.
  17. 一种网络设备,作为第一网络设备使用,其特征在于,所述第一网络设备与第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,所述第一网络设备包括:A network device is used as the first network device, wherein the first network device and the second network device both support a specific protocol, where the specific protocol is a control management protocol, has a hierarchical structure, and includes at least a message layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact with, The message layer and the content layer are independent of each other, and the first network device includes:
    收集模块,用于收集网络中的信息;a collection module for collecting information in the network;
    建立模块,用于与所述第二网络设备通过所述特定协议建立会话,在会话建立过程中得到第二网络设备的信息标识;Establishing a module, configured to establish a session with the second network device by using the specific protocol, and obtain an information identifier of the second network device in the session establishment process;
    第一发送模块,用于当所述收集模块收集的信息符合所述信息标识时,不需要先接收所述第二网络设备提出的信息请求,主动向所述第二网络设备发送第一消息,所述第一消息中携带了所述收集模块收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述信息标识的信息。The first sending module is configured to: when the information collected by the collecting module meets the information identifier, do not need to first receive the information request that is sent by the second network device, and send the first message to the second network device. The first message carries the information that is collected by the collecting module and meets the information identifier of the second network device, and the information request indicates that the information that meets the information identifier is obtained.
  18. 根据权利要求17所述的网络设备,其特征在于,所述收集模块还用于,当确定发送给所述第二网络设备的第一消息中携带的信息需要更新时,收集更新的信息;The network device according to claim 17, wherein the collecting module is further configured to: when it is determined that information carried in the first message sent to the second network device needs to be updated, collect updated information;
    所述第一发送模块还用于,主动向所述第二网络设备发送第二消息,所述第二消息中携带了所述收集模块收集到的更新的信息。The first sending module is further configured to: send a second message to the second network device, where the second message carries the updated information collected by the collecting module.
  19. 根据权利要求17或18所述的网络设备,其特征在于,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。The network device according to claim 17 or 18, wherein the message type further comprises a push message, the push message is a one-way message, and the second network device receives the push message There is no need to reply to the reply message, the first message belongs to the push message.
  20. 根据权利要求19所述的网络设备,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。The network device according to claim 19, wherein the specific protocol configures a Netconf protocol for the extended network, the request message is a remote procedure call request message rpc in the Netconf protocol, and the response message is the Netconf The remote procedure call response message rpc-reply in the protocol, the extended Netconf protocol includes a remote procedure call push message rpc-push, and the push message is the rpc-push.
  21. 根据权利要求17或18所述的网络设备,其特征在于,所述请求 消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。A network device according to claim 17 or 18, wherein said request The operation type supported by the message includes a publishing operation, and the publishing operation enables the second network device to save the information in the request message carrying the publishing operation after receiving the request message carrying the publishing operation; The message belongs to a request message carrying the publishing operation.
  22. 根据权利要求21所述的网络设备,其特征在于,所述第一网络设备还包括:The network device according to claim 21, wherein the first network device further comprises:
    第一接收模块,用于接收所述第二网络设备发送的第三消息,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。a first receiving module, configured to receive a third message sent by the second network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation .
  23. 根据权利要求22所述的网络设备,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,该扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。The network device according to claim 22, wherein the specific protocol configures the Netconf protocol for the extended network, and the response message is an extended rpc-reply in the extended Netconf protocol, the extended rpc-reply The message number of at least two request messages carrying the publishing operation is included.
  24. 根据权利要求21至23中任一项所述的网络设备,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为所述扩展的Netconf协议中扩展的rpc,所述扩展的rpc中包括所述发布操作。The network device according to any one of claims 21 to 23, wherein the specific protocol is an extended network configuration Netconf protocol, and the request message is an extended rpc in the extended Netconf protocol, The publishing operation is included in the extended rpc.
  25. 一种网络设备,作为第二网络设备使用,其特征在于,第一网络设备与所述第二网络设备均支持特定协议,所述特定协议为一种控制管理协议,具有分层结构,至少包含消息层和内容层,所述消息层用于定义实现协议交互的消息类型,所述消息类型中包括请求消息和应答消息,所述内容层用于定义协议需要传输和交互的数据和信息,所述消息层和所述内容层相互独立,所述第二网络设备包括:A network device is used as the second network device, wherein the first network device and the second network device both support a specific protocol, where the specific protocol is a control management protocol, and has a hierarchical structure, at least a message layer and a content layer, the message layer is used to define a message type for implementing protocol interaction, the message type includes a request message and a response message, and the content layer is used to define data and information that the protocol needs to transmit and interact with, The message layer and the content layer are independent of each other, and the second network device includes:
    第二接收模块,用于在所述第二网络设备与所述第一网络设备通过所述特定协议建立会话之后,不需要先向所述第一网络设备提出信息请求,直接接收所述第一网络设备发送的第一消息,所述第一消息中携带了所述第一网络设备收集到的符合所述第二网络设备的信息标识的信息,所述信息请求指示获取所述符合所述第二网络设备的信息标识的信息;a second receiving module, configured to: after the second network device and the first network device establish a session by using the specific protocol, do not need to first send an information request to the first network device, directly receiving the first a first message sent by the network device, where the first message carries information that is collected by the first network device and that meets the information identifier of the second network device, where the information request indicates that the Information of the information identification of the network device;
    提取模块,用于从所述第二接收模块接收到的第一消息中提取出所述符合所述第二网络设备的信息标识的信息;An extracting module, configured to extract, from the first message received by the second receiving module, the information that meets the information identifier of the second network device;
    保存模块,用于保存所述提取模块提取出的符合所述第二网络设备的信息标识的信息。 And a saving module, configured to save information that is extracted by the extraction module and meets the information identifier of the second network device.
  26. 根据权利要求25所述的网络设备,其特征在于,所述第二接收模块还用于,接收所述第一网络设备发送的第二消息,所述第二消息中携带了所述第一网络设备收集到的更新的信息;The network device according to claim 25, wherein the second receiving module is further configured to receive a second message sent by the first network device, where the second message carries the first network Updated information collected by the device;
    所述提取模块还用于,从所述第二消息中提取出所述更新的信息;The extracting module is further configured to: extract the updated information from the second message;
    所述第二网络设备还包括:The second network device further includes:
    更新模块,用于利用所述提取模块提取出的更新的信息对保存的所述符合所述第二网络设备的信息标识的信息进行更新。And an update module, configured to update, by using the updated information extracted by the extraction module, the saved information that meets the information identifier of the second network device.
  27. 根据权利要求25或26所述的网络设备,其特征在于,所述消息类型中还包括推送消息,所述推送消息为一种单向的消息,所述第二网络设备接收到所述推送消息后不需要回复应答消息,所述第一消息属于所述推送消息。The network device according to claim 25 or 26, wherein the message type further comprises a push message, the push message is a one-way message, and the second network device receives the push message There is no need to reply to the reply message, the first message belongs to the push message.
  28. 根据权利要求27所述的网络设备,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述请求消息为Netconf协议中的远程过程调用请求消息rpc,所述应答消息为所述Netconf协议中的远程过程调用应答消息rpc-reply,所述扩展的Netconf协议包括一种远程过程调用推送消息rpc-push,所述推送消息为所述rpc-push。The network device according to claim 27, wherein the specific protocol configures the Netconf protocol for the extended network, the request message is a remote procedure call request message rpc in the Netconf protocol, and the response message is the Netconf The remote procedure call response message rpc-reply in the protocol, the extended Netconf protocol includes a remote procedure call push message rpc-push, and the push message is the rpc-push.
  29. 根据权利要求25或26所述的网络设备,其特征在于,所述请求消息支持的操作类型包括发布操作,所述发布操作能使所述第二网络设备接收到携带所述发布操作的请求消息后,保存携带所述发布操作的请求消息中的信息;所述第一消息属于携带有所述发布操作的请求消息。The network device according to claim 25 or 26, wherein the operation type supported by the request message comprises a publishing operation, and the issuing operation enables the second network device to receive a request message carrying the publishing operation. Thereafter, the information in the request message carrying the publishing operation is saved; the first message belongs to a request message carrying the publishing operation.
  30. 根据权利要求29所述的网络设备,其特征在于,所述第二网络设备还包括:The network device according to claim 29, wherein the second network device further comprises:
    第二发送模块,用于发送第三消息给所述第一网络设备,所述第三消息为所述第二网络设备对至少两个携带有所述发布操作的请求消息进行应答的应答消息。The second sending module is configured to send a third message to the first network device, where the third message is a response message that the second network device responds to at least two request messages carrying the publishing operation.
  31. 根据权利要求30所述的网络设备,其特征在于,所述特定协议为扩展的网络配置Netconf协议,所述应答消息为所述扩展的Netconf协议中扩展的rpc-reply,所述扩展的rpc-reply中包括至少两个携带有发布操作的请求消息的消息编号。The network device according to claim 30, wherein the specific protocol configures the Netconf protocol for the extended network, and the response message is an extended rpc-reply in the extended Netconf protocol, the extended rpc- The reply includes at least two message numbers carrying request messages for the publish operation.
  32. 一种信息发送系统,其特征在于,包括: An information sending system, comprising:
    权利要求17至24中任一项所述的作为第一网络设备使用的网络设备,和权利要求25至31中任一项所述的作为第二网络设备使用的网络设备。 The network device used as the first network device according to any one of claims 17 to 24, and the network device used as the second network device according to any one of claims 25 to 31.
PCT/CN2015/099939 2015-02-12 2015-12-30 Information transmitting method, related network device and system WO2016127719A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510075461.XA CN105991579B (en) 2015-02-12 2015-02-12 Method for sending information, related network device and system
CN201510075461.X 2015-02-12

Publications (1)

Publication Number Publication Date
WO2016127719A1 true WO2016127719A1 (en) 2016-08-18

Family

ID=56614157

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/099939 WO2016127719A1 (en) 2015-02-12 2015-12-30 Information transmitting method, related network device and system

Country Status (2)

Country Link
CN (1) CN105991579B (en)
WO (1) WO2016127719A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971576A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Security authentication method and related device
CN112804144B (en) * 2019-11-14 2022-10-21 中国移动通信有限公司研究院 Information configuration method and network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543738A (en) * 2001-06-20 2004-11-03 ض� Web-enabled two-way remote messaging facility
CN1949770A (en) * 2005-10-14 2007-04-18 华为技术有限公司 Method for providing push message and push agent device
CN103516788A (en) * 2013-09-13 2014-01-15 杭州东方通信软件技术有限公司 Data pushing method and Flash client terminal and server thereof
US20140280338A1 (en) * 2013-03-14 2014-09-18 Cisco Technology, Inc. Distributed network analytics

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101124566A (en) * 2005-01-06 2008-02-13 特维拉有限公司 End-to-end publish/subscribe intermediate system structure
CN101110822B (en) * 2007-07-06 2011-11-02 华为技术有限公司 Event notice sending method, system and equipment based on network configuration protocol
CN101141698B (en) * 2007-10-15 2010-08-18 中兴通讯股份有限公司 Customized information pushing system and method based on mobile terminal management service
CN101453355A (en) * 2007-11-30 2009-06-10 华为技术有限公司 Polling method, system, network manager station and managed equipments
CN102368716A (en) * 2011-11-29 2012-03-07 迈普通信技术股份有限公司 Data acquisition method of network configuration protocol and network configuration server
CN104065514A (en) * 2014-07-02 2014-09-24 清华大学 Home network management method based on network configuration protocol (NETCONF) relay

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1543738A (en) * 2001-06-20 2004-11-03 ض� Web-enabled two-way remote messaging facility
CN1949770A (en) * 2005-10-14 2007-04-18 华为技术有限公司 Method for providing push message and push agent device
US20140280338A1 (en) * 2013-03-14 2014-09-18 Cisco Technology, Inc. Distributed network analytics
CN103516788A (en) * 2013-09-13 2014-01-15 杭州东方通信软件技术有限公司 Data pushing method and Flash client terminal and server thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
S. CHISHOLM ET AL.: "NETCONF Event Notifications", NETWORK WORKING GROUP RFC 5277, 31 July 2009 (2009-07-31) *

Also Published As

Publication number Publication date
CN105991579A (en) 2016-10-05
CN105991579B (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109842906B (en) Communication method, device and system
EP1542409B1 (en) Protocol for multi-hop ad-hoc networks
KR102615419B1 (en) Subscription and notification service
JP7097525B2 (en) Internet of Things Resources Subscription Methods, Devices, and Systems
EP2997747B1 (en) Systems and methods for enhanced discovery
WO2014067311A1 (en) Resource subscription method and device
EP2835938B1 (en) Message publishing and subscribing method and apparatus
WO2013170410A1 (en) Group communication method and system, group server and group member device
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
JP5847185B2 (en) Content sharing method and apparatus using group change information in content-centric network environment
US9596190B2 (en) Method, apparatus and system for addressing resources
WO2009111965A1 (en) Method, device and system of data synchronization
US10609179B2 (en) Method and system establishing a network connection
CN105635083A (en) Service processing method and service processing system based on server and client architecture
US20080208959A1 (en) Hanging request system and method for client/server communication
WO2016127719A1 (en) Information transmitting method, related network device and system
WO2021032269A1 (en) Distribution of constrained device data
KR101673755B1 (en) System for interoperation network of IoT and network of Zigbee based DDS and Method thereof
US20210092786A1 (en) Ad Hoc Service Switch-Based Control Of Ad Hoc Networking
US10931596B2 (en) Method, apparatus and system for addressing resources
KR20080058409A (en) Endpoint transparent independent messaging scheme system and method
KR20220053383A (en) Interworking support device and interworking support method for nf service
JP2006171917A (en) Protocol for radio multi-hop ad hoc network
WO2017198088A1 (en) Resource subscription method, resource subscription device, and resource subscription system
Ma et al. Research and implement on application integration based on the apache synapse ESB platform

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15881867

Country of ref document: EP

Kind code of ref document: A1