A method for quickly responding to simple network management protocol requests for optical network unit data
By creating a system table to simulate sub-oids and index values in the optical network unit and introducing a timer mechanism, the problem of slow ONU data acquisition speed in the optical line terminal was solved, achieving fast response and efficient SNMP data processing.
Patent Information
- Application Number
- CN202311820603.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2043-12-26
AI Technical Summary
In optical line terminals (OLTs), the slow data acquisition speed of optical network units (ONUs) causes Simple Network Management Protocol (SNMP) response timeouts, especially when a large number of ONUs are registered, and existing caching or database methods cannot effectively support this.
By creating system tables to simulate sub-oids and index values, and introducing a timer mechanism, the SNMP request processing flow is optimized, reducing data lookup time and improving response speed.
It significantly improves the response speed of SNMP requests, reduces storage costs, is suitable for devices with small storage capacity, and ensures the real-time and accurate acquisition of data.
Smart Images

Figure CN117750252B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of simple network management protocol (SNMP) application optimization, and more particularly, to a method for quickly responding to a simple network management protocol request for optical network unit data. BACKGROUND
[0002] Simple Network Management Protocol (SNMP) is a standard protocol specially designed for managing network nodes (servers, workstations, routers, switches, etc.) in IP networks, and is an application layer protocol. The SNMP protocol not only enhances the efficiency of network management systems, but also can be used to manage and monitor resources in real time in the network. However, when the amount of data of a certain information base object identifier (OID) obtained is too large, a poor performance managed object (Managed Object) can not reply to the management process (NMS) in time, resulting in a timeout retransmission and failing to achieve real-time performance. For example, in an actual application of an optical line terminal (olt), there are many optical network units (onus) registered, and the server wants to obtain the data of all onus on the olt at one time. Due to the limitation of some passive optical network (pon) chips, the speed of reading the onu data is relatively slow, and if waiting for all onus to reply and then reporting, it will certainly be timed out. Using the cache or database method, some devices can not support this method due to small storage. SUMMARY
[0003] The present application provides a method for quickly responding to a simple network management protocol request for optical network unit data to solve the problems and defects of the prior art.
[0004] To achieve the above-mentioned purposes of the present application, the technical solutions adopted are as follows:
[0005] A method for quickly responding to a simple network management protocol request for optical network unit data, the method comprising the following steps:
[0006] S101: Obtain a simple network management protocol request message, and determine that the request operation type of the simple network management protocol request message is a first operation;
[0007] S102: Analyze and extract oid data in the simple network management protocol request message, and determine whether the oid data is legal; if the oid data is legal, execute step S103, otherwise discard the message and exit;
[0008] S103: Analyzing the sub-oid value and the index value in the oid data, judging whether the data of the system table is outdated, if yes, executing step S104, otherwise, jumping to step S105; the system table is integrated by a plurality of oid data sets preset by the OUN optical network unit;
[0009] S104: executing the deleting data operation;
[0010] S105: judging whether the data exists according to the sub-oid value and the index value; if not, executing step S106; otherwise, jumping to step S107;
[0011] S106: creating a cell or a next cell according to the sub-oid value and the index value;
[0012] S107: creating or updating a timer according to whether the timer of the system table corresponding to the oid data exists;
[0013] S108: obtaining the corresponding data according to the sub-oid value and the index value, and packet sending a simple network management protocol response message.
[0014] Preferably, the first operation includes a Get operation and a Walk operation.
[0015] The Get operation is determined by a get operation code carried in the simple network management protocol request message; the simple network management protocol request message with the Get operation type carries first oid data, and the first oid data includes a first index value and a first sub-oid value.
[0016] The Walk operation is determined by a Walk operation code carried in the simple network management protocol request message; the simple network management protocol request message with the Walk operation type carries second oid data, and the second oid data includes a second sub-oid value.
[0017] Further, the second oid data further includes a second index value.
[0018] When the second index value is not parsed in the second oid data, the first number in the list corresponding to the second sub-oid value is taken as the second index value.
[0019] A method for quickly responding to an optical network unit data of a simple network management protocol request, the method comprising the following steps:
[0020] S201: obtaining a simple network management protocol request message, and determining that the request operation type of the simple network management protocol request message is a second operation code;
[0021] S202: Analyze and extract the oid data in the Simple Network Management Protocol request message, judge whether the oid data is legal; if legal, execute step S103, otherwise discard the message and exit;
[0022] S203: Analyze the oid data to obtain the sub-oid value and the number of items item, and perform corresponding processing according to whether the index value is parsed from the oid data;
[0023] S204: Determine whether item is 0; if 0, jump to step S209; if not 0, determine whether the data of the system table is outdated, if already outdated, jump to step S205, if not outdated, jump to step S206; the system table is integrated by a plurality of oid data sets preset by the OUN optical network unit;
[0024] S205: Perform a delete data operation and jump to step S207;
[0025] S206: Determine whether the data exists according to the sub-oid value and the index value; if not, jump to step S07, otherwise, jump to step S208;
[0026] S207: Create a cell or the next cell according to the sub-oid value and the index value;
[0027] S208: Create or update the timer according to whether the timer of the system table corresponding to the oid data exists, and jump to step S204;
[0028] S209: Obtain the corresponding data according to the sub-oid value and the index value, and send a Simple Network Management Protocol response message.
[0029] Further, according to whether the index value is parsed from the oid data, corresponding processing is performed, including:
[0030] If the index value in the oid data is parsed, the cell corresponding to the index is taken as the starting point;
[0031] If there is no index value in the oid data, the cell with the sub-oid value of 1 and the index value of 1 is taken as the starting point.
[0032] Further, according to whether the timer of the system table corresponding to the oid data exists, create or update the timer, including:
[0033] If the timer of the system table corresponding to the oid data does not exist, create a timer node and add it to the global timer linked list;
[0034] If the timer of the system table corresponding to the oid data exists, update the timer timeout time.
[0035] Further, the second operation includes a Bulkget operation and a bulkwalk operation.
[0036] The Bulkget operation is determined according to a Bulkget operation code carried in a Simple Network Management Protocol request message.
[0037] The bulkwalk operation is determined according to a bulkwalk operation code carried in a Simple Network Management Protocol request message.
[0038] The bulkget operation only obtains data once, and a Simple Network Management Protocol request message of a request operation type of a bulkwalk operation carries a last oid node of the last time.
[0039] The bulkwalk operation obtains data until a child oid ends or an oid data corresponding system table ends.
[0040] Further, the execution of the delete data operation includes:
[0041] The corresponding timer is woken up to perform the delete data operation.
[0042] If the wake-up is unsuccessful, a pre-set delete data operation flow is performed.
[0043] Further, after the timer is created, the method further includes:
[0044] F1: It is judged whether the global timer linked list is empty, if yes, the timer execution thread is exited; otherwise, the next step is performed.
[0045] F2: It is judged whether the timer node in the global timer linked list is overdue, if yes, step F3 is jumped to, otherwise, F2 is returned.
[0046] F3: It is judged whether the state of the timer node is in use, if yes, step F4 is jumped to, otherwise, step F5 is jumped to.
[0047] F4: It is judged whether the set time threshold has been increased, if yes, step F6 is jumped to; otherwise, the timeout time of the timer node is increased by one second, the state is set as unusable, then delayed for one second, and step F5 is jumped to.
[0048] F5: The data is deleted, and removed from the global timer linked list, and step F6 is jumped to.
[0049] F6: The pointer is moved to the next timer node, if the global timer linked list tail has been reached, step F1 is jumped to, otherwise, step F2 is jumped to.
[0050] Further, it is judged whether the oid data is legal, including:
[0051] The parsed oid data is compared with the system table corresponding to the oid data, and if the comparison is successful, it is legal, and if the comparison is not successful, it is not legal.
[0052] The beneficial effects of the present application are as follows:
[0053] The present application can significantly reduce the data search time and improve the response speed of SNMP requests by table simulation of the child oid and the index. In addition, due to the introduction of the timer, repeated requests within a short time can directly extract data without the need for the OID to data analysis process again. This makes the implementation of the present application highly efficient and practical.
[0054] Compared with the use of cache or database, the present application is more compatible with small storage devices, and does not need to replace the storage chip, so the cost is lower.
[0055] The present application accelerates data acquisition and reduces the number of repeated data acquisition within a short time, so that the user can operate and monitor the device more quickly and accurately. BRIEF DESCRIPTION OF DRAWINGS
[0056] Figure 1 is a flowchart of a method for quickly responding to a simple network management protocol request for optical network unit data.
[0057] Figure 2 is a flowchart of another method for quickly responding to a simple network management protocol request for optical network unit data.
[0058] Figure 3 is a principle block diagram of a method for quickly responding to a simple network management protocol request for optical network unit data.
[0059] Figure 4 is a flowchart of a data deletion operation. DETAILED DESCRIPTION
[0060] The embodiments of the present application will be described below with reference to the accompanying drawings and preferred embodiments, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in the present specification. The present application can also be implemented or applied by different specific embodiments, and the details in the specification can be modified or changed based on different views and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustration of the present application, and are not intended to limit the protection scope of the present application.
[0061] It is to be understood that the figures provided in the following embodiments only schematically illustrate the basic concept of the present application, and only the components related to the present application are shown in the figures, not the number, shape and size of the components when actually implemented. The actual implementation of each component can be a random change, and the component layout pattern can be more complex.
[0062] In an optical network, an OLT (Optical Line Terminal) is connected with a plurality of ONUs (Optical Network Units) through a PON (Passive Optical Network). On the OLT device, a server can need to acquire data of all ONUs at one time. However, due to the limitation of some PON chips, the speed of reading ONU data can be slow. In addition, the default timeout time of the Simple Network Management Protocol (SNMP) is 5 seconds, and if waiting for all ONUs to reply before reporting, it will certainly exceed this time limit. The traditional way of using cache or database can face the problem of insufficient storage space, especially for old models of devices, whose storage capacity is usually small. Therefore, a method is needed to acquire all ONU data within a limited time, while avoiding the use of large storage devices.
[0063] The Simple Network Management Protocol (SNMP) is a set of network management protocols. With SNMP, a management workstation can remotely manage all network devices that support this protocol, including monitoring network status, modifying network device configuration, receiving network event warnings, etc.
[0064] As shown in Figure 1 A method for quickly responding to a Simple Network Management Protocol request for optical network unit data, the method comprising the following steps:
[0065] S101: Acquire a Simple Network Management Protocol request message, and determine that the request operation type of the Simple Network Management Protocol request message is a first operation;
[0066] S102: Parse and extract oid data in the Simple Network Management Protocol request message, and determine whether the oid data is legal; if legal, execute step S103, otherwise discard the message and exit;
[0067] S103: Parse the sub-oid value and index value in the oid data, and determine whether the data of the system table is outdated; if it is outdated, execute step S104, otherwise jump to step S105; the system table is obtained by integrating a plurality of oid data sets preset by the ONU optical network unit;
[0068] S104: Perform a delete data operation;
[0069] The delete data operation includes:
[0070] waking up the corresponding timer to perform a delete data operation;
[0071] If the wake-up is unsuccessful, a pre-set delete data operation procedure is performed.
[0072] S105: According to the sub-oid value and the index value, it is determined whether the data exists; if not, step S106 is performed; otherwise, step S107 is jumped to;
[0073] S106: A cell or a next cell is created according to the sub-oid value and the index value.
[0074] S107: According to whether the timer of the system table corresponding to the oid data exists, the timer is created or updated.
[0075] In the embodiment, according to whether the timer of the system table corresponding to the oid data exists, the timer is created or updated, including:
[0076] If the timer of the system table corresponding to the oid data does not exist, a timer node is created to join a global timer linked list.
[0077] If the timer of the system table corresponding to the oid data exists, the timer timeout time is updated.
[0078] S108: According to the sub-oid value and the index value, corresponding data is obtained, and a simple network management protocol response message is packaged and sent.
[0079] In a specific embodiment, the first operation includes a Get operation and a Walk operation.
[0080] The Get operation is determined by a get operation code carried in a simple network management protocol request message; the simple network management protocol request message with a request operation type of the Get operation carries first oid data, and the first oid data includes a first index value and a first sub-oid value.
[0081] The Walk operation is determined by a Walk operation code carried in a simple network management protocol request message; the simple network management protocol request message with a request operation type of the Walk operation carries second oid data, and the second oid data includes a second sub-oid value.
[0082] In a specific embodiment, the second oid data further includes a second index value.
[0083] When the second index value is not parsed in the second oid data, the first number of a list corresponding to the second sub-oid value is taken as the second index value.
[0084] The Simple Network Management Protocol (SMLP) request message with the operation type Walk carries OID data. The OID data may or may not contain an index.
[0085] In database design, a key value needs to be assigned to each record. This key value, combined with the system table name, forms a unique identifier. In object-oriented programming, a unique identifier is achieved using an Object ID (OID), which is used to identify each object.
[0086] In one specific embodiment, after the timer is created, the method further includes:
[0087] F1: Check if the global timer list is empty. If it is empty, exit the timer execution thread; otherwise, proceed to the next step.
[0088] F2: Determine if a timer node in the global timer list has timed out. If it has timed out, jump to step F3; otherwise, return to F2.
[0089] F3: Determine if the timer node is in use. If yes, proceed to step F4; otherwise, proceed to step F5.
[0090] F4: Determine if the set time threshold has been increased. If yes, proceed to step F6; otherwise, increase the timeout of the timer node by one second, set the status to unusable, delay for 1 second, and then proceed to step F5.
[0091] F5: Delete data, remove it from the global timer linked list, and jump to step F6;
[0092] F6: Move the pointer to the next timer node. If the pointer has reached the end of the global timer list, jump to step F1; otherwise, jump to step F2.
[0093] In this embodiment, the operation steps F1 to F6 are continuously executed. Assuming that a timer node has been created and added to the global timer list, the operation steps F1 to F6 are used to determine at intervals whether the data has timed out.
[0094] In the embodiment, steps S101 to S108 or S201 to S209 are to obtain the data in the system table corresponding to the OID data by requesting the message and assembling it into a packet as a response message; the operation steps F1 to F6 are used to clear the data and release the memory of the ONU optical network unit device.
[0095] In this embodiment, determining whether the OID data is valid includes:
[0096] The parsed OID data is compared with the corresponding preset system table. If the comparison is successful, the data is valid; otherwise, it is invalid.
[0097] Embodiment 2
[0098] As shown in the figure, a method for responding to a simple network management protocol request for optical network unit data, the method comprising the steps as follows: Figure 1
[0099] S201: obtaining a simple network management protocol request message, and determining that the request operation type of the simple network management protocol request message is a second operation code;
[0100] S202: parsing and extracting oid data in the simple network management protocol request message, and judging whether the oid data is legal; if yes, executing step S103, otherwise discarding the message and exiting;
[0101] S203: parsing the oid data to obtain a sub-oid value and an item, and performing corresponding processing according to whether an index value is parsed from the oid data;
[0102] In one specific embodiment, the corresponding processing according to whether the index value is parsed from the oid data comprises:
[0103] If the index value in the oid data is parsed, taking a cell corresponding to the index as a starting point;
[0104] If no index value in the oid data is parsed, taking a cell with the sub-oid value being 1 and the index value being 1 as a starting point.
[0105] S204: judging whether the item is 0; if yes, jumping to step S209; if not, judging whether data of a system table is outdated; if yes, jumping to step S205, if not, jumping to step S206; the system table is integrated by a plurality of oid data sets preset by an OUN optical network unit;
[0106] S205: executing a delete data operation, and jumping to step S207;
[0107] In this embodiment, the executing the delete data operation comprises:
[0108] waking up a corresponding timer to perform the delete data operation;
[0109] If the waking up is unsuccessful, executing a pre-set delete data operation process.
[0110] S206: judging whether data exists according to the sub-oid value and the index value; if not, jumping to step S207, otherwise, jumping to step S208;
[0111] S207: creating a cell or a next cell according to the sub-oid value and the index value;
[0112] S208: Create or update the timer according to whether the timer of the system table corresponding to the oid data exists, and jump to step S204;
[0113] In one specific embodiment, the creating or updating the timer according to whether the timer of the system table corresponding to the oid data exists comprises:
[0114] If the timer of the system table corresponding to the oid data does not exist, create a timer node to join the global timer linked list;
[0115] If the timer of the system table corresponding to the oid data exists, update the timeout time of the timer.
[0116] S209: Obtain the corresponding data according to the sub-oid value and the index value, and send a Simple Network Management Protocol response message.
[0117] In one specific embodiment, the second operation comprises a Bulkget operation and a bulkwalk operation.
[0118] The Bulkget operation is determined by the Bulkget operation code carried in the Simple Network Management Protocol request message.
[0119] The bulkwalk operation is determined by the bulkwalk operation code carried in the Simple Network Management Protocol request message.
[0120] The bulkget operation only obtains data once, and the Simple Network Management Protocol request message of the request operation type of the bulkwalk operation carries the last oid node of the last time.
[0121] The bulkwalk operation obtains data until the end of the sub-oid or the end of the system table corresponding to the oid data.
[0122] SNMP data acquisition method: snmp obtains data one sub-oid at a time, and creates data in one row according to the index.
[0123] In this embodiment, after the timer is created, the method further comprises:
[0124] F1: Determine whether the global timer linked list is empty, if yes, exit the timer execution thread; otherwise, perform the next step.
[0125] F2: Determine whether the timer node in the global timer linked list is overdue, if yes, jump to step F3, otherwise, return to F2.
[0126] F3: Determine if the timer node is in use. If yes, proceed to step F4; otherwise, proceed to step F5.
[0127] F4: Determine if the set time threshold has been increased. If yes, proceed to step F6; otherwise, increase the timeout of the timer node by one second, set the status to unusable, delay for 1 second, and then proceed to step F5.
[0128] F5: Delete data, remove it from the global timer linked list, and jump to step F6;
[0129] F6: Move the pointer to the next timer node. If the pointer has reached the end of the global timer list, jump to step F1; otherwise, jump to step F2.
[0130] In this embodiment, the operation steps F1 to F6 are continuously executed. Assuming that a timer node has been created and added to the global timer list, the operation steps F1 to F6 are used to determine at intervals whether the data has timed out.
[0131] In the embodiment, steps S101 to S108 or S201 to S209 are to obtain the data in the system table corresponding to the OID data by requesting the message and assembling it into a packet as a response message; the operation steps F1 to F6 are used to clear the data and release the memory of the ONU optical network unit device.
[0132] In this embodiment, determining whether the OID data is valid includes:
[0133] The parsed OID data is compared with the corresponding preset system table. If the comparison is successful, the data is valid; otherwise, it is invalid.
[0134] Example 3
[0135] like Figure 3 As shown in the figure, this embodiment provides a method for quickly responding to a Simple Network Management Protocol (SMMP) request for optical network unit (ONP) data, which includes the following:
[0136] Obtain a Simple Network Management Protocol (SMMP) request message, determine the request operation type of the SMMP request message, and if the request operation type is the first operation, execute steps S101 to S108. If the request operation type is the second operation, execute steps S201 to S209.
[0137] In an actual application scenario, one pon port on the device can be connected to 128 or 256 at most, and one device has 16 pon ports at most. Under full configuration (all onus are connected), the information of all onus can be obtained by the operation and maintenance device of the customer, such as an snmp server, more quickly, so that the present application can accelerate data acquisition and reduce the number of repeated data acquisition in a short time, so that the user can obtain data more quickly and accurately when operating and maintaining the monitoring device.
[0138] Taking a system table commonly concerned by an onu as an example, Table 1 is shown.
[0139] Table 1
[0140] Ponindex Onuindex OnuTemperature OnuVoltage OnuTxPower OnuRxPower 1 1 a b c d 1 2 e f g h ... ... ... ... ... ... 1 19 i j k l 2 1 m n o p ... ... ... ... ... ... 16 12 q r s t 16 13 u v w x
[0141] It is assumed that the oid of Table 1 is x.x.x.x.x.x, and the sub-oids are {1, 2, 3, 4, 5, 6}, which respectively correspond to ponindex, onuindex, OnuTemperature, OnuVoltage, OnuTxPower and OnuRxPower, wherein the indexes are ponindex and onuindex double indexes.
[0142] In one specific embodiment, an electronic device is also provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method for quickly responding to a simple network management protocol request for optical network unit data as described above.
[0143] The memory and the processor are connected in a bus mode, the bus can include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripheral devices, voltage stabilizers and power management circuits together, which are well known in the art, and therefore, further description thereof will not be given herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, which provide a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium through the antenna, and further, the antenna also receives data and transmits the data to the processor.
[0144] In one specific embodiment, a computer readable storage medium is also provided, which stores a computer program, and the computer program is executed by the processor to implement the steps of the method for quickly responding to a simple network management protocol request for optical network unit data as described above.
[0145] That is, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a program stored in a storage medium, including a plurality of instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0146] Obviously, the above-mentioned embodiments of the present application are only examples for clearly illustrating the present application, and are not intended to limit the implementation modes of the present application. Any modification, equivalent replacement, and improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the claims of the present application.
Claims
1. A method of responding quickly to a simple network management protocol request for data of an optical network unit, characterized by: The method comprises the following steps: S101: obtaining a simple network management protocol request message, and determining that a request operation type of the simple network management protocol request message is a first operation; S102: parsing and extracting oid data in the simple network management protocol request message, and judging whether the oid data is legal; if yes, executing step S103, otherwise discarding the message and exiting; S103: parsing a sub-oid value and an index value in the oid data, judging whether data of a system table is outdated, if yes, executing step S104, otherwise jumping to step S105; the system table is integrated by a plurality of oid data preset by an ONU optical network unit; S104: executing a delete data operation; S105: judging whether the data exists according to the sub-oid value and the index value; if no, executing step S106; otherwise, jumping to step S107; S106: creating a cell or a next cell according to the sub-oid value and the index value; S107: creating or updating a timer according to whether the timer of the system table corresponding to the oid data exists; S108: obtaining corresponding data according to the sub-oid value and the index value, and packaging and sending a simple network management protocol response message.
2. The method for responding to a simple network management protocol request for optical network unit data according to claim 1, wherein: The first operation comprises a Get operation and a Walk operation; The Get operation is determined by a get operation code carried in the simple network management protocol request message; the simple network management protocol request message with the Get operation carries first oid data, and the first oid data comprises a first index value and a first sub-oid value; The Walk operation is determined by a Walk operation code carried in the simple network management protocol request message; the simple network management protocol request message with the Walk operation carries second oid data, and the second oid data comprises a second sub-oid value.
3. The method of claim 2, wherein the method further comprises: The second oid data further comprises a second index value; When the second index value is not parsed in the second oid data, a first number in a list corresponding to the second sub-oid value is taken as the second index value.
4. A method of responding quickly to a simple network management protocol request for data of an optical network unit, characterized by: The method comprises the following steps: S201: obtaining a simple network management protocol request message, and determining that a request operation type of the simple network management protocol request message is a second operation code; S202: parsing and extracting oid data in the simple network management protocol request message, and judging whether the oid data is legal; if yes, executing step S103, otherwise discarding the message and exiting; S203: parsing the oid data to obtain a sub-oid value, an item, and performing corresponding processing according to whether an index value is parsed from the oid data; S204: judging whether the item is 0; if yes, jumping to step S209; if no, judging whether data of a system table is outdated, if yes, jumping to step S205, if no, jumping to step S206; the system table is integrated by a plurality of oid data preset by an ONU optical network unit; S205: executing a delete data operation, and jumping to step S207; S206: judging whether the data exists according to the sub-oid value and the index value; if not, jumping to step S07; otherwise, jumping to step S208; S207: creating a cell or a next cell according to the sub-oid value and the index value; S208: creating or updating a timer according to whether a timer of a system table corresponding to the oid data exists, and jumping to step S204; S209: obtaining corresponding data according to the sub-oid value and the index value, and sending a simple network management protocol response message.
5. The method of claim 4, wherein the method further comprises: According to whether the index value in the oid data is parsed, corresponding processing is performed, including: If the index value in the oid data is parsed, taking the cell corresponding to the index as a start; If no index value in the oid data is parsed, taking the cell with the sub-oid value of 1 and the index value of 1 as a start.
6. The method for responding to a simple network management protocol request for optical network unit data according to claim 4, wherein: According to whether a timer of a system table corresponding to the oid data exists, creating or updating the timer, including: If the timer of the system table corresponding to the oid data does not exist, creating a timer node to join a global timer linked list; If the timer of the system table corresponding to the oid data exists, updating a timeout time of the timer.
7. The method of quickly responding to a simple network management protocol request for optical network unit data of claim 4, wherein: The second operation includes a Bulkget operation and a bulkwalk operation; The Bulkget operation is determined by an operation code of the Bulkget operation carried in a simple network management protocol request message; The bulkwalk operation is determined by an operation code of the bulkwalk operation carried in the simple network management protocol request message; The Bulkget operation only obtains data once, and a simple network management protocol request message of a request operation type of the bulkwalk operation carries a last oid node of a previous time; The bulkwalk operation obtains data until a sub-oid ends or a system table corresponding to the oid data ends.
8. The method for responding to a simple network management protocol request for optical network unit data according to claim 4, wherein: The execution of the delete data operation includes: Waking up a corresponding timer to perform the delete data operation; If the waking up is unsuccessful, a pre-set delete data operation process is performed.
9. The method of claim 6, wherein the method further comprises: receiving a request for data from the optical network unit; and sending the requested data to the network management system. After the timer is created, the method further includes: F1: judging whether the global timer linked list is empty; if yes, exiting a timer execution thread; otherwise, performing the next step; F2: judging whether a timer node in the global timer linked list is timed out; if yes, jumping to step F3; otherwise, returning to F2; F3: judging whether a state of the timer node is in use; if yes, jumping to step F4; otherwise, jumping to step F5; F4: judging whether a set time threshold has been increased; if yes, jumping to step F6; otherwise, increasing a timeout time of the timer node by one second, setting the state as unusable, delaying for one second, and jumping to step F5; F5: deleting data, and removing the data from the global timer linked list; and jumping to step F6; F6: moving a pointer to a next timer node; if the pointer has reached a tail of the global timer linked list, jumping to step F1; otherwise, jumping to step F2.
10. The method of claim 4, wherein the method further comprises: receiving a request for data from the optical network unit; and sending the requested data to the network management system. Judging whether the oid data is legal includes: Comparing the parsed oid data with a preset system table corresponding to the oid data; if the comparison is successful, the oid data is legal; otherwise, the oid data is not legal.
Citation Information
Patent Citations
EPON network management system data transmission method based on SNMP protocol
CN102523119A
Configuration method and device for optical network unit ONUs
CN107465530A