OAM information block positioning method and device

By inserting the OAM information block carrying position deviation information into the service code block stream, the problem that the receiver cannot determine the desired insertion position of the OAM information block is solved, and accurate positioning and detection of the receiver is realized.

CN112511331BActive Publication Date: 2025-08-08ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010738888.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-28
Publication Date
2025-08-08
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

The receiver cannot effectively determine the desired insertion position of the OAM information block, resulting in the inability to accurately receive and detect the OAM information block.

Method used

The OAM information block carrying position deviation information is inserted into the service code block stream, and the deviation value between the first position and the second position is indicated by the position deviation information, so that the receiving end can determine the second position as the desired insertion position of the transmitter.

Benefits of technology

Ensure that the receiver can accurately determine the desired insertion position of the OAM information block, thereby effectively receiving and detecting the OAM information block, solving the problem that the receiver cannot receive accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112511331B_ABST
    Figure CN112511331B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides an OAM information block positioning method and apparatus, wherein the OAM information block positioning method includes: inserting an OAM information block at a first position in a service code block stream; wherein the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and the second position, and the second position is used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period; and transmitting the service code block stream to the receiving end so that the receiving end can determine the second position based on at least the position deviation information. Through the embodiment of the present invention, the problem in the related art that the receiving end cannot effectively determine the expected insertion position of the OAM information block can be solved, so that the receiving end can effectively determine the expected insertion position of the OAM information block in the transmitting end, thereby ensuring that the receiving end receives the corresponding OAM information block.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular to an OAM information block positioning method and device. Background Art

[0002] The Flexible Ethernet (FlexE) protocol is the core technology of 5G bearer. Currently, the International Telecommunication Union (ITU) has added the Operation, Administration and Maintenance (OAM) function of pipeline monitoring to FlexE customer services to detect the service quality status of the pipeline that carries FlexE customer services, such as bit error rate, delay time, service discard and other functions. During the implementation of the OAM function, the sending end sends the OAM information block according to a fixed period. The OAM information block is inserted into the customer service code block stream, and the receiving end also receives and detects the OAM information block according to the same fixed period. However, in the related art, since synchronization between the sending end and the receiving end is often not achieved, the position where the receiving end receives and detects the OAM information block cannot correspond to the insertion position of the OAM information block, and thus the OAM information block cannot be effectively received and detected.

[0003] With respect to the problem in the above-mentioned related art that the receiving end cannot effectively determine the desired insertion position of the OAM information block, no effective solution has been proposed in the related art. Summary of the Invention

[0004] The embodiments of the present invention provide an OAM information block positioning method and device, so as to at least solve the problem in the related art that a receiving end cannot effectively determine a desired insertion position of an OAM information block.

[0005] According to one embodiment of the present invention, a method for locating an OAM information block is provided, which is applied to a transmitting end. The method includes:

[0006] Inserting an OAM information block at a first position in a service code block stream; wherein the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, and the second position is used to indicate an expected insertion position determined by the transmitter according to a preset insertion period;

[0007] The service code block stream is sent to a receiving end, so that the receiving end determines the second position at least according to the position deviation information.

[0008] According to another embodiment of the present invention, there is also provided an OAM information block positioning method, which is applied to a receiving end. The method includes:

[0009] Receive the service code block stream sent by the transmitting end; wherein an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, and the second position is used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period;

[0010] The second position is determined based on at least the position deviation information.

[0011] According to another embodiment of the present invention, there is further provided an OAM information block positioning device, which is provided at a transmitting end and includes:

[0012] an insertion module, configured to insert an OAM information block at a first position in a service code block stream; wherein the OAM information block carries position deviation information, the position deviation information being used to indicate a deviation value between the first position and a second position, the second position being used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period;

[0013] A sending module is used to send the service code block stream to a receiving end, so that the receiving end can determine the second position at least according to the position deviation information.

[0014] According to another embodiment of the present invention, there is further provided an OAM information block positioning device, which is provided at a receiving end and includes:

[0015] a receiving module, configured to receive the service code block stream sent by a transmitting end; wherein an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, and the second position is used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period;

[0016] A determination module is configured to determine the second position at least according to the position deviation information.

[0017] According to another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.

[0018] According to another embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.

[0019] Through the embodiments of the present invention, an OAM information block carrying position deviation information can be inserted into the first position of the service code block stream sent by the transmitter, so that the receiver can determine the second position based on at least the position deviation information; wherein the position deviation information is used to indicate the deviation value between the first position and the second position, and the second position is used to indicate the expected insertion position determined by the transmitter based on a preset insertion period. Therefore, the embodiments of the present invention can solve the problem in the related art that the receiver cannot effectively determine the expected insertion position of the OAM information block, thereby achieving the effect of enabling the receiver to effectively determine the expected insertion position of the OAM information block in the transmitter, thereby ensuring that the receiver receives the corresponding OAM information block. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a schematic diagram of the format of a data block provided according to an embodiment of the present invention;

[0021] Figure 2 is a schematic diagram of the format of a control block provided according to an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of the format of an O block provided according to an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of the format of a code block stream provided according to an embodiment of the present invention;

[0024] Figure 5 2 is a schematic diagram of an OAM information block sending period according to an embodiment of the present invention;

[0025] Figure 6 1 is a schematic diagram of the format of an OAM information block provided according to an embodiment of the present invention;

[0026] Figure 7 2 is a schematic diagram of the format of inserting an OAM information block into a customer service code block stream according to an embodiment of the present invention;

[0027] Figure 8 Schematic diagram of the deviation between the actual position and the expected insertion position of the OAM information block inserted into the customer service code block stream according to an embodiment of the present invention;

[0028] Figure 9 Schematic diagram of a process of adding and deleting IDLE blocks caused by clock frequency deviation between devices according to an embodiment of the present invention;

[0029] Figure 10 is a schematic diagram of the expected position deviation between the transmitting end and the receiving end under the clock frequency deviation provided by an embodiment of the present invention;

[0030] Figure 11 Schematic diagram of the transmission of a client service code block stream in a network according to an embodiment of the present invention;

[0031] Figure 12 Flowchart (1) of the OAM information block positioning method provided according to an embodiment of the present invention;

[0032] Figure 13 Schematic diagram (1) of an OAM information block carrying a deviation value between an actual insertion position and an expected insertion position according to an embodiment of the present invention;

[0033] Figure 14 2 is a schematic diagram of an OAM information block carrying a deviation value between an actual insertion position and an expected insertion position provided according to an embodiment of the present invention.

[0034] Figure 15 Flowchart (II) of the OAM information block positioning method provided according to an embodiment of the present invention;

[0035] Figure 16 1 is a structural block diagram of an OAM information block positioning method according to an embodiment of the present invention (I);

[0036] Figure 17 2 is a structural block diagram of the OAM information block positioning method provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0037] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with embodiments.

[0038] 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.

[0039] To further illustrate the OAM information block positioning method and apparatus in the embodiments of the present invention, the following describes the application scenarios of the OAM information block positioning method and apparatus in the embodiments of the present invention:

[0040] When delivering Ethernet client services in FlexE service implementations, Ethernet packets can be encoded using the 64 / 66 encoding rule to form 66-bit code blocks. Each of these code blocks consists of 66 bits, with the first two bits indicating whether the block is a data block or a control block. Figure 1 FIG. 1 is a schematic diagram of the format of a data block provided according to an embodiment of the present invention, such as Figure 1In the code block shown, when the value of the first two bits is "01", it means that the code block is a data block, and the following 64 bits represent 8 bytes of data content, that is, Figure 1 data0 to data7 shown in . Figure 2 : is a schematic diagram of the format of a control block provided according to an embodiment of the present invention, such as Figure 2 In the code block shown, when the first two bits are "10," it indicates that the code block is a control block. The following 8 bits (the first byte) indicate the control block type, and the following 56 bits represent 7 bytes of control block information. Common control block types include: S-block, T-block, IDLE-block, and O-block. An S-block indicates the start block of a message; a T-block indicates the end block of a message; an IDLE-block (also referred to as an I-block) is an idle block that carries no useful information; and an O-block indicates a fault information block. Figure 3 : is a schematic diagram of the format of the O block provided according to an embodiment of the present invention, such as Figure 3 As shown, the control value in the O block is 0x4B (hexadecimal value), indicating that the control block is an O block. The first three bytes of the O block are the fault information value, and the following four bits carry the O block sequence number, indicating various subtypes of O blocks. Currently, the enabled sequence number can be composed of 0, 1, 2, 5, F (hexadecimal value), etc. Figure 4 This is a schematic diagram of the format of the code block stream provided according to an embodiment of the present invention. An Ethernet message is formed after 64 / 66 encoding. Figure 4 In the block stream shown, the Ethernet message starts with an S block, is followed by several D blocks, and ends with a T block. Between two Ethernet messages, there are several IDLE blocks and O blocks.

[0041] To monitor the service quality of the FlexE client flow transmission pipeline, an OAM information block with monitoring functions is added to the client service code block stream to detect the service quality status of the FlexE client bearer pipeline, such as bit error rate, latency, service discard, and other functions. The OAM information block is a special information code block. On the network source device, the OAM information block is inserted between two consecutive client messages and sent along with the client service code block stream. The sink device on the network detects the content of the OAM information block to measure the quality of the client-carrying pipeline. In one example, the OAM block is sent at a fixed period (for example, once every 16K code blocks) at the transmitting end, and the receiving end also receives it at the same fixed period. If the receiving end does not receive the OAM information block for three consecutive periods, it indicates that the pipeline carrying the client service has been interrupted and protection needs to be activated. The fixed period for sending the OAM information block at the transmitting end can be 16K, 32K, 64K, etc., and the fixed period for receiving and detecting at the receiving end is the same as that of the transmitting end.

[0042] The types of OAM information blocks can be: base type OAM block (used for error detection), APS type OAM block (used for protection switching), CV type OAM block (used for transmitting customer identifiers), DM type OAM block (used for delay time measurement), CSF type OAM block (used to indicate customer service failure indication), etc. Figure 5 Schematic diagram of the OAM information block sending period according to an embodiment of the present invention. Figure 5 As shown, the above different types of OAM information blocks can be Figure 5 The format shown is periodically transmitted, with a transmission period T between any two adjacent OAM blocks. Different types of OAM blocks are transmitted according to a specific interval. Similarly, the receiving end receives and detects OAM blocks according to the period and interval of the sender. In one example, the receiving end can retrieve OAM blocks at a fixed location to achieve reception and detection of OAM blocks.

[0043] Figure 6 : is a schematic diagram of the format of the OAM information block provided according to an embodiment of the present invention, such as Figure 6 As shown, a sequence number value (e.g., 0xC in hexadecimal) can be added to an existing OAM block to represent an OAM information block. The OAM information block also includes a type field to indicate various types of OAM blocks, such as base, APS, CV, DM, and CSF. In an OAM information block, the bytes following the type field carry the contents of the OAM information block, which differ depending on the type of OAM block.

[0044] Figure 7 Schematic diagram of the format of inserting the OAM information block into the customer service code block stream according to an embodiment of the present invention, such as Figure 7 As shown, OAM information blocks are inserted between adjacent messages in the client service code block stream for transmission. On the transmitting end, if the desired location for inserting the OAM information block happens to be an idle information block, or IDLE block, the OAM information block can be directly inserted to replace the original IDLE block. If the location for inserting the OAM information block happens to be between two messages, but there are no idle information blocks between the two messages, the OAM information block is directly inserted between the two messages using a forced queue insertion method, with subsequent client messages being sequentially shifted in. In this way, the OAM information block can be transmitted along with the client service code block stream.

[0045] The OAM block insertion position is determined by the transmitter at a fixed interval. This insertion position is called the expected insertion position. However, due to the uncertainty of packet length, it is sometimes impossible to insert the OAM block at the expected insertion position. The following example illustrates the process of inserting the OAM block at the transmitter and receiving and detecting the OAM block at the receiver during the delivery of Ethernet client services:

[0046] When sending an OAM block, the transmitter sets a T-cycle counter. For example, when T = 16K, each time the counter reaches the 16K position, it indicates that the transmitter needs to insert an OAM block. This moment is the expected insertion position of the OAM block. If the expected insertion position is between two messages in the client service code block stream, the OAM block can be inserted directly. In this case, the expected insertion position and the actual insertion position are the same. If the expected insertion position is in the middle of a message, the OAM block must be inserted after the current message is sent. In this case, the expected insertion position and the actual insertion position are different. On the receiver, a corresponding T-cycle counter is set. For example, when T = 16K, each time the counter reaches the 16K position, it indicates the expected reception position of the receiver. If the position is between two messages, there should be an OAM block at that position. If the position is in the middle of a message, there should be an OAM block at that position.

[0047] Figure 8 FIG. 1 is a schematic diagram showing the deviation between the actual position and the expected insertion position of the OAM information block inserted into the client service code block stream according to an embodiment of the present invention. Figure 8 As shown in the figure, when the expected insertion position is exactly in the middle of a client message, the OAM information block cannot be directly forced to be inserted. It is necessary to wait until the current message is sent to the end before the OAM information block can be inserted at the end of the message. In the above situation, there is a gap of ΔT between the actual insertion position of the OAM information block and the expected insertion position. The actual insertion position is not the expected insertion position, and there is a position deviation between the two. At this time, if the receiving end still receives and detects the OAM information block according to the expected receiving position corresponding to the expected insertion position, it is actually unable to receive the OAM information block, resulting in failure. In some cases, the expected receiving position of the receiving end and the actual insertion position of the sending end differ greatly, which can reach more than one OAM block period, resulting in the OAM information block received by the receiving end at the expected receiving position being an OAM information block within another OAM block period, that is, the type of the OAM information block actually received may be different from the type of the expected OAM information block.

[0048] On the other hand, the transmitting end and the receiving end both send and receive OAM information blocks according to the same period T. However, the clock frequencies of various devices in the network are not consistent. Figure 9 FIG. 1 is a schematic diagram of a process of adding and deleting IDLE blocks caused by clock frequency deviation between devices according to an embodiment of the present invention. Figure 9 As shown in the figure, when the clock frequencies of upstream and downstream devices in the network are inconsistent, the device adjusts the actual speed of the customer service code block stream by adding or deleting a small number of idle information blocks (IDLE) in the customer service code block stream, thereby matching the speed of the customer service code block stream with the device clock speed. Due to clock frequency deviations between the operating clocks of each device, the period for sending or receiving OAM information blocks generated based on the clock frequency, that is, the value of the T period, is inconsistent. Therefore, in actual operation, there may be slight differences in the T period values of the sending end and the receiving end. As these differences accumulate over time, the expected insertion position generated by the sending end based on the T period and the expected reception position generated by the receiving end based on the T period will gradually widen the gap. Figure 10 is a schematic diagram of the expected position deviation between the transmitting end and the receiving end under the clock frequency deviation provided by an embodiment of the present invention, such as Figure 10 As shown in the figure, the expected receiving position generated by the receiving end is inconsistent with the expected insertion position of the sending end, and the receiving end cannot receive and detect the OAM information block according to the expected receiving position. At the same time, according to the above phenomenon, since the position where the sending end actually inserts the OAM information block itself deviates from the expected insertion position, the client service code block stream has the state of adding and deleting IDLE blocks when it is transmitted on the network. Figure 11 FIG. 1 is a schematic diagram of a client service code block stream transmitted in a network according to an embodiment of the present invention. Figure 11 As shown, the position of the OAM information block inserted into the client service code block stream may fluctuate in the client service code block stream, further making it difficult for the receiving end to accurately determine the expected insertion position of the sending end.

[0049] To this end, an embodiment of the present invention provides an OAM information block positioning method and device, which can solve the problem in related technologies that the receiving end cannot effectively determine the desired insertion position of the OAM information block, so as to achieve the effect that the receiving end can effectively determine the desired insertion position of the OAM information block in the sending end, thereby ensuring that the receiving end receives the corresponding OAM information block. The following describes the OAM information block positioning method and device in the embodiment of the present invention:

[0050] On the one hand, an embodiment of the present invention provides an OAM information block positioning method, which is applied to a sending end. Figure 12 Flowchart (1) of the OAM information block positioning method according to an embodiment of the present invention is provided, such as Figure 12As shown, the OAM information block positioning method in the embodiment of the present invention includes:

[0051] S102, inserting an OAM information block at a first position in the service code block stream; wherein the OAM information block carries position deviation information, the position deviation information being used to indicate a deviation value between the first position and a second position, the second position being used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period;

[0052] S104: Send the service code block stream to the receiving end, so that the receiving end can determine the second position at least according to the position deviation information.

[0053] It should be noted that the above-mentioned first position is the actual insertion position where the sender actually inserts the OAM information block in the service code block stream, and the above-mentioned second position is the expected insertion position where the sender expects to insert the OAM information block in the service code block stream. The first position and the second position can be the same, that is, the actual insertion position is the same as the expected insertion position, for example, the expected insertion position is located between two messages. The first position and the second position can also be different, that is, there is a certain deviation value between the actual insertion position and the expected insertion position, for example, the expected insertion position is located in the middle of a message; in this case, the sender can record the actual insertion position and compare the actual insertion position with the expected insertion position to determine the deviation value, and the deviation value can be indicated by the position deviation information. In this way, by carrying the position deviation information in the OAM information block, the deviation value can be notified to the receiving end.

[0054] When the receiving end receives the service code block stream with the OAM information block inserted, the expected insertion position of the OAM information block can be determined by the position deviation information carried in the OAM information block. The following describes the implementation of the receiving end determining the second position by way of an optional example:

[0055] In an optional example, in step S104, the receiving end determines the second position based on at least the position deviation information, including:

[0056] The receiving end determines the first position according to the third position, and determines the second position according to the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block.

[0057] It should be noted that when the receiving end receives an OAM information block during the process of receiving the service code block stream, it can use the actual position of the received OAM information block as the third position. The receiving end can then further equate the third position to the first position, i.e., the receiving end uses its actual received position as the actual insertion position of the transmitting end, thereby determining the first position based on the third position. Once the first position is determined, the second position can be determined based on the first position and the position deviation information.

[0058] In an optional example, after the receiving end determines the first position based on the third position and determines the second position based on the first position and the position deviation information, the method further includes:

[0059] The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; wherein the fourth position is used to indicate the expected receiving position determined by the receiving end according to the preset receiving period;

[0060] The receiving end receives the subsequent OAM information block at the adjusted fourth position.

[0061] It should be noted that after the receiving end determines the second position, it can adjust its own expected receiving position, i.e., the fourth position, based on the second position. In this way, the expected receiving position of the receiving end and the expected insertion position of the transmitting end can be relatively consistent. As a result, the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can basically match, ensuring that the receiving end can effectively receive and detect subsequent OAM information blocks. The following example illustrates the implementation of the above-mentioned adjustment of the fourth position by the receiving end:

[0062] In an optional example, the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, including:

[0063] The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, so that the deviation between the adjusted fourth position and the second position is less than or equal to a preset threshold.

[0064] It should be noted that, in one example, the preset threshold may be 0, so that the expected receiving position of the receiving end and the expected insertion position of the sending end are completely consistent.

[0065] In an optional example, in the above step S102, inserting the OAM information block at the first position in the service code block stream further includes:

[0066] OAM information blocks are respectively inserted into a plurality of first positions in the service code block stream, and at least one OAM information block is selected from the plurality of OAM information blocks to carry position deviation information.

[0067] It should be noted that, in an embodiment of the present invention, the position deviation information may be carried in each OAM information block, or an OAM information block may be periodically selected from multiple OAM information blocks according to a preset carrying period to carry the position deviation information, or at least one OAM information block may be randomly selected from multiple OAM information blocks to carry the position deviation information. The embodiment of the present invention does not limit the manner in which the position deviation information is carried.

[0068] In an optional embodiment, the OAM information block also carries an insertion period. It should be noted that this allows the receiving end to easily determine the desired insertion position of the sending end based on the period value and the deviation value, thereby further achieving calibration of the desired receiving position of the receiving end.

[0069] Through the OAM information block positioning method of the embodiment of the present invention, an OAM information block carrying position deviation information can be inserted into the first position of the service code block stream sent by the transmitting end, so that the receiving end can determine the second position based on at least the position deviation information; wherein the position deviation information is used to indicate the deviation value between the first position and the second position, and the second position is used to indicate the expected insertion position determined by the transmitting end according to a preset insertion period. Therefore, the embodiment of the present invention can solve the problem in the related art that the receiving end cannot effectively determine the expected insertion position of the OAM information block, thereby achieving the effect of enabling the receiving end to effectively determine the expected insertion position of the OAM information block in the transmitting end, thereby ensuring that the receiving end receives the corresponding OAM information block.

[0070] To further illustrate the OAM information block positioning method in the embodiment of the present invention, two exemplary embodiments are provided below:

[0071] Exemplary embodiment 1

[0072] In this exemplary embodiment, the situation where the OAM information block fluctuates due to the addition or deletion of IDLE blocks on the OAM information block network is not considered. In this situation, in order to enable the receiving end to effectively determine the expected insertion position of the OAM information block by the sending end, the deviation value between the actual insertion position of the OAM information block and the expected insertion position can be carried in the OAM information block. Figure 13 Schematic diagram of an OAM information block carrying a deviation value between an actual insertion position and an expected insertion position according to an embodiment of the present invention (I). The OAM information block carrying the deviation value between the actual insertion position and the expected insertion position of the OAM information block in the OAM information block is as shown in FIG. Figure 13 The following describes the process of inserting the OAM information block at the transmitting end and receiving and detecting the OAM information block at the receiving end in this exemplary embodiment:

[0073] When the transmitter inserts an OAM information block, it also carries the positional offset value for the actual insertion position and the expected insertion position. In one example, if the actual insertion position and the expected insertion position are the same, the positional offset value carried in the OAM information block is 0. In this case, an offset value indicating a positional offset of 0 can be carried, or the positional offset value can be indicated as 0 without carrying the offset value. In another example, if the actual insertion position and the expected insertion position are inconsistent, there is an offset ΔT between the actual and expected insertion positions (ΔT must be positive or negative). In this case, the ΔT is carried as the positional offset value in the OAM information block.

[0074] When the receiving end receives an OAM block, it equates the actual received position of the OAM block with the actual insertion position of the sending end's OAM block. This means that the actual insertion position of the sending end is determined based on the actual position of the OAM block currently received by the receiving end. Furthermore, based on the position offset value carried in the OAM block and the actual insertion position determined by the sending end, the receiving end can accurately infer the expected insertion position of the sending end.

[0075] After the receiver has inferred the transmitter's expected insertion position, it can compare its own expected reception position, generated based on a preset fixed period, with the transmitter's expected insertion position. If they are the same, it indicates that the transmitter's expected position and the receiver's expected position match. If they are different, it indicates that the transmitter's expected position and the receiver's expected position do not match, and there is a deviation in the receiver's expected reception position. In this case, the receiver's expected reception position can be calibrated to align with the transmitter's expected insertion position. In this way, the next expected reception position generated by the receiver and the transmitter's expected insertion position can be substantially consistent.

[0076] Exemplary embodiment 2

[0077] In this exemplary embodiment, because each node on the network constantly adds and deletes IDLE blocks, the position of the OAM block in the client service block stream fluctuates. The actual insertion position of the OAM block at the sender and the actual position of the OAM block received at the receiver may not completely correspond. In extreme cases, the position of the OAM block may shift by one position for every two devices the client service block stream passes through, with a fluctuation range of one block. In one example, when there are 20 devices on the network, the actual insertion position of the OAM block will fluctuate within a range of 10 after passing through all 20 devices.

[0078] In the above situation, in order to enable the receiving end to effectively determine the expected insertion position of the OAM information block by the sending end, the deviation value between the actual insertion position and the expected insertion position of the OAM information block can be carried in the OAM information block. Figure 14 Schematic diagram (2) of an OAM information block carrying a deviation value between an actual insertion position and an expected insertion position according to an embodiment of the present invention. The OAM information block carrying the deviation value between the actual insertion position and the expected insertion position of the OAM information block in the OAM information block is as shown in FIG. Figure 14 The following describes the process of inserting the OAM information block at the transmitting end and receiving and detecting the OAM information block at the receiving end in this exemplary embodiment:

[0079] When the transmitter inserts an OAM information block, it also carries the positional offset value for the actual insertion position and the expected insertion position. In one example, if the actual insertion position and the expected insertion position are the same, the positional offset value carried in the OAM information block is 0. In this case, an offset value indicating a positional offset of 0 can be carried, or the positional offset value can be indicated as 0 without carrying the offset value. In another example, if the actual insertion position and the expected insertion position are inconsistent, there is an offset ΔT between the actual and expected insertion positions (ΔT must be positive or negative). In this case, the ΔT is carried as the positional offset value in the OAM information block.

[0080] When the receiving end receives an OAM block, the position of the OAM block fluctuates within the client service code block stream because, in this exemplary embodiment, each node on the network continuously adds and deletes IDLE blocks. For example, if there are 20 devices on the network, the actual OAM insertion position will fluctuate within a range of 10 after passing through 20 devices. Therefore, the actual OAM block received position at the receiving end is not identical to the actual OAM block insertion position at the sending end; the two have an error within 10. Therefore, if the receiving end uses the actual received position as the actual insertion position at the sending end and further infers the expected insertion position at the sending end based on the position deviation value carried in the OAM block, the error between the expected insertion position estimated by the receiving end and the expected insertion position at the sending end will be within 10. Since the insertion period T of the sending end is typically at least 16K, the ratio of this error to the insertion period is at most 10:16384, which is too small to be ignored in actual operation.

[0081] Therefore, in this exemplary embodiment, when there are IDLE additions and deletions on various devices on the network, there is a certain deviation in the expected insertion position of the sending end inferred by the receiving end based on the above process, but because the error is less than n / 2 (n is the number of devices through which the customer service code block flow passes on the network), it is too small compared to the insertion period of the sending end, so it can be ignored for the expected insertion position inferred by the receiving end.

[0082] After the receiver has inferred the transmitter's expected insertion position, it can compare its own expected reception position, generated based on a preset fixed period, with the transmitter's expected insertion position. If they are the same, it indicates that the transmitter's expected position and the receiver's expected position match. If they are different, it indicates that the transmitter's expected position and the receiver's expected position do not match, and there is a deviation in the receiver's expected reception position. In this case, the receiver's expected reception position can be calibrated to align with the transmitter's expected insertion position. In this way, the next expected reception position generated by the receiver and the transmitter's expected insertion position can be substantially consistent.

[0083] Due to clock offsets between the transmitter and receiver, even if the receiver's expected receiving position and the transmitter's expected insertion position are substantially aligned after calibration, a gradual error will arise between the two after a period of operation, and this error will increase over time. Therefore, in this exemplary embodiment, the positional deviation value between the actual insertion position and the expected insertion position, i.e., the offset ΔT, can be periodically included in the OAM information block to allow the receiver to periodically receive, determine, and calibrate. This ensures that the receiver's expected receiving position consistently tracks the transmitter's expected insertion position, allowing the receiver to consistently receive and retrieve OAM information blocks at the expected receiving position.

[0084] During implementation, in addition to the offset ΔT mentioned above, the OAM information block can also carry the insertion period of the transmitter, such as Figure 14 As shown, the receiving end can conveniently determine the expected insertion position of the sending end according to the period value and the deviation value, thereby further realizing the calibration of the expected receiving position of the receiving end.

[0085] 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 is essentially 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 described in each embodiment of the present invention.

[0086] On the other hand, an embodiment of the present invention further provides an OAM information block positioning method, which is applied to a receiving end. Figure 15 Flowchart (II) of the OAM information block positioning method according to an embodiment of the present invention is provided, such as Figure 15As shown, the OAM information block positioning method in the embodiment of the present invention includes:

[0087] S202, receiving a service code block stream sent by a transmitting end; wherein an OAM information block is inserted into a first position in the service code block stream, the OAM information block carrying position deviation information, the position deviation information being used to indicate a deviation value between the first position and a second position, the second position being used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period;

[0088] S204: Determine a second position at least based on the position deviation information.

[0089] In an optional example, in step S204, determining the second position at least according to the position deviation information includes:

[0090] The first position is determined according to the third position, and the second position is determined according to the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block.

[0091] In an optional example, after determining the first position based on the third position and determining the second position based on the first position and the position deviation information, the method further includes:

[0092] Adjusting the fourth position according to the deviation between the second position and the fourth position; wherein the fourth position is used to indicate the expected receiving position determined by the receiving end according to the preset receiving period;

[0093] The subsequent OAM information block is received at the adjusted fourth position.

[0094] In an optional example, adjusting the fourth position according to the deviation between the second position and the fourth position includes:

[0095] The fourth position is adjusted according to the deviation between the second position and the fourth position, so that the deviation between the adjusted fourth position and the second position is less than or equal to a preset threshold.

[0096] In an optional example, the OAM information block further carries an insertion period.

[0097] It should be noted that the optional examples and technical effects of the above-mentioned OAM information block positioning method applied to the receiving end correspond to the above-mentioned OAM information block positioning method applied to the transmitting end, and therefore will not be repeated here.

[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 is essentially 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 described in each embodiment of the present invention.

[0099] In another aspect, embodiments of the present invention further provide an OAM information block location device, disposed at a transmitting end, for implementing the aforementioned embodiments and preferred implementations. Details already described are omitted for clarity. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.

[0100] Figure 16 1 is a structural block diagram of an OAM information block positioning device according to an embodiment of the present invention (I), as shown in FIG. Figure 16 As shown, the OAM information block positioning device in the embodiment of the present invention includes:

[0101] Insertion module 302, configured to insert an OAM information block at a first position in the service code block stream; wherein the OAM information block carries position deviation information, the position deviation information being used to indicate a deviation value between the first position and a second position, the second position being used to indicate an expected insertion position determined by the transmitter according to a preset insertion period;

[0102] The sending module 304 is configured to send the service code block stream to the receiving end, so that the receiving end can determine the second position at least according to the position deviation information.

[0103] In an optional example, the receiving end determines the second position based on at least the position deviation information, including:

[0104] The receiving end determines the first position according to the third position, and determines the second position according to the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block.

[0105] In an optional example, after the receiving end determines the first position based on the third position and determines the second position based on the first position and the position deviation information, the method further includes:

[0106] The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; wherein the fourth position is used to indicate the expected receiving position determined by the receiving end according to the preset receiving period;

[0107] The receiving end receives the subsequent OAM information block at the adjusted fourth position.

[0108] In an optional example, the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, including:

[0109] The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, so that the deviation between the adjusted fourth position and the second position is less than or equal to a preset threshold.

[0110] In an optional example, the inserting of the OAM information block at the first position in the service code block stream further includes:

[0111] OAM information blocks are respectively inserted into a plurality of first positions in the service code block stream, and at least one OAM information block is selected from the plurality of OAM information blocks to carry position deviation information.

[0112] In an optional example, the OAM information block further carries an insertion period.

[0113] It should be noted that the remaining optional examples and technical effects of the above-mentioned OAM information block locating device provided at the transmitting end correspond to the above-mentioned OAM information block locating method applied to the transmitting end, and therefore are not described in detail here.

[0114] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0115] In another aspect, embodiments of the present invention further provide an OAM information block location device, disposed at a receiving end, for implementing the aforementioned embodiments and preferred implementations. Details already described are omitted for clarity. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0116] Figure 17 2 is a block diagram of the structure of the OAM information block positioning device according to an embodiment of the present invention, as shown in FIG. Figure 17 As shown, the OAM information block positioning device in the embodiment of the present invention includes:

[0117] A receiving module 402 is configured to receive a service code block stream sent by a transmitting end; wherein an OAM information block is inserted into a first position of the service code block stream, and the OAM information block carries position deviation information, the position deviation information being used to indicate a deviation value between the first position and a second position, and the second position being used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period;

[0118] The determination module 404 is configured to determine a second position at least according to the position deviation information.

[0119] In an optional example, determining the second position at least according to the position deviation information includes:

[0120] The first position is determined according to the third position, and the second position is determined according to the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block.

[0121] In an optional example, after determining the first position based on the third position and determining the second position based on the first position and the position deviation information, the method further includes:

[0122] Adjusting the fourth position according to the deviation between the second position and the fourth position; wherein the fourth position is used to indicate the expected receiving position determined by the receiving end according to the preset receiving period;

[0123] The subsequent OAM information block is received at the adjusted fourth position.

[0124] In an optional example, adjusting the fourth position according to the deviation between the second position and the fourth position includes:

[0125] The fourth position is adjusted according to the deviation between the second position and the fourth position, so that the deviation between the adjusted fourth position and the second position is less than or equal to a preset threshold.

[0126] In an optional example, the OAM information block further carries an insertion period.

[0127] It should be noted that the remaining optional examples and technical effects of the above-mentioned OAM information block locating device provided at the receiving end correspond to the above-mentioned OAM information block locating method applied to the receiving end, and therefore are not described in detail here.

[0128] It should be noted that the above modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0129] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0130] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0131] On the other hand, an embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0132] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0133] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0134] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.

[0135] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention are intended to be within the scope of protection of the present invention.

Claims

1. A method for locating an OAM information block, characterized in that: Applied to the sending end, the method includes: Inserting an OAM information block at a first position in a service code block stream; wherein the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the deviation value including a positive value and a negative value, and the second position is used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period; Sending the service code block stream to a receiving end, so that the receiving end determines the second position at least according to the position deviation information; The receiving end determines the second position at least according to the position deviation information, including: the receiving end determines the first position according to a third position, and determines the second position according to the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block; The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; wherein the fourth position is used to indicate the expected receiving position determined by the receiving end according to a preset receiving period; The receiving end receives the subsequent OAM information block at the adjusted fourth position.

2. The method according to claim 1, characterized in that The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, including: The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, so that the deviation between the adjusted fourth position and the second position is less than or equal to a preset threshold.

3. The method according to any one of claims 1 to 2, characterized in that The inserting of the OAM information block at the first position in the service code block stream further includes: The OAM information blocks are respectively inserted into the plurality of the first positions in the service code block stream, and at least one OAM information block is selected from the plurality of the OAM information blocks to carry the position deviation information.

4. The method according to any one of claims 1 to 2, characterized in that The OAM information block also carries the insertion period.

5. An OAM information block positioning method, characterized in that: Applied to a receiving end, the method includes: Receive a service code block stream sent by a transmitting end; wherein an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the deviation value including a positive value and a negative value, and the second position is used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period; Determining the first position according to a third position, and determining the second position according to the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block; Adjusting the fourth position according to a deviation between the second position and the fourth position; wherein the fourth position is used to indicate an expected receiving position determined by the receiving end according to a preset receiving period; The subsequent OAM information block is received at the adjusted fourth position.

6. The method according to claim 5, characterized in that The adjusting the fourth position according to the deviation between the second position and the fourth position includes: The fourth position is adjusted according to the deviation between the second position and the fourth position, so that the deviation between the adjusted fourth position and the second position is less than or equal to a preset threshold.

7. The method according to any one of claims 5 to 6, characterized in that The OAM information block also carries the insertion period.

8. An OAM information block positioning device, characterized in that: Set at the sending end, the device includes: an insertion module, configured to insert an OAM information block at a first position in a service code block stream; wherein the OAM information block carries position deviation information, the position deviation information being used to indicate a deviation value between the first position and a second position, the deviation value including a positive value and a negative value; and the second position being used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period; A sending module, used for sending the service code block stream to the receiving end, so that the receiving end can determine the second position at least according to the position deviation information; wherein, the receiving end determines the second position at least according to the position deviation information, including: the receiving end determines the first position according to the third position, and determines the second position according to the first position and the position deviation information; wherein, the third position is used to indicate the position at which the receiving end actually receives the OAM information block; the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; wherein, the fourth position is used to indicate the expected receiving position determined by the receiving end according to a preset receiving period; the receiving end receives the subsequent OAM information block at the adjusted fourth position.

9. An OAM information block positioning device, characterized in that: Set at the receiving end, the device includes: a receiving module, configured to receive a service code block stream sent by a transmitting end; wherein an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the deviation value including a positive value and a negative value, and the second position is used to indicate an expected insertion position determined by the transmitting end according to a preset insertion period; A determination module is configured to determine the first position based on a third position, and to determine the second position based on the first position and the position deviation information; wherein the third position is used to indicate the position at which the receiving end actually receives the OAM information block; adjust the fourth position based on the deviation between the second position and the fourth position; wherein the fourth position is used to indicate the expected receiving position determined by the receiving end based on a preset receiving period; and receive subsequent OAM information blocks at the adjusted fourth position.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 4 or the method described in any one of claims 5 to 7 when run.

11. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of claims 1 to 4, or to execute the method described in any one of claims 5 to 7.

Citation Information

Patent Citations

  • Synchronization signal block position indication and acquisition method, base station, terminal and medium

    CN110831143A