CN112511331A - OAM information block positioning method and device - Google Patents

OAM information block positioning method and device Download PDF

Info

Publication number
CN112511331A
CN112511331A CN202010738888.4A CN202010738888A CN112511331A CN 112511331 A CN112511331 A CN 112511331A CN 202010738888 A CN202010738888 A CN 202010738888A CN 112511331 A CN112511331 A CN 112511331A
Authority
CN
China
Prior art keywords
information block
oam information
deviation
receiving end
oam
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010738888.4A
Other languages
Chinese (zh)
Inventor
刘峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202010738888.4A priority Critical patent/CN112511331A/en
Priority to PCT/CN2021/079778 priority patent/WO2022021882A1/en
Publication of CN112511331A publication Critical patent/CN112511331A/en
Pending legal-status Critical Current

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

Landscapes

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

Abstract

The embodiment of the invention provides an OAM information block positioning method and a device, wherein the OAM information block positioning method comprises the following steps: inserting an OAM information block at a first position in a service code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between a first position and a second position, and the second position is used for indicating an expected insertion position determined by a sending end according to a preset insertion period; and sending the service code block stream to a receiving end so that the receiving end can determine a second position at least according to the position deviation information. The embodiment of the invention can solve the problem that the receiving end can not effectively determine the expected insertion position of the OAM information block in the related technology, so that the receiving end can effectively determine the expected insertion position of the OAM information block in the transmitting end, and the receiving end can ensure the effect of receiving the corresponding OAM information block.

Description

OAM information block positioning method and device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to an OAM information block positioning method and device.
Background
A Flexible Ethernet (FlexE) protocol is a core technology of 5G bearer, and currently, an International Telecommunications Union (ITU) organization adds an Operation, Administration and Maintenance (OAM) function of pipeline monitoring to a FlexE client service to detect a pipeline service quality state of the FlexE bearer client service, such as functions of bit error rate, delay time, service discard, and the like. In the process of realizing the OAM function, a sending end sends an OAM information block according to a fixed period, the OAM information block is inserted into a customer service code block stream, and a receiving end receives and detects the OAM information block according to the same fixed period. However, in the related art, synchronization often cannot be achieved between the sending end and the receiving end, so that 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 the OAM information block cannot be effectively received and detected.
In view of the above problem that the receiving end cannot effectively determine the expected insertion position of the OAM information block in the related art, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides an OAM information block positioning method and device, which are used for at least solving the problem that a receiving end in the related technology cannot effectively determine the expected insertion position of an OAM information block.
According to an embodiment of the present invention, there is provided a method for locating an OAM information block, which is applied to a transmitting end, and the method includes:
inserting an OAM information block at a first position in a service code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between the first position and a second position, and the second position is used for indicating an expected insertion position determined by the sending end according to a preset insertion period;
and sending the service code block stream to a receiving end so that the receiving end can determine the second position at least according to the position deviation information.
According to another embodiment of the present invention, there is also provided an OAM information block positioning method applied to a receiving end, including:
receiving the service code block stream sent by a sending end; an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the second position is used to indicate an expected insertion position determined by the sending end according to a preset insertion period;
determining the second position based at least on the positional deviation information.
According to another embodiment of the present invention, there is also provided an OAM information block positioning apparatus, which is disposed at a sending end, and the apparatus includes:
the inserting module is used for inserting the OAM information block at a first position in the service code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between the first position and a second position, and the second position is used for indicating an expected insertion position determined by the sending end according to a preset insertion period;
and the sending module is used for sending the service code block flow to a receiving end so that the receiving end can determine the second position at least according to the position deviation information.
According to another embodiment of the present invention, there is also provided an OAM information block positioning apparatus, which is disposed at a receiving end, and includes:
a receiving module, configured to receive the service code block stream sent by a sending end; an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the second position is used to indicate an expected insertion position determined by the sending end according to a preset insertion period;
a determining module for determining the second location based at least on the location deviation information.
According to another embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to, when executed, perform the steps of any of the above method embodiments.
According to another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the embodiment of the invention, the OAM information block carrying the position deviation information can be inserted into the first position in the service code block stream sent by the sending end, so that the receiving end can determine the second position at least according to the position deviation information; the position deviation information is used for indicating a deviation value between a first position and a second position, and the second position is used for indicating an expected insertion position determined by the sending end according to a preset insertion period. Therefore, the embodiment of the invention can solve the problem that the receiving end in the related technology cannot effectively determine the expected insertion position of the OAM information block, so that the receiving end can effectively determine the expected insertion position of the OAM information block in the transmitting end, and the receiving end can ensure the effect of receiving the corresponding OAM information block.
Drawings
FIG. 1 is a diagram illustrating a format of a data block provided according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a format of a control block according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the format of an O block 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 period provided according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a format of an OAM information block provided in accordance with an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a format of an OAM information block inserted into a customer service code block stream provided in accordance with an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a deviation between an actual position of an OAM information block inserted into a customer service code block stream and a desired insertion position according to an embodiment of the present invention;
fig. 9 is a schematic diagram of an IDLE block add/drop process caused by device-to-device clock frequency deviation according to an embodiment of the present invention;
FIG. 10 is a diagram illustrating an expected position deviation between a transmitting end and a receiving end under a clock frequency deviation according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a client service code block stream provided in accordance with an embodiment of the present invention being delivered in a network;
fig. 12 is a flowchart (one) of an OAM information block positioning method provided in accordance with an embodiment of the present invention;
fig. 13 is a schematic diagram (one) of an OAM information block carrying an offset value between an actual insertion location and a desired insertion location according to an embodiment of the present invention;
fig. 14 is a schematic diagram (two) of an OAM information block carrying an offset value between an actual insertion location and a desired insertion location according to an embodiment of the present invention.
Fig. 15 is a flowchart (two) of an OAM information block positioning method provided in accordance with an embodiment of the present invention;
fig. 16 is a block diagram (one) illustrating a structure of a method for locating an OAM information block according to an embodiment of the present invention;
fig. 17 is a block diagram (ii) illustrating a structure of an OAM information block positioning method 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 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 in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
To further describe the method and apparatus for locating an OAM information block in the embodiment of the present invention, an application scenario of the method and apparatus for locating an OAM information block in the embodiment of the present invention is described as follows:
when the FlexE service implementation is used for transmitting the ethernet customer service, a code block with a length of 66 may be formed by the ethernet packet according to the 64/66 encoding rule. Each of the 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 a format of a data block provided according to an embodiment of the present invention, where in the code block shown in fig. 1, when the values of the first two bits are "01", it indicates that the code block is a data block, and the last 64 bits indicate 8 bytes of data content, i.e., data0 through data7 shown in fig. 1. Fig. 2 is a schematic diagram of a format of a control block provided according to an embodiment of the present invention, where in the code block shown in fig. 2, when the values of the first two bits are "10", it indicates that the code block is a control block, the last 8 bits (the first byte) indicate the type of the control block, and the last 56 bits indicate 7 bytes of control block information. Common control block types are: s block, T block, IDLE block, O block, etc.; wherein, the S block represents the initial block of a message; the T block represents an end block of a message; an IDLE block (may be referred to as an I block for short) represents a free block and does not carry any useful information; the O block represents one failure information block. Fig. 3 is a schematic diagram of a format of an O block provided according to an embodiment of the present invention, and as shown in fig. 3, a control value in the O block is 0x4B (hexadecimal value), which indicates that the control block is an O block. The first three bytes in the O block are failure information values, and the next 4 bits carry the sequence number of the O block, which represents the O blocks of various subtypes, and the currently enabled sequence number may be composed of several values, such as 0, 1, 2, 5, and F (hexadecimal value). Fig. 4 is a schematic diagram of a code block stream format provided in an embodiment of the present invention, where an ethernet packet is encoded by 64/66 to form the code block stream shown in fig. 4, where the ethernet packet starts with an S block and ends with a plurality of D blocks in the middle. Between two ethernet packets, there are several IDLE blocks, O blocks.
In order to monitor the service quality of a FlexE client flow delivery pipeline, an OAM information block capable of realizing a monitoring function is added in a client service code block flow to detect the service quality state of a FlexE client bearer pipeline, such as functions of error rate, delay time, service discard and the like. The OAM information block is a special information code block, and is inserted between the front and back client messages on the network source equipment and is sent out along with the client service code block stream. At the sink device of the network, the content of the OAM information block is detected so as to measure the quality condition of the bearing client pipeline. In one example, the OAM blocks are transmitted at the transmitting end at a fixed period (e.g., once every 16K code blocks), and the receiving end also receives at the same fixed period. When the receiving end does not receive the OAM information block in three continuous periods, the interruption of the pipeline for bearing the customer service is indicated, and the protection needs to be started. The fixed period for the sending end to send the OAM information block may be 16K, 32K, 64K, etc., and the fixed period for the receiving end to receive and detect is the same as the fixed period of the sending end.
The OAM information block type may be: fig. 5 is a schematic diagram of an OAM information block transmission cycle provided according to an embodiment of the present invention, where, as shown in fig. 5, the OAM information blocks of different types may be periodically transmitted according to the format shown in fig. 5, any adjacent OAM information blocks are separated by one transmission cycle T, and the OAM blocks of different types are transmitted according to a certain separation rule. Similarly, the receiving end receives and detects the OAM information block according to the period and interval rules of the sending end, and in an example, the receiving end may retrieve the OAM information block at a fixed location to receive and detect the OAM information block.
Fig. 6 is a schematic diagram illustrating a format of an OAM information block according to an embodiment of the present invention, and as shown in fig. 6, a sequence number value (e.g., 0xC, hexadecimal) may be extended to an existing O block to indicate an OAM information block. A type field is further provided in the OAM information block to indicate various kinds of OAM blocks, such as a base type OAM block, an APS type OAM block, a CV type OAM block, a DM type OAM block, a CSF type OAM information block, and the like. 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 different types of OAM block is different.
Fig. 7 is a schematic diagram illustrating a format of an OAM information block inserted into a client traffic code block stream according to an embodiment of the present invention, and as shown in fig. 7, an OAM information block is inserted between intervals of adjacent messages in the client traffic code block stream for transmission. At the sending end, when the position where the OAM information block is expected to be inserted is just a free information block, i.e., an IDLE block, then the OAM information block may directly replace the original IDLE block to realize the insertion. When the position of inserting the OAM information block is just between two messages, but no idle information block exists between the front message and the back message, the OAM information block is directly inserted between the front message and the back message, the insertion is realized by adopting a forced queue insertion mode, and the subsequent client messages are sequentially moved backwards; thus, the OAM information block can be transmitted together with the customer service code block stream.
The transmitting end determines the insertion position of the OAM information block according to a fixed period, and the insertion position is called a desired insertion position. The following describes, by way of an example, a process in which a sending end inserts an OAM information block and a receiving end receives and detects the OAM information block in a process of transferring an ethernet client service:
when the transmitting end transmits the OAM information block, a T period counter is provided, for example, when T is 16K, the counter counts to a position of 16K, which indicates that the transmitting end needs to insert one OAM information block, and this time is a desired insertion position of the OAM block of the transmitting end. If the expected insertion position is located between two messages in front and at the back of the client service code block stream, the OAM information block can be directly inserted, in this case, the expected insertion position is the same as the actual insertion position, if the expected insertion position is located at the middle position of one message, the OAM information block needs to be inserted after the current message is sent, in this case, the expected insertion position is different from the actual insertion position. A T period counter is correspondingly arranged at the receiving end, for example, when T is 16K, the counter counts to a position of 16K each time, which indicates an expected receiving position of the receiving end, and it is expected to receive one OAM information block at the position, if the position is located between two messages before and after, the position should have one OAM information block, and if the position is located in a middle position of one message, it should have one OAM information block after waiting for the end of receiving the current message.
Fig. 8 is a schematic diagram illustrating a deviation between an actual position and an expected insertion position of an OAM information block inserted into a client service code block stream according to an embodiment of the present invention, as shown in fig. 8, when the expected insertion position is exactly located in the middle of a client packet, the OAM information block cannot be directly inserted by force at this time, and it is necessary to wait for the end of the current packet transmission before inserting the OAM information block into the tail of the packet. 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, the OAM information block cannot be actually received, and a blank is caused. In some cases, the expected receiving position of the receiving end and the actual inserting position of the sending end are very different, which may be more than one OAM block period, and thus the OAM information block received by the receiving end at the expected receiving position is an OAM information block in other OAM block periods, that is, the type of the OAM information block actually received may be different from that of the expected OAM information block.
On the other hand, the transmitting side and the receiving side both transmit the OAM information block and receive the OAM information block at the same period T, however, the clock frequencies of the respective devices in the network are not consistent. Fig. 9 is a schematic diagram of an IDLE block add/delete process caused by clock frequency deviation between a device and a device according to an embodiment of the present invention, as shown in fig. 9, when the upstream and downstream clock frequencies of the devices in the network are not consistent, the device adjusts the actual speed of the client service code block stream by adding or deleting a small number of IDLE information blocks IDLE in the client service code block stream, so as to achieve matching between the speed of the client service code block stream and the clock speed of the device. Because clock frequency deviation exists between the working clocks of each device, the sending or receiving period of the OAM information block generated according to the clock frequency, namely the value of the T period, is inconsistent, therefore, the value of the T period of the sending end and the value of the T period of the receiving end may have slight difference in the actual work, the difference is accumulated along with time, and the expected insertion position generated by the sending end according to the T period and the expected receiving position generated by the receiving end according to the T period are gradually different. Fig. 10 is a schematic diagram of a situation of deviation between expected positions of a transmitting end and a receiving end under clock frequency deviation according to an embodiment of the present invention, as shown in fig. 10, an expected receiving position generated by the receiving end does not coincide with an expected insertion position of the transmitting end, and the receiving end cannot receive and detect an OAM information block according to the expected receiving position. Meanwhile, according to the foregoing phenomenon, since the position where the OAM information block is actually inserted by the sending end is different from the expected insertion position, an add/drop state of an IDLE block exists when the client service code block stream is transmitted on the network, fig. 11 is a schematic diagram of the client service code block stream transmitted in the network according to 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 may fluctuate around the client service code block stream, further causing the receiving end to be difficult to accurately determine the expected insertion position of the sending end.
In view of the above, embodiments of the present invention provide a method and an apparatus for locating an OAM information block, which can solve the problem in the related art that a receiving end cannot effectively determine an expected insertion location of the OAM information block, so that the receiving end can effectively determine the expected insertion location of the OAM information block in a transmitting end, and further, the receiving end can ensure that the corresponding OAM information block is received. The following describes an OAM information block positioning method and apparatus in the embodiment of the present invention:
in one aspect, an embodiment of the present invention provides an OAM information block positioning method, which is applied to a sending end, and fig. 12 is a flowchart (one) of the OAM information block positioning method provided in the embodiment of the present invention, as shown in fig. 12, the OAM information block positioning method in the embodiment of the present invention includes:
s102, inserting an OAM information block at a first position in a service code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between a first position and a second position, and the second position is used for indicating an expected insertion position determined by a sending end according to a preset insertion period;
and S104, sending the service code block flow to the receiving end so that the receiving end can determine a second position at least according to the position deviation information.
It should be noted that the first position is an actual insertion position where the sending end actually inserts the OAM information block in the traffic code block stream, the second position is an expected insertion position where the sending end expects to insert the OAM information block in the traffic code block stream, and 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 located between two messages. The first position and the second position may also be different, that is, a certain deviation value exists between the actual insertion position and the expected insertion position, for example, the expected insertion position is located in the middle of a message; in this case, the sending end may determine the deviation value by recording the actual insertion position and comparing the actual insertion position with the expected insertion position, and the deviation value may be indicated by the position deviation information. Therefore, the position deviation information is carried in the OAM information block, and the deviation value can be informed to the receiving end.
When the receiving end receives the service code block flow inserted with the OAM information block, the expected insertion position of the OAM information block can be determined according to the position deviation information carried in the OAM information block. The implementation of the receiving end to determine the second position is described below by way of an alternative example:
in an optional example, in step S104, the determining, by the receiving end, the second position according to at least the position deviation information includes:
the receiving end determines a first position according to the third position and determines a second position according to the first position and the position deviation information; wherein the third position is used for indicating the position where the receiving end actually receives the OAM information block.
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 may be used as the third position; then, the receiving end may further equate the third position to the first position, that is, the receiving end uses the actual receiving position of the receiving end as the actual inserting position of the transmitting end, so as to determine the first position according to the third position. In the case where the first position is determined, the second position may be determined based on the first position and the positional deviation information.
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 first position and the position deviation information, the method further includes:
the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; the fourth position is used for indicating an expected receiving position determined by the receiving end according to a preset receiving period;
and the receiving end receives the subsequent OAM information block at the adjusted fourth position.
It should be noted that, after the receiving end determines the second position, the receiving end may adjust its expected receiving position, that is, the fourth position, according to the second position. Therefore, the expected receiving position of the receiving end and the expected inserting position of the sending end can be relatively consistent, and further the next expected receiving position generated by the receiving end and the expected inserting position of the sending end can be basically consistent, so that the receiving end can realize effective receiving and detection on the subsequent OAM information block. The following describes an implementation of the fourth position adjustment by the receiving end by an example:
in an optional example, the adjusting, by the receiving end, the fourth position according to the deviation between the second position and the fourth position includes:
and 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 smaller than or equal to a preset threshold value.
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 inserting position of the transmitting end may be consistent.
In an optional example, in step S102, inserting the OAM information block in the first position in the traffic code block stream further includes:
and inserting the OAM information blocks into a plurality of first positions in the service code block stream respectively, and selecting at least one OAM information block from the plurality of OAM information blocks to carry position deviation information.
It should be noted that, in the embodiment of the present invention, each OAM information block may carry position deviation information, or a plurality of OAM information blocks may periodically select OAM information blocks to carry position deviation information according to a preset carrying period, or at least one OAM information block may be randomly selected to carry position deviation information, where a carrying manner of the position deviation information is not limited in the embodiment of the present invention.
In an optional embodiment, the OAM information block further carries an insertion period. It should be noted that, in this way, the receiving end can conveniently 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.
By the OAM information block positioning method in the embodiment of the invention, the OAM information block carrying the position deviation information can be inserted into the first position in the service code block stream sent by the sending end, so that the receiving end can determine the second position at least according to the position deviation information; the position deviation information is used for indicating a deviation value between a first position and a second position, and the second position is used for indicating an expected insertion position determined by the sending end according to a preset insertion period. Therefore, the embodiment of the invention can solve the problem that the receiving end in the related technology cannot effectively determine the expected insertion position of the OAM information block, so that the receiving end can effectively determine the expected insertion position of the OAM information block in the transmitting end, and the receiving end can ensure the effect of receiving the corresponding OAM information block.
To further illustrate the OAM information block positioning method in the embodiments of the present invention, the following is described by two exemplary embodiments:
exemplary embodiment 1
In this exemplary embodiment, regardless of the fluctuation of the OAM information block caused by the add/drop of the IDLE block on the OAM information block network, in this case, in order to achieve that the receiving end can effectively determine the expected insertion position of the OAM information block by the transmitting end, the OAM information block may carry an offset value between the actual insertion position and the expected insertion position of the OAM information block, fig. 13 is a schematic diagram (one) of the OAM information block carrying an offset value between the actual insertion position and the expected insertion position according to the embodiment of the present invention, and the OAM information block carrying the offset value between the actual insertion position and the expected insertion position of the OAM information block in the OAM information block is as shown in fig. 13. The following explains the process of inserting the OAM information block at the transmitting end and receiving and detecting the OAM information block at the receiving end in the present exemplary embodiment:
when the transmitting end inserts the OAM information block, the position deviation value of the actual insertion position and the expected insertion position is carried in the OAM information block. In an example, if the actual insertion position is the same as the expected insertion position, the position offset value carried in the OAM information block is 0, in this case, an offset of the position offset value 0 may be carried, or the position offset value may be indicated as 0 by not carrying the offset value; in another example, the actual insertion position and the expected insertion position do not coincide, and an offset Δ T (Δ T needs to distinguish between positive and negative values) exists between the actual insertion position and the expected insertion position, and the Δ T is carried in the OAM information block as a position offset value.
When the receiving end receives the OAM information block, the receiving end equates the actual receiving position of the OAM information block to the actual insertion position of the sending end OAM information block, i.e. the actual insertion position of the sending end is determined according to the actual position of the OAM information block currently received by the receiving end. Further, according to the position deviation value carried in the OAM information block and the determined actual insertion position of the transmitting end, the receiving end can accurately presume the expected insertion position of the transmitting end.
After the receiving end conjectures the expected insertion position of the sending end, the receiving end can compare the expected receiving position generated by the receiving end according to the preset fixed period with the expected insertion position of the sending end, and if the expected receiving position is the same as the expected insertion position of the sending end, the expected position of the sending end is consistent with the expected position of the receiving end. If the expected positions of the transmitting end and the receiving end are different, the expected positions of the transmitting end and the receiving end are not matched, and deviation exists between the expected receiving positions of the receiving end; in this case, the expected receiving position of the receiving end can be calibrated to match the expected receiving position of the receiving end and the expected insertion position of the transmitting end, so that the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can be substantially matched.
Exemplary embodiment 2
In this exemplary embodiment, because each node on the network continuously adds and deletes the IDLE information block, the position of the OAM information block fluctuates in the client service code block stream, and the actual insertion position of the OAM information block at the sending end may not completely correspond to the actual position of the OAM information block received at the receiving end. In an extreme case, the position of the OAM information block moves back and forth 1 position every time the customer service code block stream passes through two devices, and the fluctuation range is 1 block. In one example, when there are 20 devices on the network, the fluctuation range of 10 or less may occur after the actual insertion location of OAM passes through 20 devices.
In the above situation, in order to enable the receiving end to effectively determine the expected insertion position of the OAM information block by the sending end, an offset value between the actual insertion position and the expected insertion position of the OAM information block may be carried in the OAM information block, fig. 14 is a schematic diagram (two) of the OAM information block carrying the offset value between the actual insertion position and the expected insertion position according to the embodiment of the present invention, and the OAM information block carrying the offset value between the actual insertion position and the expected insertion position of the OAM information block in the OAM information block is as shown in fig. 14. The following explains the process of inserting the OAM information block at the transmitting end and receiving and detecting the OAM information block at the receiving end in the present exemplary embodiment:
when the transmitting end inserts the OAM information block, the position deviation value of the actual insertion position and the expected insertion position is carried in the OAM information block. In an example, if the actual insertion position is the same as the expected insertion position, the position offset value carried in the OAM information block is 0, in this case, an offset of the position offset value 0 may be carried, or the position offset value may be indicated as 0 by not carrying the offset value; in another example, the actual insertion position and the expected insertion position do not coincide, and an offset Δ T (Δ T needs to distinguish between positive and negative values) exists between the actual insertion position and the expected insertion position, and the Δ T is carried in the OAM information block as a position offset value.
When the receiving end receives the OAM information block, because in the present exemplary embodiment, each node on the network continuously adds and deletes the IDLE information block, the position of the OAM information block fluctuates in the client service code block stream; taking 20 devices on the network as an example, after an actual insertion position of OAM passes through 20 devices, fluctuation within a fluctuation range of 10 occurs, and an actual receiving position of a receiving end receiving an OAM information block is not equal to an actual insertion position of a sending end OAM information block, and an error within 10 exists between the two. Thus, if the receiving side assumes the actual reception position as the actual insertion position of the transmitting side and further estimates the desired insertion position of the transmitting side from the position deviation value carried in the OAM information block, the receiving side estimates that there is an error of within 10 between the desired insertion position estimated by the receiving side and the desired insertion position of the transmitting side. Since the insertion period T of the transmitting end is typically 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.
Therefore, in the exemplary embodiment, when there is IDLE add/drop in each device on the network, the receiving end estimates that there is a certain deviation in the expected insertion position of the sending end according to the above process, but since the error is smaller than n/2(n is the number of devices through which the customer service code block stream passes on the network), the error is too small compared with the insertion period of the sending end, and therefore, the expected insertion position estimated by the receiving end can be ignored.
After the receiving end conjectures the expected insertion position of the sending end, the receiving end can compare the expected receiving position generated by the receiving end according to the preset fixed period with the expected insertion position of the sending end, and if the expected receiving position is the same as the expected insertion position of the sending end, the expected position of the sending end is consistent with the expected position of the receiving end. If the expected positions of the transmitting end and the receiving end are different, the expected positions of the transmitting end and the receiving end are not matched, and deviation exists between the expected receiving positions of the receiving end; in this case, the expected receiving position of the receiving end can be calibrated to match the expected receiving position of the receiving end and the expected insertion position of the transmitting end, so that the next expected receiving position generated by the receiving end and the expected insertion position of the transmitting end can be substantially matched.
Due to the clock offset between the transmitting end and the receiving end, under the condition that the expected receiving position of the receiving end is basically consistent with the expected inserting position of the transmitting end after the calibration, after the operation is carried out for a period of time, an error is gradually generated between the expected receiving position of the receiving end and the expected inserting position of the transmitting end, and the error is increased along with the lapse of time. Therefore, in the exemplary embodiment, the position deviation value between the actual insertion position and the expected insertion position, i.e., the offset Δ T, may be periodically carried in the OAM information block, so that the receiving end may periodically perform receiving, determining and calibrating, thereby the expected receiving position of the receiving end may always follow the expected insertion position of the transmitting end, and the receiving end may always receive and retrieve the OAM information block at the expected receiving position.
In the implementation process, besides the offset Δ T, the OAM information block may also carry an insertion period of the sending end, as shown in fig. 14, so that the receiving end may conveniently determine an expected insertion position of the sending end according to the period value and the offset value, thereby further implementing calibration of an expected receiving position of the receiving end.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
On the other hand, an embodiment of the present invention further provides a method for positioning an OAM information block, where the method is applied to a receiving end, fig. 15 is a flowchart (two) of the method for positioning an OAM information block according to the embodiment of the present invention, and as shown in fig. 15, the method for positioning an OAM information block according to the embodiment of the present invention includes:
s202, receiving a service code block stream sent by a sending end; the method comprises the steps that an OAM information block is inserted into a first position in a service code block flow, position deviation information is carried in the OAM information block, the position deviation information is used for indicating a deviation value between the first position and a second position, and the second position is used for indicating an expected insertion position determined by a sending end according to a preset insertion period;
and S204, determining a second position at least according to the position deviation information.
In an optional example, in step S204, determining the second position according to at least the position deviation information includes:
determining a first position according to the third position, and determining a second position according to the deviation information of the first position and the position; wherein the third position is used for indicating the position where the receiving end actually receives the OAM information block.
In an optional example, after determining the first position according to the third position and determining the second position according to the first position and the position deviation information, the method further includes:
adjusting the fourth position according to a deviation between the second position and the fourth position; the fourth position is used for indicating an expected receiving position determined by the receiving end according to a preset receiving period;
and receiving the subsequent OAM information block at the adjusted fourth position.
In an alternative example, the adjusting the fourth position according to the deviation between the second position and the fourth position includes:
and adjusting 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 smaller than or equal to a preset threshold value.
In an optional example, the OAM information block further carries an insertion period.
It should be noted that, the above-mentioned optional examples and technical effects of the OAM information block positioning method applied to the receiving end correspond to the above-mentioned OAM information block positioning method applied to the transmitting end, and therefore, are not described herein again.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
On the other hand, an embodiment of the present invention further provides an OAM information block positioning apparatus, which is disposed at a sending end, and is used to implement the foregoing embodiment and the preferred embodiment, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 16 is a block diagram (a) of a OAM information block positioning apparatus according to an embodiment of the present invention, and as shown in fig. 16, the OAM information block positioning apparatus in the embodiment of the present invention includes:
an inserting module 302, configured to insert an OAM information block at a first position in a traffic code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between a first position and a second position, and the second position is used for indicating an expected insertion position determined by a sending end according to a preset insertion period;
a sending module 304, configured to send the service code block stream to the receiving end, so that the receiving end determines the second position at least according to the position deviation information.
In an optional example, the determining, by the receiving end, the second position according to at least the position deviation information includes:
the receiving end determines a first position according to the third position and determines a second position according to the first position and the position deviation information; wherein the third position is used for indicating 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 first position and the position deviation information, the method further includes:
the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; the fourth position is used for indicating an expected receiving position determined by the receiving end according to a preset receiving period;
and the receiving end receives the subsequent OAM information block at the adjusted fourth position.
In an optional example, the adjusting, by the receiving end, the fourth position according to the deviation between the second position and the fourth position includes:
and 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 smaller than or equal to a preset threshold value.
In an optional example, the inserting the OAM information block at the first position in the traffic code block stream further includes:
and inserting the OAM information blocks into a plurality of first positions in the service code block stream respectively, and selecting at least one OAM information block from the plurality of OAM information blocks to carry position deviation information.
In an optional example, the OAM information block further carries an insertion period.
It should be noted that, the remaining optional examples and technical effects of the OAM information block positioning apparatus set in the sending end correspond to the OAM information block positioning method applied to the sending end, and therefore are not described herein again.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
On the other hand, an embodiment of the present invention further provides an OAM information block positioning apparatus, which is disposed at a receiving end, and is used to implement the foregoing embodiment and preferred embodiments, which have already been described and are not described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 17 is a block diagram (two) of the OAM information block positioning apparatus according to the embodiment of the present invention, and as shown in fig. 17, the OAM information block positioning apparatus in the embodiment of the present invention includes:
a receiving module 402, configured to receive a service code block stream sent by a sending end; the method comprises the steps that an OAM information block is inserted into a first position in a service code block flow, position deviation information is carried in the OAM information block, the position deviation information is used for indicating a deviation value between the first position and a second position, and the second position is used for indicating an expected insertion position determined by a sending end according to a preset insertion period;
a determining module 404 for determining a second position based at least on the position deviation information.
In an optional example, the determining the second position at least according to the position deviation information includes:
determining a first position according to the third position, and determining a second position according to the deviation information of the first position and the position; wherein the third position is used for indicating the position where the receiving end actually receives the OAM information block.
In an optional example, after determining the first position according to the third position and determining the second position according to the first position and the position deviation information, the method further includes:
adjusting the fourth position according to a deviation between the second position and the fourth position; the fourth position is used for indicating an expected receiving position determined by the receiving end according to a preset receiving period;
and receiving the subsequent OAM information block at the adjusted fourth position.
In an alternative example, the adjusting the fourth position according to the deviation between the second position and the fourth position includes:
and adjusting 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 smaller than or equal to a preset threshold value.
In an optional example, the OAM information block further carries an insertion period.
It should be noted that, the remaining optional examples and technical effects of the OAM information block positioning apparatus disposed at the receiving end correspond to those of the OAM information block positioning method applied at the receiving end, and therefore, are not described herein again.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
On the other hand, the embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any of the above method embodiments when the computer program is executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
In another aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps in any one of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. An OAM information block positioning method is applied to a sending end, and the method comprises the following steps:
inserting an OAM information block at a first position in a service code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between the first position and a second position, and the second position is used for indicating an expected insertion position determined by the sending end according to a preset insertion period;
and sending the service code block stream to a receiving end so that the receiving end can determine the second position at least according to the position deviation information.
2. The method of claim 1, wherein the receiving end determines the second location at least according to the location deviation information, comprising:
the receiving end determines the first position according to a third position and determines the second position according to the deviation information of the first position and the position; wherein the third position is used for indicating a position where the receiving end actually receives the OAM information block.
3. The method of claim 2, wherein after the receiving end determines the first location according to a third location and determines the second location according to the deviation information between the first location and the location, the method further comprises:
the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position; the fourth position is used for indicating an expected receiving position determined by the receiving end according to a preset receiving period;
and the receiving end receives the subsequent OAM information block at the adjusted fourth position.
4. The method of claim 3, wherein the receiving end adjusts the fourth position according to the deviation between the second position and the fourth position, comprising:
and 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 smaller than or equal to a preset threshold value.
5. The method according to any of claims 1 to 4, wherein inserting the OAM information block at the first position in the traffic code block stream further comprises:
and inserting the OAM information blocks into the plurality of first positions in the service code block stream respectively, and selecting at least one OAM information block from the plurality of OAM information blocks to carry the position deviation information.
6. The method according to any of claims 1 to 4, wherein the OAM information block further carries the insertion period.
7. An OAM information block positioning method, applied to a receiving end, the method comprising:
receiving the service code block stream sent by a sending end; an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the second position is used to indicate an expected insertion position determined by the sending end according to a preset insertion period;
determining the second position based at least on the positional deviation information.
8. The method of claim 7, wherein said determining the second location based at least on the location deviation information comprises:
determining the first position according to a third position, and determining the second position according to the deviation information of the first position and the position; wherein the third position is used for indicating a position where the receiving end actually receives the OAM information block.
9. The method of claim 8, wherein after determining the first location based on the third location and determining the second location based on the first location and the location deviation information, further comprising:
adjusting the fourth position according to a deviation between the second position and the fourth position; the fourth position is used for indicating an expected receiving position determined by the receiving end according to a preset receiving period;
and receiving the subsequent OAM information block at the adjusted fourth position.
10. The method of claim 9, wherein the adjusting the fourth position according to the deviation between the second position and the fourth position comprises:
and adjusting 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 smaller than or equal to a preset threshold value.
11. The method according to any of claims 7 to 10, wherein the OAM information block further carries the insertion period.
12. An OAM information block positioning apparatus, arranged at a transmitting end, the apparatus comprising:
the inserting module is used for inserting the OAM information block at a first position in the service code block stream; the OAM information block carries position deviation information, the position deviation information is used for indicating a deviation value between the first position and a second position, and the second position is used for indicating an expected insertion position determined by the sending end according to a preset insertion period;
and the sending module is used for sending the service code block flow to a receiving end so that the receiving end can determine the second position at least according to the position deviation information.
13. An OAM information block positioning apparatus, arranged at a receiving end, the apparatus comprising:
a receiving module, configured to receive the service code block stream sent by a sending end; an OAM information block is inserted into a first position in the service code block stream, the OAM information block carries position deviation information, the position deviation information is used to indicate a deviation value between the first position and a second position, the second position is used to indicate an expected insertion position determined by the sending end according to a preset insertion period;
a determining module for determining the second location based at least on the location deviation information.
14. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 6 when executed, or to perform the method of any of claims 7 to 11.
15. An electronic apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6, or to perform the method of any of claims 7 to 11.
CN202010738888.4A 2020-07-28 2020-07-28 OAM information block positioning method and device Pending CN112511331A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN112511331A true CN112511331A (en) 2021-03-16

Family

ID=74953314

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (1)

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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274600B (en) * 2017-07-18 2022-04-29 华为技术有限公司 Method, network equipment and system for sending and receiving detection block
CN112134654B (en) * 2017-09-21 2023-06-27 中国移动通信有限公司研究院 OAM message transmission method, transmission equipment 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
CN110768742B (en) * 2018-07-27 2022-04-05 中兴通讯股份有限公司 OAM message transmission method, sending device, receiving device and readable storage medium
CN110831143B (en) * 2018-08-08 2021-02-26 北京紫光展锐通信技术有限公司 Method for indicating and acquiring position of synchronization signal block, base station, terminal and medium
CN109768976B (en) * 2019-01-14 2021-06-01 盛科网络(苏州)有限公司 Method and device for transmitting and receiving OAM information for flexible Ethernet

Also Published As

Publication number Publication date
WO2022021882A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
US6026075A (en) Flow control mechanism
US8407364B2 (en) Apparatus and method for providing a congestion measurement in a network
US7961632B2 (en) Communication apparatus and OAM frame transmission method
US8081659B2 (en) Map message expediency monitoring and automatic delay adjustments in M-CMTS
US11552871B2 (en) Receive-side timestamp accuracy
US20190280797A1 (en) Flexible ethernet group establishment method and device
CN109672560B (en) Flexible Ethernet management channel expansion method and device
WO2016000659A1 (en) Statistical information acquisition method and device
EP2681871B1 (en) In-service throughput testing in distributed router/switch architectures
KR20090018072A (en) Network-based data traffic detection and control
CN108521343A (en) A kind of processing method and processing device of OAM message
CN105656800A (en) Method and device for transmitting message
CN114338465A (en) Network anomaly determination method and device
EP3560152B1 (en) Determining the bandwidth of a communication link
US9331927B2 (en) Communication system, communication device, and communication method
CN112511331A (en) OAM information block positioning method and device
US20220029927A1 (en) Electronic device and frame transmission method of electronic device
EP2106052A2 (en) Communication system, transmitting apparatus, receiving apparatus, communication method and record medium for transferring a clock in a packet network
CN100401691C (en) Method and system for determining availability in network
CN109995603B (en) Method and device for measuring packet loss under Tag model and electronic equipment
CN113328903B (en) Method, device and system for detecting transmission quality
CN117221175A (en) Time delay measuring method and device, storage medium and program product thereof
CN112994820B (en) Optical fiber link detection method and device
CN114079652A (en) Data processing method
US20240129651A1 (en) Method and device for receiving oam information block

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination