Monitoring method for optical module, and optical module and optical communication apparatus
By synchronizing time information with the parent device through interaction between the optical module and using non-volatile memory, the problem of poor universality of optical module log recording is solved, enabling effective log analysis and early warning, and improving the stability and efficiency of the communication system.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2025-10-09
- Publication Date
- 2026-04-23
AI Technical Summary
Existing optical modules are difficult to connect with external devices when running independently, resulting in poor log recording versatility and difficulty in effective data analysis and early warning.
The system interacts with the parent device via an optical module, uses the time information provided by the parent device to synchronize log recording, and uses non-volatile memory to store the logs, thereby classifying and identifying the logs and ensuring the time consistency and reliability of the logs.
It improves the versatility of optical module logging, supports effective operational data analysis, long-term reliability assurance, and rapid problem delimitation, and reduces network interruptions and performance degradation.
Smart Images

Figure CN2025126585_23042026_PF_FP_ABST
Abstract
Description
A monitoring method for an optical module, an optical module, and an optical communication device.
[0001] This application claims priority to Chinese Patent Application No. 202411458747.1, filed on October 17, 2024, entitled "A Monitoring Method for an Optical Module, an Optical Module, and an Optical Communication Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of optical communication, and more particularly to a monitoring method for an optical module, an optical module, and an optical communication device. Background Technology
[0003] With the growth of internet traffic and data volume, optical modules, as key components in optical communication that enable optical signal transmission and electrical signal conversion, have become increasingly important. The performance of optical modules directly affects the stability and efficiency of the entire communication system. Therefore, to ensure the operation of optical modules, intelligent monitoring and diagnosis, such as long-term operational data analysis, long-term reliability assurance, rapid problem identification, and early warning, have become a major focus of the optical communication industry. However, currently, optical modules often operate independently, logging data without connecting to other devices. When these logs are retrieved externally, accurate data analysis is difficult. Therefore, improving the universality of optical module logging is a pressing technical problem that needs to be solved. Summary of the Invention
[0004] This application provides a monitoring method for an optical module, an optical module, and an optical communication device to improve the versatility of the optical module's log recording.
[0005] Firstly, a monitoring method for an optical module is provided. This method can be executed by the optical module. Unless otherwise specified, the term "optical module" in this application can refer to the optical module itself, a component within the optical module (e.g., a processor, chip, or chip system), or a logic module or software capable of implementing all or part of the functions of the optical module device. The optical module is plugged into the interface of a first device and includes a transceiver module, a processing module, and a log generation module.
[0006] The method includes: a transceiver module receiving first information from a first device, the first information indicating a first time determined by the first device; a processing module parsing the first information to obtain the first time; and a log generation module recording a first log based on the first information. By utilizing the parent device of the optical module to send the current time to the optical module, the optical module can synchronize with the external time, improving the versatility of the optical module's log recording. This allows the optical module's logs to be effectively used for operational data analysis, long-term reliability assurance, rapid problem delimitation, and early warning.
[0007] In conjunction with the first aspect, in some implementations of the first aspect, the first device is any one of wavelength division multiplexing board, optical switch or router.
[0008] In conjunction with the first aspect, in some implementations of the first aspect, the initial time of the first log is the first time. Therefore, the optical module can use precise time as a timeline to record logs and synchronize with the outside world. Furthermore, even without obtaining the first information, the optical module can still use its own timer to record logs.
[0009] In conjunction with the first aspect, in certain implementations of the first aspect, the first log includes at least one of the following information: optical power information, packet loss information, alarm information, temperature information, circuit information, monitoring information, configuration information, or fault location information. This allows for timely inspection and repair of the optical module using the information included in the first log, reducing potential network interruptions and performance degradation.
[0010] In conjunction with the first aspect, in some implementations of the first aspect, the optical module further includes a storage module, and the method further includes: a transceiver module receiving second information from a first device, the second information being used to request at least one second log, the second information including identification information indicating the type of at least one second log; a processing module determining a first storage partition in the storage module based on the identification information, and retrieving at least one second log from the first storage partition; and the transceiver module sending at least one second log to the first device. Thus, by classifying different logs recorded by the optical module and assigning identification information (e.g., ID) to different types of logs based on specific classifications, the log storage and upload process of the optical module is standardized, facilitating the first device to obtain logs of the same type in batches.
[0011] In conjunction with the first aspect, in some implementations of the first aspect, the type of at least one second log corresponds to the recording period and / or operation information of at least one second log. That is, the logging of the optical module can be configured with a recording period based on different application scenarios. And / or the log of the optical module can also be used to record the instruction information from the first device to the optical module and the corresponding operations performed by the optical module according to the instruction information.
[0012] In conjunction with the first aspect, in some implementations of the first aspect, the first storage partition belongs to the non-volatile memory within the storage module. Therefore, the log can be retained even after the optical module is powered off.
[0013] In conjunction with the first aspect, some implementations of the first aspect further include: the transceiver module receiving third information from the first device, the third information being used to request the acquisition of a third log; the transceiver module sending the third log to the first device, the initial time of the third log being zero. That is, even without obtaining the first information, the optical module can still use its own timer to record logs.
[0014] In conjunction with the first aspect, in certain implementations of the first aspect, wherein: the first information is a general management interface specification format; or the first information is a 100G packaged pluggable module multi-source protocol format, to facilitate batch acquisition and / or analysis of logs by the device.
[0015] Secondly, a monitoring method for an optical module is provided. This method can be executed by a first device. Unless otherwise specified, the "first device" in this application can refer to the first device itself, a component in the first device (e.g., a processor, chip, or chip system), or a logic module or software that can implement all or part of the functions of the first device.
[0016] The method includes: a first device generating first information, which indicates a first time determined by the first device; wherein an optical module is inserted into the optical module of the first device, and the first time is used for the optical module to record a first log; and the first device sending the first information to the optical module. By utilizing the parent device of the optical module to send the current time to the optical module, the optical module is synchronized with the external time, improving the versatility of the optical module's log recording. This allows the optical module's logs to be effectively used for operational data analysis, long-term reliability assurance, rapid problem delimitation, and early warning.
[0017] In conjunction with the second aspect, in some implementations of the second aspect, the first device is any one of wavelength division multiplexing board, optical switch or router.
[0018] In conjunction with the second aspect, in some implementations of the second aspect, the initial time of the first log is the first time. Therefore, the optical module can use precise time as a timeline to record logs and synchronize with the outside world. Furthermore, even without obtaining the first information, the optical module can still use its own timer to record logs.
[0019] In conjunction with the second aspect, in some implementations of the second aspect, the first log includes at least one of the following information: optical power information, packet loss information, alarm information, temperature information, circuit information, monitoring information, configuration information, or fault location information. This allows for timely inspection and repair of the optical module using the information included in the first log, reducing potential network interruptions and performance degradation.
[0020] In conjunction with the second aspect, some implementations of the second aspect further include: a first device sending second information to the optical module, the second information being used to request at least one second log, wherein the second information includes identification information indicating the type of the at least one second log; the first device receiving at least one second log from the optical module, wherein the at least one second log is retrieved by the optical module from a first storage partition, the first storage partition being determined by the optical module based on the identification information. Thus, by classifying different logs recorded by the optical module and assigning identification information (e.g., ID) to different types of logs based on specific classifications, the log storage and upload process of the optical module is standardized, facilitating the first device to obtain logs of the same type in batches.
[0021] In conjunction with the second aspect, in some implementations of the second aspect, at least one type of the second log corresponds to the recording period and / or operation information of the second log. That is, the logging of the optical module can be configured with a recording period based on different application scenarios. And / or the log of the optical module can also be used to record the instruction information from the first device to the optical module and the corresponding operations performed by the optical module based on the instruction information.
[0022] In conjunction with the second aspect, in some implementations of the second aspect, the first storage partition is a non-volatile memory within the optical module. Therefore, the log can be retained even after the optical module is powered off.
[0023] In conjunction with the second aspect, some implementations of the second aspect further include: the first device sending third information to the optical module, the third information indicating the format of the first log. Thus, the first device and the optical module can negotiate the log format, allowing the log to be directly read after it arrives at the first device, improving the universality and compatibility of the optical module's log recording.
[0024] In conjunction with the second aspect, some implementations of the second aspect further include: the first device sending third information to the optical module, the third information being used to request a third log; the first device receiving the third log from the optical module, the initial time of the third log being zero. That is, even without obtaining the first information, the optical module can still use its own timer to record logs.
[0025] In conjunction with the first aspect, in certain implementations of the first aspect, wherein: the first information is a general management interface specification format; or the first information is a 100G packaged pluggable module multi-source protocol format, to facilitate batch acquisition and / or analysis of logs by the device.
[0026] Thirdly, an optical module is provided for performing the methods provided in the first aspect and any of the above-described implementations. Specifically, the optical module may include units and / or modules for performing the methods provided in the first aspect or any of the above-described implementations of the first aspect.
[0027] In one implementation, the communication device is a machine (such as an optical module). When the communication device is a machine, the transceiver unit can be a transceiver or an input / output interface; the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.
[0028] In another implementation, the communication device is a chip, chip system, or circuit used in a device (such as an optical module). When the communication device is a chip, chip system, or circuit used in a device, the transceiver unit can be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip, chip system, or circuit; the processing unit can be at least one processor, processing circuit, or logic circuit.
[0029] Fourthly, an optical communication apparatus is provided for performing the method provided in the first aspect or any of the above-described implementations. Specifically, the optical communication apparatus may include units and / or modules for performing the method provided in the first aspect or any of the above-described implementations of the first aspect.
[0030] In one implementation, the communication device is a machine (such as an optical communication device). When the communication device is a machine, the transceiver unit can be a transceiver or an input / output interface; the processing unit can be at least one processor. Optionally, the transceiver can be a transceiver circuit. Optionally, the input / output interface can be an input / output circuit.
[0031] In another implementation, the communication device is a chip, chip system, or circuit used in a device (such as an optical communication device). When the communication device is a chip, chip system, or circuit used in a device, the transceiver unit can be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip, chip system, or circuit; the processing unit can be at least one processor, processing circuit, or logic circuit.
[0032] Fifthly, an optical communication device is provided, the device comprising: a memory for storing a program; and at least one processor for executing the computer program or instructions stored in the memory to perform the method provided by the first aspect or any of the above-described implementations of the first aspect, or to perform the method provided by the second aspect or any of the above-described implementations of the second aspect, or to perform the method provided by the third aspect or any of the above-described implementations of the third aspect.
[0033] In one implementation, the communication device is a device (such as an optical module, a first device).
[0034] In another implementation, the device is a chip, chip system, or circuit used in a device (such as an optical module, the first device).
[0035] Sixthly, this application provides a processor for performing the methods provided in the above aspects.
[0036] Unless otherwise specified, or if it does not contradict its actual function or internal logic in the relevant description, the transmission and acquisition / reception operations involved in the processor can be understood as processor output and reception, input and other operations, or as transmission and reception operations performed by radio frequency circuits and antennas. This application does not limit them in this regard.
[0037] A seventh aspect provides a computer-readable storage medium storing program code for execution by a device, the program code including instructions for performing the method provided in the first aspect or any of the above-described implementations of the first aspect, or including instructions for performing the method provided in the second aspect or any of the above-described implementations of the second aspect.
[0038] Eighthly, a computer program product containing instructions is provided, which, when run on a computer, causes the computer to perform the method provided by the first aspect or any of the above-described implementations of the first aspect, or causes the computer to perform the method provided by the second aspect or any of the above-described implementations of the second aspect.
[0039] Ninth aspect, a chip is provided, the chip including a processor and a communication interface, the processor reads instructions stored in a memory through the communication interface, executes the method provided by the first aspect or any of the above-described implementations of the first aspect, or executes the method provided by the second aspect or any of the above-described implementations of the second aspect.
[0040] Optionally, as one implementation, the chip further includes a memory storing computer programs or instructions. The processor is used to execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the processor is used to execute the method provided by the first aspect or any of the above implementations of the first aspect, or to execute the method provided by the second aspect or any of the above implementations of the second aspect.
[0041] In a tenth aspect, a communication system is provided, comprising at least one of the optical module described above and a first device. Attached Figure Description
[0042] Figure 1 is a schematic diagram of a monitoring method for an optical module provided in an embodiment of this application.
[0043] Figure 2 is a schematic diagram of another optical module monitoring method provided in an embodiment of this application.
[0044] Figure 3 is a schematic diagram of another optical module monitoring method provided in an embodiment of this application.
[0045] Figure 4 is a schematic diagram of another optical module monitoring method provided in an embodiment of this application.
[0046] Figure 5 is a schematic structural block diagram of a communication device provided in an embodiment of this application.
[0047] Figure 6 is a schematic diagram of another optical communication device provided in an embodiment of this application.
[0048] Figure 7 is a schematic diagram of another optical communication device provided in an embodiment of this application.
[0049] Figure 8 is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0051] With the growth of internet traffic and data volume, optical modules, as key components in optical communication that enable optical signal transmission and electrical signal conversion, have become increasingly important. The performance of optical modules directly affects the stability and efficiency of the entire communication system. Therefore, to ensure the operation of optical modules, intelligent monitoring and diagnosis, such as long-term operational data analysis, long-term reliability assurance, rapid problem identification, and early warning, have become a major focus of the optical communication industry. However, currently, optical modules often operate independently, logging data without connecting to other devices. When these logs are retrieved externally, accurate data analysis is difficult. Therefore, improving the universality of optical module logging is a pressing technical problem that needs to be solved.
[0052] In view of this, embodiments of this application provide a monitoring method for an optical module, an optical module, and an optical communication device to improve the versatility of the optical module's log recording.
[0053] Figure 1 is a schematic diagram of a monitoring method for an optical module provided in an embodiment of this application. As shown in Figure 1, this method is implemented through interaction between the optical module and a first device. The first device is the parent device of the optical module, and the optical module and the first device are connected through one or more interfaces. Alternatively, it can be understood that an optical module is inserted into the optical module of the first device. The first device can be any one of a wavelength division multiplexing (WDM) board, an optical switch, or a router. The WDM board is used in a wavelength division multiplexing (WDM) system for wavelength division multiplexing and / or demultiplexing optical signals. Specifically, the WDM board may include an optical transponder unit (OTU), an optical multiplexer unit (OMU), and an optical demultiplexer unit (ODU). The optical switch is used to switch the working path of the optical signal. The router is used for data transmission at the network layer. The optical module is used for the conversion between optical and electrical signals. The optical module may include a transmitting optical sub-assembly (TOSA) and / or a receiving optical sub-assembly (ROSA). Furthermore, the optical module includes a transceiver module, a processing module, and a log generation module. The transceiver module can exchange information with the first device.
[0054] As shown in Figure 1, the method includes steps S110-S130.
[0055] S110, the first device generates first information, which is used to indicate the first time determined by the first device.
[0056] In some implementations, the "first time determined by the first device" is a "standard time." In this case, the first device can be connected to a network or a network management device to determine the first information. In other implementations, the "first time determined by the first device" can be determined solely by the first device itself. In this case, the first information is only used for time synchronization between the first device and the optical module. Furthermore, the "first time determined by the first device" can also be called "standard time," "reference time," "absolute time," etc. "First information" can also be understood as a "timestamp," which is usually expressed in the form of date and time, and can be accurate to shorter time units such as seconds and milliseconds.
[0057] S120, the first device sends first information to the optical module; correspondingly, the transceiver module of the optical module receives the first information from the first device.
[0058] The first device and the optical module can each be equipped with a separate time interface, and the first information can be transmitted through the time interface.
[0059] S130, the optical module's processing module parses the first information to obtain the first time.
[0060] S140, the log generation module of the optical module records the first log based on the first information.
[0061] The optical module recording the first log based on the first information can also be understood as: the optical module uses the first information as the initial time of the log and begins recording the first log. Thus, the optical module can use precise time as a timeline to record the log and synchronize with the external environment. Furthermore, even without obtaining the first information, the optical module can still use its own timer to record the log.
[0062] In some implementations, the first log includes at least one of the following information: optical power information, packet loss information, alarm information, temperature information, circuit information, monitoring information, or fault location information. This allows for timely inspection and repair of the optical module using the information included in the first log, reducing potential network interruptions and performance degradation. Specifically, optical power information refers to the optical module's transmit power (TX power) and / or receive power (RX power). Packet loss information indicates data packet loss during transmission. Alarm information indicates abnormal conditions detected by the optical module, such as optical link disconnection, overheating, or power supply problems. Temperature information records the operating temperature of the optical module. Circuit information indicates the operating status of the internal circuitry of the optical module, such as power supply voltage, current, and signal integrity. Monitoring information records the optical module's monitoring of received and / or transmitted signal light. Fault location information specifically refers to fault diagnosis data, such as faults in specific circuits, fiber breaks, or connector defects. Configuration information indicates the optical module's configuration parameters and current status, such as wavelength, rate, and duplex mode.
[0063] In the method shown in Figure 1, the optical module synchronizes its time with the external time by using the parent device of the optical module to send the current time to the optical module. This improves the versatility of the optical module's log recording, making the optical module's logs effective for runtime data analysis, long-term reliability assurance, rapid problem delimitation, and early warning.
[0064] Figure 2 is a schematic diagram of another monitoring method for an optical module provided in an embodiment of this application. The method in Figure 2 is also applied to the interaction between the optical module and the first device. The specific details of the first device and the optical module have been described with reference to Figure 1, and will not be repeated here. In addition, the optical module also includes a storage module. As shown in Figure 2, the method includes steps S210-S230.
[0065] S210, the first device sends second information to the optical module; the transceiver module of the optical module receives the second information from the first device. The second information is used to request at least one second log. The second information includes identification information, which is used to indicate the type of at least one second log.
[0066] In some implementations, the type of at least one second log corresponds to the recording period of at least one second log.
[0067] Where at least one type of second log corresponds to at least one recording period of a second log, the logging of the optical module is set based on different application scenarios. For example, the logging period can be divided into ultra-short period logs, short period logs, long period logs, and ultra-long period logs. For example, ID 0x1 is an ultra-short period log, ID 0x2 is a short period log, and ID 0x3 is a long period log, etc. The specific recording periods of the above logs increase sequentially. Among them, the recording period of ultra-short period logs can be less than 5 minutes, for example, 1 to 3 minutes. The recording period of short period logs can be 10 minutes. The recording period of long period logs can be 1 hour. The recording period of ultra-long period logs can be 24 hours.
[0068] In some implementations, the log recording period can correspond to its storage period; the longer the log recording period, the longer its storage period in the optical module. That is, the storage period can decrease sequentially from the aforementioned ultra-long-period logs to the ultra-short-period logs. For example, the storage time of the aforementioned ultra-long-period logs in the optical module can be the same as the lifespan of the optical module, while the storage time of the aforementioned ultra-short-period logs in the optical module can be 24 hours. Since the optical module's logs are stored in different partitions according to log type, after storing multiple logs of the same type in a storage partition, log rotation can be performed, deleting the stored logs in chronological order and overwriting the storage space they occupy.
[0069] In some implementations, the type of log entry can correspond to the operation information. For example, the log can be used to record operation information instructed by the first device to the optical module. Alternatively, the log can also be used to record operation information performed by the optical module.
[0070] The logs with different recording periods mentioned above can be used for different application scenarios. For example, ultra-short-cycle logs, with their short recording period and large data volume, are used in production temperature-controlled processing scenarios. Short-cycle logs are used for anomaly localization in the production network. Long-cycle logs are used for production network operation trend analysis. Ultra-long-cycle logs, with their smaller data volume, are used for production network operation trend analysis. The logs with different recording periods mentioned above can include the same type of information or different types of information, depending on the actual situation. For example, logs with different recording periods mentioned above can all include performance information, temperature information, circuit information, voltage information, etc., of optical modules. It should be understood that the above naming method is only for convenience, and the specific log name corresponding to the type should be determined according to the actual situation.
[0071] S220, the optical module's processing module determines the first storage partition based on the identification information and retrieves at least one second log from the first storage partition.
[0072] In other words, the logs of the optical module are stored in different partitions of the storage module according to the log type, which makes it convenient for the optical module to retrieve and upload them.
[0073] In some implementations, the first storage partition is a non-volatile memory within the storage module. Therefore, the log can be retained even after the optical module is powered off.
[0074] In some implementations, the at least one second log is first recorded in volatile memory and then transferred to non-volatile memory. That is, the optical module periodically moves the log to non-volatile memory to prevent it from being cleared after the optical module is powered off. Furthermore, after the optical module retrieves at least one second log from the first storage partition, it can also pre-store the at least one second log in a designated area (e.g., a standard protocol area determined by the protocol between the optical module and the first device), so that the optical module can subsequently send the at least one second log to the first device via the protocol interface.
[0075] The non-volatile memory mentioned above can be a flash memory chip, and the volatile memory mentioned above can be random access memory (RAM).
[0076] S230, the transceiver module of the optical module sends at least one second log to the first device; correspondingly, the first device receives at least one second log from the optical module.
[0077] In the method shown in Figure 2, different logs recorded by the optical module are classified, and identification information (such as ID) is assigned to different types of logs based on the specific classification. This standardizes the log storage and upload process of the optical module, making it easier for the first device to obtain logs of the same type in batches.
[0078] Figure 3 is a schematic diagram of another optical module monitoring method provided in an embodiment of this application. The method in Figure 3 is also applied to the interaction between the optical module and the first device. The specific details of the first device and the optical module have been described with reference to Figure 1, and will not be repeated here. As shown in Figure 3, the method includes steps S310-S330.
[0079] S310, the first device sends third information to the optical module; the transceiver module of the optical module receives the third information from the first device, and the third information is used to request the third log.
[0080] S320, the first device receives the third log from the optical module; the transceiver module of the optical module sends the third log to the first device, and the initial time of the third log is zero.
[0081] In other words, even without obtaining the first information, the optical module can still use its own timer to record logs. In some implementations, the recording time of the third log is before the recording time of the first log, and the end time of the third log overlaps with the start time of the first log (the first information described in Figure 1). Therefore, after the first device obtains the third log, it can determine the specific recording time of the third log.
[0082] It should be understood that the methods described in Figures 1 to 3 can be combined, and the combined method should still fall within the protection scope of this application.
[0083] The following describes the complete process of monitoring optical modules, with reference to Figure 4.
[0084] Figure 4 is a schematic diagram of another monitoring method for an optical module provided in an embodiment of this application. The method in Figure 4 is also applied to the interaction between the optical module and the first device. The specific details of the first device and the optical module have been described with reference to Figures 1 to 3, and will not be repeated here.
[0085] As shown in Figure 4(a), the method may include steps S411-S417.
[0086] S411, the optical module is powered on, and the log generation module of the optical module starts the log recording function.
[0087] S412, the optical module's log generation module uses its own timer to record a third log.
[0088] S413, the first device sends first information to the optical module; correspondingly, the transceiver module of the optical module receives the first information from the first device, which indicates a first time determined by the first device.
[0089] S414, the log generation module of the optical module records the first log based on the first information.
[0090] S415, the first device sends fourth information to the optical module; correspondingly, the transceiver module of the optical module receives the fourth information from the first device, which is used to request the first log and the third log.
[0091] S416, the first device receives the first log and the third log from the optical module; correspondingly, the transceiver module of the optical module sends the first log and the third log to the first device.
[0092] S417, the first device calculates the actual corresponding time of the information in the third log based on the corresponding time in the first log.
[0093] As shown in Figure 4(b), the method may include steps S421-S427.
[0094] S421, the optical module is powered on, and the log generation module of the optical module starts the log recording function.
[0095] S422, the first device sends first information to the optical module; correspondingly, the transceiver module of the optical module receives the first information from the first device, which indicates a first time determined by the first device.
[0096] S423, the log generation module of the optical module records the first log based on the first information.
[0097] S424, the optical module stores the first log in the RAM of the storage module. Then, based on the type of the first log, it stores it in the first storage partition of the flash memory included in the storage module.
[0098] S425, the first device sends the sixth information to the optical module; correspondingly, the transceiver module of the optical module receives the fifth information from the first device, which is used to request the first log, and the fifth information also includes the identification information of the first log.
[0099] S426, the optical module's processing module determines the first storage partition based on the identification information of the first log, and retrieves the first log from the first storage partition.
[0100] S427, the transceiver module of the optical module sends the first log to the first device; correspondingly, the first device receives the first log from the optical module.
[0101] It should be understood that this application does not restrict the specific command format of the first, second, and third information involved in the interaction between the first device and the optical module. For example, the first, second, and third information can use the format specified by the Common Management Interface Specification (CMIS). CMIS can also be called the Order Interface Framework CMIS (OIF-CMIS). Its format can be the command data block (CDB) format. Alternatively, the first, second, and third information can use the CFP multi-source agreement (CFP MSA). CFP module refers to the full name of a 100G form-factor pluggable (CFP) module. This process can be the module-to-host data interaction process defined by CFP MSA.
[0102] The communication method provided by the embodiments of this application has been described in detail above with reference to Figures 1 to 4. The communication device provided by this application will be described in detail below with reference to Figures 5 to 8. It should be understood that the description of the device embodiments corresponds to the description of the method embodiments. Therefore, for content not described in detail, please refer to the above method embodiments; for the sake of brevity, some content will not be repeated.
[0103] Figure 5 is a schematic structural block diagram of a communication device provided in an embodiment of this application. The communication device 500 may include a transceiver module 510, a processing module 520, and a log generation module 530.
[0104] The communication device 500 shown in Figure 5 can be an optical module or a component (such as a chip or circuit) within an optical module. The optical module may include a transmitting optical sub-assembly (TOSA) and / or a receiving optical sub-assembly (ROSA). The optical module is used for converting optical signals to electrical signals.
[0105] In one embodiment, the transceiver module 510 is configured to receive first information from the first device, the first information indicating a first time determined by the first device. The processing module 520 is configured to parse the first information to obtain the first time. The log generation module 530 is configured to generate a first log based on the first time.
[0106] In another embodiment, the optical module further includes a storage module. The transceiver module 510 is further configured to receive second information from the first device, the second information being used to request at least one second log, the second information including identification information indicating the type of the at least one second log; the processing module 520 is further configured to determine a first storage partition of the storage module based on the identification information, and retrieve at least one second log from the first storage partition. The transceiver module 510 is also configured to send the at least one second log to the first device.
[0107] In another embodiment, the transceiver module 510 is further configured to receive third information from the first device, the third information being used to request the acquisition of a third log; the transceiver module 510 is further configured to send the third log to the first device, the initial time of the third log being zero.
[0108] Figure 6 is a schematic structural block diagram of a communication device provided in an embodiment of this application. The communication device 600 may include a transceiver module 610 and a processing module 620.
[0109] The communication device 600 shown in Figure 6 can be an optical communication device, which can be the optical communication device in the above embodiments or a component (e.g., a chip or circuit) in an optical communication device. The optical communication device can be any one of a wavelength division multiplexing (WDM) board, an optical switch, or a router. The WDM board is used in a wavelength division multiplexing (WDM) system to perform wavelength division multiplexing and / or demultiplexing of optical signals. The WDM board can specifically include an optical transponder unit (OTU), an optical multiplexer unit (OMU), and an optical demultiplexer unit (ODU). The optical switch is used to switch the working path of the optical signal. The router is used for data transmission at the network layer. In one embodiment, the processing module 620 is used to generate first information. The transceiver module 610 is used to send the first information to the optical module, the first information indicating a first time determined by the first device.
[0110] In another embodiment, the transceiver module 610 is further configured to send second information to the optical module, the second information being used to request at least one second log, the second information including identification information, the identification information being used to indicate the type of at least one second log.
[0111] In another embodiment, the transceiver module 620 is further configured to send third information to the optical module, the third information being used to request the acquisition of a third log; the transceiver module 620 is further configured to receive a third log from the first device, the initial time of the third log being zero.
[0112] The specific details of the first, second, and third information described in Figures 5 and 6 have been explained in conjunction with Figures 1-4 above, and will not be repeated here.
[0113] Figure 7 is a schematic diagram of another optical communication device provided in an embodiment of this application. As shown in Figure 7, the optical communication device 700 includes a processor 701, which executes computer programs or instructions stored in a memory 702, or reads data / signaling stored in the memory 702, to perform the methods in the above-described method embodiments. Optionally, there may be one or more processors 701.
[0114] Optionally, as shown in FIG7, the optical communication device 700 further includes a memory 702 for storing computer programs or instructions and / or data. The memory 702 may be integrated with the processor 701 or may be separately configured. Optionally, there may be one or more memories 702.
[0115] Optionally, as shown in FIG7, the optical communication device 700 further includes a transceiver 703, which is used for receiving and / or transmitting signals. For example, the processor 701 is used to control the transceiver 703 to receive and / or transmit signals.
[0116] The optical communication device 700 is used to implement the operations performed by the optical module or the first device in the above method embodiments.
[0117] It should be understood that the processor mentioned in the embodiments of this application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0118] It should also be understood that the memory mentioned in the embodiments of this application can be volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM). For example, RAM can be used as an external cache. By way of example and not limitation, RAM includes the following forms: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0119] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA, or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, the memory (storage module) can be integrated into the processor.
[0120] It should also be noted that the memory described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0121] Figure 8 is a schematic diagram of a chip system provided in an embodiment of this application. The chip system 800 (or may also be called a processing system) includes logic circuitry 801 and input / output interface 802.
[0122] The logic circuit 801 can be a processing circuit in the chip system 800. The logic circuit 801 can be coupled to a memory unit, calling instructions from the memory unit, enabling the chip system 800 to implement the methods and functions of the embodiments of this application. The input / output interface 802 can be an input / output circuit in the chip system 800, outputting processed information from the chip system 800, or inputting data or signaling information to be processed into the chip system 800 for processing.
[0123] As one approach, the chip system 800 is used to implement the operations performed by the optical module or the first device in the various method embodiments described above.
[0124] For example, logic circuit 801 is used to implement the relevant operations processed by the optical module or the first device in the above method embodiment; input / output interface 802 is used to implement the transmission and / or reception related operations performed by the optical module or the first device in the above method embodiment.
[0125] This application also provides a computer-readable storage medium storing computer instructions for implementing the methods executed by the optical module or the first device in the above-described method embodiments.
[0126] For example, when the computer program is executed by a computer, it enables the computer to implement the methods executed by the optical module or the first device in the various embodiments of the above methods.
[0127] This application also provides a computer program product comprising instructions which, when executed by a computer, implement the methods performed by the optical module or the first device in the above-described method embodiments.
[0128] This application also provides a communication system, including the aforementioned optical module or the first device.
[0129] The explanations and beneficial effects of the relevant contents in any of the devices provided above can be found in the corresponding method embodiments provided above, and will not be repeated here.
[0130] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of apparatus or units may be electrical, mechanical, or other forms.
[0131] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. For example, the computer can be a personal computer, a server, or a network device, etc. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs). For example, the aforementioned available media include, but are not limited to, USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, and other media capable of storing program code.
[0132] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for monitoring an optical module, characterized in that, in, The optical module is plugged into the interface of the first device. The optical module includes a transceiver module, a processing module, and a log generation module. The method includes: The transceiver module receives first information from the first device, and the first information is used to indicate a first time determined by the first device. The processing module parses the first information to obtain the first time. The log generation module records the first log based on the first information.
2. The method according to claim 1, characterized in that, The first device can be any one of wavelength division multiplexing board, optical switch or router.
3. The method according to claim 1 or 2, characterized in that, The initial time of the first log is the first time.
4. The method according to any one of claims 1 to 3, characterized in that, The first log includes at least one of the following information: Optical power information, packet loss information, alarm information, temperature information, circuit information, monitoring information, configuration information, or fault location information.
5. The method according to any one of claims 1 to 4, characterized in that, The optical module further includes a storage module, and the method further includes: The transceiver module receives second information from the first device. The second information is used to request at least one second log. The second information includes identification information, which is used to indicate the type of the at least one second log. The processing module determines the first storage partition in the storage module based on the identification information, and retrieves the at least one second log from the first storage partition; The transceiver module sends the at least one second log to the first device.
6. The method according to claim 5, characterized in that, The type of the at least one second log corresponds to the recording period and / or operation information of the at least one second log.
7. The method according to claim 5 or 6, characterized in that, The first storage partition belongs to the non-volatile memory in the storage module.
8. The method according to any one of claims 1 to 7, characterized in that, Also includes: The transceiver module receives third information from the first device, and the third information is used to request a third log. The transceiver module sends the third log to the first device, and the initial time of the third log is zero.
9. The method according to any one of claims 1 to 8, characterized in that, in: The first information is in the general management interface specification format; or The first information is a multi-source protocol format for a 100G packaged pluggable module.
10. A method for monitoring an optical module, characterized in that, include: The first device generates first information, which is used to indicate a first time determined by the first device. An optical module is plugged into the interface of the first device, and the first time is used for the optical module to record a first log. The first device sends the first information to the optical module.
11. The method according to claim 10, characterized in that, The first device can be any one of wavelength division multiplexing board, optical switch or router.
12. The method according to claim 10 or 11, characterized in that, The initial time of the first log is the first time.
13. The method according to any one of claims 10 to 12, characterized in that, The first log includes at least one of the following information: Optical power information, packet loss information, alarm information, temperature information, circuit information, monitoring information, configuration information, or fault location information.
14. The method according to any one of claims 10 to 13, characterized in that, Also includes: The first device sends second information to the optical module, the second information being used to request at least one second log, wherein the second information includes identification information, the identification information being used to indicate the type of the at least one second log; The first device receives at least one second log from the optical module, wherein the at least one second log is retrieved by the optical module from a first storage partition, which is determined by the optical module based on the identification information.
15. The method according to claim 14, characterized in that, The type of the at least one second log corresponds to the recording period and / or operation information of the second log.
16. The method according to claim 15, characterized in that, The first storage partition belongs to the non-volatile memory in the optical module.
17. The method according to any one of claims 10 to 16, characterized in that, Also includes: The first device sends third information to the optical module, the third information being used to request a third log; The first device receives a third log from the optical module, the initial time of which is zero.
18. The method according to any one of claims 10 to 17, characterized in that, in: The first information is in the general management interface specification format; or The first information is a multi-source protocol format for a 100G packaged pluggable module.
19. An optical module, characterized in that, include: A module or unit for performing the method according to any one of claims 1 to 9.
20. An optical communication device, characterized in that, include: A module or unit for performing the method according to any one of claims 10 to 18.
21. An optical communication device, characterized in that, The device includes a memory and one or more processors, the memory being used to store a computer program; the one or more processors being used to execute the computer program in the memory to cause the device to perform the method as claimed in any one of claims 1 to 9, or to cause the device to perform the method as claimed in any one of claims 10 to 18.
22. A computer program product, characterized in that, The computer program product includes instructions for performing the method as described in any one of claims 1 to 18.
23. A computer-readable storage medium, characterized in that, include: The computer-readable storage medium stores a computer program; when the computer program is run on a computer, it causes the computer to perform the method as described in any one of claims 1 to 18.
24. A chip, characterized in that, The chip is installed in a communication device. The chip includes a processor and a communication interface. The processor reads instructions and runs them through the communication interface, causing the communication device to perform the method as described in any one of claims 1 to 18.
Citation Information
Patent Citations
Real-time logging method for PLC-based control device
CN105629862A
Log processing method and device, electronic device and storage medium
CN107273280A
Log data processing method and device, equipment and storage medium
CN113760847A
Log information transmission control method, electronic equipment and storage medium
CN116049122A
Log recording method and device, electronic equipment and computer readable storage medium
CN116662289A