CN117896278A - Message data extraction method and device, computer equipment and storage medium - Google Patents

Message data extraction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117896278A
CN117896278A CN202311768722.7A CN202311768722A CN117896278A CN 117896278 A CN117896278 A CN 117896278A CN 202311768722 A CN202311768722 A CN 202311768722A CN 117896278 A CN117896278 A CN 117896278A
Authority
CN
China
Prior art keywords
data
frame
omci
message
frame data
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.)
Pending
Application number
CN202311768722.7A
Other languages
Chinese (zh)
Inventor
蒋亚麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianhong Technology Co ltd
Original Assignee
Shanghai Lianhong Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Lianhong Technology Co ltd filed Critical Shanghai Lianhong Technology Co ltd
Priority to CN202311768722.7A priority Critical patent/CN117896278A/en
Publication of CN117896278A publication Critical patent/CN117896278A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device, a computer device and a storage medium for extracting message data, wherein the method comprises the following steps: receiving original data; determining GTC frame data based on the original data; counting the GTC frame data, and determining target PLOAM message data and GEM frame data based on the count value; and processing the GEM frame data to obtain target OMCI message data. According to the method and the device, the count value obtained through counting is compared with the address, and the target PLOAM message data and the target OMCI message data can be obtained rapidly, so that the required buffer memory space and the processing data quantity are reduced, the hardware circuit resources and the CPU processing process space are saved, and the message data extraction efficiency is improved.

Description

Message data extraction method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a method and apparatus for extracting packet data, a computer device, and a storage medium.
Background
With the wide spread of internet technology and the rapid development of mobile communication applications, the demands of various fields for network bandwidth have been exponentially increasing. GPON (Gigabit passive optical network ) technology is one of the current mainstream broadband access modes because of its characteristics of high bandwidth utilization, high transmission rate and the like.
At present, the extraction method for the GPON message data is generally as follows: the method comprises the steps of caching source data and searching target messages from the source data, wherein the step is generally carried out by screening through specific identification information in the target messages, if the cached data contains information matched with the cached data, the corresponding data is extracted to obtain the required message data, and other irrelevant data are filtered in the mode, so that the extraction of the message data is realized.
However, the method always occupies the process space of the CPU in the extraction process, so that the extraction efficiency of the message data is low.
Disclosure of Invention
The main purpose of the present application is to provide a method, an apparatus, a computer device and a storage medium for extracting message data, which can reduce the required buffer space and the amount of data to be processed, save the hardware circuit resources and the processing process space of a CPU, and improve the extraction efficiency of the message data.
In order to achieve the above object, in a first aspect, the present application provides a method for extracting packet data, including:
receiving original data;
determining GTC frame data based on the original data;
counting the GTC frame data, and determining target PLOAM message data and GEM frame data based on the count value;
and processing the GEM frame data to obtain target OMCI message data.
In an embodiment, determining GTC frame data based on raw data includes:
converting the original data to obtain parallel data corresponding to the original data;
performing frame synchronization processing on the parallel data to obtain synchronous data:
descrambling the synchronous data to obtain descrambled data;
and performing FEC decoding and verification on the descrambled data to obtain GTC frame data.
In an embodiment, performing frame synchronization processing on parallel data to obtain synchronous data includes:
searching a downlink frame and an uplink frame in the parallel data;
if the data segment matched with the downlink frame and the uplink frame is found in the parallel data, synchronous data are obtained.
In an embodiment, performing FEC decoding and verification on the descrambled data to obtain GTC frame data, including:
FEC decoding is carried out on the descrambled data to obtain decoded data;
performing FEC check on the decoded data;
and if the verification is not wrong, taking the decoded data as GTC frame data.
In an embodiment, the method further comprises:
and if the verification is wrong, returning to execute the step of carrying out frame synchronization processing on the parallel data to obtain synchronous data.
In an embodiment, counting the GTC frame data and determining the target PLOAM packet data and GEM frame data based on the count value includes:
up-counting the GTC frame data;
if the count value is equal to the PLOAM address, extracting initial PLOAM data in the GTC frame data;
if the initial PLOAM data check is not wrong, the initial PLOAM data is used as target PLOAM message data;
if the count value is equal to the GEM frame start address, the data after the GEM frame start address in the GTC frame data is taken as GEM frame data.
In an embodiment, the method further comprises:
if the count value is not equal to the PLOAM address and the count value is equal to the PLend address, PLend data in the GTC frame data are obtained;
based on the PLend data, a start address of GEM frame data is calculated.
In an embodiment, the method further comprises:
obtaining the message type of the target PLOAM message data;
according to the message type of the target PLOAM message data, the Port-ID of the OMCI frame data and the GEM frame payload encryption key are cached.
In an embodiment, the processing the GEM frame data to obtain the target OMCI message data includes:
up-counting GEM frame data;
if the count value is the GEM frame head address, reading the frame length of GEM frame data corresponding to the GEM frame head address;
if the frame length is 48 bytes, determining GEM frame data corresponding to the GEM frame header address as first OMCI frame data;
and determining target OMCI message data according to the first OMCI frame data.
In an embodiment, determining the target OMCI message data according to the first OMCI frame data includes:
acquiring a Port-ID of the first OMCI frame data;
if the Port-ID of the first OMCI frame data is equal to the Port-ID of the cached OMCI frame data, taking the first OMCI frame data as second OMCI frame data;
performing HEC verification on the second OMCI frame data;
and if the verification is correct, decrypting the second OMCI frame data to obtain target OMCI message data.
In a second aspect, an embodiment of the present application provides a packet data extraction apparatus, including:
the receiving module is used for receiving the original data;
a first determining module, configured to determine GTC frame data based on the original data;
the second determining module is used for counting the GTC frame data and determining target PLOAM message data and GEM frame data based on the count value;
and the processing module is used for processing the GEM frame data to obtain target OMCI message data.
In a third aspect, embodiments of the present application provide a computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of any of the methods described above when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program which, when executed by a processor, performs the steps of any of the methods described above.
The embodiment of the application provides a method, a device, a computer device and a storage medium for extracting message data, comprising the following steps: the method comprises the steps of receiving original data, determining GTC frame data based on the original data, counting the GTC frame data, determining target PLOAM message data and GEM frame data based on the count value, and finally processing the GEM frame data to obtain target OMCI message data. According to the method and the device, the count value obtained through counting is compared with the address, and the target PLOAM message data and the target OMCI message data can be obtained rapidly, so that the required buffer memory space and the processing data quantity are reduced, the hardware circuit resources and the CPU processing process space are saved, and the message data extraction efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, are included to provide a further understanding of the application and to provide a further understanding of the application with regard to the other features, objects and advantages of the application. The drawings of the illustrative embodiments of the present application and their descriptions are for the purpose of illustrating the present application and are not to be construed as unduly limiting the present application. In the drawings:
fig. 1 is a flow chart of a method for extracting message data according to an embodiment of the present application;
fig. 2 is a flow chart of a method for extracting message data according to another embodiment of the present application;
fig. 3 is a flow chart of a CTC frame data processing method according to an embodiment of the present application;
fig. 4 is a flow chart of a method for extracting message data according to another embodiment of the present application;
fig. 5 is a flow chart of a GEM frame data processing method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a message data extraction device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a message data extraction device according to an embodiment of the present application;
fig. 8 is a schematic diagram of a computer device provided in an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein.
It should be understood that, in various embodiments of the present application, the size of the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It should be understood that in this application, "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in this application, "plurality" means two or more. "and/or" is merely an association relationship describing an association object, and means that three relationships may exist, for example, and/or B may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "comprising A, B and C", "comprising A, B, C" means that all three of A, B, C comprise, "comprising A, B or C" means that one of the three comprises A, B, C, and "comprising A, B and/or C" means that any 1 or any 2 or 3 of the three comprises A, B, C.
It should be understood that in this application, "B corresponding to a", "a corresponding to B", or "B corresponding to a" means that B is associated with a from which B can be determined. Determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information. The matching of A and B is that the similarity of A and B is larger than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection" depending on the context.
The data related to the application can be the data authorized by the testers or fully authorized by all the parties, and the acquisition, the transmission, the use and the like of the data all meet the requirements of relevant laws and regulations and standards of relevant countries and regions, and the implementation modes/embodiments of the application can be mutually combined.
The embodiment of the application can be applied to various scenes such as video, voice interaction, wheat connection and the like.
The technical scheme of the present application is described in detail below with specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Next, the present application will be described by way of specific embodiments with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flow chart of a method for extracting message data according to an embodiment of the present application. As shown in fig. 1, the method comprises the following steps:
step S101: raw data is received.
The original data is upstream and downstream GTC (GPON Transmission Convergence, gigabit passive optical network transmission convergence) frame data in the GPON system.
Step S102: based on the raw data, GTC frame data is determined.
For the data based on the original data (also called source data), the GTC frame data is determined, as shown in fig. 2, the original data is converted to obtain parallel data corresponding to the original data, then the parallel data is subjected to frame synchronization processing to obtain synchronous data, then the synchronous data is descrambled to obtain descrambled data, and finally the descrambled data is decoded and checked by FEC (Forward Error Correction ) to obtain the GTC frame data.
The original data is converted, namely the original data is deserialized and converted into 16 paths of low-speed parallel data.
The frame synchronization processing is performed on the parallel data to obtain synchronous data, which comprises the following steps: and caching the parallel data (only caching 48bit data at most), searching the downlink frame and the uplink frame in the parallel data, and obtaining synchronous data if the data segments matched with the downlink frame and the uplink frame are searched.
Specifically, the physical sync field Psync field (downlink frame) and the delimiter (uplink frame) can be searched in parallel in the parallel data, and when the data segment matched with the downlink frame and the uplink frame is searched, the synchronous data is obtained.
After the synchronous data is obtained, the synchronous data can be descrambled to obtain descrambled data, so that FEC decoding and verification can be further carried out on the descrambled data.
Performing FEC decoding and verification on the descrambled data to obtain GTC frame data, including: performing FEC decoding on the descrambled data to obtain decoded data, performing FEC verification on the decoded data, and taking the decoded data as GTC frame data if the verification is not wrong; and if the verification is wrong, returning to execute the step of carrying out frame synchronization processing on the parallel data to obtain synchronous data.
Specifically, performing FEC decoding on the descrambled data to obtain decoded data, performing FEC verification on the decoded data, and eliminating the corresponding FEC verification code if the FEC verification is correct to obtain GTC frame data; if the verification is wrong, reporting the corresponding error information, and returning to execute the frame synchronization processing on the parallel data to obtain the synchronous data.
Step S103: and counting the GTC frame data, and determining target PLOAM message data and GEM frame data based on the count value.
As shown in fig. 3, the GTC frame data is counted, and the destination PLOAM (Physical Layer Operations Administration and Maintenance, physical layer operation administration and maintenance) message data and GEM (GPON Encapsulation Mode, gigabit passive optical network encapsulation mode) frame data are determined based on the count value, and it is necessary to count up the GTC frame data.
If the count value is equal to the PLOAM address, extracting initial PLOAM data in the GTC frame data, and if the initial PLOAM data is checked to be not wrong, taking the initial PLOAM data as target PLOAM message data and storing the target PLOAM message data; if the initial PLOAM data check is in error, reporting error information is displayed, wherein the initial PLOAM data check is checked by CRC (Cyclic redundancy check, cyclic redundancy check code).
If the count value is not equal to the PLOAM address and the count value is equal to the PLend address, PLend data in the GTC frame data is obtained, then the starting address of the GEM frame data is calculated based on the PLend data, and the starting address of the GEM frame data is written into the GEM frame address register.
If the count value is equal to the GEM frame start address, taking the data after the GEM frame start address in the GTC frame data as GEM frame data; if the count value is not equal to the GEM frame start address, returning to execute the step of counting the GTC frame data.
Specifically, the processing of the GTC frame data is started, and a counter is provided in the GTC frame data, which is activated by the recovered parallel data clock and is cleared each time frame synchronization is achieved, and thereafter, up-counting is started.
According to the GTC frame structure characteristic, the relative address of the PLOAM field can be obtained by taking the Psync field/delimiter as a starting point, and the relative address is written into a PLOAM address register in advance. Thus, each time the counter counts a PLOAM address, the data input at that time is the initial PLOAM data; and performing CRC (cyclic redundancy check) on the initial PLOAM data, wherein the CRC is attached with 1bit automatic error correction capability, so that the fault tolerance can be further improved.
Similarly, according to the characteristics of the GTC frame structure, when the counter counts the address of the previously written PLend field, the input data is read at this time, the initial address of the GEM frame data in the payload of the input data can be calculated, and the initial address is written into the GEM frame address register.
In the whole GTC frame head processing process, only the PLOAM field and the PLend field data are required to be read, and the rest data can be filtered according to the counter value. When the counter counts to the GEM frame start address, the data after the GEM frame start address in the GTC frame data is taken as GEM frame data.
In addition, the above steps also acquire the message type of the target PLOAM message data, and then buffer the Port-ID of OMCI (ONU Management and Control Interface, optical network unit management control interface) frame data and GEM frame payload encryption key for subsequent use according to the message type of the target PLOAM message data. The Port-ID of the OMCI frame data and the GEM frame payload encryption key are stored in a key information buffer module (i.e. a storage module) shown in fig. 4.
Step S104: and processing the GEM frame data to obtain target OMCI message data.
As shown in fig. 5, the GEM frame data is processed to obtain the target OMCI message data, the GEM frame data is first counted up, if the count value is the GEM frame header address, the frame length of the GEM frame data corresponding to the GEM frame header address is read, then the next GEM frame data initial address is calculated, and the GEM frame data initial address is written into the GEM frame address register; if the count value is not the GEM frame header address, the step of counting up the GEM frame data is returned to be executed.
If the frame length of the GEM frame data is 48 bytes, determining the GEM frame data corresponding to the GEM frame header address as first OMCI frame data, and determining target OMCI message data according to the first OMCI frame data; if the frame length of the GEM frame data is not 48 bytes, the step of counting up the GEM frame data is returned to be executed.
Wherein, determining the target OMCI message data according to the first OMCI frame data includes: acquiring the Port-ID of the first OMCI frame data, if the Port-ID of the first OMCI frame data is equal to the Port-ID of the cached OMCI frame data, taking the first OMCI frame data as second OMCI frame data, performing HEC (high efficiency computer) verification on the second OMCI frame data, and if the verification is correct, decrypting the second OMCI frame data to obtain target OMCI message data; if the verification is wrong, the report error information is displayed.
And decrypting the second OMCI frame data to obtain target OMCI message data, wherein the second OMCI frame data is decrypted according to the requirement by mainly adopting a GEM frame payload encryption key to obtain the target OMCI message data.
Finally, judging whether the counter is reset to zero, and ending if the counter is reset to zero; if not, returning to execute the step of counting up the GEM frame data. Specifically, judging whether the counter counts to a maximum value (the value is determined by the total frame length of the data frame), if the counter counts to the maximum value, the counter is reset to zero, and the frame counting is finished; if the maximum value is not reached, the step of counting up the GEM frame data is returned to be executed.
Specifically, when the counter counts to the GEM frame start address, processing of the first frame GEM frame data is started. The initial address of the next GEM frame data can be calculated by reading the frame length information, and the initial address is written into a GEM frame address register, so that the separation and extraction of each GEM frame data can be realized. In addition, according to the OMCI frame structure characteristics, the frame length information of each GEM frame data can be read and screened, and if the frame is 48 bytes, the frame is the first OMCI frame data; if it is not 48 bytes, it can be filtered directly.
Comparing the Port-ID of the first OMCI frame data screened in the previous step with the Port-ID of the cached OMCI frame data, and if the Port-ID is matched with the Port-ID of the first OMCI frame data, obtaining the frame as a second OMCI data frame; if not, it may be filtered. Therefore, the Port-ID comparison times can be reduced in a pre-screening mode, and the data extraction efficiency is improved.
HEC (Header Error Correction, header error control) verification is carried out on the extracted second OMCI frame data, and the HEC verification is attached with 2-bit automatic error correction and 3-bit error detection capabilities, so that the fault tolerance can be further improved.
And then decrypting the second OMCI frame data by adopting the GEM frame payload encryption key according to the requirement to obtain and target OMCI message data.
Referring to fig. 6, fig. 6 is a schematic diagram of a message data extraction apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes:
the optical splitter, the optical signal interface, the FPGA (Field Programmable Gate Array, the field programmable gate array), the CPU (Central Processing Unit, the central processing unit), the memory, the display and the like can independently work in a handheld and movable mode. The optical splitter is used for extracting uplink and downlink data transmitted under the condition that the normal operation of the GPON system is not affected; the SFP interface of the OLT (Optical Line Terminal ) and the ONU (Optical Network Unit, optical network unit) is an optical signal interface, and the optical signal can be converted into an electric signal through the optical signal interface for the subsequent circuit to analyze and process; the FPGA module is a module for realizing the message data extraction method, and can realize the extraction of message information such as PLOAM/OMCI and the like; the CPU realizes the management of the whole device and the subsequent processing of the extracted message; the memory comprises FLASH, DDR, hard disk and the like, and realizes the storage of chip configuration and extraction messages; the device is also provided with an RJ45 interface and a display screen, and can be used for externally transmitting data and displaying data in a handheld manner.
The embodiment of the application provides a message data extraction method, which comprises the following steps: the method comprises the steps of receiving original data, determining GTC frame data based on the original data, counting the GTC frame data, determining target PLOAM message data and GEM frame data based on the count value, and finally processing the GEM frame data to obtain target OMCI message data. According to the method and the device, the count value obtained through counting is compared with the address, and the target PLOAM message data and the target OMCI message data can be obtained rapidly, so that the required buffer memory space and the processing data quantity are reduced, the hardware circuit resources and the CPU processing process space are saved, and the message data extraction efficiency is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
The following are device embodiments of the present application, for details not described in detail therein, reference may be made to the corresponding method embodiments described above.
Fig. 7 is a schematic structural diagram of a message data extraction device provided in an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown, where the message data extraction device includes a receiving module 701, a first determining module 702, a second determining module 703, and a processing module 704, and specifically is as follows:
a receiving module 701, configured to receive original data;
a first determining module 702, configured to determine GTC frame data based on the raw data;
a second determining module 703, configured to count the GTC frame data, and determine the target PLOAM packet data and GEM frame data based on the count value;
and a processing module 704, configured to process the GEM frame data to obtain target OMCI message data.
In an embodiment, the first determining module 702 is further configured to convert the original data to obtain parallel data corresponding to the original data;
performing frame synchronization processing on the parallel data to obtain synchronous data:
descrambling the synchronous data to obtain descrambled data;
and performing FEC decoding and verification on the descrambled data to obtain GTC frame data.
In an embodiment, the first determining module 702 is further configured to search for a downlink frame and an uplink frame in the parallel data;
if the data segment matched with the downlink frame and the uplink frame is found in the parallel data, synchronous data are obtained.
In an embodiment, the first determining module 702 is further configured to perform FEC decoding on the descrambled data to obtain decoded data;
performing FEC check on the decoded data;
and if the verification is not wrong, taking the decoded data as GTC frame data.
In an embodiment, the device further includes a return module, where the return module is configured to return to execute the step of performing frame synchronization on the parallel data to obtain the synchronization data if the verification is in error.
In an embodiment, the second determining module 703 is further configured to count up GTC frame data;
if the count value is equal to the PLOAM address, extracting initial PLOAM data in the GTC frame data;
if the initial PLOAM data check is not wrong, the initial PLOAM data is used as target PLOAM message data;
if the count value is equal to the GEM frame start address, the data after the GEM frame start address in the GTC frame data is taken as GEM frame data.
In an embodiment, the apparatus further includes a calculation module, where the calculation module is configured to obtain the PLend data in the GTC frame data if the count value is not equal to the PLOAM address and the count value is equal to the PLend address;
based on the PLend data, a start address of GEM frame data is calculated.
In an embodiment, the apparatus further includes a buffer module, where the buffer module is configured to obtain a message type of the target PLOAM packet data;
according to the message type of the target PLOAM message data, the Port-ID of the OMCI frame data and the GEM frame payload encryption key are cached.
In an embodiment, the processing module 704 is further configured to count up GEM frame data;
if the count value is the GEM frame head address, reading the frame length of GEM frame data corresponding to the GEM frame head address;
if the frame length is 48 bytes, determining GEM frame data corresponding to the GEM frame header address as first OMCI frame data;
and determining target OMCI message data according to the first OMCI frame data.
In one embodiment, the processing module 704 is further configured to obtain a Port-ID of the first OMCI frame data;
if the Port-ID of the first OMCI frame data is equal to the Port-ID of the cached OMCI frame data, taking the first OMCI frame data as second OMCI frame data;
performing HEC verification on the second OMCI frame data;
and if the verification is correct, decrypting the second OMCI frame data to obtain target OMCI message data.
Fig. 8 of the present application provides a schematic diagram of a computer device. As shown in fig. 8, the computer device 8 of this embodiment includes: a processor 801, a memory 802, and a computer program 803 stored in the memory 802 and executable on the processor 801. The steps of the above-described respective packet data extraction method embodiments, such as steps 101 to 104 shown in fig. 1, are implemented when the processor 801 executes the computer program 803. Alternatively, the processor 801, when executing the computer program 803, implements the functions of each module/unit in the above-described embodiments of the packet data extraction apparatus, for example, the functions of the modules/units 701 to 704 shown in fig. 7.
The present application also provides a readable storage medium, in which a computer program is stored, where the computer program is configured to implement the method for extracting packet data provided in the foregoing various embodiments when executed by a processor.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC). In addition, the ASIC may reside in a user device. The processor and the readable storage medium may reside as discrete components in a communication device. The readable storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, and execution of the execution instructions by the at least one processor causes the device to implement the message data extraction method provided by the various embodiments described above.
In the above described embodiments of the apparatus, it is understood that the processor may be a central processing unit, but also other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor or in a combination of hardware and software modules within a processor.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (13)

1. The message data extraction method is characterized by comprising the following steps:
receiving original data;
determining GTC frame data based on the raw data;
counting the GTC frame data, and determining target PLOAM message data and GEM frame data based on the count value;
and processing the GEM frame data to obtain target OMCI message data.
2. The method of extracting packet data as claimed in claim 1, wherein said determining GTC frame data based on said original data comprises:
converting the original data to obtain parallel data corresponding to the original data;
performing frame synchronization processing on the parallel data to obtain synchronous data:
descrambling the synchronous data to obtain descrambled data;
and performing FEC decoding and verification on the descrambled data to obtain GTC frame data.
3. The method for extracting packet data as claimed in claim 2, wherein said performing frame synchronization processing on said parallel data to obtain synchronous data includes:
searching a downlink frame and an uplink frame in the parallel data;
and if the data segment matched with the downlink frame and the uplink frame is found in the parallel data, obtaining the synchronous data.
4. The method for extracting packet data as defined in claim 2, wherein performing FEC decoding and verification on the descrambled data to obtain GTC frame data includes:
performing FEC decoding on the descrambled data to obtain decoded data;
performing FEC verification on the decoded data;
and if the verification is not wrong, taking the decoded data as the GTC frame data.
5. The method for extracting message data as defined in claim 4, further comprising:
and if the verification is wrong, returning to execute the step of carrying out frame synchronization processing on the parallel data to obtain synchronous data.
6. The message data extraction method of claim 1, wherein the counting the GTC frame data and determining the target PLOAM message data and GEM frame data based on the count value comprises:
counting up the GTC frame data;
if the count value is equal to the PLOAM address, extracting initial PLOAM data in the GTC frame data;
if the initial PLOAM data check is not wrong, the initial PLOAM data is used as the target PLOAM message data;
and if the count value is equal to the GEM frame start address, taking the data after the GEM frame start address in the GTC frame data as GEM frame data.
7. The method for extracting message data as defined in claim 6, further comprising:
if the count value is not equal to the PLOAM address and the count value is equal to the PLend address, PLend data in the GTC frame data are obtained;
and calculating the start address of GEM frame data based on the PLend data.
8. The method for extracting message data as defined in claim 6, further comprising:
acquiring the message type of the target PLOAM message data;
and caching the Port-ID of the OMCI frame data and the GEM frame payload encryption key according to the message type of the target PLOAM message data.
9. The method for extracting message data according to claim 1, wherein said processing the GEM frame data to obtain the target OMCI message data comprises:
up-counting the GEM frame data;
if the count value is a GEM frame head address, reading the frame length of GEM frame data corresponding to the GEM frame head address;
if the frame length is 48 bytes, determining GEM frame data corresponding to the GEM frame header address as first OMCI frame data;
and determining the target OMCI message data according to the first OMCI frame data.
10. The message data extraction method of claim 9, wherein determining the target OMCI message data based on the first OMCI frame data comprises:
acquiring a Port-ID of the first OMCI frame data;
if the Port-ID of the first OMCI frame data is equal to the Port-ID of the cached OMCI frame data, taking the first OMCI frame data as second OMCI frame data;
performing HEC verification on the second OMCI frame data;
and if the verification is correct, decrypting the second OMCI frame data to obtain the target OMCI message data.
11. A message data extraction apparatus, comprising:
the receiving module is used for receiving the original data;
a first determining module, configured to determine GTC frame data based on the raw data;
the second determining module is used for counting the GTC frame data and determining target PLOAM message data and GEM frame data based on the count value;
and the processing module is used for processing the GEM frame data to obtain target OMCI message data.
12. A computer device comprising a memory, and one or more processors communicatively coupled to the memory;
the memory stores instructions executable by the one or more processors to cause the one or more processors to implement the method of extracting message data according to claims 1 to 10.
13. A computer readable storage medium comprising a program or instructions which, when run on a computer, implement the method of extracting message data of claims 1 to 10.
CN202311768722.7A 2023-12-20 2023-12-20 Message data extraction method and device, computer equipment and storage medium Pending CN117896278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311768722.7A CN117896278A (en) 2023-12-20 2023-12-20 Message data extraction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311768722.7A CN117896278A (en) 2023-12-20 2023-12-20 Message data extraction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117896278A true CN117896278A (en) 2024-04-16

Family

ID=90638744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311768722.7A Pending CN117896278A (en) 2023-12-20 2023-12-20 Message data extraction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117896278A (en)

Similar Documents

Publication Publication Date Title
KR101341933B1 (en) Method and apparatus for encoding and decoding data
US20220416895A1 (en) Data transmission method and apparatus, terminal device and storage medium
US8375276B2 (en) Method and apparatus for encoding and decoding data
CN110266612A (en) Data transmission method and device, the network equipment and storage medium
US10855397B2 (en) Downstream data frame transmission method and device
US9232287B2 (en) Method and apparatus for processing downlink frame synchronization in gigabit-capable passive optical network system
US11539607B2 (en) Detection block sending and receiving method, and network device and system
KR101023463B1 (en) Method and device for implementing data error report
WO2019042475A1 (en) Data transmission method and device
EP3541088B1 (en) Method, device and system for bearing a frame sequence number in a multichannel passive optical network
WO2014089989A1 (en) Method and apparatus for checking data frame length
US20220294551A1 (en) Upstream resource grant method, related device, and computer-readable storage medium
CN111147181B (en) Service sending method, service receiving method, device, system and storage medium
CN111385062B (en) Data transmission method, device, system and storage medium based on WDM
CN117896278A (en) Message data extraction method and device, computer equipment and storage medium
US20170103727A1 (en) Method, system and apparatus for transmitting intelligent information
US11895448B2 (en) Communication apparatus and communication method
CN112838960A (en) Communication data cleaning method, device, network equipment and storage medium
US20230246741A1 (en) Data Processing Method and Device in Passive Optical Network System
CN112751645A (en) Communication method, device and storage medium
CN117425101B (en) Frame decoding method and device of GPON resource checker
WO2018076672A1 (en) Method and apparatus for accessing optical transmission network service and computer storage medium
CN112486885B (en) Data frame generation method, storage medium and computer equipment
CN112565821B (en) Data processing method and device, security gateway and storage device
CN111200482B (en) GFP frame positioning processing method, device, electronic equipment and storage medium

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