WO2022021882A1 - Oam information block positioning method and device - Google Patents

Oam information block positioning method and device Download PDF

Info

Publication number
WO2022021882A1
WO2022021882A1 PCT/CN2021/079778 CN2021079778W WO2022021882A1 WO 2022021882 A1 WO2022021882 A1 WO 2022021882A1 CN 2021079778 W CN2021079778 W CN 2021079778W WO 2022021882 A1 WO2022021882 A1 WO 2022021882A1
Authority
WO
WIPO (PCT)
Prior art keywords
deviation
information block
oam information
oam
receiving end
Prior art date
Application number
PCT/CN2021/079778
Other languages
French (fr)
Chinese (zh)
Inventor
刘峰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022021882A1 publication Critical patent/WO2022021882A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0602Systems characterised by the synchronising information used

Definitions

  • Embodiments of the present invention relate to the field of communications, and in particular, to a method and apparatus for locating an OAM information block.
  • the Flexible Ethernet (FlexE) protocol is the core technology of 5G bearer.
  • the International Telecommunication Union (ITU) organization has added the operation, management and maintenance (Operation, Administration and maintenance) of pipeline monitoring in the FlexE customer service.
  • Maintenance, OAM) function to detect the quality of service status of the pipeline that FlexE carries customer services, such as bit error rate, delay time, service discarding and other functions.
  • the sender sends the OAM information block according to a fixed period
  • the OAM information block is inserted into the client service code block stream
  • the receiver also receives and detects the OAM information block according to the same fixed period.
  • 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 cannot effectively receive and detect. OAM information block.
  • the receiving end cannot effectively determine the expected insertion position of the OAM information block, and no effective solution has been proposed in the related art.
  • Embodiments of the present invention provide a method and apparatus for locating an OAM information block, so as to at least solve the problem in the related art that the receiving end cannot effectively determine the desired insertion position of the OAM information block.
  • a method for locating an OAM information block is provided, which is applied to a transmitting end, and the method includes:
  • the OAM information block carries position deviation information, and the position deviation information is used to indicate the deviation between the first position and the second position value, the second position is used to indicate the desired insertion position determined by the transmitting end according to the preset insertion period;
  • the service code block stream is sent to a receiving end, so that the receiving end can determine the second position at least according to the position deviation information.
  • a method for locating an OAM information block is also provided, which is applied to a receiving end, and the method includes:
  • an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used for Indicate the deviation value between the first position and the second position, and the second position is used to indicate the desired insertion position determined by the transmitting end according to a preset insertion period;
  • the second position is determined based on at least the position deviation information.
  • a device for locating an OAM information block is also provided, which is arranged at the sending end, and the device includes:
  • the inserting module is configured to insert an OAM information block at the first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the first position and the second position.
  • the deviation value between the positions, the second position is used to indicate the desired insertion position determined by the sending end according to the preset insertion period;
  • the sending module 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.
  • a device for locating an OAM information block is also provided, which is arranged at a receiving end, and the device includes:
  • the receiving module is configured to receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the 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 sending end according to a preset insertion period;
  • a determination module configured to determine the second position at least according to the position deviation information.
  • a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above methods when running steps in the examples.
  • an electronic device comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.
  • FIG. 1 is a schematic diagram of a format of a data block provided according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a format of a control block provided according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of the format of an O block provided according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of a format of a code block stream provided according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an OAM information block transmission cycle provided according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the format of an OAM information block provided according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the format of inserting an OAM information block into a customer service code block stream provided according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of the deviation between the actual position and the expected insertion position of the OAM information block inserted into the client service code block stream provided according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of a process of adding and deleting IDLE blocks caused by a clock frequency deviation between devices provided according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of the expected position deviation of a transmitter and a receiver under a clock frequency deviation provided according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of a client service code block stream being transmitted in a network according to an embodiment of the present invention.
  • FIG. 12 is a flowchart (1) of a method for locating an OAM information block provided according to an embodiment of the present invention
  • FIG. 13 is a schematic diagram (1) 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
  • FIG. 14 is a 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
  • 16 is a structural block diagram (1) of a method for locating an OAM information block provided according to an embodiment of the present invention
  • FIG. 17 is a structural block diagram (2) of a method for locating an OAM information block according to an embodiment of the present invention.
  • Ethernet packets can be formed into 66-length code blocks according to the 64/66 encoding rules.
  • Each of the above code blocks is composed of 66 bits, wherein the first two bits indicate whether the code block is a data block or a control block.
  • Fig. 1 is a schematic diagram of the format of a data block provided according to an embodiment of the present invention. In the code block shown in Fig. 1, when the value of the first two bits is "01", it indicates that the code block is a data block, and the following 64 bits Indicates the data content of 8 bytes, namely data0 to data7 shown in Figure 1.
  • Fig. 2 is a schematic diagram of the format of a control block provided according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of the format of an O block provided according to an embodiment of the present invention. As shown in FIG.
  • Fig. 4 is a schematic diagram of the format of a code block stream provided according to an embodiment of the present invention.
  • An Ethernet packet is 64/66 encoded to form a code block stream as shown in Fig. 4, and the above Ethernet packet starts with an S block, In the middle are several D blocks, ending with a T block. Between two Ethernet packets, there will be several IDLE blocks and O blocks.
  • an OAM information block that can implement monitoring functions is added to the client service code block stream to detect the QoS status of the FlexE client bearer pipeline, such as bit error rate, delay time, and service discard. and other functions.
  • the OAM information block is a special information code block.
  • the OAM information block is inserted between two client packets before and after, and sent out together with the client service code block stream.
  • the content of the OAM information block is detected in order to measure the quality of the pipeline carrying the customer.
  • the OAM block is sent at the transmitting end according to a fixed period (for example, once every 16K code blocks is sent), and the receiving end also receives according to the same fixed period.
  • a fixed period for example, once every 16K code blocks is sent
  • the receiving end does not receive the OAM information block for three consecutive cycles, it means that the pipeline carrying the customer service is interrupted, and protection needs to be started.
  • the above-mentioned fixed period for sending the OAM information block by the transmitting end may be 16K, 32, 64K, etc., and the fixed period for receiving and detecting by the receiving end is the same as the fixed period for the transmitting end.
  • FIG. 5 is a schematic diagram of an OAM information block sending cycle provided according to an embodiment of the present invention, as shown in FIG. 5 .
  • the above-mentioned different types of OAM information blocks can be periodically sent according to the format shown in FIG. 5 .
  • a transmission period T is between any adjacent OAM information blocks, and different types of OAM blocks are sent according to a certain interval rule.
  • the receiving end also receives and detects the OAM information block according to the period and interval rules of the transmitting end. In an example, the receiving end can retrieve the OAM information block at a fixed position to realize the reception and detection of the OAM information block.
  • FIG. 6 is a schematic diagram of the format of an OAM information block provided according to an embodiment of the present invention.
  • a sequence number value (for example: 0xC, hexadecimal) can be extended to an existing O block to represent an OAM information block.
  • a type field is also set in the OAM information block to represent various types of OAM blocks, such as base-type OAM blocks, APS-type OAM blocks, CV-type OAM blocks, DM-type OAM blocks, and CSF-type OAM blocks information blocks, etc.
  • the OAM information block several bytes after the type field are used to carry the content of the OAM information block, and the content of the above-mentioned different types of OAM block types is different.
  • FIG. 7 is a schematic diagram of the format of inserting an OAM information block into a client service code block stream provided according to an embodiment of the present invention.
  • the OAM information block is inserted between the intervals of adjacent packets in the client service code block stream. sent.
  • the OAM information block can directly replace the original IDLE block to realize the insertion.
  • the OAM information block When the position of inserting the OAM information block is exactly between two packets, but there is no free information block between the two packets before and after, the OAM information block is directly inserted between the preceding and following packets, and the forced queue insertion method is used to realize the insertion. , the subsequent client packets are moved backward in sequence; in this way, the OAM information block can be sent together with the client service code block stream.
  • the sending cycle of the sending end sending the OAM information block is to determine the insertion position of the OAM information block according to a fixed period. This insertion position can be called the expected insertion position, but because the length of the message is uncertain, sometimes it cannot be inserted at the expected insertion position.
  • OAM information block The following is an example to illustrate the process of transmitting the Ethernet client service, the process of inserting the OAM information block at the transmitting end and receiving and detecting the OAM information block at the receiving end:
  • 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, thereby causing a failure.
  • the expected receiving position of the receiver and the actual insertion position of the sender are very different, which can reach more than one OAM block period, which in turn causes the OAM information block received by the receiver at the expected receiving position to be within the period of other OAM blocks.
  • the type of OAM information block, ie the actually received OAM information block may be different from the expected type of OAM information block.
  • FIG. 9 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. As shown in FIG. 9 , when the upstream and downstream clock frequencies of devices in the network are inconsistent, Add or delete a small number of idle information blocks IDLE to adjust the actual speed of the customer service code block flow, and realize the matching between the speed of the customer service code block flow and the device clock speed.
  • FIG. 10 is a schematic diagram of the expected position deviation of the transmitter and the receiver under the clock frequency deviation provided according to an embodiment of the present invention. As shown in FIG.
  • the expected receiving position generated by the receiver is inconsistent with the expected insertion position of the transmitter, and the receiver cannot The OAM information block is received and detected according to the desired receiving position.
  • the aforementioned phenomenon due to the deviation between the position where the sender actually inserts the OAM information block and the expected insertion position, there is an IDLE block addition or deletion state when the client service code block stream is transmitted on the network.
  • the position of the OAM information block inserted in the client service code block stream will fluctuate before and after in the client service code block stream, Further, it is difficult for the receiving end to accurately judge the desired insertion position of the transmitting end.
  • embodiments of the present invention provide a method and device for locating an OAM information block, which can solve the problem in the related art that the receiving end cannot effectively determine the desired insertion position of the OAM information block, so that the receiving end can effectively The desired insertion position of the OAM information block in the transmitting end is determined, so that the receiving end can ensure the effect of receiving the corresponding OAM information block.
  • FIG. 12 is a flowchart (1) of a method for locating an OAM information block provided according to an embodiment of the present invention, as shown in FIG. 12 ,
  • the method for locating the OAM information block in the embodiment of the present invention includes:
  • 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.
  • 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
  • the above-mentioned second position is the sender's expectation of inserting the OAM information block in the service code block stream.
  • the insertion position, the first position and the second position may be the same, that is, the actual insertion position is the same as the expected insertion position, for example, the expected insertion position is between two packets.
  • the first position and the second position can also be different, that is, there is a certain deviation between the actual insertion position and the expected insertion position.
  • the expected insertion position is in the middle of a packet;
  • the actual insertion position is compared, and the actual insertion position is compared with the expected insertion position, and then the deviation value is determined, and the deviation value can be indicated by the position deviation information.
  • the deviation value can be notified to the receiving end.
  • the receiving end When the receiving end receives the service code block stream in which the OAM information block is inserted, the expected insertion position of the OAM information block can be determined from the position deviation information carried in the OAM information block.
  • the implementation of the receiving end determining the second position is described below by way of an optional example:
  • the receiving end determines the second position at least according to the position deviation information, including:
  • the receiver determines the first position according to the third position, and determines the second position according to the deviation information between the first position and the position; wherein, the third position is used to indicate the position where the receiver actually receives the OAM information block.
  • the position where the OAM information block is actually received can be taken as the third position; after that, the receiving end can further use the first
  • the three positions are equivalent to the first position, that is, the receiving end uses its own actual receiving position as the actual insertion position of the sending end, so as to realize the determination of the first position according to the third position.
  • the second position can be determined according to the deviation information between the first position and the position.
  • the method further includes:
  • 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;
  • the receiving end receives the subsequent OAM information block at the adjusted fourth position.
  • the receiving end determines the second position, it can adjust its desired receiving position, that is, the fourth position, according to the second position.
  • the expected receiving position of the receiving end and the expected insertion position of the transmitting end can be relatively consistent, so that the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can basically match, so as to ensure that the receiving end can
  • the OAM information block enables efficient reception and detection.
  • the following is an example to illustrate the implementation of the above-mentioned receiving end adjusting the fourth position:
  • 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.
  • the preset threshold may be 0, that is, the expected receiving position of the receiving end and the expected insertion position of the transmitting end are completely consistent.
  • step S102 inserting an OAM information block at the first position in the service code block stream, further comprising:
  • OAM information blocks are respectively inserted into multiple first positions in the service code block stream, and at least one OAM information block is selected from the multiple OAM information blocks to carry the position deviation information.
  • the position deviation information may be carried in each OAM information block, or the OAM information block may be periodically selected to carry the position deviation in multiple OAM information blocks according to a preset carrying period. information, or at least one OAM information block may be randomly selected from a plurality of OAM information blocks to carry the position deviation information, and the embodiment of the present invention does not limit the carrying manner of the position deviation information.
  • the above-mentioned OAM information block also carries an insertion period. It should be noted that, in this way, the receiving end can easily determine the expected insertion position of the transmitting end according to the period value and the deviation value, thereby further realizing the calibration of the expected receiving position of the receiving end.
  • the OAM information block carrying the position deviation information can be inserted at the first position in the service code block stream sent by the sender, so that the receiver can use the position deviation information at least according to the position deviation information.
  • the embodiment of the present invention can solve the problem that the receiving end cannot effectively determine the desired insertion position of the OAM information block in the related art, so that the receiving end can effectively determine the desired insertion position of the OAM information block in the transmitting end, Thus, the receiving end can ensure the effect of receiving the corresponding OAM information block.
  • the receiving end When the receiving end receives the OAM information block, the receiving end equates the actual receiving position of the OAM information block with the actual insertion position of the transmitting end OAM information block, that is, according to the actual position of the OAM information block currently received by the receiving end, to determine the sending end's actual position. actual insertion position. Further, according to the position deviation value carried in the OAM information block and the actual insertion position of the sender determined above, the receiver can accurately estimate the expected insertion position of the sender.
  • the receiving end can compare the expected receiving position generated by itself according to the preset fixed period with the expected insertion position of the transmitting end. If they are the same, the expected position of the transmitting end and that of the receiving end are indicated match. If they are different, it means that the expected position of the sender does not match the expected position of the receiver, and there is a deviation in the expected position of the receiver. Therefore, the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can be basically consistent.
  • the position of the OAM information block fluctuates in the client service code block stream.
  • the actual insertion position of the OAM information block of the sender and the actual received OAM information of the receiver may not correspond exactly.
  • the position of the OAM information block will move forward and backward by one position, and the fluctuation range is one block. In an example, when there are 20 devices on the network, after the actual insertion position of the OAM passes through the 20 devices, the fluctuation range is within 10.
  • 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, as shown in Figure 14.
  • FIG 14. It is a schematic diagram (2) of the OAM information block carrying the deviation value between the actual insertion position and the expected insertion position provided according to an embodiment of the present invention, and the above-mentioned deviation of the actual insertion position and the expected insertion position of the OAM information block is carried in the OAM information block.
  • the OAM information block after the value is shown in Figure 14. The following describes the process of inserting the OAM information block by the transmitting end and receiving and detecting the OAM information block by the receiving end in this exemplary embodiment:
  • the OAM information block When the sender inserts the OAM information block, the OAM information block also carries the position deviation value between the actual insertion position and the expected insertion position.
  • the actual insertion position is the same as the expected insertion position, and the position deviation value carried in the OAM information block is 0.
  • the offset value with the position deviation value of 0 can be carried, or the deviation value can be carried by not carrying the deviation value.
  • the method indicates that the position deviation value is 0; in another example, the actual insertion position and the expected insertion position are inconsistent, and there is an offset ⁇ T between the actual insertion position and the expected insertion position ( ⁇ T needs to distinguish between positive and negative values), then the This ⁇ T is carried in the OAM information block as a position offset value.
  • each node on the network continuously adds and deletes the IDLE information block, resulting in fluctuations in the position of the OAM information block in the customer service code block stream; there are 20 on the network.
  • the actual insertion position of OAM will fluctuate within 10. Therefore, the actual receiving position of the OAM information block received by the receiver is not equal to the actual insertion position of the OAM information block of the sender. There is an error of less than 10 between them.
  • the receiving end uses the actual receiving position as the actual insertion position of the transmitting end, and further infers the expected insertion position of the transmitting end according to the position deviation value carried in the OAM information block, then the expected insertion position estimated by the receiving end is the same as that of the transmitting end.
  • the receiving end can compare the expected receiving position generated by itself according to the preset fixed period with the expected insertion position of the transmitting end. If they are the same, the expected position of the transmitting end and that of the receiving end are indicated match. If they are different, it means that the expected position of the sender does not match the expected position of the receiver, and there is a deviation in the expected position of the receiver. Therefore, the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can be basically consistent.
  • the OAM information block can periodically carry the position deviation value between the actual insertion position and the expected insertion position, that is, the offset ⁇ T, so that the receiving end can periodically receive,
  • the expected receiving position of the receiving end can always follow the expected insertion position of the transmitting end, so that the receiving end can always receive and retrieve the OAM information block at the expected receiving position.
  • the OAM information block in addition to the above offset ⁇ T, can also carry the insertion period of the sender, as shown in Figure 14. In this way, the receiver can easily judge the sender's expectation based on the period value and the deviation value. Insertion position, so as to further realize the calibration of the desired receiving position of the receiving end.
  • FIG. 15 is a flowchart (2) of the method for locating an OAM information block according to an embodiment of the present invention, as shown in FIG. 15 .
  • the method for locating the OAM information block in the embodiment of the present invention includes:
  • S202 Receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used to indicate the difference between the first position and the first position.
  • the deviation value between the two positions, the second position is used to indicate the desired insertion position determined by the sending end according to the preset insertion period;
  • S204 at least determine the second position according to the position deviation information.
  • determining the second position at least according to the position deviation information includes:
  • the first position is determined according to the third position, and the second position is determined according to the deviation information between the first position and the position; wherein, the third position is used to indicate the position where the receiving end actually receives the OAM information block.
  • the method further includes:
  • the subsequent OAM information block is received at the adjusted fourth position.
  • the above-mentioned 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.
  • the above-mentioned OAM information block also carries an insertion period.
  • an embodiment of the present invention further provides an OAM information block positioning apparatus, which is set at the transmitting end, and is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
  • FIG. 16 is a structural block diagram (1) of an apparatus for locating an OAM information block provided according to an embodiment of the present invention.
  • the apparatus for locating an OAM information block in the embodiment of the present invention includes:
  • the inserting module 302 is configured to insert the OAM information block at the first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the deviation between the first position and the second position value, the second position is used to indicate the desired insertion position determined by the transmitting end according to the preset insertion period;
  • 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.
  • 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 where the receiving end actually receives the OAM information block.
  • the method further includes:
  • 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;
  • the receiving end receives the subsequent OAM information block at the adjusted fourth position.
  • 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.
  • the above-mentioned inserting the OAM information block at the first position in the service code block stream also includes:
  • OAM information blocks are respectively inserted into multiple first positions in the service code block stream, and at least one OAM information block is selected from the multiple OAM information blocks to carry the position deviation information.
  • the above-mentioned OAM information block also carries an insertion period.
  • the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
  • an embodiment of the present invention further provides a device for locating an OAM information block, which is arranged at a receiving end, and is used to implement the above embodiments and preferred implementations, and what has been described will not be repeated.
  • the term "module” may be a combination of software and/or hardware that implements a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
  • FIG. 17 is a structural block diagram (2) of an apparatus for locating an OAM information block provided according to an embodiment of the present invention.
  • the apparatus for locating an OAM information block in the embodiment of the present invention includes:
  • the receiving module 402 is configured to receive the service code block stream sent by the transmitting end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used to indicate the first position in the service code block stream.
  • the determining module 404 is configured to determine the second position at least according to the position deviation information.
  • the above-mentioned determining of the second position at least according to the position deviation information includes:
  • the first position is determined according to the third position, and the second position is determined according to the deviation information between the first position and the position; wherein, the third position is used to indicate the position where the receiving end actually receives the OAM information block.
  • the method further includes:
  • the subsequent OAM information block is received at the adjusted fourth position.
  • the above-mentioned 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.
  • the above-mentioned OAM information block also carries an insertion period.
  • the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
  • an embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above method embodiments when running steps in .
  • the above-mentioned computer-readable storage medium may include, but is not limited to, a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), and a random access memory (Random Access Memory, referred to as RAM for short) , mobile hard disk, magnetic disk or CD-ROM and other media that can store computer programs.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • an embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the above method embodiments. A step of.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices
  • they can be implemented in program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be performed in a different order than shown here.
  • the described steps, or they are respectively made into individual integrated circuit modules, or a plurality of modules or steps in them are made into a single integrated circuit module to realize.
  • the present invention is not limited to any particular combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

An OAM information block positioning method and device, being able to enable a receiving end to effectively determine a desired insertion position of an OAM information block in a sending end. The OAM information block positioning method comprises: inserting an OAM information block at a first position in a 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, and the second position being used to indicate a desired insertion position determined by a sending end according to a preset insertion period; and sending the service code block stream to a receiving end, such that the receiving end determines the second position at least according to the position deviation information.

Description

OAM信息块定位方法及装置OAM information block positioning method and device 技术领域technical field
本发明实施例涉及通信领域,具体而言,涉及一种OAM信息块定位方法及装置。Embodiments of the present invention relate to the field of communications, and in particular, to a method and apparatus for locating an OAM information block.
背景技术Background technique
灵活以太网(Flexible Ethernet,FlexE)协议是5G承载的核心技术,目前,国际电信联盟(International Telecommunication Union,ITU)组织在FlexE客户业务中增加了管道监控的操作、管理与维护(Operation、Administration and Maintenance,OAM)功能,以检测FlexE承载客户业务的管道服务质量状态,如误码率、延迟时间、业务丢弃等功能。OAM功能实现过程中,发送端按照固定周期发送OAM信息块,OAM信息块是插入在客户业务码块流中的,接收端也按照同样的固定周期接收、检测OAM信息块。然而,相关技术中,由于发送端和接收端之间往往无法实现同步,造成接收端对OAM信息块进行接收与检测的位置无法与OAM信息块的插入位置相对应,进而无法有效地接收与检测OAM信息块。The Flexible Ethernet (FlexE) protocol is the core technology of 5G bearer. At present, the International Telecommunication Union (ITU) organization has added the operation, management and maintenance (Operation, Administration and maintenance) of pipeline monitoring in the FlexE customer service. Maintenance, OAM) function to detect the quality of service status of the pipeline that FlexE carries customer services, such as bit error rate, delay time, service discarding and other functions. During the implementation of the OAM function, the sender sends the OAM information block according to a fixed period, the OAM information block is inserted into the client service code block stream, and the receiver also receives and detects the OAM information block according to the same fixed period. However, in the related art, since synchronization between the transmitting end and the receiving end is often impossible, 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 cannot effectively receive and detect. OAM information block.
针对上述相关技术中,接收端无法有效地确定OAM信息块所期望的插入位置的问题,相关技术中尚未提出有效的解决方案。In the above-mentioned related art, the receiving end cannot effectively determine the expected insertion position of the OAM information block, and no effective solution has been proposed in the related art.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种OAM信息块定位方法及装置,以至少解决相关技术中接收端无法有效地确定OAM信息块所期望的插入位置的问题。Embodiments of the present invention provide a method and apparatus for locating an OAM information block, so as to at least solve the problem in the related art that the receiving end cannot effectively determine the desired insertion position of the OAM information block.
根据本发明的一个实施例,提供了一种OAM信息块定位方法,应用于发送端,所述方法包括:According to an embodiment of the present invention, a method for locating an OAM information block is provided, which is applied to a transmitting end, and the method includes:
在业务码块流中的第一位置插入OAM信息块;其中,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;Insert an OAM information block at a first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the deviation between the first position and the second position value, the second position is used to indicate the desired insertion position determined by the transmitting end according to the preset insertion period;
发送所述业务码块流至接收端,以供所述接收端至少根据所述位置偏差信息确定所述第二位置。The service code block stream is sent to a receiving end, so that the receiving end can determine the second position at least according to the position deviation information.
根据本发明的另一个实施例,还提供了一种OAM信息块定位方法,应用于接收端,所述方法包括:According to another embodiment of the present invention, a method for locating an OAM information block is also provided, which is applied to a receiving end, and the method includes:
接收发送端发送的所述业务码块流;其中,所述业务码块流中的第一位置插入有OAM信息块,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;Receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used for Indicate the deviation value between the first position and the second position, and the second position is used to indicate the desired insertion position determined by the transmitting end according to a preset insertion period;
至少根据所述位置偏差信息确定所述第二位置。The second position is determined based on at least the position deviation information.
根据本发明的另一个实施例,还提供了一种OAM信息块定位装置,设置于发送端,所述装置包括:According to another embodiment of the present invention, a device for locating an OAM information block is also provided, which is arranged at the sending end, and the device includes:
插入模块,设置为在业务码块流中的第一位置插入OAM信息块;其中,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏 差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;The inserting module is configured to insert an OAM information block at the first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the first position and the second position. The deviation value between the positions, the second position is used to indicate the desired insertion position determined by the sending end according to the preset insertion period;
发送模块,设置为发送所述业务码块流至接收端,以供所述接收端至少根据所述位置偏差信息确定所述第二位置。The sending module 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.
根据本发明的另一个实施例,还提供了一种OAM信息块定位装置,设置于接收端,所述装置包括:According to another embodiment of the present invention, a device for locating an OAM information block is also provided, which is arranged at a receiving end, and the device includes:
接收模块,设置为接收发送端发送的所述业务码块流;其中,所述业务码块流中的第一位置插入有OAM信息块,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;The receiving module is configured to receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the 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 sending end according to a preset insertion period;
确定模块,设置为至少根据所述位置偏差信息确定所述第二位置。A determination module, configured to determine the second position at least according to the position deviation information.
根据本发明的另一个实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to another embodiment of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above methods when running steps in the examples.
根据本发明的另一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to another embodiment of the present invention, there is also provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, the processor is configured to run the computer program to execute any of the above Steps in Method Examples.
附图说明Description of drawings
图1是根据本发明实施例提供的数据块的格式示意图;1 is a schematic diagram of a format of a data block provided according to an embodiment of the present invention;
图2是根据本发明实施例提供的控制块的格式示意图;2 is a schematic diagram of a format of a control block provided according to an embodiment of the present invention;
图3是根据本发明实施例提供的O块的格式示意图;3 is a schematic diagram of the format of an O block provided according to an embodiment of the present invention;
图4是根据本发明实施例提供的码块流的格式示意图;4 is a schematic diagram of a format of a code block stream provided according to an embodiment of the present invention;
图5是根据本发明实施例提供的OAM信息块发送周期的示意图;5 is a schematic diagram of an OAM information block transmission cycle provided according to an embodiment of the present invention;
图6是根据本发明实施例提供的OAM信息块的格式示意图;6 is a schematic diagram of the format of an OAM information block provided according to an embodiment of the present invention;
图7是根据本发明实施例提供的OAM信息块插入客户业务码块流的格式示意图;7 is a schematic diagram of the format of inserting an OAM information block into a customer service code block stream provided according to an embodiment of the present invention;
图8是根据本发明实施例提供的OAM信息块插入客户业务码块流的实际位置与期望插入位置之间的偏差示意图;8 is a schematic diagram of the deviation between the actual position and the expected insertion position of the OAM information block inserted into the client service code block stream provided according to an embodiment of the present invention;
图9是根据本发明实施例提供的设备与设备间时钟频率偏差造成IDLE块增删过程的示意图;9 is a schematic diagram of a process of adding and deleting IDLE blocks caused by a clock frequency deviation between devices provided according to an embodiment of the present invention;
图10是根据本发明实施例提供的时钟频率偏差下发送端和接收端期望位置偏差情况的示意图;10 is a schematic diagram of the expected position deviation of a transmitter and a receiver under a clock frequency deviation provided according to an embodiment of the present invention;
图11是根据本发明实施例提供的客户业务码块流在网络中传递的示意图;11 is a schematic diagram of a client service code block stream being transmitted in a network according to an embodiment of the present invention;
图12是根据本发明实施例提供的OAM信息块定位方法的流程图(一);12 is a flowchart (1) of a method for locating an OAM information block provided according to an embodiment of the present invention;
图13是根据本发明实施例提供的携带实际插入位置与期望插入位置之间偏差值的OAM信息块的示意图(一);13 is a schematic diagram (1) 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;
图14是根据本发明实施例提供的携带实际插入位置与期望插入位置之间偏差值的OAM信息块的示意图(二);14 is a 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;
图15是根据本发明实施例提供的OAM信息块定位方法的流程图(二);15 is a flowchart (2) of a method for locating an OAM information block provided according to an embodiment of the present invention;
图16是根据本发明实施例提供的OAM信息块定位方法的结构框图(一);16 is a structural block diagram (1) of a method for locating an OAM information block provided according to an embodiment of the present invention;
图17是根据本发明实施例提供的OAM信息块定位方法的结构框图(二)。FIG. 17 is a structural block diagram (2) of a method for locating an OAM information block according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明的实施例。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence.
为进一步阐述本发明实施例中的OAM信息块定位方法及装置,以下对本发明实施例中的OAM信息块定位方法及装置的应用场景进行说明:In order to further illustrate the method and device for locating OAM information blocks in the embodiments of the present invention, the following describes the application scenarios of the methods and devices for locating OAM information blocks in the embodiments of the present invention:
FlexE业务实现中进行传递以太网客户业务时,可将以太网报文按照64/66编码规则,形成66长度的码块。上述每个码块的都是由66个比特组成,其中,前两个比特表示该码块是数据块还是控制块。图1是根据本发明实施例提供的数据块的格式示意图,如图1所示的码块中,前两个比特的值为“01”时,表示该码块是数据块,之后的64比特表示8个字节的数据内容,即图1中所示的data0至data7。图2是根据本发明实施例提供的控制块的格式示意图,如图2所示的码块中,前两个比特的值为“10”时,表示该码块是控制块,后面的8个比特(第一个字节)表示控制块的类型,之后的56比特表示7个字节的控制块信息。常见的控制块类型有:S块、T块、IDLE块、O块等;其中,S块表示是一个报文的起始块;T块表示一个报文的结束块;IDLE块(可简称为I块)表示空闲块,不携带任何有用信息;O块表示一个故障信息块。图3是根据本发明实施例提供的O块的格式示意图,如图3所示,O块中控制值为0x4B(十六进制值),表示该控制块是O块。O块中前三个字节是故障信息值,之后的4比特携带O块的序列号,表示各种不同子类型的O块,目前启用的序列号可由0、1、2、5、F(十六进制值)等几种构成。图4是根据本发明实施例提供的码块流的格式示意图,一以太网报文经过64/66编码后形成如图4所示的码块流,上述以太网报文是以S块开始,中间是若干个D块,以T块结束。在两个以太网报文之间,会有若干个IDLE块、O块。When delivering Ethernet client services in FlexE service implementation, Ethernet packets can be formed into 66-length code blocks according to the 64/66 encoding rules. Each of the above code blocks is composed of 66 bits, wherein the first two bits indicate whether the code block is a data block or a control block. Fig. 1 is a schematic diagram of the format of a data block provided according to an embodiment of the present invention. In the code block shown in Fig. 1, when the value of the first two bits is "01", it indicates that the code block is a data block, and the following 64 bits Indicates the data content of 8 bytes, namely data0 to data7 shown in Figure 1. Fig. 2 is a schematic diagram of the format of a control block provided according to an embodiment of the present invention. In the code block shown in Fig. 2, when the value of the first two bits is "10", it indicates that the code block is a control block, and the following 8 bits are a control block. The bit (the first byte) indicates the type of control block, and the following 56 bits indicate 7 bytes of control block information. Common control block types are: S block, T block, IDLE block, O block, etc.; among them, the S block represents the start block of a message; the T block represents the end block of a message; the IDLE block (which can be referred to as I block) represents a free block that does not carry any useful information; O block represents a fault information block. FIG. 3 is a schematic diagram of the format of an O block provided according to an embodiment of the present invention. As shown in FIG. 3 , the control value in the O block is 0x4B (hexadecimal value), indicating that the control block is an O block. The first three bytes in the O block are the fault information value, and the next 4 bits carry the serial number of the O block, indicating various sub-types of the O block. The currently enabled serial numbers can be 0, 1, 2, 5, F ( hexadecimal value), etc. Fig. 4 is a schematic diagram of the format of a code block stream provided according to an embodiment of the present invention. An Ethernet packet is 64/66 encoded to form a code block stream as shown in Fig. 4, and the above Ethernet packet starts with an S block, In the middle are several D blocks, ending with a T block. Between two Ethernet packets, there will be several IDLE blocks and O blocks.
为监视FlexE客户流传递管道的服务质量,在客户业务码块流中增加了可实现监视功能的OAM信息块,以检测FlexE客户承载管道的服务质量状态,如误码率、延迟时间、业务丢弃等功能。OAM信息块是一种特殊的信息码块,在网络源设备上将OAM信息块插在前后两个客户报文之间,随着客户业务码块流一起发送出去。在网络的宿设备,检测OAM信息块内容,以便衡量承载客户管道的质量状况。在一示例中,OAM块在发送端按照固定周期(例如,每间隔16K个码块发送一次)发送,接收端也按照同样的固定周期接收。当接收端连续三个周期内都没有收到OAM信息块,则表示承载客户业务的管道出现中断,需要启动保护。上述发送端发送OAM信息块的固定周期可以是16K、32、64K等,接收端接收、检测的固定周期与发送端的固定周期相同。In order to monitor the service quality of the FlexE client stream delivery pipeline, an OAM information block that can implement monitoring functions is added to the client service code block stream to detect the QoS status of the FlexE client bearer pipeline, such as bit error rate, delay time, and 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 client packets before and after, and sent out together with the client service code block stream. At the sink device of the network, the content of the OAM information block is detected in order to measure the quality of the pipeline carrying the customer. In an example, the OAM block is sent at the transmitting end according to a fixed period (for example, once every 16K code blocks is sent), and the receiving end also receives according to the same fixed period. When the receiving end does not receive the OAM information block for three consecutive cycles, it means that the pipeline carrying the customer service is interrupted, and protection needs to be started. The above-mentioned fixed period for sending the OAM information block by the transmitting end may be 16K, 32, 64K, etc., and the fixed period for receiving and detecting by the receiving end is the same as the fixed period for the transmitting end.
OAM信息块种类可以为:base类型的OAM块(用于误码状况检测)、APS类型的OAM块(用于保护倒换)、CV类型的OAM块(用于传递客户标识符)、DM类型的OAM块(用于延迟时间测量)、CSF类型的OAM块(用于表示客户业务失效指示)等,图5是根据本发明实施例提供的OAM信息块发送周期的示意图,如图5所示,上述不同种类的OAM信息块可按照图5所示的格式进行周期性的发送,任意相邻的OAM信息块之间间隔一个发送周期T,不同种类的OAM块按照一定的间隔规则发送。同样的,接收端也按照发送端的周期以及间隔规则去接收、检测OAM信息块,在一示例中,接收端可在固定位置上检索OAM信息块,以实现对OAM信息块的接收与检测。The types of OAM information blocks can be: base type OAM blocks (used for error detection), APS type OAM blocks (used for protection switching), CV type OAM blocks (used to transmit client identifiers), DM type OAM blocks OAM block (used for delay time measurement), OAM block of CSF type (used to indicate customer service failure indication), etc. FIG. 5 is a schematic diagram of an OAM information block sending cycle provided according to an embodiment of the present invention, as shown in FIG. 5 , The above-mentioned different types of OAM information blocks can be periodically sent according to the format shown in FIG. 5 . A transmission period T is between any adjacent OAM information blocks, and different types of OAM blocks are sent according to a certain interval rule. Similarly, the receiving end also receives and detects the OAM information block according to the period and interval rules of the transmitting end. In an example, the receiving end can retrieve the OAM information block at a fixed position to realize the reception and detection of the OAM information block.
图6是根据本发明实施例提供的OAM信息块的格式示意图,如图6所示,可在已有O 块的扩展一个序列号值(例如:0xC,十六进制),用以表示一个OAM信息块。在OAM信息块中还设置有类型域,用以表示各种种类的OAM块,如base类型的OAM块、APS类型的OAM块、CV类型的OAM块、DM类型的OAM块、CSF类型的OAM信息块等。OAM信息块中,类型域之后几个字节用以承载OAM信息块的内容,上述不同种类的OAM块类型的内容不同。FIG. 6 is a schematic diagram of the format of an OAM information block provided according to an embodiment of the present invention. As shown in FIG. 6 , a sequence number value (for example: 0xC, hexadecimal) can be extended to an existing O block to represent an OAM information block. A type field is also set in the OAM information block to represent various types of OAM blocks, such as base-type OAM blocks, APS-type OAM blocks, CV-type OAM blocks, DM-type OAM blocks, and CSF-type OAM blocks information blocks, etc. In the OAM information block, several bytes after the type field are used to carry the content of the OAM information block, and the content of the above-mentioned different types of OAM block types is different.
图7是根据本发明实施例提供的OAM信息块插入客户业务码块流的格式示意图,如图7所示,OAM信息块是插入在客户业务码块流中相邻报文的间隔之间以发送的。在发送端,当期望插入OAM信息块的位置恰好是空闲信息块,即IDLE块时,则OAM信息块可直接替代原先的IDLE块以实现插入。当插入OAM信息块的位置恰好是两个报文之间,但前后两个报文之间没有空闲信息块时,则OAM信息块直接插入到前后报文之间,采用强制插队方式以实现插入,后续客户报文依次后移;以此,OAM信息块即可随客户业务码块流一起完成发送。FIG. 7 is a schematic diagram of the format of inserting an OAM information block into a client service code block stream provided according to an embodiment of the present invention. As shown in FIG. 7 , the OAM information block is inserted between the intervals of adjacent packets in the client service code block stream. sent. At the sending end, when the position where the OAM information block is expected to be inserted happens to be an idle information block, that is, an IDLE block, the OAM information block can directly replace the original IDLE block to realize the insertion. When the position of inserting the OAM information block is exactly between two packets, but there is no free information block between the two packets before and after, the OAM information block is directly inserted between the preceding and following packets, and the forced queue insertion method is used to realize the insertion. , the subsequent client packets are moved backward in sequence; in this way, the OAM information block can be sent together with the client service code block stream.
发送端发送OAM信息块的发送周期是按照固定周期来确定OAM信息块的插入位置的,该插入位置可称为期望插入位置,但由于报文长度是不确定的,有时无法在期望插入位置插入OAM信息块。以下通过一示例说明传递以太网客户业务的过程中,发送端插入OAM信息块与接收端接收、检测OAM信息块的过程:The sending cycle of the sending end sending the OAM information block is to determine the insertion position of the OAM information block according to a fixed period. This insertion position can be called the expected insertion position, but because the length of the message is uncertain, sometimes it cannot be inserted at the expected insertion position. OAM information block. The following is an example to illustrate the process of transmitting the Ethernet client service, the process of inserting the OAM information block at the transmitting end and receiving and detecting the OAM information block at the receiving end:
发送端在发送OAM信息块时设置有T周期计数器,例如当T=16K时,计数器每计数到16K位置,表示发送端需要插入一个OAM信息块,该时刻即为发送端的OAM块的期望插入位置。如果期望插入位置位于客户业务码块流中前后两个报文之间,则可以直接插入OAM信息块,该情形下期望插入位置和实际插入位置相同,如果期望插入位置位于一个报文的中间位置时,则需等待当前报文发送结束后才插入OAM信息块,该情形下期望插入位置和实际插入位置不同。在接收端,对应设置有T周期计数器,例如当T=16K时,计数器每计数到16K位置,表示接收端的期望接收位置,期望在该位置接收一个OAM信息块,如果该位置位于前后两个报文之间,则该位置应当有个OAM信息块,如果该位置位于一个报文的中间位置,则等待当前报文接收结束后应当有个OAM信息块。The sender sets a T period counter when sending the OAM information block. For example, when T=16K, every time the counter counts to the 16K position, it means that the sender needs to insert an OAM information block, and this moment is the expected insertion position of the OAM block of the sender. . If the expected insertion position is between the two packets before and after the client service code block stream, the OAM information block can be inserted directly. In this case, the expected insertion position is the same as the actual insertion position. If the expected insertion position is in the middle of a packet In this case, the OAM information block needs to be inserted after the transmission of the current message is completed. In this case, the expected insertion position and the actual insertion position are different. At the receiving end, a T period counter is correspondingly set. For example, when T=16K, each time the counter counts to the 16K position, it indicates the expected receiving position of the receiving end, and it is expected to receive an OAM information block at this position. If the position is in the middle of a packet, there should be an OAM information block after the current packet is received.
图8是根据本发明实施例提供的OAM信息块插入客户业务码块流的实际位置与期望插入位置之间的偏差示意图,如图8所示,当期望插入位置正好位于一个客户报文的中间位置时,此时OAM信息块不能直接强制插入,需要等待当前的报文发送结束后才能在该报文尾部插入OAM信息块,在上述情形下OAM信息块的实际插入位置和期望插入位置之间间隔了ΔT,实际插入位置并不是期望插入位置,两者之间存在位置偏差。此时,如若接收端仍按照与期望插入位置对应的期望接收位置去接收、检测OAM信息块,实际上是无法接收到OAM信息块的,进而导致落空。在某些情形下,接收端的期望接收位置和发送端的实际插入位置相差很大,可达到一个OAM块周期以上,进而导致接收端在期望接收位置接收到的OAM信息块为其它OAM块周期内的OAM信息块,即实际接收到的OAM信息块的种类可能和期望的OAM信息块的种类不同。FIG. 8 is a schematic diagram of the deviation between the actual position and the expected insertion position of the OAM information block inserted into the client service code block stream provided according to an embodiment of the present invention. As shown in FIG. 8 , when the expected insertion position is exactly in the middle of a client message In this case, the OAM information block cannot be directly inserted forcibly, and the OAM information block can only be inserted at the end of the packet after the current packet is sent. In the above situation, the actual insertion position of the OAM information block is between the expected insertion position. After the interval ΔT, the actual insertion position is not the expected insertion position, and there is a positional 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, thereby causing a failure. In some cases, the expected receiving position of the receiver and the actual insertion position of the sender are very different, which can reach more than one OAM block period, which in turn causes the OAM information block received by the receiver at the expected receiving position to be within the period of other OAM blocks. The type of OAM information block, ie the actually received OAM information block may be different from the expected type of OAM information block.
另一方面,上述发送端和接收端都是按照同样的周期T来发送OAM信息块和接收OAM信息块,然而,网络中的各个设备的时钟频率并不一致。图9是根据本发明实施例提供的设备与设备间时钟频率偏差造成IDLE块增删过程的示意图,如图9所示,网络中设备上下游时钟频率不一致时,设备上通过在客户业务码块流中增加或删除少量的空闲信息块IDLE,以调节客户业务码块流的实际速度,实现客户业务码块流的速度和设备时钟速度的匹配。由于 每台设备上工作时钟之间存在时钟频率偏差,根据时钟频率产生的OAM信息块的发送或接收的周期,即T周期的值是不一致的,因此,发送端的T周期和接收端的T周期的值在实际工作中可能存在微小差异,上述差异随着时间积累,发送端根据T周期产生的期望插入位置和接收端根据T周期产生的期望接收位置就会逐步拉开差距。图10是根据本发明实施例提供的时钟频率偏差下发送端和接收端期望位置偏差情况的示意图,如图10所示,接收端产生的期望接收位置和发送端的期望插入位置不一致,接收端无法按照期望接收位置接收、检测OAM信息块。与此同时,根据前述现象,由于发送端实际插入OAM信息块的位置本身就与期望插入位置之间存在偏差,客户业务码块流在网络上进行传递时存在IDLE块的增删状态,图11是根据本发明实施例提供的客户业务码块流在网络中传递的示意图,如图11所示,插入在客户业务码块流中的OAM信息块的位置会在客户业务码块流中前后波动,进一步造成了接收端难以精确地判断发送端的期望插入位置。On the other hand, the above-mentioned transmitting end and 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. 9 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. As shown in FIG. 9 , when the upstream and downstream clock frequencies of devices in the network are inconsistent, Add or delete a small number of idle information blocks IDLE to adjust the actual speed of the customer service code block flow, and realize the matching between the speed of the customer service code block flow and the device clock speed. Due to the clock frequency deviation between the working clocks of each device, the period of sending or receiving the OAM information block generated according to the clock frequency, that is, the value of the T period, is inconsistent. Therefore, the T period of the sender and the T period of the receiver There may be slight differences between the values in actual work. The above differences accumulate over time, and the expected insertion position generated by the sender according to the T period and the expected receiving position generated by the receiver according to the T period will gradually widen the gap. FIG. 10 is a schematic diagram of the expected position deviation of the transmitter and the receiver under the clock frequency deviation provided according to an embodiment of the present invention. As shown in FIG. 10 , the expected receiving position generated by the receiver is inconsistent with the expected insertion position of the transmitter, and the receiver cannot The OAM information block is received and detected according to the desired receiving position. At the same time, according to the aforementioned phenomenon, due to the deviation between the position where the sender actually inserts the OAM information block and the expected insertion position, there is an IDLE block addition or deletion state when the client service code block stream is transmitted on the network. According to the schematic diagram of the client service code block stream being transmitted in the network provided by the embodiment of the present invention, as shown in FIG. 11 , the position of the OAM information block inserted in the client service code block stream will fluctuate before and after in the client service code block stream, Further, it is difficult for the receiving end to accurately judge the desired insertion position of the transmitting end.
对此,本发明实施例提供了一种OAM信息块定位方法及装置,其可解决相关技术中接收端无法有效地确定OAM信息块所期望的插入位置的问题,以达到可令接收端可有效地确定发送端中OAM信息块所期望的插入位置,进而使得接收端可确保接收到相对应的OAM信息块的效果。以下对于本发明实施例中的OAM信息块定位方法及装置进行说明:In this regard, embodiments of the present invention provide a method and device for locating an OAM information block, which can solve the problem in the related art that the receiving end cannot effectively determine the desired insertion position of the OAM information block, so that the receiving end can effectively The desired insertion position of the OAM information block in the transmitting end is determined, so that the receiving end can ensure the effect of receiving the corresponding OAM information block. The following describes the method and device for locating an OAM information block in the embodiments of the present invention:
一方面,本发明实施例提供了一种OAM信息块定位方法,应用于发送端,图12是根据本发明实施例提供的OAM信息块定位方法的流程图(一),如图12所示,本发明实施例中的OAM信息块定位方法包括:On the one hand, an embodiment of the present invention provides a method for locating an OAM information block, which is applied to a transmitting end. FIG. 12 is a flowchart (1) of a method for locating an OAM information block provided according to an embodiment of the present invention, as shown in FIG. 12 , The method for locating the OAM information block in the embodiment of the present invention includes:
S102,在业务码块流中的第一位置插入OAM信息块;其中,OAM信息块中携带有位置偏差信息,位置偏差信息用于指示第一位置与第二位置之间的偏差值,第二位置用于指示发送端根据预设的插入周期确定的期望插入位置;S102, insert an OAM information block at a first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the deviation value between the first position and the second position, and the second position The position is used to indicate the desired insertion position determined by the sending end according to the preset insertion period;
S104,发送业务码块流至接收端,以供接收端至少根据位置偏差信息确定第二位置。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.
需要说明的是,上述第一位置即为发送端在业务码块流中实际插入OAM信息块的实际插入位置,上述第二位置即为发送端在业务码块流中期望插入OAM信息块的期望插入位置,第一位置与第二位置可以相同,即实际插入位置与期望插入位置相同,例如,期望插入位置位于两个报文之间的情形。第一位置与第二位置也可以不同,即实际插入位置与期望插入位置之间存在一定的偏差值,例如,期望插入位置位于一个报文的中间的情形;该情形下,发送端可通过记录实际插入位置,并将该实际插入位置与期望插入位置之间进行比较,进而确定偏差值,该偏差值可通过位置偏差信息进行指示。以此,通过在OAM信息块中携带位置偏差信息,即可将偏差值告知接收端。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 sender's expectation of inserting the OAM information block in the service code block stream. The insertion position, the first position and the second position may be the same, that is, the actual insertion position is the same as the expected insertion position, for example, the expected insertion position is between two packets. The first position and the second position can also be different, that is, there is a certain deviation between the actual insertion position and the expected insertion position. For example, the expected insertion position is in the middle of a packet; The actual insertion position is compared, and the actual insertion position is compared with the expected insertion position, and then the deviation value is determined, 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.
接收端接收到插入有OAM信息块的业务码块流时,即可由OAM信息块中携带的位置偏差信息确定OAM信息块的期望插入位置。以下通过一可选示例的方式说明接收端确定第二位置的实现:When the receiving end receives the service code block stream in which the OAM information block is inserted, the expected insertion position of the OAM information block can be determined from the position deviation information carried in the OAM information block. The implementation of the receiving end determining the second position is described below by way of an optional example:
在一可选示例中,上述步骤S104中,接收端至少根据位置偏差信息确定第二位置,包括:In an optional example, in the above step S104, the receiving end determines the second position at least according to the position deviation information, including:
接收端根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置;其中,第三位置用于指示接收端实际接收OAM信息块的位置。The receiver determines the first position according to the third position, and determines the second position according to the deviation information between the first position and the position; wherein, the third position is used to indicate the position where the receiver actually receives the OAM information block.
需要说明的是,接收端在接收业务码块流的过程中,当其接收到OAM信息块,即可将该实际接收到OAM信息块的位置作为第三位置;之后,接收端可进一步将第三位置等价为第一位置,即接收端将自身的实际接收位置作为发送端的实际插入位置,以此实现根据第三 位置确定第一位置。在确定第一位置的情形下,即可根据第一位置与位置偏差信息确定第二位置。It should be noted that in the process of receiving the service code block stream, when the receiving end receives the OAM information block, the position where the OAM information block is actually received can be taken as the third position; after that, the receiving end can further use the first The three positions are equivalent to the first position, that is, the receiving end uses its own actual receiving position as the actual insertion position of the sending end, so as to realize the determination of the first position according to the third position. In the case of determining the first position, the second position can be determined according to the deviation information between the first position and the position.
在一可选示例中,上述接收端根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置之后,还包括:In an optional example, after the receiving end determines the first position according to the third position, and determines the second position according to the information of the deviation between the first position and the position, the method further includes:
接收端根据第二位置与第四位置之间的偏差调整第四位置;其中,第四位置用于指示接收端根据预设的接收周期确定的期望接收位置;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;
接收端在调整后的第四位置接收后续的OAM信息块。The receiving end receives the subsequent OAM information block at the adjusted fourth position.
需要说明的是,接收端确定第二位置后,即可根据第二位置对自身的期望接收位置,即第四位置进行调整。以此,可令接收端的期望接收位置和发送端的期望插入位置相对一致,以此,进而使得接收端产生的下一次期望接收位置和发送端的期望插入位置则可基本吻合,以确保接收端对于后续OAM信息块可实现有效的接收与检测。以下通过一示例说明上述接收端调整第四位置的实现:It should be noted that after the receiving end determines the second position, it can adjust its desired receiving position, that is, the fourth position, according to 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, so that the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can basically match, so as to ensure that the receiving end can The OAM information block enables efficient reception and detection. The following is an example to illustrate the implementation of the above-mentioned receiving end adjusting the fourth position:
在一可选示例中,上述接收端根据第二位置与第四位置之间的偏差调整第四位置,包括:In an optional example, 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.
需要说明的是,在一示例中,预设阈值可以为0,即可令接收端的期望接收位置和发送端的期望插入位置完成一致。It should be noted that, in an example, the preset threshold may be 0, that is, the expected receiving position of the receiving end and the expected insertion position of the transmitting end are completely consistent.
在一可选示例中,上述步骤S102中,在业务码块流中的第一位置插入OAM信息块,还包括:In an optional example, in the above step S102, inserting an OAM information block at the first position in the service code block stream, further comprising:
在业务码块流中的多个第一位置分别插入OAM信息块,并在多个OAM信息块中选取至少一个OAM信息块以携带位置偏差信息。OAM information blocks are respectively inserted into multiple first positions in the service code block stream, and at least one OAM information block is selected from the multiple OAM information blocks to carry the position deviation information.
需要说明的是,本发明实施例中,可以在每一个OAM信息块中携带位置偏差信息,也可以在多个OAM信息块中按照预设的携带周期以周期性地选取OAM信息块携带位置偏差信息,也可以在多个OAM信息块中随机选取至少一个OAM信息块携带位置偏差信息,本发明实施例对位置偏差信息的携带方式不做限定。It should be noted that, in this embodiment of the present invention, the position deviation information may be carried in each OAM information block, or the OAM information block may be periodically selected to carry the position deviation in multiple OAM information blocks according to a preset carrying period. information, or at least one OAM information block may be randomly selected from a plurality of OAM information blocks to carry the position deviation information, and the embodiment of the present invention does not limit the carrying manner of the position deviation information.
在一可选实施例中,上述OAM信息块中还携带有插入周期。需要说明的是,以此,可令接收端可以方便根据周期值和偏差值判断发送端的期望插入位置,从而进一步实现接收端期望接收位置的校准。In an optional embodiment, the above-mentioned OAM information block also carries an insertion period. It should be noted that, in this way, the receiving end can easily determine the expected insertion position of the transmitting end according to the period value and the deviation value, thereby further realizing the calibration of the expected receiving position of the receiving end.
通过本发明实施例中的OAM信息块定位方法,由于可在发送端发送的业务码块流中的第一位置插入携带有位置偏差信息的OAM信息块,以供接收端可至少根据位置偏差信息确定第二位置;其中,位置偏差信息用于指示第一位置与第二位置之间的偏差值,第二位置用于指示发送端根据预设的插入周期确定的期望插入位置。因此,本发明实施例可以解决相关技术中接收端无法有效地确定OAM信息块所期望的插入位置的问题,以达到可令接收端可有效地确定发送端中OAM信息块所期望的插入位置,进而使得接收端可确保接收到相对应的OAM信息块的效果。With the method for locating the OAM information block in the embodiment of the present invention, because the OAM information block carrying the position deviation information can be inserted at the first position in the service code block stream sent by the sender, so that the receiver can use the position deviation information at least according to the position deviation information. Determine the second position; 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 sending end according to the preset insertion period. Therefore, the embodiment of the present invention can solve the problem that the receiving end cannot effectively determine the desired insertion position of the OAM information block in the related art, so that the receiving end can effectively determine the desired insertion position of the OAM information block in the transmitting end, Thus, the receiving end can ensure the effect of receiving the corresponding OAM information block.
为进一步说明本发明实施例中的OAM信息块定位方法,以下通过两个示例性实施例进行说明:To further illustrate the method for locating the OAM information block in the embodiment of the present invention, two exemplary embodiments are used to describe the following:
示例性实施例1 Exemplary Embodiment 1
本示例性实施例中,不考虑OAM信息块网络上因为IDLE块增删导致OAM信息块波动 的情形,在上情形下,为实现接收端可有效地确定发送端对于OAM信息块的期望插入位置,可以在OAM信息块中携带OAM信息块的实际插入位置与期望插入位置之间的偏差值,图13是根据本发明实施例提供的携带实际插入位置与期望插入位置之间偏差值的OAM信息块的示意图(一),上述在OAM信息块中携带OAM信息块的实际插入位置和期望插入位置的偏差值后的OAM信息块即如图13所示。以下对于本示例性实施例中发送端插入OAM信息块与接收端接收、检测OAM信息块的过程进行阐述:In this exemplary embodiment, the situation that the OAM information block fluctuates due to the addition or deletion of IDLE blocks on the OAM information block network is not considered. 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. FIG. 13 is an OAM information block carrying the deviation value between the actual insertion position and the expected insertion position according to an embodiment of the present invention. Schematic diagram (1) of the above-mentioned OAM information block after carrying the deviation between the actual insertion position of the OAM information block and the expected insertion position in the OAM information block is as shown in FIG. 13 . The following describes the process of inserting the OAM information block by the transmitting end and receiving and detecting the OAM information block by the receiving end in this exemplary embodiment:
当发送端插入OAM信息块时,同时在OAM信息块中携带实际插入位置和期望插入位置的位置偏差值。在一示例中,实际插入位置和期望插入位置相同,则OAM信息块中携带的位置偏差值为0,该情形下,可携带位置偏差值为0的偏移量,也可以通过不携带偏差值的方式指示位置偏差值为0;在另一示例中,实际插入位置和期望插入位置不一致,实际插入位置和期望插入位置之间存在一个偏移量ΔT(ΔT需区分正负值),则将该ΔT作为位置偏差值携带在OAM信息块中。When the sender inserts the OAM information block, the OAM information block also carries the position deviation value between the actual insertion position and the expected insertion position. In an example, the actual insertion position is the same as the expected insertion position, and the position deviation value carried in the OAM information block is 0. In this case, the offset value with the position deviation value of 0 can be carried, or the deviation value can be carried by not carrying the deviation value. The method indicates that the position deviation value is 0; in another example, the actual insertion position and the expected insertion position are inconsistent, and there is an offset ΔT between the actual insertion position and the expected insertion position (ΔT needs to distinguish between positive and negative values), then the This ΔT is carried in the OAM information block as a position offset value.
接收端在接收到OAM信息块时,接收端将OAM信息块的实际接收位置等同于发送端OAM信息块的实际插入位置,即根据接收端当前接收到OAM信息块的实际位置,以确定发送端的实际插入位置。进一步地,根据OAM信息块中携带的位置偏差值,以及上述确定的发送端的实际插入位置,接收端即可准确地推测出发送端的期望插入位置。When the receiving end receives the OAM information block, the receiving end equates the actual receiving position of the OAM information block with the actual insertion position of the transmitting end OAM information block, that is, according to the actual position of the OAM information block currently received by the receiving end, to determine the sending end's actual position. actual insertion position. Further, according to the position deviation value carried in the OAM information block and the actual insertion position of the sender determined above, the receiver can accurately estimate the expected insertion position of the sender.
接收端在推测出发送端的期望插入位置后,接收端可将自身根据预设的固定周期生成的期望接收位置和发送端的期望插入位置比较,如果相同,则说明发送端的期望位置和接收端的期望位置吻合。如果不同,则说明发送端的期望位置和接收端的期望位置不吻合,接收端的期望接收位置存在偏差;该情形下,可校准接收端的期望接收位置,将接收端的期望接收位置和发送端的期望插入位置校准成一致,以此,接收端产生的下一次期望接收位置和发送端的期望插入位置则可基本吻合。After the receiving end infers the expected insertion position of the transmitting end, the receiving end can compare the expected receiving position generated by itself according to the preset fixed period with the expected insertion position of the transmitting end. If they are the same, the expected position of the transmitting end and that of the receiving end are indicated match. If they are different, it means that the expected position of the sender does not match the expected position of the receiver, and there is a deviation in the expected position of the receiver. Therefore, the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can be basically consistent.
示例性实施例2 Exemplary Embodiment 2
本示例性实施例中,由于网络上各个节点不断地增删IDLE信息块,导致OAM信息块位置在客户业务码块流中存在波动,发送端的OAM信息块的实际插入位置和接收端的实际接收OAM信息块位置可能不完全对应。在极端情况下,客户业务码块流每经过两台设备,OAM信息块的位置会前后移动1个位置,波动范围为1个块。在一示例中,当网络上有20台设备时,OAM的实际插入位置经过20台设备后会产生波动范围在10以内的波动。In this exemplary embodiment, since each node on the network continuously adds and deletes IDLE information blocks, the position of the OAM information block fluctuates in the client service code block stream. The actual insertion position of the OAM information block of the sender and the actual received OAM information of the receiver The block positions may not correspond exactly. In extreme cases, every time the customer service code block stream passes through two devices, the position of the OAM information block will move forward and backward by one position, and the fluctuation range is one block. In an example, when there are 20 devices on the network, after the actual insertion position of the OAM passes through the 20 devices, the fluctuation range is within 10.
在上述情形下,为实现接收端可有效地确定发送端对于OAM信息块的期望插入位置,可以在OAM信息块中携带OAM信息块的实际插入位置与期望插入位置之间的偏差值,图14是根据本发明实施例提供的携带实际插入位置与期望插入位置之间偏差值的OAM信息块的示意图(二),上述在OAM信息块中携带OAM信息块的实际插入位置和期望插入位置的偏差值后的OAM信息块即如图14所示。以下对于本示例性实施例中发送端插入OAM信息块与接收端接收、检测OAM信息块的过程进行阐述:In the above situation, in order to realize that the receiving end can effectively determine the expected insertion position of the OAM information block by the transmitting 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, as shown in Figure 14. It is a schematic diagram (2) of the OAM information block carrying the deviation value between the actual insertion position and the expected insertion position provided according to an embodiment of the present invention, and the above-mentioned deviation of the actual insertion position and the expected insertion position of the OAM information block is carried in the OAM information block. The OAM information block after the value is shown in Figure 14. The following describes the process of inserting the OAM information block by the transmitting end and receiving and detecting the OAM information block by the receiving end in this exemplary embodiment:
当发送端插入OAM信息块时,同时在OAM信息块中携带实际插入位置和期望插入位置的位置偏差值。在一示例中,实际插入位置和期望插入位置相同,则OAM信息块中携带的位置偏差值为0,该情形下,可携带位置偏差值为0的偏移量,也可以通过不携带偏差值的方式指示位置偏差值为0;在另一示例中,实际插入位置和期望插入位置不一致,实际插入位置和期望插入位置之间存在一个偏移量ΔT(ΔT需区分正负值),则将该ΔT作为位置偏 差值携带在OAM信息块中。When the sender inserts the OAM information block, the OAM information block also carries the position deviation value between the actual insertion position and the expected insertion position. In an example, the actual insertion position is the same as the expected insertion position, and the position deviation value carried in the OAM information block is 0. In this case, the offset value with the position deviation value of 0 can be carried, or the deviation value can be carried by not carrying the deviation value. The method indicates that the position deviation value is 0; in another example, the actual insertion position and the expected insertion position are inconsistent, and there is an offset ΔT between the actual insertion position and the expected insertion position (ΔT needs to distinguish between positive and negative values), then the This ΔT is carried in the OAM information block as a position offset value.
接收端在接收到OAM信息块时,由于本示例性实施例中,网络上各个节点不断地增删IDLE信息块,导致OAM信息块位置在客户业务码块流中存在波动;以网络上有20台设备为例,OAM的实际插入位置经过20台设备后会产生波动范围在10以内的波动,则接收端接收OAM信息块的实际接收位置并不等同于发送端OAM信息块的实际插入位置,两者之间存在10以内的误差。以此,如若接收端以实际接收位置作为发送端的实际插入位置,并进一步根据OAM信息块中携带的位置偏差值推测出发送端的期望插入位置,则接收端推测所得的期望插入位置与发送端的期望插入位置之间存在10以内的误差。由于发送端的插入周期T通常而言至少为16K,该误差与插入周期之间的比例则至多为10:16384,由于该比例过小,在实际工作过程可进行忽略。When the receiving end receives the OAM information block, because in this exemplary embodiment, each node on the network continuously adds and deletes the IDLE information block, resulting in fluctuations in the position of the OAM information block in the customer service code block stream; there are 20 on the network. Take the device as an example. After 20 devices, the actual insertion position of OAM will fluctuate within 10. Therefore, the actual receiving position of the OAM information block received by the receiver is not equal to the actual insertion position of the OAM information block of the sender. There is an error of less than 10 between them. Therefore, if the receiving end uses the actual receiving position as the actual insertion position of the transmitting end, and further infers the expected insertion position of the transmitting end according to the position deviation value carried in the OAM information block, then the expected insertion position estimated by the receiving end is the same as that of the transmitting end. There is an error within 10 between the insertion positions. Since the insertion period T of the transmitting end is generally at least 16K, the ratio between the error and the insertion period is at most 10:16384. Since the ratio is too small, it can be ignored in the actual working process.
因此,本示例性实施例中网络上各个设备存在IDLE增删的情形下,接收端根据上述过程推测所得的发送端的期望插入位置存在一定偏差,但由于该误差小于n/2(n为网络上客户业务码块流经过的设备数量),其相较于发送端的插入周期过小,故对于接收端推测所得的期望插入位置而言可以忽略。Therefore, in the present exemplary embodiment, when each device on the network has IDLE additions and deletions, there is a certain deviation in the expected insertion position of the sender obtained by the receiver according to the above process, but since the error is less than n/2 (n is the client on the network) The number of devices that the service code block stream passes through), which is too small compared to the insertion period of the sender, so it can be ignored for the expected insertion position estimated by the receiver.
接收端在推测出发送端的期望插入位置后,接收端可将自身根据预设的固定周期生成的期望接收位置和发送端的期望插入位置比较,如果相同,则说明发送端的期望位置和接收端的期望位置吻合。如果不同,则说明发送端的期望位置和接收端的期望位置不吻合,接收端的期望接收位置存在偏差;该情形下,可校准接收端的期望接收位置,将接收端的期望接收位置和发送端的期望插入位置校准成一致,以此,接收端产生的下一次期望接收位置和发送端的期望插入位置则可基本吻合。After the receiving end infers the expected insertion position of the transmitting end, the receiving end can compare the expected receiving position generated by itself according to the preset fixed period with the expected insertion position of the transmitting end. If they are the same, the expected position of the transmitting end and that of the receiving end are indicated match. If they are different, it means that the expected position of the sender does not match the expected position of the receiver, and there is a deviation in the expected position of the receiver. Therefore, the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can be basically consistent.
由于发送端和接收端存在时钟偏差,进而导致经过上述校准后接收端的期望接收位置和发送端的期望插入位置基本吻合的情形下,在工作一段时间后,接收端的期望接收位置和发送端的期望插入位置之间又会逐步产生误差,并且误差会随时间的推移而增加。因此,本示例性实施例中,可在OAM信息块中周期性地携带实际插入位置和期望插入位置之间的位置偏差值,即偏移量ΔT,以令接收端可周期性地进行接收、判断与校准,以此,接收端的期望接收位置可始终跟随着发送端的期望插入位置,进而令接收端始终可在期望接收位置接收与检索OAM信息块。Due to the clock deviation between the sender and the receiver, the expected receiving position of the receiver and the expected insertion position of the sender after the above calibration are basically consistent, after working for a period of time, the expected receiving position of the receiver and the expected insertion position of the sender Errors will gradually develop between them, and the errors will increase over time. Therefore, in this exemplary embodiment, the OAM information block can periodically carry the position deviation value between the actual insertion position and the expected insertion position, that is, the offset ΔT, so that the receiving end can periodically receive, Through judgment and calibration, the expected receiving position of the receiving end can always follow the expected insertion position of the transmitting end, so that the receiving end can always receive and retrieve the OAM information block at the expected receiving position.
在实现过程中,可在OAM信息块中除上述偏移量ΔT外,同时可以携带发送端的插入周期,如图14所示,以此,接收端可以方便根据周期值和偏差值判断发送端的期望插入位置,从而进一步实现接收端期望接收位置的校准。In the implementation process, in addition to the above offset ΔT, the OAM information block can also carry the insertion period of the sender, as shown in Figure 14. In this way, the receiver can easily judge the sender's expectation based on the period value and the deviation value. Insertion position, so as to further realize the calibration of the desired receiving position of the receiving end.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From 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 a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
另一方面,本发明实施例还提供了一种OAM信息块定位方法,应用于接收端,图15是根据本发明实施例提供的OAM信息块定位方法的流程图(二),如图15所示,本发明实施例 中的OAM信息块定位方法包括:On the other hand, an embodiment of the present invention also provides a method for locating an OAM information block, which is applied to a receiving end. FIG. 15 is a flowchart (2) of the method for locating an OAM information block according to an embodiment of the present invention, as shown in FIG. 15 . As shown, the method for locating the OAM information block in the embodiment of the present invention includes:
S202,接收发送端发送的业务码块流;其中,业务码块流中的第一位置插入有OAM信息块,OAM信息块中携带有位置偏差信息,位置偏差信息用于指示第一位置与第二位置之间的偏差值,第二位置用于指示发送端根据预设的插入周期确定的期望插入位置;S202: Receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used to indicate the difference between the first position and the first position. The deviation value between the two positions, the second position is used to indicate the desired insertion position determined by the sending end according to the preset insertion period;
S204,至少根据位置偏差信息确定第二位置。S204, at least determine the second position according to the position deviation information.
在一可选示例中,上述步骤S204中,至少根据位置偏差信息确定第二位置,包括:In an optional example, in the foregoing step S204, determining the second position at least according to the position deviation information includes:
根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置;其中,第三位置用于指示接收端实际接收OAM信息块的位置。The first position is determined according to the third position, and the second position is determined according to the deviation information between the first position and the position; wherein, the third position is used to indicate the position where the receiving end actually receives the OAM information block.
在一可选示例中,上述根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置之后,还包括:In an optional example, after the first position is determined according to the third position and the second position is determined according to the first position and position deviation information, the method further includes:
根据第二位置与第四位置之间的偏差调整第四位置;其中,第四位置用于指示接收端根据预设的接收周期确定的期望接收位置;Adjust 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;
在调整后的第四位置接收后续的OAM信息块。The subsequent OAM information block is received at the adjusted fourth position.
在一可选示例中,上述根据第二位置与第四位置之间的偏差调整第四位置,包括:In an optional example, the above-mentioned 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.
在一可选示例中,上述OAM信息块中还携带有插入周期。In an optional example, the above-mentioned OAM information block also carries an insertion period.
需要说明的是,上述应用于接收端的OAM信息块定位方法的可选示例与技术效果,均与前述应用于发送端的OAM信息块定位方法相对应,故在此不再赘述。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 are all corresponding to the aforementioned OAM information block positioning method applied to the transmitting end, so they are not repeated here.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From 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 a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
另一方面,本发明实施例还提供了一种OAM信息块定位装置,设置于发送端,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。On the other hand, an embodiment of the present invention further provides an OAM information block positioning apparatus, which is set at the transmitting end, and is used to implement the above-mentioned embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图16是根据本发明实施例提供的OAM信息块定位装置的结构框图(一),如图16所示,本发明实施例中的OAM信息块定位装置包括:FIG. 16 is a structural block diagram (1) of an apparatus for locating an OAM information block provided according to an embodiment of the present invention. As shown in FIG. 16 , the apparatus for locating an OAM information block in the embodiment of the present invention includes:
插入模块302,设置为在业务码块流中的第一位置插入OAM信息块;其中,OAM信息块中携带有位置偏差信息,位置偏差信息用于指示第一位置与第二位置之间的偏差值,第二位置用于指示发送端根据预设的插入周期确定的期望插入位置;The inserting module 302 is configured to insert the OAM information block at the first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the deviation between the first position and the second position value, the second position is used to indicate the desired insertion position determined by the transmitting end according to the preset insertion period;
发送模块304,设置为发送业务码块流至接收端,以供接收端至少根据位置偏差信息确定第二位置。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.
在一可选示例中,上述接收端至少根据位置偏差信息确定第二位置,包括:In an optional example, the receiving end determines the second position at least according to the position deviation information, including:
接收端根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置;其 中,第三位置用于指示接收端实际接收OAM信息块的位置。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 where the receiving end actually receives the OAM information block.
在一可选示例中,上述接收端根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置之后,还包括:In an optional example, after the receiving end determines the first position according to the third position, and determines the second position according to the information of the deviation between the first position and the position, the method further includes:
接收端根据第二位置与第四位置之间的偏差调整第四位置;其中,第四位置用于指示接收端根据预设的接收周期确定的期望接收位置;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;
接收端在调整后的第四位置接收后续的OAM信息块。The receiving end receives the subsequent OAM information block at the adjusted fourth position.
在一可选示例中,上述接收端根据第二位置与第四位置之间的偏差调整第四位置,包括:In an optional example, 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.
在一可选示例中,上述在业务码块流中的第一位置插入OAM信息块,还包括:In an optional example, the above-mentioned inserting the OAM information block at the first position in the service code block stream also includes:
在业务码块流中的多个第一位置分别插入OAM信息块,并在多个OAM信息块中选取至少一个OAM信息块以携带位置偏差信息。OAM information blocks are respectively inserted into multiple first positions in the service code block stream, and at least one OAM information block is selected from the multiple OAM information blocks to carry the position deviation information.
在一可选示例中,上述OAM信息块中还携带有插入周期。In an optional example, the above-mentioned OAM information block also carries an insertion period.
需要说明的是,上述设置于发送端的OAM信息块定位装置的其余可选示例与技术效果均与前述应用于发送端的OAM信息块定位方法相对应,故在此不再赘述。It should be noted that the remaining optional examples and technical effects of the above-mentioned OAM information block locating apparatus provided at the transmitting end are all corresponding to the aforementioned OAM information block locating method applied to the transmitting end, so they are not repeated here.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
另一方面,本发明实施例还提供了一种OAM信息块定位装置,设置于接收端,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。On the other hand, an embodiment of the present invention further provides a device for locating an OAM information block, which is arranged at a receiving end, and is used to implement the above embodiments and preferred implementations, and what has been described will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
图17是根据本发明实施例提供的OAM信息块定位装置的结构框图(二),如图17所示,本发明实施例中的OAM信息块定位装置包括:FIG. 17 is a structural block diagram (2) of an apparatus for locating an OAM information block provided according to an embodiment of the present invention. As shown in FIG. 17 , the apparatus for locating an OAM information block in the embodiment of the present invention includes:
接收模块402,设置为接收发送端发送的业务码块流;其中,业务码块流中的第一位置插入有OAM信息块,OAM信息块中携带有位置偏差信息,位置偏差信息用于指示第一位置与第二位置之间的偏差值,第二位置用于指示发送端根据预设的插入周期确定的期望插入位置;The receiving module 402 is configured to receive the service code block stream sent by the transmitting end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used to indicate the first position in the service code block stream. A deviation value between a position and a second position, where the second position is used to indicate a desired insertion position determined by the transmitting end according to a preset insertion period;
确定模块404,设置为至少根据位置偏差信息确定第二位置。The determining module 404 is configured to determine the second position at least according to the position deviation information.
在一可选示例中,上述至少根据位置偏差信息确定第二位置,包括:In an optional example, the above-mentioned determining of the second position at least according to the position deviation information includes:
根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置;其中,第三位置用于指示接收端实际接收OAM信息块的位置。The first position is determined according to the third position, and the second position is determined according to the deviation information between the first position and the position; wherein, the third position is used to indicate the position where the receiving end actually receives the OAM information block.
在一可选示例中,上述根据第三位置确定第一位置,并根据第一位置与位置偏差信息确定第二位置之后,还包括:In an optional example, after the first position is determined according to the third position and the second position is determined according to the first position and position deviation information, the method further includes:
根据第二位置与第四位置之间的偏差调整第四位置;其中,第四位置用于指示接收端根据预设的接收周期确定的期望接收位置;Adjust 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;
在调整后的第四位置接收后续的OAM信息块。The subsequent OAM information block is received at the adjusted fourth position.
在一可选示例中,上述根据第二位置与第四位置之间的偏差调整第四位置,包括:In an optional example, the above-mentioned 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.
在一可选示例中,上述OAM信息块中还携带有插入周期。In an optional example, the above-mentioned OAM information block also carries an insertion period.
需要说明的是,上述设置于接收端的OAM信息块定位装置的其余可选示例与技术效果均与前述应用于接收端的OAM信息块定位方法相对应,故在此不再赘述。It should be noted that the remaining optional examples and technical effects of the above-mentioned OAM information block locating device disposed at the receiving end are all corresponding to the aforementioned OAM information block locating method applied to the receiving end, so they are not repeated here.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that the above modules can be implemented by software or hardware, and the latter can be implemented in the following ways, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination The forms are located in different processors.
另一方面,本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。On the other hand, an embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of the above method embodiments when running steps in .
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to, a USB flash drive, a read-only memory (Read-Only Memory, referred to as ROM for short), and a random access memory (Random Access Memory, referred to as RAM for short) , mobile hard disk, magnetic disk or CD-ROM and other media that can store computer programs.
另一方面,本发明的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。On the other hand, an embodiment of the present invention also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the above method embodiments. A step of.
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and exemplary implementation manners, and details are not described herein again in this embodiment.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, and they can be centralized on a single computing device or distributed in a network composed of multiple computing devices On the other hand, they can be implemented in program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, can be performed in a different order than shown here. Or the described steps, or they are respectively made into individual integrated circuit modules, or a plurality of modules or steps in them are made into a single integrated circuit module to realize. As such, the present invention is not limited to any particular combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.

Claims (15)

  1. 一种OAM信息块定位方法,应用于发送端,所述方法包括:A method for locating an OAM information block, applied to a transmitting end, the method comprising:
    在业务码块流中的第一位置插入OAM信息块;其中,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;Insert an OAM information block at a first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the deviation between the first position and the second position value, the second position is used to indicate the desired insertion position determined by the transmitting end according to the preset insertion period;
    发送所述业务码块流至接收端,以供所述接收端至少根据所述位置偏差信息确定所述第二位置。The service code block stream is sent to a receiving end, so that the receiving end can determine the second position at least according to the position deviation information.
  2. 根据权利要求1所述的方法,其中,所述接收端至少根据所述位置偏差信息确定所述第二位置,包括:The method according to claim 1, wherein the receiving end determines the second position at least according to the position deviation information, comprising:
    所述接收端根据第三位置确定所述第一位置,并根据所述第一位置与所述位置偏差信息确定所述第二位置;其中,所述第三位置用于指示所述接收端实际接收所述OAM信息块的位置。The receiving end determines the first position according to the third position, and determines the second position according to the deviation information between the first position and the position; wherein, the third position is used to indicate that the receiving end actually The location where the OAM information block is received.
  3. 根据权利要求2所述的方法,其中,所述接收端根据第三位置确定所述第一位置,并根据所述第一位置与所述位置偏差信息确定所述第二位置之后,还包括:The method according to claim 2, wherein after the receiving end determines the first position according to the third position, and determines the second position according to the information on the deviation between the first position and the position, the method further comprises:
    所述接收端根据所述第二位置与第四位置之间的偏差调整所述第四位置;其中,所述第四位置用于指示所述接收端根据预设的接收周期确定的期望接收位置;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 an expected receiving position determined by the receiving end according to a preset receiving period ;
    所述接收端在调整后的所述第四位置接收后续的所述OAM信息块。The receiving end receives the subsequent OAM information block at the adjusted fourth position.
  4. 根据权利要求3所述的方法,其中,所述接收端根据所述第二位置与第四位置之间的偏差调整所述第四位置,包括:The method according to claim 3, wherein the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, comprising:
    所述接收端根据所述第二位置与所述第四位置之间的偏差调整所述第四位置,以令调整后的所述第四位置与所述第二位置之间的偏差小于或等于预设阈值。The receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, so that the adjusted deviation between the fourth position and the second position is less than or equal to Preset threshold.
  5. 根据权利要求1至4任一项中所述的方法,其中,所述在业务码块流中的第一位置插入OAM信息块,还包括:The method according to any one of claims 1 to 4, wherein the inserting the OAM information block at the first position in the service code block stream further comprises:
    在所述业务码块流中的多个所述第一位置分别插入所述OAM信息块,并在多个所述OAM信息块中选取至少一个所述OAM信息块以携带所述位置偏差信息。The OAM information blocks are respectively inserted into multiple first positions in the service code block stream, and at least one of the OAM information blocks is selected from the multiple OAM information blocks to carry the position deviation information.
  6. 根据权利要求1至4任一项中所述的方法,其中,所述OAM信息块中还携带有所述插入周期。The method according to any one of claims 1 to 4, wherein the insertion period is further carried in the OAM information block.
  7. 一种OAM信息块定位方法,应用于接收端,所述方法包括:A method for locating an OAM information block, applied to a receiving end, the method comprising:
    接收发送端发送的所述业务码块流;其中,所述业务码块流中的第一位置插入有OAM信息块,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;Receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the position deviation information is used for Indicate the deviation value between the first position and the second position, and the second position is used to indicate the desired insertion position determined by the transmitting end according to a preset insertion period;
    至少根据所述位置偏差信息确定所述第二位置。The second position is determined based on at least the position deviation information.
  8. 根据权利要求7所述的方法,其中,所述至少根据所述位置偏差信息确定所述第二位置,包括:The method of claim 7, wherein the determining the second position based on at least the position deviation information comprises:
    根据第三位置确定所述第一位置,并根据所述第一位置与所述位置偏差信息确定所述第二位置;其中,所述第三位置用于指示所述接收端实际接收所述OAM信息块的位置。The first position is determined according to the third position, and the second position is determined according to the deviation information between the first position and the position; wherein, the third position is used to indicate that the receiving end actually receives the OAM The location of the information block.
  9. 根据权利要求8所述的方法,其中,所述根据第三位置确定所述第一位置,并根据所述第一位置与所述位置偏差信息确定所述第二位置之后,还包括:The method according to claim 8, wherein after the determining the first position according to the third position and determining the second position according to the deviation information between the first position and the position, the method further comprises:
    根据所述第二位置与第四位置之间的偏差调整所述第四位置;其中,所述第四位置用于指示所述接收端根据预设的接收周期确定的期望接收位置;Adjust the fourth position according to the deviation between the second position and the fourth position; wherein, the fourth position is used to indicate the desired receiving position determined by the receiving end according to a preset receiving period;
    在调整后的所述第四位置接收后续的所述OAM信息块。The subsequent OAM information block is received at the adjusted fourth position.
  10. 根据权利要求9所述的方法,其中,所述根据所述第二位置与第四位置之间的偏差调整所述第四位置,包括:The method of claim 9, wherein the adjusting the fourth position according to the deviation between the second position and the fourth position comprises:
    根据所述第二位置与所述第四位置之间的偏差调整所述第四位置,以令调整后的所述第四位置与所述第二位置之间的偏差小于或等于预设阈值。The fourth position is adjusted according to the deviation between the second position and the fourth position, so that the adjusted deviation between the fourth position and the second position is less than or equal to a preset threshold.
  11. 根据权利要求7至10任一项中所述的方法,其中,所述OAM信息块中还携带有所述插入周期。The method according to any one of claims 7 to 10, wherein the insertion period is further carried in the OAM information block.
  12. 一种OAM信息块定位装置,设置于发送端,所述装置包括:A device for locating an OAM information block, arranged at a sending end, the device comprising:
    插入模块,设置为在业务码块流中的第一位置插入OAM信息块;其中,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;The inserting module is configured to insert an OAM information block at the first position in the service code block stream; wherein, the OAM information block carries position deviation information, and the position deviation information is used to indicate the first position and the second position. The deviation value between the positions, the second position is used to indicate the desired insertion position determined by the sending end according to the preset insertion period;
    发送模块,设置为发送所述业务码块流至接收端,以供所述接收端至少根据所述位置偏差信息确定所述第二位置。The sending module 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.
  13. 一种OAM信息块定位装置,设置于接收端,所述装置包括:A device for locating an OAM information block, arranged at a receiving end, the device comprising:
    接收模块,设置为接收发送端发送的所述业务码块流;其中,所述业务码块流中的第一位置插入有OAM信息块,所述OAM信息块中携带有位置偏差信息,所述位置偏差信息用于指示所述第一位置与第二位置之间的偏差值,所述第二位置用于指示所述发送端根据预设的插入周期确定的期望插入位置;The receiving module is configured to receive the service code block stream sent by the sending end; wherein, an OAM information block is inserted into the first position in the service code block stream, and the OAM information block carries position deviation information, and the 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 sending end according to a preset insertion period;
    确定模块,设置为至少根据所述位置偏差信息确定所述第二位置。A determination module, configured to determine the second position at least according to the position deviation information.
  14. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至6任一项中所述的方法,或者执行权利要求7至11任一项中所述的方法。A computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the method according to any one of claims 1 to 6 when running, or A method as claimed in any one of claims 7 to 11 is carried out.
  15. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至6任一项中所述的方法,或者执行权利要求7至11任一项中所述的方法。An electronic device comprising a memory and a processor, the memory having a computer program stored therein, the processor being arranged to run the computer program to perform the method of any one of claims 1 to 6, Or perform a method as claimed in any one of claims 7 to 11.
PCT/CN2021/079778 2020-07-28 2021-03-09 Oam information block positioning method and device WO2022021882A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010738888.4 2020-07-28
CN202010738888.4A CN112511331A (en) 2020-07-28 2020-07-28 OAM information block positioning method and device

Publications (1)

Publication Number Publication Date
WO2022021882A1 true WO2022021882A1 (en) 2022-02-03

Family

ID=74953314

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/079778 WO2022021882A1 (en) 2020-07-28 2021-03-09 Oam information block positioning method and device

Country Status (2)

Country Link
CN (1) CN112511331A (en)
WO (1) WO2022021882A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314179A (en) * 2022-08-05 2022-11-08 烽火通信科技股份有限公司 MTNP OAM message sending method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107508732A (en) * 2017-10-18 2017-12-22 盛科网络(苏州)有限公司 The method that flexibly all kinds of OAM messages are carried out with sequence number detection and timestamp detection
CN109274600A (en) * 2017-07-18 2019-01-25 华为技术有限公司 A kind of method that detection block sends and receives, the network equipment and system
CN109768976A (en) * 2019-01-14 2019-05-17 盛科网络(苏州)有限公司 The method and device for sending and receiving OAM Information for flexible Ethernet
CN110768742A (en) * 2018-07-27 2020-02-07 中兴通讯股份有限公司 OAM message transmission method, sending device, receiving device and readable storage medium
CN110831143A (en) * 2018-08-08 2020-02-21 北京展讯高科通信技术有限公司 Method for indicating and acquiring position of synchronization signal block, base station, terminal and medium
US20200220650A1 (en) * 2017-09-21 2020-07-09 China Mobile Communication Co., Ltd Research Institute Oam message transmission method and transmission device, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274600A (en) * 2017-07-18 2019-01-25 华为技术有限公司 A kind of method that detection block sends and receives, the network equipment and system
US20200220650A1 (en) * 2017-09-21 2020-07-09 China Mobile Communication Co., Ltd Research Institute Oam message transmission method and transmission device, and storage medium
CN107508732A (en) * 2017-10-18 2017-12-22 盛科网络(苏州)有限公司 The method that flexibly all kinds of OAM messages are carried out with sequence number detection and timestamp detection
CN110768742A (en) * 2018-07-27 2020-02-07 中兴通讯股份有限公司 OAM message transmission method, sending device, receiving device and readable storage medium
CN110831143A (en) * 2018-08-08 2020-02-21 北京展讯高科通信技术有限公司 Method for indicating and acquiring position of synchronization signal block, base station, terminal and medium
CN109768976A (en) * 2019-01-14 2019-05-17 盛科网络(苏州)有限公司 The method and device for sending and receiving OAM Information for flexible Ethernet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314179A (en) * 2022-08-05 2022-11-08 烽火通信科技股份有限公司 MTNP OAM message sending method and device
CN115314179B (en) * 2022-08-05 2023-06-09 烽火通信科技股份有限公司 MTNP OAM message sending method and device

Also Published As

Publication number Publication date
CN112511331A (en) 2021-03-16

Similar Documents

Publication Publication Date Title
US7821939B2 (en) Method, system, and computer program product for adaptive congestion control on virtual lanes for data center ethernet architecture
EP2641359B1 (en) Systems and methods for measuring available capacity and tight link capacity of ip paths from a single endpoint
KR101046105B1 (en) Computer program manufacturing, resource demand adjustment methods, and end systems
US11102273B2 (en) Uplink performance management
JP2004343698A (en) Rate control of server base in multimedia streaming environment
US8630190B2 (en) Method and system to identify a network device associated with poor QoS
US9729459B2 (en) System and method for credit-based link level flow control
WO2016000659A1 (en) Statistical information acquisition method and device
JP2004173279A (en) Method and apparatus for auditing service level agreement by test packet insertion
JP2004266840A (en) Controlling admission of data stream onto network based on end-to-end measurement
WO2018059604A1 (en) Information transmission method, device, and computer storage medium
EP3605956A1 (en) Iptv service quality detection method, device and system
CN105634840A (en) Method and device for measuring packet loss
WO2016086542A1 (en) Message transmission method and device, and computer storage medium
US11509561B2 (en) Performance measurement using extended bidirectional forwarding control packet
WO2012088910A1 (en) Method and system for detecting connectivity fault
WO2022021882A1 (en) Oam information block positioning method and device
WO2018114520A1 (en) Determining the bandwidth of a communication link
US8521869B2 (en) Method and system for reporting defects within a network
WO2020103423A1 (en) Bandwidth testing method and apparatus, and storage medium
CN102480503B (en) P2P (peer-to-peer) traffic identification method and P2P traffic identification device
EP1687935B1 (en) Methods and system for measuring the round trip time in packet switching telecommunication networks
JP2004228746A (en) Stream quality observation apparatus, program, and recording medium
WO2021169295A1 (en) Method, device, and system for testing transmission quality
US7653719B1 (en) Automatic detection of channel bandwidth

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/07/2023)

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21849160

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 21849160

Country of ref document: EP

Kind code of ref document: A1