CN111314805A - Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system - Google Patents
Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system Download PDFInfo
- Publication number
- CN111314805A CN111314805A CN202010108816.1A CN202010108816A CN111314805A CN 111314805 A CN111314805 A CN 111314805A CN 202010108816 A CN202010108816 A CN 202010108816A CN 111314805 A CN111314805 A CN 111314805A
- Authority
- CN
- China
- Prior art keywords
- omci
- message
- program
- onu
- text
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q2011/0079—Operation or maintenance aspects
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention provides a debugging method and a device for intercommunication OMCI messages of a GPON system, which are characterized in that the OMCI messages are reserved with 48 bytes and effectively and cleanly stored in a text file; uploading the message to an ONU (optical network unit), operating an OMCI (operation management interface) program of the ONU, reading the message by a debugging thread, and sending the message to the OMCI program one by one; analyzing the message through an analysis module to obtain an analysis result and storing the analysis result in an LOG file; analyzing the LOG file to obtain a non-support message for response, modifying the OMCI program, and repeating the steps until the non-support message is processed. The technical problems that due to the complexity of an OMCI protocol, interpretation needs to be carried out by manually contrasting OMCI standards, the efficiency is low, and the process is complicated are solved, so that the OMCI message of any ONU is simulated and analyzed on the ONU, the deviation is quickly identified, the intercommunication and debugging requirements of arrangement personnel are reduced, and the technical effect of solving the ONU intercommunication efficiency is improved.
Description
Technical Field
The invention relates to the technical field of OMCI protocol management of a GPON system, in particular to a debugging method and a debugging device for OMCI message intercommunication of the GPON system.
Background
The GPON (Gigabit-Capable Passive Optical Networks) technology is a broadband Passive Optical integrated access standard based on ITU g.984.x standard, and is a mainstream broadband access technology at present. The omci (ONU Management and control interface) is an information interaction protocol defined in ITU g.984.4 standard, and is used for OLT Management of ONUs in a GPON network, including configuration Management, fault Management, performance Management, security Management, and the like. The ITU G.984.4 standard defines an OMCI management interface to comprise an OLT and an ONU various message encoding formats and a message interaction process, and in order to meet the GPON new function requirement, the ITU G.988 standard revises and expands the G.984 standard.
Although the ITU has detailed definitions of the OMCI protocol, due to the complexity of the OMCI protocol itself and the ambiguity in description of some technical details of the relevant protocol, there is a deviation in the standard understanding between equipment vendors, which causes difficulties in the interworking between the OLT and the ONU; in addition, when the functions required by the OLT are not defined in the OMCI protocol standard ITU g.984 or ITU g.988, the OLT vendor may extend the OMCI management entity, even over an existing management entity, which prevents the OLT from interworking with third party vendors ONUs. For the ONU, the ONU can be normally used only through the intercommunication and the butt joint of the OLT, otherwise, the ONU can not normally open the service.
In use of the ONUs, a plurality of OLT manufacturers need to be docked, and often, the software versions of the OLTs in different regions of one OLT manufacturer are different, and even the software versions of the same OLT in different periods may be different, which leads to frequent demands of the ONUs for intercommunicating and docking the OLTs. Due to the difference of processing of an OLT manufacturer on an OMCI protocol, an OMCI message of a third-party ONU which is successfully connected with the OLT needs to be captured for analysis, and due to the fact that the captured OMCI message is in a hexadecimal format and the complexity of the OMCI protocol, readability is poor, analysis efficiency is low, and errors are prone to occurring.
Disclosure of Invention
The embodiment of the invention provides a debugging method and a debugging device for intercommunication OMCI messages of a GPON system, and solves the technical problems that due to the complexity and poor readability of an OMCI protocol, interpretation needs to be carried out by manually contrasting OMCI specifications, the efficiency is low, and the process is complicated.
In view of the foregoing problems, embodiments of the present application are provided to provide a method and an apparatus for debugging an OMCI message interworking by a GPON system.
In a first aspect, the present invention provides a method for debugging an OMCI message communicated between GPON systems, where the method includes: step 1: preprocessing an OMCI message, storing the OMCI message in a text file, and obtaining an OMCI message text which is effective net storage of 48 bytes; step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one; and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file; and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported; and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed.
Preferably, the parsing the OMCI message text by the parsing module to obtain a parsing result, and storing the parsing result in a LOG file includes: analyzing the received OMCI message text item by item according to an OMCI protocol standard and an OMCI program ME library, wherein the OMCI message text item comprises a message identifier, a message type, an equipment identifier, a message identifier and message content; when the OMCI message text is a message from the ONU to the OLT, only the OMCI message is analyzed and no response processing is carried out, and an analysis result is stored in an LOG file; and when the OMCI message text is a message from the OLT to the ONU, analyzing the OMCI message and performing response processing, and storing analysis combination and response information in an LOG file.
Preferably, the LOG file includes an ME ID, an ME instance number, an ME attribute value, and an ME behavior that are not supported.
Preferably, the interface for sending the OMCI message text by the debugging thread is consistent with the OMCI message interface for receiving the OLT OMCI message by the OMCI program.
Preferably, the answering the unsupported message and modifying the OMCI program includes: and responding the unsupported message according to a method of OMCI message text in the direction from the ONU to the OLT, and modifying the OMCI program according to an analysis result of the OMCI message text in the direction from the ONU to the OLT.
Preferably, before the OMCI message text is analyzed by the analysis module, the method includes: and carrying out legality verification on the received OMCI message text through an OMCI program to obtain a verification result, and when the verification result fails, not carrying out subsequent analysis and response on the OMCI message text.
Preferably, the length of the OMCI message text is 48 bytes, and the devicedentifier in the OMCI message text is 0x 0A.
In a second aspect, the present invention provides a device for debugging an OMCI message communicated between GPON systems, where the device includes:
the OMCI message processing device comprises a first obtaining unit, a second obtaining unit and a processing unit, wherein the first obtaining unit is used for preprocessing an OMCI message, storing the OMCI message in a text file and obtaining an OMCI message text, and the OMCI message text is effective net storage of 48 bytes;
the first execution unit is used for uploading the OMCI message text to the ONU and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and sent to the OMCI program one by one;
the second obtaining unit is used for analyzing the OMCI message text through the analysis module, obtaining an analysis result and storing the analysis result in an LOG file;
a third obtaining unit, configured to obtain, according to the LOG file, a non-supported message, where the non-supported message is a message of an ME ID, an ME instance number, an ME attribute value, and an ME behavior that are not supported;
and the second execution unit is used for responding the message which is not supported, modifying the OMCI program, and repeatedly operating the first execution unit, the second obtaining unit and the third obtaining unit until all the messages which are not supported are processed.
Preferably, the apparatus further comprises:
the first analysis unit is used for analyzing the received OMCI message text one by one according to an OMCI protocol standard and an OMCI program ME library, and the received OMCI message text comprises a message identifier, a message type, an equipment identifier, a message identifier and message content;
a third execution unit, configured to, when the OMCI message text is a message from the ONU to the OLT, analyze only the OMCI message without performing response processing, and store an analysis result in an LOG file;
and the fourth execution unit is used for analyzing and responding the OMCI message when the OMCI message text is a message from the OLT to the ONU, and storing analysis combination and response message in the LOG file.
Preferably, the LOG file includes an ME ID, an ME instance number, an ME attribute value, and an ME behavior that are not supported.
Preferably, the interface for sending the OMCI message text by the debugging thread is consistent with the OMCI message interface for receiving the OLT OMCI message by the OMCI program.
Preferably, the apparatus further comprises:
and the fifth execution unit is used for responding the unsupported message according to a method of OMCI message text in the direction from the ONU to the OLT, and modifying the OMCI program according to an analysis result of the OMCI message text in the direction from the ONU to the OLT.
Preferably, the apparatus further comprises:
and the sixth execution unit is used for carrying out validity check on the received OMCI message text through an OMCI program to obtain a check result, and when the check result fails, the OMCI message text is not subjected to subsequent analysis and response.
Preferably, the length of the OMCI message text is 48 bytes, and the devicedentifier in the OMCI message text is 0x 0A.
In a third aspect, the present invention provides a debugging apparatus for communicating OMCI messages in a GPON system, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the following steps when executing the program: step 1: preprocessing an OMCI message, storing the OMCI message in a text file, and obtaining an OMCI message text which is effective net storage of 48 bytes; step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one; and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file; and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported; and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: step 1: preprocessing an OMCI message, storing the OMCI message in a text file, and obtaining an OMCI message text which is effective net storage of 48 bytes; step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one; and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file; and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported; and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the invention provides a method and a device for debugging OMCI messages communicated with a GPON system, which are implemented through the following steps: preprocessing the OMCI message, and reserving 48 bytes of effective net storage as a text file after the processing; step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one; and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file; and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported; and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed. The OMCI message in the hexadecimal format is simulated and analyzed through the OMCI program, the intercommunication between the ONU and the OLT can be verified at any time without being limited by OLT hardware, the human resource expenditure and the hardware expenditure are effectively saved, meanwhile, the OMCI message of a third-party ONU can be quickly analyzed, which ME IDs, ME example numbers, ME attributes and ME behaviors are not supported and which ME processing has differences are identified, and the efficiency of solving the ONU intercommunication problem is greatly improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Fig. 1 is a schematic flowchart of a method for debugging an OMCI message communicated by a GPON system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a debugging apparatus for communicating OMCI messages in a GPON system in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of another debugging apparatus for communicating OMCI messages in a GPON system according to an embodiment of the present invention.
Description of reference numerals: a first obtaining unit 11, a first executing unit 12, a second obtaining unit 13, a third obtaining unit 14, a second executing unit 15, a bus 300, a receiver 301, a processor 302, a transmitter 303, a memory 304, and a bus interface 306.
Detailed Description
The embodiment of the invention provides a debugging method and a debugging device for intercommunication OMCI (operation management interface) messages of a GPON (gigabit Passive optical network) system, which are used for solving the technical problems of low efficiency and complicated process because the OMCI protocol has low complexity and poor readability and needs to be interpreted by manually contrasting OMCI specifications.
The technical scheme provided by the invention has the following general idea:
step 1: preprocessing an OMCI message, storing the OMCI message in a text file, and obtaining an OMCI message text which is effective net storage of 48 bytes; step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one; and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file; and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported; and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed. The method achieves the purposes of simulating and analyzing the OMCI message in the hexadecimal format through the OMCI program, can verify the intercommunication between the ONU and the OLT at any time without being limited by OLT hardware, effectively saves the expenditure of human resources and hardware, can quickly analyze the OMCI message of the third-party ONU at the same time, and identifies which ME IDs, ME example numbers, ME attributes and ME behaviors are not supported, and which ME processes have differences, thereby greatly improving the technical effect of solving the ONU intercommunication efficiency.
The technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are described in detail in the technical solutions of the present application, and are not limited to the technical solutions of the present application, and the technical features in the embodiments and examples of the present application may be combined with each other without conflict.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example one
Fig. 1 is a flowchart illustrating a method for debugging an OMCI message communicated by a GPON system according to an embodiment of the present invention. As shown in fig. 1, an embodiment of the present invention provides a method for debugging an OMCI message interworking with a GPON system, where the method includes:
step 1: and preprocessing the OMCI message, storing the preprocessed OMCI message in a text file, and obtaining an OMCI message text which is effective net storage of 48 bytes.
Specifically, the OLT is an access end device, the number is large, the distribution is wide, a plurality of manufacturers exist, frequent intercommunication and docking requirements exist between the ONUs and the OLT, and each modification of the intercommunication between the ONUs and the OLT requires that the ONUs hang under the OLT to capture an OMCI interaction message, and the correctness of the modification is analyzed and confirmed. The difference of the OLT manufacturer to the OMCI protocol understanding and the expansion of the OMCI protocol need to capture and analyze the OMCI message of the third-party ONU which meets the OLT intercommunication requirement. The OMCI message captured by the aid of equipment such as a GPON analyzer is in a hexadecimal format, readability is extremely poor, manual interpretation needs to be carried out according to OMCI protocol standards, work is time-consuming, errors are prone to occurring, and differences of OMCI cannot be located quickly. If the OMCI message of any ONU can be simulated and analyzed on the ONU, the understanding deviation and the expansion of an OLT manufacturer to the OMCI protocol can be quickly identified, the correctness of OMCI modification of each time of simulation debugging can be realized, and the intercommunication debugging requirements of arranging personnel to the corresponding OLT for butting the ONU can be reduced.
If the simulated OMCI message has redundancy, the preprocessing is to store the clean kernel only retaining 48 bytes after the OMCI message is processed as a text file, as shown in the following table 1:
TABLE 1
Step 2: and uploading the OMCI message text to the ONU, and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one.
Furthermore, the interface for sending the OMCI message text by the debugging thread is consistent with the OMCI message interface for receiving the OLT OMCI message by the OMCI program.
Specifically, an OMCI message text file is uploaded to an ONU, a debugging thread is added to an OMCI program, the OMCI messages are read by the debugging thread and sent to the OMCI program for processing one by one, and the messages are sent to the OMCI program through an interface for receiving OLT messages, namely, a message sending interface is consistent with an OMCI message receiving interface of the OMCI program.
And step 3: and analyzing the OMCI message text through the analysis module to obtain an analysis result and store the analysis result in an LOG file.
Further, the analyzing the OMCI message text by the analyzing module to obtain an analysis result, and storing the analysis result in a LOG file includes: analyzing the received OMCI message text item by item according to an OMCI protocol standard and an OMCI program ME library, wherein the OMCI message text item comprises a message identifier, a message type, an equipment identifier, a message identifier and message content; when the OMCI message text is a message from the ONU to the OLT, only the OMCI message is analyzed and no response processing is carried out, and an analysis result is stored in an LOG file; and when the OMCI message text is a message from the OLT to the ONU, analyzing the OMCI message and performing response processing, and storing analysis combination and response information in an LOG file.
Specifically, the OMCI program adds an OMCI message parsing module to parse the received OMCI message text according to the OMCI protocol standard and an OMCI program ME library, and parse all the clean cores of each OMCI message, such as a message identifier, a message type, a device identifier, a message identifier, and message content. And the OMCI program analysis module only analyzes the message in the direction from the ONU to the OLT and does not perform response processing, and records the analysis result into the LOG file. For OMCI message text in the direction from the OLT to the ONU, an OMCI program analyzes and responds, the message is responded according to the flow when the OLT is normally butted, the received OMCI message is analyzed and recorded in an LOG file according to an OMCI protocol standard and an OMCI program ME library, the OMCI message type, an equipment identifier, a message identifier, an ME ID, an ME name, an ME instance number, an ME attribute mask and an ME attribute value are analyzed, the response message is also analyzed and recorded in the LOG file, and the unsupported ME ID, the ME instance number, the ME attribute and the ME behavior are recorded in the LOG file. The basis of OMCI message analysis by the OMCI program is an ME library supported by the OMCI program, namely an OMCI ME capability set supported by the ONU.
And 4, step 4: and obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported.
Further, the LOG file includes an ME ID, an ME instance number, an ME attribute value, and an ME behavior, which are not supported.
Specifically, the ME ID, ME instance number, ME attribute, and ME behavior that are not supported in the ONU ME library are recorded in the LOG file, and it is possible to know which ME ID, ME instance number, ME attribute, and ME behavior are not supported by analyzing the LOG file.
And 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed.
Further, the responding the unsupported message and modifying the OMCI program includes: and responding the unsupported message according to a method of OMCI message text in the direction from the ONU to the OLT, and modifying the OMCI program according to an analysis result of the OMCI message text in the direction from the ONU to the OLT.
Specifically, by analyzing the LOG file, it can be known which ME ID, ME instance number, ME attribute, ME behavior are not supported. For response of an ME ID, an ME instance number, an ME attribute and an ME behavior which are not supported, the response can be made by referring to an OMCI message of a third-party ONU from the ONU to the OLT. By analyzing the LOG file, the simulation debugging process is repeated after the OMCI program is modified until the OMCI program processes a message without processing failure, the intercommunication problem is solved, and the OMCI message of any ONU is simulated and analyzed on the ONU, so that the understanding deviation and the expansion of an OLT manufacturer to the OMCI protocol can be quickly identified, the correctness of OMCI modification at each time of simulation debugging is realized, and the intercommunication debugging requirements of arrangement personnel to the ONU under the corresponding OLT are reduced. The method realizes the simulation and analysis of the OMCI message in the hexadecimal format through the OMCI program, can verify the intercommunication between the ONU and the OLT at any time without being limited by OLT hardware, effectively saves the human resource expenditure and the hardware expenditure, can quickly analyze the OMCI message of the third-party ONU, and identifies which ME IDs, ME example numbers, ME attributes and ME behaviors are not supported, which ME processes have differences, thereby greatly improving the efficiency of solving the intercommunication problem of the ONU.
Further, before the parsing the OMCI message text by the parsing module, the method includes: and carrying out legality verification on the received OMCI message text through an OMCI program to obtain a verification result, and when the verification result fails, not carrying out subsequent analysis and response on the OMCI message text.
Further, the length of the OMCI message text is 48 bytes, and the devicedentifier in the OMCI message text is 0x 0A.
Specifically, after the OMCI message text is sent to the OMCI program through the interface for receiving the OLT message, the OMCI program performs validity check on the received message, the length of the message needs to be 48 bytes, the Device identifier in the message is 0x0A, and if the message fails to meet the requirement, the message which fails in the check does not perform subsequent analysis and response, so that the interoperability is ensured.
Example two
Based on the same inventive concept as the debugging method of the interworking OMCI message of the GPON system in the foregoing embodiment, the present invention further provides a device of the debugging method of the interworking OMCI message of the GPON system, as shown in fig. 2, the device includes:
a first obtaining unit 11, where the first obtaining unit 11 is configured to preprocess an OMCI message, store the OMCI message in a text file, and obtain an OMCI message text, where the OMCI message text is effective net storage of 48 bytes;
the first execution unit 12 is configured to upload the OMCI message text to the ONU, and run an OMCI program of the ONU, where the OMCI program includes a debugging thread and an analysis module, and reads the OMCI message text through the debugging thread and sends the OMCI message text to the OMCI program one by one;
a second obtaining unit 13, where the second obtaining unit 13 is configured to analyze the OMCI message text through the analysis module, obtain an analysis result, and store the analysis result in an LOG file;
a third obtaining unit 14, where the third obtaining unit 14 is configured to obtain, according to the LOG file, a unsupported message, where the unsupported message is a message of an ME ID, an ME instance number, an ME attribute value, and an ME behavior that are not supported;
a second execution unit 15, where the second execution unit 15 is configured to respond to the unsupported packet, modify the OMCI program, and repeatedly operate the first execution unit, the second obtaining unit, and the third obtaining unit until all the unsupported packets are processed.
Further, the apparatus further comprises:
the first analysis unit is used for analyzing the received OMCI message text one by one according to an OMCI protocol standard and an OMCI program ME library, and the received OMCI message text comprises a message identifier, a message type, an equipment identifier, a message identifier and message content;
a third execution unit, configured to, when the OMCI message text is a message from the ONU to the OLT, analyze only the OMCI message without performing response processing, and store an analysis result in an LOG file;
and the fourth execution unit is used for analyzing and responding the OMCI message when the OMCI message text is a message from the OLT to the ONU, and storing analysis combination and response message in the LOG file.
Further, the LOG file includes an ME ID, an ME instance number, an ME attribute value, and an ME behavior, which are not supported.
Furthermore, the interface for sending the OMCI message text by the debugging thread is consistent with the OMCI message interface for receiving the OLT OMCI message by the OMCI program.
Further, the apparatus further comprises:
and the fifth execution unit is used for responding the unsupported message according to a method of OMCI message text in the direction from the ONU to the OLT, and modifying the OMCI program according to an analysis result of the OMCI message text in the direction from the ONU to the OLT.
Further, the apparatus further comprises:
and the sixth execution unit is used for carrying out validity check on the received OMCI message text through an OMCI program to obtain a check result, and when the check result fails, the OMCI message text is not subjected to subsequent analysis and response.
Further, the length of the OMCI message text is 48 bytes, and the devicedentifier in the OMCI message text is 0x 0A.
Various changes and specific examples of the debugging method for the interworking OMCI message of the GPON system in the first embodiment of fig. 1 are also applicable to the debugging device for the interworking OMCI message of the GPON system in this embodiment, and through the foregoing detailed description of the debugging method for the interworking OMCI message of the GPON system, those skilled in the art can clearly know the implementation method of the debugging device for the interworking OMCI message of the GPON system in this embodiment, so for the brevity of the description, detailed description is not repeated here.
EXAMPLE III
Based on the same inventive concept as the debugging method of the intercommunication OMCI message of the GPON system in the foregoing embodiment, the present invention further provides a debugging apparatus of the intercommunication OMCI message of the GPON system, in which a computer program is stored, and when the program is executed by a processor, the steps of any one of the aforementioned debugging methods of the intercommunication OMCI message of the GPON system are implemented.
Where in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other apparatus over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
Example four
Based on the same inventive concept as the member lifecycle management method in the foregoing embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of any one of the foregoing methods of the debugging method for the GPON system to communicate OMCI messages.
One or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
the embodiment of the invention provides a method and a device for debugging OMCI messages communicated with a GPON system, which are implemented through the following steps: preprocessing the OMCI message, and reserving 48 bytes of effective net storage as a text file after the processing; step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one; and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file; and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported; and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed. The OMCI message in the hexadecimal format is simulated and analyzed through the OMCI program, the intercommunication between the ONU and the OLT can be verified at any time without being limited by OLT hardware, the human resource expenditure and the hardware expenditure are effectively saved, meanwhile, the OMCI message of a third-party ONU can be quickly analyzed, which ME IDs, ME example numbers, ME attributes and ME behaviors are not supported and which ME processing has differences are identified, and the efficiency of solving the ONU intercommunication problem is greatly improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method for debugging OMCI message intercommunication in a GPON system is characterized by comprising the following steps:
step 1: preprocessing an OMCI message, storing the OMCI message in a text file, and obtaining an OMCI message text which is effective net storage of 48 bytes;
step 2: uploading the OMCI message text to an ONU (optical network unit), and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and is sent to the OMCI program one by one;
and step 3: analyzing the OMCI message text through the analysis module to obtain an analysis result and storing the analysis result in an LOG file;
and 4, step 4: obtaining a non-supported message according to the LOG file, wherein the non-supported message is a message of an ME ID, an ME example number, an ME attribute value and an ME behavior which are not supported;
and 5: and responding the message which is not supported, modifying the OMCI program, and repeating the step 2-4 until all the messages which are not supported are processed.
2. The method of claim 1, wherein the parsing the OMCI message text through the parsing module to obtain a parsing result, and storing the parsing result in a LOG file, comprises:
analyzing the received OMCI message text item by item according to an OMCI protocol standard and an OMCI program ME library, wherein the OMCI message text item comprises a message identifier, a message type, an equipment identifier, a message identifier and message content;
when the OMCI message text is a message from the ONU to the OLT, only the OMCI message is analyzed and no response processing is carried out, and an analysis result is stored in an LOG file;
and when the OMCI message text is a message from the OLT to the ONU, analyzing the OMCI message and performing response processing, and storing analysis combination and response information in an LOG file.
3. The method of claim 2, wherein the LOG file includes an ME ID, an ME instance number, an ME attribute value, and an ME behavior that are not supported.
4. The method of claim 1, wherein the interface through which the debugging thread sends the OMCI message text is consistent with the OMCI program receiving OLT OMCI message interface.
5. The method of claim 2, wherein said responding to said unsupported message and modifying said OMCI program comprises:
and responding the unsupported message according to a method of OMCI message text in the direction from the ONU to the OLT, and modifying the OMCI program according to an analysis result of the OMCI message text in the direction from the ONU to the OLT.
6. The method of claim 1, wherein prior to parsing the OMCI message text by the parsing module, comprising:
and carrying out legality verification on the received OMCI message text through an OMCI program to obtain a verification result, and when the verification result fails, not carrying out subsequent analysis and response on the OMCI message text.
7. The method of claim 6, wherein the length of the OMCI message text is 48 bytes, and wherein a Device identifier in the OMCI message text is 0x 0A.
8. A debugging device for intercommunication OMCI message of a GPON system is characterized in that the device comprises:
the OMCI message processing device comprises a first obtaining unit, a second obtaining unit and a processing unit, wherein the first obtaining unit is used for preprocessing an OMCI message, storing the OMCI message in a text file and obtaining an OMCI message text, and the OMCI message text is effective net storage of 48 bytes;
the first execution unit is used for uploading the OMCI message text to the ONU and operating an OMCI program of the ONU, wherein the OMCI program comprises a debugging thread and an analysis module, and the OMCI message text is read by the debugging thread and sent to the OMCI program one by one;
the second obtaining unit is used for analyzing the OMCI message text through the analysis module, obtaining an analysis result and storing the analysis result in an LOG file;
a third obtaining unit, configured to obtain, according to the LOG file, a non-supported message, where the non-supported message is a message of an ME ID, an ME instance number, an ME attribute value, and an ME behavior that are not supported;
and the second execution unit is used for responding the message which is not supported, modifying the OMCI program, and repeatedly operating the first execution unit, the second obtaining unit and the third obtaining unit until all the messages which are not supported are processed.
9. A debugging device for communicating OMCI messages between GPON systems, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010108816.1A CN111314805B (en) | 2020-02-21 | 2020-02-21 | Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010108816.1A CN111314805B (en) | 2020-02-21 | 2020-02-21 | Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111314805A true CN111314805A (en) | 2020-06-19 |
CN111314805B CN111314805B (en) | 2022-07-12 |
Family
ID=71162150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010108816.1A Active CN111314805B (en) | 2020-02-21 | 2020-02-21 | Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111314805B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220345222A1 (en) * | 2021-04-23 | 2022-10-27 | Realtek Semiconductor Corp. | Optical network unit and method for controlling connection between optical network unit and optical line terminal |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795425A (en) * | 2010-03-23 | 2010-08-04 | 上海大亚科技有限公司 | Gigabit passive optical network (GPON) service management system based on OMCI (Operation Management Communication Interface) entity relationship model |
EP2642694A1 (en) * | 2012-03-20 | 2013-09-25 | Bouygues Telecom | Software update of ONT's in an FTTH network by means of a TR-069 protocol |
CN105992077A (en) * | 2015-02-03 | 2016-10-05 | 中国移动通信集团安徽有限公司 | Optical network unit management and control interface layer data conversion method and device |
CN106533801A (en) * | 2016-12-20 | 2017-03-22 | 上海市共进通信技术有限公司 | Method for realizing compatible docking between ONU (Optical Network Unit) and OLT (Optical Line Terminal) in GPON (Gigabit Passive Optical Network) system |
CN107094271A (en) * | 2017-06-14 | 2017-08-25 | 深圳市飞鸿光电子有限公司 | It is a kind of to realize the method and system that optical network unit is docked with optical line terminal |
CN109412844A (en) * | 2018-10-11 | 2019-03-01 | 深圳创维数字技术有限公司 | A kind of implementation method of management entity, device, equipment and storage medium |
-
2020
- 2020-02-21 CN CN202010108816.1A patent/CN111314805B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795425A (en) * | 2010-03-23 | 2010-08-04 | 上海大亚科技有限公司 | Gigabit passive optical network (GPON) service management system based on OMCI (Operation Management Communication Interface) entity relationship model |
EP2642694A1 (en) * | 2012-03-20 | 2013-09-25 | Bouygues Telecom | Software update of ONT's in an FTTH network by means of a TR-069 protocol |
CN105992077A (en) * | 2015-02-03 | 2016-10-05 | 中国移动通信集团安徽有限公司 | Optical network unit management and control interface layer data conversion method and device |
CN106533801A (en) * | 2016-12-20 | 2017-03-22 | 上海市共进通信技术有限公司 | Method for realizing compatible docking between ONU (Optical Network Unit) and OLT (Optical Line Terminal) in GPON (Gigabit Passive Optical Network) system |
CN107094271A (en) * | 2017-06-14 | 2017-08-25 | 深圳市飞鸿光电子有限公司 | It is a kind of to realize the method and system that optical network unit is docked with optical line terminal |
CN109412844A (en) * | 2018-10-11 | 2019-03-01 | 深圳创维数字技术有限公司 | A kind of implementation method of management entity, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220345222A1 (en) * | 2021-04-23 | 2022-10-27 | Realtek Semiconductor Corp. | Optical network unit and method for controlling connection between optical network unit and optical line terminal |
US11838053B2 (en) * | 2021-04-23 | 2023-12-05 | Realtek Semiconductor Corp. | Optical network unit and method for controlling connection between optical network unit and optical line terminal |
Also Published As
Publication number | Publication date |
---|---|
CN111314805B (en) | 2022-07-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7434417B2 (en) | Topology processing method, device, and system | |
WO2018006789A1 (en) | Parameter checking method and apparatus, and network management server and computer storage medium | |
CN109768970B (en) | Configurable universal protocol generation method | |
EP1791296A1 (en) | Automated QS interface testing framework | |
CN111683066B (en) | Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium | |
CN113760704A (en) | Web UI (user interface) testing method, device, equipment and storage medium | |
CN103731205B (en) | A kind of optical network unit automated testing method | |
CN110933095A (en) | Message parsing method and device | |
CN111181800B (en) | Test data processing method and device, electronic equipment and storage medium | |
CN112988485A (en) | Simulation test method and device for power Internet of things equipment | |
CN104899134A (en) | Automatic domain name registration server testing system and method | |
CN108337163B (en) | Method and apparatus for aggregating links | |
CN113946559A (en) | Data processing method, target database system and data processing system | |
CN111314805B (en) | Debugging method and device for intercommunication OMCI (OMCI) messages of GPON (gigabit passive optical network) system | |
KR101985635B1 (en) | Method and system for creating template scripts based container orchestrator | |
EP2908498B1 (en) | Integrated application generating system and method for internet of things terminal | |
CN112416557B (en) | Method and device for determining call relation, storage medium and electronic device | |
CN112363939A (en) | Method, system and equipment for quickly generating fuzzy test network protocol template | |
CN110266554B (en) | Testing method of private communication protocol | |
CN109981342A (en) | A kind of method and system of batch processing network device operation order | |
CN110825538A (en) | MQ-based method for dynamically interacting data by self-defining data types | |
CN113852610B (en) | Message processing method, device, computer equipment and storage medium | |
CN113050925B (en) | Block chain intelligent contract repairing method and device | |
CN112527453B (en) | Virtualization information simulation system, method and computer-readable storage medium | |
WO2021128936A1 (en) | Message processing method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |