OMCI message processing methods, devices, equipment and media
By implementing OMCI message replay and testing locally on the ONT, the problems of high testing costs and low efficiency after ONT configuration updates are solved. This enables verification of ONT functions without affecting normal business operations, improving testing efficiency and R&D production efficiency.
Patent Information
- Application Number
- CN202611138679.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-11-17
AI Technical Summary
In existing technologies, after software iteration or customer customization requirements are modified, the Optical Network Unit (ONT) needs to undergo OMCI acceptance testing using dedicated external testing equipment. This results in high testing costs, low efficiency, and the inability to fully reproduce the customer's actual network topology, affecting customer experience and R&D efficiency.
OMCI message replay and testing are implemented locally in ONT. After the configuration is updated, the system switches to replay test mode, reads the OMCI target test message set in the preset local storage area, ignores the verification fields, and performs management entity configuration processing to obtain the replay test results.
Without affecting normal business operations, the functionality of the updated ONT configuration was verified, improving testing efficiency and supporting acceptance verification after version updates, factory automation testing, and on-site problem reproduction for customers.
Smart Images

Figure CN123123216A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical network units, and more particularly to an OMCI message processing method, apparatus, device, and medium. Background Technology
[0002] With the large-scale deployment of Passive Optical Networks (PONs), Optical Network Terminals (ONTs), as user-side access devices, need to complete the management, configuration, and acceptance testing of Optical Line Terminals (OLTs) through the ONT Management and Control Interface (OMCI) protocol. In related technologies, after software iterations, bug fixes, or modifications to customer-customized requirements, the ONT needs to undergo OMCI acceptance testing again in a customer's laboratory environment using dedicated external testing equipment. This external equipment needs to be connected in series between the OLT and the ONT under test, or it can be used to record and play back OMCI messages by connecting external test instruments via ONT optical port mirroring.
[0003] However, dedicated testing equipment is expensive, and connecting test instruments in series or externally cannot fully reproduce the customer's actual network topology and test cases, leading to biased test results. Furthermore, frequently pushing customers to undergo lab acceptance testing negatively impacts customer experience, and the inability to quickly verify whether modified code meets acceptance criteria during the development phase results in low version iteration efficiency and high risk of failing certification. Therefore, there is an urgent need for an OMCI message processing method that does not require external dedicated equipment and can perform OMCI message playback and testing locally on the ONT. Summary of the Invention
[0004] This invention provides an OMCI message processing method, apparatus, device, and medium to solve the problem that OMCI message testing requires external dedicated equipment, resulting in high testing costs and low efficiency in related technologies.
[0005] In a first aspect, the present invention provides an OMCI message processing method, characterized in that it includes: After the ONT configuration is updated, in response to the received message playback test command, the ONT is switched from working mode to playback test mode; In playback test mode, read the OMCI target test message set from the preset local storage area; The validation fields of the OMCI target test message set are ignored. The OMCI target test message set after the verification field is ignored is processed by the management entity configuration to obtain the replay test results, and the ONT is adjusted from the replay test mode to the working mode.
[0006] In some embodiments, the ONT includes a recording / reading component that switches the ONT from a working mode to a playback / test mode, including: Disconnect the message path between the OMCI message transmission channel in the ONT and the ONT optical port; Establish a message path between the recording / reading component and the ONT's OMCI protocol stack.
[0007] In some embodiments, a preset local storage area stores multiple OMCI image test message sets; Read the OMCI target test message set from the preset local storage area, including: Parse the message and replay the test command to obtain the test scenario indication information; Based on the test scenario indication information, the OMCI target test message set is determined from multiple OMCI mirror test message sets, and then the OMCI target test message set is read.
[0008] In some embodiments, the validation field is ignored for the OMCI target test message set, including at least one of the following: Send a verification ignore indication message to the ONT's OMCI protocol stack; Add a checksum ignore flag to the OMCI target test message set.
[0009] In some embodiments, the OMCI target test message set after the verification field is ignored is processed by the management entity configuration to obtain the replay test results, including: Parse the OMCI target test message set after the validation field is ignored to obtain management entity instruction information and entity operation information; Based on the management entity's instruction information, the target management entity is identified; Based on the entity operation information, configuration operations are performed on the target management entity to obtain the replay test results.
[0010] In some embodiments, the method further includes: Before the ONT configuration is updated, receive the OMCI real-time service message set transmitted by the ONT optical port; In response to the message recording command, the OMCI real-time service message set is mirrored and recorded to obtain the OMCI mirror test message set, and the OMCI mirror test message set is stored in the preset local storage area.
[0011] In some embodiments, after obtaining the playback test results, the method further includes: The replay test results are compared with the preset acceptance benchmark data in the preset local storage area to obtain the ONT configuration update verification results.
[0012] In a second aspect, the present invention provides an OMCI message processing apparatus, comprising: The mode adjustment module is used to adjust the ONT from the working mode to the playback test mode in response to the received message playback test command after the ONT configuration is updated. The message reading module is used to read the OMCI target test message set from the preset local storage area in playback test mode; The verification ignore module is used to ignore verification fields in the OMCI target test message set; The result determination module is used to process the management entity configuration of the OMCI target test message set after the verification field is ignored, obtain the replay test results, and adjust the ONT from the replay test mode to the working mode.
[0013] Thirdly, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described OMCI message processing method.
[0014] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described OMCI message processing method.
[0015] In the aforementioned OMCI message processing method, apparatus, device, and medium, after the ONT configuration is updated, in response to the received message replay test command, the ONT is switched from working mode to replay test mode. In replay test mode, the OMCI target test message set from a preset local storage area is read; the verification fields of the OMCI target test message set are ignored; the management entity configuration is processed on the OMCI target test message set after the verification fields are ignored, the replay test result is obtained, and the ONT is switched from replay test mode back to working mode. This method, by switching the ONT from working mode to replay test mode and using the preset OMCI target test message set for message replay testing, verifies the functionality of the ONT after configuration updates without affecting normal business operations, thus improving the testing efficiency after ONT configuration updates. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart of an OMCI message processing method according to an embodiment of the present invention; Figure 2 This is another flowchart of the OMCI message processing method in one embodiment of the present invention; Figure 3 This is another flowchart of the OMCI message processing method in one embodiment of the present invention; Figure 4 This is another flowchart of the OMCI message processing method in one embodiment of the present invention; Figure 5 This is another flowchart of the OMCI message processing method in one embodiment of the present invention; Figure 6 This is a schematic block diagram of an OMCI message processing device according to an embodiment of the present invention; Figure 7 This is a schematic block diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0018] As an example, such as Figure 1 As shown, an OMCI message processing method is provided, including the following steps: S101, after the ONT configuration is updated, responds to the received message playback test command and switches the ONT from working mode to playback test mode; S102, in playback test mode, read the OMCI target test message set from the preset local storage area; S103, perform validation field ignoring processing on the OMCI target test message set; S104, perform management entity configuration processing on the OMCI target test message set after the verification field is ignored, obtain the replay test results, and adjust ONT from replay test mode to working mode.
[0019] As an example, in step S101, after the ONT completes the configuration update and receives the playback test instruction, the mode switching process can be executed to switch the ONT from the working mode of normal business operation to the playback test mode for OMCI function verification, thereby completing the isolation of the operating environment in the two modes.
[0020] The working mode is the normal operation mode of the ONT accessing the passive optical network and carrying user services; the playback test mode is the operation mode of the ONT being removed from the real optical port network environment and performing local OMCI message tests.
[0021] In one embodiment, the mode switching process is atomic, and the normal forwarding of non-OMCI services will not be interrupted during the switching process. After the switching is completed, only the OMCI-related processing flow enters the test state, while the other service modules continue to operate normally.
[0022] In one embodiment, the ONT includes a mode switching component and a recording / reading component. The components can be implemented based on a Virtual Ethernet Interface Point (VEIP). The mode switching component is responsible for performing mode switching actions and completing the switching between the working mode and the playback test mode by controlling the gating state of the VEIP logical interface.
[0023] It should be understood that configuration updates can include ONT software upgrades, parameter adjustments, or changes to management entities, and this disclosure does not limit such operations.
[0024] As an example, in step S102, in the playback test mode, the ONT's pre-allocated dedicated storage area can be accessed to read the OMCI target test message set required for this test, providing test data for subsequent protocol processing.
[0025] The default local storage area is an independent storage partition in the ONT local flash memory or file system, which is specifically used to store message data related to OMCI testing.
[0026] In one embodiment, during the process of reading the message set, the integrity of the stored message data is checked to confirm that the message set has not been damaged or tampered with before it is loaded into memory, so as to avoid damaged messages causing abnormal test process.
[0027] In one embodiment, the recording and reading component is responsible for performing the message reading action. It can read the OMCI target test message set from the preset local storage area and cache the messages in the memory queue for subsequent processing.
[0028] As an example, in step S103, the read OMCI target test message set can be ignored by performing a verification field ignoring process. This avoids the OMCI protocol stack from discarding historically stored OMCI target test message sets because the verification value does not match the current system operating state when verifying the validity of the fields of the OMCI target test message set.
[0029] The handling of ignoring verification fields applies only to the OMCI target test message set used in this replay. It will not modify the system's default verification rules and will not affect the verification process of other normal business messages.
[0030] In one embodiment, the ignoring of verification fields does not tamper with the service configuration content carried by the OMCI target test message set. It only temporarily adapts the verification check logic to ensure the integrity of the management entity configuration information carried by the OMCI target test message set.
[0031] As an example, in step S104, the OMCI target test message set with the verification field ignored can be input into the OMCI protocol stack for management entity configuration processing, and the configuration operation of the corresponding management entity can be completed. After all the OMCI target test message sets have been processed, the playback test result is obtained, and then the ONT is adjusted from the playback test mode back to the working mode.
[0032] The management entity is a logical entity defined in the OMCI protocol that carries various service configurations of the ONT. The replay test results are used to characterize whether the current version of the ONT can process OMCI configuration messages as expected. After the mode adjustment is completed, the ONT restores its normal service carrying and configuration management capabilities.
[0033] In one embodiment, when processing the OMCI target test message set, the messages can be sent to the OMCI protocol stack frame by frame in the original order of message storage to avoid the protocol state machine timeout or processing abnormality caused by the out-of-order OMCI target test message set; after the last frame of the OMCI target test message set is processed and the OMCI protocol stack state is stable, the configuration status of all current management entities is collected as the replay test result.
[0034] In one embodiment, after the mode switching component has processed all the OMCI target test message sets, it performs a state reset and restores the VEIP logical interface to the path configuration in the working mode. The recording and reading component releases the memory resources occupied by the cached OMCI target test message sets and restores the verification rules for OMCI messages, thus completing the switch of ONT from playback test mode to working mode.
[0035] In summary, this disclosure proposes an OMCI message processing method, including: after an ONT configuration update, responding to a received message replay test command, switching the ONT from working mode to replay test mode; in replay test mode, reading the OMCI target test message set from a preset local storage area; ignoring the verification fields in the OMCI target test message set; performing management entity configuration processing on the OMCI target test message set after ignoring the verification fields, obtaining the replay test result, and switching the ONT from replay test mode back to working mode. This method, by switching the ONT from working mode to replay test mode and using the preset OMCI target test message set for message replay testing, verifies the functionality of the ONT after configuration updates without affecting normal business operations. Furthermore, this method can not only be used for acceptance verification after version updates but also supports scenarios such as ONT factory automated testing, OMCI protocol learning and debugging, and customer site problem reproduction, reducing testing costs while improving R&D and production efficiency.
[0036] In one embodiment, the ONT includes a recording / reading component, such as... Figure 2 As shown, step S101 involves switching the ONT from the working mode to the playback test mode, including: S201, disconnect the message path between the OMCI message transmission channel in the ONT and the ONT optical port; S202, establish a message path between the recording / reading component and the ONT's OMCI protocol stack.
[0037] As an example, in step S201, the logical connection between the OMCI dedicated message channel and the optical port can be cut off by the mode switching component, blocking the OMCI messages from the optical port direction from entering the OMCI protocol stack, and at the same time preventing the OMCI messages generated by the protocol stack during playback from being sent out from the optical port direction.
[0038] The OMCI message transmission channel is a logical channel in the ONT specifically for transmitting OMCI management messages. It is logically isolated from the transmission channels for Internet access, IPTV, TR069, and other service messages. Disconnecting this channel will not affect the normal forwarding of other service messages.
[0039] In one embodiment, before disconnecting the path, the system waits for the currently transmitting optical port OMCI message to complete processing to avoid the OMCI message being truncated and causing abnormal protocol stack status. After the path is disconnected, the OMCI message received by the optical port side will be directly discarded and will not enter the OMCI protocol stack to interfere with the playback test process.
[0040] In one embodiment, the mode switching component controls the selection state of the OMCI message path, disconnecting only the logical path corresponding to the OMCI message while keeping the transmission paths corresponding to other service messages connected, ensuring that the user's normal data services are not affected by the mode switching.
[0041] As an example, in step S202, the logical path between the recording / reading component and the OMCI protocol stack can be selected by the mode switching component, and a dedicated transmission path from the locally stored OMCI test messages to the OMCI protocol stack can be established, so that the OMCI target test message set read by the recording / reading component can be directly input into the OMCI protocol stack for processing.
[0042] This channel is a dedicated message channel in the playback test mode, and it is only connected during the playback test. In the working mode, this channel is disconnected by default to avoid local storage of abnormal messages from interfering with the normal operation of the OMCI protocol stack.
[0043] In one embodiment, after the path is established, a connectivity test is performed first to confirm that the test probe messages sent by the recording and reading component can reach the OMCI protocol stack normally before starting the subsequent OMCI target test message set reading and sending process to avoid the test process being interrupted due to path abnormalities.
[0044] In one embodiment, after the channel is established, the recording and reading component completes the sending initialization, sorts the OMCI target test message set to be sent in the memory queue according to the storage order, and waits for it to be sent. The OMCI protocol stack switches to the test receiving state, ready to receive test messages from the recording and reading component.
[0045] It should be understood that this disclosure does not limit the execution order of steps S201 and S202, and can be flexibly adjusted according to actual testing needs. Step S202 can be executed first and then step S201, step S201 can be executed first and then step S202, or they can be executed simultaneously.
[0046] In one embodiment, a preset local storage area stores multiple OMCI image test message sets, such as Figure 3 As shown, step S102, which involves reading the OMCI target test message set from a preset local storage area, includes: S301, parse the message playback test command to obtain the test scenario indication information; S302, based on the test scenario indication information, determines the OMCI target test message set from multiple OMCI mirror test message sets, and reads the OMCI target test message set.
[0047] As an example, in step S301, after the recording and reading component receives the message playback test instruction, it parses the instruction content and extracts the test scenario indication information carried in the instruction to identify the scenario corresponding to the test message set to be used in this playback.
[0048] Among them, the test scenario indication information is the identification information used to uniquely identify the test scenario, which may include customer identifier, acceptance type, version number and other information. Different test scenarios correspond to different customer acceptance environments and different OMCI configuration methods.
[0049] In one embodiment, the message playback test command can be validated in terms of command format. If the command format is invalid or does not carry valid test scenario indication information, an command error message is returned and the subsequent playback process is not started, so as to avoid reading the wrong message set and causing the test to be invalid.
[0050] As an example, in step S302, the recording and reading component matches the corresponding scenario's message set in multiple OMCI image test message sets stored in the preset local storage area based on the parsed test scenario indication information, determines the matched message set as the OMCI target test message set for this test, and completes the reading and loading of the OMCI target test message set.
[0051] Among them, the OMCI mirror test message set is a collection of OMCI messages obtained by mirror recording in the acceptance scenario. Each OMCI mirror test message set corresponds to a unique test scenario identifier, which corresponds one-to-one with the test scenario instruction information.
[0052] In one embodiment, a message set index table is maintained in the preset local storage area, which records information such as the scene identifier, storage address, message length, and recording time corresponding to each OMCI image test message set. The recording and reading component can quickly match the OMCI image test message set of the corresponding scene by querying the index table, without having to traverse the entire storage partition, thus improving reading efficiency.
[0053] In one embodiment, after determining the OMCI target test message set, the integrity of the OMCI target test message set is first checked to confirm that the OMCI target test message set is not damaged or tampered with. Then, the OMCI target test message set is loaded into the memory queue to wait for subsequent processing. If the OMCI image test message set corresponding to the scenario cannot be matched, or the OMCI target test message set fails the verification, a test failure prompt is returned, and the current playback process ends.
[0054] In one embodiment, step S103, which is to ignore the verification field of the OMCI target test message set, can be to send verification ignore indication information to the ONT's OMCI protocol stack, or to add a verification ignore flag to the OMCI target test message set.
[0055] In other words, the purpose of ignoring the verification field is to allow the ONT to skip the field verification of the OMCI target test message set, thus preventing historically stored OMCI target test message sets from being discarded due to the verification value not matching the current ONT system state. The two processing methods mentioned above are implemented for protocol stack configuration and message marking respectively, which can be adapted to different ONT system architectures. At the same time, both methods only apply to the OMCI target test message set of this playback and will not modify the ONT's default verification rules, nor will they affect the verification process of other normal business messages.
[0056] Among them, the verification ignore indication information is a temporary configuration instruction for the OMCI protocol stack and the corresponding driver, and the verification ignore flag can be a special identifier added to the reserved field of the OMCI message.
[0057] Optionally, when using the method of sending verification ignore indication information to the OMCI protocol stack, the recording and reading component sends a temporary verification ignore indication to the OMCI protocol stack, PON MAC driver, Ethernet driver, etc. before sending the OMCI target test message set, configuring all layers of the entire link to skip the verification field check of the OMCI target test message set during this playback process; after all OMCI target test message sets have been processed, the recording and reading component automatically sends a verification recovery indication to restore the verification rules of each layer to the default configuration, so as to avoid affecting the processing of subsequent normal business messages.
[0058] For example, the verification ignore instruction can carry the characteristics of the message being replayed (such as the message source port or specific characteristic value). The driver and protocol stack will only skip the verification for messages that match the characteristics, without needing to disable the verification function globally, which can further reduce the impact on normal business.
[0059] Optionally, when adding a checksum ignore flag to the OMCI target test message set, the recording and reading component adds a fixed value checksum ignore flag to the reserved bytes of each OMCI message frame after reading the OMCI target test message set. When the corresponding driver and OMCI protocol stack recognize that the message carries this flag, they automatically skip the checksum field check of the message. This method does not require modification of the global configuration of the driver and protocol stack, and only applies to OMCI target test message sets carrying the flag. No additional recovery operation is required after playback.
[0060] For example, the check ignore flag can be set to a fixed value of 0xA5 in the reserved field of the OMCI message header. When the driver and protocol stack recognize this value during the message parsing stage, they will directly skip the check field calculation and comparison process and submit the message to the OMCI protocol stack for processing.
[0061] It should be understood that the two verification ignoring methods can be used in combination. The recording and reading component sends a temporary verification ignoring instruction to the full-link driver and protocol stack, and adds a verification ignoring flag to each frame of the OMCI target test message set. This double guarantee ensures that the OMCI target test message set will not be discarded due to verification issues, thereby improving the stability of the playback process.
[0062] In one embodiment, such as Figure 4 As shown, step S104 involves processing the OMCI target test message set after ignoring the verification fields using the management entity configuration method to obtain the replay test results, including: S401, parse the OMCI target test message set after the verification field is ignored to obtain the management entity instruction information and entity operation information; S402, Based on the management entity instruction information, determine the target management entity; S403, based on entity operation information, performs configuration operations on the target management entity and obtains the replay test results.
[0063] As an example, in step S401, the OMCI protocol stack receives the OMCI target test message sent by the recording and reading component frame by frame, parses the OMCI message content according to the OMCI protocol standard format, and extracts the management entity instruction information and entity operation information from the message.
[0064] The management entity indication information is used to identify the management entity to be operated, including fields such as management entity type and management entity instance number; the entity operation information is used to instruct the management entity to perform actions, including fields such as operation type and operation parameters.
[0065] In one embodiment, the format of the OMCI message is checked during the message parsing process. If the message format does not conform to the OMCI protocol standard, an error log is recorded and the OMCI target test message frame is skipped. The next OMCI target test message frame is then processed to avoid interruption of the entire playback process due to a single message error.
[0066] For example, the parsed entity operation information may include standard OMCI operation types such as management entity creation, management entity deletion, attribute value configuration, attribute value reading, and alarm configuration. The operation parameters include the attribute configuration values corresponding to each management entity.
[0067] As an example, in step S402, the OMCI protocol stack matches the corresponding management entity in the management entity instance table of the ONT based on the parsed management entity indication information, and determines the matched management entity as the target management entity for this operation.
[0068] The management entity instance table is an information table maintained by the OMCI protocol stack that records the type, instance number, and attribute values of all management entities created in the ONT.
[0069] In one embodiment, if the target management entity identified by the management entity indication information does not exist, and the entity operation information is a management entity creation operation, the OMCI protocol stack creates a new management entity instance according to the management entity type and assigns an instance number to the new instance; if the target management entity does not exist and the operation type is not a creation operation, an operation error log is recorded, and the processing of the OMCI target test message frame is skipped.
[0070] For example, if the management entity indication information is identified as "WAN connection management entity, instance number 2", the OMCI protocol stack will look up the management entity of type WAN connection and instance number 2 in the management entity instance table and identify it as the target management entity.
[0071] As an example, in step S403, the OMCI protocol stack performs corresponding configuration operations on the determined target management entity based on the parsed entity operation information. After all the OMCI target test message sets have been processed, the final state of all management entities is collected as the replay test result.
[0072] In one embodiment, during message processing, the uplink response messages generated by the OMCI protocol stack are directly discarded and not sent to the optical port to avoid response timeout issues caused by path disconnection in playback mode; the recording and reading component sends messages frame by frame according to the original time interval stored in the OMCI target test message set to ensure that the processing timing of the OMCI protocol stack is consistent with the actual acceptance scenario.
[0073] For example, if the entity operation information is "set WAN connection VLAN to 100", the OMCI protocol stack will modify the VLAN attribute of the target WAN connection management entity and configure the VLAN value to 100. After all OMCI target test packets are processed, the attribute values of all management entities will be collected to generate the replay test results.
[0074] In one embodiment, after obtaining the playback test results, the OMCI protocol stack sends the playback test results to the recording and reading component cache, which can be used for subsequent result verification processes after the mode switching is completed.
[0075] In one embodiment, the method further includes a pre-configuration OMCI message recording process to provide a source of test messages for subsequent playback tests, such as... Figure 5 As shown, it also includes: S501 receives the OMCI real-time service message set transmitted by the ONT optical port before the ONT configuration is updated. S502, in response to the message recording command, performs mirror recording of the OMCI real-time service message set, obtains the OMCI mirror test message set, and stores the OMCI mirror test message set in the preset local storage area.
[0076] As an example, in step S501, when the ONT is in normal working mode, the mirror recording component obtains the real-time transmitted OMCI service messages from the OMCI message transmission channel on the optical port side based on the virtual Ethernet interface point logical interface, forming an OMCI real-time service message set.
[0077] Among them, the OMCI real-time service message set is the set of uplink and downlink OMCI messages that the ONT interacts with the OLT when it is normally accessing the PON network, including the complete OMCI interaction process in real scenarios such as customer acceptance and service configuration.
[0078] In one embodiment, the process by which the mirror recording component acquires the OMCI real-time service message set is a message mirroring process. It only copies a copy of the OMCI message, does not tamper with or truncate the original OMCI message, and does not affect the normal forwarding and processing of the OMCI message, thus ensuring that the normal services of the ONT are not affected by the recording process.
[0079] For example, during the ONT network access acceptance process at the customer's site, all OMCI configuration messages and response messages exchanged between the ONT and OLT will be collected by the mirror recording component to form a complete set of real-time OMCI service messages for the acceptance scenario.
[0080] As an example, in step S502, after receiving the message recording instruction, the mirror recording component stores the collected OMCI real-time service message set in the order of receipt to form the OMCI mirror test message set for the corresponding scenario, and writes the OMCI mirror test message set into the preset local storage area.
[0081] The message recording command can be triggered by the local command line or issued by the remote management channel. The command carries the test scenario indication information for this recording, which is used to identify the customer, acceptance type and other scenario information corresponding to the OMCI image test message set.
[0082] In one embodiment, when storing the OMCI image test message set, the image recording component assigns a unique scene identifier to the OMCI image test message set, associates and stores metadata such as scene identifier, recording time, and ONT version information with the OMCI image test message set, and updates the message set index table in the preset local storage area to facilitate quick retrieval of the corresponding message set during subsequent playback; after recording is completed, the configuration status of all current ONT management entities is recorded synchronously as the acceptance benchmark data corresponding to the OMCI image test message set, and is associated and stored with the OMCI image test message set.
[0083] For example, when recording the network access acceptance scenario message of customer A, the mirror recording component assigns the scenario identifier "customer A - network access acceptance" to the OMCI mirror test message set, stores the messages in the order of receipt to the preset local storage area, and records the management entity configuration when the acceptance is passed as the baseline data. After subsequent version updates, the OMCI mirror test message set can be called for playback testing.
[0084] In one embodiment, the mirror recording component can filter the OMCI real-time service message set according to the configuration of the recording instruction, and record only OMCI messages of a specified direction and type, thereby reducing the storage space occupied by the OMCI mirror test message set; if the storage capacity is insufficient during the recording process, the earliest unprotected OMCI mirror test message set can be automatically deleted to ensure that the new recording process is executed normally.
[0085] In one embodiment, in step S104, after obtaining the playback test results, the playback test results can be compared with the preset acceptance benchmark data in the preset local storage area to obtain the ONT configuration update verification results.
[0086] As an example, consistency verification can be performed by comparing the ONT management entity status obtained from the replay with the baseline status when the corresponding scenario passed acceptance, field by field, to verify whether the current version of the ONT can correctly process the OMCI message of the corresponding scenario and to determine whether there are compatibility issues after the version update.
[0087] The preset acceptance benchmark data consists of the configuration information of all management entities in the ONT acceptance-passed state when the corresponding OMCI image test message set is recorded. It is stored in the preset local storage area in a one-to-one correspondence with the OMCI image test message set. The configuration update verification result is used to characterize whether the current version of ONT can pass the OMCI acceptance of the corresponding scenario.
[0088] In one embodiment, the recording and reading component first reads the associated preset acceptance benchmark data from a preset local storage area based on the scenario identifier corresponding to the OMCI target test message set being replayed. Then, it compares the attribute values of each management entity recorded in the replay test results with the attribute values of the corresponding management entities in the benchmark data field by field. If the attribute values of all key fields are completely consistent, the configuration update verification is deemed to have passed, indicating that the current version of ONT can pass the scenario acceptance normally. If there are inconsistencies in the attribute values of key fields, the verification is deemed to have failed, and information such as the inconsistent management entity identifiers and attribute value differences is recorded for R&D personnel to locate version issues.
[0089] For example, in the Internet access service acceptance scenario, the preset acceptance benchmark data records key attributes such as VLAN configuration, port binding relationship, and QoS parameters of the WAN connection management entity. After the playback is completed, the corresponding attributes of the WAN connection management entity in the playback test results are compared with the benchmark data. If all parameters are consistent, the Internet access service configuration function is determined to be normal and the verification is passed.
[0090] In one embodiment, the consistency verification can be configured with verification granularity according to test requirements. It can select to verify all management entity attributes or only select to verify key fields of management entities related to core business, thereby reducing verification time. After the verification is completed, the recording and reading component can store the configuration update verification results, difference information, replay logs and other content to a preset local storage area, or report them to the operation and maintenance platform through the management channel, so as to facilitate the traceability of version issues.
[0091] In one embodiment, if the configuration update verification fails, the recording and reading component can automatically trigger the packaging of exception logs, which packages and stores the protocol stack logs, message interaction records, and configuration difference information during the playback process to help locate OMCI function problems introduced by version iteration.
[0092] In one embodiment, an OMCI message processing apparatus is provided, which corresponds one-to-one with the OMCI message processing methods described in the above embodiments. For example... Figure 6 As shown, the OMCI message processing device includes a mode adjustment module 601, a message reading module 602, a checksum ignoring module 603, and a result determination module 604. Detailed descriptions of each functional module are as follows: The mode adjustment module 601 is used to adjust the ONT from the working mode to the playback test mode in response to the received message playback test command after the ONT's configuration is updated. The message reading module 602 is used to read the OMCI target test message set in the preset local storage area in the playback test mode; The verification ignore module 603 is used to ignore verification fields in the OMCI target test message set. The result determination module 604 is used to perform management entity configuration processing on the OMCI target test message set after the verification field is ignored, obtain the replay test results, and adjust the ONT from the replay test mode to the working mode.
[0093] In one embodiment, the ONT includes a recording and reading component, and the adjustment module 601 is further configured to disconnect the message path between the OMCI message transmission channel in the ONT and the ONT optical port; Establish a message path between the recording / reading component and the ONT's OMCI protocol stack.
[0094] In one embodiment, a preset local storage area stores multiple OMCI image test message sets. The message reading module 602 is further configured to read the OMCI target test message set from the preset local storage area, including: Parse the message and replay the test command to obtain the test scenario indication information; Based on the test scenario indication information, the OMCI target test message set is determined from multiple OMCI mirror test message sets, and then the OMCI target test message set is read.
[0095] In one embodiment, the verification ignore module 603 is further configured to perform at least one of the following: send verification ignore indication information to the OMCI protocol stack of the ONT; Add a checksum ignore flag to the OMCI target test message set.
[0096] In one embodiment, the result determination module 604 is further configured to parse the OMCI target test message set after the verification field ignoring processing to obtain management entity instruction information and entity operation information; Based on the management entity's instruction information, the target management entity is identified; Based on the entity operation information, configuration operations are performed on the target management entity to obtain the replay test results.
[0097] In one embodiment, the mode adjustment module 601 is further configured to receive the OMCI real-time service message set transmitted by the ONT optical port before the ONT configuration is updated. In response to the message recording command, the OMCI real-time service message set is mirrored and recorded to obtain the OMCI mirror test message set, and the OMCI mirror test message set is stored in the preset local storage area.
[0098] In one embodiment, the result determination module 604 is further configured to perform consistency verification between the replay test results and the preset acceptance benchmark data in the preset local storage area to obtain the configuration update verification result of ONT.
[0099] This invention provides an OMCI message processing device, comprising: a mode adjustment module, used to adjust the ONT from working mode to playback test mode in response to a received message playback test command after the ONT configuration is updated; a message reading module, used to read the OMCI target test message set from a preset local storage area in playback test mode; a verification ignoring module, used to perform verification field ignoring processing on the OMCI target test message set; and a result determination module, used to perform management entity configuration processing on the OMCI target test message set after verification field ignoring processing, obtain the playback test result, and adjust the ONT from playback test mode back to working mode. This device, by switching the ONT from working mode to playback test mode and using the preset OMCI target test message set for message playback testing, verifies the functionality of the ONT after configuration updates without affecting normal business operations, thereby improving the testing efficiency after ONT configuration updates.
[0100] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database is used for data employed in the OMCI message processing method. The network interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements an OMCI message processing method.
[0101] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement an OMCI message processing method.
[0102] In one embodiment, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program that, when executed by a processor, implements an OMCI message processing method.
[0103] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), IAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0104] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0105] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. An OMCI message processing method, applied to ONT, characterized in that, include: After the configuration of the ONT is updated, in response to the received message playback test command, the ONT is switched from working mode to playback test mode; In the playback test mode, the OMCI target test message set in the preset local storage area is read; The verification fields of the OMCI target test message set are ignored. The OMCI target test message set after the verification field is ignored is processed by the management entity configuration to obtain the replay test results, and the ONT is adjusted from the replay test mode to the working mode.
2. The method according to claim 1, characterized in that, The ONT includes a recording / reading component, and the step of switching the ONT from the working mode to the playback / test mode includes: Disconnect the message path between the OMCI message transmission channel in the ONT and the ONT optical port; Establish a message path between the recording / reading component and the OMCI protocol stack of the ONT.
3. The method according to claim 1, characterized in that, The preset local storage area stores multiple OMCI image test message sets; The step of reading the OMCI target test message set from the preset local storage area includes: Parse the message playback test command to obtain the test scenario indication information; Based on the test scenario indication information, the OMCI target test message set is determined from the multiple OMCI mirror test message sets, and the OMCI target test message set is read.
4. The method according to claim 1, characterized in that, The process of ignoring validation fields in the OMCI target test message set includes at least one of the following: Send a verification ignore indication message to the OMCI protocol stack of the ONT; Add a checksum ignore flag to the OMCI target test message set.
5. The method according to claim 1, characterized in that, The OMCI target test message set after ignoring the verification fields is processed by the management entity configuration to obtain the replay test results, including: Parse the OMCI target test message set after the verification field is ignored to obtain management entity instruction information and entity operation information; Based on the management entity indication information, the target management entity is determined; Based on the entity operation information, configuration operations are performed on the target management entity to obtain the replay test results.
6. The method according to claim 1, characterized in that, The method further includes: Before the configuration update of the ONT, receive the OMCI real-time service message set transmitted by the ONT optical port; In response to the message recording command, the OMCI real-time service message set is mirrored and recorded to obtain the OMCI mirror test message set, and the OMCI mirror test message set is stored in the preset local storage area.
7. The method according to claim 1, characterized in that, After obtaining the playback test results, the following is also included: The playback test results are compared with the preset acceptance benchmark data in the preset local storage area to obtain the configuration update verification result of the ONT.
8. An OMCI message processing device, characterized in that, include: The mode adjustment module is used to adjust the ONT from the working mode to the playback test mode in response to the received message playback test command after the ONT's configuration is updated. The message reading module is used to read the OMCI target test message set from a preset local storage area in the playback test mode; The verification ignore module is used to ignore verification fields in the OMCI target test message set. The result determination module is used to perform management entity configuration processing on the OMCI target test message set after the verification field is ignored, obtain the replay test result, and adjust the ONT from the replay test mode to the working mode.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the OMCI message processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the OMCI message processing method as described in any one of claims 1 to 7.
