Data packet processing method, system and electronic device

By introducing a combination of start code blocks and identification code blocks in data messages, the problems of periodic deviation and computing resource consumption in OAM code block insertion and extraction are solved, and fast and effective OAM code block position identification and extraction are achieved, thereby improving bandwidth utilization.

CN119676044BActive Publication Date: 2025-10-10PURPLE MOUNTAIN LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411703611.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-10-10
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

In the prior art, the insertion and extraction of OAM code blocks suffer from periodic deviation and computational resource consumption. In particular, the insertion interval is too long during the transmission of long or ultra-long packets, and the position determination of the identification code blocks consumes bandwidth resources.

Method used

A combination of a start code block and an identification code block is introduced into the data message. The identification code block is located before the start code block and is used to quickly identify the existence and location of the OAM code block, avoiding block-by-block analysis and reducing computing resource consumption.

Benefits of technology

It realizes the rapid determination of the location and extraction of OAM code blocks, avoids the waste of computing resources, improves bandwidth utilization, and solves the problem of long insertion intervals during the transmission of long or ultra-long packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676044B_ABST
    Figure CN119676044B_ABST
Patent Text Reader

Abstract

The application discloses a data message processing method and system and electronic equipment. The method comprises the following steps: obtaining a first data message, wherein the first data message comprises a plurality of code blocks arranged in sequence, the plurality of code blocks comprise a start code block and an identification code block, the identification code block is located in a front position of the start code block, the identification code block is used for identifying whether an operation administration and maintenance (OAM) code block exists in the first data message, and position information of the OAM code block is identified in the case that the OAM code block exists in the first data message; and the first data message is sent to a receiving end. The application solves the technical problem that resources are consumed due to the need to analyze and determine the position of the identification code block in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data transmission, and in particular to a data message processing method, system and electronic equipment. Background Art

[0002] Currently, an Operation, Administration and Maintenance (OAM) code block needs to be inserted into the code block of the original message to perform operations such as operation, administration and maintenance.

[0003] Currently, there are two ways to insert OAM. The first is to replace the idle code block, that is, to replace the idle code block with the OAM code block after the data packet transmission is completed in the data message. The second is to insert both the identification code block and the OAM code block into the original data message. The identification code block is used to mark the insertion of the OAM code block in the data message.

[0004] In the first method mentioned above, the OAM code blocks received are sent at a certain period, and it is necessary to wait for an idle code block before replacing it. Therefore, the insertion and extraction of the OAM code blocks will deviate from the precise configured period. In addition, there is a problem of too long an interval between OAM code block insertions during the transmission of long or ultra-long packets. In order to solve the problems existing in the first method mentioned above, the related art proposes a second method, but there are still some problems. For example, the second method mentioned above requires analyzing each code block to determine the position of the identification code block, which leads to the problem of consuming computing resources. In addition, it is necessary to add an identification code block to the data packet to indicate that the data packet contains an OAM code block, so there is also a technical problem of consuming bandwidth resources.

[0005] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention

[0006] The embodiments of the present invention provide a data message processing method, system and electronic device to at least solve the technical problem in the related art that it is necessary to analyze each code block one by one to determine the position of the identification code block, resulting in waste of resources.

[0007] According to one aspect of an embodiment of the present invention, a data packet processing method is provided, including: obtaining a first data packet, wherein the first data packet includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block exists in the first data packet, and identifying location information of the OAM code block if the OAM code block exists in the first data packet; and sending the first data packet to a receiving end.

[0008] Optionally, after sending the first data message to the receiving end, it also includes: obtaining a second data message, wherein the second data message is a data message to be sent to the receiving end after the first data message is sent, and the identification information in the second data message is identified by the identification code block in the first data message, and the identification code block in the first data message is also used to identify whether the OAM code block exists in the second data message, and identify the location information of the OAM code block when the OAM code block exists in the second data message; sending the second data message to the receiving end.

[0009] Optionally, obtaining the first data packet includes: obtaining an original data packet, wherein the original data packet includes multiple code blocks arranged in sequence, and the multiple code blocks include the start code block; determining whether the original data packet contains the OAM code block; and determining the first data packet based on the result.

[0010] Optionally, determining the first data packet based on the result includes: when the result contains an OAM code block, determining the OAM code block parameters, wherein the OAM code block parameters include at least one of the following: the number of OAM code blocks, the OAM code block position information, and the OAM code block position information includes any one of the following: the code block position of the OAM, the OAM code block position interval; constructing the identification code block containing the OAM code block parameters; inserting the identification code block into the original data packet to obtain the first data packet.

[0011] Optionally, based on the result, determining the first data packet includes: when the result is that it does not contain the OAM code block, constructing the identification code block, wherein the identification code block is used to identify that the first data packet does not include the OAM code block; inserting the identification code block into the original data packet to obtain the first data packet.

[0012] Optionally, inserting the identification code block into the original data message to obtain the first data message includes: when there is an idle code block before the start code block, replacing the idle code block with the identification code block to obtain the first data message.

[0013] According to one aspect of an embodiment of the present invention, a data packet processing method is provided, comprising: receiving a first data packet sent by a sending end, wherein the first data packet includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block exists in the first data packet, and identifying location information of the OAM code block if the OAM code block exists in the first data packet; and sequentially identifying the plurality of code blocks in the first data packet to process the first data packet.

[0014] Optionally, after receiving the first data packet sent by the sending end, it also includes: receiving a second data packet sent by the sending end, wherein the second data packet is a data packet sent by the sending end to the receiving end after sending the first data packet, and the identification information in the second data packet is identified by the identification code block in the first data packet, and the identification code block in the first data packet is also used to identify whether the OAM code block exists in the second data packet, and identify the location information of the OAM code block when the OAM code block exists in the second data packet; processing the second data packet according to the identification information identified by the identification code block.

[0015] Optionally, identifying multiple code blocks in the first data message in sequence to process the first data message also includes: when the identification code block is identified and the identification code block indicates that the OAM code block exists in the first data message, extracting the OAM code block from the first data message based on the position information to obtain a recovered data message and the OAM code block.

[0016] According to one aspect of an embodiment of the present invention, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any of the above-mentioned data message processing methods.

[0017] According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the above-mentioned data message processing methods.

[0018] In an embodiment of the present invention, a first data message is obtained, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is present in the first data message, and identifying location information of the OAM code block if the OAM code block is present in the first data message. The first data message is sent to a receiving end. Since the identification code block is set before the start code block, there is no need to analyze each code block one by one to determine the position of the identification code block, and there will be no problem of wasting computing resources. Moreover, the identification code block is used to identify whether the OAM code block exists in the first data message, that is, it can quickly determine whether the OAM code block exists in the first data message, avoiding the problem of time, computing resources, etc. consumed by querying in the first data message when the OAM code block does not exist. Moreover, by identifying whether the OAM code block exists in the first data message, and identifying the location information of the OAM code block when the OAM code block exists, the OAM code block at the corresponding position can be quickly found, extracted and deleted, so as to achieve the purpose of restoring to the original data message. Therefore, the method provided in this application can solve the technical problem in the related technology that it is necessary to analyze each code block one by one to determine the position of the identification code block, resulting in resource consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0020] Figure 1 This is a flow chart of a data message processing method provided by an embodiment of the present invention;

[0021] Figure 2 This is a flowchart of another data message processing method provided by Example 1 of the present invention;

[0022] Figure 3 It is a schematic diagram of a method of related technology provided by an optional embodiment of the present invention;

[0023] Figure 4 This is a schematic diagram corresponding to another method of the related art provided in an optional embodiment of the present invention;

[0024] Figure 5 Schematic diagram of an OAM code block insertion method provided by an optional embodiment of the present invention;

[0025] Figure 6 2 is a schematic diagram of another OAM code block insertion method provided by an optional embodiment of the present invention;

[0026] Figure 7 4 is a structural block diagram of a data message processing system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] The following is an introduction to the terms used in this application:

[0030] Slicing Packet Network (SPN): It is an ultra-low-latency, high-bandwidth transmission technology in the 5G bearer system that supports both hard and soft slicing. It is designed for three major service application scenarios: enhanced mobile broadband (eMBB) services with higher bandwidth and lower latency, massive machine-type communication (mMTC) services supporting massive user connections, and ultra-reliable and low-latency communication (uRLLC) services. SPN provides five types of slices to enable comprehensive transport of 5G services such as wireless base stations, vertical industries, government and enterprise dedicated lines, home broadband, and cloud network access. This single network supports multiple industries, comprehensively improving SPN network utilization and efficiently assisting in the upgrading of numerous industries.

[0031] CC code block: Continuity Check code block, connectivity detection code block.

[0032] Example 1

[0033] According to an embodiment of the present invention, an embodiment of a data message processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0034] Figure 1 This is a flow chart of a data message processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes the following steps:

[0035] Step S102: Acquire a first data message, where the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located before the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message, and identifying location information of the OAM code block if the OAM code block is included in the first data message;

[0036] In step S102 provided in the present application, a first data message is obtained, wherein the first data message includes a plurality of sequentially arranged code blocks, that is, it can be understood that the first data message includes a series of sequentially arranged code blocks, and the code blocks include multiple different types, for example, code blocks representing original data message information, idle code blocks, start code blocks, end code blocks, and so on. This is not limited here, and can be adaptively set according to actual scenarios.

[0037] It's important to note that the start and end code blocks are used to identify the beginning and end of a data message. The start code block typically marks the beginning of a data message, while the end code block typically marks the end of a data message. This allows the receiving end to determine the scope of the data message based on the start and end code blocks, thereby correctly parsing the data message.

[0038] The multiple code blocks are defined as including a start code block and an identification code block. The identification code block is located in a preceding position of the start code block. The preceding position means that the identification code block is located before the start code block, and can be located one block before, two blocks before, or other positions, without limitation. Because the identification code block is located before the start code block, there is no need to analyze each code block individually to determine its position, thereby avoiding the problem of wasting computing resources.

[0039] It should also be noted that if the first data message is a segment of a continuous data message, the identification code block can be placed before the start code block of the first data message and after the end code block of the previous data message. If the first data message is the first segment of a continuous data message, it can be placed before the start code block.

[0040] It should also be noted that the OAM code block not only identifies whether the code block contains an OAM code block, but also identifies the location information of the OAM code block if the OAM code block exists in the first data message, so as to quickly find the location of the OAM code block and further save computing resources.

[0041] Step S104: Send the first data message to the receiving end.

[0042] In step S104 provided in the present application, a first data message is sent to a receiving end. Since the identification code block is used to identify whether an OAM code block exists in the first data message, and to identify the location information of the OAM code block when the OAM code block exists in the first data message, it is possible to quickly determine whether an OAM code block exists in the first data message, thereby avoiding the problem of time consumption, computing resources, etc. caused by performing a query in the first data message when the OAM code block does not exist. Moreover, by identifying whether an OAM code block exists in the first data message and identifying the location information of the OAM code block when the OAM code block exists, the OAM code block at the corresponding position can be quickly found, extracted, and deleted, thereby achieving the purpose of restoring the original data message.

[0043] Through steps S102-S104 above, a first data message is obtained, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located before the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message, and if an OAM code block is included in the first data message, identifying the location information of the OAM code block. The first data message is sent to a receiving end. Since the identification code block is set before the start code block, there is no need to analyze each code block one by one to determine the position of the identification code block, and there will be no problem of wasting computing resources. Moreover, the identification code block is used to identify whether the OAM code block exists in the first data message, that is, it can quickly determine whether the OAM code block exists in the first data message, avoiding the problem of time, computing resources, etc. consumed by querying in the first data message when the OAM code block does not exist. Moreover, by identifying whether the OAM code block exists in the first data message, and identifying the location information of the OAM code block when the OAM code block exists, the OAM code block at the corresponding position can be quickly found, extracted and deleted, so as to achieve the purpose of restoring to the original data message. Therefore, the method provided in this application can solve the technical problem in the related technology that it is necessary to analyze each code block one by one to determine the position of the identification code block, resulting in resource consumption.

[0044] As an optional embodiment, after the first data packet is sent to the receiving end, the method further comprises: obtaining a second data packet, wherein the second data packet is a data packet to be sent to the receiving end after the first data packet is sent, the identification information in the second data packet is identified by the identification code block in the first data packet, the identification code block in the first data packet is further used to identify whether there is an OAM code block in the second data packet, and identify the position information of the OAM code block in the case that there is an OAM code block in the second data packet; and sending the second data packet to the receiving end.

[0045] In this embodiment, the step after the first data packet is sent to the receiving end is explained, that is, obtaining the second data packet. Because data packets can be continuously sent, after the first data packet is sent, there will also be a second data packet.

[0046] At this time, the identification information in the second data packet can be identified by the identification code block in the first data packet, that is, the identification code block of the first data packet can identify the OAM code block information of the subsequent data packet (the second data packet and other data packets) in addition to the case of identifying the OAM code block of itself, that is, in addition to identifying whether there is an OAM code block in the first data packet, and identifying the position information of the OAM code block in the case that there is an OAM code block in the first data packet, the identification code block can also identify whether there is an OAM code block in the second data packet, and identify the position information of the OAM code block in the case that there is an OAM code block in the second data packet.

[0047] That is, in the case that the sending end sends multiple continuous data packets, the starting code block generally also includes multiple, in this case, the identification code block is located in the front position of the first starting code block (that is, the front position of the identification code block of the first data packet), and the first starting code block is the first starting code block in the multiple starting code blocks, that is, the first one, so that the receiving end can identify the identification code block when receiving the first data packet. Wherein, the identification code block can identify whether there is an OAM code block in the multiple continuous data packets respectively, and the position information of the OAM code block.

[0048] It should be noted that at this time, different binary data can also be used to represent whether there is an OAM code block in the multiple continuous data packets respectively, and in the case that there is an OAM code block, the specific position of the OAM code block in the data packet with the OAM code block is identified. In order to efficiently determine the position of the OAM code block in the multiple continuous data packets.

[0049] As an optional embodiment, obtaining a first data packet includes: obtaining an original data packet, wherein the original data packet includes multiple code blocks arranged in sequence, and the multiple code blocks include a start code block; determining whether the original data packet contains an OAM code block; and determining the first data packet based on the result.

[0050] This embodiment describes the process of obtaining a first data message. First, the original data message, i.e., the original data message expressing the original data information, can be obtained. The original data message includes multiple code blocks arranged in sequence. Assuming the original data message is a 9600-byte data message, the data message may include one start code block, also called an S code block, and several D code blocks. Optionally, the data message may also include one end code block, also called a T code block.

[0051] In this process, the result of determining whether the original data message contains the OAM code block is used to determine whether to insert the OAM code block into the original data message to perform operations such as operation, management and maintenance on it.

[0052] Determining whether to insert an OAM block into a data message may depend on the requirements of the network device and protocol. Optionally, the OAM block can be used to monitor and manage the quality and performance of data transmission. In certain network devices and protocols, it may be necessary to insert an OAM block into a data message to monitor and manage network performance. If the network device or protocol requires the insertion of an OAM block into a data message, then it is necessary to determine whether the OAM block needs to be inserted based on these requirements, and determine whether the OAM block needs to be inserted. Otherwise, a determination is made that the OAM block does not need to be inserted. Based on this determination, the first data message can be better determined. This ensures that the determined first data message can better reflect the OAM block status, thereby facilitating processing by the receiving end.

[0053] As an optional embodiment, determining the first data message based on the result includes: when the result is that it contains an OAM code block, determining the OAM code block parameters, wherein the OAM code block parameters include at least one of the following: the number of OAM code blocks, the OAM code block position information, and the OAM code block position information includes any one of the following: the code block position of the OAM, the OAM code block position interval; constructing an identification code block containing the OAM code block parameters; inserting the identification code block into the original data message to obtain the first data message.

[0054] This embodiment describes the processing steps for when the result contains an OAM code block. The OAM code block parameters can be determined first. The OAM code block parameters can be determined based on different data, such as the original data message, or based on network equipment or protocol requirements. The OAM code block parameters may include the number of OAM code blocks to be inserted and the OAM code block insertion positions. For example, the number of OAM code blocks to be inserted into the original data message and the position of the OAM code block insertion within the original data message can be determined. Based on the OAM code block parameters, the corresponding OAM code block is inserted into the original data message to obtain a first data message.

[0055] It should be noted that the OAM code block parameters can be represented by binary numbers such as 01, for example, 0 indicates no OAM code block, and 1 indicates an OAM code block. The following digits can also be used to indicate the position of the OAM code block in binary form. Other forms of representing OAM code block parameters are also possible and can be customized according to actual applications and scenarios.

[0056] As an optional embodiment, determining the first data message based on the result includes: when the result is that it does not contain the OAM code block, constructing an identification code block, wherein the identification code block is used to identify that the first data message does not include the OAM code block; inserting the identification code block into the original data message to obtain the first data message.

[0057] This embodiment describes the processing steps for when the result indicates that the OAM code block is not present. If the result indicates that the OAM code block is not present, meaning it is known that the data message will not contain an OAM code block, an identification code block can be used to indicate that the first data message does not contain an OAM code block. This avoids the need for OAM identification and deletion, thus simplifying the process of the method provided in this application. Therefore, the identification code is inserted into the original data message to obtain the first data message.

[0058] It should be noted that the OAM code block can be represented by a binary number such as 01 to represent the above OAM code block parameters. For example, 0 represents the absence of an OAM code block. If there is no OAM code block, it can be represented by a binary number. In this way, the amount of data in the code block can be reduced. In some specific cases, the size of the code block can also be reduced to reduce the overall data volume.

[0059] As an optional embodiment, inserting an identification code block into the original data message to obtain a first data message includes: when there is an idle code block before the start code block, replacing the idle code block with the identification code block to obtain the first data message.

[0060] This embodiment illustrates that, when an idle code block exists before a start code block, the idle code block is replaced with an identification code block to obtain a first data message. That is, the identification code block in the first data message is not a newly added code block, but is obtained by replacing the original idle code block. This approach eliminates the need to add an identification code block to the data packet to indicate whether the data packet contains an OAM code block and the specific location of the OAM code block. Therefore, bandwidth resource consumption is eliminated, saving bandwidth resources. This also addresses the technical issue of bandwidth consumption in related technologies, which still requires adding an identification code block to the data packet to indicate whether the data packet contains an OAM code block.

[0061] As an optional embodiment, when there is an OAM code block in the first data message and the OAM code blocks are arranged in a predetermined period, the identification code block is used to identify the position information of the first OAM code block, the predetermined period, so that the receiving end determines the position of the remaining OAM code blocks in the first data message based on the predetermined period.

[0062] This embodiment describes the processing steps for the case where OAM code blocks are present in a first data packet and are arranged in a predetermined period. When OAM code blocks are present in the first data packet and are arranged in a predetermined period, the identification code block can be used only to identify the position information and the predetermined period of the first OAM code block. For example, if the first OAM code block is located at the 50th code block, and the predetermined period is one OAM code block inserted every 16,383 66B code blocks, then the positions of subsequent OAM code blocks are the 16,434th code block, the 32,817th code block, and so on. It can be seen that the receiving end can determine the positions of the remaining OAM code blocks in the first data packet based on the predetermined period in the above manner. This allows the positions of multiple OAM code blocks to be determined even if the identification code block carries a small amount of information.

[0063] Figure 2 Flowchart of another data message processing method provided in Example 1 of the present invention, Figure 2 As shown, the method includes the following steps:

[0064] Step S202: Receive a first data message sent by a transmitting end, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located before the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message, and identifying location information of the OAM code block if the OAM code block is included in the first data message;

[0065] In step S202 provided in the present application, a first data message sent by a transmitting end is received, wherein the first data message includes a plurality of sequentially arranged code blocks, that is, it can be understood that the first data message includes a string of sequentially arranged code blocks, and the code blocks include multiple different types, for example, code blocks representing original data message information, idle code blocks, start code blocks, end code blocks, and so on. This is not limited here, and can be adaptively set according to actual scenarios.

[0066] A start code block and an identification code block are defined among the multiple code blocks. The identification code block is located in the front position of the start code block. Since the identification code block is set before the start code block, there is no need to analyze each code block one by one to determine the position of the identification code block, and there will be no problem of wasting computing resources.

[0067] Step S204: sequentially identify multiple code blocks in the first data message to identify the first data message.

[0068] In step S204 provided in the present application, the transmitting end transmits the first data message to the receiving end, and the receiving end is capable of sequentially identifying multiple code blocks in the first data message to identify the first data message. Since the identification code block is used to identify whether an OAM code block exists in the first data message and the location information of the OAM code block, the receiving end is capable of quickly identifying the location of the OAM code block, so that after the receiving end has identified the message, the OAM code block at the corresponding position is deleted to achieve the purpose of restoring the original data message.

[0069] Through steps S202-S204 above, a first data message sent by a transmitting end is received, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located before the start code block and used to identify whether an operations, administration, and maintenance (OAM) code block is present in the first data message. The plurality of code blocks in the first data message are sequentially identified to identify the first data message. Since the identification code block is set before the start code block, there is no need to analyze each code block one by one to determine the position of the identification code block, and there will be no problem of wasting computing resources. Moreover, the identification code block is used to identify whether the OAM code block exists in the first data message, that is, it can quickly determine whether the OAM code block exists in the first data message, avoiding the problem of time, computing resources, etc. consumed by querying in the first data message when the OAM code block does not exist. Moreover, by identifying whether the OAM code block exists in the first data message, and identifying the location information of the OAM code block when the OAM code block exists, the OAM code block at the corresponding position can be quickly found, extracted and deleted, so as to achieve the purpose of restoring to the original data message. Therefore, the method provided in this application can solve the technical problem in the related technology that it is necessary to analyze each code block one by one to determine the position of the identification code block, resulting in resource consumption.

[0070] As an optional embodiment, after receiving the first data packet sent by the sending end, it also includes: receiving the second data packet sent by the sending end, wherein the second data packet is a data packet sent by the sending end to the receiving end after sending the first data packet, and the identification information in the second data packet is identified by the identification code block in the first data packet, and the identification code block in the first data packet is also used to identify whether there is an OAM code block in the second data packet, and to identify the location information of the OAM code block when there is an OAM code block in the second data packet; the second data packet is processed according to the identification information identified by the identification code block.

[0071] In this embodiment, the step after receiving the first data message sent by the sending end includes receiving the second data message sent by the sending end. Because data messages can be sent continuously, there will be a second data message after the first data message is sent.

[0072] At this time, the identification information in the second data message can be identified by the identification code block in the first data message, that is, the identification code block of the first data message, in addition to identifying its own OAM code block situation, can also identify the OAM code block information of subsequent data messages (the second data message, and other messages), that is, in addition to identifying whether there is an OAM code block in the first data message, and identifying the location information of the OAM code block when the OAM code block exists in the first data message, it can also identify whether there is an OAM code block in the second data message, and identify the location information of the OAM code block when the OAM code block exists in the second data message.

[0073] That is, when the transmitting end sends multiple consecutive data messages and the receiving end receives multiple consecutive messages, there will generally be multiple start code blocks. In this case, the identification code block will be located in the front position of the first start code block (i.e., the front position of the identification code block of the first data message). The first start code block is the first start code block among the multiple start code blocks, that is, it is marked at the very beginning so that the receiving end can identify the identification code block when receiving the first data message. The identification code block can identify whether there is an OAM code block in each of the multiple consecutive data messages, as well as the location information of the OAM code block.

[0074] It should be noted that, in this case, different binary data may be used to indicate whether an OAM code block exists in each of the multiple consecutive data packets. If an OAM code block exists, the specific location of the OAM code block in the data packet containing the OAM code block is identified. This allows for efficient determination of the location of the OAM code block in the multiple consecutive data packets, thereby enabling message recovery for the multiple consecutive data packets including the second data packet.

[0075] As an optional embodiment, multiple code blocks in the first data message are identified in sequence to process the first data message, and the method also includes: when an identification code block is identified and the identification code block indicates that an OAM code block exists in the first data message, the OAM code block is extracted from the first data message based on the position information to obtain a recovered data message and an OAM code block.

[0076] This embodiment illustrates that after a transmitting end sends a first data message to a receiving end, the receiving end can sequentially identify multiple code blocks in the first data message to identify the first data message. Because the identification code block is used to identify whether an OAM code block exists in the first data message and the location of the OAM code block, the receiving end can quickly identify the location of the OAM code block. After the receiving end has identified the message, the OAM code block at the corresponding location can be deleted to restore the original data message.

[0077] Based on the above embodiment and optional embodiment, an optional implementation manner is provided, which is described in detail below.

[0078] In the related art, OAM insertion is divided into two methods. The first is the idle code block replacement method. Idle code block replacement requires that there is at least one idle code block in the 64B / 66B code block stream. The idle code block can be replaced by an OAM code block. When inserting an OAM code block, it is sent by replacing the idle block in the service flow, and the idle block is supplemented after the OAM code block is extracted. However, since the occurrence position period of the idle code block is not fixed, the insertion and extraction positions of the OAM code block are not fixed, and the receiving end needs to judge and identify all received code blocks. At the same time, for OAM code blocks sent and received at a certain period, it is necessary to wait for an idle code block to be replaced before sending. Therefore, the insertion and extraction of the OAM code block will deviate from the precise configured period. That is, in the first method mentioned above, the OAM code blocks sent and received at a certain period need to wait for an idle code block to be replaced before sending. Therefore, the insertion and extraction of the OAM code block will deviate from the precise configured period.

[0079] At the same time, the above method requires the insertion of OAM code blocks after the data packet transmission is completed in the data message. Figure 3 This is a schematic diagram of a method in the related art provided by an optional embodiment of the present invention, such as Figure 3However, in the second method, if long or oversized packets are transmitted, the OAM block insertion interval will be too long during transmission, hindering timely management, operation, and maintenance. For example, for a 64-byte packet with an SPN 10M granularity, the CC block detection period is 3.5*8*64 / 10Mbps = 3.5*0.05ms = 0.175ms. For a 9600-byte oversized packet, the CC block detection period is 3.5*1200*64 / 10Mbps = 3.5*7.7ms = 27ms, a difference of approximately 150 times. The SPN path layer protection switching time must be no more than 50ms. Therefore, the problem of excessively long OAM block insertion intervals during the transmission of long or oversized packets needs to be addressed.

[0080] The second method is to insert an identification code block into the original data message, that is, to carry the OAM code block in the data message, and to mark that the data message contains the OAM code block by inserting a new code block into the data message. Figure 4 This is a schematic diagram corresponding to another method in the related art provided by an optional embodiment of the present invention, such as Figure 4 However, this method requires analyzing and comparing the data blocks in the data message to determine whether the data message contains an identification block, referred to herein as an X block. Furthermore, because the position of the X block is not fixed, the block-by-block comparison must be performed. Furthermore, the X block used for identification is also a 66B block, which occupies a certain amount of bandwidth and reduces bandwidth utilization.

[0081] In view of this, a data message processing method is provided in an optional implementation manner of the present invention, which is described in detail below.

[0082] S1. A transmitting end obtains a first data message, where the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located before the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message, and identifying location information of the OAM code block if the OAM code block is included in the first data message;

[0083] The identification code block is located at the front of the start code block. If the front position is an idle code block, the idle code block can be expanded into an identification code block, which is called a Y code block (66B) here. This code block has the following functions:

[0084] ① If the next data message contains an OAM code block, the Y code block is the above-mentioned identification code block, such as it can be called an X code block, indicating that the next data message contains one or more OAM code blocks. Figure 5 Schematic diagram of an OAM code block insertion method provided by an optional embodiment of the present invention, such as Figure 5As shown, the Y code block is an identification code block, which can identify the position information of two OAM code blocks in the data message.

[0085] ② If the next data message does not contain an OAM code block, the Y code block is the above-mentioned identification code block, such as, it can continue to be set as an idle code block.

[0086] It should be noted that, when the first data message is a plurality of continuous data messages and the start code blocks include multiple, the identification code block is located in the front position of the first start code block. The identification code block is used to identify whether there are OAM code blocks in the multiple continuous data messages, and to identify the position information of the OAM code blocks if there are OAM code blocks. The first start code block is the first start code block among the multiple start code blocks.

[0087] Figure 6 Schematic diagram of another OAM code block insertion method provided by an optional embodiment of the present invention, such as Figure 6 As shown, the Y code block is an identification code block. The identification code block can identify whether the first data packet in multiple consecutive data packets does not include an OAM code block, the second data packet does include an OAM code block, and the location information of the OAM code block. In other words, the Y code block not only indicates whether the next data packet contains an OAM code block, but also whether the next data packet contains an OAM code block, and even whether the next N data packets contain OAM code blocks, where N is an integer greater than or equal to 1.

[0088] This approach can also avoid the situation where the first data code block does not include an OAM code block, the second data code block includes an OAM code block, but there is no idle code block between the two data code blocks.

[0089] S2, the sending end sends a first data message to the receiving end;

[0090] S3, the receiving end receives a first data message sent by the sending end, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block is located in a preceding position of the start code block, and the identification code block is used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message;

[0091] S4. The receiving end identifies multiple code blocks in the first data message in sequence to identify the first data message.

[0092] Through the above optional implementation, at least the following beneficial effects can be achieved:

[0093] (1) It can avoid waiting for idle code blocks before sending replacements, and avoid the problem that the insertion and extraction of OAM code blocks will deviate from the configured precise period, that is, avoid the problem that the OAM insertion / extraction period is offset;

[0094] (2) Rationally utilize idle code blocks and expand them into Y code blocks. Y code blocks can be OAM code blocks or indicate X code blocks. This solves the problem of long OAM code block insertion intervals during the transmission of long and ultra-long packets, as well as the problem of X code blocks occupying resource bandwidth and reducing bandwidth utilization.

[0095] (3) It can avoid comparing each code block of the data message to determine whether there is an X code block, thereby reducing the complexity of data code block processing;

[0096] (4) When the idle code block is located before the start code block, the idle code block can be expanded to a Y code block. This not only improves the code block utilization rate, but also enables the receiving end to correctly receive the OAM code block in the data message.

[0097] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0098] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.

[0099] Example 2

[0100] According to an embodiment of the present invention, a system for implementing the above-mentioned data message processing method is also provided. Figure 7 is a structural block diagram of a data message processing system according to an embodiment of the present invention, such as Figure 7 As shown, the system includes: a transmitting end 702 and a receiving end 704. The system will be described in detail below.

[0101] The transmitting end obtains a first data message, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message, and identifying location information of the OAM code block if the OAM code block is included in the first data message;

[0102] The sending end sends a first data message to the receiving end;

[0103] The receiving end receives a first data message sent by the sending end, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is included in the first data message, and identifying location information of the OAM code block if the OAM code block is included in the first data message;

[0104] The receiving end identifies the multiple code blocks in the first data message in sequence to identify the first data message.

[0105] It should be noted here that the above-mentioned sending end 702 and receiving end 704 are used to implement the steps in the above-mentioned data message processing method. The examples and application scenarios implemented by the above-mentioned steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.

[0106] Example 3

[0107] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement any of the above-mentioned data message processing methods.

[0108] Example 4

[0109] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned data message processing methods.

[0110] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0111] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0112] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0113] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0114] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0115] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.

[0116] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A data message processing method, characterized in that: include: Obtaining a first data message, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is present in the first data message, and identifying location information of the OAM code block if the OAM code block is present in the first data message; Send the first data message to the receiving end.

2. The method according to claim 1, characterized in that After sending the first data message to the receiving end, the method further includes: Obtaining a second data message, wherein the second data message is a data message to be sent to the receiving end after the first data message is sent, the identification information in the second data message is identified by the identification code block in the first data message, and the identification code block in the first data message is further used to identify whether the OAM code block exists in the second data message, and if the OAM code block exists in the second data message, identify the location information of the OAM code block; Send the second data message to the receiving end.

3. The method according to claim 1, characterized in that Obtaining a first data message includes: Acquire an original data message, wherein the original data message includes a plurality of code blocks arranged in sequence, and the plurality of code blocks include the start code block; Determine whether the original data message contains the OAM code block; Determine the first data packet based on the result.

4. The method according to claim 3, characterized in that Determining the first data message according to the result includes: If the result indicates that the OAM code block is included, determine the OAM code block parameters, wherein the OAM code block parameters include at least one of the following: the number of OAM code blocks, OAM code block position information, and the OAM code block position information includes any one of the following: the code block position where the OAM is located, and the OAM code block position interval; Constructing the identification code block including the OAM code block parameters; Insert the identification code block into the original data message to obtain the first data message.

5. The method according to claim 3, characterized in that Determining the first data message according to the result includes: If the result shows that the first data packet does not contain an OAM code block, construct the identification code block, wherein the identification code block is used to identify that the first data packet does not contain an OAM code block; Insert the identification code block into the original data message to obtain the first data message.

6. The method according to claim 4 or 5, characterized in that Inserting the identification code block into the original data message to obtain the first data message includes: In the case that there is an idle code block before the start code block, the idle code block is replaced with the identification code block to obtain the first data message.

7. A data message processing method, characterized in that: include: Receiving a first data message sent by a transmitting end, wherein the first data message includes a plurality of code blocks arranged in sequence, the plurality of code blocks including a start code block and an identification code block, the identification code block being located in a preceding position of the start code block, the identification code block being used to identify whether an operation, administration, and maintenance (OAM) code block is present in the first data message, and identifying location information of the OAM code block if the OAM code block is present in the first data message; Multiple code blocks in the first data message are identified in sequence to process the first data message.

8. The method according to claim 7, characterized in that After receiving the first data message sent by the sending end, the method further includes: receiving a second data packet sent by the transmitting end, wherein the second data packet is a data packet sent by the transmitting end to the receiving end after sending the first data packet, the identification information in the second data packet is identified by the identification code block in the first data packet, and the identification code block in the first data packet is further used to identify whether the OAM code block exists in the second data packet, and identify the location information of the OAM code block if the OAM code block exists in the second data packet; The second data message is processed according to the identification information identified by the identification code block.

9. The method according to claim 7, characterized in that and sequentially identifying a plurality of code blocks in the first data message to process the first data message, further comprising: When the identification code block is identified and the identification code block indicates that the OAM code block exists in the first data message, the OAM code block is extracted from the first data message according to the position information to obtain a restored data message and the OAM code block.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the data message processing method according to any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the data message processing method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Operations, administration and management information processing method and device

    US20220217067A1

  • OAM information block positioning method and device

    WO2022021882A1