A service multiplexing method, a service demultiplexing method and related equipment

By using the cache area and service handover indication bit block in the sending device, real-time switching of services in FlexE is realized, and the problems of low latency and bandwidth utilization in the prior art are solved, and low latency and efficient service transmission are achieved.

CN109379207BActive Publication Date: 2024-11-19HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201710671402.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-08-08
Publication Date
2024-11-19
Estimated Expiration
2037-08-08

AI Technical Summary

Technical Problem

In the prior art, FlexE (FlexE) cannot realize real-time switching of services, resulting in delay and jitter during service transmission, and the bandwidth cannot be effectively utilized, resulting in transmission delay and bandwidth waste.

Method used

By introducing a cache area and service switching indicator bit blocks into the sending device, the service is switched in real time. Services with high priority can be preempted to send, avoiding multiplexing of exclusive bandwidth, and achieving low-latency service switching.

Benefits of technology

Real-time service switching is realized, delay and jitter is reduced, bandwidth waste and transmission delay are avoided, and bandwidth utilization is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109379207B_ABST
    Figure CN109379207B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a service multiplexing method, a service demultiplexing method and related equipment, the method comprising: a sending device sends a bit block stream of a first service to a receiving device, if the sending device determines to switch from the first service to the second service for service transmission, the sending device sends at least one service switching indication bit block to the receiving device, and the sending device sends the bit block stream of the second service to the receiving device. It can be seen that the service switching of the sending device is not affected by the service currently being transmitted, and the service switching can be realized in real time on any bit block as needed. And by inserting a service switching indication bit block between the bit block streams that need to perform service switching to perform service switching, the delay and jitter in the service switching process are reduced, and the low latency of service switching is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a service multiplexing method, a service demultiplexing method and related equipment. Background Art

[0002] The 802.3-based Ethernet defined by the Institute of Electrical and Electronics Engineers (IEEE) is used as a service interface and has been applied in various occasions and has achieved great success. However, with the development of network technology, the types of services that the network needs to support are increasing.

[0003] In the prior art, in order to enable the network to support multiple types of services, the concept of flexible Ethernet (FlexE) is proposed. FlexE can realize multiplexing of multiple services on the same physical link, such as Figure 1 As shown, the network device includes multiple encoders 101 and a multiplexing module 102. In FlexE, multiple services are encoded by the encoders 101 corresponding to each service. The encoder 101 sends the encoded code block stream to the multiplexing module 102. The multiplexing module 102 can realize the multiplexing of the code block streams of multiple services. The multiplexing method of the multiplexing module 102 is to adopt the time division multiplexing (TDM) technology. The multiplexing module 102 divides the time slots with the code block as the granularity and realizes the multiplexing by time slot interleaving. The specific structure of the service data stream output by the multiplexing module 102 can be seen in Figure 2 As shown in the figure, 20 time slots are used as the cycle period, and a FlexE overhead code block is inserted every 1023 cycles for time slot positioning. In the specific process of service transmission, each time slot can be used as an independent channel to transmit services. 20 time slots, i.e. 20 channels, can be used to transmit 20 services.

[0004] Based on flexE multiplexing, the services carried by each time slot are pre-configured, and the service data stream output by the multiplexing module 102 cannot be switched in real time. Summary of the invention

[0005] The present application provides a service multiplexing method, a service demultiplexing method and related equipment, which can perform service switching in real time and can effectively ensure low latency of service switching.

[0006] A first aspect of an embodiment of the present invention provides a service multiplexing method, including:

[0007] Step A: The sending device inputs the bit block stream of the first service and the bit block stream of the second service into corresponding buffer areas.

[0008] Each receiving interface of the sending device is used to receive a bit block stream of a first service and a bit block stream of a second service, and the sending device can determine a first buffer area corresponding to the bit block stream of the first service and a second buffer area corresponding to the bit block stream of the second service;

[0009] The sending device may input the bit block stream of the first service into the corresponding first buffer area, and input the bit block stream of the second service into the corresponding second buffer area.

[0010] The bit block stream of the first service and the bit block stream of the second service shown in this aspect may be any two bit block streams of the multiple services received by the sending device that need to be sent to the receiving device in sequence.

[0011] Step B: The sending device sends a bit block stream of the first service to the receiving device.

[0012] The sending device may determine the priority of sending the bit block stream of the first service and the bit block stream of the second service to the receiving device.

[0013] This aspect is illustrated by taking the example that the bit block stream of the first service is sent to the receiving device before the bit block stream of the second service.

[0014] For example, if the sending device determines that the waiting time for the bit block stream of the first service to be sent is longer than the waiting time for the bit block stream of the second service to be sent, then it determines that the bit block stream of the first service is sent to the receiving device before the bit block stream of the second service.

[0015] In the case where the sending device determines that the bit block stream of the first service is sent to the receiving device before the bit block stream of the second service, the sending device may send the bit block stream of the first service to the receiving device.

[0016] Step C: The sending device determines whether to switch from the first service to the second service for service sending. If so, execute step D.

[0017] In this aspect, the sending device may determine to switch to sending the bit block stream of the second service after the bit block stream of the first service is sent.

[0018] For another example, the sending device may switch to the bit block stream of the second service for service sending after determining the preset data flow predetermined by the sending device in the bit block stream of the first service. That is, the sending device may switch to the bit block stream of the second service for service sending when the bit block stream of the first service has not been completely sent and the sending device has sent the preset data flow in the bit block stream of the first service.

[0019] Step D: The sending device sends at least one service switching indication bit block to the receiving device.

[0020] If the sending device determines to switch from the first service to the second service for service sending, the sending device may insert the at least one service switching indication bit block between the bit block stream of the first service and the bit block stream of the first service, and send the at least one service switching indication bit block to the receiving device.

[0021] The at least one service switching indication bit block is used to indicate switching from the first service to the second service for service transmission.

[0022] Step E: The sending device sends the bit block stream of the second service to the receiving device.

[0023] After the sending device completes sending the at least one service switching indication bit block, the sending device may send the bit block stream of the second service.

[0024] It can be seen that the sending device sends the bit block stream of the first service, the at least one service switching indication bit block and the bit block stream of the second service in order from front to back in sending time.

[0025] The beneficial effect of the service multiplexing method provided in this aspect is that the service switching of the sending device can realize service switching on any bit block in real time as needed. And by inserting a service switching indication bit block between the bit block streams that need to perform service switching to perform service switching, the delay and jitter in the service switching process are reduced, and the low delay of service switching is guaranteed.

[0026] The sending device shown in this embodiment can switch the high-priority service to be sent before the low-priority service, thereby realizing the preemptive sending of the high-priority service and ensuring extremely low delay jitter of the high-priority service.

[0027] This embodiment shows that the multiplexing of services is achieved through the buffer area, thereby effectively avoiding the problems of bandwidth waste and transmission delay caused by multiplexing in a way of exclusive bandwidth.

[0028] In an optional implementation of the first aspect shown in this embodiment, any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0029] In an optional implementation of the first aspect shown in this embodiment, before executing step B, the following steps are further performed:

[0030] Step B01: The sending device obtains first service data of the first service.

[0031] The first service shown in this aspect may be a non-Ethernet service.

[0032] Step B02: The sending device encodes the first service data to generate a bit block stream of the first service.

[0033] Before executing step E, the following steps are also executed:

[0034] Step E01: The sending device obtains second service data of the second service.

[0035] Step E02: The sending device encodes the second service data to generate a bit block stream of the second service.

[0036] As shown in this aspect, the sending device multiplexes data of different types of networks, so that the sending device can multiplex different types of services, so that the service multiplexing method shown in this embodiment can be applied to different network environments.

[0037] In an optional implementation manner of the first aspect shown in this embodiment, if the M1 / M2 bit block can be a 64B / 66B bit block, then M2-M1, that is, 66-64, represents the number of header synchronization header bits in each bit block.

[0038] According to the present aspect, one or more of the service switching indication bit blocks may be used to indicate switching from the bit block flow of the first service to the bit block flow of the second service.

[0039] The service switching indication bit block includes parameters O0, D1, D2, D3, C4, C5, C6 and C7, parameters D1, D2 and D3 are 8-bit data, parameters C4, C5, C6 and C7 are 7-bit data, and parameter O0 is a 4-bit control code.

[0040] In an optional implementation of the first aspect shown in this embodiment, if the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

[0041] It can be seen that for 8B / 10B coding, a special bit block and the data bit block need to be used together to indicate service switching.

[0042] It can be seen that the encoding method shown in this aspect, when used to indicate service switching, can realize real-time service switching on at least one service switching indication bit block as a service switching indication bit block, thereby reducing the delay and jitter in the service switching process and ensuring low latency of service switching.

[0043] In an optional implementation of the first aspect shown in this embodiment, the at least one service switching indication bit block also includes indication information, and the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service sent to the receiving device.

[0044] Specifically, if the service switching indication bit block is a 64B / 66B bit block, the indication information can be transmitted through any parameter D1, D2, D3, C4, C5, C6 and C7 included in the service switching indication bit block stream, or the indication information can be transmitted together through multiple service switching indication bit blocks.

[0045] As shown in this aspect, during the process of service multiplexing, the sending device can realize real-time notification of the number of bit blocks included in the bit block stream of the second service on at least one service switching indication bit block, thereby being able to notify the receiving device of the number of bit blocks included in the bit block stream of the second service while ensuring low latency.

[0046] In an optional implementation of the first aspect shown in this embodiment, before executing step D, the following steps are further performed:

[0047] Step D01: The sending device determines a target identifier.

[0048] The target identifier is an identifier corresponding to the second service.

[0049] The specific process of the sending device acquiring the target identifier may be:

[0050] The sending device may receive in advance an identifier corresponding to any one of the multiple services, and the sending device may determine the target identifier corresponding to the second service.

[0051] After receiving multiple services, the sending device may configure a corresponding identifier for any service in the multiple services, and the sending device may determine the target identifier corresponding to the second service from the configured identifiers.

[0052] Step D02: The sending device generates the at least one service switching indication bit block.

[0053] Among them, the at least one service switching indication bit block includes the target identifier, and the target identifier is used to instruct the receiving device to store the bit block stream of the second service into the target buffer area, and the target buffer area is the buffer area allocated by the receiving device for the target identifier.

[0054] As shown in this aspect, when the sending device sends the at least one service switching indication bit block including the target identifier to the receiving device, the receiving device can determine that a service switch has occurred based on the at least one service switching indication bit block, and can determine that the service has switched to the bit block stream of the second service based on the target identifier, thereby improving the efficiency of the receiving device in processing the service.

[0055] In an optional implementation manner of the first aspect shown in this embodiment, the method further includes:

[0056] If the sending device determines that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service, the sending device deletes the idle bit blocks.

[0057] Before the receiving interface of the sending device inputs the bit block stream of the multi-channel service into the corresponding buffer area tx_buf, the sending device can determine whether there is an idle bit block in the bit block stream of the multi-channel service. The idle bit block shown in this embodiment is a dedicated control bit block used for rate matching in the Ethernet standard. The idle bit block can be sent when there is no valid data transmission. It can be seen that when the sending device deletes the idle bit block, the utilization rate of the bandwidth of the sending device sending the service can be improved.

[0058] A second aspect of an embodiment of the present invention provides a service demultiplexing method, including:

[0059] Step F: The receiving device receives the bit block stream sent by the sending device.

[0060] Step G: The receiving device determines in the bit block stream whether it has received at least one service switching indication bit block sent by the sending device; if so, execute step H.

[0061] The at least one service switching indication bit block is used to instruct the sending device to switch from the first service to the second service for service sending, and the bit block stream of the first service is the bit block stream received by the receiving device before receiving the at least one service switching indication bit block.

[0062] Step H: The receiving device determines that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

[0063] If the receiving device determines that the at least one service switching indication bit block is received, the receiving device can determine that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

[0064] It can be seen that the receiving device shown in this aspect can determine that a service switch has occurred based on the at least one service switching indication bit block, and the receiving device can then determine that the receiving device sends the bit block stream of the first service, the at least one service switching indication bit block, and the bit block stream of the second service in order from front to back in reception time.

[0065] The beneficial effect of the service multiplexing method provided in this aspect is that the receiving device can determine the service switching on any bit block, reducing the delay and jitter in the service switching process, and ensuring the low latency of the service switching. In this embodiment, the demultiplexing of the service is realized through the buffer area, thereby effectively avoiding the problem of bandwidth waste and transmission delay caused by demultiplexing in a way of exclusive bandwidth.

[0066] In an optional implementation of the second aspect shown in this embodiment, any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0067] In an optional implementation of the second aspect shown in this embodiment, before executing step H, the following steps are further performed:

[0068] Step H01, the receiving device receives the bit block stream of the first service sent by the sending device;

[0069] Step H02: The receiving device decodes the bit block stream of the first service to obtain first service data of the first service.

[0070] After executing step H, the following steps are also executed:

[0071] Step H11, the receiving device receives the bit block stream of the second service sent by the sending device;

[0072] Step H12: The receiving device decodes the bit block stream of the second service to obtain first service data of the second service.

[0073] As shown in this aspect, the receiving device can demultiplex different types of services, so that the service demultiplexing method shown in this embodiment can be applied to different network environments.

[0074] In an optional implementation manner of the second aspect shown in this embodiment, if the M1 / M2 bit block can be a 64B / 66B bit block, then M2-M1, that is, 66-64, represents the number of header synchronization header bits in each bit block.

[0075] According to the present aspect, one or more of the service switching indication bit blocks may be used to indicate switching from the bit block flow of the first service to the bit block flow of the second service.

[0076] The service switching indication bit block includes parameters O0, D1, D2, D3, C4, C5, C6 and C7, parameters D1, D2 and D3 are 8-bit data, parameters C4, C5, C6 and C7 are 7-bit data, and parameter O0 is a 4-bit control code.

[0077] In an optional implementation of the second aspect shown in this embodiment, if the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

[0078] It can be seen that for 8B / 10B coding, a special bit block and the data bit block need to be used together to indicate service switching.

[0079] In an optional implementation of the second aspect shown in this embodiment, after step H, the following steps need to be performed:

[0080] Step H21: The receiving device obtains the indication information included in the at least one service switching indication bit block.

[0081] The indication information is used to indicate the number of bit blocks included in the bit block stream of the second service;

[0082] Specifically, if the service switching indication bit block is a 64B / 66B bit block, the indication information can be transmitted through any parameter D1, D2, D3, C4, C5, C6 and C7 included in the service switching indication bit block stream, or the indication information can be transmitted together through multiple service switching indication bit blocks.

[0083] Step H22: The receiving device determines the number of bit blocks included in the bit block stream of the second service according to the indication information.

[0084] As shown in this aspect, during the service demultiplexing process, the receiving device can determine the number of bit blocks included in the bit block stream of the second service on at least one service switching indication bit block, thereby ensuring low latency during the service demultiplexing process.

[0085] In an optional implementation of the second aspect shown in this embodiment, after step H, the following steps need to be performed:

[0086] Step H31: The receiving device obtains a target identifier included in the at least one service switching indication bit block.

[0087] The target identifier is an identifier corresponding to the second service;

[0088] Step H32: The receiving device stores the bit block stream of the second service into a target buffer area.

[0089] The target buffer area is a buffer area allocated by the receiving device for the target identifier.

[0090] As shown in this aspect, when the receiving device receives the at least one service switching indication bit block including the target identifier, the receiving device can determine that a service switch has occurred based on the at least one service switching indication bit block, and can determine that the service has switched to the bit block stream of the second service based on the target identifier, thereby improving the efficiency of the receiving device in processing the service.

[0091] In an optional implementation manner of the second aspect shown in this embodiment, the method further includes:

[0092] If the receiving device determines that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service, the receiving device deletes the idle bit blocks.

[0093] Before the receiving device caches the bit block stream of the multiple services to the corresponding buffer area tx_buf, the receiving device can determine whether there is an idle bit block in the bit block stream of the multiple services. The idle bit block shown in this embodiment is a dedicated control bit block used for rate matching in the Ethernet standard. The idle bit block can be sent when there is no valid data transmission. It can be seen that when the receiving device deletes the idle bit block, the efficiency of the receiving device in processing the service can be improved.

[0094] A third aspect of the embodiment of the present invention provides a sending device, including a transmitter and a multiplexer connected to the transmitter:

[0095] The transmitter is used to send a bit block stream of a first service to a receiving device;

[0096] The multiplexer is used to determine whether to switch from the first service to the second service for service transmission;

[0097] The transmitter is also used to send at least one service switching indication bit block to a receiving device if the multiplexer determines that the service is switched from the first service to the second service for service transmission. The at least one service switching indication bit block is used to indicate that the service is switched from the first service to the second service for service transmission. The transmitter is also used to send a bit block stream of the second service to a receiving device.

[0098] The sending device shown in this aspect is used to execute the service multiplexing method shown in the first aspect of this application. For the specific process of executing the service multiplexing method, please refer to the first aspect of this application for details, and the details will not be repeated here.

[0099] The beneficial effect of the sending device provided in this aspect is that the service switching of the sending device can realize service switching on any bit block in real time as needed. And by inserting a service switching indication bit block between the bit block streams that need to perform service switching to perform service switching, the delay and jitter in the service switching process are reduced, and the low delay of service switching is guaranteed.

[0100] The sending device shown in this embodiment can switch the high-priority service to be sent before the low-priority service, thereby realizing the preemptive sending of the high-priority service and ensuring the extremely low delay jitter of the high-priority service. The multiplexing of the service is realized through the buffer area shown in this embodiment, thereby effectively avoiding the problem of bandwidth waste and transmission delay caused by multiplexing in the form of exclusive bandwidth.

[0101] In an optional implementation of the third aspect shown in this embodiment, any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0102] In an optional implementation of the third aspect shown in this embodiment, the transmitter is also used to obtain first business data of the first business, encode the first business data to generate a bit block stream of the first business, obtain second business data of the second business, and encode the second business data to generate a bit block stream of the second business.

[0103] As shown in this aspect, the sending device multiplexes data of different types of networks, so that the sending device can multiplex different types of services, so that the sending device shown in this embodiment can be applied to different network environments.

[0104] In an optional implementation manner of the third aspect shown in this embodiment, if the M1 / M2 bit block is a 64B / 66B bit block, then M2-M1, that is, 66-64, represents the number of header synchronization header bits in each bit block.

[0105] According to the present aspect, one or more of the service switching indication bit blocks may be used to indicate switching from the bit block flow of the first service to the bit block flow of the second service.

[0106] The service switching indication bit block includes parameters O0, D1, D2, D3, C4, C5, C6 and C7, parameters D1, D2 and D3 are 8-bit data, parameters C4, C5, C6 and C7 are 7-bit data, and parameter O0 is a 4-bit control code.

[0107] In an optional implementation of the third aspect shown in this embodiment, if the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

[0108] It can be seen that for 8B / 10B coding, a special bit block and the data bit block need to be used together to indicate service switching.

[0109] It can be seen that the receiving device shown in this aspect, in the process of indicating service switching, can realize real-time service switching on at least one service switching indication bit block as a service switching indication bit block, thereby reducing the delay and jitter in the service switching process and ensuring low latency of service switching.

[0110] In an optional implementation of the third aspect shown in this embodiment, the at least one service switching indication bit block also includes indication information, and the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service sent to the receiving device.

[0111] Specifically, if the service switching indication bit block is a 64B / 66B bit block, the indication information can be transmitted through any parameter D1, D2, D3, C4, C5, C6 and C7 included in the service switching indication bit block stream, or the indication information can be transmitted together through multiple service switching indication bit blocks.

[0112] As shown in this aspect, during the process of service multiplexing, the sending device can realize real-time notification of the number of bit blocks included in the bit block stream of the second service on at least one service switching indication bit block, thereby being able to notify the receiving device of the number of bit blocks included in the bit block stream of the second service while ensuring low latency.

[0113] In an optional implementation of the third aspect shown in this embodiment, the multiplexer is also used to determine a target identifier, which is an identifier corresponding to the second service, and generate at least one service switching indication bit block, wherein the at least one service switching indication bit block includes the target identifier, and the target identifier is used to instruct the receiving device to store the bit block stream of the second service to a target cache area, and the target cache area is a cache area allocated by the receiving device for the target identifier.

[0114] As shown in this aspect, when the sending device sends the at least one service switching indication bit block including the target identifier to the receiving device, the receiving device can determine that a service switch has occurred based on the at least one service switching indication bit block, and can determine that the service has switched to the bit block stream of the second service based on the target identifier, thereby improving the efficiency of the receiving device in processing the service.

[0115] In an optional implementation of the third aspect shown in this embodiment, the multiplexer is further used to delete the idle bit blocks if it is determined that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service.

[0116] Before the sending device inputs the bit block stream of the multi-channel service into the corresponding buffer area tx_buf, the sending device can determine whether there is an idle bit block in the bit block stream of the multi-channel service. The idle bit block shown in this embodiment is a dedicated control bit block used for rate matching in the Ethernet standard. The idle bit block can be sent when there is no valid data transmission. It can be seen that when the sending device deletes the idle bit block, the utilization rate of the bandwidth of the sending device sending the service can be improved.

[0117] A fourth aspect of an embodiment of the present invention provides a receiving device, including:

[0118] a receiver, used to determine whether at least one service switching indication bit block sent by a sending device is received, wherein the at least one service switching indication bit block is used to instruct the sending device to switch from a first service to a second service for service transmission, and the bit block stream of the first service is a bit block stream received before receiving the at least one service switching indication bit block;

[0119] The demultiplexer is configured to determine, if it is determined that the at least one service switching indication bit block is received, that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

[0120] wherein the receiver is connected to the demultiplexer;

[0121] This aspect is used to execute the service demultiplexing method shown in the second aspect of this application. For the specific process of executing the service demultiplexing method, please refer to the second aspect of this application for details, and the details will not be repeated here.

[0122] In an optional implementation of the fourth aspect shown in this embodiment, any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0123] In an optional implementation of the fourth aspect shown in this embodiment, the receiver is also used to receive the bit block stream of the first service sent by the sending device; the demultiplexer is also used to decode the bit block stream of the first service to obtain the first service data of the first service; the receiver is also used to receive the bit block stream of the second service sent by the sending device; the demultiplexer is also used to decode the bit block stream of the second service to obtain the first service data of the second service.

[0124] As shown in this aspect, the receiving device can demultiplex different types of services, so that the service demultiplexing method shown in this embodiment can be applied to different network environments.

[0125] In an optional implementation manner of the fourth aspect shown in this embodiment, if the M1 / M2 bit block is a 64B / 66B bit block, then M2-M1, that is, 66-64, represents the number of header synchronization header bits in each bit block.

[0126] According to the present aspect, one or more of the service switching indication bit blocks may be used to indicate switching from the bit block flow of the first service to the bit block flow of the second service.

[0127] The service switching indication bit block includes parameters O0, D1, D2, D3, C4, C5, C6 and C7, parameters D1, D2 and D3 are 8-bit data, parameters C4, C5, C6 and C7 are 7-bit data, and parameter O0 is a 4-bit control code.

[0128] In an optional implementation of the fourth aspect shown in this embodiment, if the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

[0129] It can be seen that for 8B / 10B coding, a special bit block and the data bit block need to be used together to indicate service switching.

[0130] In an optional implementation of the fourth aspect shown in this embodiment, the demultiplexer is also used to obtain indication information included in the at least one service switching indication bit block, the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service, and determine the number of bit blocks included in the bit block stream of the second service according to the indication information.

[0131] As shown in this aspect, during the service demultiplexing process, the receiving device can determine the number of bit blocks included in the bit block stream of the second service on at least one service switching indication bit block, thereby ensuring low latency during the service demultiplexing process.

[0132] In an optional implementation of the fourth aspect shown in this embodiment, the demultiplexer is also used to obtain a target identifier included in the at least one service switching indication bit block, wherein the target identifier is an identifier corresponding to the second service, and stores the bit block stream of the second service to a target cache area, and the target cache area is a cache area allocated by the receiving device for the target identifier.

[0133] As shown in this aspect, when the receiving device receives the at least one service switching indication bit block including the target identifier, the receiving device can determine that a service switch has occurred based on the at least one service switching indication bit block, and can determine that the service has switched to the bit block stream of the second service based on the target identifier, thereby improving the efficiency of the receiving device in processing the service.

[0134] In an optional implementation of the fourth aspect shown in this embodiment, the demultiplexer is further used to delete the idle bit blocks if it is determined that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service.

[0135] Before the receiving device caches the bit block stream of the multiple services to the corresponding buffer area tx_buf, the receiving device can determine whether there is an idle bit block in the bit block stream of the multiple services. The idle bit block shown in this embodiment is a dedicated control bit block used for rate matching in the Ethernet standard. The idle bit block can be sent when there is no valid data transmission. It can be seen that when the receiving device deletes the idle bit block, the efficiency of the receiving device in processing the service can be improved.

[0136] The beneficial effects of the service multiplexing method, service demultiplexing method and related equipment provided in the present application are: when the sending device determines to switch from the first service to the second service for service sending, the sending device can insert at least one service switching indication bit block between the bit block stream of the first service and the bit block stream of the second service, so that the sending device can send the bit block stream of the first service, at least one service switching indication bit block and the bit block stream of the second service to the receiving device in sequence. It can be seen that the sending device can realize real-time service switching on at least one service switching indication bit block, thereby reducing the delay and jitter in the service switching process and ensuring low latency of service switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0137] Figure 1 A schematic diagram of the structure of a network device provided by the prior art;

[0138] Figure 2 A schematic diagram of the structure of the service data flow output by the network equipment provided by the prior art;

[0139] Figure 3 A schematic diagram of the structure of an embodiment of the communication network provided by the present application;

[0140] Figure 4 A schematic diagram of the hardware structure of an embodiment of the network device provided in this application;

[0141] Figure 5 A schematic diagram of the hardware structure of another embodiment of the network device provided in this application;

[0142] Figure 6 A flowchart of an embodiment of the service multiplexing method provided in this application;

[0143] Figure 7 A schematic diagram of an embodiment of the basic framework of network communication of the network device provided by the present application;

[0144] Figure 8 A schematic diagram of the process of multiplexing the bit block streams of multiple services by the multiplexer provided in this application;

[0145] Fig. 9 A flowchart of an embodiment of the service demultiplexing method provided in this application;

[0146] Fig.10 A schematic diagram of an embodiment of a process of demultiplexing a bit block stream by a demultiplexer provided in the present application;

[0147] Fig.11 A schematic diagram of the process of multiplexing or demultiplexing services by the network device provided in this application;

[0148] Fig.12 A flowchart of another embodiment of the service multiplexing method provided in this application;

[0149] Fig.13 A schematic diagram of the structure of an embodiment of the multiplexer provided in this application;

[0150] Fig.14 A flowchart of another embodiment of the service demultiplexing method provided in this application;

[0151] Fig.15 A schematic diagram of the structure of an embodiment of a demultiplexer provided in the present application;

[0152] Fig.16 A schematic diagram of another embodiment of the process of multiplexing or demultiplexing services by a network device provided in the present application;

[0153] Fig.17 A flowchart of another embodiment of the service demultiplexing method provided in this application;

[0154] Fig.18 A schematic diagram of the structure of an embodiment of the multiplexer provided in this application;

[0155] Fig.19 A flowchart of another embodiment of the service demultiplexing method provided in this application;

[0156] Fig. 20 A schematic diagram of the structure of an embodiment of a demultiplexer provided in the present application;

[0157] Fig.21 A schematic diagram of another embodiment of the process of multiplexing or demultiplexing services by a network device provided in the present application;

[0158] Fig. 22 A schematic diagram of a codeword structure of an embodiment of a service switching indication bit block stream provided in the present application;

[0159] Fig.23 A schematic diagram of the structure of an embodiment of a sending device provided in this application;

[0160] Fig.24 A schematic diagram of the structure of an embodiment of a receiving device provided in this application. DETAILED DESCRIPTION

[0161] The present application provides a communication network, which can implement the service multiplexing and service demultiplexing methods shown in the present application. Figure 3 The structure of the communication network provided by the present application is exemplarily described as follows:

[0162] The communication network includes at least two interconnected network devices 300. This embodiment does not limit the specific number of the network devices 300 included in the communication network, and this embodiment does not limit the specific number of network devices 300 connected to any network device 300.

[0163] The network device shown in this embodiment may be a network card, a switch, a router and other devices.

[0164] The network device can be applied to network environments such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0165] The following combination Figure 4 The embodiment shown describes the hardware structure of the network device:

[0166] This embodiment is illustratively described by taking the network device as a sending device as an example, wherein the network device as a sending device is used to multiplex the received service data and send the multiplexed bit block stream to the receiving device.

[0167] This embodiment is exemplified by taking the example of the network device 400 being used to receive service data sent by the first network device 401 , the second network device 402 , the third network device 403 , and the Nth network device 404 .

[0168] This embodiment does not limit the amount of service data that the network device 400 can receive.

[0169] Specifically, each receiving interface included in the network device 400 is used to receive service data sent by different network devices.

[0170] by Figure 4 As shown in the example, the receiving interface 406 is used to receive the business data sent by the first network device 401, the receiving interface 407 is used to receive the business data sent by the second network device 402, the receiving interface 408 is used to receive the business data sent by the third network device 403, and the receiving interface 409 is used to receive the business data sent by the Nth network device 404.

[0171] This embodiment does not limit the number of receiving interfaces included in the network device 400.

[0172] The sending interface 405 of the network device is used to receive the service data sent by each receiving interface, and perform service multiplexing through the service multiplexing method shown in the present application to form a bit block stream.

[0173] This embodiment does not limit the specific number of the sending interfaces 405 included in the network device.

[0174] Figure 4 The embodiment shown in the figure illustrates the hardware structure of the network device as a sending device in the communication network. Figure 5 The embodiment shown illustrates the hardware structure when the network device is used as a receiving device:

[0175] In this embodiment, the network device as a receiving device is used to receive the multiplexed bit block stream, and the network device is also used to demultiplex the multiplexed bit block stream.

[0176] The receiving port 501 of the network device 500 shown in this embodiment is used to receive a multiplexed bit block stream.

[0177] This embodiment does not limit the specific number of the receiving interfaces 501 included in the network device.

[0178] The receiving port 501 is used to demultiplex the bit block stream through the service demultiplexing method shown in the present application to form a bit block stream corresponding to each service. The receiving interface 501 sends the bit block stream corresponding to each service to the corresponding sending interface, such as the receiving interface 501 sends the bit block stream of the first service to the sending interface 502, the receiving interface 501 sends the bit block stream of the second service to the sending interface 503, the receiving interface 501 sends the bit block stream of the third service to the sending interface 504, and the receiving interface 501 sends the bit block stream of the Nth service to the sending interface 505.

[0179] This embodiment does not limit the number of sending interfaces included in the network device 500.

[0180] Based on the above embodiments, the following Figure 6 The figure shows a detailed description of the specific process of how to perform service multiplexing on received service data when the network device acts as a sending device.

[0181] This embodiment is described by taking application in Ethernet as an example:

[0182] Step 601: Input the bit block stream of multiple services into the corresponding buffer area tx_buf.

[0183] Specifically, each receiving interface of the sending device shown in this embodiment is used to receive the bit block stream of multiple services, and the receiving interface can determine the buffer area tx_buf corresponding to the bit block stream of each service, and then the bit block stream of multiple services can be input into the corresponding buffer area tx_buf.

[0184] Optionally, before the receiving interface of the sending device inputs the bit block stream of the multi-channel service into the corresponding buffer area tx_buf, the sending device may determine whether there is an idle bit block in the bit block stream of the multi-channel service. The idle bit block shown in this embodiment is a special control bit block used for rate matching in the Ethernet standard. The idle bit block can be sent when there is no valid data transmission.

[0185] If the receiving interface of the sending device determines that there are idle bit blocks in the bit block stream of the multi-channel service, the receiving interface of the sending device can directly discard the idle bit blocks.

[0186] Step 602: Arbitrate the buffer area tx_buf to generate arbitration result information.

[0187] In this embodiment, the multiplexer located in the transmission interface of the transmitting device can be used to arbitrate the buffer area tx_buf to generate arbitration result information for service multiplexing.

[0188] The following describes the configuration of the multiplexer shown in this embodiment:

[0189] like Figure 7 As shown, the basic framework of the network communication of the sending device shown in this embodiment is open system interconnection (OSI). The OSI model divides the network communication work of the sending device into 7 layers, namely physical layer, data link layer, network layer, transport layer, session layer, presentation layer and application layer.

[0190] Specifically, the physical layer includes a physical coding sublayer (PCS), forward error correction (FEC), a physical medium attachment (PMA), and a physical medium dependent (PMD).

[0191] More specifically, as shown in 71, the physical coding sublayer PCS of the sending device includes multiple coding modules 712 for encoding service data. The coding modules 712 are arranged in the receiving interface, and the coding modules 712 can encode the received service data to generate a bit block stream, and input the bit block stream to the multiplexer 713.

[0192] The encoding module 712 shown in this embodiment can encode the business data to generate any bit block in the bit block stream as an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0193] In this embodiment, the physical coding sublayer PCS includes a multiplexer 713 for multiplexing the encoded bit block streams of the multiple services, and the multiplexer 713 is arranged in the sending interface.

[0194] The physical coding sublayer PCS further includes a scrambling module 714 and a processing module 715 arranged in the transmitting interface, wherein the scrambling module 714 is used to perform scrambling processing on the multiplexed bit block stream;

[0195] The processing module 715 is used to perform corresponding processing on the multiplexed bit block stream, such as distributing the multiplexed bit block stream to multiple physical links and periodically inserting alignment markers. It should be clear that the description of the processing performed by the processing module 715 in this embodiment is an optional example and is not limited.

[0196] The specific process of how the multiplexer arbitrates the buffer area tx_buf to generate arbitration result information for service multiplexing is described below:

[0197] The multiplexer determines whether the buffer area tx_buf that caches the bit block streams of each service satisfies the target condition. Only when the buffer area tx_buf satisfies the target condition, the multiplexer arbitrates the buffer area tx_buf to generate arbitration result information.

[0198] The target condition shown in this embodiment is that the buffer area tx_buf has data to be sent, and the target condition is also that the flow control of the bit block flow of the service buffered by the buffer area tx_buf allows the data to be sent.

[0199] The multiplexer determines the arbitration result information among the multiple buffer areas tx_buf that meet the target condition. The arbitration result information shown in this embodiment can be used to indicate the priority of sending to the receiving device from the bit block streams cached respectively by the multiple buffer areas tx_buf that meet the target condition, so that the sending device sends the bit block stream of the service to the receiving device in a descending order of priority according to the priority indicated by the arbitration result information.

[0200] Optionally, the bit block streams cached in the plurality of buffer areas tx_buf respectively satisfying the target condition and indicated by the arbitration result information shown in this embodiment are sorted in descending order according to the waiting time for sending of the bit block streams cached in the buffer area tx_buf.

[0201] Optionally, the bit block streams respectively cached by the multiple buffer areas tx_buf that meet the target condition and are indicated by the arbitration result information shown in this embodiment are sorted in order from least to most according to the data flow rate that has been sent by the bit block streams cached by the buffer area tx_buf.

[0202] It should be clarified that the above description of the priority of sending to the receiving device in the bit block streams respectively cached in the multiple buffer areas tx_buf that meet the target condition indicated by the arbitration result information is an optional example and is not limited.

[0203] Step 603: Send the bit block stream of the first service to a receiving device.

[0204] In this embodiment, the receiving device determines the bit block stream of the first service that currently needs to be sent to the receiving device from the bit block streams respectively buffered in the plurality of buffer areas tx_buf that meet the target condition and are indicated by the arbitration result information.

[0205] Step 604 : Determine whether to switch from the first service to the second service for service sending. If so, execute step 605 .

[0206] In this embodiment, the multiplexer may determine whether to switch from the first service to the second service for service transmission based on the arbitration result information.

[0207] Optionally, the priority order indicated by the arbitration result information may be: after the sending device completes sending the bit block stream of the first service, it sends the bit block stream of the second service.

[0208] Optionally, the priority sorting indicated by the arbitration result information may also be: after the sending device sends the preset data traffic in the bit block stream of the first service, it sends the bit block stream of the second service, wherein the preset data traffic is the data traffic indicated by the arbitration result information, that is, the sending device shown in this embodiment can switch to the bit block stream of the second service for service sending after the sending device has sent the preset data traffic in the bit block stream of the first service when the bit block stream of the first service has not been completely sent.

[0209] Step 605: Insert at least one service switching indication bit block between the bit block stream of the first service and the second bit block stream.

[0210] like Figure 8 As shown in the example, the multiplexer can determine that the bit block stream of the first service and the bit block stream of the second service are sent to the receiving device in sequence according to the priority sorting indicated by the arbitration result information, and the multiplexer inserts at least one service switching indication bit block 801 between the bit block stream of the first service and the bit block stream of the second service.

[0211] The at least one service switching indication bit block is used to indicate switching from the first service to the second service for service transmission.

[0212] The at least one service switching indication bit block shown in this embodiment further includes a target identifier, and the target identifier is an identifier corresponding to the bit block flow of the second service.

[0213] The specific process of the sending device obtaining the target identifier shown in this embodiment is not limited in this embodiment, as long as the sending device can determine the target identifier corresponding to the bit block stream of the second service.

[0214] For example, the sending device may receive in advance an identifier corresponding to any service in the multiple services, and then the sending device may determine the target identifier corresponding to the second service.

[0215] For another example, after receiving multiple services, the sending device may configure a corresponding identifier for any service in the multiple services, and the sending device may determine the target identifier corresponding to the second service from the configured identifiers.

[0216] It can be seen that when the sending device sends the at least one service switching indication bit block including the target identifier to the receiving device, the receiving device can determine that the service has been switched based on the at least one service switching indication bit block, and can determine that the service has been switched to the bit block stream of the second service based on the target identifier.

[0217] This embodiment does not limit the number of the service switching indication bit blocks.

[0218] Step 606: Send the at least one service switching indication bit block to the receiving device.

[0219] In this embodiment, after the sending device completes sending the bit block stream of the first service to the receiving device, the sending device can send the at least one service switching indication bit block inserted between the bit block stream of the first service and the bit block stream of the second service.

[0220] Step 607: Send the bit block stream of the second service to the receiving device.

[0221] In this embodiment, after the sending device completes sending the at least one service switching indication bit block, the sending device may send the bit block stream of the second service.

[0222] It can be seen that the sending device sends the bit block stream of the first service, the at least one service switching indication bit block and the bit block stream of the second service in order from front to back in sending time.

[0223] Since the state of the buffer area tx_buf changes each time a service switching occurs in the sending device, the sending device shown in this embodiment can cyclically execute steps 602 to 607 shown in this embodiment until all the bit block streams to be sent on the buffer area tx_buf that meet the target conditions are sent to the receiving device.

[0224] Step 608: If it is detected that no bit block stream needs to be sent in all the buffer areas tx_buf, an idle bit block is sent to the receiving device.

[0225] In this embodiment, when the multiplexer detects that the bit block stream on the buffer area tx_buf that meets the target condition has been sent, the sending device sends an idle bit block to the receiving device.

[0226] The service multiplexing method provided in this embodiment has the beneficial effect that the service switching of the sending device is not affected by the service currently being transmitted, and the service switching can be implemented in real time on any bit block as needed. Moreover, by inserting a service switching indication bit block between the bit block streams that need to perform service switching to perform service switching, the delay and jitter in the service switching process are reduced, and the low latency of service switching is guaranteed.

[0227] The sending device shown in this embodiment can switch the high-priority service to be sent before the low-priority service, thereby realizing the preemptive sending of the high-priority service and ensuring extremely low delay jitter of the high-priority service.

[0228] This embodiment shows that the multiplexing of services is achieved through the buffer area, thereby effectively avoiding the problems of bandwidth waste and transmission delay caused by multiplexing in a way of exclusive bandwidth.

[0229] Above Figure 6 The embodiment shown in the figure illustrates the specific process of how to perform service multiplexing from the perspective of the sending device. Fig. 9 The figure illustrates the specific process of performing service demultiplexing from the perspective of the receiving device.

[0230] Step 901: Receive a bit block stream sent by the sending device.

[0231] Optionally, the receiving interface of the receiving device shown in this embodiment can determine whether there are idle bit blocks in the bit block stream sent by the sending device. If the receiving device determines that there are idle bit blocks in the bit block stream, the receiving interface of the receiving device can directly discard the idle bit blocks.

[0232] Step 902 : Detect whether there is at least one service switching indication bit block in the bit block stream; if so, execute step 903 .

[0233] In this embodiment, the demultiplexer of the receiving device detects whether each received bit block is a service switching indication bit block.

[0234] If the demultiplexer receives one service switching indication bit block or receives multiple consecutive service switching indication bit blocks, step 903 is executed.

[0235] Wherein, the demultiplexer is arranged in the receiving interface of the receiving device.

[0236] The following describes the configuration of the demultiplexer shown in this embodiment:

[0237] like Figure 7As shown, the basic framework of the network communication of the receiving device shown in this embodiment can be referred to the basic framework of the network communication of the sending device, and will not be described in detail in this embodiment.

[0238] Specifically, as shown in 72, the physical coding sublayer PCS of the receiving device includes multiple processing modules 724, and the processing module 724 is used to receive data streams of multiple physical links and align and sort the data streams according to the alignment identifier. It should be clear that the description of the processing performed by the processing module 724 in this embodiment is an optional example and is not limited.

[0239] The physical coding sublayer PCS further includes a descrambling module 723, and the descrambling module 723 is used to perform descrambling processing on the demultiplexed service data.

[0240] The physical coding sublayer PCS further includes a demultiplexer 722, and the demultiplexer 722 is configured to store the bit block stream into a buffer area corresponding to the bit block stream.

[0241] The physical coding sublayer PCS further includes a decoding module 721, and the decoding module 721 is used to decode the demultiplexed bit block stream to generate service data.

[0242] Any bit block in the bit block stream shown in this embodiment is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0243] Optionally, after receiving the complete bit block stream sent by the sending device, the receiving device shown in this embodiment may detect the bit blocks included in the bit block stream one by one to determine all the service switching indication bit blocks included in the bit block stream.

[0244] Optionally, after receiving a bit block sent by the sending device, the receiving device shown in this embodiment may detect the currently received bit block to determine whether the currently received bit block is the service switching indication bit block.

[0245] Step 903: Determine that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

[0246] The following describes how the demultiplexer determines that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service:

[0247] The receiving device and the sending device shown in this embodiment may agree that the at least one service switching indication bit block is used to indicate service switching. When the demultiplexer receives the at least one service switching indication bit block, the demultiplexer can determine that a service switching has occurred between the bit block stream of the first service and the bit block stream of the second service.

[0248] The bit block stream of the first service is the bit block stream received by the receiving device before receiving the at least one service switching indication bit block, and the bit block stream of the second service is the bit block stream received by the receiving device after receiving the at least one service switching indication bit block.

[0249] Specifically, the at least one service switching indication bit block shown in this embodiment includes a target identifier, and the target identifier is an identifier corresponding to the bit block flow of the second service.

[0250] The receiving device can determine the corresponding bit block stream of the second service according to the target identifier, and the receiving device can determine to receive the bit block stream of the second service after receiving the at least one service switching indication bit block.

[0251] Optionally, the receiving device shown in this embodiment can pre-receive an identifier corresponding to any service in the multi-channel services, and then after receiving the target identifier sent by the sending device, the receiving device can determine the second service corresponding to the target identifier.

[0252] Optionally, the receiving device may pre-receive a set of identifiers sent by the sending device, where the set of identifiers includes identifiers corresponding to any one of the multiple services. After receiving the target identifier sent by the sending device, the receiving device may determine the second service corresponding to the target identifier.

[0253] It can be seen that when the sending device sends the at least one service switching indication bit block including the target identifier to the receiving device, the receiving device can determine that the service has been switched based on the at least one service switching indication bit block, and can determine the bit block stream of the service switching to the second service based on the target identifier.

[0254] Step 904: Store the bit block stream of the second service into a target buffer area.

[0255] In this embodiment, after receiving an identifier corresponding to any service in the multiple services, the demultiplexer can allocate a buffer area to any identifier to establish a corresponding relationship between any service and a buffer area.

[0256] like Fig.10 As shown, it is taken as an example that the demultiplexer receives the bit block stream of the first service and the bit block stream of the second service.

[0257] The demultiplexer may pre-allocate a first buffer area tx_buf for the first service and allocate a second buffer area tx_buf for each of the second services.

[0258] When the demultiplexer obtains the target identifier included in the at least one service switching indication bit block, the demultiplexer can determine a pre-allocated target cache area corresponding to the target identifier, and then the demultiplexer can store the bit block stream of the second service in the target cache area.

[0259] Steps 902 to 904 shown in this embodiment are executed cyclically until the bit block streams of any service received by the receiving device are stored in the corresponding buffer area.

[0260] The beneficial effect of the service demultiplexing method provided in this embodiment is that the receiving device determines that the service has switched by detecting the service switching indication bit block, so that the service switching can be realized on any bit block in real time, reducing the delay and jitter in the service switching process and ensuring low latency of the service switching.

[0261] This embodiment shows that the demultiplexing of services is achieved through the buffer area, thereby effectively avoiding the problems of bandwidth waste and transmission delay caused by demultiplexing in a way of exclusive bandwidth.

[0262] In order to better understand the specific process of the sending device performing service multiplexing shown in the present application, the specific process of the sending device performing service multiplexing is exemplarily described below in combination with specific service types:

[0263] This embodiment is exemplified by how the sending device implements service multiplexing in the full-duplex mode of Ethernet.

[0264] like Fig.11 As shown, this embodiment takes the case where all services received by the sending device are Ethernet packet services as an example.

[0265] The Ethernet packet services specifically include: delay-sensitive packet services (express media access control, eMAC) and low-priority packet services (preemptable media access control, pMAC).

[0266] Among them, the delay sensitivity of the eMAC service is higher than that of the pMAC service.

[0267] The following combination Fig.12 The step flow chart shown in the figure describes in detail the process of service multiplexing of this embodiment:

[0268] Step 1201: The first buffer area Tx_buf buffers the 64B / 66B bit block stream output from the PCS up-part of the eMAC.

[0269] The PCS up-part of the transmitting device (The 64B / 66B encoder and decoder part of aPCS, PCS up-part), that is, Figure 7 An encoding module 712 is shown for performing encoding.

[0270] The first Tx_buf of the sending device shown in this embodiment is used to cache the eMAC service. After the sending device receives the eMAC service, the sending device can cache the eMAC service to the first Tx_buf corresponding to the eMAC service.

[0271] In Ethernet, the data stream of the eMAC service is a 64B / 66B bit block stream.

[0272] Step 1202: The second Tx_buf buffers the 64B / 66B bit block stream output from the PCS up-part of the pMAC.

[0273] The second Tx_buf of the sending device shown in this embodiment is used to buffer the pMAC service. After the sending device receives the pMAC service, the sending device can buffer the pMAC service to the second Tx_buf corresponding to the pMAC service.

[0274] In Ethernet, the data stream of the pMAC service is a 64B / 66B bit block stream.

[0275] In this embodiment, in order to improve the utilization rate of bandwidth, the multiplexer may detect whether there are idle bit blocks in the first Tx_buf and the second Tx_buf;

[0276] Specifically, the multiplexer may check whether there is an idle bit block in the inter-packet-gap (IPG) in the 64B / 66B bit block stream output by the PCS up-part. If yes, the multiplexer may delete the idle bit block in the IPG.

[0277] Among them, the specific description of the multiplexer please refer to the above embodiment, and will not be repeated in this embodiment.

[0278] Optionally, the multiplexer may perform flow control on the bit block flow in the buffer area, and the specific process is as follows:

[0279] The multiplexer may detect the bit block stream in each buffer area periodically or in real time. If it is detected that the data volume of the bit block stream in the buffer area is greater than or equal to a preset threshold, the multiplexer may send indication information for indicating the suspension of data transmission to the sending device, and the sending device may suspend the input of the bit block stream of the service to the PCS up-part. Thereafter, if the multiplexer detects that the data volume of the bit block stream in the buffer area is less than the preset threshold, the multiplexer may send indication information for indicating the sending of data to the sending device, and the sending device may input the bit block stream of the service to the PCS up-part.

[0280] Step 1203 , check whether the first tx_buf and the second tx_buf both meet the target condition, if not, execute step 1204 , if yes, execute step 1205 .

[0281] Specifically, the multiplexer is used to detect whether the first tx_buf and the second tx_buf both meet the target condition. The present embodiment is described in detail below in conjunction with the specific structure of the multiplexer:

[0282] like Fig.13 As shown, the arbitration module 1302 in the multiplexer that is in communication connection with each buffer area tx_buf is used to detect whether the first tx_buf and the second tx_buf both meet the target condition.

[0283] The target condition shown in this embodiment is the data to be sent by the first tx_buf and the second tx_buf, and the target condition is also that the flow control of the bit block stream of the service cached by the first tx_buf and the second tx_buf allows the sending of data. For the specific description of the target condition, please refer to the above embodiment, which will not be repeated in this embodiment.

[0284] Step 1204: Send an idle bit block to a receiving device.

[0285] Specifically, the multiplexer of the sending device is used to send idle bit blocks to the receiving device.

[0286] In this embodiment, when the multiplexing module 1301 of the multiplexer determines that both the first tx_buf and the second tx_buf do not meet the target condition, the multiplexing module 1301 is used to send an idle bit block to the receiving device.

[0287] Step 1205: Send the bit block stream of the eMAC service buffered by the first tx_buf to the receiving device.

[0288] Specifically, the arbitration module 1302 in the multiplexer that is in communication with the multiplexing module 1301 may arbitrate the bit block streams in each tx_buf to determine the bit block stream in each tx_buf that is first sent to the receiving device.

[0289] In this embodiment, when the arbitration module 1302 determines that the delay sensitivity of the eMAC service is higher than the delay sensitivity of the pMAC service, the arbitration module 1302 can determine that the first tx_buf cached with the eMAC service has a higher priority than the buffer area cached with the pMAC service, and the arbitration module 1302 can determine that the bit block stream cached by the first tx_buf is sent to the receiving device.

[0290] This embodiment is illustratively described by taking the example of determining the priority of the bit block stream sent to the receiving device based on the delay sensitivity of the service.

[0291] Step 1206: Determine whether service switching occurs. If so, execute step 1207.

[0292] In this embodiment, the multiplexing module 1301 of the multiplexer is used to determine whether service switching occurs, that is, the multiplexing module 1301 determines whether to switch from the eMAC service to the pMAC service for service transmission.

[0293] Specifically, when the arbitration module 1302 arbitrates the bit block streams in each buffer area, arbitration result information can be generated. The arbitration module 1302 can send the arbitration result information to the multiplexing module 1301, and the multiplexing module 1301 can determine whether service switching occurs based on the arbitration result information.

[0294] The specific description of the arbitration result information is shown in the above embodiment, and will not be repeated in this embodiment.

[0295] Step 1207: Insert the service switching indication bit block between the bit block stream of the eMAC service and the bit block stream of the pMAC service.

[0296] When the multiplexing module 1301 determines that the service switching indication bit block needs to be inserted according to the arbitration result information, the insertion module 1303 communicatively connected to the multiplexing module 1301 can insert the service switching indication bit block between the bit block stream of the eMAC service and the bit block stream of the pMAC service.

[0297] The service switching indication bit block shown in this embodiment is a tag TAG bit block, and the number of the TAG bit block is at least one.

[0298] The service switching indication bit block is described in detail below:

[0299] In Ethernet, the service switching indication bit block shown in this embodiment is a 64B / 66B bit block, wherein M2-M1, that is, 66-64, represents the number of header synchronization header bits in each bit block.

[0300] This embodiment takes the number of the service switching indication bit blocks as one as an example for illustrative description: wherein the structure of the codeword of the 64B / 66B bit block is shown in Fig. 22 As shown:

[0301] The service switching indication bit block shown in this embodiment is exemplified by taking parameters O0, D1, D2, D3, C4, C5, C6 and C7 as an example:

[0302] Among them, parameters D1, D2 and D3 are 8-bit data, parameters C4, C5, C6 and C7 are 7-bit data, parameter O0 is a 4-bit control code used to indicate the category of the bit block including parameter O0. In this embodiment, the bit block including parameter O0 is defined by parameter O0 for indicating service switching.

[0303] Specifically, the sending device shown in this embodiment sets the value of O0 to 0x4 to identify the bit block including the parameter O0 as a service switching indication bit block.

[0304] The value of O0 in this embodiment is set to 0x4 as an optional example, and may also be set to other values ​​not defined in the existing standards.

[0305] The parameters D1, D2, and D3 included in the service switching indication bit block carry three-byte parameters, and the target identifier can be transmitted through the three-byte parameters carried by D1, D2, and D3. The target identifier is an identifier corresponding to the bit block stream of the pMAC service.

[0306] In this embodiment, the description of transmitting the target identifier through D1, D2 and D3 is an optional example and is not limited. In a specific application, the target identifier can be transmitted through any parameter among parameters D1, D2, D3, C4, C5, C6 and C7, or the target identifier can be transmitted together through multiple service switching indication bit blocks.

[0307] For a detailed description of the target identifier, please refer to the above embodiment, which will not be described in detail in this embodiment.

[0308] Optionally, the service switching indication bit block also includes indication information, and the indication information is used to indicate the number of bit blocks included in the bit block stream of the pMAC service sent to the receiving device.

[0309] In this embodiment, the indication information may be transmitted through any parameter of the parameters D1, D2, D3, C4, C5, C6 and C7 included in the service switching indication bit block stream, or may be transmitted together through multiple service switching indication bit blocks.

[0310] Optionally, during the process of the arbitration module 1302 making an adjudication on the pMAC service, the arbitration module 1302 may determine to send all the bit blocks included in the pMAC service to the receiving device, then the indication information included in the service switching indication bit block inserted by the insertion module 1303 may indicate the number of all bit blocks of the pMAC service.

[0311] Optionally, in the process of the arbitration module 1302 making an adjudication on the pMAC service, the arbitration module 1302 may determine not to send all the bit blocks included in the pMAC service to the receiving device, that is, to send a partial bit block stream included in the pMAC service. Then, the indication information included in the service switching indication bit block inserted by the insertion module 1303 may include the number of partial bit blocks in the pMAC service that need to be sent to the receiving device.

[0312] Step 1208: Send the service switching indication bit block to the receiving device.

[0313] Step 1209: Send the bit block stream of the pMAC service to the receiving device.

[0314] In this embodiment, after the sending device completes sending the service switching indication bit block, the sending device may send the bit block stream of the pMAC service.

[0315] It can be seen that the sending device sends the bit block stream of the eMAC service, the service switching indication bit block and the bit block stream of the pMAC service in sequence according to the order of sending time from front to back.

[0316] Step 1210: If it is detected that no bit block stream needs to be sent in all the buffer areas tx_buf, an idle bit block is sent to the receiving device.

[0317] In this embodiment, when the multiplexer detects that the first tx_buf meets the target condition and the bit block stream on the first tx_buf has been sent, the sending device sends an idle bit block to the receiving device.

[0318] It should be clear that the description of each module included in the multiplexer in this embodiment is an optional example and is not limited thereto, as long as the multiplexer can execute the service multiplexing process shown in this embodiment.

[0319] This embodiment is described by taking the application to Ethernet packet services as an example. The service multiplexing shown in this application can also be applied to low-speed networks.

[0320] In this application mode, the number of the service switching indication bit blocks is multiple, and the service switching indication bit blocks are 8B / 10B bit blocks.

[0321] Optionally, this embodiment is illustratively described by taking the example that the number of the service switching indication bit blocks is four.

[0322] The structure of the service switching indication bit block is shown in Table 1:

[0323] Table 1

[0324]

[0325] For 8B / 10B encoding, the structure of the service switching indication bit block can be K28.5 / D18.6 / DX,Y / DX,Y, and the structure of the bit block can also be K28.5 / D1.2 / DX,Y / DX,Y.

[0326] For example, for 64B / 66B coding, a single bit block can be used to implement service switching indication, while for 8B / 10B coding, multiple bit blocks need to be bound together for service switching.

[0327] Specifically, this embodiment takes the structure of the service switching indication bit block as K28.5 / D18.6 / DX,Y / DX,Y as an example, the bit block K28.5 is a special bit block, and the bit block (Dx.y) after the special bit block is used as a data bit block. In 8B / 10B encoding, the special bit block and the data bit block are used together to indicate service switching.

[0328] The following combination Fig.11 as well as Fig.14 The specific process of performing service demultiplexing on the receiving device is illustrated as follows:

[0329] like Fig.11 As shown, this embodiment takes the example that the services sent by the sending device and received by the receiving device are all Ethernet packet services.

[0330] The Ethernet packet services specifically include: delay-sensitive packet services (express media access control, eMAC) and low-priority packet services (preemptable media access control, pMAC).

[0331] Among them, the delay sensitivity of the eMAC service is higher than that of the pMAC service.

[0332] Step 1401: Receive a bit block stream sent by a sending device.

[0333] like Fig.11 As shown, the PCS lower part (the 64B / 66B encoder and decoder partof a PCS, PCS low-part) of the receiving device is used to receive the bit block stream sent by the sending device.

[0334] The lower part of the PCS of the receiving device is as follows Figure 7 The PCS shown includes a descrambling module 723 and a processing module 724.

[0335] In this embodiment, if the receiving device detects that the bit block stream includes an idle bit block, the receiving device may directly delete the idle bit block.

[0336] Specifically, Fig.15 As shown, the detection module 1501 included in the demultiplexer of the receiving device is used to detect the idle bit block. If the detection module 1501 detects the idle bit block, the detection module 1501 can directly delete the idle bit block.

[0337] Step 1402 , detect whether there is at least one service switching indication bit block in the bit block stream, and if so, execute step 1403 .

[0338] In this embodiment, whether each bit block in the bit block stream received by the demultiplexer is a service switching indication bit block. If the demultiplexer receives one service switching indication bit block or receives multiple consecutive service switching indication bit blocks, step 1405 is executed.

[0339] For the detailed description of the demultiplexer, please refer to the above embodiment, and no further details will be given.

[0340] Among them, the service switching indication bit block is a 64B / 66B bit block. For the specific description of the 64B / 66B bit block, please refer to the above and the details will not be repeated.

[0341] Step 1403: Determine that the bit block stream received after receiving the service switching indication bit block is the bit block stream of the pMAC service.

[0342] The service switching indication bit block shown in this embodiment is used to indicate service switching, and the service switching indication bit block indicates that the service is switched to the pMAC service through the included target identifier.

[0343] Step 1404: Input the bit block stream of the pMAC service into the corresponding buffer area.

[0344] In this embodiment, after the detection module 1501 detects the service switching indication bit block, the extraction module 1503 in communication with the detection module 1501 can extract the target identifier included in the service switching indication bit block.

[0345] For the specific description of the target identifier, please refer to the above description, which will not be repeated in this embodiment.

[0346] The demultiplexing module 1502 in communication with the extraction module 1503 determines a corresponding cache area according to the target identifier.

[0347] In this embodiment, an example is given in which the bit block stream received by the receiving device before receiving the service switching indication bit block is the bit block stream of the eMAC service, and an example is given in which the bit block stream received by the receiving device after receiving the service switching indication bit block is the bit block stream of the pMAC service. For the specific description of the eMAC service and the pMAC service, please refer to the above description and no further details are given.

[0348] Before the receiving device receives the service switching indication bit block, the demultiplexing module 1502 stores the bit block stream of the eMAC service in the first tx_buf pre-configured for the eMAC service. After determining the target identifier, the demultiplexing module 1502 can determine that the target buffer area corresponding to the target identifier is the second tx_buf, and the subsequently received bit block stream of the pMAC service can be input into the second tx_buf.

[0349] Step 1405 , determine whether each buffer area meets the output condition, if so, execute step 1406 .

[0350] The output control module 1504 of the demultiplexer may be used to detect whether each buffer area meets an output condition, wherein the output condition is whether each buffer area stores a complete Ethernet media access control (MAC) frame.

[0351] Specifically, in Ethernet, data output to the MAC layer of a receiving device is based on a complete MAC frame.

[0352] When the control module 1504 determines that the bit block stream stored in the buffer is not a complete MAC frame, the control module 1504 may cache and splice the bit block stream through the buffer until a complete MAC frame is spliced.

[0353] Step 1406: Output the complete MAC frame to the MAC layer.

[0354] Specifically, when the control module 1504 determines that the bit block stream stored in the buffer is a complete MAC frame, the control module 1504 may control the buffer storing the complete MAC frame to output the complete MAC frame to the MAC layer.

[0355] It should be clear that the description of each module included in the demultiplexer in this embodiment is an optional example and is not limited thereto, as long as the demultiplexer can execute the service demultiplexing process shown in this embodiment.

[0356] The above embodiment is illustrative for the Ethernet packet service as an example, and the following embodiment is illustrative for the specific process of how the sending device performs service multiplexing on the non-Ethernet packet service and the Ethernet packet service:

[0357] like Fig.16 As shown, the Ethernet packet service is a pMAC service. For a detailed description of the pMAC service, please refer to the above description and no further details will be given.

[0358] The non-Ethernet packet service takes a streaming service as an example, wherein the streaming service is a constant bit rate (CBR) service or a variable bit rate (VBR) service.

[0359] This embodiment takes the streaming service as a VBR service as an example for illustrative description:

[0360] The following combination Fig.17 The step flow chart shown in the figure describes in detail the process of service multiplexing of this embodiment:

[0361] Step 1701: The first Tx_buf buffers the 64B / 66B bit block stream output from the PCS up-part of the pMAC.

[0362] For the detailed description of the PCS up-part, please refer to the above description and will not be elaborated on here.

[0363] The first Tx_buf of the sending device shown in this embodiment is used to cache the pMAC service. After the sending device receives the pMAC service, the sending device can cache the eMAC service to the first Tx_buf corresponding to the pMAC service.

[0364] Step 1702: Encode the VBR service.

[0365] In this embodiment, since the streaming service does not include PCS layer related logic, the encoding module of the receiving device is required to perform 64B / 66B encoding on the VBR service to generate a bit block stream.

[0366] For the specific description of the encoding module, please refer to the above, and no further details will be given.

[0367] Step 1703: The second Tx_buf buffers the 64B / 66B bit block stream output from the encoding module.

[0368] In this embodiment, in order to improve bandwidth utilization, the multiplexer may detect whether there are idle bit blocks in the first Tx_buf and the second Tx_buf. If so, the multiplexer may delete the idle bit blocks in the IPG.

[0369] Among them, the specific description of the multiplexer please refer to the above embodiment, and will not be repeated in this embodiment.

[0370] The multiplexer can perform flow control on the bit block flow in the buffer area. The specific process is shown above and will not be described in detail.

[0371] Step 1704 , check whether the first tx_buf and the second tx_buf both meet the target condition, if not, execute step 1705 , if yes, execute step 1706 .

[0372] Specifically, the multiplexer is used to detect whether the first tx_buf and the second tx_buf both meet the target condition. The specific structure of the multiplexer can be found in Fig.18 As shown, Fig.18 For detailed description of the multiplexing module 1801, the arbitration module 1802 and the insertion module 1803 included in the multiplexer shown, please refer to Fig.13 The description of the multiplexing module 1301, the arbitration module 1302 and the insertion module 1303 included in the multiplexer shown is not repeated in detail.

[0373] More specifically, the arbitration module 1802 shown in this embodiment is used to detect whether the first tx_buf and the second tx_buf both meet the target condition, wherein the specific description of the target condition is shown above, and the specific details are not repeated.

[0374] Step 1705: Send an idle bit block to a receiving device.

[0375] Specifically, when the multiplexing module 1801 determines that both the first tx_buf and the second tx_buf do not meet the target condition, the multiplexing module 1801 is used to send an idle bit block to the receiving device.

[0376] Step 1706: Send the bit block stream of the pMAC service buffered by the first tx_buf to the receiving device.

[0377] Specifically, the arbitration module 1802 may arbitrate the bit block streams in each tx_buf to determine the bit block stream in the tx_buf that is first sent to the receiving device among each tx_buf.

[0378] In this embodiment, when the arbitration module 1802 determines that the first tx_buf buffering the pMAC service has a higher priority than the buffer area buffering the VBR service, the arbitration module 1802 can send the bit block stream buffered by the first tx_buf to the receiving device.

[0379] Step 1707: Determine whether service switching occurs. If so, execute step 1708.

[0380] In this embodiment, the multiplexing module 1801 is used to determine whether service switching occurs, that is, the multiplexing module 1801 determines whether switching occurs between the pMAC service and the VBR service.

[0381] Specifically, when the arbitration module 1802 arbitrates the bit block streams in each buffer area, arbitration result information can be generated. The arbitration module 1802 can send the arbitration result information to the multiplexing module 1801, and the multiplexing module 1801 can determine whether service switching occurs based on the arbitration result information.

[0382] The specific description of the arbitration result information is shown in the above embodiment, and will not be repeated in this embodiment.

[0383] Step 1708: Insert the service switching indication bit block between the bit block stream of the pMAC service and the bit block stream of the VBR service.

[0384] When the multiplexing module 1801 determines that the service switching indication bit block TAG needs to be inserted, the inserting module 1803 can insert the service switching indication bit block between the bit block stream of the pMAC service and the bit block stream of the VBR service.

[0385] For the specific description of the service switching indication bit block shown in this embodiment, please refer to the above embodiment, which will not be described in detail in this embodiment.

[0386] Step 1709: Send the service switching indication bit block and the bit block stream of the VBR service to the receiving device in sequence.

[0387] After inserting the service switching indication bit block between the bit block stream of the pMAC service and the bit block stream of the VBR service, the sending device may send the service switching indication bit block and the bit block stream of the VBR service to the receiving device in sequence.

[0388] It should be clear that the description of each module included in the multiplexer in this embodiment is an optional example and is not limited thereto, as long as the multiplexer can execute the service multiplexing process shown in this embodiment.

[0389] like Figures 16 to 18 As shown, the specific process of multiplexing non-Ethernet packet services and Ethernet packet services is described from the perspective of the transmitting device. The specific process of demultiplexing non-Ethernet packet services and Ethernet packet services is described in detail from the perspective of the receiving device:

[0390] Continue to see Fig.16 As shown, the Ethernet packet service in this embodiment is a pMAC service, and the non-Ethernet packet service is exemplified by taking the VBR service as an example:

[0391] The following combination Fig.19 The step flow chart shown in the figure describes in detail the process of service demultiplexing of this embodiment:

[0392] Step 1901: Receive a bit block stream sent by a sending device.

[0393] like Fig.16 As shown, the PCS low-part of the receiving device receives the bit block sent by the sending device.

[0394] In this embodiment, if the receiving device detects that the bit block stream includes an idle bit block, the receiving device may directly delete the idle bit block.

[0395] Specifically, Fig. 20 As shown, the detection module 2001 included in the demultiplexer of the receiving device is used to detect the idle bit block. If the detection module 2001 detects the idle bit block, the detection module 2001 can directly delete the idle bit block.

[0396] Step 1902 , detect whether there is a service switching indication bit block in the bit block stream, and if so, execute step 1903 .

[0397] The demultiplexer shown in this embodiment is used to detect whether the bit block is a service switching indication bit block, wherein the specific description of the demultiplexer is shown in the above embodiment and will not be described in detail.

[0398] Among them, the service switching indication bit block is a 64B / 66B bit block. For the specific description of the 64B / 66B bit block, please refer to the above and the details will not be repeated.

[0399] Step 1903: Determine that the bit block stream received after receiving the service switching indication bit block is a bit block stream of the VBR service.

[0400] The service switching indication bit block shown in this embodiment is used to indicate service switching, and the service switching indication bit block indicates that the service is switched to the VBR service through the included target identifier.

[0401] Step 1904: Input the bit block stream of the VBR service into the corresponding buffer area.

[0402] In this embodiment, after the detection module 2001 detects the service switching indication bit block, the extraction module 2003 in communication with the detection module 2001 can extract the target identifier included in the service switching indication bit block.

[0403] For the specific description of the target identifier, please refer to the above description, which will not be repeated in this embodiment.

[0404] The demultiplexing module 2002 in communication with the extraction module 2003 determines the corresponding cache area according to the target identifier.

[0405] In this embodiment, an example is given in which the bit block stream received by the receiving device before receiving the service switching indication bit block is the bit block stream of the pMAC service, and an example is given in which the bit block stream received by the receiving device after receiving the service switching indication bit block is the bit block stream of the VBR service. For the specific description of the VBR service and the pMAC service, please refer to the above description and no further details are given.

[0406] Before the receiving device receives the service switching indication bit block, the demultiplexing module 2002 stores the bit block stream of the pMAC service in the first tx_buf pre-configured for the pMAC service. After determining the target identifier, the demultiplexing module 2002 can determine that the target buffer area corresponding to the target identifier is the second tx_buf, and the subsequently received bit block stream of the VBR service can be input into the second tx_buf.

[0407] Step 1905: Input the bit block stream of the VBR service into the decoding module.

[0408] In this embodiment, for the stream service VBR, the output control module 2004 is not required to perform frame splicing processing, and the receiving device can directly input the bit block stream of the VBR service to the decoding module for decoding.

[0409] For the detailed description of the decoding module, please refer to the above description, which will not be repeated in this embodiment.

[0410] The decoding module is used to decode the bit block stream of the VBR service and output VBR service data.

[0411] Step 1906: Output VBR service data.

[0412] The decoding module shown in this embodiment can output the decoded VBR service data.

[0413] In this embodiment, the receiving device may output the VBR service data output by the decoding module to a common public radio interface (CPRI) as an example.

[0414] The above description of the network to which the service multiplexing method and the service demultiplexing method shown in the present application are applied is an optional example and is not limited. For example, the service multiplexing method and the service demultiplexing method shown in the present application can also be applied to flexible Ethernet (Flex Ethernet, FlexE).

[0415] like Fig.21 As shown, the network device can realize service multiplexing from service flexE client a1 to service flexE client an.

[0416] Specifically, the first-level service multiplexing from service flexE client a1 to service flexE client an is performed through a multiplexer. For the specific multiplexing process, please refer to the above embodiment for details, and the details will not be repeated here.

[0417] The bit block stream from service flexE client a1 to service flexE client an outputted from the multiplexer is inputted into the flexE calendar module calendar, and the flexE calendar is used to perform secondary multiplexing on the bit block stream from service flexE client a1 to service flexE client an based on the flexE standard method.

[0418] The service flexE client b shown in this embodiment refers to a service based on flexE multiplexing, and the bit block stream of the service flexEclient b is input into the flexE calendar after inserting an idle bit block or deleting an idle insert or delete module.

[0419] The idle insert or delete module is used to perform rate adaptation on the bit block stream of the service flexE client b.

[0420] The flexE calendar is used to perform time slot mapping on the bit block stream of the service flexE client b according to the flexE standard method to send the service.

[0421] based on Fig.21 As shown, the process of implementing demultiplexing by the network device may be:

[0422] After receiving the bit block stream, the flexE calendar performs demultiplexing to obtain the bit block stream from the service flexE client a1 to the service flexE client an and the bit block stream of flexE client b.

[0423] The flexE calendar inputs the bit block stream from service flexE client a1 to service flexE client an into the demultiplexer for demultiplexing, thereby obtaining the bit block streams from service flexE client a1 to service flexE client an respectively, and inputs them into the cache areas corresponding to service flexE client a1 to service flexE client an respectively. The specific demultiplexing process is shown in the above embodiment, and it will not be repeated in this embodiment.

[0424] flexE calendar inputs the demultiplexed bit block stream of flexE client b to the idle insert or delete module, and the idle insert or delete module is used to perform rate adaptation on the bit block stream of flexE client b.

[0425] The following combination Fig.23 The shown example illustrates an embodiment structure of a sending device provided in the present application. The sending device shown in this embodiment is used to execute the service multiplexing method shown in the present application. The specific execution process of the service multiplexing method is shown in the above embodiment, and will not be repeated in this embodiment.

[0426] The sending device shown in this embodiment includes:

[0427] The transmitter 2301 is configured to send a bit block stream of a first service to a receiving device;

[0428] A multiplexer 2302 is used to determine whether to switch from the first service to the second service for service transmission;

[0429] The transmitter 2301 is further configured to, if the multiplexer determines that the first service is switched to the second service for service transmission, send at least one service switching indication bit block to a receiving device, wherein the at least one service switching indication bit block is used to indicate that the first service is switched to the second service for service transmission;

[0430] The transmitter 2301 is further configured to send the bit block stream of the second service to a receiving device.

[0431] The transmitter 2301 and the multiplexer 2302 shown in this embodiment are arranged in the transmission interface shown in the above embodiment. Specifically, for the specific description of the multiplexer 2302, please refer to the above embodiment.

[0432] The beneficial effects of the sending device shown in this embodiment in executing the service multiplexing process provided by this application are shown in the above embodiments in detail, and the specific details are not repeated in this embodiment.

[0433] Optionally, any bit block included in the bit block stream of the first service shown in this embodiment, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0434] For the specific description of any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block, please refer to the above embodiment, and the specific details will not be repeated in this embodiment.

[0435] Optionally, the transmitter 2301 is specifically used for:

[0436] Acquire first business data of the first business;

[0437] Encoding the first service data to generate a bit block stream of the first service;

[0438] Acquire second service data of the second service;

[0439] The second service data is encoded to generate a bit block stream of the second service.

[0440] Optionally, if the M1 / M2 bit block is a 64B / 66B bit block, the number of the service switching indication bit blocks is at least one.

[0441] For the specific description of the 64B / 66B bit block shown in this embodiment, please refer to the above embodiment, which will not be repeated in this embodiment.

[0442] Optionally, if the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

[0443] For the specific description of the 8B / 10B bit block shown in this embodiment, please refer to the above embodiment, which will not be described in detail in this embodiment.

[0444] Optionally, the at least one service switching indication bit block further includes indication information, where the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service sent to the receiving device.

[0445] For the specific description of the indication information shown in this embodiment, please refer to the above embodiment, which will not be repeated in this embodiment.

[0446] Optionally, the multiplexer 2302 is also used to determine a target identifier, which is an identifier corresponding to the second service, and generate at least one service switching indication bit block, wherein the at least one service switching indication bit block includes the target identifier, and the target identifier is used to instruct the receiving device to store the bit block stream of the second service to a target cache area, and the target cache area is a cache area allocated by the receiving device for the target identifier.

[0447] For the specific description of the target identification shown in this embodiment, please refer to the above embodiment, which will not be repeated in this embodiment.

[0448] Optionally, the multiplexer 2302 is further configured to delete the idle bit blocks if it is determined that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service.

[0449] The process of deleting the idle bit block is detailed in the above embodiment, and will not be described in detail in this embodiment.

[0450] The following combination Fig.24 The figure shows an exemplary embodiment structure of a receiving device provided in the present application. The receiving device shown in this embodiment is used to execute the service demultiplexing method shown in the present application. The specific execution process of the service demultiplexing method is shown in the above embodiment, and it will not be repeated in this embodiment.

[0451] The receiving device shown in this embodiment includes:

[0452] A receiver 2401 is configured to determine whether at least one service switching indication bit block sent by a sending device is received, wherein the at least one service switching indication bit block is used to instruct the sending device to switch from a first service to a second service for service transmission, and the bit block stream of the first service is a bit block stream received before receiving the at least one service switching indication bit block;

[0453] The demultiplexer 2402 is configured to determine, if it is determined that the at least one service switching indication bit block is received, that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

[0454] The beneficial effects of the receiving device shown in this embodiment executing the service demultiplexing process provided by this application are shown in the above embodiments in detail, and the specific details are not repeated in this embodiment.

[0455] The receiver 2401 and the demultiplexer 2402 shown in this embodiment are arranged in the receiving interface shown in the above embodiment. Specifically, the specific description of the demultiplexer 2402 is shown in the above embodiment.

[0456] Optionally, any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

[0457] For specific instructions on any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block shown in this embodiment, please refer to the above embodiments for details, and the specific details will not be repeated in this embodiment.

[0458] Optionally, the receiver 2401 is further configured to receive a bit block stream of the first service sent by the sending device;

[0459] The demultiplexer 2402 is further configured to decode the bit block stream of the first service to obtain first service data of the first service;

[0460] The receiver 2401 is further configured to receive a bit block stream of the second service sent by the sending device;

[0461] The demultiplexer 2402 is further configured to decode the bit block stream of the second service to obtain first service data of the second service.

[0462] Optionally, if the M1 / M2 bit block is a 64B / 66B bit block, the number of the service switching indication bit blocks is at least one.

[0463] For the specific description of the 64B / 66B bit block shown in this embodiment, please refer to the above embodiment, which will not be repeated in this embodiment.

[0464] Optionally, if the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

[0465] For the specific description of the 8B / 10B bit block shown in this embodiment, please refer to the above embodiment, which will not be described in detail in this embodiment.

[0466] Optionally, the demultiplexer 2402 is also used to obtain indication information included in the at least one service switching indication bit block, the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service, and determine the number of bit blocks included in the bit block stream of the second service according to the indication information.

[0467] For the specific description of the indication information bit block shown in this embodiment, please refer to the above embodiment, which will not be repeated in this embodiment.

[0468] Optionally, the demultiplexer 2402 is also used to obtain a target identifier included in the at least one service switching indication bit block, wherein the target identifier is an identifier corresponding to the second service, and stores the bit block stream of the second service to a target cache area, and the target cache area is a cache area allocated by the receiving device for the target identifier.

[0469] For the specific description of the target identification shown in this embodiment, please refer to the above embodiment, which will not be repeated in this embodiment.

[0470] Optionally, the demultiplexer 2402 is further configured to delete the idle bit blocks if it is determined that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service.

[0471] The deletion process of the idle bit block shown in this embodiment is detailed in the above embodiment and will not be described in detail in this embodiment.

[0472] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0473] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0474] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0475] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0476] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0477] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A service multiplexing method, It is characterized in that include: The sending device sends a bit block stream of the first service to the receiving device; The sending device determines whether to switch from the first service to the second service for service sending; If the sending device determines to switch from the first service to the second service for service sending, the sending device sends at least one service switching indication bit block to the receiving device, so that the sending device implements switching from the first service to the second service on any bit block of the bit block stream of the first service in real time as needed, and the at least one service switching indication bit block is used to indicate switching from the first service to the second service for service sending, and the at least one service switching indication bit block has been inserted between the bit block stream of the first service and the bit block stream of the second service; The sending device sends the bit block stream of the second service to the receiving device.

2. The method according to claim 1, It is characterized in that Any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

3. The method according to claim 2, It is characterized in that Before the sending device sends the bit block stream of the first service to the receiving device, the method further includes: The sending device acquires first service data of the first service; The sending device encodes the first service data to generate a bit block stream of the first service; Before the sending device sends the bit block stream of the second service to the receiving device, the method further includes: The sending device acquires second service data of the second service; The sending device encodes the second service data to generate a bit block stream of the second service.

4. The method according to claim 2 or 3, It is characterized in that If the M1 / M2 bit block is a 64B / 66B bit block, the number of the service switching indication bit block is at least one.

5. The method according to claim 2 or 3, It is characterized in that If the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

6. The method according to any one of claims 1 to 5, It is characterized in that The at least one service switching indication bit block further includes indication information, where the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service sent to the receiving device.

7. The method according to claim 1, It is characterized in that Before the sending device sends at least one service switching indication bit block to the receiving device, the method further includes: The sending device determines a target identifier, where the target identifier is an identifier corresponding to the second service; The sending device generates the at least one service switching indication bit block, and the at least one service switching indication bit block includes the target identifier, and the target identifier is used to instruct the receiving device to store the bit block stream of the second service to the target buffer area, and the target buffer area is the buffer area allocated by the receiving device for the target identifier.

8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: If the sending device determines that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service, the sending device deletes the idle bit blocks.

9. A service demultiplexing method, It is characterized in that include: The receiving device determines whether it has received at least one service switching indication bit block sent by the sending device, the at least one service switching indication bit block is used to instruct the sending device to switch from a first service to a second service for service sending, the bit block stream of the first service is a bit block stream received by the receiving device before receiving the at least one service switching indication bit block, and the at least one service switching indication bit block has been inserted between the bit block stream of the first service and the bit block stream of the second service, wherein the sending device is used to implement switching from the first service to the second service on any bit block of the bit block stream of the first service in real time as needed; If the receiving device determines that the at least one service switching indication bit block is received, the receiving device determines that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

10. The method according to claim 9, It is characterized in that Any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

11. The method according to claim 10, It is characterized in that If the receiving device determines that before receiving the at least one service switching indication bit block, the method further includes: The receiving device receives the bit block stream of the first service sent by the sending device; The receiving device decodes the bit block stream of the first service to obtain first service data of the first service; If the receiving device determines that the at least one service switching indication bit block is received, the method further includes: The receiving device receives the bit block stream of the second service sent by the sending device; The receiving device decodes the bit block stream of the second service to obtain first service data of the second service.

12. The method according to claim 10 or 11, It is characterized in that If the M1 / M2 bit block is a 64B / 66B bit block, the number of the service switching indication bit block is at least one.

13. The method according to claim 10 or 11, It is characterized in that If the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

14. The method according to any one of claims 11 to 13, It is characterized in that If the receiving device determines that the at least one service switching indication bit block is received, the method further includes: The receiving device obtains indication information included in the at least one service switching indication bit block, where the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service; The receiving device determines the number of bit blocks included in the bit block stream of the second service according to the indication information.

15. The method according to any one of claims 9 to 14, It is characterized in that If the receiving device determines that the at least one service switching indication bit block is received, the method further includes: The receiving device acquires a target identifier included in the at least one service switching indication bit block, wherein the target identifier is an identifier corresponding to the second service; The receiving device stores the bit block stream of the second service into a target buffer area, where the target buffer area is a buffer area allocated by the receiving device for the target identifier.

16. The method according to any one of claims 9 to 15, It is characterized in that The method further comprises: If the receiving device determines that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service, the receiving device deletes the idle bit blocks.

17. A sending device, It is characterized in that comprising a transmitter and a multiplexer connected to the transmitter; The transmitter is used to send a bit block stream of a first service to a receiving device; The multiplexer is used to determine whether to switch from the first service to the second service for service transmission; The transmitter is also used to send at least one service switching indication bit block to a receiving device if the multiplexer determines that the service is switched from the first service to the second service for service transmission, so that the multiplexer can switch from the first service to the second service on any bit block of the bit block stream of the first service in real time as needed. The at least one service switching indication bit block is used to indicate the switching from the first service to the second service for service transmission, and the at least one service switching indication bit block has been inserted between the bit block stream of the first service and the bit block stream of the second service. The transmitter is also used to send the bit block stream of the second service to the receiving device.

18. The transmitting device according to claim 17, It is characterized in that Any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

19. The transmitting device according to claim 18, It is characterized in that The transmitter is further used to obtain first service data of the first service, encode the first service data to generate a bit block stream of the first service, obtain second service data of the second service, and encode the second service data to generate a bit block stream of the second service.

20. The transmitting device according to claim 18 or 19, It is characterized in that If the M1 / M2 bit block is a 64B / 66B bit block, the number of the service switching indication bit block is at least one.

21. The transmitting device according to claim 18 or 19, It is characterized in that If the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

22. The transmitting device according to any one of claims 17 to 21, It is characterized in that The at least one service switching indication bit block further includes indication information, where the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service sent to the receiving device.

23. The transmitting device according to any one of claims 17 to 22, It is characterized in that The multiplexer is also used to determine a target identifier, which is an identifier corresponding to the second service, and generate at least one service switching indication bit block, wherein the at least one service switching indication bit block includes the target identifier, and the target identifier is used to instruct the receiving device to store the bit block stream of the second service to a target buffer area, and the target buffer area is a buffer area allocated by the receiving device for the target identifier.

24. The transmitting device according to any one of claims 17 to 23, It is characterized in that The multiplexer is further configured to delete the idle bit blocks if it is determined that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service.

25. A receiving device, It is characterized in that include: A receiver and a demultiplexer connected to the receiver; The receiver is used to determine whether at least one service switching indication bit block sent by a sending device is received, the at least one service switching indication bit block is used to instruct the sending device to switch from a first service to a second service for service transmission, the bit block stream of the first service is a bit block stream received before receiving the at least one service switching indication bit block, and the at least one service switching indication bit block has been inserted between the bit block stream of the first service and the bit block stream of the second service, wherein the sending device is used to implement switching from the first service to the second service on any bit block of the bit block stream of the first service in real time as needed; The demultiplexer is configured to determine, if it is determined that the at least one service switching indication bit block is received, that the bit block stream received after receiving the at least one service switching indication bit block is the bit block stream of the second service.

26. The receiving device according to claim 25, It is characterized in that Any bit block included in the bit block stream of the first service, any bit block included in the bit block stream of the second service, and any service switching indication bit block in the at least one service switching indication bit block is an M1 / M2 bit block, wherein M1 represents the number of payload bits in each bit block, M2 represents the total number of bits in each bit block, M1 and M2 are positive integers, and M2>M1.

27. The receiving device according to claim 26, It is characterized in that The receiver is further configured to receive a bit block stream of the first service sent by the sending device; The demultiplexer is further configured to decode the bit block stream of the first service to obtain first service data of the first service; The receiver is further configured to receive a bit block stream of the second service sent by the sending device; The demultiplexer is further configured to decode the bit block stream of the second service to obtain first service data of the second service.

28. The receiving device according to claim 26 or 27, It is characterized in that If the M1 / M2 bit block is a 64B / 66B bit block, the number of the service switching indication bit block is at least one.

29. The receiving device according to claim 26 or 27, It is characterized in that If the M1 / M2 bit block is an 8B / 10B bit block, the number of the service switching indication bit blocks is multiple, and the multiple service switching indication bit blocks include at least one special bit block and at least one data bit block.

30. The receiving device according to any one of claims 27 to 29, It is characterized in that The demultiplexer is also used to obtain indication information included in the at least one service switching indication bit block, where the indication information is used to indicate the number of bit blocks included in the bit block stream of the second service, and determine the number of bit blocks included in the bit block stream of the second service according to the indication information.

31. The receiving device according to any one of claims 25 to 30, It is characterized in that The demultiplexer is also used to obtain a target identifier included in the at least one service switching indication bit block, wherein the target identifier is an identifier corresponding to the second service, and stores the bit block stream of the second service into a target cache area, and the target cache area is a cache area allocated by the receiving device for the target identifier.

32. A receiving device according to any one of claims 25 to 31, It is characterized in that The demultiplexer is further configured to delete the idle bit blocks if it is determined that there are idle bit blocks in the bit block stream of the first service and / or the bit block stream of the second service.