WO2019015462A1 - Method for sending detection block and method for receiving detection block, and network device and system - Google Patents
Method for sending detection block and method for receiving detection block, and network device and system Download PDFInfo
- Publication number
- WO2019015462A1 WO2019015462A1 PCT/CN2018/093563 CN2018093563W WO2019015462A1 WO 2019015462 A1 WO2019015462 A1 WO 2019015462A1 CN 2018093563 W CN2018093563 W CN 2018093563W WO 2019015462 A1 WO2019015462 A1 WO 2019015462A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- detection
- detection block
- data stream
- network device
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/004—Arrangements for detecting or preventing errors in the information received by using forward error control
- H04L1/0056—Systems characterized by the type of code used
- H04L1/0061—Error detection codes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0847—Transmission error
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
Definitions
- the present application relates to the field of communications, and in particular, to a method, network device, and system for detecting block transmission and reception.
- FlexE The current Flex Ethernet implementation agreement 1.0 (FlexE IA 1.0) interface technology has been standardized in the optical internetworking forum (OIF). Flexible Ethernet (FlexE) interface technology can be applied to data center equipment interconnection, etc., by binding n 100G physical layer devices (PHYs) to transmit multiple FlexE client services of different speeds. Subsequently, FlexE will also define switching technology, L1.5 layer switching technology, also known as X-Ethernet switching technology or X-E switching technology.
- L1.5 layer switching technology also known as X-Ethernet switching technology or X-E switching technology.
- L1.5 layer switching technology ie, X-Ethernet switching technology or XE switching technology
- X-Ethernet switching technology or XE switching technology is a bit block (for example, 64B/66B bit block) switching technology based on Ethernet (Ethernet) physical layer, with deterministic ultra-low The technical characteristics of the delay.
- FIG. 1 is a schematic diagram of a networking architecture of the prior art adopting the L1.5 layer switching technology.
- the dotted path is an end-to-end service forwarding path.
- a method of inserting a detection block in a fixed period is used, for example, a detection block is inserted every N bit blocks, and an L1.5 layer end-to-end failure detection is performed.
- the upstream client signal adaptation unit inserts a detection block
- the downstream network signal adaptation unit also inserts an overhead block.
- the insertion of the two bit blocks causes the watermark of the network signal adaptation unit to rise, which needs to be performed. Deletion of free blocks.
- the insertion of the detection block by the prior art technical solution may cause the downstream waterline fluctuation, thereby triggering the deletion of the free block to reduce the waterline fluctuation caused by the insertion of the detection block.
- the present application provides a method, a network device, and a system for detecting block transmission and reception, which can solve the problem of detecting a bit block loss of a service during transmission.
- the application provides a method for detecting block transmission, comprising: acquiring, by a network device, a raw bit block data stream; generating at least one detection block, inserting the at least one detection block into at least the original bit block data stream a location of a free block; transmitting a block of bit data stream comprising the at least one detected block.
- the detection block transmission is performed by occupying the bandwidth resource of the free block in the bit block data stream, thereby solving the problem of loss of the bit block of the service.
- the inserting the at least one detection block into a location of the at least one free block in the original bit block data stream comprises: inserting X detection blocks into the original bit block data stream The position of the X free blocks, X is a positive integer greater than or equal to 1.
- the detection block is not inserted into the middle of the message, but inserted into the middle of the two messages to maintain the integrity of the message.
- the number of inserted detection blocks is equal to the number of free blocks to be replaced, and the detection block completely occupies the bandwidth resources of the free block for transmission, which has no impact on the bandwidth of the service, thereby solving the problem of loss of the bit block of the service.
- the at least one detection block carries a flow identifier, where the flow identifier is used to indicate a connection identifier of the original bit block data stream, and a standard such as ITU-T G.709 is used to identify the connection.
- the information is a trail trace identifier (TTI, which is a meaning of the stream identifier and TTI.
- TTI trail trace identifier
- the stream identifier can be defined according to user requirements, when the length is shorter. For a long time, it can be carried by multiple detection blocks sent in succession. That is, several detection blocks respectively carry a part of the flow identification, and the receiver receives multiple detection blocks, and then combines the multiple parts into one complete identification.
- carrying the flow identifier in the detection block may enable the receiving end to determine whether a connection misconnection occurs according to the flow identifier, and is also referred to as a trace tracking identifier TTI mismatch (TIM), and the flow identifier described herein is a TIM.
- TTI mismatch TIM
- the receiver can only determine whether a misconnection occurs after receiving the multiple detection blocks and combining them into a complete flow identifier.
- the at least one detection block further carries a type identifier, and the type identifier may indicate a type of function that the detection block has, for example, the detection block may be used for connectivity detection.
- the detection block can also be used for other OAM function detection, such as bit interleaved parity (BIP), far end error indication (REI), client signal indication (CS), synchronization (SYNC), service layer alarm indication (AIS). ), Protection Switching Protocol (APS), Time Delay Measurement (DM), etc.
- BIP bit interleaved parity
- REI far end error indication
- CS client signal indication
- SYNC synchronization
- AIS service layer alarm indication
- APS Protection Switching Protocol
- DM Time Delay Measurement
- the at least one detection block may flexibly select whether to carry a preset transmission reference period, where the preset transmission reference period is used to indicate a transmission period of the at least one detection block.
- the sending period of the at least one detecting block is greater than or equal to a preset sending reference period carried by the at least one detecting block.
- the transmission period of the detection block may float within a certain range, which is a non-fixed period.
- the method further includes: pre-processing the at least one detecting block The transmission reference period is updated to the transmission period of the at least one detection block.
- the preset transmission reference period may be dynamically changed according to the actual transmission period of the detection block.
- the at least one detection block is an M/N bit block.
- the detection block may be an encoded bit block, for example, a 64B/66B bit block, an 8B/10B bit block, a 256B/257B bit block, or the like, or may be an uncoded bit block.
- the free block is added and/or deleted in the bit block data stream, so that the rate of adding and/or deleting the bit block data stream after the free block is compatible with the port rate of the network device Match.
- a free block may be added and/or deleted in the original bit block data stream, or a free block may be added and/or deleted in the bit block data stream after the insertion of the detection block.
- the application provides a method for receiving a service, comprising: receiving, by a network device, a bit block data stream including at least one detection block; identifying the at least one detection block, replacing the at least one detection block with at least one idle Block; transmitting a bit block data stream after replacing the at least one free block.
- the detection block reception is performed by occupying the bandwidth resource of the free block in the bit block data stream, thereby solving the problem of loss of the bit block of the service.
- the replacing the at least one detection block with the at least one free block comprises: replacing X detection blocks with X free blocks, where X is a positive integer greater than or equal to 1.
- the number of received detection blocks is equal to the number of replacement free blocks, and the detection block completely occupies the bandwidth resources of the free block for reception, and has no impact on the bandwidth of the service, thereby solving the problem of loss of the bit block of the service.
- the detecting block carries a flow identifier, where the flow identifier is used to indicate a connection identifier of the bit block data stream, and the method further includes: the network device fails according to the flow identifier Detection.
- the flow identifier is carried in the detection block, and the network device at the receiving end can determine whether the connection is disconnected according to the flow identifier, and can quickly and effectively detect the connection failure.
- the receiver can only determine whether a misconnection occurs after receiving the multiple detection blocks and combining them into a complete flow identifier.
- the at least one detection block further carries a type identifier, and the type identifier may indicate a type of function that the detection block has, for example, the detection block may be used for connectivity detection.
- the detection block can also be used for other OAM function detection, such as bit interleaved parity (BIP), far end error indication (REI), client signal indication (CS), synchronization (SYNC), service layer alarm indication (AIS). ), Protection Switching Protocol (APS), Time Delay Measurement (DM), etc.
- BIP bit interleaved parity
- REI far end error indication
- CS client signal indication
- SYNC synchronization
- AIS service layer alarm indication
- APS Protection Switching Protocol
- DM Time Delay Measurement
- the detecting block carries a preset sending reference period
- the method further includes: the network device identifying the at least one detecting block according to the sending reference period.
- Carrying a preset transmission reference period in the detection block helps the network device at the receiving end to quickly locate the detection block.
- the receiving network device quickly locates the detection block according to the preset period.
- the at least one detection block is an M/N bit block.
- the detection block may be an encoded bit block, for example, a 64B/66B bit block, an 8B/10B bit block, a 256B/257B bit block, or the like, or may be an uncoded bit block.
- the present application provides a network device, which is used to implement the functions of the first aspect or any one of the possible implementations of the first aspect.
- This function can be implemented in hardware or in hardware by executing the corresponding software.
- the hardware or software includes one or more modules corresponding to the functions described above.
- the application provides a network device, which is used to implement the functions of any of the possible implementations of the second aspect or the second aspect.
- This function can be implemented in hardware or in hardware by executing the corresponding software.
- the hardware or software includes one or more modules corresponding to the functions described above.
- an embodiment of the present invention provides a network system, including the network device of the third aspect, and the network device of the fourth aspect or the fourth aspect.
- Yet another aspect of the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
- Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
- FIG. 1 is a schematic diagram of a networking architecture of a prior art using an L1.5 layer switching technology
- FIG. 2 is a schematic diagram of a network architecture according to an embodiment of the present invention.
- 3a-3d are schematic structural diagrams of four network devices PE according to an embodiment of the present invention.
- 4a-4d are schematic structural diagrams of four network devices P according to an embodiment of the present invention.
- FIG. 5a and FIG. 5b are schematic structural diagrams of two types of packet bearer devices according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of a logical structure of a monitoring unit according to an embodiment of the present invention.
- 7a, 7b, 7c, 7d, 7e, 7f, and 7g are respectively schematic diagrams of coding formats of detection blocks according to an embodiment of the present invention.
- FIG. 8 is a flowchart of a method for sending a detection block according to an embodiment of the present invention.
- 9a, 9b, 9c, and 9d are schematic diagrams of four transmission detection blocks according to an embodiment of the present invention.
- FIG. 10 is a schematic diagram of a logical structure of a detection block sending module according to an embodiment of the present invention.
- FIG. 11 is a schematic diagram of a format of a free block according to an embodiment of the present disclosure.
- FIG. 12 is a schematic diagram of rate adaptation according to an embodiment of the present invention.
- 13a, 13b, 13c, and 13d are flowcharts of a method for receiving a detection block according to an embodiment of the present invention.
- FIG. 14 is a schematic diagram of two encoding formats of a detection block according to an embodiment of the present invention.
- FIG. 15 is a schematic diagram of a network architecture according to an embodiment of the present invention.
- FIG. 16 is a flowchart of a method for sending a fault indication block according to an embodiment of the present invention.
- FIG. 17a, FIG. 17b, and FIG. 17c are flowcharts of three methods for receiving a fault indication block according to an embodiment of the present invention.
- FIG. 18a and FIG. 18b are two schematic diagrams of sending multiple OAM function blocks according to an embodiment of the present invention.
- FIG. 2 is a schematic diagram of a network architecture according to an embodiment of the present invention.
- the network architecture includes network devices (ProviCnnM Edge, PE) XE1 and XE3 deployed on the edge side, and a network device (ProviCnnM, P) XE2 deployed in an intermediate position.
- the client device is connected to the network device PE of the sending end, and the generated client service (data stream) is transmitted to the network device PE of the receiving end through the network device PE of the sending end and one or more network devices P. In some cases, there may be no network device P in the network.
- the embodiments of the present invention can be applied to networking such as X-Ethernet, Ethernet, FlexE, IP network, and OTN.
- the embodiments of the present invention may perform fault detection based on the encoded bit block, such as 64B/66B bit block, 8B/10B bit block, 256B/257B bit block, and the like. Embodiments of the present invention may also perform fault detection based on uncoded bit blocks.
- the network device PE may include a client signal adaptation unit (uAdpt) 301, a switching unit (for example, may be an L1.5 layer switching unit, or an XE switching unit, an X-Ethernet switching unit, 66).
- a bit block switching unit or the like) 303 a network signal adaptation unit (nAdpt for short) 304, and a monitoring unit (referred to as CnnM) 302 for implementing connection failure detection.
- the monitoring unit 302 can be disposed between the client signal adaptation unit 301 and the switching unit 303.
- the monitoring unit 302 can also be disposed between the switching unit 303 and the network signal adaptation unit 304.
- An interface connected to a client device by a network device is called a user-to-network interface (UNI).
- UNI user-to-network interface
- NNI network-to-network interface
- FIGS. 4a-4d are schematic structural diagrams of four network devices P according to an embodiment of the present invention.
- the network device P may include network signal adaptation units 401 and 405, and an exchange unit 403.
- any one or both of the monitoring units 402 and 404 may also be included.
- the monitoring unit may not be provided.
- An interface in which network device P is connected to other network devices is called an inter-network interface.
- the network devices PE and P in the embodiment of the present invention may be implemented in a packet bearer device, for example, an IP radio access network (IP RAN) device, a packet transport network (PTN) device, or the like.
- IP RAN IP radio access network
- PDN packet transport network
- . 5a and 5b are schematic structural diagrams of two types of packet bearer devices according to an embodiment of the present invention. As shown in FIG. 5a and FIG. 5b, the network device PE is used as an example.
- the packet bearer device may include two types of interface boards, one of which deploys a client-side interface chip, and the other of which has a network-side interface chip. .
- the packet bearer device may further include a master switch board that deploys the switch network chip.
- the client signal adaptation unit of Figures 3a-3d can be implemented by a client side interface chip.
- the network signal adaptation unit of Figures 3a-3d can be implemented by a network side interface chip.
- the switching unit of Figures 3a-3d can be implemented by a switching network chip.
- the monitoring unit in FIG. 3a and FIG. 3c may be disposed in the client side interface chip, or may be disposed in a separate field programmable gate array (FPGA) or a network processor (NP).
- the monitoring unit in FIG. 3b and FIG. 3d may be disposed in the network side interface chip, or may be disposed in a separate FPGA or NP.
- some functions of the monitoring unit are implemented by a client side interface chip or a network side interface chip, and some functions are implemented by a separate FPGA or NP.
- FIG. 6 is a schematic diagram of a logical structure of a monitoring unit according to an embodiment of the present invention. As shown in FIG. 6, the network device PE is taken as an example for description.
- the monitoring unit may include a detection block generation module, a detection block transmission module, a detection block reception module, and the like. The function of each module will be described in detail in the following embodiments.
- the switching unit may be an L1.5 layer switching unit whose switching granularity is exemplified by a 64B/66B bit block (or 66 bit block).
- the data flow of the interface between the networks is also described by taking a 66-bit block data stream as an example.
- XE1 receives the data stream from the client device through the UNI, and is received by XE3 after passing through XE2.
- the detection process can include the following steps:
- Step 1 XE1 generates a detection block.
- This step can be implemented by a monitoring unit in XE1, for example, by detecting a block generation module.
- the detection block carries connectivity detection information, which may also be referred to as a connectivity check block (CCB).
- the detection block may be an uncoded block of bits or an encoded block of bits (also referred to as a block of code).
- the detection block is described by taking a 66-bit block as an example, and the coding format thereof can be implemented by extending the 66-bit control block of the prior art.
- FIG. 7a, FIG. 7b and FIG. 7c are respectively schematic diagrams showing coding formats of three detection blocks according to an embodiment of the present invention.
- the Type field is set to 0x4B and the O code is set to 0x6.
- the detection block may include a flow identifier (identity, ID), and optionally, a transmission reference period (T).
- the flow identifier is used to indicate the connection identifier of the data stream of the XE1-XE2-XE3.
- the transmission reference period is used to indicate the transmission period of the detection block, or the transmission interval of two adjacent detection blocks.
- Figure 7b adds a stream identifier 0x023 and a transmit reference period 0x400 in the D1-D3 field.
- the flow identifier indicates that the connection identifier of the data stream of XE1-XE2-XE3 is 0x023, and the transmission reference period indicates that one detection block is inserted every 1024 bit blocks.
- the transmitting reference period is carried in the detecting block, so that the receiving end detects the detecting block according to the sending reference period.
- the sending reference period may also be directly configured on the receiving end, so that it does not need to be carried in the detecting block.
- a detection block may also carry only a part of the flow identifier, and the complete flow identifier needs to send n detection blocks to carry, as shown in FIG.
- FIG. 7c the complete flow identifier is 0x88...4523, and the first detection block sends 0x23, the first The two detection blocks send 0x45 until the last nth detection block sends 0x88.
- T can be sent.
- FIG. 7d, FIG. 7e and FIG. 7f are respectively schematic diagrams showing coding formats of three other detection blocks according to an embodiment of the present invention. As shown in Figure 7d, the Type field is set to 0x00.
- the detection block may include a flow identifier (identity, ID), and optionally, a transmission reference period (T).
- the flow identifier is used to indicate the connection identifier of the data stream of the XE1-XE2-XE3.
- the transmission reference period is used to indicate the transmission period of the detection block, or the transmission interval of two adjacent detection blocks.
- Figure 7e adds a stream identifier 0x023 and a transmit reference period 0x400 in the D1-D7 field. Then, the flow identifier indicates that the connection identifier of the data stream of XE1-XE2-XE3 is 0x023, and the transmission reference period indicates that one detection block is inserted every 1024 bit blocks.
- the transmitting reference period is carried in the detecting block, so that the receiving end detects the detecting block according to the sending reference period.
- the sending reference period may also be directly configured on the receiving end, so that it does not need to be carried in the detecting block.
- a detection block may also carry only a part of the flow identifier, and the complete flow identifier needs to be sent by multiple detection blocks in succession, as shown in FIG. 7f, the complete flow identifier is 0x88...4523, and the first detection block sends 0x23, the first The two detection blocks send 0x45 until the last nth detection block sends 0x88. Similarly, T can be sent.
- the detection block can also be used to implement other operations, administration and maintenance (OAM) functions of connection management, such as bit interleaved parity (BIP) and remote errors for error detection.
- OAM operations, administration and maintenance
- BIP bit interleaved parity
- REI Remote error indication
- CS customer signal indication
- SYNC synchronization
- AIS service level alarm indication signal
- APS protection switching protocol
- delay measurement delay measurement, DM
- the detection block can also carry a type identifier for distinguishing different functions.
- the type of the detection block may include a type of connectivity detection function, and may also include any one or more of the OAM function types described above. As shown in FIG.
- type 0x01 identifies the connection detection function, and 0 to 63 respectively identify the 0th to 63rd detection blocks, and each block carries only the 0th to 63rd parts of one flow identifier.
- the information carried by the other OAM functions needs to be carried by multiple detection blocks, for example, the time stamp carried by the unidirectional DM needs to send multiple detection block bearers in succession, each detection block only carries a part of the time stamp.
- An OAM information may be carried by one detection block or by at least two detection blocks.
- Step 2 XE1 sends a detection block.
- This step can be implemented by the monitoring unit of XE1, for example, by detecting the block sending module.
- XE1 receives the data stream from the client device through the UNI.
- XE1 may encode the received data stream or perform encoding format conversion.
- the data stream is an 8B/10B encoded data stream.
- XE1 performs encoding format conversion through the client signal adaptation unit, for example, converting 8B/10B encoding to 64B/66B encoding.
- 8 efficiently coded 1GE bit blocks (each bit block having a size of 8 bits) are sequentially formed into a 64-bit block, and then a 2-bit sync header is added to form one 66-bit block.
- a plurality of 66-bit blocks generate a 66-bit block data stream. While generating the 66-bit block data stream, XE1 starts counting according to the transmission reference period start counter, for example, the transmission reference period is "1024". When the counter count reaches 1024 bit blocks, the monitoring unit performs idle block (IDLE) detection. For example, when the counter count reaches 1029 bit blocks, the free block is detected, the detected free block is replaced with the detection block generated in step 1, and the transmission reference period of the detection block is updated to 1029. Then, reset the counter to 0.
- IDLE idle block
- the bit block data stream enters the switching unit and is sent to the network side through the network signal adaptation unit.
- FIG. 8 is a flowchart of a method for transmitting a detection block according to an embodiment of the present invention.
- the method for transmitting a detection block may include the steps of: starting a counter to count the number of bit blocks of the bit block data stream; and starting to detect the bit block data stream when the counter value reaches a preset transmission reference period.
- the free block in the bit block data stream is found, the free block is replaced with the detection block to be sent; at this time, if the counter value exceeds the preset transmission reference period, the transmission reference period T in the detection block is updated to The latest counter count value; the bit block data stream is sent.
- FIG. 9a, 9b, 9c, and 9d are schematic diagrams of a transmission detection block according to an embodiment of the present invention.
- the direction of the arrow in the figure is the transmission direction of the bitstream data stream, and the interval between the inserted two detection blocks is 1029 bit blocks, and the transmission reference period of the detection block is updated to 0x405.
- the sending reference period may be updated according to the actual sending period of the detecting block, that is, the sending reference period field is updated to 0x405. It is also possible not to update the transmission reference period, ie the transmit reference period field is still set to 0x400.
- the receiving network device detects and receives the detection block according to a preset period.
- the detection block sent by FIG. 9a and FIG. 9b carries a part of the content of the flow identifier, as shown in FIG. 9d, the type is 0x01, the identifier is a connection detection block, and 63 is the block. The content of the 63rd part of the stream identifier is carried.
- FIG. 10 is a schematic diagram of a logical structure of a detection block sending module according to an embodiment of the present invention.
- the start counter counts the number of bit blocks.
- the bit block data stream is sent to the buffer, and the detection block generated by the detection block generator is inserted into the bit block data stream according to a preset transmission policy.
- the preset sending policy may include sending a reference period and the like.
- the default sending policy can be configured by the network management or controller.
- FIG. 11 is a schematic diagram of a format of a free block according to an embodiment of the present invention.
- the free block may be a 66-bit block including a 2-bit sync header "10", a type field "0x1E", and 8 "/I/(0x00)".
- the method of detecting a free block may include matching the sync header "10" and the type field "0x1E", or matching all bits of the free block. In this example, multiple matching methods are used to find the free block, and the bandwidth resource that occupies the free block is transmitted, which has no impact on the service bandwidth.
- the method for detecting block transmission by replacing a free block in the embodiment of the present invention is also applicable to transmitting a bit block having other OAM functions, such as bit interleaving parity (BIP) for bit error detection, and remote bit error indication.
- BIP bit interleaving parity
- REI bit interleaving parity
- CS Customer Signal Indication
- SYNC Synchronization
- AIS Service Layer Alarm Indication
- APS Protection Switching Protocol
- DM Delay Measurement
- the detection block may also carry a type identifier for distinguishing different functions. As shown in FIG. 9c, the TYPE identifies the OAM type, for example, 0x01 indicates that the detection block is a connection detection type, that is, different types. The type of the detection block is different.
- Step 3 XE2 performs rate adaptation.
- XE2 receives the bit block data stream from XE1 through the network signal adaptation unit. If the receiving clock frequency is slower than the system clock of XE2, the network signal adaptation unit of XE2 needs to insert one or more free blocks in the bit block data stream; if the receiving clock frequency is faster than the system clock of XE2, the network signal of XE2 The adaptation unit needs to delete one or more free blocks in the bit block data stream to accommodate transmission speed problems due to unsynchronized clock frequencies. After the network signal adaptation unit of XE2 performs rate adaptation, the bit block data stream is transmitted to the downstream network side through the switching unit. Optionally, if the receiving clock frequency is adapted to the system clock of the XE2, the XE2 may not need to perform rate adaptation.
- FIG. 12 is a schematic diagram of rate adaptation according to an embodiment of the present invention. As shown in FIG. 12, the direction of the arrow in the figure is the transmission direction of the bit stream data stream, and the bit block data stream includes a start block "S", an end block "T”, a data block "D", and a free block "I". For example, a free block can be inserted or deleted between a start block and an end block.
- Step 4 XE3 receives the detection block.
- This step can be implemented by a monitoring unit in XE3, for example, by detecting a block receiving module.
- the network device XE3 located on the edge side receives the bit block data stream from the XE2
- the bit block data stream passes through the network side adaptation unit and arrives at the monitoring unit.
- the monitoring unit runs the detection block discovery process: the detection block is detected according to the characteristics of the detection block, and the stream identifier 0x023 and the transmission reference period 0x405 are extracted. First, the flow identifier matching is performed.
- the transmission reference period (0x405) is extracted, and the timeout period of the counter is set as the transmission reference period.
- the timeout period is The time when 1029 bit blocks were received.
- a counter may also be set, and the timeout period is greater than the sending reference period.
- the timeout period is the time when 3*1029 bit blocks are received.
- FIG. 13 is a flowchart of a method for receiving a detection block according to an embodiment of the present invention.
- the method of receiving a detection block may include the steps of: detecting a bit block data stream, and determining whether a detection block is received according to a characteristic of the detection block. After determining that the detection block is received, a. If the flow identifier carried in the detection block is inconsistent with the expected flow identifier, the local connection misconnection alarm flag is updated. And, a fault alarm indication is generated, for example, an RDI is generated. b. If the flow identifier carried in the detection block is consistent with the expected flow identifier, the transmission reference period is extracted.
- FIG. 13b is a flowchart of another method for receiving a detection block according to an embodiment of the present invention. As shown in FIG.
- the difference from FIG. 13a is that only one counter can be set, and the timeout period can be 1 times the transmission reference period or any other length of time.
- the block type of the bit block data stream is detected when the counter starts counting. When the counter counts to the preset timeout period, if no valid bit block is detected, the connection connectivity loss alarm is set. Set two counters with different timeout periods. The detection block is not received from time 0 to long counter (counter 2), and no valid block is detected from the short counter (counter 1) timeout to the long counter timeout period. It is accurately determined that the connection connectivity is lost.
- the connection failure decision is accurate and reliable. It can also be flexibly simplified, and only the counter 2 is set, further reducing the implementation difficulty.
- the sending reference period can be directly configured in the network device, so that it does not need to be carried in the detecting block.
- the XE1 configuration sends a reference period of 0x400
- the XE3 configuration receives a reference period of 0x400.
- the timeout period of the counters 1, 2 can be set according to the configured reception reference period 0x400.
- the counting period of the counter 1 may be N times the transmission reference period T.
- N is set to 1, and may be 1.5 or other user-defined values.
- the counter 2 may be M times the counting period of the counter 1, for example, M is set to 3, and may be a user-defined value.
- only one counter such as the counter 2 may be set, and after the counter 2 times out, it is determined whether a valid bit block is received, thereby performing a connection failure decision.
- the counter 2 times out it may not determine whether a valid bit block is received, but directly connects the connectivity loss alarm.
- each detection block only carries a part of the flow identifier.
- the receiver XE3 needs to receive multiple times. After detecting the block, a complete stream identifier can be recovered, and then it is determined whether a connection error has occurred.
- the connection connection is not detected by the default connection, and the connectivity of the connection is directly detected, as shown in Figure 13c.
- the difference from Fig. 13c is that only one counter can be set, and the timeout period can be 1 times the transmission reference period or any other length of time.
- FIG. 14 is a schematic diagram of an encoding format of a detection block according to an embodiment of the present invention.
- the field A+B+O can be matched, the field A+B+O+C can be matched, or other field combinations can be matched to identify the detection block.
- the block type of the above-mentioned detected bit block data stream may be a detection sync header and a type field, and the like.
- the type identifier field may also be matched, and the type of the function indicated by the detection block is identified by the type identifier field.
- the matching mode is A+B, as shown in FIG. 14b.
- the method for receiving a detection block in the embodiment of the present invention is also applicable to a bit block that receives other OAM functions, such as bit interleaving parity (BIP), remote error indication (REI), and client for error detection.
- BIP bit interleaving parity
- REI remote error indication
- CS Signal indication
- SYNC synchronization
- AIS service layer alarm indication
- APS protection switching protocol
- DM delay measurement
- FIG. 15 is a schematic diagram of a network architecture according to an embodiment of the present invention.
- XE1 generates and sends a detection block.
- the XE3 enters the detection block reception, and the reception method of FIG. 13a is taken as an example for description.
- the counter 1 times out it begins to detect the block type of the bit block data stream until the counter 2 times out. If counter 1 times out until the desired detection block is received during counter 2 timeout, both counters are reset. If the counter 1 times out until the desired detection block has not been received during the counter 2 timeout period, the counter 1 timeout moment begins to detect the block type of the bit block data stream.
- the XE3 sets the LOC alarm and notifies the sender XE1 of the fault condition by sending back a fault alarm indication (for example, a fault alarm indication block).
- the fault alert indication block may be an RDI bit block, for example, may include a flow identification, a remote defect indication (RDI), and the like.
- the RDI bit block may further include a type identifier, where the RDI bit block has a fault alarm indication function.
- the above embodiment may not detect a valid block, and the specific processing steps are simplified as follows: as shown in FIG. 15, if the switching unit of XE2 fails.
- XE1 generates and sends a detection block.
- the XE3 enters the detection block reception, and the reception method of FIG. 13d is taken as an example for description.
- the LOC alarm is set and the return RDI is generated.
- N such as 5 expected correct detection blocks are continuously received
- the LOC alarm is cleared and the return of the RDI is stopped.
- the XE3 sets the LOC alarm and notifies the sender XE1 of the fault condition by sending back a fault alarm indication (for example, a fault alarm indication block).
- the fault alert indication block may be an RDI bit block, for example, may include a flow identifier, a remote defect indication (RDI), and the like.
- the RDI bit block may further include a type identifier, where the RDI bit block has a fault alarm indication function.
- XE1 can also receive the detection block generated by XE3.
- the monitoring unit of XE1 receives the detection block in a manner similar to step 4, and performs connection failure detection.
- the detected fault type may include any one or more of connection disconnection, connection connectivity loss, and remote defect.
- the network device can pass the fault condition to the local automatic protection switching (APS) function unit, implement the corresponding self-healing strategy, or pass to a software-defined networking (SDN) controller to implement the corresponding connection recovery strategy. Or pass to the network management to perform the corresponding alarm management and early warning functions.
- APS local automatic protection switching
- SDN software-defined networking
- FIG. 16 is a flowchart of a method for sending a fault indication block according to an embodiment of the present invention.
- the method for transmitting the fault indication block is similar to the method for transmitting the detection block, and may include the following steps: when the receiving end detects the fault (for example, after the preset reference period is exceeded, the detection block is not received, It can be determined that the connection is interrupted at this time.
- the fault indication block needs to be sent, the bit block data stream is started to be detected.
- the free block in the bit block data stream is found, the free block is replaced with the fault indication block; the bit block data stream is transmitted.
- the flow identifier needs to be carried, a part of the flow identifier or the flow identifier is sent in the fault indication block.
- FIG. 17 is a flowchart of a method for receiving a fault indication block according to an embodiment of the present invention.
- the method for receiving a fault indication block is similar to the method for receiving a detection block, and may include the steps of: detecting a received bit block data stream, and discovering a fault indication block, when the fault indication block carries a stream identifier and an expected When the flow identifiers are inconsistent, the fault indication block is discarded.
- the local remote defect indication (RDI) flag is updated according to the remote defect indication field in the fault indication block.
- the fault indication block does not carry the flow identifier, as shown in FIG.
- the method for receiving the fault indication block is similar to the method for receiving the detection block, and may include the following steps: detecting the received bit block data stream, and finding the fault indication block, according to The remote defect indication field in the fault indication block updates the local remote defect indication (RDI) flag.
- the method for receiving the fault indication block is similar to the method for receiving the detection block, and may include the following steps: detecting the received bit block data stream, and finding the fault indication block, When the flow identifier carried by the fault indication block is only part of the flow identifier, it waits to receive the next fault indication block, and only recovers the complete flow identifier from each part of the collected flow identifier.
- the fault indication block is discarded, and the detection starts again.
- the local remote defect indication (RDI) flag is updated according to the remote defect indication field in the fault indication block.
- OAM function blocks show an encoding format of a 66-bit block.
- OAM function block When the OAM function block is a 66-bit block, it may have an encoding format as in Table 1.
- the coding format of the D1 to D3 fields of the OAM function block may include: Type: 6 bits, which identifies different OAM functions or combinations of several OAM functions; Value: 14 bits, message content of one or several types of OAM; CRC: 4bit, CRC-4 or CRC-8 check is used for the entire 60bit (except CRC 4bit).
- FIG. 18a is a schematic diagram of sending multiple OAM function blocks according to an embodiment of the present invention.
- different OAM functions can be represented by the Data field, such as error detection (BIP), remote error indication (REI), client signal indication (CS), synchronization (SYNC), service layer alarm.
- OAM functions such as indication (AIS), protection switching protocol (APS), and delay measurement (DM).
- the OAM function block may carry a type identifier (such as the Type field of D1 in Table 1 or the type field of the table in the lower right corner of FIG. 18a) for distinguishing different OAM function blocks.
- the detection block in the above embodiment may also carry the type identifier.
- overhead (OH) 1 is an OAM that is immediately returned on demand, such as RDI, REI, DM, APS; periodic OH2, periodic OH3 are respectively transmitted in respective cycles, for example OAM functions such as CCB, BIP, and CS.
- the Value can be flexibly defined and carried by multiple OAM blocks, that is, each of the OAM function blocks only carries a part of the function information.
- the continuity check/Verification (CC/CV for short)
- the stream identifier requires 64 bytes
- the 14-bit Value of each detection block is divided into two parts, Value[0,5] Identify the sequence number, Value[6,13] identifies one of the 64 bytes of the stream identifier, as shown in Figure 7g;
- D1[6:7] is 0x00, 0x11, each time the 12 bits of the timestamp are transmitted, a total of 8 frames are transmitted.
- the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
- software it may be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions.
- the computer program instructions When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part.
- the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
- the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
- the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请提供一种检测块发送和接收的方法、网络设备和系统,其中,检测块发送的方法包括:网络设备获取原始比特块数据流;生成至少一个检测块,将所述至少一个检测块插入所述原始比特块数据流中的至少一个空闲块的位置;发送包含所述至少一个检测块的比特块数据流。本申请中,通过占用比特块数据流中空闲块的带宽资源进行检测块发送,从而解决了业务的比特块丢失的问题。The present application provides a method, network device, and system for detecting block transmission and reception, wherein a method for detecting a block transmission includes: a network device acquiring an original bit block data stream; generating at least one detection block, inserting the at least one detection block a location of at least one free block in the original bit block data stream; transmitting a bit block data stream comprising the at least one detected block. In the present application, the detection block transmission is performed by occupying the bandwidth resource of the free block in the bit block data stream, thereby solving the problem of loss of the bit block of the service.
Description
本申请涉及通信领域,尤其涉及一种检测块发送和接收的方法、网络设备和系统。The present application relates to the field of communications, and in particular, to a method, network device, and system for detecting block transmission and reception.
当前灵活以太网实现协议(Flex Ethernet implementation agreement 1.0,FlexE IA 1.0)接口技术已经在光互联论坛(optical internetworking forum,OIF)标准化。灵活以太网(Flex Ethernet,FlexE)接口技术可以应用于数据中心设备互联等,通过绑定n个100G物理层装置(physical layer device,PHY)来传送多路不同速率的FlexE客户业务。后续,FlexE还将定义交换技术,L1.5层交换技术,也称为X-Ethernet交换技术或X-E交换技术。L1.5层交换技术(即X-Ethernet交换技术或X-E交换技术),是一种基于以太网(Ethernet)物理层的比特块(例如,64B/66B比特块)交换技术,具备确定性超低时延的技术特征。The current Flex Ethernet implementation agreement 1.0 (FlexE IA 1.0) interface technology has been standardized in the optical internetworking forum (OIF). Flexible Ethernet (FlexE) interface technology can be applied to data center equipment interconnection, etc., by binding n 100G physical layer devices (PHYs) to transmit multiple FlexE client services of different speeds. Subsequently, FlexE will also define switching technology, L1.5 layer switching technology, also known as X-Ethernet switching technology or X-E switching technology. L1.5 layer switching technology (ie, X-Ethernet switching technology or XE switching technology) is a bit block (for example, 64B/66B bit block) switching technology based on Ethernet (Ethernet) physical layer, with deterministic ultra-low The technical characteristics of the delay.
图1是现有技术采用L1.5层交换技术的组网架构示意图,如图1所示,虚线路径为端到端的业务转发路径。现有技术中,采用固定周期插入检测块的方式,例如每隔N个比特块插入一个检测块,L1.5层端到端的故障检测。首先,在上游的客户信号适配单元插入一个检测块,下游的网络信号适配单元也同时插入一个开销块,两个比特块的插入会导致网络信号适配单元中水线的上升,需要进行空闲块的删除。采用现有技术的技术方案进行检测块的插入,会引起下游的水线波动,从而触发空闲块的删除来降低插入检测块引起的水线波动。一旦处理线较长,或者处理环节多,水线就会溢出,导致业务的比特块丢失。FIG. 1 is a schematic diagram of a networking architecture of the prior art adopting the L1.5 layer switching technology. As shown in FIG. 1 , the dotted path is an end-to-end service forwarding path. In the prior art, a method of inserting a detection block in a fixed period is used, for example, a detection block is inserted every N bit blocks, and an L1.5 layer end-to-end failure detection is performed. First, the upstream client signal adaptation unit inserts a detection block, and the downstream network signal adaptation unit also inserts an overhead block. The insertion of the two bit blocks causes the watermark of the network signal adaptation unit to rise, which needs to be performed. Deletion of free blocks. The insertion of the detection block by the prior art technical solution may cause the downstream waterline fluctuation, thereby triggering the deletion of the free block to reduce the waterline fluctuation caused by the insertion of the detection block. Once the processing line is long, or there are many processing links, the water line will overflow, resulting in the loss of the bit block of the service.
发明内容Summary of the invention
有鉴于此,本申请提供一种检测块发送和接收的方法、网络设备和系统,可以解决检测发送的过程中业务的比特块丢失的问题。In view of this, the present application provides a method, a network device, and a system for detecting block transmission and reception, which can solve the problem of detecting a bit block loss of a service during transmission.
第一方面,本申请提供一种检测块发送的方法,包括:网络设备获取原始比特块数据流;生成至少一个检测块,将所述至少一个检测块插入所述原始比特块数据流中的至少一个空闲块的位置;发送包含所述至少一个检测块的比特块数据流。In a first aspect, the application provides a method for detecting block transmission, comprising: acquiring, by a network device, a raw bit block data stream; generating at least one detection block, inserting the at least one detection block into at least the original bit block data stream a location of a free block; transmitting a block of bit data stream comprising the at least one detected block.
本申请中,通过占用比特块数据流中空闲块的带宽资源进行检测块发送,从而解决了业务的比特块丢失的问题。In the present application, the detection block transmission is performed by occupying the bandwidth resource of the free block in the bit block data stream, thereby solving the problem of loss of the bit block of the service.
一种可能的实现方式中,所述将所述至少一个检测块插入所述原始比特块数据流中的至少一个空闲块的位置,包括:将X个检测块插入所述原始比特块数据流中的X个空闲块的位置,X为大于或等于1的正整数。可选的,根据电气及电子工程师学会(Institute of Electrical and Electronics Engineers,IEEE)802.3标准,检测块不插入到报文中间,而是插入到两个报文中间,保持了报文的完整性。In a possible implementation manner, the inserting the at least one detection block into a location of the at least one free block in the original bit block data stream comprises: inserting X detection blocks into the original bit block data stream The position of the X free blocks, X is a positive integer greater than or equal to 1. Optionally, according to the Institute of Electrical and Electronics Engineers (IEEE) 802.3 standard, the detection block is not inserted into the middle of the message, but inserted into the middle of the two messages to maintain the integrity of the message.
本申请中,插入的检测块数量和被替换的空闲块的数量相等,检测块完全占用空闲块的带宽资源进行发送,对业务的带宽没有影响,从而解决了业务的比特块丢失的问题。In the present application, the number of inserted detection blocks is equal to the number of free blocks to be replaced, and the detection block completely occupies the bandwidth resources of the free block for transmission, which has no impact on the bandwidth of the service, thereby solving the problem of loss of the bit block of the service.
一种可能的实现方式中,所述至少一个检测块携带流标识,所述流标识用于指示所述原始比特块数据流的连接标识,ITU-T G.709等标准称标识这种连接的信息为踪迹跟踪标识(trail trace identifier,简称TTI,本文流标识与TTI是一个意思。为描述简洁,本文统一称流标识。此外,该流标识可以根据用户需求定义所需要的长度,当长度较长时,可以通过先后发送的多个检测块携带。也就是说,几个检测块分别携带流标识的一部分,接收方通过接收多个检测块,然后将多个部分合并为一个完整的标识。In a possible implementation manner, the at least one detection block carries a flow identifier, where the flow identifier is used to indicate a connection identifier of the original bit block data stream, and a standard such as ITU-T G.709 is used to identify the connection. The information is a trail trace identifier (TTI, which is a meaning of the stream identifier and TTI. For the sake of brevity, this article refers to the stream identifier. In addition, the stream identifier can be defined according to user requirements, when the length is shorter. For a long time, it can be carried by multiple detection blocks sent in succession. That is, several detection blocks respectively carry a part of the flow identification, and the receiver receives multiple detection blocks, and then combines the multiple parts into one complete identification.
本申请中,在检测块中携带流标识,可以使接收端根据流标识判断是否发生连接错连,也称踪迹跟踪标识TTI失配(简称TIM),本文所述的流标识错连即TIM。当流标识需要先后 发送的多个检测块携带时,接收方只有收到所述多个检测块,合并为完整的流标识后,才能判断是否发生错连。In the present application, carrying the flow identifier in the detection block may enable the receiving end to determine whether a connection misconnection occurs according to the flow identifier, and is also referred to as a trace tracking identifier TTI mismatch (TIM), and the flow identifier described herein is a TIM. When the flow identifier needs to be carried by multiple detection blocks that are sent in sequence, the receiver can only determine whether a misconnection occurs after receiving the multiple detection blocks and combining them into a complete flow identifier.
一种可能的实现方式中,所述至少一个检测块还携带类型标识,该类型标识可以指示该检测块具备的功能类型,例如,该检测块可以用于连接性检测。该检测块还可以用于其他OAM功能检测,如比特间插奇偶校验(BIP)、远端误码指示(REI)、客户信号指示(CS)、同步(SYNC)、服务层告警指示(AIS)、保护倒换协议(APS)、时延测量(DM)等。In a possible implementation manner, the at least one detection block further carries a type identifier, and the type identifier may indicate a type of function that the detection block has, for example, the detection block may be used for connectivity detection. The detection block can also be used for other OAM function detection, such as bit interleaved parity (BIP), far end error indication (REI), client signal indication (CS), synchronization (SYNC), service layer alarm indication (AIS). ), Protection Switching Protocol (APS), Time Delay Measurement (DM), etc.
一种可能的实现方式中,所述至少一个检测块可以灵活选择是否携带预设的发送参考周期,所述预设的发送参考周期用于指示所述至少一个检测块的发送周期。In a possible implementation manner, the at least one detection block may flexibly select whether to carry a preset transmission reference period, where the preset transmission reference period is used to indicate a transmission period of the at least one detection block.
一种可能的实现方式中,所述至少一个检测块的发送周期大于或等于所述至少一个检测块携带的预设的发送参考周期。In a possible implementation, the sending period of the at least one detecting block is greater than or equal to a preset sending reference period carried by the at least one detecting block.
本申请中,检测块的发送周期可以在一定的范围内浮动,为非固定周期。In the present application, the transmission period of the detection block may float within a certain range, which is a non-fixed period.
一种可能的实现方式中,当所述至少一个检测块的发送周期大于所述至少一个检测块携带的预设的发送参考周期时,所述方法还包括:将所述至少一个检测块的预设的发送参考周期更新为所述至少一个检测块的发送周期。In a possible implementation manner, when a sending period of the at least one detecting block is greater than a preset sending reference period carried by the at least one detecting block, the method further includes: pre-processing the at least one detecting block The transmission reference period is updated to the transmission period of the at least one detection block.
本申请中,预设的发送参考周期可以根据检测块的实际发送周期而动态改变。In the present application, the preset transmission reference period may be dynamically changed according to the actual transmission period of the detection block.
一种可能的实现方式中,所述至少一个检测块为M/N比特块。检测块可以是经过编码的比特块,例如,64B/66B比特块、8B/10B比特块、256B/257B比特块等,也可以是未经过编码的比特块。In a possible implementation manner, the at least one detection block is an M/N bit block. The detection block may be an encoded bit block, for example, a 64B/66B bit block, an 8B/10B bit block, a 256B/257B bit block, or the like, or may be an uncoded bit block.
一种可能的实现方式中,在所述比特块数据流中添加和/或删除空闲块,使得添加和/或删除空闲块后的比特块数据流的速率和所述网络设备的端口速率相适配。例如,可以在原始比特块数据流中添加和/或删除空闲块,或者,在插入检测块后的比特块数据流中添加和/或删除空闲块。In a possible implementation, the free block is added and/or deleted in the bit block data stream, so that the rate of adding and/or deleting the bit block data stream after the free block is compatible with the port rate of the network device Match. For example, a free block may be added and/or deleted in the original bit block data stream, or a free block may be added and/or deleted in the bit block data stream after the insertion of the detection block.
第二方面,本申请提供一种业务接收的方法,包括:网络设备接收包含至少一个检测块的比特块数据流;识别所述至少一个检测块,将所述至少一个检测块替换为至少一个空闲块;发送替换所述至少一个空闲块后的比特块数据流。In a second aspect, the application provides a method for receiving a service, comprising: receiving, by a network device, a bit block data stream including at least one detection block; identifying the at least one detection block, replacing the at least one detection block with at least one idle Block; transmitting a bit block data stream after replacing the at least one free block.
本申请中,通过占用比特块数据流中空闲块的带宽资源进行检测块接收,从而解决了业务的比特块丢失的问题。In the present application, the detection block reception is performed by occupying the bandwidth resource of the free block in the bit block data stream, thereby solving the problem of loss of the bit block of the service.
一种可能的实现方式中,所述将所述至少一个检测块替换为至少一个空闲块,包括:将X个检测块替换为X个空闲块,X为大于或等于1的正整数。In a possible implementation manner, the replacing the at least one detection block with the at least one free block comprises: replacing X detection blocks with X free blocks, where X is a positive integer greater than or equal to 1.
本申请中,接收到的检测块数量和替换的空闲块的数量相等,检测块完全占用空闲块的带宽资源进行接收,对业务的带宽没有影响,从而解决了业务的比特块丢失的问题。In the present application, the number of received detection blocks is equal to the number of replacement free blocks, and the detection block completely occupies the bandwidth resources of the free block for reception, and has no impact on the bandwidth of the service, thereby solving the problem of loss of the bit block of the service.
一种可能的实现方式中,所述检测块携带流标识,所述流标识用于指示所述比特块数据流的连接标识,所述方法还包括:所述网络设备根据所述流标识进行故障检测。In a possible implementation manner, the detecting block carries a flow identifier, where the flow identifier is used to indicate a connection identifier of the bit block data stream, and the method further includes: the network device fails according to the flow identifier Detection.
本申请中,在检测块中携带流标识,接收端的网络设备可以根据流标识判断是否发生连接错连,可以快速有效地检测到连接故障。当流标识需要先后发送的多个检测块携带时,接收方只有收到所述多个检测块,合并为完整的流标识后,才能判断是否发生错连。In this application, the flow identifier is carried in the detection block, and the network device at the receiving end can determine whether the connection is disconnected according to the flow identifier, and can quickly and effectively detect the connection failure. When the flow identifier needs to be carried by multiple detection blocks that are sent in succession, the receiver can only determine whether a misconnection occurs after receiving the multiple detection blocks and combining them into a complete flow identifier.
一种可能的实现方式中,所述至少一个检测块还携带类型标识,该类型标识可以指示该检测块具备的功能类型,例如,该检测块可以用于连接性检测。该检测块还可以用于其他OAM功能检测,如比特间插奇偶校验(BIP)、远端误码指示(REI)、客户信号指示(CS)、同步(SYNC)、服务层告警指示(AIS)、保护倒换协议(APS)、时延测量(DM)等。当检测块中携带类型标识时,接收端的网络设备还可以根据类型标识识别检测块的功能类型。In a possible implementation manner, the at least one detection block further carries a type identifier, and the type identifier may indicate a type of function that the detection block has, for example, the detection block may be used for connectivity detection. The detection block can also be used for other OAM function detection, such as bit interleaved parity (BIP), far end error indication (REI), client signal indication (CS), synchronization (SYNC), service layer alarm indication (AIS). ), Protection Switching Protocol (APS), Time Delay Measurement (DM), etc. When the detection block carries the type identifier, the network device at the receiving end can also identify the function type of the detection block according to the type identifier.
一种可能的实现方式中,所述检测块携带预设的发送参考周期,所述方法还包括:所述网络设备根据所述发送参考周期识别所述至少一个检测块。In a possible implementation manner, the detecting block carries a preset sending reference period, and the method further includes: the network device identifying the at least one detecting block according to the sending reference period.
在检测块中携带预设的发送参考周期,有助于接收端的网络设备快速地定位到检测块。当检测块中不携带预设的发送参考周期时,接收端网络设备根据本地预设的周期快速定位到检测块。Carrying a preset transmission reference period in the detection block helps the network device at the receiving end to quickly locate the detection block. When the detection block does not carry the preset transmission reference period, the receiving network device quickly locates the detection block according to the preset period.
一种可能的实现方式中,所述至少一个检测块为M/N比特块。检测块可以是经过编码的比特块,例如,64B/66B比特块、8B/10B比特块、256B/257B比特块等,也可以是未经过编码的比特块。In a possible implementation manner, the at least one detection block is an M/N bit block. The detection block may be an encoded bit block, for example, a 64B/66B bit block, an 8B/10B bit block, a 256B/257B bit block, or the like, or may be an uncoded bit block.
第三方面,本申请提供一种网络设备,该网络设备用于实现第一方面或第一方面任意一种可能的实现方式的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, the present application provides a network device, which is used to implement the functions of the first aspect or any one of the possible implementations of the first aspect. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
第四方面,本申请提供一种网络设备,该网络设备用于实现第二方面或第二方面任意一种可能的实现方式的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a fourth aspect, the application provides a network device, which is used to implement the functions of any of the possible implementations of the second aspect or the second aspect. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
第五方面,本发明实施例提供一种网络系统,包括第三方面的网络设备,以及第四方面或第四方面的网络设备。In a fifth aspect, an embodiment of the present invention provides a network system, including the network device of the third aspect, and the network device of the fourth aspect or the fourth aspect.
本申请的又一方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Yet another aspect of the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the methods described in the above aspects.
本申请的又一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Yet another aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the methods described in the various aspects above.
为了更清楚地说明本发明的实施例或现有技术中的技术方案,下面将对描述背景技术和实施例时所使用的附图作简单的介绍。In order to more clearly illustrate the embodiments of the present invention or the prior art, the drawings used in the description of the background and the embodiments will be briefly described below.
图1是现有技术采用L1.5层交换技术的组网架构示意图;1 is a schematic diagram of a networking architecture of a prior art using an L1.5 layer switching technology;
图2是本发明实施例提供的一种网络架构示意图;2 is a schematic diagram of a network architecture according to an embodiment of the present invention;
图3a-3d分别是本发明实施例提供的四种网络设备PE的结构示意图;3a-3d are schematic structural diagrams of four network devices PE according to an embodiment of the present invention;
图4a-4d分别是本发明实施例提供的四种网络设备P的结构示意图;4a-4d are schematic structural diagrams of four network devices P according to an embodiment of the present invention;
图5a、图5b分别是本发明实施例提供的两种分组承载设备的结构示意图;5a and FIG. 5b are schematic structural diagrams of two types of packet bearer devices according to an embodiment of the present invention;
图6为本发明实施例提供的一种监视单元的逻辑结构示意图;FIG. 6 is a schematic diagram of a logical structure of a monitoring unit according to an embodiment of the present invention;
图7a、图7b、图7c、图7d、图7e、图7f和图7g分别为本发明实施例提供的检测块的编码格式示意图;7a, 7b, 7c, 7d, 7e, 7f, and 7g are respectively schematic diagrams of coding formats of detection blocks according to an embodiment of the present invention;
图8为本发明实施例提供的一种发送检测块的方法流程图;FIG. 8 is a flowchart of a method for sending a detection block according to an embodiment of the present invention;
图9a、图9b、图9c和图9d为本发明实施例提供的四种发送检测块的示意图;9a, 9b, 9c, and 9d are schematic diagrams of four transmission detection blocks according to an embodiment of the present invention;
图10是本发明实施例提供的一种检测块发送模块的逻辑结构示意图;10 is a schematic diagram of a logical structure of a detection block sending module according to an embodiment of the present invention;
图11为本发明实施例提供的一种空闲块的格式示意图;FIG. 11 is a schematic diagram of a format of a free block according to an embodiment of the present disclosure;
图12为本发明实施例提供的一种速率适配的示意图;FIG. 12 is a schematic diagram of rate adaptation according to an embodiment of the present invention;
图13a、图13b、图13c、图13d分别为本发明实施例提供的接收检测块的方法流程图;13a, 13b, 13c, and 13d are flowcharts of a method for receiving a detection block according to an embodiment of the present invention;
图14a,图14b为本发明实施例提供的一种检测块的两种编码格式示意图;FIG. 14 is a schematic diagram of two encoding formats of a detection block according to an embodiment of the present invention;
图15为本发明实施例提供的一种网络架构示意图;FIG. 15 is a schematic diagram of a network architecture according to an embodiment of the present invention;
图16为本发明实施例提供的一种发送故障指示块的方法流程图;FIG. 16 is a flowchart of a method for sending a fault indication block according to an embodiment of the present invention;
图17a,图17b,图17c为本发明实施例提供的三种种接收故障指示块的方法流程图;17a, FIG. 17b, and FIG. 17c are flowcharts of three methods for receiving a fault indication block according to an embodiment of the present invention;
图18a、图18b为本发明实施例提供的发送多种OAM功能块的两种示意图。FIG. 18a and FIG. 18b are two schematic diagrams of sending multiple OAM function blocks according to an embodiment of the present invention.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.
图2是本发明实施例提供的一种网络架构示意图。如图2所示,该网络架构中包括部署在边缘侧的网络设备(ProviCnnM Edge,PE)XE1、XE3,以及部署在中间位置的网络设备(ProviCnnM,P)XE2。其中,客户设备与发送端的网络设备PE相连,将产生的客户业务(数据流)通过发送端的网络设备PE、一个或多个网络设备P,传输给接收端的网络设备PE。在某些情况下,网络中也可以没有网络设备P。本发明实施例可以应用于X-Ethernet、以太网、FlexE、IP网络、OTN等组网中。本发明实施例可以基于编码后的比特块进行故障检测,例如64B/66B比特块、8B/10B比特块、256B/257B比特块等。本发明实施例也可以基于未编码的比特块进行故障检测。FIG. 2 is a schematic diagram of a network architecture according to an embodiment of the present invention. As shown in FIG. 2, the network architecture includes network devices (ProviCnnM Edge, PE) XE1 and XE3 deployed on the edge side, and a network device (ProviCnnM, P) XE2 deployed in an intermediate position. The client device is connected to the network device PE of the sending end, and the generated client service (data stream) is transmitted to the network device PE of the receiving end through the network device PE of the sending end and one or more network devices P. In some cases, there may be no network device P in the network. The embodiments of the present invention can be applied to networking such as X-Ethernet, Ethernet, FlexE, IP network, and OTN. The embodiments of the present invention may perform fault detection based on the encoded bit block, such as 64B/66B bit block, 8B/10B bit block, 256B/257B bit block, and the like. Embodiments of the present invention may also perform fault detection based on uncoded bit blocks.
图3a-3d分别是本发明实施例提供的四种网络设备PE的结构示意图。如图3a-3d所示,网络设备PE可以包括客户信号适配单元(简称uAdpt)301、交换单元(例如,可以为L1.5层交换单元,或者X-E交换单元、X-Ethernet交换单元、66比特块交换单元等)303、网络信号适配单元(简称nAdpt)304、以及用于实施连接故障检测的监视单元(简称CnnM)302。其中,如图3a、3c所示,监视单元302可以设置在客户信号适配单元301和交换单元303之间。如图3b、3d所示,监视单元302也可以设置在交换单元303和网络信号适配单元304之间。网络设备PE与客户设备相连的接口称为用户网络接口(user-to-network interface,UNI),与其他网络设备相连的接口称为网络间接口(network-to-network interface,NNI)。3a-3d are schematic structural diagrams of four network devices PE according to an embodiment of the present invention. As shown in FIG. 3a-3d, the network device PE may include a client signal adaptation unit (uAdpt) 301, a switching unit (for example, may be an L1.5 layer switching unit, or an XE switching unit, an X-Ethernet switching unit, 66). A bit block switching unit or the like) 303, a network signal adaptation unit (nAdpt for short) 304, and a monitoring unit (referred to as CnnM) 302 for implementing connection failure detection. Therein, as shown in FIGS. 3a and 3c, the
图4a-4d分别是本发明实施例提供的四种网络设备P的结构示意图。如图4a-4d所示,网络设备P可以包括网络信号适配单元401和405、交换单元403。如图4a、4c、4d所示,还可以包括监视单元402和404中的任意一个或两个。可选的,如图4b所示,也可以不设置监视单元。网络设备P与其他网络设备相连的接口称为网络间接口。4a-4d are schematic structural diagrams of four network devices P according to an embodiment of the present invention. As shown in Figures 4a-4d, the network device P may include network
本发明实施例中的网络设备PE、P可以在分组承载设备中实现,例如,IP化无线接入网(IP radio access network,IP RAN)设备、分组传送网(packet transport network,PTN)设备等。图5a和图5b分别是本发明实施例提供的两种分组承载设备的结构示意图。如图5a、5b所示,以网络设备PE为例进行说明,分组承载设备可以包括两种接口板,其中一种接口板上部署客户侧接口芯片,另一种接口板上部署网络侧接口芯片。分组承载设备还可以包括部署交换网芯片的主控交换板。图3a-3d的客户信号适配单元,可以通过客户侧接口芯片来实现。图3a-3d的网络信号适配单元,可以通过网络侧接口芯片来实现。图3a-3d的交换单元,可以通过交换网芯片来实现。图3a、图3c中的监视单元,可以设置在客户侧接口芯片中,也可以设置在独立的现场可编程门阵列(field programmable gate array,FPGA)或网络处理器(network processor,NP)中。图3b、图3d中的监视单元,可以设置在网络侧接口芯片中,也可以设置在独立的FPGA或NP中。或者,监视单元的部分功能通过客户侧接口芯片或网络侧接口芯片实现,部分功能通过独立的FPGA或NP实现。The network devices PE and P in the embodiment of the present invention may be implemented in a packet bearer device, for example, an IP radio access network (IP RAN) device, a packet transport network (PTN) device, or the like. . 5a and 5b are schematic structural diagrams of two types of packet bearer devices according to an embodiment of the present invention. As shown in FIG. 5a and FIG. 5b, the network device PE is used as an example. The packet bearer device may include two types of interface boards, one of which deploys a client-side interface chip, and the other of which has a network-side interface chip. . The packet bearer device may further include a master switch board that deploys the switch network chip. The client signal adaptation unit of Figures 3a-3d can be implemented by a client side interface chip. The network signal adaptation unit of Figures 3a-3d can be implemented by a network side interface chip. The switching unit of Figures 3a-3d can be implemented by a switching network chip. The monitoring unit in FIG. 3a and FIG. 3c may be disposed in the client side interface chip, or may be disposed in a separate field programmable gate array (FPGA) or a network processor (NP). The monitoring unit in FIG. 3b and FIG. 3d may be disposed in the network side interface chip, or may be disposed in a separate FPGA or NP. Alternatively, some functions of the monitoring unit are implemented by a client side interface chip or a network side interface chip, and some functions are implemented by a separate FPGA or NP.
本发明实施例的网络设备,在现有技术的基础上,增加了用于故障检测的监视单元。图6为本发明实施例提供的一种监视单元的逻辑结构示意图。如图6所示,以网络设备PE为例进行说明。监视单元可以包括检测块生成模块、检测块发送模块、检测块接收模块等。各个模块的功能将在下面的实施例进行详细说明。The network device of the embodiment of the present invention adds a monitoring unit for fault detection based on the prior art. FIG. 6 is a schematic diagram of a logical structure of a monitoring unit according to an embodiment of the present invention. As shown in FIG. 6, the network device PE is taken as an example for description. The monitoring unit may include a detection block generation module, a detection block transmission module, a detection block reception module, and the like. The function of each module will be described in detail in the following embodiments.
参考图2所示的网络架构示意图,假设UNI的类型为1吉比特以太网(Gigabit Ethernet, GE),NNI的类型为100GE。交换单元可以为L1.5层交换单元,其交换粒度以64B/66B比特块(或者称为66比特块)为例进行说明。网络间接口的数据流也同样以66比特块数据流为例进行说明,XE1通过UNI接收到来自客户设备的数据流,经过XE2后被XE3接收。经过XE1-XE2-XE3的数据流形成一个连接(或者称为连接数据流、连接比特块数据流、比特块数据流等),需要对该连接进行故障检测,即连接性检测(connectivity check,CC)。检测过程可以包括如下几个步骤:Referring to the network architecture diagram shown in FIG. 2, it is assumed that the type of the UNI is 1 Gigabit Ethernet (GE), and the type of the NNI is 100 GE. The switching unit may be an L1.5 layer switching unit whose switching granularity is exemplified by a 64B/66B bit block (or 66 bit block). The data flow of the interface between the networks is also described by taking a 66-bit block data stream as an example. XE1 receives the data stream from the client device through the UNI, and is received by XE3 after passing through XE2. After the data stream of XE1-XE2-XE3 forms a connection (or is called a connection data stream, a connection bit block data stream, a bit block data stream, etc.), it is necessary to perform fault detection on the connection, that is, connectivity check (CC) ). The detection process can include the following steps:
步骤1:XE1生成检测块。Step 1: XE1 generates a detection block.
该步骤可以由XE1中的监视单元来实现,例如,可以通过检测块生成模块来实现。该检测块承载连接性检测信息,也可以称为连接性检测块(connectivity check block,CCB)。检测块可以是未经过编码的比特块,也可也是经过编码的比特块(也称为码块)。本发明实施例中,检测块以66比特块为例进行说明,其编码格式可以通过扩展现有技术的66比特控制块来实现。图7a、图7b和图7c分别为本发明实施例提供的三种检测块的编码格式示意图。如图7a所示,类型字段设置为0x4B、O码设置为0x6。该检测块可以包括流标识(identity,ID),可选的,还可以包括发送参考周期(T)。其中,流标识用于指示XE1-XE2-XE3的数据流的连接标识。发送参考周期用于指示检测块的发送周期,或者说相邻两个检测块的发送间隔。图7b在D1-D3字段添加流标识0x023以及发送参考周期0x400。则流标识指示XE1-XE2-XE3的数据流的连接标识为0x023,发送参考周期指示每隔1024个比特块插入一个检测块。在检测块中携带发送参考周期是为了使接收端根据该发送参考周期来探测检测块,可选的,该发送参考周期也可以直接在接收端上配置,从而不需要在检测块中携带。一个检测块也可以只携带流标识的一部分,完整的流标识需要先后发送n个检测块来承载,如图7c所示,完整的流标识是0x88…4523,第一个检测块发送0x23,第二个检测块发送0x45,直到最后第n个检测块发送0x88。同样,T可选发送。图7d、图7e和图7f分别为本发明实施例提供的另外三种检测块的编码格式示意图。如图7d所示,类型字段设置为0x00。该检测块可以包括流标识(identity,ID),可选的,还可以包括发送参考周期(T)。其中,流标识用于指示XE1-XE2-XE3的数据流的连接标识。发送参考周期用于指示检测块的发送周期,或者说相邻两个检测块的发送间隔。图7e在D1-D7字段添加流标识0x023以及发送参考周期0x400。则流标识指示XE1-XE2-XE3的数据流的连接标识为0x023,发送参考周期指示每隔1024个比特块插入一个检测块。在检测块中携带发送参考周期是为了使接收端根据该发送参考周期来探测检测块,可选的,该发送参考周期也可以直接在接收端上配置,从而不需要在检测块中携带。一个检测块也可以只携带流标识的一部分,完整的流标识需要先后发送多个检测块来承载,如图7f所示,完整的流标识是0x88…4523,第一个检测块发送0x23,第二个检测块发送0x45,直到最后第n个检测块发送0x88。同样,T可选发送。This step can be implemented by a monitoring unit in XE1, for example, by detecting a block generation module. The detection block carries connectivity detection information, which may also be referred to as a connectivity check block (CCB). The detection block may be an uncoded block of bits or an encoded block of bits (also referred to as a block of code). In the embodiment of the present invention, the detection block is described by taking a 66-bit block as an example, and the coding format thereof can be implemented by extending the 66-bit control block of the prior art. FIG. 7a, FIG. 7b and FIG. 7c are respectively schematic diagrams showing coding formats of three detection blocks according to an embodiment of the present invention. As shown in Figure 7a, the Type field is set to 0x4B and the O code is set to 0x6. The detection block may include a flow identifier (identity, ID), and optionally, a transmission reference period (T). The flow identifier is used to indicate the connection identifier of the data stream of the XE1-XE2-XE3. The transmission reference period is used to indicate the transmission period of the detection block, or the transmission interval of two adjacent detection blocks. Figure 7b adds a stream identifier 0x023 and a transmit reference period 0x400 in the D1-D3 field. Then, the flow identifier indicates that the connection identifier of the data stream of XE1-XE2-XE3 is 0x023, and the transmission reference period indicates that one detection block is inserted every 1024 bit blocks. The transmitting reference period is carried in the detecting block, so that the receiving end detects the detecting block according to the sending reference period. Optionally, the sending reference period may also be directly configured on the receiving end, so that it does not need to be carried in the detecting block. A detection block may also carry only a part of the flow identifier, and the complete flow identifier needs to send n detection blocks to carry, as shown in FIG. 7c, the complete flow identifier is 0x88...4523, and the first detection block sends 0x23, the first The two detection blocks send 0x45 until the last nth detection block sends 0x88. Similarly, T can be sent. FIG. 7d, FIG. 7e and FIG. 7f are respectively schematic diagrams showing coding formats of three other detection blocks according to an embodiment of the present invention. As shown in Figure 7d, the Type field is set to 0x00. The detection block may include a flow identifier (identity, ID), and optionally, a transmission reference period (T). The flow identifier is used to indicate the connection identifier of the data stream of the XE1-XE2-XE3. The transmission reference period is used to indicate the transmission period of the detection block, or the transmission interval of two adjacent detection blocks. Figure 7e adds a stream identifier 0x023 and a transmit reference period 0x400 in the D1-D7 field. Then, the flow identifier indicates that the connection identifier of the data stream of XE1-XE2-XE3 is 0x023, and the transmission reference period indicates that one detection block is inserted every 1024 bit blocks. The transmitting reference period is carried in the detecting block, so that the receiving end detects the detecting block according to the sending reference period. Optionally, the sending reference period may also be directly configured on the receiving end, so that it does not need to be carried in the detecting block. A detection block may also carry only a part of the flow identifier, and the complete flow identifier needs to be sent by multiple detection blocks in succession, as shown in FIG. 7f, the complete flow identifier is 0x88...4523, and the first detection block sends 0x23, the first The two detection blocks send 0x45 until the last nth detection block sends 0x88. Similarly, T can be sent.
检测块还可以用于实现连接管理的其他操作、管理与维护(operation,administration and maintenance OAM)功能,比如用于误码检测的比特间插奇偶校验(bit interleaved parity,BIP)、远端误码指示(remote error indication,REI)、客户信号指示(CS)、同步(SYNC)、服务层的告警指示信号(alarm indication signal,AIS)、保护倒换协议(automatic protection switching,APS)、时延测量(delay measurement,DM)等。当检测块用于实现多种OAM功能时,检测块还可以携带类型标识,用于区别不同的功能。例如,检测块的类型可以包括具有连接性检测功能类型,还可以包括上述任意一种或多种OAM功能类型。如图7g所示,type为0x01标识连接检测功能,0~63分别标识发送第0到第63个检测块,每个块只携带一个流标识的第0~第63部分。同样,所述的其他OAM功能携带的信息如果需要多个检测块承载时,例如单向DM携带的时 间戳需要先后发送多个检测块承载时,每个检测块只携带时间戳的一部分。一个OAM信息可以由一个检测块携带,也可以由至少两个检测块携带。The detection block can also be used to implement other operations, administration and maintenance (OAM) functions of connection management, such as bit interleaved parity (BIP) and remote errors for error detection. Remote error indication (REI), customer signal indication (CS), synchronization (SYNC), service level alarm indication signal (AIS), protection switching protocol (APS), delay measurement (delay measurement, DM) and so on. When the detection block is used to implement multiple OAM functions, the detection block can also carry a type identifier for distinguishing different functions. For example, the type of the detection block may include a type of connectivity detection function, and may also include any one or more of the OAM function types described above. As shown in FIG. 7g, type 0x01 identifies the connection detection function, and 0 to 63 respectively identify the 0th to 63rd detection blocks, and each block carries only the 0th to 63rd parts of one flow identifier. Similarly, if the information carried by the other OAM functions needs to be carried by multiple detection blocks, for example, the time stamp carried by the unidirectional DM needs to send multiple detection block bearers in succession, each detection block only carries a part of the time stamp. An OAM information may be carried by one detection block or by at least two detection blocks.
步骤2:XE1发送检测块。Step 2: XE1 sends a detection block.
该步骤可以由XE1的监视单元来实现,例如,可以通过检测块发送模块来实现。在发送检测块之前,XE1通过UNI接收到来自客户设备的数据流。可选的,XE1可以对接收到的数据流进行编码,或者进行编码格式转换。例如,该数据流为8B/10B编码的数据流。XE1通过客户信号适配单元进行编码格式转换,例如,将8B/10B编码转化为64B/66B编码。例如,依次将8个有效编码的1GE比特块(每个比特块的大小为8比特)组成一个64比特块,然后添加2比特的同步头形成1个66比特块。多个66比特块生成66比特块数据流。在生成66比特块数据流的同时,XE1根据发送参考周期启动计数器进行计数,例如,发送参考周期为“1024”。当计数器计数达到1024个比特块时,监视单元进行空闲块(IDLE)检测。例如,当计数器计数达到1029个比特块时,检测到空闲块,将检测到的空闲块替换为步骤1生成的检测块,将检测块的发送参考周期更新为1029。然后,重置计数器为0。比特块数据流进入交换单元,并通过网络信号适配单元发送到网络侧。This step can be implemented by the monitoring unit of XE1, for example, by detecting the block sending module. Before sending the detection block, XE1 receives the data stream from the client device through the UNI. Optionally, XE1 may encode the received data stream or perform encoding format conversion. For example, the data stream is an 8B/10B encoded data stream. XE1 performs encoding format conversion through the client signal adaptation unit, for example, converting 8B/10B encoding to 64B/66B encoding. For example, 8 efficiently coded 1GE bit blocks (each bit block having a size of 8 bits) are sequentially formed into a 64-bit block, and then a 2-bit sync header is added to form one 66-bit block. A plurality of 66-bit blocks generate a 66-bit block data stream. While generating the 66-bit block data stream, XE1 starts counting according to the transmission reference period start counter, for example, the transmission reference period is "1024". When the counter count reaches 1024 bit blocks, the monitoring unit performs idle block (IDLE) detection. For example, when the counter count reaches 1029 bit blocks, the free block is detected, the detected free block is replaced with the detection block generated in
图8为本发明实施例提供的一种发送检测块的方法流程图。如图8所示,发送检测块的方法可以包括以下步骤:启动计数器对比特块数据流的比特块数量进行计数;当计数器的计数值达到预设的发送参考周期时,开始检测比特块数据流,当发现比特块数据流中的空闲块,将空闲块替换为待发送的检测块;此时,如果计数器的计数值超过了预设的发送参考周期,将检测块中发送参考周期T更新为最新的计数器计数值;发送比特块数据流。FIG. 8 is a flowchart of a method for transmitting a detection block according to an embodiment of the present invention. As shown in FIG. 8, the method for transmitting a detection block may include the steps of: starting a counter to count the number of bit blocks of the bit block data stream; and starting to detect the bit block data stream when the counter value reaches a preset transmission reference period. When the free block in the bit block data stream is found, the free block is replaced with the detection block to be sent; at this time, if the counter value exceeds the preset transmission reference period, the transmission reference period T in the detection block is updated to The latest counter count value; the bit block data stream is sent.
图9a、图9b、图9c和图9d为本发明实施例提供的发送检测块的示意图。如图9a、图9b所示,图中的箭头方向为比特流数据流的发送方向,插入的两个检测块之间的间隔为1029个比特块,则将检测块的发送参考周期更新为0x405。可选的,可以根据检测块的实际发送周期更新发送参考周期,即发送参考周期字段更新为0x405。也可以不更新发送参考周期,即发送参考周期字段仍然设置为0x400。该例子中,可以灵活选择是否在检测块中携带发送参考周期,以及是否刷新参考周期。可选的,当检测块不携带发送参考周期时,接收端网络设备根据本地预设的周期检测和接收该检测块。同样,当流标识采用多个检测块承载时,图9a和图9b发送的检测块,承载了流标识的一部分内容,如图9d所示,type为0x01标识是连接检测块,63表示该块承载的是流标识的第63部分的内容。9a, 9b, 9c, and 9d are schematic diagrams of a transmission detection block according to an embodiment of the present invention. As shown in FIG. 9a and FIG. 9b, the direction of the arrow in the figure is the transmission direction of the bitstream data stream, and the interval between the inserted two detection blocks is 1029 bit blocks, and the transmission reference period of the detection block is updated to 0x405. . Optionally, the sending reference period may be updated according to the actual sending period of the detecting block, that is, the sending reference period field is updated to 0x405. It is also possible not to update the transmission reference period, ie the transmit reference period field is still set to 0x400. In this example, it is possible to flexibly choose whether to carry the transmission reference period in the detection block and whether to refresh the reference period. Optionally, when the detection block does not carry the transmission reference period, the receiving network device detects and receives the detection block according to a preset period. Similarly, when the flow identifier is carried by multiple detection blocks, the detection block sent by FIG. 9a and FIG. 9b carries a part of the content of the flow identifier, as shown in FIG. 9d, the type is 0x01, the identifier is a connection detection block, and 63 is the block. The content of the 63rd part of the stream identifier is carried.
图10是本发明实施例提供的一种检测块发送模块的逻辑结构示意图。如图10所示,接收到比特块数据流时,启动计数器对比特块的数量进行计数。将比特块数据流送入缓存,按照预设的发送策略将检测块产生器生成的检测块插入到比特块数据流中。其中,预设的发送策略可以包括发送参考周期等。预设的发送策略可以有网管或控制器配置。FIG. 10 is a schematic diagram of a logical structure of a detection block sending module according to an embodiment of the present invention. As shown in FIG. 10, when a bit block data stream is received, the start counter counts the number of bit blocks. The bit block data stream is sent to the buffer, and the detection block generated by the detection block generator is inserted into the bit block data stream according to a preset transmission policy. The preset sending policy may include sending a reference period and the like. The default sending policy can be configured by the network management or controller.
上述发送检测块的过程中,需要对空闲块进行检测和替换。图11为本发明实施例提供的一种空闲块的格式示意图。如图11所示,空闲块可以为66比特块,包括2比特的同步头“10”,类型字段“0x1E”,以及8个“/I/(0x00)”。检测空闲块的方法可以包括:匹配同步头“10”和类型字段“0x1E”,或者匹配空闲块的所有比特。该例子中,采用多种匹配方法发现空闲块,占用空闲块的带宽资源发送,对业务带宽无影响。In the process of transmitting the detection block described above, it is necessary to detect and replace the free block. FIG. 11 is a schematic diagram of a format of a free block according to an embodiment of the present invention. As shown in FIG. 11, the free block may be a 66-bit block including a 2-bit sync header "10", a type field "0x1E", and 8 "/I/(0x00)". The method of detecting a free block may include matching the sync header "10" and the type field "0x1E", or matching all bits of the free block. In this example, multiple matching methods are used to find the free block, and the bandwidth resource that occupies the free block is transmitted, which has no impact on the service bandwidth.
本发明实施例中通过替换空闲块进行检测块发送的方法,同样适用于发送具备其他OAM功能的比特块,例如用于误码检测的比特间插奇偶校验(BIP)、远端误码指示(REI)、客户信号指示(CS)、同步(SYNC)、服务层告警指示(AIS)、保护倒换协议(APS)、时延测量(DM)等。当检测块用于实现多种OAM功能时,检测块还可以携带类型标识,用于区别不同的功能,如 图9c所示,TYPE标识OAM类型,例如0x01表示是连接检测块,即不同类型的检测块的类型域不同。The method for detecting block transmission by replacing a free block in the embodiment of the present invention is also applicable to transmitting a bit block having other OAM functions, such as bit interleaving parity (BIP) for bit error detection, and remote bit error indication. (REI), Customer Signal Indication (CS), Synchronization (SYNC), Service Layer Alarm Indication (AIS), Protection Switching Protocol (APS), Delay Measurement (DM), and the like. When the detection block is used to implement multiple OAM functions, the detection block may also carry a type identifier for distinguishing different functions. As shown in FIG. 9c, the TYPE identifies the OAM type, for example, 0x01 indicates that the detection block is a connection detection type, that is, different types. The type of the detection block is different.
步骤3:XE2进行速率适配。Step 3: XE2 performs rate adaptation.
XE2通过网络信号适配单元接收到来自XE1的比特块数据流。如果接收时钟频率比XE2的系统时钟慢,则XE2的网络信号适配单元需要在比特块数据流中插入一个或多个空闲块;如果接收时钟频率比XE2的系统时钟快,则XE2的网络信号适配单元需要在比特块数据流中删除一个或多个空闲块,以适配由于时钟频率不同步而引起的传送速度问题。XE2的网络信号适配单元进行速率适配之后,比特块数据流通过交换单元传递至下游的网络侧。可选的,如果接收时钟频率和XE2的系统时钟相适配,则可以XE2可以不必进行速率适配。XE2 receives the bit block data stream from XE1 through the network signal adaptation unit. If the receiving clock frequency is slower than the system clock of XE2, the network signal adaptation unit of XE2 needs to insert one or more free blocks in the bit block data stream; if the receiving clock frequency is faster than the system clock of XE2, the network signal of XE2 The adaptation unit needs to delete one or more free blocks in the bit block data stream to accommodate transmission speed problems due to unsynchronized clock frequencies. After the network signal adaptation unit of XE2 performs rate adaptation, the bit block data stream is transmitted to the downstream network side through the switching unit. Optionally, if the receiving clock frequency is adapted to the system clock of the XE2, the XE2 may not need to perform rate adaptation.
图12为本发明实施例提供的一种速率适配的示意图。如图12所示,图中的箭头方向为比特流数据流的发送方向,比特块数据流中包括开始块“S”、结束块“T”、数据块“D”和空闲块“I”。例如,可以在开始块和结束块之间插入或删除空闲块。FIG. 12 is a schematic diagram of rate adaptation according to an embodiment of the present invention. As shown in FIG. 12, the direction of the arrow in the figure is the transmission direction of the bit stream data stream, and the bit block data stream includes a start block "S", an end block "T", a data block "D", and a free block "I". For example, a free block can be inserted or deleted between a start block and an end block.
步骤4:XE3接收检测块。Step 4: XE3 receives the detection block.
该步骤可以由XE3中的监视单元来实现,例如,可以通过检测块接收模块来实现。位于边缘侧的网络设备XE3从XE2接收到比特块数据流后,比特块数据流经过网络侧适配单元,到达监视单元。可选的,如果监视单元在交换单元之后,比特块数据流经过交换单元后达到监视单元。监视单元运行检测块发现流程:根据检测块的特征检测到检测块,提取流标识0x023和发送参考周期0x405。首先,进行流标识匹配,当流标识与本地配置的期望接收到的流标识(0x023)一致时,提取发送参考周期(0x405),并设置计数器的超时时间为发送参考周期,例如,超时时间为接收到1029个比特块的时间。可选的,还可以再设置一个计数器,其超时时间大于发送参考周期,例如,超时时间为接收到3*1029个比特块的时间。当流标识与本地配置的期望接收到的流标识不一致时,则置连接错连告警,并立即回送远端缺陷指示(remote defect indication,RDI)。当连续收到N个(比如5个)正确匹配的流标识的检测块,则置连接错连告警消失,并停止回传RDI。This step can be implemented by a monitoring unit in XE3, for example, by detecting a block receiving module. After the network device XE3 located on the edge side receives the bit block data stream from the XE2, the bit block data stream passes through the network side adaptation unit and arrives at the monitoring unit. Optionally, if the monitoring unit is after the switching unit, the bit block data stream passes through the switching unit and reaches the monitoring unit. The monitoring unit runs the detection block discovery process: the detection block is detected according to the characteristics of the detection block, and the stream identifier 0x023 and the transmission reference period 0x405 are extracted. First, the flow identifier matching is performed. When the flow identifier is consistent with the locally configured flow identifier (0x023), the transmission reference period (0x405) is extracted, and the timeout period of the counter is set as the transmission reference period. For example, the timeout period is The time when 1029 bit blocks were received. Optionally, a counter may also be set, and the timeout period is greater than the sending reference period. For example, the timeout period is the time when 3*1029 bit blocks are received. When the flow identifier is inconsistent with the locally configured flow identifier that is expected to be received, the connection error alarm is set and the remote defect indication (RDI) is immediately sent back. When N (for example, 5) correctly detected detection blocks of the flow identifier are continuously received, the connection misconnection alarm disappears and the return of the RDI is stopped.
图13a为本发明实施例提供的一种接收检测块的方法流程图。如图13a所示,接收检测块的方法可以包括以下步骤:检测比特块数据流,根据检测块的特征,判断是否接收到检测块。确定接收到检测块之后,a、如果检测块中携带的流标识与期望流标识不一致,更新本地的连接错连告警标志。并且,生成故障告警指示,例如,生成RDI。b、如果检测块中携带的流标识与期望的流标识一致,则提取发送参考周期。设置计数器1,超时时间为1倍发送参考周期T,并启动计数;设置计数器2,超时时间为3倍发送参考周期T,并启动计数。计数器1计数到1倍发送参考周期时,开始检测比特块数据流的块类型。当计数器2计数到3倍发送参考周期时,未检测到有效的比特块(例如开始块“S”、结束块“T”、数据块“D”的任意组合),则置连接连通性丢失(loss of connectivity,LOC)告警。并且,生成故障告警指示,例如,生成RDI。图13b为本发明实施例提供的另一种接收检测块的方法流程图。如图13b所示,和图13a的区别在于,可以仅设置一个计数器,其超时时间可以为1倍发送参考周期或者其他任意时间长度。在计数器启动计数时,检测比特块数据流的块类型。当计数器计数到预设的超时时间时,如果没有检测到有效的比特块,则置连接连通性丢失告警。设置超时时间长短不同的两个计数器,从0时刻到长计数器(计数器2)超时期间未收到检测块,从短计数器(计数器1)超时到长计数器超时期间未检测到有效的比特块,可精确地判决出连接连通性丢失。该例子中,通过灵活设置计数器1和计数器2两个计数器,结合是否收到有效的比特块,进行连接故障判决,准确可靠。还可以灵活简化,只设置计数器2,进一步降低实施难度。FIG. 13 is a flowchart of a method for receiving a detection block according to an embodiment of the present invention. As shown in FIG. 13a, the method of receiving a detection block may include the steps of: detecting a bit block data stream, and determining whether a detection block is received according to a characteristic of the detection block. After determining that the detection block is received, a. If the flow identifier carried in the detection block is inconsistent with the expected flow identifier, the local connection misconnection alarm flag is updated. And, a fault alarm indication is generated, for example, an RDI is generated. b. If the flow identifier carried in the detection block is consistent with the expected flow identifier, the transmission reference period is extracted. Set
可选的,发送参考周期可以直接配置在网络设备中,从而不需要携带在检测块中。例如XE1配置发送参考周期0x400,XE3配置接收参考周期0x400。步骤4中可以按照所配置的接收参考周期0x400设置计数器1、2的超时时间。可选的,计数器1的计数周期可以是发送参考周期T的N倍,例如,N设置为1,也可以是1.5或其他用户定义的值。计数器2可以是计数器1计数周期的M倍,例如,M设置为3,也可以是用户定义的值。可选的,还可以仅设置一个计数器,如计数器2,在计数器2超时之后,判断是否收到有效的比特块,从而进行连接故障判决。可选的,在计数器2超时之后,可以不判断是否收到有效的比特块,而是直接置连接连通性丢失告警。Optionally, the sending reference period can be directly configured in the network device, so that it does not need to be carried in the detecting block. For example, the XE1 configuration sends a reference period of 0x400, and the XE3 configuration receives a reference period of 0x400. In
可选的,当所述的流标识长度较长,需要先后发送多个检测块承载时,每个检测块只携带流标识的一部分,如图9d所示,接收方XE3需要先后接收到多个检测块之后才能恢复出一个完整的流标识,然后再判断是否发生连接错连。当接收到检测块但尚未恢复出完整的流标识时,按默认连接未发生错连处理,直接检测连接的连通性,流程如图13c所述。如图13d所示,和图13c的区别在于,可以仅设置一个计数器,其超时时间可以为1倍发送参考周期或者其他任意时间长度。Optionally, when the length of the flow identifier is long and multiple test block bearers are to be sent, each detection block only carries a part of the flow identifier. As shown in FIG. 9d, the receiver XE3 needs to receive multiple times. After detecting the block, a complete stream identifier can be recovered, and then it is determined whether a connection error has occurred. When the detection block is received but the complete stream identifier has not been recovered, the connection connection is not detected by the default connection, and the connectivity of the connection is directly detected, as shown in Figure 13c. As shown in Fig. 13d, the difference from Fig. 13c is that only one counter can be set, and the timeout period can be 1 times the transmission reference period or any other length of time.
上述接收检测块的过程中,需要根据检测块的特征识别出检测块。图14a为本发明实施例提供的一种检测块的编码格式示意图。如图14a所示,可以匹配字段A+B+O,还可以匹配字段A+B+O+C,或者匹配其他的字段组合来识别检测块。上述检测比特块数据流的块类型,可以是检测同步头和类型字段等。可选的,如果检测块中包括类型标识,还可以对类型标识字段进行匹配,通过类型标识字段识别检测块指示的功能类型。当采用定义新的控制码块,比如66比特块预留的type为0x00的码块,其他56个比特为8比特数据时,则匹配方式为A+B即可,如图14b所示。In the above process of receiving the detection block, it is necessary to identify the detection block according to the characteristics of the detection block. FIG. 14 is a schematic diagram of an encoding format of a detection block according to an embodiment of the present invention. As shown in FIG. 14a, the field A+B+O can be matched, the field A+B+O+C can be matched, or other field combinations can be matched to identify the detection block. The block type of the above-mentioned detected bit block data stream may be a detection sync header and a type field, and the like. Optionally, if the type identifier is included in the detection block, the type identifier field may also be matched, and the type of the function indicated by the detection block is identified by the type identifier field. When a new control code block is defined, for example, a code block of type 0x00 reserved by a 66-bit block and 8 bits of data of the other 56 bits, the matching mode is A+B, as shown in FIG. 14b.
本发明实施例中接收检测块的方法,同样适用于接收其他的OAM功能的比特块,例如用于误码检测的比特间插奇偶校验(BIP)、远端误码指示(REI)、客户信号指示(CS)、同步(SYNC)、服务层告警指示(AIS)、保护倒换协议(APS)、时延测量(DM)等。The method for receiving a detection block in the embodiment of the present invention is also applicable to a bit block that receives other OAM functions, such as bit interleaving parity (BIP), remote error indication (REI), and client for error detection. Signal indication (CS), synchronization (SYNC), service layer alarm indication (AIS), protection switching protocol (APS), delay measurement (DM), etc.
下面将描述网络发生故障后的处理步骤。图15为本发明实施例提供的一种网络架构示意图。如图15所示,假如XE2的交换单元发生故障。XE1生成并发送检测块。XE3进检测块接收,以图13a的接收方法为例进行说明。当计数器1超时后,开始检测比特块数据流的块类型,直到计数器2超时。如果计数器1超时至计数器2超时期间收到期望的检测块,则重置两个计数器。如果计数器1超时至计数器2超时期间一直未收到期望的检测块,计数器1超时时刻开始检测比特块数据流的块类型。如果检测到有效的比特块(例如开始块“S”、结束块“T”、数据块“D”的任意组合),则重置两个计数器,则重置计数器1、2。如果未检测到有效的比特块,则置LOC告警,同时生成回传RDI。当连续收到N个(比如5个)期望的正确的检测块,则置LOC告警消失,并停止回传RDI。XE3置LOC告警,并通过回送故障告警指示(例如,故障告警指示块),将故障情况通告发送端XE1。故障告警指示块可以为RDI比特块,例如可以包括流标识、远端缺陷指示(RDI)等。可选的,RDI比特块还可以包括类型标识,用于RDI比特块具有故障告警指示功能。The processing steps after a network failure will be described below. FIG. 15 is a schematic diagram of a network architecture according to an embodiment of the present invention. As shown in Figure 15, if the switching unit of XE2 fails. XE1 generates and sends a detection block. The XE3 enters the detection block reception, and the reception method of FIG. 13a is taken as an example for description. When the
同样,上面实施例可以不检测有效块,具体处理步骤简化为:如图15所示,假如XE2的交换单元发生故障。XE1生成并发送检测块。XE3进检测块接收,以图13d的接收方法为例进行说明。计数器2超时,则置LOC告警,同时生成回传RDI。当连续收到N个(比如5个)期望的正确的检测块,则置LOC告警消失,并停止回传RDI。XE3置LOC告警,并通过回送故障告警指示(例如,故障告警指示块),将故障情况通告发送端XE1。故障告警指示块可以为RDI 比特块,例如可以包括流标识、远端缺陷指示(RDI)等。可选的,RDI比特块还可以包括类型标识,用于RDI比特块具有故障告警指示功能。Similarly, the above embodiment may not detect a valid block, and the specific processing steps are simplified as follows: as shown in FIG. 15, if the switching unit of XE2 fails. XE1 generates and sends a detection block. The XE3 enters the detection block reception, and the reception method of FIG. 13d is taken as an example for description. When the
对于双向连接,即XE1至XE3的方向和XE3至XE1的方向均存在数据流时,XE1也可以接收到XE3生成的检测块。例如XE1的监视单元通过类似步骤4的方式对检测块进行接收,并进行连接故障检测。For a two-way connection, that is, the direction of XE1 to XE3 and the direction of XE3 to XE1, XE1 can also receive the detection block generated by XE3. For example, the monitoring unit of XE1 receives the detection block in a manner similar to
本发明实施例中,检测的到的故障类型可以包括:连接错连、连接连通性丢失、远端缺陷等任意一种或多种。网络设备可以将故障的情况传递至本地的自动保护倒换(APS)功能单元,实施相应的自愈策略,或者传递至软件定义网络(software-defined networking,SDN)控制器,实施相应的连接恢复策略,或者传递至网管,执行相应的告警管理、预警功能。In the embodiment of the present invention, the detected fault type may include any one or more of connection disconnection, connection connectivity loss, and remote defect. The network device can pass the fault condition to the local automatic protection switching (APS) function unit, implement the corresponding self-healing strategy, or pass to a software-defined networking (SDN) controller to implement the corresponding connection recovery strategy. Or pass to the network management to perform the corresponding alarm management and early warning functions.
图16为本发明实施例提供的一种发送故障指示块的方法流程图。如图16所示,发送故障指示块的方法和发送检测块的方法类似,可以包括如下步骤:当接收端检测到故障时(例如,超过了预设的参考周期之后未接收到检测块,则可以确定此时连接发生中断故障),需要发送故障指示块时,开始检测比特块数据流,当发现比特块数据流中的空闲块,将空闲块替换为故障指示块;发送比特块数据流。当需要携带流标识时,将流标识或流标识的一部分放入故障指示块发送。FIG. 16 is a flowchart of a method for sending a fault indication block according to an embodiment of the present invention. As shown in FIG. 16, the method for transmitting the fault indication block is similar to the method for transmitting the detection block, and may include the following steps: when the receiving end detects the fault (for example, after the preset reference period is exceeded, the detection block is not received, It can be determined that the connection is interrupted at this time. When the fault indication block needs to be sent, the bit block data stream is started to be detected. When the free block in the bit block data stream is found, the free block is replaced with the fault indication block; the bit block data stream is transmitted. When the flow identifier needs to be carried, a part of the flow identifier or the flow identifier is sent in the fault indication block.
图17a为本发明实施例提供的一种接收故障指示块的方法流程图。如图17a所示,接收故障指示块的方法和接收检测块的方法类似,可以包括如下步骤:检测接收到的比特块数据流,发现故障指示块,当故障指示块携带的流标识与期望的流标识不一致时,丢弃该故障指示块。当故障指示块携带的流标识与期望的流标识一致时,根据故障指示块中的远端缺陷指示字段更新本地的远端缺陷指示(RDI)标志。当故障指示块不携带流标识时,如图17b所示,接收故障指示块的方法和接收检测块的方法类似,可以包括如下步骤:检测接收到的比特块数据流,发现故障指示块,根据故障指示块中的远端缺陷指示字段更新本地的远端缺陷指示(RDI)标志。当故障指示块携带流标识的一部分时,如图17c所示,接收故障指示块的方法和接收检测块的方法类似,可以包括如下步骤:检测接收到的比特块数据流,发现故障指示块,当故障指示块携带的流标识只是流标识的一部分,则等待接收下一个故障指示块,只到收齐流标识的各部分恢复出完整的流标识。当流标识与期望的流标识不一致时,丢弃该故障指示块,重头开始检测。当故障指示块携带的流标识与期望的流标识一致时,根据故障指示块中的远端缺陷指示字段更新本地的远端缺陷指示(RDI)标志。FIG. 17 is a flowchart of a method for receiving a fault indication block according to an embodiment of the present invention. As shown in FIG. 17a, the method for receiving a fault indication block is similar to the method for receiving a detection block, and may include the steps of: detecting a received bit block data stream, and discovering a fault indication block, when the fault indication block carries a stream identifier and an expected When the flow identifiers are inconsistent, the fault indication block is discarded. When the flow identifier carried by the fault indication block is consistent with the desired flow identifier, the local remote defect indication (RDI) flag is updated according to the remote defect indication field in the fault indication block. When the fault indication block does not carry the flow identifier, as shown in FIG. 17b, the method for receiving the fault indication block is similar to the method for receiving the detection block, and may include the following steps: detecting the received bit block data stream, and finding the fault indication block, according to The remote defect indication field in the fault indication block updates the local remote defect indication (RDI) flag. When the fault indication block carries a part of the flow identifier, as shown in FIG. 17c, the method for receiving the fault indication block is similar to the method for receiving the detection block, and may include the following steps: detecting the received bit block data stream, and finding the fault indication block, When the flow identifier carried by the fault indication block is only part of the flow identifier, it waits to receive the next fault indication block, and only recovers the complete flow identifier from each part of the collected flow identifier. When the flow identifier is inconsistent with the expected flow identifier, the fault indication block is discarded, and the detection starts again. When the flow identifier carried by the fault indication block is consistent with the desired flow identifier, the local remote defect indication (RDI) flag is updated according to the remote defect indication field in the fault indication block.
可选的,本发明实施例中检测块的产生、发送、接收、处理等步骤,也适用于其他OAM功能(称为OAM功能块)。表1为一种66比特块的编码格式。当OAM功能块为66比特块时,可以具有如表1的编码格式。其中,OAM功能块的D1~D3字段的编码格式可以包括:Type:6bit,标识不同的OAM功能或几个OAM功能组合;Value:14bit,特定一种或几种类型OAM的消息内容;CRC:4bit,对整个60bit(除CRC的4bit)采用CRC-4或CRC-8校验。Optionally, the steps of generating, transmitting, receiving, and processing the detection block in the embodiment of the present invention are also applicable to other OAM functions (referred to as OAM function blocks). Table 1 shows an encoding format of a 66-bit block. When the OAM function block is a 66-bit block, it may have an encoding format as in Table 1. The coding format of the D1 to D3 fields of the OAM function block may include: Type: 6 bits, which identifies different OAM functions or combinations of several OAM functions; Value: 14 bits, message content of one or several types of OAM; CRC: 4bit, CRC-4 or CRC-8 check is used for the entire 60bit (except CRC 4bit).
表1Table 1
图18a为本发明实施例提供的发送多种OAM功能块的示意图。如图18a所示,可以通过Data字段来表示不同的OAM功能,例如,误码检测(BIP)、远端误码指示(REI)、客户信号指示(CS)、同步(SYNC)、服务层告警指示(AIS)、保护倒换协议(APS)、时延测量(DM)等OAM功能。当同时存在多种OAM功能块时,OAM功能块可以携带类型标识(如表1中的D1的Type字段, 或者图18a中右下角表格的类型字段),用于区别不同的OAM功能块。同样地,上述实施例中的检测块也可也携带类型标识。图中右下角的表格示出了多种OAM功能块的Data字段的编码格式。图中的比特块数据流中,按需开销(overhead,OH)1是按需立即回送的OAM,例如RDI、REI、DM、APS;周期性OH2、周期性OH3分别采用各自周期进行发送,例如CCB、BIP、CS等OAM功能。FIG. 18a is a schematic diagram of sending multiple OAM function blocks according to an embodiment of the present invention. As shown in Figure 18a, different OAM functions can be represented by the Data field, such as error detection (BIP), remote error indication (REI), client signal indication (CS), synchronization (SYNC), service layer alarm. OAM functions such as indication (AIS), protection switching protocol (APS), and delay measurement (DM). When multiple OAM function blocks exist at the same time, the OAM function block may carry a type identifier (such as the Type field of D1 in Table 1 or the type field of the table in the lower right corner of FIG. 18a) for distinguishing different OAM function blocks. Similarly, the detection block in the above embodiment may also carry the type identifier. The table in the lower right corner of the figure shows the encoding format of the Data fields of various OAM function blocks. In the bit block data stream in the figure, overhead (OH) 1 is an OAM that is immediately returned on demand, such as RDI, REI, DM, APS; periodic OH2, periodic OH3 are respectively transmitted in respective cycles, for example OAM functions such as CCB, BIP, and CS.
当表1的Value只能承载OAM功能的一部分时,Value可以灵活定义,采用多个OAM块承载,即每个所述OAM功能块只承载功能信息的一部分。如图18b的图中表格Connectivity check/Verification(简称CC/CV)所示,当流标识需要64字节长度时,将每个检测块的14比特Value分为两部分,Value[0,5]标识顺序号,Value[6,13]标识流标识64字节中的一个字节,如图7g所示;同样。当单向时延测量DM,即表格中的DM,D1[6:7]为0x00,0x11时,每次传送时间戳的12个bit,共传递8帧。When the value of Table 1 can only carry a part of the OAM function, the Value can be flexibly defined and carried by multiple OAM blocks, that is, each of the OAM function blocks only carries a part of the function information. As shown in the table of Figure 18b, the continuity check/Verification (CC/CV for short), when the stream identifier requires 64 bytes, the 14-bit Value of each detection block is divided into two parts, Value[0,5] Identify the sequence number, Value[6,13] identifies one of the 64 bytes of the stream identifier, as shown in Figure 7g; When the unidirectional delay is measured, that is, the DM in the table, D1[6:7] is 0x00, 0x11, each time the 12 bits of the timestamp are transmitted, a total of 8 frames are transmitted.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present invention are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
Claims (37)
Priority Applications (6)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP18835529.1A EP3648402B1 (en) | 2017-07-18 | 2018-06-29 | Method for sending detection block and method for receiving detection block, and network device and system |
| KR1020207004387A KR102324923B1 (en) | 2017-07-18 | 2018-06-29 | Detection block sending and receiving method, network device and system |
| JP2020502384A JP6985492B2 (en) | 2017-07-18 | 2018-06-29 | Detection block transmission and reception methods and network devices and systems |
| EP25199529.6A EP4679796A2 (en) | 2017-07-18 | 2018-06-29 | Detection block sending and receiving method, and network device and system |
| US16/745,937 US11082317B2 (en) | 2017-07-18 | 2020-01-17 | Detection block sending and receiving method, and network device and system |
| US17/391,731 US11539607B2 (en) | 2017-07-18 | 2021-08-02 | Detection block sending and receiving method, and network device and system |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710586112.3 | 2017-07-18 | ||
| CN201710586112 | 2017-07-18 | ||
| CN201710687162.0 | 2017-08-11 | ||
| CN201710687162.0A CN109274600B (en) | 2017-07-18 | 2017-08-11 | A method, network device and system for detecting block transmission and reception |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US16/745,937 Continuation US11082317B2 (en) | 2017-07-18 | 2020-01-17 | Detection block sending and receiving method, and network device and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2019015462A1 true WO2019015462A1 (en) | 2019-01-24 |
Family
ID=65015365
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/093563 Ceased WO2019015462A1 (en) | 2017-07-18 | 2018-06-29 | Method for sending detection block and method for receiving detection block, and network device and system |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2019015462A1 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112350897A (en) * | 2020-11-06 | 2021-02-09 | 中国人民解放军国防科技大学 | Network testing device based on dynamic connection end-to-end reliable transmission protocol |
| CN113890787A (en) * | 2020-07-03 | 2022-01-04 | 中兴通讯股份有限公司 | Flexible Ethernet ring network protection method, device, computer equipment and medium |
| WO2023035776A1 (en) * | 2021-09-13 | 2023-03-16 | 华为技术有限公司 | Communication method, related apparatus, and storage medium |
| US12341653B2 (en) | 2020-04-03 | 2025-06-24 | Huawei Technologies Co., Ltd | Service flow adjustment method and communication apparatus |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101552687A (en) * | 2008-04-01 | 2009-10-07 | 大唐移动通信设备有限公司 | Method, system and device for improving channel estimation accuracy of user equipment |
| US20090323722A1 (en) * | 2008-06-25 | 2009-12-31 | Debendra Das Sharma | Link and lane level packetization scheme of encoding in serial links |
| CN102057729A (en) * | 2008-06-09 | 2011-05-11 | 爱立信电话股份有限公司 | Method and system and device for IF/IRAT measurement allocation |
| CN106484323A (en) * | 2016-09-13 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of loss equalizing method of solid-state storage and system |
-
2018
- 2018-06-29 WO PCT/CN2018/093563 patent/WO2019015462A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101552687A (en) * | 2008-04-01 | 2009-10-07 | 大唐移动通信设备有限公司 | Method, system and device for improving channel estimation accuracy of user equipment |
| CN102057729A (en) * | 2008-06-09 | 2011-05-11 | 爱立信电话股份有限公司 | Method and system and device for IF/IRAT measurement allocation |
| US20090323722A1 (en) * | 2008-06-25 | 2009-12-31 | Debendra Das Sharma | Link and lane level packetization scheme of encoding in serial links |
| CN106484323A (en) * | 2016-09-13 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of loss equalizing method of solid-state storage and system |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12341653B2 (en) | 2020-04-03 | 2025-06-24 | Huawei Technologies Co., Ltd | Service flow adjustment method and communication apparatus |
| CN113890787A (en) * | 2020-07-03 | 2022-01-04 | 中兴通讯股份有限公司 | Flexible Ethernet ring network protection method, device, computer equipment and medium |
| CN112350897A (en) * | 2020-11-06 | 2021-02-09 | 中国人民解放军国防科技大学 | Network testing device based on dynamic connection end-to-end reliable transmission protocol |
| CN112350897B (en) * | 2020-11-06 | 2022-08-12 | 中国人民解放军国防科技大学 | Network Test Device Based on Dynamic Connection End-to-End Reliable Transmission Protocol |
| WO2023035776A1 (en) * | 2021-09-13 | 2023-03-16 | 华为技术有限公司 | Communication method, related apparatus, and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114726479B (en) | A method, network device and system for detecting block sending and receiving | |
| CN102224702B (en) | Techniques for time transfer via signal encoding | |
| US8018857B2 (en) | Method for supporting SDH/SONET oamp on ethernet | |
| US7949782B2 (en) | Extended link monitoring channel for 10 Gb/s Ethernet | |
| WO2019056899A1 (en) | Oam message transmission method and transmission device, and storage medium | |
| CN106612220A (en) | Flexible Ethernet lane management method and apparatus | |
| WO2019015462A1 (en) | Method for sending detection block and method for receiving detection block, and network device and system | |
| WO2018059604A1 (en) | Information transmission method, device, and computer storage medium | |
| CN113765619B (en) | 64B/66B code stream transmitting method, 64B/66B code stream receiving method and equipment | |
| CN102035718A (en) | Method, device and system for protection switching of packet transport network | |
| WO2019029286A1 (en) | Communication method and device and storage medium | |
| WO2021254508A1 (en) | Method and apparatus for determining code block loss | |
| WO2020133897A1 (en) | Operations, administration and management information processing method and device | |
| WO2023197770A1 (en) | Fault notification method and apparatus | |
| CN102055727A (en) | Data encapsulation method, encapsulation equipment and branch unit in multi-service transport network | |
| WO2022001124A1 (en) | Transmission method, detection method and apparatus, acquisition method, network device and system | |
| WO2024032191A1 (en) | Fault code block processing method and device | |
| CN101035028A (en) | Access error detection method and network device | |
| CN112511328A (en) | Method for transmitting and processing information, Ethernet device, computer readable medium | |
| WO2021238791A1 (en) | Code block processing method and device | |
| EP4535694A1 (en) | Code block identification method and apparatus | |
| WO2021017890A1 (en) | Communication method and communication device | |
| CN116962145A (en) | A fault notification method and device | |
| CN119211060A (en) | Transmission method, service quality monitoring method and system of service code block stream | |
| JP3295834B2 (en) | Time division multiplex data receiver |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18835529 Country of ref document: EP Kind code of ref document: A1 |
|
| ENP | Entry into the national phase |
Ref document number: 2020502384 Country of ref document: JP Kind code of ref document: A |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| ENP | Entry into the national phase |
Ref document number: 2018835529 Country of ref document: EP Effective date: 20200130 |
|
| ENP | Entry into the national phase |
Ref document number: 20207004387 Country of ref document: KR Kind code of ref document: A |
|
| WWG | Wipo information: grant in national office |
Ref document number: 2018835529 Country of ref document: EP |