OAM (Operation Administration and Maintenance) code block splicing method, system and equipment and readable storage medium
By setting the sequence number and fixed frame time processing for the OAM code blocks, identifying and splicing code blocks, the problem of poor adaptability of code block transmission protocol is solved, the efficiency and accuracy of code block splicing is improved, and data transmission abnormalities are avoided.
Patent Information
- Application Number
- CN202411271995.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-24
AI Technical Summary
In the prior art, the code block transmission protocol has poor adaptability, resulting in abnormal code block transmission, unrecognized or identification errors, resulting in system abnormalities.
By setting a sequence number for each OAM code block, identifying the first code block and the tail code block, determining the desired reception order of the subsequent code blocks based on the sequence number, and processing the code blocks within a fixed frame time to avoid incorrect splicing.
It realizes effective identification of code blocks under different sending modes, improves the efficiency and accuracy of code block splicing, and avoids confusion in data transmission.
Smart Images

Figure CN119182640A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of computer data processing, and in particular relates to an OAM code block splicing method, system, device and readable storage medium. Background Art
[0002] The OAM of SPN small particle technology provides end-to-end connectivity detection, error detection, delay measurement, protection switching, customer signal indication and other monitoring capabilities for each small particle channel. FGU OAM supports Harajuku node detection and non-intrusive monitoring of intermediate nodes, and can realize segment-by-segment connectivity detection and error detection. FGU OAM inherits the advantages of SPN channel layer OAM technology. FGU OAM uses the idle resources of the frame gap to send with the service code block without occupying additional bandwidth. Compared with traditional TDM technology overhead OAM and packet technology OAM, it has higher bandwidth utilization.
[0003] Due to the limited length of the code block, an identification information can only transmit a limited number of bytes in a code block. When the number of bytes of the identification information itself exceeds the limit that a single code block can transmit, multiple code blocks are required for transmission. When the upper computer transmits a message, it will send multiple code blocks containing the information to be sent. However, due to the limitations of the transmission protocol, if continuous code blocks are lost or out of order, the lower computer will not be able to recognize or recognize them incorrectly, resulting in system abnormalities.
[0004] Therefore, in view of the above technical problems, it is necessary to provide an improved code block identification strategy.
[0005] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0006] The object of the present invention is to provide an OAM code block splicing method, system, device and readable storage medium, which can intelligently splice code block information based on the code block transmission situation, and effectively avoid incorrect recognition or omission of valid information due to abnormal code block transmission.
[0007] In order to achieve the above object, a technical solution provided by a specific embodiment of the present invention is as follows:
[0008] In a first aspect, the present invention provides an OAM code block splicing method, which comprises:
[0009] Receiving an OAM message consisting of a plurality of OAM code blocks, wherein each OAM code block carries a sequence number;
[0010] Identify the sequence number of the first OAM code block received in each round;
[0011] Determining, according to the sequence number of the first OAM code block, whether the first OAM code block is a first code block or a last code block;
[0012] If yes, determine the expected receiving order of the subsequent OAM code blocks according to the sequence number of the first OAM code block, and splice the message information in the OAM code blocks according to the expected receiving order.
[0013] In one or more embodiments of the present invention, determining the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block, and splicing the message information in the OAM code blocks according to the sequence, includes:
[0014] When the first OAM code block sequence number received in this round is the first code block sequence number, it is expected to splice the message information in the subsequent OAM code blocks in the positive sequence;
[0015] When the sequence number of the received OAM code block is arranged in positive sequence with the sequence number of the previously received OAM code block, the OAM code blocks arranged in positive sequence are sequentially spliced;
[0016] When the sequence number of the received OAM code block is not arranged in positive sequence with the sequence number of the previously received OAM code block, all OAM code blocks received in this round are discarded and the next round of reception is performed.
[0017] In one or more embodiments of the present invention, determining the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block, and splicing the message information in the OAM code blocks according to the sequence, includes:
[0018] When the sequence number of the first OAM code block received in this round is the last code block sequence number, it is expected to splice the message information in the subsequent OAM code blocks in reverse order;
[0019] When the sequence number of the received OAM code block is in reverse order with the sequence number of the previously received OAM code block, the OAM code blocks in reverse order are spliced in reverse order;
[0020] When the sequence number of the received OAM code block is not arranged in reverse order with the sequence number of the previously received OAM code block, all OAM code blocks received in this round are discarded and the next round of reception is performed.
[0021] In one or more embodiments of the present invention, the method further comprises:
[0022] When the first OAM code block received in each round is not the first code block or the last code block, the first OAM code block received is discarded, and the next round of reception is performed.
[0023] In one or more embodiments of the present invention, the method further comprises:
[0024] After receiving the OAM code block, starting the frame timeout timing;
[0025] If the next OAM code block is not received within the preset framing time, all OAM code blocks received in this round are cleared and the next round of reception is restarted.
[0026] In one or more implementations of the present invention, the framing time is greater than or equal to an interval time for sending adjacent code blocks in the same message, and less than a minimum interval time for sending code blocks of different messages.
[0027] In one or more embodiments of the present invention, the step of splicing the message information in the OAM code block according to the expected receiving order includes:
[0028] Obtain the number of OAM code blocks contained in the OAM message to be spliced;
[0029] When the number of spliced OAM code blocks is equal to the number of code blocks included in the OAM message to be spliced, the currently spliced message information is read.
[0030] In one or more embodiments of the present invention, the step of splicing the message information in the OAM code block according to the expected receiving order includes:
[0031] If the first OAM code block received in this round is the head code block, when splicing to the tail code block, read the currently spliced message information;
[0032] If the first OAM code block received in this round is the tail code block, when it is spliced to the head code block, the currently spliced message information is read.
[0033] In a second aspect, the present invention provides an OAM code block splicing system, comprising:
[0034] A receiving module, used for receiving an OAM message consisting of a plurality of OAM code blocks, wherein each OAM code block carries a sequence number;
[0035] An identification module, used to identify the sequence number of the first OAM code block received in each round;
[0036] A judging module, used for judging whether the first OAM code block is a first code block or a last code block according to the sequence number of the first OAM code block;
[0037] The reading module is used to determine the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block when the first received OAM code block is the first code block or the last code block, and splice the message information in the OAM code blocks according to the expected receiving order.
[0038] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the OAM code block splicing method by executing the computer instructions.
[0039] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the OAM code block splicing method.
[0040] Compared with the prior art, the OAM code block splicing method provided by the present invention can expand the protocol's sending and receiving strategy by sensing the code block's signaling status and configuring the corresponding splicing strategy, thereby realizing effective identification of code blocks under a variety of different signaling modes and solving the problem of poor adaptability of code block transmission protocols in the prior art. Furthermore, by setting the framing time, it is possible to prevent abnormal splicing of code blocks between different messages without occupying code block storage space to set additional identifiers, thereby preventing data transmission confusion, and improving the efficiency and accuracy of code block splicing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 This is a schematic diagram of an OAM code block splicing scenario in one embodiment of the present invention;
[0043] Figure 2 It is a flow chart of an OAM code block splicing method in one embodiment of the present invention;
[0044] Figure 3 is a structural block diagram of an OAM code block splicing system in one embodiment of the present invention;
[0045] Figure 4 It is a structural block diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0046] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.
[0047] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0048] In order to facilitate understanding of the technical solutions of the present application, the technical terms that may appear in the present invention are first explained in detail below.
[0049] SPN (Slicing Packet Network): Slicing Packet Network is a new generation of converged bearer network architecture based on the Slicing Ethernet (SE) core. It has technical advantages such as low latency, large bandwidth, ultra-high precision synchronization, and flexible management and control. At the same time, SPN is compatible with the Ethernet ecosystem and has the characteristics of low cost and easy deployment. SPN technology is an innovative technology system proposed for 5G bearer. It is a continuation of the packet transport network PTN technology, and has been enhanced and innovated on this basis. It can provide lossless and efficient data transmission, achieve complete end-to-end hard isolation with extremely low latency, and realize soft isolation according to needs, helping industry customers to balance security and business system flexibility, and ensure the red line of data security.
[0050] OAM (Operation Administration and Maintenance): refers to the division of network management work into three categories: operation, administration, and maintenance, based on the actual needs of the operator's network operations. Operation mainly completes the analysis, prediction, planning, and configuration of daily network and business operations; maintenance mainly involves daily operational activities such as testing and fault management of the network and its services.
[0051] FGU (Fine Granularity Unit): Fine Granularity Unit is a specific implementation method of SPN, which aims to build end-to-end efficient, lossless, flexible bandwidth, flexible and reliable channels and bearer methods, and reduce the granularity of hard slices from 5Gbps to 10Mbps to meet the small-granularity business needs of 5G+ vertical industry applications and dedicated line business scenarios.
[0052] In the prior art, there is a method for data transmission based on multiple code blocks, such as connectivity verification through the transmission of CV code blocks. CV information consists of source point identification information (SAPI) and destination point identification information (DAPI), and both SAPI and DAPI are 16-byte strings. The two ends of the CV function are periodically sent to the other end the locally maintained source point identification information (SAPI) and destination point identification information. After receiving the information, the receiving end compares it with the locally maintained identification information. If they are inconsistent, it indicates a connectivity verification error and reports an alarm.
[0053] However, due to the limited length of the code block, the source point identification information (SAPI) and the destination point identification information (DAPI) can only transmit 4 bytes in one code block. A 16-byte identification information needs to occupy 4 code blocks to be transmitted. However, in the prior art, only code blocks sent in the order of information slices are supported for reception. In actual applications, due to the limitations of the protocol, if the sender sends OAM code blocks in a non-sequential manner, they will not be recognized.
[0054] On the other hand, when a message consists of only two code blocks, the loss of any code block in the prior art will cause all subsequent code blocks to be unrecognizable. Therefore, the technical solution will inevitably have the problems of poor adaptability and low data transmission efficiency. The inventor of the present invention has found the main shortcomings of the prior art, and based on the shortcomings of the prior art, has proposed a new technical implementation idea: when the host computer sends different code blocks, a serial number is added to each code block based on the slicing order of the information to identify the position of each code block in the information to be transmitted. The first code block and the last code block are used as the starting point of reception, and the splicing strategy is defined according to the sequence number order of the received code blocks. The problem that the protocol transmission adaptability in the prior art is poor and can only accept code blocks sent sequentially is effectively solved.
[0055] In addition, the present invention is also provided with a framing time, which starts when a code block is received and is reset when the next code block is received. By setting the framing time, code blocks in different messages can be distinguished without setting other identifiers, thereby avoiding incorrect splicing and improving data processing efficiency and accuracy.
[0056] Please refer to Figure 1 , which is a schematic diagram of an application scenario of the OAM code block splicing method provided by the present invention under an implementation mode, and the scenario specifically includes: a host computer 101, a slave computer 102 and a user terminal 103.
[0057] It should be noted that communication connections are provided between the host computer 101, the slave computer 102 and the user terminal 103, which are used for data transmission between the host computer 101 and the slave computer 102, setting of related functions in response to commands of the user terminal 103, etc. The communication network derived from the above communication connection may include various connection types, including but not limited to: wired connection, wireless connection or optical fiber cable connection, etc. At the same time, the communication network may be a local area network, a metropolitan area network, a wide area network or any combination of the three.
[0058] The upper computer 101 and the lower computer 102 are the transmitting end and the receiving end of the code block. The embodiment of the present invention does not limit the types and models of the upper computer and the lower computer. It can be understood that the upper computer should at least be able to realize the functions required by the present invention to transmit the information to be forwarded in one or more code blocks and to identify the position of the code block information in the information to be forwarded as a sequence number that can be parsed by the lower computer. The lower computer needs to have the functions of receiving and parsing code block information, timeout timer, and processing code blocks to realize the present invention.
[0059] The user terminal 103 is used to set the frame time of the lower computer based on the above communication connection, and the upper computer sets the sending frequency and interval time of the code blocks within the same information / code blocks between different information. The above setting items can be customized based on the implementation scenario of the solution and the needs of the user, and the embodiment of the present invention does not limit this.
[0060] It should be noted that the user terminal 103 is installed with a computer software program that matches the OAM code block splicing method provided by this method; the user terminal 103 may include but is not limited to a desktop computer (PC), a desktop computer, a smart phone, a handheld computer, a tablet computer, a personal digital assistant (PDA), and other portable electronic devices or wearable electronic devices, and the embodiments of the present invention do not limit the above contents.
[0061] It should also be noted that the OAM code block splicing method of the embodiment of the present invention can be applied to the OAM code block splicing system of the embodiment of the present invention. The OAM code block splicing system can be configured in a terminal. The terminal can include but is not limited to a PC (Personal Computer), a PDA (tablet computer), a smart phone, a smart wearable device, and the like.
[0062] Please refer to Figure 2 FIG. 1 is a flow chart of an OAM code block splicing method according to an embodiment of the present invention. The OAM code block splicing method specifically comprises the following steps:
[0063] S201: receiving an OAM message consisting of a plurality of OAM code blocks, wherein each OAM code block carries a sequence number;
[0064] It should be noted that a code block is a series of continuous bits that can be processed as a whole due to technical or logical reasons. When the amount of information to be sent by the host computer is large, it may be necessary to transmit multiple code blocks together due to the limitation of the number of bytes transmitted by the code block. Different code blocks carry part of the data to be sent. Based on the position of the information carried by the code block, it can be divided into the first code block, the last code block and the middle code block.
[0065] Furthermore, in the technical solution of the present invention, in order to more clearly distinguish the positions of data in different code blocks in the original information to be forwarded, a sequence number is set in the code block to indicate the corresponding relationship between the code block data and the original information to be forwarded. The sequence number can be set in Arabic numerals or any other identifier, and the embodiment of the present invention does not limit this.
[0066] S202: Identify the sequence number of the first OAM code block received in each round;
[0067] It should be noted that in actual application scenarios, the upper computer sends OAM code blocks constituting OAM message information non-periodically. During the receiving process, the lower computer only receives one or more OAM code blocks corresponding to an OAM message in each round.
[0068] It is understandable that when the receiving end is turned on / a code block is discarded / the previous OAM message information is completely spliced, a new round of code block reception and splicing work will automatically start.
[0069] S203: judging whether the first OAM code block is a first code block or a last code block according to the sequence number of the first OAM code block;
[0070] It should be noted that when the starting point of the code block splicing is not set, the receiving end is required to start and stop synchronously with the sending end, or the receiving end is required to start before the sending end. This is to avoid missing code blocks. When the receiving end is later than the sending end, it may miss the reception of some code blocks, which will result in only part of the code blocks in the first sent information being received by the receiving end. This part of the code blocks cannot be spliced into complete information, and there is no corresponding means in the protocol to process it. It can only be accumulated as junk information at the receiving end, resulting in a waste of storage resources at the receiving end.
[0071] Therefore, considering the limitation of the data transmission mode of the current transceiver, in order to further optimize the transmission strategy, the present invention uses the first code block and the last code block as the starting point of code block splicing. Specifically, in an exemplary embodiment, when the first OAM code block received in each round is not the first code block or the last code block, the first OAM code block received is discarded and the next round of reception is performed.
[0072] Based on the above processing method, the accumulation of junk code blocks can be avoided. Furthermore, when the upper computer periodically sends the OAM code blocks corresponding to the OAM message information, it is no longer necessary to enforce the start and stop time of the transceiver. Even if the start time of the receiving end is later than that of the sending end, the information currently sent by the sending end is not fully received. Since the discarding mechanism is set, it will not cause waste of resources. The message sent by the upper computer in the current cycle is discarded, and it can be received and spliced from the next cycle.
[0073] S204: If yes, determine the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block, and splice the message information in the OAM code blocks according to the expected receiving order.
[0074] In an exemplary embodiment, the expected receiving order of subsequent OAM code blocks is determined according to the sequence number of the first OAM code block, and the message information in the OAM code blocks is spliced according to the order, including: when the sequence number of the first OAM code block received in this round is the first code block / last code block sequence number, it is expected to splice the message information in the subsequent OAM code blocks in positive order / reverse order; when the sequence number of the received OAM code block is arranged in positive order / reverse order with the sequence number of the previously received OAM code block, the OAM code blocks arranged in positive order / reverse order are spliced in sequence / reverse order; when the sequence number of the received OAM code block is not arranged in positive order / reverse order with the sequence number of the previously received OAM code block, all OAM code blocks received in this round are discarded, and the next round of reception is performed.
[0075] For example, taking the CV code block as an example, there are 8 CV code blocks in total, 0-7. When the first CV code block is received, the chip recognizes that the code block sequence number is 0, and receives the next OAM code block. If the corresponding CV code block sequence number is 1, it will receive and splice the information of code block 0 and code block 1 in sequence, and so on until it is spliced to the last code block.
[0076] For another example, when the sequence number of the identified code block is 7, the next OAM code block is received. If the sequence number of the corresponding CV code block is 6, the information of code block 7 and code block 6 is received and spliced in reverse order. However, a code block with sequence number 2 is received immediately afterwards. It can be understood that code block 6 and its adjacent received code block 2 are not in reverse order, so code block 2 and the previously received code blocks 6 and 7 are discarded.
[0077] Furthermore, the OAM code block splicing method provided by the present invention also sets a framing mechanism, and the above-mentioned framing mechanism specifically includes: after receiving the OAM code block, starting the framing timeout timing; if the next OAM code block is not received within the preset framing time, clearing all OAM code blocks received in this round, and restarting the next round of reception.
[0078] The setting based on the fixed frame time can distinguish the code blocks of different information through the fixed frame time without setting other identifiers to occupy the space of the code block, avoiding reception / discarding errors. At the same time, it can also respond when the code block cannot be received for a long time, expanding the transmission protocol.
[0079] It should be noted that in order to give full play to the role of the framing time in distinguishing the code blocks corresponding to different information, the framing time should be less than the minimum interval time for sending different message code blocks. At the same time, in order to prevent the misjudgment of adjacent code blocks in the same message when receiving, the above-mentioned framing time should also be greater than or equal to the maximum interval time for adjacent code blocks in the same message sent by the upper computer.
[0080] For example, a flag information is composed of two code blocks with serial numbers 1 and 2 respectively. The upper computer sends the flag information in the order of code block 1 and code block 2 from first to last in one cycle, that is, the code block with serial number 1 is the first code block, and the code block with serial number 2 is the last code block. When the receiving end starts the delay, code block 1 is missed and only code block 2 is received. At this time, since code block 2 is the last code block, it is temporarily saved, and it is expected to splice the subsequent received code blocks in reverse order. At this time, since the next OAM code block is the first code block corresponding to the next OAM message, its serial number is probably 1. If the framing time is not set, different messages will be spliced, which may cause data transmission abnormalities. However, in the OAM code block splicing method of the present invention, the framing time is started when code block 2 is saved. The next code block must not be received within the preset framing time, so code block 2 must be discarded and the next round is started.
[0081] It is understandable that the above-mentioned splicing of the message information in the OAM code block according to the expected receiving order also requires determining when the splicing of the OAM message information is completed.
[0082] In an exemplary embodiment, reading the spliced code blocks to be read includes: obtaining the number of OAM code blocks included in the OAM message to be spliced; when the number of spliced OAM code blocks is equal to the number of code blocks included in the OAM message to be spliced, reading the currently spliced code block information.
[0083] It should be noted that the number of code blocks depends on the size of the information to be sent to the lower computer. The number of bytes that can be transmitted by a code block is fixed, so the number of code blocks required for unified information transmission is also fixed. When the number of code blocks that have participated in the splicing is equal to the number of code blocks required for the information transmission, it is considered that the information has been completely received and spliced.
[0084] In another exemplary embodiment, the splicing end point may also be confirmed based on the splicing start point. That is, if the first OAM code block received in this round is the first code block, when splicing to the last code block, the currently spliced message information is read; if the first OAM code block received in this round is the last code block, when splicing to the first code block, the currently spliced message information is read.
[0085] Please refer to Figure 3 As shown, based on the same inventive concept as the aforementioned OAM code block splicing method, an embodiment of the present invention provides an OAM code block splicing system 300 , which includes: a receiving module 301 , an identification module 302 , a judgment module 303 and a reading module 304 .
[0086] Specifically, the receiving module 301 is used to receive an OAM message composed of multiple OAM code blocks, each of which carries a serial number; the identifying module 302 is used to identify the serial number of the first OAM code block received in each round; the judging module 303 is used to judge whether the first OAM code block is a first code block or a last code block according to the serial number of the first OAM code block; the reading module 304 is used to determine the expected receiving order of subsequent OAM code blocks according to the serial number of the first OAM code block when the first OAM code block received is the first code block or the last code block, and splice the message information in the OAM code blocks according to the expected receiving order.
[0087] It should be noted that the reading module 304 is also used to, when the sequence number of the first OAM code block received in this round is the first code block sequence number, expect to splice the message information in the subsequent OAM code blocks in positive sequence; when the sequence number of the received OAM code block is arranged in positive sequence with the sequence number of the previously received OAM code block, sequentially splice the OAM code blocks arranged in positive sequence; when the sequence number of the received OAM code block is not arranged in positive sequence with the sequence number of the previously received OAM code block, discard all OAM code blocks received in this round and proceed to the next round of reception.
[0088] When the sequence number of the first OAM code block received in this round is the sequence number of the last code block, it is expected that the message information in the subsequent OAM code blocks will be spliced in reverse order; when the sequence number of the received OAM code block is in reverse order with the sequence number of the previously received OAM code block, the OAM code blocks in reverse order will be spliced in reverse order; when the sequence number of the received OAM code block is not in reverse order with the sequence number of the previously received OAM code block, all OAM code blocks received in this round will be discarded and the next round of reception will be carried out.
[0089] The reading module 304 is further configured to obtain the number of OAM code blocks contained in the OAM message to be spliced; when the number of spliced OAM code blocks is equal to the number of code blocks contained in the OAM message to be spliced, read the currently spliced code block information.
[0090] When the first OAM code block received in this round is the first code block, when it is spliced to the last code block, the currently spliced message information is read; when the first OAM code block received in this round is the last code block, when it is spliced to the first code block, the currently spliced message information is read.
[0091] It should also be noted that the OAM code block splicing system 300 provided by the present invention further includes a discarding module, which is used to discard the first OAM code block received in each round when it is not the first code block or the last code block, and proceed to the next round of reception.
[0092] The OAM code block splicing system 300 provided by the present invention also includes a framing module, which is used to start framing timeout timing after receiving the OAM code block; if the next OAM code block is not received within the preset framing time, all OAM code blocks received in this round are cleared and the next round of reception is restarted. The framing time is greater than or equal to the interval time of sending adjacent code blocks in the same message, and less than the minimum interval time of sending code blocks of different messages.
[0093] Please refer to Figure 4 As shown, an embodiment of the present invention further provides an electronic device 400, which includes at least one processor 401, a memory 402 (such as a non-volatile memory), a memory 403, and a communication interface 404, and the at least one processor 401, the memory 402, the memory 403, and the communication interface 404 are connected together via a bus 405. At least one processor 401 is used to call at least one program instruction stored or encoded in the memory 402, so that the at least one processor 401 performs various operations and functions of the OAM code block splicing method described in various embodiments of this specification.
[0094] In an embodiment of the present specification, the electronic device 400 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile electronic device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable electronic device, a consumer electronic device, and the like.
[0095] An embodiment of the present invention further provides a computer-readable medium carrying computer-executable instructions. When the computer-executable instructions are executed by a processor, they can be used to implement various operations and functions of the OAM code block splicing method described in various embodiments of this specification.
[0096] The computer-readable medium in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0097] In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0098] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0099] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, systems, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0100] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. An OAM code block splicing method, characterized in that: include: Receiving an OAM message consisting of a plurality of OAM code blocks, wherein each OAM code block carries a sequence number; Identify the sequence number of the first OAM code block received in each round; Determining, according to the sequence number of the first OAM code block, whether the first OAM code block is a first code block or a last code block; If yes, determine the expected receiving order of the subsequent OAM code blocks according to the sequence number of the first OAM code block, and splice the message information in the OAM code blocks according to the expected receiving order.
2. The OAM code block splicing method according to claim 1, characterized in that: The step of determining the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block, and splicing the message information in the OAM code blocks according to the sequence, includes: When the first OAM code block sequence number received in this round is the first code block sequence number, it is expected to splice the message information in the subsequent OAM code blocks in the positive sequence; When the sequence number of the received OAM code block is arranged in positive sequence with the sequence number of the previously received OAM code block, the OAM code blocks arranged in positive sequence are sequentially spliced; When the sequence number of the received OAM code block is not arranged in positive sequence with the sequence number of the previously received OAM code block, all OAM code blocks received in this round are discarded and the next round of reception is performed.
3. The OAM code block splicing method according to claim 1, characterized in that: The step of determining the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block, and splicing the message information in the OAM code blocks according to the sequence, includes: When the sequence number of the first OAM code block received in this round is the last code block sequence number, it is expected to splice the message information in the subsequent OAM code blocks in reverse order; When the sequence number of the received OAM code block is in reverse order with the sequence number of the previously received OAM code block, the OAM code blocks in reverse order are spliced in reverse order; When the sequence number of the received OAM code block is not arranged in reverse order with the sequence number of the previously received OAM code block, all OAM code blocks received in this round are discarded and the next round of reception is performed.
4. The OAM code block splicing method according to claim 1, characterized in that: The method further comprises: When the first OAM code block received in each round is not the first code block or the last code block, the first OAM code block received is discarded, and the next round of reception is performed.
5. The OAM code block splicing method according to claim 1, characterized in that: The method further comprises: After receiving the OAM code block, starting the frame timeout timing; If the next OAM code block is not received within the preset framing time, all OAM code blocks received in this round are cleared and the next round of reception is restarted.
6. The OAM code block splicing method according to claim 5, characterized in that: The framing time is greater than or equal to the interval time for sending adjacent code blocks in the same message, and less than the minimum interval time for sending code blocks of different messages.
7. The OAM code block splicing method according to claim 1, characterized in that: The splicing of message information in the OAM code block according to the expected receiving order includes: Obtain the number of OAM code blocks contained in the OAM message to be spliced; When the number of spliced OAM code blocks is equal to the number of code blocks included in the OAM message to be spliced, information of the currently spliced code blocks is read.
8. The OAM code block splicing method according to claim 1, characterized in that: The splicing of message information in the OAM code block according to the expected receiving order includes: If the first OAM code block received in this round is the head code block, when splicing to the tail code block, read the currently spliced message information; If the first OAM code block received in this round is the tail code block, when it is spliced to the head code block, the currently spliced message information is read.
9. An OAM code block splicing system, characterized in that: include: A receiving module, used for receiving an OAM message consisting of a plurality of OAM code blocks, wherein each OAM code block carries a sequence number; An identification module, used to identify the sequence number of the first OAM code block received in each round; A judging module, used for judging whether the first OAM code block is a first code block or a last code block according to the sequence number of the first OAM code block; The reading module is used to determine the expected receiving order of subsequent OAM code blocks according to the sequence number of the first OAM code block when the first received OAM code block is the first code block or the last code block, and splice the message information in the OAM code blocks according to the expected receiving order.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the OAM code block splicing method according to any one of claims 1 to 8 by executing the computer instructions.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the OAM code block splicing method according to any one of claims 1 to 8.
