Method and device for shortening ONU online time
By judging the MIB count value of ONU in the optical circuit terminal OLT and generating capability characteristic codes, the time extension problem caused by message interaction when ONU is online is solved, and rapid online and efficient service recovery is achieved.
Patent Information
- Application Number
- CN202411221478.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-05-16
AI Technical Summary
During the ONU launch process, a large number of packet interactions lead to an extended online time, affecting the efficiency of service recovery.
When the OLT detection ONU is online, it determines whether the stored MIB count value and the MIB count value of the ONU are consistent. If it is inconsistent, OLT generates capability signatures and finds whether the same capability signatures exist in the stored data when the ONU is online again. If it exists, skip the MIB reporting process and directly use the previously saved MIB count value as the ability to launch ONU this time.
By skipping the MIB reporting process, the ONU launch time is significantly shortened, the business recovery efficiency is improved, and the probability of errors occurring when ONU is launched.
Smart Images

Figure CN120017996A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of passive optical network, and in particular to a method and a device for shortening the online time of an ONU. Background Art
[0002] In engineering applications, in most cases, each line card carries a large number of ONUs. When there is a need to restart the line card, restart the entire machine, etc. During the ONU online process, according to the existing standard process. Although the MIB UPLOAD process can be skipped when MIBAUDIT is the same. However, since different manufacturers may have different rules for mib auditing, most ONUs need to perform the MIB UPLOAD process to inform the OLT of their capabilities. Under the current standard protocol, when each ONU goes online, each ONU will report its capabilities through the MIB UPLOAD NEXT message. For example, it notifies the OLT of its own port attributes, the number of WiFi supported frequency bands, VEIP capabilities, service instance numbers, etc. At present, it takes about 300 messages for ordinary ONUs to report their complete capabilities. When a large number of ONUs go online at the same time, a large number of message interactions will affect the online time of the ONU, resulting in reduced service recovery efficiency.
[0003] Therefore, how to shorten the interaction time and speed up service recovery efficiency when the ONU goes online is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The main purpose of the present invention is to provide a method and device for shortening the online time of an ONU, which can speed up the online time of the ONU, shorten the service recovery time, and reduce the probability of errors when the ONU goes online.
[0005] In a first aspect, the present application provides a method for shortening the online time of an ONU, the method comprising the steps of: when an optical line terminal OLT detects that an optical network unit ONU is online, determining whether a management information base MIB count value stored in itself is consistent with a MIB count value of the ONU;
[0006] If they are inconsistent, the OLT sends a message to the ONU to generate a capability feature code;
[0007] The OLT searches for the same capability feature code in its own stored data when the ONU comes online again, based on the capability feature code uploaded by the ONU.
[0008] If the same capability signature exists, the MIB reporting process is skipped and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time.
[0009] In combination with the first aspect above, as an optional implementation method, if the MIB count value stored in the OLT itself includes the MIB count value of the ONU, the MIB reporting process is skipped, and the MIB count value corresponding to the ONU is used as the capability of the ONU online this time.
[0010] In combination with the above-mentioned first aspect, as an optional implementation method, the OLT sends a message to the ONU, and the ONU internally generates a capability feature code of preset bytes for the capability of concern according to the capability of concern and the corresponding hash algorithm configured by the OLT in the message, and informs the OLT of the capability feature code through the message.
[0011] In combination with the first aspect above, as an optional implementation method, the capabilities of interest include: LAN port capability, voice port capability, optical port capability, VEIP capability and WiFi capability.
[0012] In combination with the first aspect, as an optional implementation manner, if the same capability feature code does not exist during the search, the ONU is notified to perform a MIB reporting process to obtain the capability of the ONU.
[0013] In combination with the first aspect above, as an optional implementation method, if the same capability feature code does not exist during the search, the OLT obtains all capabilities of the ONU through the messages in sequence according to the number of capability messages reported by the ONU, associates its capabilities with the corresponding capability feature codes, and stores them.
[0014] In combination with the first aspect, as an optional implementation, the optical line terminal OLT determines whether the management information base MIB count value stored in the optical line terminal includes the MIB count value of the ONU;
[0015] If the MIB count value stored in the OLT itself includes the MIB count value of the ONU and the count value is not 0, it is determined that the MIB count value stored in the OLT itself is consistent with the MIB count value of the ONU;
[0016] If the MIB count value stored in the OLT itself does not include the MIB count value of the ONU, it is determined that the MIB count value stored in the OLT itself is inconsistent with the MIB count value of the ONU.
[0017] In a second aspect, the present application provides a method for shortening the time it takes for an ONU to go online, wherein the method comprises the steps of: when an optical network unit ONU goes online, sending a MIB count value to an OLT to determine whether it is consistent with the MIB count value of the OLT;
[0018] If they are inconsistent, the ONU receives the message sent by the OLT to generate a capability characteristic code, and reports the capability characteristic code to the OLT;
[0019] When the ONU comes online again, it determines whether the same capability characteristic code exists in the OLT storage data;
[0020] If the same capability characteristic code exists, the MIB reporting process is skipped, and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time.
[0021] In a third aspect, the present application provides a device for shortening the online time of an ONU, the device comprising: a judgment module, which is used to judge whether the count value of the management information base MIB stored in itself is consistent with the MIB count value of the ONU when the optical line terminal OLT detects that the optical network unit ONU is online;
[0022] A generating module, which is used for, if there is inconsistency, the OLT sends a message to the ONU to generate a capability feature code;
[0023] A processing module, which is used for the OLT to search whether the same capability feature code exists in its own stored data when the ONU comes online again according to the capability feature code uploaded by the ONU;
[0024] The execution module is used to skip the MIB reporting process if the same capability feature code exists, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.
[0025] In a fourth aspect, the present application provides a device for shortening the ONU online time, the device comprising:
[0026] A judgment module, which is used to send the MIB count value to the OLT when the optical network unit ONU goes online to determine whether it is consistent with the MIB count value of the OLT;
[0027] A generating module, which is used for, if there is inconsistency, the ONU receives the message sent by the OLT to generate a capability characteristic code, and reports the capability characteristic code to the OLT;
[0028] A processing module, which is used to determine whether the same capability feature code exists in the OLT storage data when the ONU comes online again;
[0029] The execution module is used to skip the MIB reporting process if the same capability feature code exists, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.
[0030] The present application provides a method and device for shortening the time for an ONU to go online, wherein the method comprises the following steps: when an optical line terminal OLT detects that an optical network unit ONU is online, it determines whether the count value of the management information base MIB stored in itself is consistent with the MIB count value of the ONU; if not, the OLT sends a message to the ONU to generate a capability feature code; the OLT receives the capability feature code uploaded by the ONU, and when the ONU goes online again, it searches for the same capability feature code in its own stored data; if the same capability feature code exists, the MIB reporting process is skipped, and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time. The present application can speed up the time for an ONU to go online, shorten the service recovery time, and reduce the probability of errors when the ONU goes online.
[0031] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0033] Figure 1 A flow chart of a method for shortening the ONU online time provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of a device for shortening the ONU online time provided in an embodiment of the present application;
[0035] Figure 3 It is the ONU online flow chart provided in the embodiment of the present application;
[0036] Figure 4 This is a schematic diagram of the ONU online process optimization provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0038] Furthermore, the drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. Some of the blocks shown in the drawings are functional entities and do not necessarily correspond to physically or logically separate entities.
[0039] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0040] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for shortening the ONU online time provided by the present invention, such as Figure 1 As shown, the method comprises the steps of:
[0041] Step S101: When the optical line terminal OLT detects that the optical network unit ONU is online, it determines whether the management information base MIB count value stored in itself is consistent with the MIB count value of the ONU.
[0042] Specifically, the optical line terminal OLT determines whether the management information base MIB count value stored in the optical line terminal OLT includes the MIB count value of the ONU;
[0043] If the MIB count value stored in the OLT itself includes the MIB count value of the ONU and the count value is not 0, it is determined that the MIB count value stored in the OLT itself is consistent with the MIB count value of the ONU;
[0044] If the MIB count value stored in the OLT itself does not include the MIB count value of the ONU, it is determined that the MIB count value stored in the OLT itself is inconsistent with the MIB count value of the ONU.
[0045] For easy understanding, an example is given. First, the MIB UPOLAD process is performed. If the MIB count value of the ONU is equal to the MIB count value of the OLT, the ONU goes online directly. If there is a configuration before, the configuration will not be re-issued. What needs to be explained is that the MIB UPOLAD process is specifically as follows: Under the current standard protocol, each ONU will report its capabilities through the MIB UPOLAD message when it goes online. For example, the port attributes of the OLT itself, the number of WiFi supported frequency bands, VEIP capabilities, service instance numbers, etc. are notified. At present, when an ordinary ONU reports its own complete capabilities, it takes about 300 messages to inform completion. When a large number of ONUs go online at the same time, a large number of messages are exchanged, and then the OLT sends service-related configuration messages, and subsequent ONUs continue to go online. It is understandable that the MIB UPOLAD process will affect the online time of the ONU, resulting in reduced service recovery efficiency. That is, skipping this process will greatly shorten the online time of the ONU and enable rapid service recovery.
[0046] In one embodiment, the MIBAUDIT process (MIB count value judgment process) is first performed. If the MIB count value of the ONU is equal to the MIB count value of the OLT, no subsequent process is required, and the ONU goes online directly. If there is a configuration before, the configuration will not be re-issued.
[0047] If the MIB count values are not equal, the MIB UPLOAD process is performed, and the OLT obtains the relevant capabilities reported by the ONU. If the ONU is online, the service configuration is re-issued if there is any configuration before.
[0048] It should be explained that if the MIB count values are equal, it means that the configurations of the OLT and ONU are equal. There is no need to re-send the configuration to the ONU. If the MIB count values are not equal, the OLT re-sends the configuration to the ONU to ensure that the configurations between the OLT and ONU are the same. The configuration includes: Internet services, TV services, and voice services, which are actual services or speed limits.
[0049] Step S102: If they are inconsistent, the OLT sends a message to the ONU to generate a capability feature code.
[0050] Specifically, the OLT sends a message to the ONU, and the ONU generates a capability feature code of preset bytes for the capability concerned internally according to the capability concerned by the OLT configuration in the message and the corresponding hash algorithm, and informs the OLT of the capability feature code through the message.
[0051] It is understandable that the OLT first sends a MIBUPLOAD message to the ONU, which carries the capabilities and hash algorithms that the OLT cares about. After the ONU receives the MIBUPLOAD message from the OLT, it first fills in the number of capability messages that the ONU needs to report. And the capabilities that the OLT cares about are hashed into a 16-byte capability feature code through the corresponding hash algorithm. Finally, these data are replied to the OLT.
[0052] Step S103: The OLT searches its own stored data for the same capability feature code when the ONU comes online again, based on the capability feature code received from the ONU.
[0053] Specifically, after receiving the MIBUPLOAD RESPONSE message from the ONU, the OLT first parses the capability feature code reported by the ONU and compares the feature code with the stored data to find out whether the same capability feature code exists before. If not, the MIBUPLOAD process continues. The OLT uses the MIB UPLOADNEXT message to obtain all the capabilities of the ONU in turn according to the number of capability messages reported by the ONU. And associate its capabilities with the corresponding capability feature code for subsequent capability comparison. And complete the online process.
[0054] Step S104: If the same capability characteristic code exists, the MIB reporting process is skipped, and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time.
[0055] It is understandable that the OLT compares the MIB count value of the currently online ONU from its own saved MIB library. If so, the MIBUPLOAD process is skipped and the MIB count value corresponding to the ONU is directly used as the capability of the ONU that is online this time (that is, the originally saved capability of the ONU is used as the capability of the ONU that is online this time).
[0056] It is understandable that the OLT searches for the MIB count value of the ONU that is not currently online from the MIB library stored in itself. When the ONU is online, the OLT obtains the MIB count value from the ONU, and the ONU returns the MIB count value. The OLT compares the MIB count value on the ONU with the MIB count value stored on the OLT. If the two MIB count values are inconsistent, a MIB RESET message is sent to the ONU. The MIBUPLOAD process is performed. The OLT first sends a MIBUPLOAD message to the ONU, which carries relevant information such as the capabilities and hash algorithms that the OLT cares about (capabilities and hash algorithms). After the ONU receives the MIBUPLOAD message from the OLT, it first fills in the number of capability messages that the ONU needs to report. And the capabilities that the OLT cares about (the capabilities that are concerned include: LAN port capabilities, voice port capabilities, optical port capabilities, VEIP capabilities, and WiFi capabilities) are hashed into a 16-byte capability feature code through the corresponding hash algorithm. Finally, these data are replied to the OLT. After receiving the MIBUPLOAD RESPONSE message from the ONU, the OLT first parses the capability signature code reported by the ONU and compares the signature code with the stored data to find out whether the same capability signature code exists before. If not, the MIBUPLOAD process continues. Based on the number of capability messages reported by the ONU, the OLT uses the MIB UPLOAD NEXT message to obtain all the capabilities of the ONU in sequence. The capabilities are then associated with the corresponding capability signature codes for subsequent capability comparisons. The online process is then completed.
[0057] In one embodiment, if the same capability signature code is found, the capability corresponding to the signature code is directly used as the capability of the ONU going online this time to complete the online process.
[0058] In one embodiment, if the search does not find the same capability signature code, the ONU is notified to perform a MIB reporting process to obtain the capability of the ONU.
[0059] Optionally, if the search does not find the same capability signature code, the OLT obtains all capabilities of the ONU in sequence through the messages according to the number of capability messages reported by the ONU, associates the capabilities with the corresponding capability signature codes, and stores them.
[0060] In one embodiment, the ONU generates a 16-byte capability feature code for the capability of interest internally according to the OLT configuration through a corresponding hash algorithm, and notifies the OLT of the capability feature code through a message, wherein the capabilities of interest include: LAN port capability, voice port capability, optical port capability, VEIP capability, and WiFi capability.
[0061] It should be noted that, under normal circumstances, the ONU needs to go online through the following stages, namely ONU discovery, MIB audit stage, and MIB reporting stage. When the MIB audit of OLT and ONU is inconsistent. In the MIB reporting stage, the ONU needs to report all its capabilities to the OLT. After the OLT obtains the ONU capabilities, it saves the capabilities. When the service is configured later, the configuration is issued according to the capability information reported by the ONU. Repeat the above process when a new ONU goes online.
[0062] This application is that when the MIB audit of the ONU fails, the OLT carries the capabilities that the OLT is concerned about in the MIBUPLOAD message to the ONU, and sends a hash algorithm. When the ONU receives the MIBUPLOAD message, it replies to the message and calculates a 16-byte capability feature code for the capabilities that the OLT is concerned about according to a specific hash algorithm, and reports the capability feature code to the OLT. After receiving the capability code, the OLT queries whether the capability code has been reported. If it has been reported, the MIBUPLOAD NEXT message will not be sent to obtain the ONU's capabilities. This shortens the online time of the ONU.
[0063] That is, for ONUs with the same capabilities, capability message interaction is no longer repeated when multiple ONUs go online. For scenarios where a large number of ONUs go online frequently, the ONU online time is accelerated and the service recovery time is shortened. After verifying that the capability feature codes of the two ONUs are consistent, the same capabilities are automatically used, reducing the probability of errors when the ONUs go online.
[0064] It can be understood that, first, after the OLT discovers the ONU, the OLT obtains its MIB count value from the ONU, and the ONU replies the MIB count value to the OLT. The OLT compares the obtained MIB count value with the MIB count value saved by itself. When the MIB counts are different, the OLT sends a MIB UPLOAD message to the ONU to obtain the capabilities of the ONU, and the capabilities and hash algorithms that the OLT needs to care about are carried in the message. When the ONU receives the message, it replies with the number of messages that need to be reported through the MIB UPLOAD RESPONSE message, and attaches the capability feature code counted by the hash algorithm. After the OLT receives the capability feature code, it compares whether the feature code already exists. If it exists, the capability value corresponding to the feature code is used as the capability value of the ONU. And exit the MIB UPLOAD process. If it does not exist, continue to perform the MIB UPLOAD process according to the standard process to obtain the capabilities of the ONU. And save the corresponding relationship between the capability and the feature code. For later use. When the MIB UPLOAD process is completed, the ONU can be activated normally.
[0065] Reference Figure 2 , Figure 2 FIG. 1 is a schematic diagram of a device for shortening the ONU online time provided by the present invention, such as Figure 2 As shown, the device comprises:
[0066] The judgment module 201 is used to judge whether the count value of the management information base MIB stored in the optical line terminal OLT is consistent with the MIB count value of the ONU when the optical line terminal OLT detects that the optical network unit ONU is online.
[0067] Generating module 202: It is used for, if there is inconsistency, the OLT to send a message to the ONU to generate a capability feature code.
[0068] Processing module 203: used for the OLT to search for the same capability feature code in its own stored data when the ONU comes online again, based on the capability feature code uploaded by the ONU.
[0069] Execution mode: 204: It is used to skip the MIB reporting process if the same capability feature code exists, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.
[0070] Furthermore, in a possible implementation, the execution module is also used to skip the MIB reporting process if the MIB count value stored in the OLT itself includes the MIB count value of the ONU, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.
[0071] Furthermore, in a possible implementation, the generation module is also used for the OLT to send a message to the ONU, and the ONU internally generates a capability feature code of preset bytes for the capability of concern based on the capability of concern and the corresponding hash algorithm configured by the OLT in the message, and informs the OLT of the capability feature code through the message.
[0072] Furthermore, in a possible implementation manner, the processing module is also used to set the capabilities of interest, which include: LAN port capabilities, voice port capabilities, optical port capabilities, VEIP capabilities, and WiFi capabilities.
[0073] Furthermore, in a possible implementation manner, the processing module is further configured to, if the same capability feature code does not exist after the search, notify the ONU to perform a MIB reporting process to obtain the capability of the ONU.
[0074] Furthermore, in a possible implementation, the processing module is also used to, if the search does not find the same capability feature code, then the OLT obtains all capabilities of the ONU in sequence through the messages based on the number of capability messages reported by the ONU, and associates its capabilities with the corresponding capability feature codes and stores them.
[0075] Further, in a possible implementation manner, the judgment module is also used for the optical line terminal OLT to judge whether the management information base MIB count value stored in itself includes the MIB count value of the ONU;
[0076] If the MIB count value stored in the OLT itself includes the MIB count value of the ONU and the count value is not 0, it is determined that the MIB count value stored in the OLT itself is consistent with the MIB count value of the ONU;
[0077] If the MIB count value stored in the OLT itself does not include the MIB count value of the ONU, it is determined that the MIB count value stored in the OLT itself is inconsistent with the MIB count value of the ONU.
[0078] Further, in a possible implementation, the judgment module is also used to send the MIB count value to the OLT when the optical network unit ONU goes online to determine whether it is consistent with the MIB count value of the OLT.
[0079] Further, in a possible implementation manner, the generating module is further configured to, if inconsistent, the ONU receives a message sent by the OLT to generate a capability feature code, and report the capability feature code to the OLT.
[0080] Further, in a possible implementation manner, the processing module is also used to determine whether the same capability feature code exists in the OLT storage data when the ONU goes online again.
[0081] Furthermore, in a possible implementation, the execution module is also used to skip the MIB reporting process if the same capability feature code exists, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.
[0082] Reference Figure 3 , Figure 3 The figure shows the ONU online flow chart provided by the present invention, as shown in FIG. Figure 3 As shown:
[0083] It is understandable that when the ONU goes online, the OLT obtains the MIB count value from the ONU, and the ONU returns the MIB count value. The OLT compares the MIB count value on the ONU with the MIB count value stored on the OLT. If the two MIB count values are inconsistent, a MIB RESET message is sent to the ONU to perform the MIBUPLOAD process.
[0084] The OLT first sends a MIBUPLOAD message to the ONU, which carries relevant information such as capabilities and hash algorithms that the OLT is concerned about (capabilities and hash algorithms).
[0085] After the ONU receives the MIBUPLOAD message from the OLT, it first fills in the number of capability messages that the ONU needs to report. It then uses the corresponding hash algorithm to hash the capability data into a 16-byte capability signature code, and finally replies this data to the OLT.
[0086] After the OLT receives the MIBUPLOAD RESPONSE message from the ONU, it first parses the capability signature code reported by the ONU, and compares the signature code with the stored data to find out whether the same capability signature code existed before. If not, the MIBUPLOAD process continues. Among them, the first ONU1 to go online will definitely not have the same MIB count value as the OLT, so a complete MIB UPLOAD process is required. The OLT uses the MIB UPLOADNEXT message to obtain all the capabilities of the ONU in turn based on the number of capability messages reported by the ONU. And associate its capabilities with the corresponding capability signature code for subsequent capability comparison. And complete the online process.
[0087] Specifically, step S301: when the ONU goes online, the OLT obtains the MIB count value from the ONU, and the ONU returns the MIB count value.
[0088] Step S302: The OLT compares the MIB count value on the ONU with the MIB count value stored on the OLT. If the two MIB count values are inconsistent, a MIB RESET message is sent down, and the MIBUPLOAD process is performed.
[0089] Step S303: The MIB UPLOAD process is that the OLT first sends a MIB UPLOAD message to the ONU, which carries the capabilities and hash algorithms that the OLT cares about. After receiving the MIB UPLOAD message from the OLT, the ONU first fills in the number of capability messages that the ONU needs to report. And the capabilities that the OLT cares about are hashed into a 16-byte capability feature code through the corresponding hash algorithm. Finally, these data are returned to the OLT.
[0090] Step S304: After receiving the MIBUPLOAD RESPONSE message from the ONU, the OLT first parses the capability code reported by the ONU, and compares the capability code with the stored data to find out whether the same capability code exists before. If the corresponding capability code exists, exit the MIBUPLOAD process. The OLT uses the capability code reported by the ONU and the capability corresponding to the capability code as the capability of the ONU going online this time. And complete the online process. It can be understood that when the Nth ONU with the same capability goes online, the capability of ONU1 is directly used to complete the online process.
[0091] For example, in the online process of device A and device B, you can set to only care about their LAN port capabilities, VEIP capabilities, and voice capabilities. In this way, you only need to perform the MIB UPLOAD process when the first ONU goes online, and you can directly skip this process when the subsequent ONUs go online. Use the capabilities of the first ONU to deliver services.
[0092] Step S30410 is for ONU1 that is online for the first time. The ONU that is online for the first time will definitely not have the same characteristic capability code. At this time, a complete MIB UPLOAD NEXT message interaction process needs to be performed, that is, step S30411. Step S30412 is to save the corresponding relationship between the capability reported by the ONU and the capability characteristic code for subsequent direct use.
[0093] Step S30420 is for the second ONU2 online process. It can be understood that if the online ONU2 has the same feature capability code as that in the database, the capability corresponding to the feature capability code in the database is directly used to go online without going through the complete MIB UPLOAD process.
[0094] The ONU2 online process of step S30430 and step S30420 is similar, that is, when the Nth ONU with the same capability goes online, the capability of ONU1 is directly used to complete the online process.
[0095] Reference Figure 4 , Figure 4 FIG. 4 is a schematic diagram of an optimization process of an ONU online process provided by the present invention. Figure 4 As shown:
[0096] It should be noted that the normal online process is as follows: when the ONU goes online, the OLT requests the ONU to synchronize MIB data, the ONU replies the MIB count value to the OLT, the OLT compares the received MIB count value with the MIB count value saved by itself, when the MIB count values are different, the OLT sends a MIB UPLOAD message to the ONU, requiring the ONU to report its capabilities, the ONU copies its own MIB, and informs the OLT of the number of MIBUPLOAD NEXT messages that need to be reported, the OLT updates the local MIB library through the data reported by the ONU, and the OLT uses configuration commands to make the MIB count value on the ONU consistent with the MIB count value saved locally.
[0097] The optimized online process is as follows: Step S401: When the ONU goes online, the OLT requests the ONU to synchronize MIB data.
[0098] Step S402: The ONU replies the MIB count value to the OLT. The OLT compares the received MIB count value with the MIB count value stored in itself. When the MIB counts are different, the OLT sends a MIB UPLOAD message to the ONU (which carries the capabilities and hash algorithm that the OLT needs to care about), requiring the ONU to report its capabilities.
[0099] Step S403: The ONU copies its own MIB count value and informs the OLT of the number of MIBUPLOAD NEXT messages that need to be reported and carries its capability feature code. After receiving the capability feature code, the OLT compares it with the local MIB count value. If the count values are the same, the process ends and the ONU goes online directly.
[0100] Step S404: If the OLT does not have the capability characteristic code reported by the OLT (ie, the same MIB count value does not exist), the MIB UPLOAD process continues.
[0101] Step S405: The OLT updates the local MIB database through the data reported by the ONU to facilitate subsequent rapid online access.
[0102] Step S406: The OLT compares the MIB of the ONU with its own local MIB, and makes the MIB on the ONU consistent with its own MIB through configuration commands.
[0103] It is understandable that the MIB AUDIT process is performed first. If the MIB count value of the ONU is equal to the MIB count value of the OLT, no subsequent process is required and the ONU goes online directly. If there was a previous configuration, the configuration will not be re-issued. If the MIB count values are not equal, the MIB UPLOAD process is performed. The OLT obtains the capability feature code from the ONU. If the OLT already has the same capability feature code, its capability will not be obtained from the ONU. The previously saved capability is used directly if the same capability feature code does not exist. The OLT continues to obtain the relevant capabilities reported by the ONU. If there was a previous configuration after the ONU goes online, the service configuration is re-issued.
[0104] In summary, the present application can speed up the ONU online time, shorten the service recovery time, and reduce the probability of errors when the ONU goes online.
[0105] Based on the same inventive concept, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, all or part of the method steps of the above method are implemented.
[0106] The present application implements all or part of the processes in the above method, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0107] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program running on the processor, and when the processor executes the computer program, all or part of the method steps in the above method are implemented.
[0108] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of a computer device, and uses various interfaces and lines to connect various parts of the entire computer device.
[0109] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; in addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, servers or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), servers, and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0114] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for shortening the online time of an ONU, characterized in that: include: When the optical line terminal OLT detects that the optical network unit ONU is online, it determines whether the management information base MIB count value stored in itself is consistent with the MIB count value of the ONU; If they are inconsistent, the OLT sends a message to the ONU to generate a capability feature code; The OLT searches for the same capability feature code in its own stored data when the ONU comes online again, based on the capability feature code uploaded by the ONU. If the same capability signature exists, the MIB reporting process is skipped and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time.
2. The method according to claim 1, characterized in that Also includes: If the MIB count value stored in the OLT itself includes the MIB count value of the ONU, the MIB reporting process is skipped, and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time.
3. The method according to claim 1, characterized in that The sending of a message to the ONU to generate a capability characteristic code includes: The OLT sends a message to the ONU, and the ONU generates a capability feature code of preset bytes for the capability concerned internally according to the capability concerned by the OLT configuration in the message and the corresponding hash algorithm, and informs the OLT of the capability feature code through the message.
4. The method according to claim 3, characterized in that include: The capabilities of interest include: LAN port capability, voice port capability, optical port capability, VEIP capability and WiFi capability.
5. The method according to claim 1, characterized in that Also includes: If the search does not contain the same capability signature code, the ONU is notified to perform the MIB reporting process to obtain the capability of the ONU.
6. The method according to claim 1, characterized in that Also includes: If the search does not find the same capability signature code, the OLT obtains all capabilities of the ONU in sequence through the messages according to the number of capability messages reported by the ONU, associates the capabilities with the corresponding capability signature codes, and stores them.
7. The method according to claim 1, characterized in that The determining whether the management information base MIB count value stored in the self is consistent with the MIB count value of the ONU comprises: The optical line terminal OLT determines whether the management information base MIB count value stored in the optical line terminal OLT includes the MIB count value of the ONU; If the MIB count value stored in the OLT itself includes the MIB count value of the ONU and the count value is not 0, it is determined that the MIB count value stored in the OLT itself is consistent with the MIB count value of the ONU; If the MIB count value stored in the OLT itself does not include the MIB count value of the ONU, it is determined that the MIB count value stored in the OLT itself is inconsistent with the MIB count value of the ONU.
8. A method for shortening the ONU online time, characterized in that: include: When the optical network unit ONU comes online, the MIB count value is sent to the OLT to determine whether it is consistent with the MIB count value of the OLT; If they are inconsistent, the ONU receives the message sent by the OLT to generate a capability characteristic code, and reports the capability characteristic code to the OLT; When the ONU comes online again, it determines whether the same capability characteristic code exists in the OLT storage data; If the same capability characteristic code exists, the MIB reporting process is skipped, and the MIB count value corresponding to the ONU is used as the capability of the ONU that is online this time.
9. A device for shortening the online time of an ONU, characterized in that: include: A judgment module, which is used to judge whether the MIB count value of the management information base stored in the optical line terminal OLT is consistent with the MIB count value of the ONU when the optical network unit ONU is online; A generating module, which is used for, if there is inconsistency, the OLT sends a message to the ONU to generate a capability feature code; A processing module, which is used for the OLT to search whether the same capability feature code exists in its own stored data when the ONU comes online again according to the capability feature code uploaded by the ONU; The execution module is used to skip the MIB reporting process if the same capability feature code exists, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.
10. A device for shortening the online time of an ONU, characterized in that: include: A judgment module, which is used to send the MIB count value to the OLT when the optical network unit ONU goes online to determine whether it is consistent with the MIB count value of the OLT; A generating module, which is used for, if there is inconsistency, the ONU receives the message sent by the OLT to generate a capability characteristic code, and reports the capability characteristic code to the OLT; A processing module, which is used to determine whether the same capability feature code exists in the OLT storage data when the ONU comes online again; The execution module is used to skip the MIB reporting process if the same capability feature code exists, and use the MIB count value corresponding to the ONU as the capability of the ONU that is online this time.