A network telemetry method, acquisition controller, OLT and network telemetry system
By using multicast method in the network telemetry solution, the acquisition controller automatically discovers other network element devices, and joins the OLT device and the target acquisition controller to the same subscription multicast group, the maintenance difficulties and low data transmission efficiency in multi-OLT devices and multi-acquisition controller scenarios are solved, and efficient data transmission and low CPU usage are achieved.
Patent Information
- Application Number
- CN202211363810.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-11-02
AI Technical Summary
The existing network telemetry solution is difficult to maintain in multi-OLT devices and multi-acquisition controller scenarios, and the data transmission efficiency is low when the subscription information is fully equipped, and the CPU usage rate is high.
The multicast method is used to allow the acquisition controller to automatically discover other network element devices, and the OLT device and the destination acquisition controller are added to the same subscription multicast group, and data is sent to the destination acquisition controller through the multicast method of the OLT device.
It reduces maintenance costs, improves data transmission efficiency, reduces equipment CPU usage, reduces redundant traffic, and meets practical application needs.
Smart Images

Figure CN115734107B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a network telemetry method, a collection controller, an OLT and a network telemetry system. Background Art
[0002] With the rapid popularization of the Internet, the scale of the network is getting larger and larger, the complexity is also increasing, and network management is becoming more and more complicated. At the same time, with the rapid development of 4G / 5G communication standards, the capacity of network transmission is constantly increasing, and the requirements for network quality are getting higher and higher, which also puts higher requirements on network monitoring.
[0003] PON (Passive Optical Network) technology is considered as the future development direction of access network because of its high bandwidth and low operation and maintenance cost. Figure 1 As shown in the figure, the PON system is usually composed of OLT (Optical Line Terminal), ODN (Optical Distribution Network) and ONU (Optical Network Unit) / ONT (Optical Network Terminal). As the core device of the PON system, OLT is used to achieve interconnection with the upper network and complete the upstream access of the PON system; on the other hand, the user-end device ONU is connected to the OLT device through the ODN network (composed of optical fiber and passive optical splitter). The OLT device controls and manages these ONU devices to provide users with large-capacity, high-speed and high-bandwidth data, voice and video services. Therefore, the status of the OLT device is closely related to the user experience, and it is necessary to perform network monitoring on the OLT device.
[0004] Traditional network monitoring methods, such as SNMP (Simple Network Management Protocol), mostly use the pull mode to poll the data to be monitored by the network management collector, which has many shortcomings: (1) It occupies a large amount of network resources and is not suitable for managing large networks; (2) Traditional network monitoring methods increase the query frequency to improve the accuracy of data acquisition, which will affect the monitoring operation itself on the network nodes, resulting in high CPU utilization of network nodes and affecting the normal function of the equipment; (3) Due to network transmission delay, the monitored network node data may be inaccurate. Network telemetry is a technology for remotely collecting data from physical devices or virtual devices at high speed. The device actively sends device data information to the collector through the push mode, providing more real-time and high-speed data collection functions.
[0005] The existing network telemetry mainly has two reporting communication methods: GRPC and UDP:
[0006] 1. When the subscription communication mode of Telemetry is set to GRPC, the protocol stack will communicate with the collector through GRPC. The OLT device should support being a GRPC client and encapsulate and report data based on grpc-dialout.proto, telemetry.proto and the collection data model. This mode is suitable for OLT devices that support the NETCONF protocol and have high requirements for real-time performance and reliability.
[0007] 2. When the subscription communication mode of Telemetry is set to UDP, the OLT device should support being a UDP client and encapsulate and report data based on telemetry.proto and the collected data model. This mode is suitable for OLT devices that support the NETCONF protocol and have insufficient master control performance.
[0008] It can be seen that when the OLT device master control performance is insufficient, UDP will be used as the preferred method. The basic principle of this solution is as follows Figure 2 As shown:
[0009] (1) The data collection controller includes a control module and a data collection module. The control module sends data collection configuration (mainly including some subscription information configuration) to the OLT device through the NETCONF protocol and based on the configuration data model an-telemetry.yang.
[0010] (2) The OLT device acts as a UDP client and configures scheduled data collection according to the subscription information sent, encapsulates the data based on telemetry.proto and the collection data model involved, and reports it to the destination collection controller specified in the subscription information configuration in turn.
[0011] However, in practical applications, based on Figure 2 In the scenario described above, the network telemetry solution using UDP reporting communication has the following main problems:
[0012] (1) When there are multiple OLT devices and multiple data acquisition controllers, this solution requires manual collection of the address information of all data acquisition controllers, and then configure the address of the data acquisition controller as the destination address of the data reported by the OLT device through the control module of the data acquisition controller; however, in some cases, the IP between the OLT device and the data acquisition controller is unreachable, and manual methods such as ping are required to determine whether the network is reachable, which is inconvenient for maintenance;
[0013] (2) The OLT device collects data according to the configured subscription information and traverses the destination collection controller IP in the subscription information in turn for reporting; a subscription information can be configured with a maximum of 5 destination groups, and each destination group can be configured with a maximum of 5 destination collection controller IPs, so a subscription information can be configured with a maximum of 5*5 destination collection controller IPs; when the subscription information is fully configured, if data is sent to the destination collection controller one by one according to the destination collection controller IP, the efficiency is too low and the CPU usage rate is also relatively high. Summary of the invention
[0014] The purpose of the present invention is to overcome the shortcomings of the above-mentioned background technology and provide a network telemetry method, a collection controller, an OLT and a network telemetry system, which can not only reduce maintenance costs, but also effectively improve telemetry efficiency, reduce equipment CPU usage, and meet actual application needs.
[0015] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides a network telemetry method. The network telemetry method includes:
[0016] The acquisition controller automatically discovers other network element devices by multicasting, and the other network element devices include other acquisition controllers and / or other OLTs;
[0017] The acquisition controller configures subscription information according to other network element devices automatically discovered; the subscription information includes the configured OLT for data acquisition, the destination acquisition controller for receiving data, and the subscription ID;
[0018] The acquisition controller sends the subscription information to the OLT that performs data acquisition; and notifies the destination acquisition controller to join the corresponding subscription multicast group according to the subscription information; wherein the subscription information is used for the OLT to join the corresponding subscription multicast group according to the subscription information, and to collect data according to the subscription information, and then send it to the destination acquisition controller in a multicast manner.
[0019] As a preferred implementation scheme, the acquisition controller automatically discovers other network element devices using multicast, specifically including:
[0020] The acquisition controller automatically joins a discovery multicast group when it comes online;
[0021] The acquisition controller sends the device information of the local device to other network element devices in the discovery multicast group at a specified interval; the device information includes the device unicast IP, device identity tag and OLT device ID, and the OLT device ID sent by the acquisition controller is 0;
[0022] Receive and save device information from other network element devices in the discovery multicast group.
[0023] As a preferred implementation, the acquisition controller notifies the destination acquisition controller to join the corresponding subscription multicast group according to the subscription information, specifically including:
[0024] The acquisition controller obtains the OLT device ID of the OLT and the subscription ID of the subscription information;
[0025] The port number of the subscribed multicast group is calculated according to the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID; wherein the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID is as follows:
[0026] The port number of the subscribed multicast group = fixed port number + subscription ID × preset fixed value + OLT device ID;
[0027] The port number of the subscription multicast group and the mark of joining the subscription multicast group are sent to the destination collection controller in a unicast manner through a message; wherein the message is used for the destination collection controller to join the corresponding subscription multicast group according to the received message.
[0028] As a preferred embodiment, the network telemetry method further includes:
[0029] When the destination collection controller in the subscription information is added / deleted, the collection controller notifies the added / deleted destination collection controller to join / exit the corresponding subscription multicast group; and sends the modified subscription information to the OLT; wherein the modified subscription information is used for the OLT to collect data and send data in a group broadcast mode according to the modified subscription information;
[0030] When deleting subscription information, the collection controller notifies all destination collection controllers in the subscription information to exit the corresponding subscription multicast group; and sends the configuration of deleting subscription information to the OLT; wherein, the configuration of deleting subscription information is used for the OLT to exit the corresponding subscription multicast group when receiving the configuration of deleting subscription information.
[0031] In a second aspect, an embodiment of the present invention further provides a network telemetry method. The network telemetry method comprises:
[0032] The OLT is automatically discovered by the collection controller using multicast;
[0033] The OLT receives the subscription information sent by the acquisition controller; the subscription information is information generated by the acquisition controller according to the configuration of other network element devices automatically discovered; wherein the other network element devices include other acquisition controllers and / or other OLTs; the subscription information includes the configured OLT for data acquisition, the destination acquisition controller for receiving data, and the subscription ID;
[0034] The OLT joins the corresponding subscription multicast group according to the subscription information; the subscription multicast group also includes a destination acquisition controller that is notified to join according to the subscription information;
[0035] The OLT collects data according to the subscription information and sends the data to the destination collection controller in a multicast manner.
[0036] As a preferred implementation scheme, the OLT is automatically discovered by the acquisition controller in a multicast manner, specifically including:
[0037] When the OLT comes online, it automatically joins a discovery multicast group;
[0038] The OLT sends the device information of the local device to other network element devices in the discovery multicast group at a specified interval; the device information includes the device unicast IP, device identity tag and OLT device ID, and the OLT device ID sent by the OLT is its real device ID.
[0039] As a preferred implementation scheme, the OLT joins the corresponding subscription multicast group according to the subscription information, specifically including:
[0040] The OLT obtains its own OLT device ID and the subscription ID of the subscription information;
[0041] The port number of the subscribed multicast group is calculated according to the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID; wherein the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID is as follows:
[0042] The port number of the subscribed multicast group = fixed port number + subscription ID × preset fixed value + OLT device ID;
[0043] The port number of the subscription multicast group is obtained according to the calculation, and the corresponding subscription multicast group is joined.
[0044] As a preferred embodiment, the network telemetry method further includes:
[0045] When the destination acquisition controller in the subscription information is added / deleted, the OLT receives the modified subscription information sent by the acquisition controller; and after collecting data, sends the data in a group broadcast mode according to the modified subscription information;
[0046] When deleting subscription information, the OLT receives the configuration of deleting subscription information sent by the acquisition controller; and after receiving the configuration, exits the corresponding subscription multicast group.
[0047] In a third aspect, an embodiment of the present invention further provides an acquisition controller based on the method in the embodiment of the first aspect. The acquisition controller is provided with a controller automatic discovery module, a controller control module and a controller acquisition module;
[0048] The controller automatic discovery module is used to: automatically discover other network element devices in a multicast manner, wherein the other network element devices include other acquisition controllers and / or other OLTs;
[0049] The controller control module is used to: configure subscription information according to other network element devices automatically discovered; the subscription information includes the configured OLT for data collection, the destination collection controller for receiving data, and the subscription ID; send the subscription information to the OLT for data collection; and notify the destination collection controller to join the corresponding subscription multicast group according to the subscription information; wherein the subscription information is used for the OLT to join the corresponding subscription multicast group according to the subscription information, collect data according to the subscription information, and then send it to the destination collection controller in a multicast manner;
[0050] The controller acquisition module is used to receive data sent by the OLT in a multicast manner when the acquisition controller is the destination acquisition controller.
[0051] In a fourth aspect, an embodiment of the present invention further provides an OLT based on the method in the embodiment of the second aspect. The OLT is provided with an OLT automatic discovery module, an OLT control module and an OLT acquisition module;
[0052] The OLT automatic discovery module is used to: be automatically discovered by the acquisition controller in a multicast manner;
[0053] The OLT control module is used to: receive subscription information sent by the acquisition controller, the subscription information is information generated by the acquisition controller according to the configuration of other network element devices automatically discovered; wherein the other network element devices include other OLTs and / or other acquisition controllers; the subscription information includes the configured OLT for data acquisition, the target acquisition controller for receiving data, and the subscription ID; and join the corresponding subscription multicast group according to the subscription information, the subscription multicast group also includes the target acquisition controller notified to join according to the subscription information;
[0054] The OLT acquisition module is used to collect data according to the subscription information and send it to the destination acquisition controller in a multicast manner.
[0055] In a fifth aspect, an embodiment of the present invention further provides a network telemetry system, which includes the acquisition controller in the embodiment of the third aspect and the OLT in the embodiment of the fourth aspect.
[0056] The beneficial effects of the present invention are:
[0057] In the present invention, the acquisition controller can automatically discover other online network element devices (including other acquisition controllers and / or other OLTs) through multicast, and can automatically collect information of all currently online network element devices on the acquisition controller, without the need for manual detection of the network connection status of each network element device, thereby effectively reducing maintenance costs.
[0058] In addition, the present invention adds the OLT device and the destination acquisition controller in the subscription information to the same subscription multicast group, and uses multicast on the OLT device to uniformly send the collected network telemetry data to the destination acquisition controller in the subscription multicast group, which effectively improves the sending efficiency, reduces the device CPU usage, reduces redundant traffic, and meets actual application needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a structural diagram of an existing PON system;
[0060] Figure 2 This is the basic principle diagram of the existing network telemetry solution using UDP reporting communication method;
[0061] Figure 3is a flow chart of a network telemetry method in an embodiment of the present invention;
[0062] Figure 4 It is a structural block diagram of the acquisition controller in an embodiment of the present invention;
[0063] Figure 5 This is a structural block diagram of an OLT in an embodiment of the present invention;
[0064] Figure 6 4 is a structural block diagram of a network telemetry system in an embodiment of the present invention. DETAILED DESCRIPTION
[0065] First, the design principle of the present invention is further explained: when implementing network telemetry, the present invention firstly chooses to adopt the UDP reporting communication method. The UDP reporting communication method can be more preferably applied to the situation where the main control performance of the OLT device is insufficient.
[0066] As for the network telemetry solution using UDP reporting communication, it is mainly necessary to solve two major problems of the existing UDP reporting communication method: First, when there are multiple OLT devices and multiple acquisition controllers, the solution requires manual collection of all acquisition controller address information, and manual use of ping and other means to determine whether the network between each network element device is reachable, which is very inconvenient to maintain; second, when the subscription information is fully matched, if the collection data is sent to the destination acquisition controller one by one according to the destination acquisition controller IP, the efficiency is too low and the CPU usage rate is also relatively high.
[0067] In order to solve the above problems, the main design scheme proposed in this application is:
[0068] First of all, in order to address the problem of inconvenient maintenance of existing UDP network telemetry solutions, the acquisition controller of the present application can automatically discover other online network element devices through multicast, including other acquisition controllers and / or other OLTs, and can automatically collect information on all currently online network element devices on the acquisition controller, including information on all acquisition controllers and OLT devices; and there is no need to manually detect the network connection status of each network element device, thereby reducing maintenance costs.
[0069] Secondly, in response to the problem of low data transmission efficiency in the existing UDP network telemetry solution, the present application is designed to add the OLT device and the destination acquisition controller in the subscription information to the same subscription multicast group, and use multicast on the OLT device to uniformly send the collected network telemetry data to the destination acquisition controller, which effectively improves the transmission efficiency, reduces the device CPU utilization rate, and reduces redundant traffic.
[0070] In order to enable those skilled in the art to better understand the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0071] However, it should be noted that the examples to be introduced below are only some specific examples, and are not intended to limit the embodiments of the present invention to the following specific steps, values, conditions, data, sequences, etc. Those skilled in the art can apply the concept of the present invention to construct more embodiments not mentioned in this specification by reading this specification.
[0072] Embodiment 1
[0073] See also Figure 3 As shown, this embodiment provides a network telemetry method. The network telemetry method includes the following steps:
[0074] S101: The acquisition controller automatically discovers other network element devices in a multicast manner, where the other network element devices include other acquisition controllers and / or other OLTs. Accordingly, the OLT is automatically discovered by the acquisition controller in a multicast manner.
[0075] For example, in the above S101, the acquisition controller automatically discovers other network element devices in a multicast manner, which may include:
[0076] (1) When the acquisition controller goes online, it automatically joins a discovery multicast group. The discovery multicast group uses a specified fixed multicast IP and the port number of the discovery multicast group is a specified fixed port number, for example, the specified fixed port number is 5000.
[0077] It is understandable that the discovery multicast group also includes other network element devices that automatically join in a multicast manner.
[0078] (2) The collection controller sends the device information of the local device to other network element devices in the discovery multicast group at a specified interval, so that other network element devices in the discovery multicast group can discover themselves. For example, the collection controller may send the device information of the local device to other network element devices in the discovery multicast group at an interval of 40 seconds.
[0079] The device information may include: device unicast IP, device identity tag and OLT device ID (dev_id). The device unicast IP is used for unicast communication. The device identity tag is used to identify whether it is an OLT or a collection controller. The OLT device ID (dev_id) is the device ID of the OLT. If it is a collection controller, dev_id is 0. If it is an OLT, dev_id is the real device ID of the OLT. In actual applications, the value of the real device ID of the OLT is allocated by global coordination to ensure that one OLT device corresponds to one dev_id, which is configured when the OLT device is initialized.
[0080] (3) The acquisition controller receives and saves the device information from other network element devices in the discovery multicast group, so that it can also discover other network element devices in the multicast group. For example, after receiving the device information from other network element devices in the discovery multicast group, the acquisition controller can check whether the device information already exists. If the device information does not exist, it will be saved in the resource pool for query; if the device information already exists, it will not be saved.
[0081] Further optionally, after the acquisition controller discovers a network element device, if it does not receive device information sent by the network element device within multiple specified periods, it considers that the network element device has gone offline and clears the corresponding device information, which can effectively reduce resource usage.
[0082] In another exemplary embodiment, in the above S101, the OLT is automatically discovered by the collection controller in a multicast manner, which may include:
[0083] (1) When the OLT goes online, it automatically joins a discovery multicast group, which uses a specified fixed multicast IP and a specified fixed port number, for example, 5000. It is understandable that the discovery multicast group also includes other network element devices that automatically join in a multicast manner.
[0084] (2) The OLT sends the device information of the local device to other network element devices in the discovery multicast group at a specified interval, so that the collection controller in the discovery multicast group can discover itself. For example, the OLT may send the device information of the local device to other network element devices in the discovery multicast group at an interval of 40 seconds. The device information may be as described in the previous example and will not be repeated here.
[0085] It is understandable that, as an object automatically discovered by the acquisition controller, the OLT itself does not need to receive device information of other network element devices, nor does it need to discover the other party.
[0086] S102: The acquisition controller configures subscription information according to other network element devices that are automatically discovered.
[0087] The subscription information may include the configured OLT for data collection, the destination collection controller for receiving data, and the subscription ID (sub_id). In practical applications, the value of the subscription ID (sub_id) may be specified when configuring the subscription information. For example, the configurable range is 1 to 10.
[0088] The subscription information is used for the OLT that performs data collection to join the corresponding subscription multicast group according to the subscription information, collect data according to the subscription information, and then send the data to the destination collection controller that receives the data in a multicast manner.
[0089] Exemplarily, the above S102 may include:
[0090] (1) The acquisition controller periodically queries whether the discovered OLT device has configured subscription information, and if so, saves it locally.
[0091] (2) When the collection controller wants to configure an OLT for data collection, it will first query whether the subscription information of the OLT is saved locally. If so, the configured subscription information can be modified according to actual user needs; if not, new subscription information is directly configured according to actual user needs.
[0092] S103, the acquisition controller sends the configured subscription information to the corresponding OLT (ie, the OLT configured in the subscription information for data acquisition), and notifies the destination acquisition controller to join the corresponding subscription multicast group according to the configured subscription information. Accordingly, the corresponding OLT receives the subscription information sent by the acquisition controller.
[0093] It can be understood that the corresponding subscription multicast group will include the OLT for data collection and the destination collection controller for receiving the data.
[0094] Exemplarily, in the above S103, the acquisition controller sends the configured subscription information to the corresponding OLT, which may include: the acquisition controller generates a corresponding yang model according to the configured subscription information, and sends the generated yang model to the corresponding OLT through the NETCONF protocol.
[0095] In another exemplary embodiment, in the above S103, the acquisition controller notifies the destination acquisition controller to join the corresponding subscription multicast group according to the configured subscription information, which may include:
[0096] (1) The acquisition controller checks whether a TCP connection has been established with the destination acquisition controller in the subscription information according to the configured subscription information. If so, it proceeds to the next step; if not, it establishes a TCP connection with it. For example, the acquisition controller can establish a TCP connection with the destination acquisition controller through a preset TCP connection port (such as TCP port 5001).
[0097] (2) The acquisition controller obtains the dev_id of the corresponding OLT from the local resource pool and obtains the subscription ID (sub_id) from the subscription information; according to the mapping relationship between the port number of the subscribed multicast group and dev_id, sub_id, the port number of the subscribed multicast group is calculated. The mapping relationship between the port number of the subscribed multicast group and dev_id, sub_id can be as follows:
[0098] Multicast group port number = fixed port number + sub_id × preset fixed value + dev_id
[0099] In the above mapping relationship, the fixed port number is a specified port number, which can be the same as or different from the fixed port number used to discover the multicast group. In addition, as mentioned above, the value of sub_id is specified when configuring the subscription information, for example, the specified configuration range is 1 to 10; the value of dev_id is allocated by global coordination, for example, the allocation range is 1 to 535, to ensure that one OLT device corresponds to one dev_id, and the configuration is performed when the OLT device is initialized. In addition, in the design of the above mapping relationship, the value of the OLT device ID (sub_id) is multiplied by a preset fixed value (for example, the preset fixed value is 6000), in order to ensure that the port number of the subscribed multicast group will not be equal under different subscription IDs and OLT device IDs, so as to avoid conflicts in the port number of the subscribed multicast group. It can be further understood that the port number of the subscribed multicast group is calculated according to the mapping relationship between the port number of the subscribed multicast group and dev_id and sub_id, which is not only simple and efficient, but also highly reliable, and has ideal practical application effects.
[0100] (3) The collection controller sends the port number of the subscribed multicast group and the tag of joining the subscribed multicast group to the destination collection controller in a unicast manner through a message, wherein the message is used for the destination collection controller to join the corresponding subscribed multicast group according to the received message.
[0101] Furthermore, in actual applications, in order to be able to promptly receive the message of joining the corresponding subscription multicast group notified by other acquisition controllers, the acquisition controller can monitor the receiving port of the message in real time. Specifically, in an optional implementation, the network telemetry method provided in the embodiment of the present application may also include: the acquisition controller monitors a preset TCP connection port (such as TCP5001 port) in real time, and the preset TCP connection port is used to receive the message of joining the corresponding subscription multicast group notified by other acquisition controllers.
[0102] It is understandable that in order to better ensure that the acquisition controller can timely receive the message of joining the corresponding subscription multicast group notified by other acquisition controllers, the above-mentioned monitoring operation is preferably performed simultaneously with the above-mentioned S101. For example, in S101, while the acquisition controller automatically discovers other network element devices by multicast, it can start real-time monitoring of the preset TCP connection port (such as TCP5001 port).
[0103] S104. The OLT joins the corresponding subscription multicast group according to the subscription information.
[0104] Exemplarily, the above S104 may include:
[0105] (1) The OLT obtains its own dev_id and obtains the subscription ID (sub_id) from the subscription information; the port number of the subscribed multicast group is calculated according to the mapping relationship between the port number of the subscribed multicast group and dev_id and sub_id. The mapping relationship between the port number of the subscribed multicast group and dev_id and sub_id can be as described above and will not be repeated here.
[0106] (2) The OLT obtains the port number of the subscribed multicast group based on the calculation and joins the corresponding subscribed multicast group.
[0107] S105, the OLT collects data according to the subscription information and sends it to the destination collection controller in the subscription multicast group in a multicast manner. Correspondingly, the destination collection controller in the subscription multicast group receives the data from the OLT and displays it synchronously.
[0108] Exemplarily, in the above S105, OLT collects data according to subscription information and sends it to the destination collection controller in the subscription multicast group in a multicast manner, which may include: OLT collects data according to subscription information, encapsulates the data according to the data model, and sends it to the destination collection controller in the subscription multicast group in a UDP multicast manner.
[0109] Furthermore, in actual applications, there may be changes in subscription information (such as the addition / deletion of a destination acquisition controller) and deletion of subscription information.
[0110] In view of the above situation, in an optional implementation, the network telemetry method provided by the embodiment of the present application may also include: when the destination collection controller in the subscription information is added / deleted, the collection controller will notify the added / deleted destination collection controller to join / exit the corresponding subscription multicast group; and the collection controller will also send the changed subscription information to the OLT; after the OLT collects the data, it will send the data in a group broadcast mode according to the changed subscription information. It can be understood that the addition / deletion of the destination collection controller in the subscription information will not affect the port number of the original subscription multicast group, so when the destination collection controller in the subscription information is added / deleted, it is only necessary to notify the corresponding destination collection controller to join / exit the subscription multicast group, and the OLT does not need to rejoin the subscription multicast group, and it only needs to send the data in a group broadcast mode according to the changed subscription information.
[0111] For example, when a destination collection controller is added in the subscription information, the collection controller may notify the added destination collection controller to join the corresponding subscription multicast group according to the specific method in the above step S103, in which the collection controller notifies the destination collection controller to join the corresponding subscription multicast group according to the configured subscription information. When a destination collection controller in the subscription information is deleted, the collection controller may send the calculated port number of the subscription multicast group and the exit mark of the subscription multicast group to the deleted destination collection controller in a unicast manner through a message; after receiving the message, the deleted destination collection controller exits the corresponding subscription multicast group and may respond with a reply message. Further optionally, after receiving the reply message from the deleted destination collection controller, the collection controller may check whether the deleted destination collection controller still exists in the subscription information of all OLT devices. If not, the TCP connection with the deleted destination collection controller is closed, which can effectively reduce redundant traffic.
[0112] In view of the above situation, in another optional implementation, the network telemetry method provided in the embodiment of the present application may also include: when deleting the subscription information, the acquisition controller will notify all the destination acquisition controllers in the subscription information to exit the corresponding subscription multicast group; and the acquisition controller will also send the configuration of deleting the subscription information to the OLT; after the OLT receives the configuration of deleting the subscription information, it exits the corresponding subscription multicast group. For example, after the OLT receives the configuration of deleting the subscription information, it can obtain its own dev_id and obtain the subscription ID (sub_id) from the subscription information to be deleted; then, according to the mapping relationship between the port number of the subscription multicast group and dev_id and sub_id, the port number of the subscription multicast group can be calculated; finally, according to the calculated port number of the subscription multicast group, the corresponding subscription multicast group can be exited.
[0113] From the specific description of S101 to S105 above, it can be seen that in the embodiment of the present application, the acquisition controller can automatically discover other online network element devices (including other acquisition controllers and / or other OLTs) through multicast, and can automatically collect information of all currently online network element devices on the acquisition controller, and there is no need to manually detect the network connection status of each network element device, thereby reducing maintenance costs. In addition, the embodiment of the present application adds the OLT device and the destination acquisition controller in the subscription information to the same subscription multicast group, and uses multicast on the OLT device to uniformly send the collected network telemetry data to the destination acquisition controller in the subscription multicast group, which effectively improves the transmission efficiency, reduces the device CPU usage, reduces redundant traffic, and meets the actual application needs.
[0114] Embodiment 2
[0115] Based on the same inventive concept, see Figure 4As shown, the embodiment of the present invention further provides a collection controller based on the network telemetry method of the first embodiment above, and the collection controller is provided with a controller automatic discovery module, a controller control module and a controller collection module.
[0116] The controller automatic discovery module is used to automatically discover other network element devices in a multicast manner, where the other network element devices include other acquisition controllers and / or other OLTs.
[0117] The controller control module is used to: configure subscription information according to other network element devices automatically discovered, the subscription information includes the configured OLT for data collection, the destination collection controller for receiving data, and the subscription ID; send the subscription information to the OLT for data collection; and notify the destination collection controller to join the corresponding subscription multicast group according to the subscription information; wherein the sent subscription information is used for the OLT to join the corresponding subscription multicast group according to the subscription information, collect data according to the subscription information, and then send it to the destination collection controller in a multicast manner.
[0118] The controller acquisition module is used to receive data sent by the OLT in a multicast manner when the acquisition controller is the destination acquisition controller.
[0119] It should also be noted that the various variations and specific examples in the aforementioned network telemetry method embodiment are also applicable to the acquisition controller of this embodiment. Through the detailed description of the aforementioned method, technical personnel in this field can clearly know the implementation method of the acquisition controller in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here.
[0120] Embodiment 3
[0121] Based on the same inventive concept, see Figure 5 As shown, the embodiment of the present invention further provides an OLT based on the network telemetry method of the first embodiment, and the OLT is provided with an OLT automatic discovery module, an OLT control module and an OLT acquisition module.
[0122] The OLT automatic discovery module is used to be automatically discovered by the data collection controller in a multicast manner.
[0123] The OLT control module is used to: receive subscription information sent by the acquisition controller, the subscription information is information generated by the acquisition controller according to the configuration of other network element devices automatically discovered; wherein the other network element devices include other OLTs and / or other acquisition controllers; the subscription information includes the configured OLT for data acquisition, the destination acquisition controller for receiving data, and the subscription ID; and join the corresponding subscription multicast group according to the subscription information, the subscription multicast group also includes the destination acquisition controller notified to join according to the subscription information.
[0124] The OLT acquisition module is used to collect data according to the subscription information and send it to the destination acquisition controller in a multicast manner.
[0125] It should also be noted that the various variations and specific examples in the aforementioned network telemetry method embodiment are also applicable to the OLT of this embodiment. Through the detailed description of the aforementioned method, those skilled in the art can clearly know the implementation method of the OLT in this embodiment, so for the sake of brevity of the specification, it will not be described in detail here.
[0126] Embodiment 4
[0127] Based on the same inventive concept, see Figure 6 As shown, an embodiment of the present invention further provides a network telemetry system, which includes the acquisition controller of the above-mentioned embodiment 2 and the OLT of the above-mentioned embodiment 3.
[0128] Note: The above-mentioned specific embodiments are only examples rather than limitations, and those skilled in the art can, based on the concept of the present invention, merge and combine some steps and devices from the various embodiments described separately above to achieve the effects of the present invention. Such merged and combined embodiments are also included in the present invention, and such merges and combinations are not described one by one here.
[0129] The advantages, strengths, effects, etc. mentioned in the embodiments of the present invention are only examples, not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the above specific details disclosed in the embodiments of the present invention are only for the purpose of illustration and facilitating understanding, not limitation, and the above details do not limit the embodiments of the present invention to be implemented by adopting the above specific details.
[0130] The block diagrams of the devices, apparatuses, equipment, and systems involved in the embodiments of the present invention are only illustrative examples, and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems may be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, meaning "including but not limited to," and may be used interchangeably therewith. The words "or" and "and" used in the embodiments of the present invention refer to the words "and / or," and may be used interchangeably therewith, unless the context clearly indicates otherwise. The words "such as" used in the embodiments of the present invention refer to the phrase "such as but not limited to," and may be used interchangeably therewith.
[0131] The step flow charts and the above method descriptions in the embodiments of the present invention are only illustrative examples, and are not intended to require or imply that the steps of each embodiment must be performed in the order given. As will be appreciated by those skilled in the art, the order of the steps in the above embodiments can be performed in any order. Words such as "thereafter", "then", "next", etc. are not intended to limit the order of the steps; these words are only used to guide the reader through the description of these methods. In addition, any reference to a singular element, such as using the article "a", "an", or "the", is not to be construed as limiting the element to the singular.
[0132] In addition, the steps and devices in each embodiment of the present invention are not limited to be implemented in a certain embodiment. In fact, according to the concept of the present invention, relevant partial steps and partial devices in each embodiment of this document can be combined to conceive new embodiments, and these new embodiments are also included in the scope of the present invention.
[0133] Each operation in the embodiment of the present invention may be performed by any appropriate means capable of performing the corresponding functions, which may include various hardware and / or software components and / or modules, including but not limited to hardware circuits or processors.
[0134] The method of the embodiment of the present invention includes one or more actions for implementing the above-mentioned method. The method and / or action can be interchangeable with each other without departing from the scope of the claims. In other words, unless a specific order of actions is specified, the order and / or use of specific actions can be modified without departing from the scope of the claims.
[0135] The functions in the embodiments of the present invention can be implemented by hardware, software, firmware or any combination thereof. If implemented in software, the functions can be stored as one or more instructions on a tangible computer-readable medium. The storage medium can be any available tangible medium that can be accessed by a computer. By way of example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices or any other tangible medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer. As used herein, a disk and a disc include a compact disc (CD), a laser disc, an optical disc, a DVD (Digital Versatile Disc), a floppy disc and a blue disc, wherein the disc reproduces data magnetically, and the disc reproduces data optically using a laser.
[0136] Thus, a computer program product may perform the operations presented herein. For example, such a computer program product may be a computer-readable tangible medium having instructions tangibly stored (and / or encoded) thereon, which instructions may be executed by one or more processors to perform the operations described herein. The computer program product may include packaging materials.
[0137] Other examples and implementations are within the scope and spirit of the embodiments of the invention and the appended claims. For example, due to the nature of software, the functions described above can be implemented using software executed by a processor, hardware, firmware, hard wiring, or any combination of these. Features that implement the functions can also be physically located in various locations, including being distributed so that parts of the functions are implemented at different physical locations.
[0138] Various changes, substitutions and modifications of the techniques described herein may be made by those skilled in the art without departing from the teachings defined by the appended claims. In addition, the scope of the claims of the present disclosure is not limited to the specific aspects of the processes, machines, manufactures, components of events, means, methods and actions described above. Currently existing or later to be developed processes, machines, manufactures, components of events, means, methods or actions that perform substantially the same functions or achieve substantially the same results as the corresponding aspects described herein may be utilized. Thus, the appended claims include such processes, machines, manufactures, components of events, means, methods or actions within their scope.
[0139] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0140] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof. And the content not described in detail in this specification belongs to the prior art known to those skilled in the art.
Claims
1. A network telemetry method, characterized in that: This network telemetry method includes: The acquisition controller automatically discovers other network element devices by multicasting, and the other network element devices include other acquisition controllers and / or other OLTs; The acquisition controller configures subscription information according to other network element devices automatically discovered; the subscription information includes the configured OLT for data acquisition, the destination acquisition controller for receiving data, and the subscription ID; The acquisition controller sends the subscription information to the OLT that performs data acquisition; and notifies the destination acquisition controller to join the corresponding subscription multicast group according to the subscription information; wherein the subscription information is used for the OLT to join the corresponding subscription multicast group according to the subscription information, and to collect data according to the subscription information, and then send it to the destination acquisition controller in a multicast manner.
2. The network telemetry method according to claim 1, characterized in that: The acquisition controller uses multicast to automatically discover other network element devices, including: The acquisition controller automatically joins a discovery multicast group when it comes online; The acquisition controller sends the device information of the local device to other network element devices in the discovery multicast group at a specified interval; the device information includes the device unicast IP, device identity tag and OLT device ID, and the OLT device ID sent by the acquisition controller is 0; Receive and save device information from other network element devices in the discovery multicast group.
3. The network telemetry method according to claim 2, characterized in that: The acquisition controller notifies the destination acquisition controller to join the corresponding subscription multicast group according to the subscription information, specifically including: The acquisition controller obtains the OLT device ID of the OLT and the subscription ID of the subscription information; The port number of the subscribed multicast group is calculated according to the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID; wherein the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID is as follows: The port number of the subscribed multicast group = fixed port number + subscription ID × preset fixed value + OLT device ID; The port number of the subscription multicast group and the mark of joining the subscription multicast group are sent to the destination collection controller in a unicast manner through a message; wherein the message is used for the destination collection controller to join the corresponding subscription multicast group according to the received message.
4. The network telemetry method according to claim 1, characterized in that: The network telemetry method also includes: When the destination collection controller in the subscription information is added / deleted, the collection controller notifies the added / deleted destination collection controller to join / exit the corresponding subscription multicast group; and sends the modified subscription information to the OLT; wherein the modified subscription information is used for the OLT to collect data and send data in a group broadcast mode according to the modified subscription information; When deleting subscription information, the collection controller notifies all destination collection controllers in the subscription information to exit the corresponding subscription multicast group; and sends the configuration of deleting subscription information to the OLT; wherein, the configuration of deleting subscription information is used for the OLT to exit the corresponding subscription multicast group when receiving the configuration of deleting subscription information.
5. A network telemetry method, characterized in that: This network telemetry method includes: The OLT is automatically discovered by the collection controller using multicast; The OLT receives the subscription information sent by the acquisition controller; the subscription information is information generated by the acquisition controller according to the configuration of other network element devices automatically discovered; wherein the other network element devices include other acquisition controllers and / or other OLTs; the subscription information includes the configured OLT for data acquisition, the destination acquisition controller for receiving data, and the subscription ID; The OLT joins the corresponding subscription multicast group according to the subscription information; the subscription multicast group also includes a destination acquisition controller that is notified to join according to the subscription information; The OLT collects data according to the subscription information and sends the data to the destination collection controller in a multicast manner.
6. The network telemetry method according to claim 5, characterized in that: The OLT is automatically discovered by the data collection controller in a multicast manner, including: When the OLT comes online, it automatically joins a discovery multicast group; The OLT sends the device information of the local device to other network element devices in the discovery multicast group at a specified interval; the device information includes the device unicast IP, device identity tag and OLT device ID, and the OLT device ID sent by the OLT is its real device ID.
7. The network telemetry method according to claim 6, characterized in that: The OLT joins the corresponding subscription multicast group according to the subscription information, specifically including: The OLT obtains its own OLT device ID and the subscription ID of the subscription information; The port number of the subscribed multicast group is calculated according to the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID; wherein the mapping relationship between the port number of the subscribed multicast group, the OLT device ID, and the subscription ID is as follows: The port number of the subscribed multicast group = fixed port number + subscription ID × preset fixed value + OLT device ID; The port number of the subscription multicast group is obtained according to the calculation, and the corresponding subscription multicast group is joined.
8. The network telemetry method according to claim 5, characterized in that: The network telemetry method also includes: When the destination acquisition controller in the subscription information is added / deleted, the OLT receives the modified subscription information sent by the acquisition controller; and after collecting data, sends the data in a group broadcast mode according to the modified subscription information; When deleting subscription information, the OLT receives the configuration of deleting subscription information sent by the acquisition controller; and after receiving the configuration, exits the corresponding subscription multicast group.
9. A collection controller based on the method according to any one of claims 1 to 4, characterized in that: The acquisition controller is provided with a controller automatic discovery module, a controller control module and a controller acquisition module; The controller automatic discovery module is used to: automatically discover other network element devices in a multicast manner, wherein the other network element devices include other acquisition controllers and / or other OLTs; The controller control module is used to: configure subscription information according to other network element devices that are automatically discovered; The subscription information includes the configured OLT for data collection, the destination collection controller for receiving data, and the subscription ID; the subscription information is sent to the OLT for data collection; And notify the destination collection controller to join the corresponding subscription multicast group according to the subscription information; wherein the subscription information is used by the OLT to join the corresponding subscription multicast group according to the subscription information, and collect data according to the subscription information, and then send it to the destination collection controller in a multicast manner; The controller acquisition module is used to receive data sent by the OLT in a multicast manner when the acquisition controller is the destination acquisition controller.
10. An OLT based on the method according to any one of claims 5 to 8, characterized in that: The OLT is provided with an OLT automatic discovery module, an OLT control module and an OLT acquisition module; The OLT automatic discovery module is used to: be automatically discovered by the acquisition controller in a multicast manner; The OLT control module is used to: receive subscription information sent by the acquisition controller, the subscription information is information generated by the acquisition controller according to the configuration of other network element devices automatically discovered; wherein the other network element devices include other OLTs and / or other acquisition controllers; the subscription information includes the configured OLT for data acquisition, the target acquisition controller for receiving data, and the subscription ID; and join the corresponding subscription multicast group according to the subscription information, the subscription multicast group also includes the target acquisition controller notified to join according to the subscription information; The OLT acquisition module is used to collect data according to the subscription information and send it to the destination acquisition controller in a multicast manner.
11. A network telemetry system, characterized in that: The network telemetry system comprises the acquisition controller as claimed in claim 9 and the OLT as claimed in claim 10.
Citation Information
Patent Citations
Method and device for controlling message subscription
CN109412850A
Scalable acquisition of telemetry data from instrumented systems enitities over a wireless network
KR1020090090992A