Information reporting method, network device, information reporting system and storage medium
By determining the timer in the network device and dividing time fragmentation, the problem of time difference in reporting monitoring points information in Telemetry technology is solved, and efficient and fair reporting of monitoring point information is achieved.
Patent Information
- Application Number
- CN202311270399.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-04-04
AI Technical Summary
In Telemetry technology, the monitoring point information in different subscription groups has different reporting timeliness due to differences in reporting period and quantity, which affects the accuracy and real-timeness of network monitoring.
By obtaining the reporting link structure of the subscription group of the network device, determining the timer and dividing time slices, and classifying and allocating according to the reporting cycle of the monitoring point information, ensuring that each subscription group has obtained the reporting time fairly.
It effectively reduces the reporting timeliness of monitoring point information in each subscription group, and improves the efficiency and fairness of reporting monitoring point information of network equipment.
Smart Images

Figure CN119766914A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an information reporting method, network equipment, an information reporting system and a storage medium. Background Art
[0002] Currently, Telemetry technology is a new generation of network monitoring technology that collects data remotely from network devices. Network devices periodically push monitoring point information to network controllers to achieve high-speed, accurate, and real-time network monitoring functions. In large-volume reporting scenarios, the monitoring point information of a large number of network devices is composed of multiple subscription groups. Each subscription group subscribes to a different number of monitoring point information of network devices, and the reporting period of the subscribed monitoring point information is also different, resulting in differences in the reporting timeliness of monitoring point information in different subscription groups. Summary of the invention
[0003] The main purpose of the present application is to provide an information reporting method, a network device, an information reporting system and a storage medium, which can reduce the problem of differences in the reporting timeliness of monitoring point information in different subscription groups.
[0004] In a first aspect, an embodiment of the present application provides an information reporting method, which is applied to a network device, and the method includes:
[0005] Acquire a reporting chain structure of a subscription group of the network device, the reporting chain structure comprising: a reporting chain composed of all subscription groups of the network device in a first order, and a reporting chain composed of monitoring point information of the network device in each subscription group in a second order;
[0006] According to the reporting period of all monitoring point information in the network device, at least one timer is determined, and a plurality of time slices are divided in each timer, wherein the number of time slices in each timer is not less than the number of all subscription groups;
[0007] For any target timer in at least one timer, starting from the first time slice of the target timer, in each time slice, the target monitoring point information in each subscription group is reported in sequence according to the first order, wherein the target monitoring point information is the monitoring point information that has not been reported within the period corresponding to the target timer. The target monitoring point information in the same subscription group is reported in the second order, and only the monitoring point information of the same subscription group is reported in each time slice.
[0008] In a second aspect, an embodiment of the present application also provides a network device, which includes a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of any information reporting method provided in the embodiment of the present application are implemented.
[0009] On the third aspect, an embodiment of the present application also provides an information reporting system, comprising multiple network devices and at least one network controller, the network devices are used to collect monitoring point information and to report the monitoring point information to the network controller, and the network devices are also used to implement the steps of any information reporting method provided in the embodiment of the present application.
[0010] In a fourth aspect, an embodiment of the present application further provides a storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any information reporting method provided in the embodiment of the present application.
[0011] Through the information reporting method provided in the embodiment of the present application, the monitoring point information is classified according to the reporting period of the monitoring point information, and an independent timer is configured for the monitoring point information with a similar period. The time divided in the timer is allocated to the subscription group formed by the monitoring point information under the timer, so that the monitoring point information between different subscription groups can fairly obtain the time for information reporting, effectively reducing the difference in reporting timeliness of the monitoring point information in each subscription group, thereby efficiently and fairly completing the monitoring point information reporting of the network device. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 is a schematic block diagram of an information reporting system provided in an embodiment of the present application;
[0013] Figure 2 It is a flowchart of an information reporting method provided in an embodiment of the present application;
[0014] Figure 3 This is a schematic diagram of the relationship between time slices and monitoring point information provided in an embodiment of the present application;
[0015] Figure 4 This is a schematic diagram of the relationship between a subscription group and a time slice provided in an embodiment of the present application;
[0016] Figure 5 This is a schematic diagram of time slice allocation provided in an embodiment of the present application;
[0017] Figure 6 It is a flowchart of an information reporting method provided in an embodiment of the present application;
[0018] Figure 7 It is a structural block diagram of a network device provided in an embodiment of the present application;
[0019] Figure 8 It is a schematic block diagram of an information reporting device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to enable those skilled in the art to better understand the technical solution of the present application, the information reporting method provided by the present application is described in detail below in conjunction with the accompanying drawings.
[0021] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make this application thorough and complete and to enable those skilled in the art to fully understand the scope of this application.
[0022] In the absence of conflict, the embodiments of the present application and the features therein may be combined with each other.
[0023] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0024] The terms used herein are only used to describe specific embodiments and are not intended to limit the present application. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded.
[0025] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined herein.
[0026] In the traditional Telemetry-based information reporting method, the monitoring point information in different network devices forms multiple subscription groups. It is necessary to complete the reporting of all the monitoring point information in one subscription group before the monitoring point information in the next subscription group can be reported. For example, subscription group X subscribes to 1,000 monitoring point information, and subscription group Y subscribes to 1 monitoring point information. If the traditional sequential reporting scheme is used, 1,001 monitoring point information is sorted into a reporting chain, and 1,001 monitoring point information is reported according to the reporting chain. The time required for the 1,001 monitoring point information to complete the reporting is a cycle. In one cycle, it is necessary to complete the reporting of 1,000 monitoring point information subscribed by subscription group X before continuing to report the information of 1 network device subscribed by subscription group Y, resulting in differences in reporting timeliness between monitoring point information in different subscription groups. And because all subscription groups share the reporting timer, any configuration change of any subscription group (such as adding or deleting subscription point information in a subscription group) will affect the reporting rhythm of other subscription groups. For time-sensitive monitoring point information, such as the utilization of network interfaces, if the reporting rhythm of such monitoring point information fluctuates, it will affect the accuracy of the calculation results.
[0027] In order to solve the above problems, the embodiments of the present application provide an information reporting method, a network device, a system and a storage medium, which are used to reduce the difference in reporting timeliness of monitoring point information in different subscription groups.
[0028] See also Figure 1 , Figure 1 A schematic block diagram of an information reporting system provided by an embodiment of the present application is shown. Figure 1As shown, the information reporting system 100 includes: a network device 101, a data collector 102 and at least one network controller 103. The network device 101 is used to collect monitoring point information, the data collector 102 is used to receive the monitoring point information reported by the network device 101, and is used to report the monitoring point information to the network controller 103. All monitoring point information received by a data collector 102 corresponds to a subscription group. The subscription group is the basic unit for the interaction between the network device 101 and the data collector 102. Different subscription groups are independent of each other. A subscription group may include monitoring point information of multiple network devices 101. The network device 101 first communicates with the data collector 102 and reports the monitoring point information to the network controller 103 through the data collector 102. The network controller 103 sends configuration information to the network device 101. The network device 101 periodically reports the monitoring point information to the network controller 103 according to the configuration information. The network controller 103 manages and monitors the network devices 101 in the domain according to the received monitoring point information. The configuration information includes: a reporting chain structure of monitoring point information of the network device 101. The reporting chain structure includes: a reporting chain composed of all subscription groups of the network device 101 in a first order, and a reporting chain composed of monitoring point information of the network device 101 in each subscription group in a second order. The network device 101 is also used to implement the steps of the information reporting method as described in any one of the embodiments of the present application.
[0029] See also Figure 2 , Figure 2 The following is a flow chart showing a method for reporting information provided by an embodiment of the present application. Figure 2 As shown, the specific steps of the information reporting method provided in the embodiment of the present application include: S101-S103.
[0030] S101. Acquire a reporting chain structure of a subscription group of a network device, the reporting chain structure comprising: a reporting chain composed of all subscription groups of the network device in a first order, and a reporting chain composed of monitoring point information of the network device in each subscription group in a second order.
[0031] For example, Figure 1As shown, in the information reporting system 100, each network device 101 can report monitoring point information to multiple data collectors 102, and each data collector 102 receives the monitoring point information in a subscription group and then reports it to the network controller 103. The subscription group is the basic unit for the network device 101 and the data collector 102 to interact. Different subscription groups are independent of each other, and one subscription group may include the monitoring point information of multiple network devices 101. After the network device 101, the data collector 102 and the network controller 103 establish a communication connection, the network controller 103 configures the first order for the data collector 102 to report information, and configures the data collector 102 corresponding to the monitoring point information in the network device 101, and also configures the second order for the monitoring point information to be reported to the data collector 102. After the configuration is completed, the configuration information is generated, and the configuration information includes a reporting chain structure, and the reporting chain structure includes: a reporting chain composed of all subscription groups of the network device 101 according to the first order, and a reporting chain composed of the monitoring point information of the network device 101 in each subscription group according to the second order. The data collector 102 subscribes to the corresponding monitoring point information in the network device 101 according to the configuration information.
[0032] In the information reporting system, each monitoring point information is configured with a corresponding reporting period. When dividing the subscription groups, the network controller divides the monitoring point information into different subscription groups according to the reporting period of the monitoring point information and the period range of the subscription group, wherein the monitoring point information with similar reporting periods is divided into the same subscription group. For example, the period range corresponding to subscription group 1 is: 0s-5s, and the period range corresponding to subscription group 2 is: 5s-10s. The reporting period of monitoring point information 1 is 2s, and the reporting period of monitoring point information 2 is 7s. Then, monitoring point information 1 is divided into subscription group 1, and monitoring point information 2 is divided into subscription group 2.
[0033] When the network controller generates configuration information including a reporting chain structure, the network controller negotiates with the network device according to the collection setting information set by the user, thereby obtaining the first order of the reporting chain according to the user's subscription group and the second order of the reporting chain of the monitoring point information within the subscription group.
[0034] S102. Determine at least one timer according to the reporting period of all monitoring point information in the network device, and divide each timer into multiple time slices, wherein the number of time slices in each timer is not less than the number of all subscription groups.
[0035] Exemplarily, the network device determines the attribution relationship between the monitoring point information and the subscription group based on the reporting period of the monitoring point information and the period range of the subscription group. Since the period ranges of the subscription groups may be very different, for example, the period range of subscription group 1 is: 0s-5s, the period range of subscription group 2 is: 5s-10s, and the period range of subscription group 3 is: 20s-25s, that is, the difference in the reporting period of the monitoring point information within the subscription group may also be very large. In this case, reporting the monitoring point information in sequence will cause the monitoring point information to have a problem of poor timeliness. Therefore, before reporting the monitoring point information, if the network device detects that the reporting period of all monitoring point information is similar, it is sufficient to determine a timer; if it is detected that the reporting period of all monitoring point information is very different and belongs to very different period intervals, it is necessary to determine multiple timers, and use multiple timers to solve the difference between the reporting periods, so as to avoid the problem of poor timeliness of the monitoring point information during the reporting process.
[0036] After the network device determines the timer, it divides each timer into multiple time slices, and allocates these time slices to the monitoring point information in the subscription group according to the reporting chain structure, and reports the monitoring point information in the subscription group in the corresponding time slice. Therefore, if each subscription group needs to complete a round of reporting, the number of time slices required is not less than the number of subscription groups. The monitoring point information in some subscription groups cannot be fully reported in one time slice, and multiple time slices need to be allocated to these subscription groups. At this time, the number of time slices is greater than the number of subscription groups.
[0037] In the above steps, by allocating independent timer resources and reporting the monitoring point information in the subscription group in different time periods through time slicing, the problem of poor reporting timeliness caused by the traditional reporting method is effectively alleviated.
[0038] S103. For any target timer in at least one timer, starting from the first time slice of the target timer, in each time slice, the target monitoring point information in each subscription group is reported in sequence according to the first order, wherein the target monitoring point information is the monitoring point information that has not been reported within the period corresponding to the target timer. The target monitoring point information in the same subscription group is reported in the second order, and only the monitoring point information of the same subscription group is reported in each time slice.
[0039] Exemplarily, when a time slice of any timer is allocated to the monitoring point information of a network device, the timer is the target timer of the network device. The target timer corresponds to a cycle period, and within a cycle period, the monitoring point information attached to the target timer completes a round of all reports. When the target timer is divided into multiple time slices, it is necessary to determine the first time slice therein, and use the first time slice as an identifier for starting a cycle period. In a cycle period, the time slices are allocated to the monitoring point information in the subscription group according to the first order. The network device reports the target monitoring point information in each subscription group in sequence according to the first order according to the time slices allocated to the subscription group. The target monitoring point information is the monitoring point information that has not been reported in the cycle corresponding to the target timer. After being allocated to the time slice, the monitoring point information in the subscription group is reported in sequence according to the second order. The second order is the order of the monitoring point information in the subscription group in the subscription group. In each time slice, only the monitoring point information of the same subscription group is reported.
[0040] The situations where unreported monitoring point information occurs include: 1. At the end of the time slice allocated to any subscription group, there is still unreported monitoring point information in the subscription group; 2. In a cycle, the monitoring point information in the subscription group is not reported in turn.
[0041] Through the information reporting method provided in the embodiment of the present application, the monitoring point information is classified according to the reporting period of the monitoring point information, and an independent timer is configured for the monitoring point information with a similar period. The time slices divided in the timer are allocated to the subscription groups formed by the monitoring point information under the timer, so that the monitoring point information between different subscription groups can fairly obtain the time for information reporting, effectively reducing the difference in reporting timeliness of the monitoring point information in each subscription group, thereby efficiently and fairly completing the monitoring point information reporting of the network device.
[0042] In order to more clearly introduce the technical solution of the present application, the technical solution of the present application will be introduced through specific embodiments below. It should be noted that the specific embodiments are used to expand the technical solution of the present application, but are not intended to limit the present application.
[0043] In some embodiments, the method steps executed by the network device also include: at the end of any target time slice among multiple time slices of the target timer, stop reporting the target monitoring point information of the subscription group that reports the monitoring point information within the target time slice, and record the processing position of the target monitoring point information in the subscription group corresponding to the target time slice.
[0044] It should be noted that the target time slice is the time slice corresponding to the current time.
[0045] For example, see Figure 3 , Figure 3 The following is a schematic diagram showing the relationship between time slices and monitoring point information provided by an embodiment of the present application. Figure 3 As shown, when monitoring point information 1 to monitoring point information n in a subscription group cannot be fully reported at the end of a target time slice, at the end of each target time slice, the network device stops reporting the target monitoring point information in the subscription group corresponding to the target time slice. Figure 3 In the example, monitoring point information 3 to monitoring point information n stop reporting after the time slice ends, and the processing position of the first unreported monitoring point information (monitoring point information 3) in the subscription group in the second order is recorded. The processing position can be the monitoring point identifier of the first unreported monitoring point information in the second order in the subscription group, for example, the monitoring point identifier of monitoring point information 3. It should be noted that the monitoring point identifier is the identity identifier of the module on the network device used to collect the monitoring point information. After all target monitoring point information in the subscription group has been uploaded, the processing position in the subscription group is deleted. When the subscription group with the processing position is assigned to the time slice again, the network device continues to upload the monitoring point information corresponding to the processing position.
[0046] In this way, the problem of multiple batches of reporting of monitoring point information in the subscription group is solved, which helps to ensure that the monitoring point information between different subscription groups can fairly obtain the time for information reporting and reduce the difference in reporting timeliness of different monitoring point information.
[0047] In some embodiments, when the number of time slices in each timer is greater than the number of all subscription groups, the method steps executed by the network device also include: after any target time slice ends, detecting whether there is target monitoring point information in the next subscription group, the next subscription group being the next subscription group that is arranged after the subscription group corresponding to the target time slice in the first order; allocating time slices to the next subscription group in which the target monitoring point information exists; and in the time slices allocated to the next subscription group, reporting the target monitoring point information in the next subscription group in sequence in the second order until all target monitoring point information of all subscription groups has been reported.
[0048] For example, see Figure 4 , Figure 4 A schematic diagram showing the relationship between a subscription group and time slices provided in an embodiment of the present application is shown. Figure 4As shown, the monitoring point information of the network device is composed of subscription groups A, B and C. These four subscription groups correspond to one timer. The timer is divided into five time slices, and the five time slices constitute a cycle. The network device detects whether there is a processing position in the subscription group to detect whether there is target monitoring point information in the subscription group. The processing positions of subscription groups A, B and C before reporting are all the positions of the first monitoring point information in the second order in the subscription group. Therefore, according to the first order, time slice 1, time slice 2 and time slice 3 are allocated to subscription group A, subscription group B and subscription group C respectively. The monitoring point information in subscription group A is uploaded in time slice 1, so the processing position in subscription group A is deleted. Subscription group B does not complete the upload of all monitoring point information in time slice 2. At the end of time slice 2, the network device records the position corresponding to the first unreported monitoring point information in the second order in subscription group B as the first processing position. Subscription group C has not completed uploading all monitoring point information within time slice 3. At the end of time slice 3, the network device records the position corresponding to the first unreported monitoring point information in the second order in subscription group C as the second processing position. Since there are processing positions in subscription groups B and C, it is necessary to allocate time slices to subscription groups B and C again. In the re-allocated time slice 4, subscription group B continues to report the target monitoring point information corresponding to the first processing position, and in the re-allocated time slice 5, subscription group C continues to report the target monitoring point information corresponding to the second processing position. In this way, it is ensured that the monitoring point information in all subscription groups can be uploaded within a cycle.
[0049] In some embodiments, the steps that the network device needs to execute also include: when the remaining duration of the target time slice cannot complete the upload of the target monitoring point information to be uploaded, uploading the target monitoring point information to be uploaded through the target time slice and the next time slice of the target time slice; after the target monitoring point information to be uploaded is reported, in the next time slice of the target time slice, reporting the target monitoring point information in the next subscription group in sequence, and the next subscription group is the next subscription group that is arranged in the first order after the subscription group corresponding to the target time slice.
[0050] Exemplarily, subscription group D includes monitoring point information 1, 2, and 3, and the next subscription group after subscription group D in the first order is subscription group E. The time length of the target time slice allocated to subscription group D is 3s, and the reporting period of monitoring point information 1, 2, and 3 is 2s. In the target time slice, after the reporting of monitoring point information 1 is completed, the remaining time length of the target time slice is 1s, and the target monitoring point information to be reported in the remaining time length is monitoring point information 2, and the remaining time length is insufficient to complete the reporting of monitoring point information 2. Then, after the remaining time length of the target time slice ends, the network device will occupy the next time slice allocated to subscription group E to continue uploading monitoring point information 2, and after completing the reporting of monitoring point information 2, stop reporting monitoring point information 3, and record the position of monitoring point information 3 as the processing position in subscription group D. Since part of the time length of the next time slice allocated to subscription group E is occupied by monitoring point information 2, after monitoring point information 2 is reported, the target monitoring point information in subscription group E is reported in sequence within the remaining time length of the next time slice allocated to subscription group E.
[0051] In this way, the monitoring point information in the subscription group is prevented from being interrupted during the reporting process, thereby avoiding the repeated reporting of part of the monitoring point information, thereby improving the calculation accuracy of the network controller.
[0052] In some embodiments, at least one timer is determined based on the reporting period of all monitoring point information in the network device, including: determining at least one cycle interval based on the reporting period of all monitoring point information in the network device; determining at least one timer based on at least one cycle interval, and the cycle intervals and timers correspond one to one.
[0053] See also Figure 5 , Figure 5 A schematic diagram of time slice allocation provided by an embodiment of the present application is shown. Figure 5As shown, the reporting period of the monitoring point information in subscription groups 1, 2 and 3 is 1s, and the period interval to which they belong is [0s, 5s]; the reporting period of the monitoring point information in subscription groups 4, 5 and 6 is 7s, and the period interval to which they belong is [5s, 10s]. When there is a large gap between the reporting periods, for example, the gap between the reporting periods is 5s, within a timer, the time length of the time slice cannot be less than the longer reporting period, otherwise the monitoring point information of this part of the longer reporting period cannot complete the information reporting within the time slice. If the time length of the time slice is divided into a very long time, it may happen that after the monitoring point information in the subscription group is completed, the remaining time length of the corresponding target time slice is still a lot, resulting in a waste of reporting resources. Therefore, before determining the timer, the network device first determines at least one period interval according to the reporting period of all monitoring point information, and then determines the corresponding timer according to the period interval. The monitoring point information of the subscription group in the period interval is attached to the timer corresponding to the period interval, and the monitoring point information in different timers is reported through different reporting channels.
[0054] By attaching monitoring point information to different timers according to the reporting cycle of monitoring point information, the utilization rate of time slices is improved and the waste of reporting resources is reduced.
[0055] In some embodiments, after all time slices of all timers are finished, all monitoring point information in the network device is reported.
[0056] Exemplarily, each timer corresponds to a cycle, and the network device divides a cycle into multiple time slices. After all time slices are completed, the monitoring point information in the subscription group completes a round of reporting. In the subscription group at the last position of the first sequence, after the monitoring point information at the last position of the second sequence completes information reporting, the corresponding network device generates a reporting completion notification to notify all network devices to start the next round of reporting.
[0057] In this way, the monitoring point information in the network device is reported according to the corresponding rounds through the timer, thereby avoiding the situation where the monitoring point information is reported in different rounds in confusion.
[0058] In some embodiments, the time lengths of the multiple time slices divided within each timer are the same.
[0059] The monitoring point information in the network equipment includes time-sensitive monitoring point information, such as the utilization rate of the network interface. If the reporting rhythm of this type of monitoring point information fluctuates, it will affect the accuracy of the calculation results obtained by the network controller using this type of monitoring point information. Therefore, when dividing the time slices, it is necessary to divide them according to the same time length to reduce the impact on the reporting rhythm of the monitoring point information and improve the accuracy of the calculation results.
[0060] It should be noted that the time lengths of the multiple time slices divided into each timer may also be similar.
[0061] In order to more clearly introduce the technical solution of the present application, the technical solution of the present application will be introduced through a specific embodiment below. It should be noted that this specific embodiment is used to expand the technical solution of the present application, but is not intended to limit the present application.
[0062] See also Figure 6 , Figure 6 The flowchart of an information reporting method provided by an embodiment of the present application is shown, and the information reporting method is executed by a network device. Figure 6 As shown, the specific steps of the information reporting method include: S201-S208.
[0063] S201: Determine whether it is the first time slice.
[0064] Exemplarily, among the multiple time slices differentiated from a timer, a slice head identifier is added to the first time slice in the timing sequence, and when the network device recognizes the slice head identifier, a cycle of information reporting is started.
[0065] If the current time slice is the first time slice, execute step S202; if the current time slice is not the first time slice, execute step S203.
[0066] S202: Start reporting monitoring point information from the first subscription group in the first order.
[0067] S203: cyclically report the monitoring point information in the subscription group according to the first sequence.
[0068] S204: Detect the processing position in the subscription group.
[0069] If the monitoring point information in the subscription group has been partially reported, the processing position is the position corresponding to the first monitoring point information that has not been fully reported in the second order; if the monitoring point information in the subscription group has not started to be reported, the processing position is the first position in the second order.
[0070] S205. Report the monitoring point information in the subscription group starting from the processing position according to the second order.
[0071] S206. Check whether all monitoring point information has been reported. If not, record the processing location.
[0072] Exemplarily, the monitoring point information in the subscription group stops reporting before the corresponding time slice expires, and the network device records the position of the first monitoring point information that has not been completed reported in the second sequence as the processing position.
[0073] S207: Check whether the time slice has expired, and check whether there is a reporting completion notification.
[0074] Exemplarily, if it is detected that the time slice has expired and the reporting completion notification has not been detected, the process returns to step S201 ; if it is detected that the time slice has expired and the reporting completion notification has been detected, the process executes step S208 .
[0075] S208. End the reporting of monitoring point information of the current cycle.
[0076] Through the above method, the network device realizes the reporting of monitoring point information within a cycle, so that the monitoring point information between different subscription groups can fairly obtain the time for information reporting, effectively reducing the difference in reporting timeliness of monitoring point information in each subscription group, thereby efficiently and fairly completing the reporting of monitoring point information of the network device.
[0077] See also Figure 7 , Figure 7 The following is a structural block diagram of a network device provided by an embodiment of the present application. Figure 7 As shown, an embodiment of the present application proposes a network device 30, which includes a processor 31, a memory 32, a computer program stored in the memory 32 and executable by the processor 31, and a data bus for realizing connection communication between the processor 31 and the memory 32, wherein when the computer program is executed by the processor 31, the steps of any one of the information reporting methods provided in the embodiments of the present application are implemented.
[0078] See also Figure 8 , Figure 8 The schematic block diagram of an information reporting device provided in an embodiment of the present application is shown. The information reporting device 300 is used to execute the aforementioned base station switching method. The information reporting device can be configured in a network device.
[0079] like Figure 8 As shown, the information reporting device 300 includes: a data acquisition module 301, a time division module 302 and an information reporting module 303.
[0080] The data acquisition module 301 is used to obtain the reporting chain structure of the subscription group of the network device, which includes: the reporting chain of all subscription groups of the network device constructed in a first order, and the reporting chain of the monitoring point information of the network device in each subscription group constructed in a second order.
[0081] The time division module 302 is used to determine at least one timer according to the reporting period of all monitoring point information in the network device, and divide each timer into multiple time slices, wherein the number of time slices in each timer is not less than the number of all subscription groups.
[0082] In some embodiments, the time lengths of the multiple time slices divided by the time division module 302 in each timer are the same.
[0083] In some embodiments, when the time division module 302 is used to determine at least one timer based on the reporting period of all monitoring point information in the network device, it is also specifically used to implement: determining at least one cycle interval based on the reporting period of all monitoring point information in the network device; determining at least one timer based on at least one cycle interval, and the cycle intervals and timers correspond one to one.
[0084] The information reporting module 303 is used to report the target monitoring point information in each subscription group in sequence in a first order in each time slice for any target timer in at least one timer, starting from the first time slice of the target timer, wherein the target monitoring point information is the monitoring point information that has not been reported within the period corresponding to the target timer, and the target monitoring point information in the same subscription group is reported in a second order, and only the monitoring point information of the same subscription group is reported in each time slice.
[0085] In some embodiments, the information reporting module 303 is also specifically used to implement: when any target time slice among the multiple time slices of the target timer ends, stop reporting the target monitoring point information of the subscription group that reports the monitoring point information within the target time slice, and record the processing position of the target monitoring point information in the subscription group corresponding to the target time slice.
[0086] In some embodiments, when the number of time slices in each timer is greater than the number of all subscription groups, the information reporting module 303 is further specifically used to implement: after any of the target time slices ends, detecting whether the target monitoring point information exists in the next subscription group, the next subscription group being the next subscription group arranged after the subscription group corresponding to the target time slice in the first order; allocating the time slice to the next subscription group where the target monitoring point information exists; and in the time slice allocated to the next subscription group, reporting the target monitoring point information in the next subscription group in sequence in the second order until all target monitoring point information of all subscription groups has been reported.
[0087] In some embodiments, the information reporting module 303 is also specifically used to implement: when the remaining duration of the target time slice cannot complete the upload of the target monitoring point information to be uploaded, the target monitoring point information to be uploaded is uploaded through the target time slice and the next time slice of the target time slice; after the target monitoring point information to be uploaded is reported, in the next time slice of the target time slice, the target monitoring point information in the next subscription group is reported in sequence, and the next subscription group is the next subscription group that is arranged in the first order after the subscription group corresponding to the target time slice.
[0088] In some embodiments, after all time slices of all timers have ended, the information reporting module 303 completes reporting of all monitoring point information in the network device.
[0089] An embodiment of the present application provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information reporting method as described in any one of the embodiments of the present application.
[0090] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the present application is not limited thereby. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application shall be within the scope of the present application.
Claims
1. An information reporting method, applied to a network device, characterized in that: The method comprises: Acquire a reporting chain structure of a subscription group of the network device, the reporting chain structure comprising: a reporting chain composed of all subscription groups of the network device in a first order, and a reporting chain composed of monitoring point information of the network device in each subscription group in a second order; Determine at least one timer according to the reporting period of all monitoring point information in the network device, and divide each timer into a plurality of time slices, wherein the number of time slices in each timer is not less than the number of all subscription groups; For any target timer among the at least one timer, starting from the first time slice of the target timer, in each time slice, the target monitoring point information in each subscription group is reported in sequence according to the first order, wherein the target monitoring point information is the monitoring point information that has not been reported within the period corresponding to the target timer, and the target monitoring point information in the same subscription group is reported according to the second order, and only the monitoring point information of the same subscription group is reported in each time slice.
2. The information reporting method according to claim 1, characterized in that: The method further comprises: When any target time slice among the multiple time slices of the target timer ends, stop reporting the target monitoring point information of the subscription group that reports monitoring point information within the target time slice, and record the processing position of the target monitoring point information in the subscription group corresponding to the target time slice.
3. The information reporting method according to claim 2, characterized in that: In a case where the number of time slices in each of the timers is greater than the number of all subscription groups, the method further includes: After any of the target time slices ends, detecting whether the target monitoring point information exists in a next subscription group, the next subscription group being the next subscription group that is arranged after the subscription group corresponding to the target time slice according to the first sequence; Allocating the time slice to the next subscription group having the target monitoring point information; In the time slice allocated to the next subscription group, the target monitoring point information in the next subscription group is reported in sequence according to the second order until all the target monitoring point information of all subscription groups is reported.
4. The information reporting method according to claim 2, characterized in that: The method further comprises: In the case that the remaining time of the target time slice cannot complete uploading the target monitoring point information to be uploaded, uploading the target monitoring point information to be uploaded through the target time slice and the next time slice of the target time slice; After the target monitoring point information to be uploaded is reported, in the next time slice of the target time slice, the target monitoring point information in the next subscription group is reported in sequence. The next subscription group is the next subscription group after the subscription group corresponding to the target time slice according to the first order.
5. The information reporting method according to claim 1, characterized in that: Determining at least one timer according to the reporting period of all monitoring point information in the network device includes: Determine at least one period interval according to a reporting period of all monitoring point information in the network device; The at least one timer is determined according to the at least one cycle interval, and the cycle interval and the timer have a one-to-one correspondence.
6. The information reporting method according to claim 1, characterized in that: After all time slices of all the timers are finished, all monitoring point information in the network device is reported.
7. The information reporting method according to claim 1, characterized in that: The time lengths of the multiple time slices divided in each of the timers are the same.
8. A network device, characterized in that: It includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of the information reporting method according to any one of claims 1 to 7 are realized.
9. An information reporting system, characterized in that: It includes a plurality of network devices, a data collector and at least one network controller; The data collector is used to receive the monitoring point information reported by the network device, and to report the monitoring point information to the network controller, and all the monitoring point information received by one data collector corresponds to one subscription group; The network device is used to implement the steps of the information reporting method according to any one of claims 1-7.
10. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the information reporting method according to any one of claims 1-7.