(19)
(11)EP 3 609 115 A1

(12)EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43)Date of publication:
12.02.2020 Bulletin 2020/07

(21)Application number: 18791648.1

(22)Date of filing:  10.04.2018
(51)Int. Cl.: 
H04L 7/00  (2006.01)
H04L 12/28  (2006.01)
(86)International application number:
PCT/CN2018/082469
(87)International publication number:
WO 2018/196600 (01.11.2018 Gazette  2018/44)
(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME
Designated Validation States:
KH MA MD TN

(30)Priority: 28.04.2017 CN 201710295516

(71)Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • MEI, Li
    Shenzhen Guangdong 518129 (CN)
  • ZHONG, Qiwen
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Gill Jennings & Every LLP 
The Broadgate Tower 20 Primrose Street
London EC2A 2ES
London EC2A 2ES (GB)

  


(54)METHOD AND DEVICE FOR CONFIGURING LINK GROUP


(57) This application provides a link group configuration method and device. The method includes: obtaining, by a first device, first status information of M links between a source end device and a receive end device, where the first status information is used to indicate a status of a differential delay between any two of the M links, any one link is a FlexE or FlexO physical connection link, and M is an integer greater than or equal to 2; obtaining, by the first device, first capability information of the receive end device, where the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device; grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information, where N is an integer less than or equal to M and greater than or equal to 2; and sending, by the first device, first configuration information to a second device, where the first configuration information includes information used to indicate the first link group. The method provided in this application can improve availability and robustness of a link in a transport network.




Description


[0001] This application claims priority to Chinese Patent Application No. 201710295516.7, filed with the Chinese Patent Office on April 28, 2017 and entitled "LINK GROUP CONFIGURATION METHOD AND DEVICE", which is incorporated herein by reference in its entirety.

TECHNICAL FIELD



[0002] This application relates to the transport network field, and more specifically, to a link group configuration method and device.

BACKGROUND



[0003] Currently, in an Ethernet transport network, a plurality of physical connection links (hereinafter referred to as "link") are usually bundled into one logical link by using a link aggregation group (Link Aggregation Group, LAG) technology, to increase bandwidth and improve link availability.

[0004] Specifically, in the LAG technology, S physical connection links, between adjacent devices, whose bandwidth rates R are the same are usually bundled into one LAG whose bandwidth rate is S*R, to implement linear enhancement of the bandwidth rate, thereby satisfying a bandwidth increase requirement. For a user service above a Media Access Control (Media Access Control, MAC) layer, the LAG is represented as a logical interface. A transmission device may classify packets from the MAC layer based on information such as a source MAC address and/or destination MAC address or a virtual local area network (Virtual Local Area Network, VLAN) label, to distinguish between different services. For example, packets with a same source MAC address and a same destination MAC address belong to a same service. After being processed by using a hash algorithm, a plurality of services are allocated and restricted to one specific link of the LAG for sending. In the LAG technology, a packet of one service is sent only by using one link. Therefore, there is no packet disorder problem for the service, and the LAG does not need to compensate a transmission delay difference between links. However, because in the LAG technology, a packet of one service is sent only by using one link, to be specific, traffic of one specific service in services cannot exceed a bandwidth rate R of a single link, the LAG cannot reflect a bandwidth rate of S*R for a single service.

[0005] In a flexible Ethernet (Flexible Ethernet, FlexE) or a flexible optical transport network (Flexible OTN, FlexO), a link aggregation group may be formed through link bundling and concatenation, so as to support parallel transmission across a plurality of links, to carry at least one service. The OTN is an optical transport network (Optical Transport Network). Because of cross-link service transmission, differential delay compensation needs to be performed for a transmission delay of each link, to align services that are transmitted in parallel on a plurality of links. A differential delay compensation capability of a receive end device is actually subject to a specific engineering restriction. If a differential delay of a link exceeds the differential delay compensation capability of the receive end device, an entire link aggregation group fails consequently.

SUMMARY



[0006] This application provides a link group configuration method and device, so as to improve availability and robustness of a link in a transport network.

[0007] According to a first aspect, a link group configuration method is provided, including: obtaining, by a first device, first status information of M links between a source end device and a receive end device, where the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2; obtaining, by the first device, first capability information of the receive end device, where the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device; grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information, where N is an integer less than or equal to M and greater than or equal to 2; and sending, by the first device, first configuration information to a second device, where the first configuration information includes information used to indicate the first link group.

[0008] It should be understood that the first device is a decision device that determines a link group division manner, and the second device includes a related device that cooperates with the decision device to complete link group configuration.

[0009] It should be further understood that the link group configuration method in the first aspect is applied to a case in which the M links cannot be aligned on the receive end device, that is, a case in which the first capability of performing differential delay compensation on the M links by the receive end device is insufficient to align the M links.

[0010] According to the link group configuration method in the first aspect, the first device groups the N of the M links into the first link group based on a status of a differential delay between the M links between the source end device and the receive end device and the capability of performing differential delay compensation on the M links by the receive end device. This avoids a case in which all of the M links are unavailable when the differential delay between the M links exceeds the differential delay compensation capability of the receive end device. Therefore, availability and robustness of a link in a transport network can be improved.

[0011] In a possible implementation of the first aspect, the first device is the receive end device, the second device is the source end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device includes: measuring, by the first device, a differential delay between the M links, to obtain the first status information; and the method further includes: performing, by the first device, differential delay compensation on links in the first link group based on the first configuration information; and performing, by the first device, service data transmission with the second device based on the first link group. In this possible implementation, the receive end device acts as a decision device and determines a link group configuration. In this way, execution is easy and simple, and signaling overheads during link group configuration are small.

[0012] In a possible implementation of the first aspect, the obtaining, by a first device, first status information of M links between a source end device and a receive end device includes: receiving, by the first device, the first status information sent by the receive end device; and the obtaining, by the first device, first capability information of the receive end device includes: receiving, by the first device, the first capability information sent by the receive end device.

[0013] In a possible implementation, the first device is the source end device, and the second device is the receive end device. In this possible implementation, the source end device acts as a decision device, and may determine a link group configuration with reference to related information of service data, for example, comprehensive factors such as a service volume and/or bandwidth.

[0014] In another possible implementation, the first device is a management device, and the second device includes the receive end device and/or the source end device. In this possible implementation, the management device acts as a decision device. In this way, the management device can receive related information of the source end device and the receive end device, and can determine a link group configuration in consideration of comprehensive factors such as a service volume and/or bandwidth. In addition, this can avoid a computing amount possibly resulting from decision-making of the source end device or the receive end device, and can reduce load of the source end device and the receive end device.

[0015] In a possible implementation of the first aspect, K upstream devices of the receive end device on the M links have a delayed-sending compensation capability, where K is a positive integer, the K upstream devices include the source end device and/or at least one intermediate device, the intermediate device is located between the source end device and the receive end device on the M links, and the method further includes: obtaining, by the first device, second capability information and second status information of each of the K upstream devices, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each upstream device, and the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each upstream device; the grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information includes: grouping, by the first device, the N of the M links into the first link group based on the first status information, the first capability information, the second status information, and the second capability information; and the method further includes: determining, by the first device based on the first status information, the first capability information, the second status information, and the second capability information, a configuration of delayed-sending compensation that each upstream device needs to perform on a corresponding link.

[0016] When the M links cannot be aligned on the receive end device, the M links cannot constitute a link group, to be specific, a FlexE group or a FlexO group crashes and cannot work. The source end device, the receive end device, the intermediate device, and the like in the embodiments of this application may all have a differential delay compensation capability or a delayed-sending compensation capability. The devices in this possible implementation implement link group compensation through capability negotiation. When a compensation capability of each device in the FlexE group or the FlexO group between the source end device and the receive end device is insufficient to compensate a differential delay between links, a link group is configured, so that the source end device performs cross-link service data transmission only on delay-aligned links. Alternatively, devices perform collaborative compensation, so that the M links can be aligned on the receive end device finally. This can ensure working of the FlexE group or the FlexO group, and can improve link utilization.

[0017] In a possible implementation of the first aspect, the first device is the receive end device, the second device is the source end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device includes: measuring, by the first device, a differential delay between the M links, to obtain the first status information; the obtaining, by the first device, second capability information and second status information of each of the K upstream devices includes: receiving, by the first device, the second capability information and the second status information that are sent by each upstream device; and the method further includes: sending, by the first device, second configuration information to at least one of the K upstream devices, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.

[0018] In a possible implementation of the first aspect, the method further includes:

performing, by the first device based on the first configuration information, differential delay compensation on a link, in the first link group, on which the at least one upstream device has performed delayed-sending compensation based on the second configuration information; and

performing, by the first device, service data transmission with the second device based on the first link group.



[0019] In a possible implementation of the first aspect, the first device is the source end device, the second device is the receive end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device includes: receiving, by the first device, the first status information sent by the receive end device; and the obtaining, by the first device, first capability information of the receive end device includes: receiving, by the first device, the first capability information sent by the receive end device.

[0020] In a possible implementation of the first aspect, the K upstream devices include the first device, and the method further includes: transmitting, by the first device based on the first link group, service data to the second device based on a determined configuration of delayed-sending compensation that the first device needs to perform on a corresponding link.

[0021] In a possible implementation of the first aspect, the K upstream devices include at least one intermediate device, and the obtaining, by the first device, second capability information and second status information of each of the K upstream devices includes: receiving, by the first device, the second capability information and the second status information that are sent by each of the at least one intermediate device; and the method further includes: sending, by the first device, second configuration information to at least some of the at least one intermediate device, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least some intermediate devices need to perform on a corresponding link.

[0022] In a possible implementation of the first aspect, the first device is a management device, the second device includes the receive end device and/or the source end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device includes: receiving, by the first device, the first status information sent by the receive end device; the obtaining, by the first device, first capability information of the receive end device includes: receiving, by the first device, the first capability information sent by the receive end device; the obtaining, by the first device, second capability information and second status information of each of the K upstream devices includes: receiving, by the first device, the second capability information and the second status information that are sent by each upstream device; and the method further includes: sending, by the first device, second configuration information to at least one of the K upstream devices, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.

[0023] In a possible implementation of the first aspect, the first configuration information includes a mark used to indicate that a link belongs to the first link group.

[0024] In a possible implementation of the first aspect, the sending, by the first device, first configuration information to a second device includes: adding, by the first device, the first configuration information to a reserved field of an overhead code block, and sending the reserved field to the second device.

[0025] In a possible implementation of the first aspect, the sending, by the first device, first configuration information to a second device includes: sending, by the first device, the first configuration information to the second device by using a first link of the N links, where the first configuration information is used to indicate that the first link belongs to the first link group.

[0026] In a possible implementation of the first aspect, a first part of bits in the first configuration information is used to indicate that the first link and another link constitute the first link group, and a second part of bits in the first configuration information is a mark of the first link group.

[0027] In a possible implementation of the first aspect, the receiving, by the first device, the first status information sent by the receive end device includes: receiving, by the first device, the first status information that is sent by the receive end device and that is carried in a first type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.

[0028] In a possible implementation of the first aspect, the first TLV unit is further capable of carrying information that is used to indicate a current status of delayed-sending compensation performed on the M links by the receive end device when the receive end device sends service data to the source end device.

[0029] In a possible implementation of the first aspect, the first TLV unit is further capable of carrying information that is used to indicate a configuration of delayed-sending compensation that an upstream device needs to perform on a corresponding link.

[0030] In a possible implementation of the first aspect, the receiving, by the first device, the first capability information sent by the receive end device includes: receiving, by the first device, the first capability information that is sent by the receive end device and that is carried in a second type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.

[0031] In a possible implementation of the first aspect, the second TLV unit is further capable of carrying information that is used to indicate a capability of performing delayed-sending compensation on the M links by the receive end device when the receive end device sends service data to the source end device.

[0032] According to a second aspect, a link group configuration device is provided, where the link group configuration device is a first device, and is configured to execute the method in any one of the first aspect or the possible implementations of the first aspect. Specifically, the link group configuration device may include modules configured to execute the method in any one of the first aspect or the possible implementations of the first aspect.

[0033] According to a third aspect, a link group configuration device is provided, where the link group configuration device is a first device, and the link group configuration device includes a processor, a memory, and a network interface. The memory is configured to store an instruction. The processor and the network interface are configured to execute the instruction stored in the memory, and execution of the instruction stored in the memory causes the processor and the network interface to execute the method in any one of the first aspect or the possible implementations of the first aspect.

[0034] According to a fourth aspect, a link group configuration device is provided, where the link group configuration device is a first device, and the link group configuration device includes a processor, a memory, and a network interface. The memory is configured to store an instruction. The processor and the network interface are configured to execute the instruction stored in the memory, and execution of the instruction stored in the memory causes: obtaining, by the first device, first status information of M links between a source end device and a receive end device, where the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2; obtaining, by the first device, first capability information of the receive end device, where the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device; grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information, where N is an integer less than or equal to M and greater than or equal to 2; and sending, by the first device, first configuration information to a second device, where the first configuration information includes information used to indicate the first link group.

[0035] According to a fifth aspect, a computer storage medium is provided, where the computer storage medium stores an instruction; and when the instruction is executed on a computer, the computer executes the method in any one of the first aspect or the possible implementations of the first aspect.

[0036] According to a sixth aspect, a computer program product including an instruction is provided; and when a computer executes the instruction of the computer program product, the computer executes the method in any one of the first aspect or the possible implementations of the first aspect.

[0037] Effects that can be achieved in the second aspect to the sixth aspect are corresponding to effects that can be achieved in the first aspect, and details are not described herein again.

[0038] It should be understood that, in the aspects of this application and corresponding implementations of the aspects, for transmission of any one of the first status information, the first capability information, the second status information, the second capability information, the first configuration information, and the second configuration information, status, capability, or configuration information corresponding to each link may be transmitted on the link, in other words, related information is transmitted by using a link as a granularity. Certainly, in the aspects of this application and corresponding implementations of the aspects, related information may alternatively be transmitted by using another granularity, for example, by using a device as a granularity. This is not limited herein.

[0039] It should be further understood that, in the aspects of this application and corresponding implementations of the aspects, differential delay compensation is delayed-receiving compensation, namely, compensation in a receiving direction, and usually is also referred to as "deskew"; and delayed-sending compensation is compensation in a sending direction, and usually is also referred to as "remote deskew".

BRIEF DESCRIPTION OF DRAWINGS



[0040] 

FIG. 1 is a schematic diagram of a code block stream at a 100 G FlexE interface;

FIG. 2 is a schematic block diagram of a functional structure of a receive end device in a FlexE;

FIG. 3 is a schematic diagram of sending, by a receive end device, a code block stream in a FlexE;

FIG. 4 is a schematic diagram of a frame format of a FlexE overhead code block;

FIG. 5 is a schematic diagram of an application scenario of FlexE cross-transport-network transmission;

FIG. 6 is a schematic flowchart of a link group configuration method according to an embodiment of this application;

FIG. 7 is a schematic diagram of a status of a differential delay between links according to an embodiment of this application;

FIG. 8 is a schematic diagram of a link group configuration result according to an embodiment of this application;

FIG. 9 is a schematic diagram of a process of link group configuration and compensation according to an embodiment of this application;

FIG. 10 is a schematic diagram of a process of link group configuration and compensation according to an embodiment of this application;

FIG. 11 is a schematic diagram of a process of link group configuration and compensation according to an embodiment of this application;

FIG. 12 is a schematic diagram of a process of link group configuration and compensation according to an embodiment of this application;

FIG. 13 is a schematic block diagram of a link group configuration device according to an embodiment of this application; and

FIG. 14 is a schematic block diagram of a link group configuration device according to another embodiment of this application.


DESCRIPTION OF EMBODIMENTS



[0041] The following describes the technical solutions in this application with reference to the accompanying drawings.

[0042] It should be understood that the technical solutions in the embodiments of this application may be applied to a FlexO, a FlexE, or another network. This is not limited in the embodiments of this application.

[0043] It should be understood that a physical connection link in the embodiments of this application may be simply referred to as a "link", and a link in the FlexE may also be referred to as a "PHY link". The link in the embodiments of this application is a link between a source end device and a receive end device, and there may be an intermediate device on the link from the source end device to the receive end device.

[0044] The following briefly describes concepts in this specification.

FlexE technology:



[0045] For a considerably long time period till now, the Ethernet has been widely applied and significantly developed. An Ethernet interface rate increases tenfold, and has continuously evolved from 10 Mbps to 100 Mbps, 1000 Mbps (1 Gbps), 10 Gbps, and 100 Gbps. With the ever-increasing Ethernet interface rate, further improvement of the Ethernet interface rate gradually approaches a bottleneck technically. In addition, to meet diversified Ethernet interface rate requirements in an actual scenario, for example, 200 Gbps, Ethernet interfaces of 40 Gbps, 200 Gbps, and 400 Gbps are developed.

[0046] Before a standard of a new-generation higher-rate Ethernet interface comes into being, a bandwidth requirement of a network usually exceeds an existing Ethernet interface rate. In a transition phase in which a standard of a new Ethernet interface comes into being and costs of the new Ethernet interface are relatively high, a LAG technology allows a plurality of low-rate Ethernet interfaces to be bundled into one LAG, to implement a virtual high-rate Ethernet interface. However, in the LAG technology, service data is allocated, based on a service, to each interface in the LAG by using a hash algorithm. Similar to a service-based load balancing method, the LAG also has a problem that interface bandwidth allocation is unbalanced and utilization is low. If there is a service whose rate is greater than a single-interface rate, the service still needs to be allocated to only one interface by using the hash algorithm, and as a result, the interface is congested and a service transmission rate is limited by a rate of the interface.

[0047] In a forwarding device, when a service is forwarded from a low-rate interface to a high-rate interface, a packet of the entire service needs to be buffered before forwarding, to avoid packet breakage. This greatly increases a service data transmission delay. To improve efficiency of forwarding between interfaces of different rates, the Optical Internetworking Forum (Optical Internet Forum, OIF) releases a Multi-Link Gearbox (Multi Link Gearbox, MLG) technology, so as to inversely multiplex a high-rate Ethernet interface and divide the high-rate Ethernet interface into several low-rate Ethernet interfaces. However, the MLG technology supports only several fixed interface division manners, for example, dividing a 40 G Ethernet interface into four 10 G Ethernet interfaces or two 20 G Ethernet interfaces, and a subinterface type supported by the MLG technology is limited; therefore, flexibility is not high enough.

[0048] A FlexE technology is a flexible-Ethernet interface technology developed for the foregoing requirement. FIG. 1 is a schematic diagram of a code block stream at a 100 G FlexE interface. As defined in the FlexE 1.0 standard, a Flex performs time division multiplexing on a service of a 100 G Ethernet interface by using 20 code blocks (block) as a period, to divide the 100 G Ethernet interface into 20 timeslots at a granularity of 5 G (corresponding to one code block in a period of 20 code blocks). One FlexE overhead (Overhead, OH) code block is inserted at an interval of 1023x20 data code blocks, specifically as shown in FIG. 1. The FlexE may bundle S Ethernet interfaces into one link aggregation group, and service data may be transmitted in an idle timeslot that is randomly selected from 20*S timeslots of the link aggregation group.

[0049] FIG. 2 is a schematic block diagram of a functional structure of a receive end device in a FlexE. As shown in FIG. 2, according to a FlexE technology, a new layer, that is, a flexible Ethernet shim (FlexE Shim) layer, is inserted above a physical coding sublayer (Physical Coding Sublayer, PCS) of an Ethernet interface. The FlexE shim layer carries a plurality of flexible Ethernet services (FlexE Client) upward, and is connected to a plurality of 100 G Ethernet interfaces downward. The FlexE 1.0 standard stipulates that a FlexE client is a code block stream (block stream) of 64b/66b encoding, and after rate adaptation is performed through idle code block insertion/deletion (Idle Insert/Delete), code blocks in a code block stream of a flexible Ethernet service are successively placed into timeslots allocated to the flexible Ethernet service.

[0050] FIG. 3 is a schematic diagram of sending, by a receive end device, a code block stream in a FlexE. As shown in FIG. 3, in the FlexE, there are 20*S timeslots in total for a link aggregation group including S physical connection links, that is, a flexible Ethernet group (FlexE Group) including S physical links (Physical, PHY). At a flexible Ethernet shim (FlexE Shim) layer, a position of a 66b code block is allocated by using a 20*S-long timeslot allocation table (Calendar). For example, the first 20 code blocks in a period are sent by using a PHY1, subsequent 20 code blocks are sent by using a PHY2, and so on, until code blocks are sent by using a PHYS. Herein, 20 code blocks on each PHY may also be referred to as a timeslot allocation sub-table (Sub-calendar). In a specific example, a 10 G flexible Ethernet service occupies two of the 20*S timeslots. In this case, in one period, two code blocks are extracted from a code block stream of the 10 G flexible Ethernet service, and are placed at corresponding positions (one code block is corresponding to one 5 G timeslot). In another specific example, a 25 G flexible Ethernet service occupies five timeslots; in each period, five code blocks are extracted from a code block stream of the 25 G flexible Ethernet service, and are placed at corresponding positions in the calendar. Configuration information indicating which flexible Ethernet service is transmitted in each timeslot in the FlexE group is specified in a specific field in a FlexE OH code block.

[0051] FIG. 4 is a schematic diagram of a frame format of a FlexE overhead code block. As shown in FIG. 4, 32 contiguous FlexE frames constitute one FlexE multiframe, and one FlexE OH frame includes eight contiguous FlexE OH code blocks. For the first code block in a FlexE frame, a "0x4b" or "0x5" field is used as a mark field, to identify the code block as an OH code block. After identifying the OH code block, a receive end device can receive a next OH code block after receiving 1023x20 64b/66b code blocks (data code block). The rest may be deduced by analogy, and the entire FlexE frame can be extracted from a code block stream.

[0052] As shown in FIG. 4, a FlexE OH frame transmitted on each link includes fields such as a flexible Ethernet group number (FlexE Group Number), a physical link map (PHY Map), a physical link number (PHY Number), a timeslot allocation table (Calendar) A, and a calendar B. The FlexE group number is used to indicate a number of a flexible Ethernet group to which the link belongs. The PHY map (which needs to be indicated by using a total of 8x32=256 bits in one FlexE multiframe) is used to indicate distribution of PHYs included in the flexible Ethernet group to which the link belongs. The physical link number may be one of 1 to 254. The calendar A and the calendar B are respectively used to indicate a current calendar configuration and an alternative calendar configuration of the FlexE group. In the third code block in each FlexE frame, 16 bits are used to indicate a number of service data transmitted in a timeslot. A first FlexE frame in each FlexE multiframe carries a number of service data transmitted in a corresponding timeslot 0 (slot 0), and so on, until a 20th FlexE frame in the FlexE multiframe carries a number of service data transmitted in a corresponding slot 19. After receiving information about FlexE frames on all links in a FlexE group, the receive end device can obtain a timeslot allocation manner of each piece of service data in the FlexE group.

[0053] In a FlexE, service data may be transmitted in a plurality of cross-link timeslots. Therefore, the receive end device needs to perform differential delay compensation on each link in the FlexE group before restoring a flexible Ethernet service from a plurality of timeslots. Otherwise, code block disorder may be caused when a flexible Ethernet service is restored from cross-link timeslots with a differential delay. The FlexE 1.0 standard stipulates that, in a FlexE group, the first overhead code block in a FlexE frame transmitted on each link is used as a mark, and transmission delays of all links are aligned by using a buffer (Buffer) on a receive end device. Usually, a differential delay compensation (deskew) capability for each link is at least 300 ns in a transmission scenario of FlexE group shim-to-shim (shim-to-shim) direct connection, and a differential delay compensation capability for each link is at least 10 µs during FlexE group long-distance cross-transport-network transmission.

[0054] Service data may be transmitted in a plurality of cross-link timeslots in the FlexE group. Therefore, FlexE frames on a plurality of links need to be aligned on the receive end device, to ensure that the service data can be restored in a correct sequence from corresponding timeslots. According to the FlexE 1.0 standard, a FlexE frame boundary is used as a reference, to calculate a differential delay between links, and align code block streams on the links by using a buffer. As described above, a differential delay, between links in a FlexE group, stipulated in a FlexE standard should be less than or equal to 300 ns in the transmission scenario of FlexE group shim-to-shim (shim-to-shim) direct connection, and a differential delay between links should be less than or equal to 10 µs in a long-distance cross-transport-network transmission scenario. If a differential delay on a link in the FlexE group exceeds a differential delay compensation capability of the receive end device, the entire FlexE group fails.

FlexO technology:



[0055] In a FlexO, a plurality of standard-rate ports (for example, mx100 G) are bundled to constitute a flexible optical transport network group (FlexO Group), to carry a standard optical transport unit Cn (Optical Transport Unit-Cn, OTUCn) (n≥1) signal. This makes up a defect of a previous protocol that a port whose bandwidth is greater than 100 G is not defined. Similar to that in a FlexE, an OTUCn signal is transmitted in a cross-link manner on a plurality of links, and therefore, service data transmitted on all links needs to be aligned, to ensure restoration of the transmitted OTUCn signal. Currently, in the FlexO, it is stipulated that service data on all links in a FlexO group is aligned by using a frame alignment signal (Frame Alignment Signal, FAS) field in an OTUCn frame transmitted by using the links. If a differential delay of a link in the FlexO group exceeds a differential delay compensation capability of a receive end device, the entire FlexO group fails.

Link Layer Discovery Protocol (Link Layer Discovery Protocol, LLDP) technology:



[0056] The embodiments of this application further relate to the LLDP technology. The LLDP is the Link Layer Discovery Protocol defined in the standard 802.1AB. By using the LLDP, a transport network device may periodically send, by using a standard LLDP type-length-value (Type Length Value, TLV) unit, a multicast packet carrying local information to another adjacent transport network device. The LLDP stipulates that a standard simple network management protocol (Simple Network Management Protocol, SNMP) management information base (Management Information Base) MIB is deployed on each port of the transport network device, to store local status information and status information of another adjacent transport network device. Between transport network devices, status information stored in the SNMP MIB is refreshed by sending and receiving the LLDP TLV unit. Using the LLDP can facilitate management and maintenance of transport network device status information.

[0057] A TLV unit is a basic information unit in the LLDP. Different types of TLVs may carry different information. The LLDP reserves a TLV unit that can be self-defined by standard organizations. Table 1 shows a definition of each field of an LLDP-format TLV unit that can be self-defined. It should be understood that all TLV units shown in Table 2 to Table 7 in this specification are specific application forms of the TLV unit shown in Table 1.
Table 1 LLDP-format TLV unit that can be self-defined
Byte:123 to 567 to 6+n
(1≤n≤507)
  Type=127 (7 bits) Length (9 bits) OUI (2 bytes) Subtype (1 byte) Organization-defined information (1 to n-1 bytes)


[0058] The following describes a scenario to which a link group configuration method in the embodiments of this application is applied, with reference to FIG. 2 to FIG. 5. As shown in FIG. 2, a FlexE works between a MAC layer and a PHY layer. In the FlexE, an original reconciliation sublayer (Reconciliation Sublayer, RS) and PCS are modified, to implement functions of dividing a conventional Ethernet port into time division multiplexing (Time Division Multiplexing, TDM) channels and bundling a plurality of Ethernet ports. The LLDP and a LAG technology work at the MAC layer. The FlexE 1.0 standard defines application scenarios of FlexE Ethernet transmission and cross-transport-network transmission. FIG. 5 is a schematic diagram of an application scenario of FlexE cross-transport-network transmission. FlexE cross-transport-network transmission is based on a FlexE aware transport (FlexE Aware Transport) mode. In FIG. 5, a flexible Ethernet shim (FlexE Shim) in an Ethernet router needs to perform differential delay compensation on two links in a FlexE group connected to the flexible Ethernet shim. A FlexO works at the PHY layer. Similar to that in the FlexE, differential delay compensation also needs to be performed on a plurality of links.

[0059] Based on a case in which a FlexE group in the FlexE may fail and a case in which a FlexO group in the FlexO may fail, the embodiments of this application provide a link group configuration method. According to the embodiments of this application, compensation negotiation between transport network devices is implemented through reconstruction of functional parts related to a related FlexE or FlexO. After the reconstruction is performed according to the embodiments of this application, during link group establishment, the transport network device allows a link group to include a link that exceeds a differential delay compensation capability of a receive end device. It should be understood that the transport network device in the embodiments of this application may include a source end device, an intermediate device, and a receive end device.

[0060] FIG. 6 is a schematic flowchart of a link group configuration method 100 according to an embodiment of this application. As shown in FIG. 6, the link group configuration method 100 may include the following steps.

[0061] S110: A first device obtains first status information of M links between a source end device and a receive end device, where the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2.

[0062] S120: The first device obtains first capability information of the receive end device, where the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device.

[0063] S130: The first device groups N of the M links into a first link group based on the first status information and the first capability information, where N is an integer less than or equal to M and greater than or equal to 2.

[0064] S140: The first device sends first configuration information to a second device, where the first configuration information includes information used to indicate the first link group.

[0065] It should be understood that the first device is a decision device that determines a link group division manner, and the second device includes a related device that cooperates with the decision device to complete link group configuration.

[0066] It should be further understood that, in the embodiments of this application, differential delay compensation is delayed-receiving compensation, namely, compensation in a receiving direction, and usually is also referred to as "deskew"; and delayed-sending compensation is compensation in a sending direction, and usually is also referred to as "remote deskew".

[0067] According to the link group configuration method in this embodiment of this application, the first device groups the N of the M links into the first link group based on a status of a differential delay between the M links between the source end device and the receive end device and the capability of performing differential delay compensation on the M links by the receive end device. This avoids a case in which all of the M links are unavailable when the differential delay between the M links exceeds the differential delay compensation capability of the receive end device. Therefore, availability and robustness of a link in a transport network can be improved.

[0068] In a FlexE, a data stream on each link in a FlexE group is in a format of a 64b/66b code block stream of 1 OH block + 1023 x 20 data blocks, and the receive end device uses, as a mark, 0x4b and 0x5 identification fields in the first OH block in a FlexE frame transmitted on each link, to align data code blocks on all links.

[0069] Similarly, a FlexO frame is a data stream of 128*5440 bits, and eight frames are one multiframe. The receive end device uses, as a mark, a FAS field in an OTUCn frame carried in each FlexO frame, to align data code blocks on all links.

[0070] A link group configuration process and a subsequent compensation process in the embodiments of this application may be used for both of the two types of transport networks. In the embodiments, the FlexE is used as an example for description. Certainly, the link group configuration method in the embodiments of this application may alternatively be applied to a FlexO, or may be applied to a transport network using both the FlexE and FlexO technologies.

[0071] FIG. 7 is a schematic diagram of a status of a differential delay between links according to an embodiment of this application. As shown in FIG. 7, there are a total of five links PHY1 to PHY5 between a source end device and a receive end device. FlexE frames are sent between the source end device and the receive end device independently on the links. A horizontal axis in FIG. 7 represents a time delay of FlexE frame arrival on each link, and a width of a shaded box represents a differential delay compensation capability of the receive end device. In the five links shown in FIG. 7, a differential delay between the PHY1 and a PHY 2 is relatively small, and a differential delay between a PHY3, a PHY4, and the PHY5 is relatively small. However, the differential delay compensation capability of the receive end device is insufficient to complete differential delay compensation on the PHY1 to the PHY5.

[0072] The following describes in detail the link group configuration method in this application with reference to several embodiments.

Embodiment 1



[0073] In this embodiment, the first device, namely a decision device, is the receive end device, and the second device is the source end device. The receive end device has a delayed-receiving compensation capability.

[0074] In this embodiment, in S110, the obtaining, by a first device, first status information of M links between a source end device and a receive end device may include: measuring, by the first device, a differential delay between the M links, to obtain the first status information. Specifically, the receive end device may measure the differential delay between the M links by using some existing solutions, to obtain the first status information.

[0075] Specifically, according to the embodiments of this application, a differential delay between any two links may be obtained by measuring transmission delays of all links and comparing the transmission delays. Alternatively, a counter is added on a receive end device; the counter starts counting from 0 after a mark code block on a quickest link is received, and a counter value x is recorded when a mark code block on another link is received. In this case, a transmission delay difference between the two links is a transmission time corresponding to x code blocks. A specific manner of measuring the differential delay between the M links is not limited in the embodiments of this application.

[0076] In a specific example shown in FIG. 7, the first status information may be: The differential delay between the PHY1 and the PHY 2 is relatively small, and the differential delay between the PHY3, the PHY4, and the PHY5 is relatively small; however, the differential delay compensation capability of the receive end device is insufficient to complete differential delay compensation on the PHY1 to the PHY5.

[0077] Limited by the differential delay compensation capability of the receive end device, the receive end device cannot support differential delay compensation on all of the PHY1 to the PHY5. To maximize a quantity of member links supporting a cross-link service, N links may be selected from all the M links between the source end device and the receive end device, and be marked as "selected". The other M-N links are marked as "standby". In this embodiment, N=3. To be specific, the PHY3, the PHY4, and the PHY5 are marked as "selected", and the other two links PHY1 and PHY2 are marked as "standby". The PHY3, the PHY4, and the PHY5 marked as "selected" constitute the first link group, and the three links in the first link group can carry a cross-link service. The PHY1 and the PHY2 marked as "standby" may be used to independently transmit a complete service. Alternatively, the PHY1 and the PHY2 marked as "standby" are in a standby status, and no service is transmitted in the standby status. Parallel service transmission is neither performed on a link marked as "standby" nor performed on two links that are respectively marked as "standby" and "selected".

[0078] Alternatively, two link groups may be established. FIG. 8 is a schematic diagram of a link group configuration result according to this embodiment. Links PHY3, PHY4, and PHY5 are marked as "selected1", namely, the first link group, to carry a cross-link service. Links PHY1 and PHY2 are marked as "selected2", namely, a second link group, to carry a cross-link service. Cross-link-group service transmission cannot be performed by using the first link group marked as "selected1" and the second link group marked as "selected2".

[0079] In addition to the foregoing two link group configuration solutions, in this embodiment of this application, there may be more different configuration solutions in which a link group is determined based on a status of a differential delay between links and a capability of performing differential delay compensation on a link by the receive end device. This is not limited in this embodiment of this application.

[0080] It should be understood that the foregoing is merely intended to describe the link group configuration method in this embodiment of this application by using an example in which M=5, but is not intended to limit the link group configuration method in this embodiment of this application.

[0081] Optionally, the link group configuration method in this embodiment may further include: performing, by the first device, service data transmission with the second device based on the first link group; and performing, by the first device, differential delay compensation on links in the first link group based on the first configuration information.

[0082] FIG. 9 is a schematic diagram of a process 200 of link group configuration and compensation according to this embodiment. The process 200 may include the following steps:

S210: Start the link between the source end device and the receive end device.

S220: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

S230: The receive end device measures a status of a differential delay between the M links, to obtain the first status information.

S240: The receive end device determines a link group configuration, that is, determines the first configuration information, based on the first status information and the first capability information that can represent the capability of performing differential delay compensation on the M links by the receive end device. Specifically, the configuration includes grouping the N of the M links into the first link group.

S250: The receive end device performs differential delay compensation on the M links. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. In other words, the receive end device performs differential delay compensation on the links in the first link group based on the link group configuration determined by the receive end device. It should be understood that S250 and S260 may be simultaneously performed. This is not limited in this embodiment.

S260: The receive end device sends the first configuration information to the source end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the source end device receives the first configuration information sent by the receive end device. The first configuration information may be in a plurality of forms, and the following describes the forms in detail.



[0083] Optionally:
S270: The source end device sends service data to the receive end device based on the first configuration information.

[0084] It should be understood that, in the embodiments of this application, the first configuration information may include a mark used to indicate that a link belongs to the first link group. Details are not described in the following embodiments again.

[0085] For example, the first configuration information may include a "selected" mark (used to indicate that a link belongs to the first link group) and a "standby" mark that are described above.

[0086] For another example, the first configuration information may include a "selected1" mark (used to indicate that a link belongs to the first link group) and a "selected2" mark (used to indicate that a link belongs to the second link group) that are described above. Specifically, the first device sends the first configuration information to the second device by using a first link of the N links, where the first configuration information is used to indicate that the first link belongs to the first link group. In other words, link group configuration information may be indicated by using a link group identifier (for example, a "subgroup ID", where the "subgroup" is used for distinguishing from an existing "group"). When a "subgroup ID" is added to the M links, a differential delay compensation operation may be performed on links marked with a same "subgroup ID", so as to perform cross-link service transmission; if only one link is marked with a specific "subgroup ID", a service can be independently transmitted only on the link.

[0087] For another example, the first configuration information may include information used to indicate a link group to which each of the M links belongs. The first device sends, to the second device by using each link, the information used to indicate the link group to which each of the M links belongs.

[0088] It should be understood that, in the embodiments of this application, in S140, the sending, by the first device, first configuration information to a second device may include: adding, by the first device, the first configuration information to a data code block, and sending the data code block to the second device; or adding, by the first device, the first configuration information to a packet in a Link Layer Discovery Protocol (Link Layer Discovery Protocol, LLDP) format, a High-Level Data Link Control (High-Level Data Link Control, HDLC) format, or a Point to Point Protocol (Point to Point Protocol, PPP) format, and sending the packet to the second device through a management channel of an overhead code block; or adding, by the first device, the first configuration information to a reserved field of an overhead code block, and sending the reserved field to the second device. Details are not described in the following embodiments again.

[0089] In a specific example, the first configuration information (for example, transmitting, on each link, a mark of a link group to which the link belongs) is transmitted by sending an LLDP-format packet through a management channel of an OH code block. Specifically, the first configuration information may be carried in an LLDP-format type-length-value (Type-Length-Value, TLV) unit, to be transmitted through a shim-to-shim management channel (management channel) in a FlexE OH code block.

[0090] An optional definition of each field of an LLDP-format TLV unit used to carry the first configuration information is shown in Table 2. In the TLV unit:
The first seven bits in bytes 1 to 2 are a TLV type (TLV type). According to an LLDP stipulation, a type value of a TLV unit that is self-defined by each organization is 127.

[0091] The last nine bits in the bytes 1 to 2 are a TLV length (TLV length), used to indicate a quantity of bytes in a total length of the TLV unit.

[0092] Bytes 3 to 5 are an organizationally unique identifier (Organizationally Unique Identifier, OUI) of each organization, as stipulated by the LLDP. An OUI corresponding to an OIF is 00-0F-40.

[0093] A byte 6 is a subtype (subtype) of the TLV unit self-defined by each organization, and may be 0x?? (hexadecimal), for example, may be 0x01 (hexadecimal) or 00000001 (binary).

[0094] A byte 7 is a mark of a link group to which the link belongs.

[0095] 0x00 may indicate that a differential delay of the link exceeds the differential delay compensation capability of the receive end device, in other words, indicate "standby".

[0096] 0x01 to 0xFF may indicate that a differential delay of the link is within the differential delay compensation capability of the receive end device, in other words, indicate "selected". A specific corresponding value may indicate a number of the link group to which the link belongs.

[0097] It should be understood that the definition of each field of the LLDP-format TLV unit, used to carry the first configuration information, shown in Table 2 is merely an example, and may be correspondingly changed depending on a requirement. This is not limited in the embodiments of this application.
Table 2 LLDP-format TLV unit used to carry the first configuration information
Byte:123 to 567
  Type=127 (7 bits) Length (9 bits) OUI: 00-0F-40 Subtype: 0x?? (1 byte) A mark of a link group to which a link belongs (1 byte)


[0098] After receiving the TLV unit through the management channel of the OH code block, the source end device may complete link group configuration based on an indication of "the mark of the link group to which the link belongs", and send the service data.

[0099] In another specific example, the first configuration information (for example, transmitting, on each link, a mark of a link group to which the link belongs) is transmitted by using a reserved field of an OH code block. A first part of bits in the first configuration information is used to indicate that the first link and another link constitute the first link group, and a second part of bits in the first configuration information is a mark of the first link group. FIG. 10 is a schematic diagram of a format of a reserved field according to this embodiment. Specifically, 11 bits may be selected from the reserved field of the OH code block to carry the first configuration information. The first three bits may carry the "selected" or "standby" mark, and subsequent eight bits may be used to carry "the mark of the link group to which the link belongs" in a "selected" status. It should be understood that the first part of bits including the three bits and the second part of bits including the eight bits are merely an example. The first part of bits and the second part of bits may include more or fewer bits. This is not limited in this embodiment of this application.

[0100] It should be understood that the OH code block includes a reserved field of a plurality of bits. A position of the reserved field, used to carry the first configuration information, shown in FIG. 10 is merely an example, but is not intended to limit the embodiments of this application.

[0101] For the FlexO, configuration information corresponding to each link may be placed in a management channel of an OH code block of an OTUCn frame for sending; may be placed at a 0 byte of a general communication channel (General Communication Channel, GCC) and be sent in a Generic Framing Procedure (Generic Framing Procedure, GFP) format, an HDLC format, or a PPP format, or by using a reserved (Reserved, RES) field in a self-defined frame format; or may be placed in an OTUCn frame payload, for example, in a payload of an optical payload unit (Optical Payload Unit-Cn OPUCn), and be sent in a GFP format or another self-defined frame format.

[0102] In this embodiment, the receive end device has the delayed-receiving compensation capability, and the receive end device acts as the decision device and determines the link group configuration. In this way, execution is easy and simple, and signaling overheads during link group configuration are small.

Embodiment 2



[0103] In this embodiment, the first device, namely a decision device, is the source end device, and the second device is the receive end device. The receive end device has a delayed-receiving compensation capability.

[0104] In this embodiment, in S110, the obtaining, by a first device, first status information of M links between a source end device and a receive end device may include: receiving, by the first device, the first status information sent by the receive end device. In S120, the obtaining, by the first device, first capability information of the receive end device may include: receiving, by the first device, the first capability information sent by the receive end device.

[0105] FIG. 11 is a schematic diagram of a process 300 of link group configuration and compensation according to this embodiment. The process 300 may include the following steps:

S305: Start the link between the source end device and the receive end device.

S310: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

S315: The receive end device measures a status of a differential delay between the M links.

S320: The receive end device sends the first status information to the source end device, where the first status information is used to indicate the status of the differential delay between the M links. Correspondingly, the source end device receives the first status information sent by the receive end device.

S325: The receive end device sends the first capability information to the source end device, where the first capability information is used to indicate the first capability of performing differential delay compensation on the M links by the receive end device. Correspondingly, the source end device receives the first capability information sent by the receive end device.

S330: The source end device determines a link group configuration based on the first status information and the first capability information. Specifically, the configuration includes grouping the N of the M links into the first link group.

S335: The source end device sends the first configuration information to the receive end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the receive end device receives the first configuration information sent by the source end device.

S340: The receive end device performs differential delay compensation on the M links. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. In other words, the receive end device performs differential delay compensation on the links in the first link group based on the link group configuration determined by the receive end device.

S345: The receive end device returns acknowledgement information to the source end device, to indicate that the first configuration information is received and corresponding link group configuration is performed. Correspondingly, the source end device receives the acknowledgement information returned by the receive end device. It should be understood that S345 is an optional step. Further, the receive end device may further send, to the source end device, an updated status of a differential delay between the links.

S350: The source end device sends service data to the receive end device based on the first configuration information.



[0106] A manner of sending the first configuration information may be similar to a manner of sending the first configuration information in Embodiment 1. Details are not described herein again.

[0107] Optionally, in S335, the first configuration information may further include a buffer requirement of each link for differential delay compensation to be performed by the receive end device. The receive end device may directly set a buffer volume of each link based on the buffer requirement.

[0108] Optionally, in S330, the source end device may further determine a link group configuration solution with reference to related information of the service data to be sent to the receive end device, for example, comprehensive factors such as a service volume and/or bandwidth.

[0109] It should be understood that, in S345, the acknowledgement information returned by the receive end device may be transmitted in a form of an LLDP-format packet, or may be transmitted by using a reserved field in an OH code block. For example, a two-bit reserved field after the OH reserved field that carries the first configuration information in Embodiment 1 may be used for transmitting the acknowledgement information. For example, "00" indicates that the receive end device receives the first configuration information and successfully sets the buffer volume of each link, and "01" indicates that the buffer volume of each link is not successfully set. The source end device may send the service data after receiving the acknowledgment information "00". If receiving a "01" message, the source end device returns to S330 and re-determines a link group configuration solution.

[0110] In S325, the first capability information may be sent by using a data code block, may be sent through a management channel of an overhead code block by using a packet in an LLDP format, an HDLC format, or a PPP format, or may be sent by using a reserved field of an overhead code block. This is not limited in this embodiment.

[0111] In a specific example, the first capability information may be carried in an LLDP-format TLV unit of a management channel of an overhead code block. A definition of each field of the LLDP-format TLV unit used to carry the first capability information is shown in Table 3.

[0112] Definitions of fields of bytes 1 to 6 in Table 3 are the same as definitions of fields of bytes 1 to 6 in Table 2.

[0113] A byte 7 defines a capability of performing differential delay compensation on the link. The first bit in the byte 7 may represent a capability of performing differential delay compensation on the link in a receiving direction. When a value of the first bit is "0", it indicates that a buffer size in the receiving direction is a default value, for example, 469 code blocks corresponding to a 300 ns differential delay compensation capability defined in the FlexE 1.0. When a value of the first bit is "1", it indicates that a buffer size in the receiving direction is a value self-defined by the link, and a specific value is described in bytes 8 to 10. Another bit in the byte 7 may be a reserved field.

[0114] The bytes 8 to 10 define a buffer size of the link in the receiving direction. If the first bit in the byte 7 is "1" (the buffer size in the receiving direction is the self-defined value), a value x of the bytes 8 to 10 indicates that the buffer size in the receiving direction is x code blocks, where a value range of x is [1 to 0xFFFFFE]. If the first bit in the byte 7 is "0", the buffer size in the receiving direction is the default value, and a value of the bytes 8 to 10 may be set to "OxFFFFFF".

[0115] It should be understood that the buffer size in the receiving direction (for example, a local deskew buffer size) defined by the bytes 8 to 10 in the TLV unit is an optional parameter. When the buffer size of the link in the receiving direction is a default size, information about the buffer size in the receiving direction does not need to be transferred, and a parameter thereof may be set to "OxFFFFFF".

[0116] The buffer size in the receiving direction described herein as an example uses a code block (block) as a unit. Similarly, the buffer size in the receiving direction may be represented in different description manners such as ns, 10 ns, or bytes, or in a different-size basic buffer unit. This is not limited in the embodiments of this application.

[0117] In a transmission mode of FlexE aware transport, namely, a cross-transport-network transmission scenario, the receive end device informs the source end device of the first capability by using the TLV unit, and performs transmission through a shim-to-shim management channel (shim-to-shim management channel) of an OH code block. In another scenario, the TLV unit may be transmitted through a section management channel (section management channel), or may be transmitted through a shim-to-shim management channel.
Table 3 LLDP-format TLV unit used to carry the first capability information
Byte:123 to 5678 to 10
  Type=127 (7 bits) Length (9 bits) OUI: 00-0F-40 Subtype: 0x?? (1 byte) Differential delay compensation capability (1 byte) Buffer size in a receiving direction (3 bytes)


[0118] In a specific example, the first status information may be carried in an LLDP-format TLV unit of a management channel of an overhead code block. A definition of each field of the LLDP-format TLV unit used to carry the first status information is shown in Table 4.

[0119] Definitions of fields of bytes 1 to 6 in Table 4 are the same as definitions of fields of bytes 1 to 6 in Table 2.

[0120] A byte 7 defines a result of differential delay compensation performed on the link (for example, the result may be "FlexE group PHY deskew status"). The first bit in the byte 7 represents a result of a current differential delay performed on the link in a receiving direction. "0" indicates that the receive end device performs differential delay compensation on each of the M links based on the first configuration information, and differential delay compensation succeeds. "1" indicates that the receive end device does not perform differential delay compensation or differential delay compensation fails. Another bit in the byte 7 may be a reserved field.

[0121] Bytes 8 to 10 define a delay amount of a differential delay of the link. A delay amount (for example, "FlexE group PHY skew") parameter of a differential delay represents: when the receive end device receives a data frame on each link, a delay amount of the link relative to a link on which transmission is quickest in the M links. In this case, for example, when "FlexE group PHY skew" of a link is 0, it indicates that the link is the link on which transmission is quickest in the M links. A value x of the parameter represents a transmission time corresponding to a case in which the delay amount of the differential delay is data of x code blocks.

[0122] In a transmission mode of FlexE aware transport, namely, a cross-transport-network transmission scenario, the receive end device informs the source end device of a differential-delay status of the receive end device by using the TLV unit, and performs transmission through a shim-to-shim management channel (shim-to-shim management channel) of an OH code block. In another scenario, the TLV unit may be transmitted through a section management channel (section management channel), or may be transmitted through a shim-to-shim management channel.
Table 4 LLDP-format TLV unit used to carry the first capability information
Byte:123 to 5678 to 10
  Type=127 (7 bits) Length (9 bits) OUI: 00-0F-40 Subtype: 0x?? (1 byte) Differential delay result (1 byte) Delay amount of a differential delay (3 bytes)


[0123] The source end device determines the link group configuration after obtaining the first capability information of the receive end device and the first status information of the links by using the foregoing two TLV units, and sends the first configuration information to the receive end device in a manner similar to that in Embodiment 1. The receive end device performs differential delay compensation on the links based on the first configuration information. Details are not described herein again.

[0124] In this embodiment, the receive end device has the delayed-receiving compensation capability, and the source end device acts as the decision device, and may determine the link group configuration with reference to related information of service data, for example, comprehensive factors such as a service volume and/or bandwidth.

Embodiment 3



[0125] In this embodiment, the first device, namely a decision device, is a management device, and the second device includes the receive end device and/or the source end device. The receive end device has a delayed-receiving compensation capability.

[0126] In this embodiment, in S110, the obtaining, by a first device, first status information of M links between a source end device and a receive end device may include: receiving, by the first device, the first status information sent by the receive end device. In S120, the obtaining, by the first device, first capability information of the receive end device may include: receiving, by the first device, the first capability information sent by the receive end device.

[0127] A process of determining, by the management device, a link group configuration may include the following steps.

A-1: Start the link between the source end device and the receive end device.

A-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

A-3: The receive end device measures a status of a differential delay between the M links.

A-4: The receive end device sends the first status information to the management device, where the first status information is used to indicate the status of the differential delay between the M links. Correspondingly, the management device receives the first status information sent by the receive end device.

A-5: The receive end device sends the first capability information to the management device, where the first capability information is used to indicate the first capability of performing differential delay compensation on the M links by the receive end device. Correspondingly, the management device receives the first capability information sent by the receive end device.

A-6: The management device determines a link group configuration based on the first status information and the first capability information. Specifically, the configuration includes grouping the N of the M links into the first link group.

A-7: The management device sends the first configuration information to the source end device and the receive end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the source end device and the receive end device receive the first configuration information sent by the management device.

A-8: The source end device and/or the receive end device may return acknowledgement information to the management device, to indicate that the first configuration information is received and corresponding configuration is performed. Correspondingly, the management device receives the acknowledgement information returned by the source end device and/or the receive end device. It should be understood that A-8 is an optional step.

A-9: The management device delivers, to the source end device after receiving the acknowledgement information, an indication indicating that link group configuration is completed. It should be understood that A-9 is an optional step.

A-10: The source end device sends service data to the receive end device based on the first configuration information.

A-11: The receive end device performs, based on the first configuration information, differential delay compensation on a link, in the first link group, corresponding to the service data.

A-12: The receive end device directly sets a buffer volume of each link based on a buffer requirement, where the first configuration information sent by the management device to the receive end device may further include the buffer requirement of each link for differential delay compensation to be performed by the receive end device. It should be understood that A-12 is an optional step.



[0128] It should be understood that communication, between the source end device and the receive end device and the management device, about the first status information, the first capability information, and the first configuration information may be performed through a management channel of an OH code block of the devices and the management device. Optionally, in a FlexO, the foregoing information may be transmitted by using a GCC0 byte of the OH code block in a GFP format, an HDLC format, or a PPP format, or by using an RES field in a self-defined frame format. In a FlexE, the foregoing information may be transmitted in a form of an Internet Protocol (Internet Protocol, IP) packet through the management channel of the OH code block. A specific transmission manner is not limited in this embodiment.

[0129] In this embodiment, the management device acts as the decision device. In this way, the management device can receive related information of the source end device and the receive end device, and can determine the link group configuration in consideration of comprehensive factors such as a service volume and/or bandwidth. In addition, this can avoid a computing amount possibly resulting from decision-making of the source end device or the receive end device, and can reduce load of the source end device and the receive end device.

[0130] It should be understood that a link may further pass through some intermediate devices on a path from the source end device to the receive end device in an actual scenario, for example, an application scenario of FlexE cross-transport-network transmission shown in FIG. 5, that is, a transmission scenario based on a FlexE aware transport mode. In addition to the receive end device that can perform differential delay compensation, each transmit port of the intermediate device may support a capability of delaying data sending, namely, a delayed-sending compensation capability. Therefore, the receive end device and the intermediate device needs to perform negotiation to implement collaborative compensation.

[0131] In some embodiments of this application, K upstream devices of the receive end device on the M links may have a delayed-sending compensation capability, where K is a positive integer. The K upstream devices may include the source end device and/or at least one intermediate device, and the intermediate device is located between the source end device and the receive end device on the M links.

[0132] When the K upstream devices of the receive end device have the delayed-sending compensation capability, the method 100 may further include: obtaining, by the first device, second capability information and second status information of each of the K upstream devices, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each upstream device, and the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each upstream device; in S130, the grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information may include: grouping, by the first device, the N of the M links into the first link group based on the first status information, the first capability information, the second status information, and the second capability information; and the method 100 may further include: determining, by the first device based on the first status information, the first capability information, the second status information, and the second capability information, a configuration of delayed-sending compensation that each upstream device needs to perform on a corresponding link.

[0133] It should be noted that not all of the M links pass through all upstream devices. For any one of the K upstream devices, it is possible that only some (at least one) of the M links pass through the upstream device.

[0134] The following describes, with reference to several embodiments, the link group configuration method in the embodiments of this application when the K upstream devices of the receive end device have the delayed-sending compensation capability.

[0135] In Embodiment 4, Embodiment 5, and Embodiment 6, the first device, namely a decision device, is the receive end device, and the second device is the source end device. The receive end device has a delayed-receiving compensation capability. The K upstream devices may include the source end device and/or at least one intermediate device, and have the delayed-sending compensation capability.

[0136] In S110, the obtaining, by a first device, first status information of M links between a source end device and a receive end device may include: measuring, by the first device, a differential delay between the M links, to obtain the first status information; the obtaining, by the first device, second capability information and second status information of each of the K upstream devices may include: receiving, by the first device, the second capability information and the second status information that are sent by each upstream device; and the method 100 may further include: sending, by the first device, second configuration information to at least one of the K upstream devices, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.

[0137] After the at least one upstream device completes configuration of delayed-sending compensation, the method 100 may further include: performing, by the first device, service data transmission with the second device based on the first link group; and performing, by the first device based on the first configuration information, differential delay compensation on a link, in the first link group, on which the at least one upstream device has performed delayed-sending compensation based on the second configuration information.

[0138] It should be understood that, when the M links cannot be aligned on the receive end device, the M links cannot constitute a link group, to be specific, a FlexE group or a FlexO group crashes and cannot work. The source end device, the receive end device, the intermediate device, and the like in the embodiments of this application may all have a differential delay compensation capability or a delayed-sending compensation capability. The devices in the embodiments of this application implement link group compensation through capability negotiation. When a compensation capability of each device in the FlexE group or the FlexO group between the source end device and the receive end device is insufficient to compensate a differential delay between links, a link group is configured, so that the source end device performs cross-link service data transmission only on delay-aligned links. Alternatively, devices perform collaborative compensation, so that the M links can be aligned on the receive end device finally. This can ensure working of the FlexE group or the FlexO group, and can improve link utilization.

Embodiment 4



[0139] In this embodiment, the first device, namely a decision device, is the receive end device, and the second device is the source end device. The receive end device has a delayed-receiving compensation capability. Between the receive end device and the source end device, there is an intermediate device having a delayed-sending compensation capability. In other words, the K upstream devices are the at least one intermediate device.

[0140] A process of collaborative compensation by the receive end device and the intermediate device may include the following steps.

B-1: Start the link between the source end device and the receive end device.

B-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

B-3: The receive end device measures a status of a differential delay between the M links, to obtain the first status information.

B-4: The intermediate device sends the second capability information to the receive end device, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each intermediate device. Correspondingly, the receive end device receives the second capability information sent by the intermediate device. It should be understood that the second capability information may be carried in the data frame in B-2, or may be sent in another manner. This is not limited in this embodiment.

B-5: The intermediate device sends the second status information to the receive end device, where the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each intermediate device. Correspondingly, the receive end device receives the second status information sent by the intermediate device. It should be understood that the second status information may be carried in the data frame in B-2, or may be sent in another manner. This is not limited in this embodiment.

B-6: The receive end device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information that can represent the capability of performing differential delay compensation on the M links by the receive end device, the second capability information, and the second status information. A specific link group configuration includes grouping the N of the M links into the first link group.

B-7: The receive end device sends the first configuration information to the intermediate device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the intermediate device receives the first configuration information sent by the receive end device. It should be understood that B-7 is an optional step, and B-7 may be performed for another process instead of a collaborative compensation process.

B-8: The receive end device sends the second configuration information to the intermediate device, where the second configuration information includes information used to indicate a configuration of delayed-sending compensation that the upstream device needs to perform on a corresponding link. Correspondingly, the intermediate device receives the second configuration information sent by the receive end device.

B-9: The intermediate device adjusts a sending delay of a link based on the second configuration information.

B-10: The intermediate device sends, to the receive end device, information about an updated current status of delayed-sending compensation. In this way, preparation can be made for next collaborative compensation, and the receive end device is informed that configuration of delayed-sending compensation is completed.

B-11: The receive end device sends the first configuration information to the source end device after receiving the information sent by the intermediate device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the source end device receives the first configuration information sent by the receive end device. In addition, optionally, the first configuration information may further include information used to indicate that related configuration of differential delay compensation is completed.

B-12: The receive end device performs differential delay compensation on the M links. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. In other words, the receive end device performs differential delay compensation on the links in the first link group based on the link group configuration determined by the receive end device.

B-13: The source end device sends service data to the receive end device based on the first configuration information.



[0141] It should be understood that communication, between the source end device, the intermediate device, and the receive end device, about the first status information, the first capability information, the first configuration information, the second status information, the second capability information, the second configuration information, and other related information may be performed by using a data code block, may be performed through a management channel of an overhead code block by using a packet in an LLDP format, an HDLC format, or a PPP format, or may be performed by using a reserved field of an overhead code block. This is not limited in this embodiment.

[0142] A manner of sending the first configuration information is similar to a manner of sending the first configuration information in Embodiment 1. Details are not described herein again.

[0143] In this embodiment and other embodiments of this application, for reporting or transmission of capability information of a device, for example, the first capability information and the second capability information, such capability information may be carried in an LLDP-format TLV unit of a management channel of an overhead code block. A definition of each field of the LLDP-format TLV unit used to carry the capability information is shown in Table 5.

[0144] Definitions of fields of bytes 1 to 6 in Table 5 are the same as definitions of fields of bytes 1 to 6 in Table 2.

[0145] A byte 7 defines a capability of performing compensation on the link. The first bit in the byte 7 may represent a capability of performing differential delay compensation on the link in a receiving direction. When a value of the first bit is "0", it indicates that a buffer size in the receiving direction is a default value, for example, 469 code blocks corresponding to a 300 ns differential delay compensation capability defined in the FlexE 1.0. When a value of the first bit is "1", it indicates that a buffer size in the receiving direction is a value self-defined by the link, and a specific value is described in bytes 8 to 10. The second bit in the byte 7 may represent a capability of performing delayed-sending compensation on the link in the receiving direction. When a value of the second bit is "0", it indicates a default mode in which a delayed-sending compensation capability is not supported. When a value of the second bit is "1", it indicates that a delayed-sending compensation capability is supported, and a specific value of a delayed-sending buffer size is described in bytes 11 to 13. Another bit in the byte 7 may be a reserved field.

[0146] The bytes 8 to 10 define a buffer size of the link in the receiving direction. If the first bit in the byte 7 is "1" (the buffer size in the receiving direction is the self-defined value), a value x of the bytes 8 to 10 indicates that the buffer size in the receiving direction is x code blocks, where a value range of x is [1 to 0xFFFFFE]. If the first bit in the byte 7 is "0", the buffer size in the receiving direction is the default value, and a value of the bytes 8 to 10 may be set to "OxFFFFFF".

[0147] The bytes 11 to 13 define a buffer size of the link in a sending direction. If the first bit in the byte 7 is "1" (the delayed-sending compensation capability is supported in the sending direction), a value x of the bytes 8 to 10 indicates that the buffer size in the sending direction is x code blocks, where a value range of x is [1 to 0xFFFFFE]. If the first bit in the byte 7 is "0", it indicates that the delayed-sending compensation capability is not supported in the sending direction, and a value of the bytes 8 to 10 may be set to "OxFFFFFF".

[0148] The buffer size described herein as an example uses a code block (block) as a unit. Similarly, the buffer size may be represented in different description manners such as ns, 10 ns, or bytes, or in a different-size basic buffer unit. This is not limited in the embodiments of this application.

[0149] In a transmission mode of FlexE aware transport, namely, a cross-transport-network transmission scenario, the devices inform each other of the capabilities by using the TLV unit, and perform transmission through a shim-to-shim management channel (shim-to-shim management channel) of an OH code block. In another scenario, the TLV unit may be transmitted through a section management channel (section management channel), or may be transmitted through a shim-to-shim management channel.
Table 5 LLDP-format TLV unit used to carry the capability information
Byte:123 to 5678 to 1011 to 13
  Type=127 (7 bits) Length (9 bits) OUI: 00-0F-40 Subtype: 0x?? (1 byte) Link compensation capability (1 byte) Buffer size in a receiving direction (3 bytes) Buffer size in a sending direction (3 bytes)


[0150] It should be noted that, in all the embodiments of this application, the capability information may be carried by using the TLV unit shown in Table 5. A link is usually bidirectional. Therefore, a device is a receive end device in a transmission direction, and the device is a source end device or an upstream device in another transmission direction. In this embodiment, the TLV unit used to carry the capability information is designed in a form shown in Table 5, so that the device can use the TLV unit to report the capability information, regardless of whether the device acts as the receive end device or acts as the source end device or the upstream device.

[0151] In other words, the TLV unit, shown in Table 5, in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block may carry the first capability information used to indicate the first capability of performing differential delay compensation on the M links by the receive end device, and can also carry information used to indicate a capability of performing delayed-sending compensation on the M links by the receive end device when the receive end device sends service data to the source end device.

[0152] In this embodiment and other embodiments of this application, for reporting or transmission of status information of a device, for example, the first status information and the second status information, such status information may be carried in an LLDP-format TLV unit of a management channel of an overhead code block. A definition of each field of the LLDP-format TLV unit used to carry the status information is shown in Table 6.

[0153] Definitions of fields of bytes 1 to 6 in Table 6 are the same as definitions of fields of bytes 1 to 6 in Table 2.

[0154] A byte 7 defines a current status of differential delay compensation performed on the link and a current status of delayed-sending compensation performed on the link, that is, a link compensation status. The first bit in the byte 7 represents a current status of differential delay compensation performed on the link in a receiving direction. When a value of the first bit is "0", it indicates that differential delay compensation performed on the link in the receiving direction succeeds. For example, in a reserved field of the OH code block, the link is marked as "selected", and a "subgroup ID" is "3". In this case, it indicates that differential delay compensation performed on the link succeeds, compared with that performed on another link in a subgroup 3. When a value of the first bit is "1", it indicates that differential delay compensation performed on the link in the receiving direction fails. For example, in a reserved field of the OH code block, the link is marked as "selected", and a "subgroup ID" is "3". In this case, it indicates that differential delay compensation performed on the link fails, compared with that performed on another link in a subgroup 3, and the link exceeds a differential delay compensation capability of a device. A differential delay amount is described in bytes 8 to 10. The second bit in the byte 7 represents a current status of delayed-sending compensation performed on the link in a sending direction. When a value of the second bit is "0", it indicates absence of a delayed-sending capability for the link in the sending direction. When a value of the second bit is "1", it indicates that a delayed-sending capability for the link is being used in the sending direction. A delayed-sending amount is described in bytes 11 to 13. Another bit in the byte 7 is a reserved field.

[0155] The bytes 8 to 10 define a differential delay amount by which the link exceeds the differential delay compensation capability in the receiving direction when differential delay compensation performed on the link in the receiving direction fails. A value x of the differential delay amount indicates that the exceeded differential delay amount is a transmission time corresponding to a buffer size of x code blocks. When differential delay compensation in the receiving direction succeeds, x is 0.

[0156] The bytes 11 to 13 define a delayed-sending amount of the link. A value x of the delayed-sending amount indicates that a currently-used delayed-sending buffer size is x code block. When the second bit in the byte 7 is "0" (no delayed-sending capability for the link in the sending direction), a value of x is "OxFFFFFF".

[0157] The buffer size described herein as an example uses a code block (block) as a unit. Similarly, the buffer size may be represented in different description manners such as ns, 10 ns, or bytes, or in a different-size basic buffer unit. This is not limited in the embodiments of this application.

[0158] In a transmission mode of FlexE aware transport, namely, a cross-transport-network transmission scenario, the devices inform each other of the statuss by using the TLV unit, and perform transmission through a shim-to-shim management channel (shim-to-shim management channel) of an OH code block. In another scenario, the TLV unit may be transmitted through a section management channel (section management channel), or may be transmitted through a shim-to-shim management channel.
Table 6 LLDP-format TLV unit used to carry the status information
Byte:123 to 5678 to 1011 to 13
  Type=127 (7 bits) Length (9 bits) OUI: 00-0F-40 Subtype: 0x?? (1 byte) Link compensation status (1 byte) Differential delay amount (3 bytes) Delayed-sending amount (3 bytes)


[0159] It should be noted that, in all the embodiments of this application, the status information may be carried by using the TLV unit shown in Table 6. A link is usually bidirectional. Therefore, a device is a receive end device in a transmission direction, and the device is a source end device or an upstream device in another transmission direction. In this embodiment, the TLV unit used to carry the status information is designed in a form shown in Table 6, so that the device can use the TLV unit to report the status information, regardless of whether the device acts as the receive end device or acts as the source end device or the upstream device.

[0160] In other words, the TLV unit, shown in Table 6, in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block may carry the first status information used to indicate the status of the differential delay between any two of the M links, and can also carry information used to indicate a current status of delayed-sending compensation performed on the M links by the receive end device when the receive end device sends service data to the source end device.

[0161] In addition, after the decision device determines the second configuration information, the TLV unit shown in Table 6 may further be used to carry the second configuration information. To be specific, the TLV unit can further carry information that is used to indicate a configuration of delayed-sending compensation that an upstream device needs to perform on a corresponding link.

[0162] A manner of sending the first configuration information may be similar to a manner of sending the first configuration information in Embodiment 1. Details are not described herein again. In addition, in this embodiment and other embodiments of this application, for reporting or transmission of status information of a device and delivery of configuration information, for example, the first status information, the second status information, the first configuration information, and the second configuration information, such information may be carried together in an LLDP-format TLV unit of a management channel of an overhead code block. A definition of each field of the LLDP-format TLV unit used to carry the status information and the configuration information is shown in Table 7.

[0163] Definitions of fields of bytes 1 to 6 in Table 7 are the same as definitions of fields of bytes 1 to 6 in Table 2.

[0164] Bytes 7 and 8 define a compensation status of the link and a link group configuration. The first bit in the byte 7 represents a current status of differential delay compensation performed on the link in a receiving direction. When a value of the first bit is "0", it indicates that differential delay compensation performed on the link in the receiving direction succeeds. For example, in a field subsequent to the bytes 7 and 8, the link is marked as "selected", and a "subgroup ID" is "3". In this case, it indicates that differential delay compensation performed on the link succeeds, compared with that performed on another link in a subgroup 3. When a value of the first bit is "1", it indicates that differential delay compensation performed on the link in the receiving direction fails. For example, in a field subsequent to the bytes 7 and 8, the link is marked as "selected", and a "subgroup ID" is "3". In this case, it indicates that differential delay compensation performed on the link fails, compared with that performed on another link in a subgroup 3, and the link exceeds a differential delay compensation capability of a device. A differential delay amount is described in bytes 9 to 11. The second bit in the byte 7 represents a current status of delayed-sending compensation performed on the link in a sending direction. When a value of the second bit is "0", it indicates absence of a delayed-sending capability for the link in the sending direction, or that a delayed-sending capability is not used in the sending direction. When a value of the second bit is "1", it indicates that a delayed-sending capability for the link is being used in the sending direction. A delayed-sending amount is described in bytes 12 to 14. Another bit in the byte 7 is a reserved field.

[0165] The third to the 13th bits in the bytes 7 and 8 are used to represent a link group to which the link belongs, that is, mark information of the link. The second to the fourth bits are used to represent "selected" or "standby". For example, "001" represents "selected", and "010" represents "standby". In a "selected" status, subsequent eight bits may be used to represent a "subgroup ID". Another bit in the bytes 7 and 8 is a reserved field.

[0166] The differential delay amount described by the bytes 9 to 11 in Table 7 is the same as the differential delay amount described by the bytes 8 to 10 in Table 6, and the delayed-sending amount described by the bytes 12 to 14 in Table 7 is the same as the delayed-sending amount described by the bytes 11 to 13 in Table 6. Details are not described herein again.
Table 7 LLDP-format TLV unit used to carry the status information
Byte:123 to 567 to 89 to 1112 to 14
  Type=127 (7 bits) Length (9 bits) OUI: 00-0F-40 Subtype: 0x?? (1 byte) Link compensation status and a link group configuration (2 bytes) Differential delay amount (3 bytes) Delayed-sending amount (3 bytes)

Embodiment 5



[0167] In this embodiment, the first device, namely a decision device, is the receive end device, and the second device is the source end device. The receive end device has a delayed-receiving compensation capability. The source end device has a delayed-sending compensation capability, that is, the K upstream devices are the source end device.

[0168] A process of determining, by the receive end device, a link group configuration and performing, by the receive end device and the source end device, collaborative compensation may include the following steps.

C-1: Start the link between the source end device and the receive end device.

C-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

C-3: The source end device sends the second capability information to the receive end device, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by the source end device. Correspondingly, the receive end device receives the second capability information sent by the source end device. It should be understood that the second capability information may be carried in the data frame in C-2, or may be sent in another manner. This is not limited in this embodiment.

C-4: The source end device sends the second status information to the receive end device, where the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by the source end device. Correspondingly, the receive end device receives the second status information sent by the source end device. It should be understood that the second status information may be carried in the data frame in C-2, or may be sent in another manner. This is not limited in this embodiment.

C-5: The receive end device measures a status of a differential delay between the M links, to obtain the first status information.

C-6: The receive end device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information that can represent the capability of performing differential delay compensation on the M links by the receive end device, the second capability information, and the second status information. A specific link group configuration includes grouping the N of the M links into the first link group.

C-7: The receive end device sends the first configuration information to the source end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the source end device receives the first configuration information sent by the receive end device.

C-8: The receive end device sends the second configuration information to the source end device, where the second configuration information includes information used to indicate a configuration of delayed-sending compensation that the source end device needs to perform on a corresponding link. Correspondingly, the source end device receives the second configuration information sent by the receive end device.

C-9: The source end device adjusts a sending delay of a link based on the second configuration information.

C-10: The source end device sends, to the receive end device, information about an updated status of delayed-sending compensation. In this way, preparation can be made for next collaborative compensation, and the receive end device is informed that configuration of delayed-sending compensation is completed.

C-11: After receiving the information sent by the source end device, the receive end device re-analyzes the differential delay between the links, and performs differential delay compensation on the M links. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. In other words, the receive end device performs differential delay compensation on the links in the first link group based on the link group configuration determined by the receive end device. The receive end device feeds back, to the source end device, a status of a differential delay between the links and the link group configuration.

C-12: The source end device sends service data to the receive end device based on the first configuration information.



[0169] It should be understood that, between the source end device and the receive end device, a transmission format and transmission channel of at least one of the first status information, the first capability information, the first configuration information, the second status information, the second capability information, and the second configuration information are similar to those in Embodiment 4, and details are not described herein again.

Embodiment 6



[0170] In this embodiment, the first device, namely a decision device, is the receive end device, and the second device is the source end device. The receive end device has a delayed-receiving compensation capability. The source end device and at least one intermediate device have a delayed-sending compensation capability. In other words, the K upstream devices include the source end device and the at least one intermediate device.

[0171] A process of collaborative compensation by the receive end device, the source end device, and the at least one intermediate device may include the following steps.

D-1: Start the link between the source end device and the receive end device.

D-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

D-3: The receive end device measures a status of a differential delay between the M links, to obtain the first status information.

D-4: The source end device and the at least one intermediate device send the second capability information to the receive end device, where the second capability information is used to indicate the second capability of performing delayed-sending compensation on at least one of the M links by each upstream device. Correspondingly, the receive end device receives the second capability information sent by the source end device. It should be understood that the second capability information may be carried in the data frame in D-2, or may be sent in another manner. This is not limited in this embodiment.

D-5: The source end device and the at least one intermediate device send the second status information to the receive end device, where the second status information is used to indicate the current status of delayed-sending compensation performed on the at least one of the M links by each upstream device. Correspondingly, the receive end device receives the second status information sent by the source end device. It should be understood that the second status information may be carried in the data frame in D-2, or may be sent in another manner. This is not limited in this embodiment.

D-6: The receive end device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information that can represent the capability of performing differential delay compensation on the M links by the receive end device, the second capability information, and the second status information. A specific link group configuration includes grouping the N of the M links into the first link group.

D-7: The receive end device sends the first configuration information to the source end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the source end device receives the first configuration information sent by the receive end device.

D-8: The receive end device sends the first configuration information to the intermediate device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the intermediate device receives the first configuration information sent by the receive end device. It should be understood that D-10 is an optional step, and D-8 may be performed for another process instead of a collaborative compensation process.

D-9: The receive end device sends the second configuration information to the source end device and the at least one intermediate device, where the second configuration information includes information used to indicate a configuration of delayed-sending compensation that the source end device and the at least one intermediate device need to separately perform on corresponding links. Correspondingly, the source end device and the at least one intermediate device each receive the second configuration information sent by the receive end device.

D-10: The source end device and the at least one intermediate device adjust a sending delay of a link, that is, set a delayed-sending buffer size, based on the second configuration information.

D-11: The source end device and the at least one intermediate device send, to the receive end device, information about an updated status of delayed-sending compensation. In this way, preparation can be made for next collaborative compensation, and the receive end device is informed that configuration of delayed-sending compensation is completed.

D-12: The receive end device re-analyzes the differential delay between the links, and performs differential delay compensation on the M links. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. In other words, the receive end device performs differential delay compensation on the links in the first link group based on the link group configuration determined by the receive end device. The receive end device feeds back, to the source end device, a status of a differential delay between the links and the link group configuration.

D-13: The source end device sends service data to the receive end device based on the first configuration information.



[0172] It should be understood that, between the source end device and the receive end device, a transmission format and transmission channel of at least one of the first status information, the first capability information, the first configuration information, the second status information, the second capability information, and the second configuration information are similar to those in Embodiment 4, and details are not described herein again.

[0173] In Embodiment 7, Embodiment 8, and Embodiment 9, the first device, namely a decision device, is the source end device, and the second device is the receive end device. The receive end device has a delayed-receiving compensation capability. The K upstream devices may include the source end device and/or at least one intermediate device, and have the delayed-sending compensation capability.

[0174] In S110, the obtaining, by a first device, first status information of M links between a source end device and a receive end device may include: receiving, by the first device, the first status information sent by the receive end device. In S120, the obtaining, by the first device, first capability information of the receive end device may include: receiving, by the first device, the first capability information sent by the receive end device.

[0175] After the at least one upstream device completes configuration of delayed-sending compensation, the method 100 may further include: performing, by the first device, service data transmission with the second device based on the first link group; and performing, by the first device based on the first configuration information, differential delay compensation on a link, in the first link group, on which the at least one upstream device has performed delayed-sending compensation based on the second configuration information.

Embodiment 7



[0176] In this embodiment, the first device, namely a decision device, is the source end device, and the second device is the receive end device. The receive end device has a delayed-receiving compensation capability. Between the receive end device and the source end device, there is an intermediate device having a delayed-sending compensation capability. In other words, the K upstream devices are the at least one intermediate device.

[0177] Specifically, the obtaining, by the first device, second capability information and second status information of each of the K upstream devices may include: receiving, by the first device, the second capability information and the second status information that are sent by each of the at least one intermediate device; and the method 100 may further include: sending, by the first device, second configuration information to at least some of the at least one intermediate device, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least some intermediate devices need to perform on a corresponding link.

[0178] It should be understood that the sending, by the first device, second configuration information to at least some of the at least one intermediate device may be directly sending, by the first device, the second configuration information to the intermediate device, or may be sending, by the first device, the second configuration information to the receive end device, so that the receive end device forwards the second configuration information to the intermediate device. In other words, the first device may directly send or indirectly send the second configuration information to the intermediate device. This is not limited in this embodiment.

[0179] A process of collaborative compensation by the receive end device and the intermediate device may include the following steps.

E-1: Start the link between the source end device and the receive end device.

E-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

E-3: The receive end device measures a status of a differential delay between the M links.

E-4: The receive end device sends the first status information to the source end device, where the first status information is used to indicate the status of the differential delay between the M links. Correspondingly, the source end device receives the first status information sent by the receive end device. Optionally, the first status information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

E-5: The receive end device sends the first capability information to the source end device, where the first capability information is used to indicate the first capability of performing differential delay compensation on the M links by the receive end device. Correspondingly, the source end device receives the first capability information sent by the receive end device. Optionally, the first capability information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

E-6: The intermediate device sends the second capability information to the source end device, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each intermediate device. Correspondingly, the source end device receives the second capability information sent by the intermediate device. It should be understood that the second capability information may be carried in the data frame in E-2, or may be sent in another manner. This is not limited in this embodiment. Optionally, the second capability information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

E-7: The intermediate device sends the second status information to the source end device, where the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each intermediate device. Correspondingly, the source end device receives the second status information sent by the intermediate device. It should be understood that the second status information may be carried in the data frame in E-2, or may be sent in another manner. This is not limited in this embodiment. Optionally, the second status information may be transmitted through a section management channel of an OH code block in a FlexE.

E-8: The source end device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information, the second capability information, and the second status information. A specific link group configuration includes grouping the N of the M links into the first link group.

E-9: The source end device sends the first configuration information and the second configuration information to the receive end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the receive end device receives the first configuration information sent by the source end device.

E-10: The receive end device performs configuration of differential delay compensation, for example, sets a local buffer for differential delay compensation, based on the first configuration information.

E-11: The receive end device sends the second configuration information to the intermediate device, where the second configuration information includes information used to indicate a configuration of delayed-sending compensation that the intermediate device needs to perform on a corresponding link. Correspondingly, the intermediate device receives the second configuration information sent by the receive end device.

E-12: The receive end device sends the first configuration information to the intermediate device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the intermediate device receives the first configuration information sent by the source end device. It should be understood that E-12 is an optional step, and E-12 may be performed for another process instead of a collaborative compensation process.

E-13: The intermediate device adjusts a sending delay of a link, for example, sets a buffer for delayed data sending, based on the second configuration information.

E-14: The intermediate device sends, to the receive end device, information about an updated current status of delayed-sending compensation. In this way, preparation can be made for next collaborative compensation, and the receive end device is informed that configuration of delayed-sending compensation is completed.

E-15: After receiving the information sent by the intermediate device, the receive end device re-analyzes the differential delay between the links, and performs differential delay compensation on the M links. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. The receive end device feeds back, to the source end device, information indicating that configuration is completed.

E-16: The source end device sends service data to the receive end device based on the first configuration information.



[0180] Optionally, in E-8, the source end device may further determine a link group configuration solution with reference to related information of the service data to be sent to the receive end device, for example, comprehensive factors such as a service volume and/or bandwidth.

[0181] It should be understood that, between the source end device, the intermediate device, and the receive end device, a transmission format and transmission channel of at least one of the first status information, the first capability information, the first configuration information, the second status information, the second capability information, and the second configuration information are similar to those in Embodiment 4, and details are not described herein again.

Embodiment 8



[0182] In this embodiment, the first device, namely a decision device, is the source end device, and the second device is the receive end device. The receive end device has a delayed-receiving compensation capability. The source end device has a delayed-sending compensation capability, that is, the K upstream devices are the source end device.

[0183] Specifically, the method 100 may further include: transmitting, by the first device based on the first link group, service data to the second device based on a determined configuration of delayed-sending compensation that the first device needs to perform on a corresponding link.

[0184] FIG. 12 is a schematic diagram of a process 400 of link group configuration and compensation according to this embodiment. The process 400 of collaborative compensation by the receive end device and the source end device may include the following steps.

[0185] S405: Start the link between the source end device and the receive end device.

[0186] S410: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

[0187] S415: The receive end device measures a status of a differential delay between the M links.

[0188] S420: The receive end device sends the first status information to the source end device, where the first status information is used to indicate the status of the differential delay between the M links. Correspondingly, the source end device receives the first status information sent by the receive end device. Optionally, the first status information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

[0189] S425: The receive end device sends the first capability information to the source end device, where the first capability information is used to indicate the first capability of performing differential delay compensation on the M links by the receive end device. Correspondingly, the source end device receives the first capability information sent by the receive end device. Optionally, the first capability information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

[0190] S430: The source end device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information, the second capability information used to indicate a capability of performing delayed-sending compensation on at least one of the M links by the source end device, and the second status information used to indicate a status of delayed-sending compensation performed on the at least one of the M links by the source end device. A specific link group configuration includes grouping the N of the M links into the first link group.

[0191] S435: The source end device adjusts a sending delay of a corresponding link based on the delayed-sending compensation configuration determined in S430. For example, in S430, delayed-sending compensation of a PHY2 is determined to be performed. In this case, a buffer size of delayed-sending compensation of the PHY2 is adjusted in S435.

[0192] S440: The source end device sends the first configuration information to the receive end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the receive end device receives the first configuration information sent by the source end device.

[0193] S445: The receive end device performs configuration of differential delay compensation, for example, sets a local buffer for differential delay compensation, based on the first configuration information.

[0194] S450: The receive end device sends, to the source end device, acknowledgement information indicating that configuration is completed. Correspondingly, the source end device receives the acknowledgement information sent by the receive end device. When the acknowledgement information indicates that the source end device successfully configures delayed-sending compensation, S455 is performed. When the acknowledgement information indicates that the source end device fails to configure delayed-sending compensation, S430 is performed again.

[0195] S455: The source end device sends service data to the receive end device based on the first configuration information.

[0196] It should be understood that, between the source end device and the receive end device, a transmission format and transmission channel of at least one of the first status information, the first capability information, the first configuration information, the second status information, the second capability information, and the second configuration information are similar to those in Embodiment 4, and details are not described herein again.

Embodiment 9



[0197] In this embodiment, the first device, namely a decision device, is the source end device, and the second device is the receive end device. The receive end device has a delayed-receiving compensation capability. The source end device and at least one intermediate device have a delayed-sending compensation capability. In other words, the K upstream devices include the source end device and the at least one intermediate device.

[0198] Specifically, the method 100 may further include: transmitting, by the first device based on the first link group, service data to the second device based on a determined configuration of delayed-sending compensation that the first device needs to perform on a corresponding link.

[0199] A process of collaborative compensation by the receive end device, the source end device, and the at least one intermediate device may include the following steps.

F-1: Start the link between the source end device and the receive end device.

F-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

F-3: The receive end device measures a status of a differential delay between the M links.

F-4: The receive end device sends the first status information to the source end device, where the first status information is used to indicate the status of the differential delay between the M links. Correspondingly, the source end device receives the first status information sent by the receive end device. Optionally, the first status information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

F-5: The receive end device sends the first capability information to the source end device, where the first capability information is used to indicate the first capability of performing differential delay compensation on the M links by the receive end device. Correspondingly, the source end device receives the first capability information sent by the receive end device. Optionally, the first capability information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

F-6: The intermediate device sends the second capability information to the source end device, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each intermediate device. Correspondingly, the source end device receives the second capability information sent by the intermediate device. It should be understood that the second capability information may be carried in the data frame in F-2, or may be sent in another manner. This is not limited in this embodiment. Optionally, the second capability information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

F-7: The intermediate device sends the second status information to the source end device, where the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each intermediate device. Correspondingly, the source end device receives the second status information sent by the intermediate device. It should be understood that the second status information may be carried in the data frame in F-2, or may be sent in another manner. This is not limited in this embodiment. Optionally, the second status information may be transmitted through a section management channel of an OH code block in a FlexE.

F-8: The source end device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information, the second capability information sent by the intermediate device, the second capability information used to indicate a capability of performing delayed-sending compensation on at least one of the M links by the source end device, the second status information sent by the intermediate device, and the second status information used to indicate a status of delayed-sending compensation performed on the at least one of the M links by the source end device. A specific link group configuration includes grouping the N of the M links into the first link group.

F-9: The source end device adjusts a sending delay of a corresponding link based on the delayed-sending compensation configuration determined in F-8. For example, in F-8, delayed-sending compensation of a PHY2 is determined to be performed. In this case, a buffer size of delayed-sending compensation of the PHY2 is adjusted in F-9.

F-10: The source end device sends the first configuration information and the second configuration information to the receive end device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the receive end device receives the first configuration information sent by the source end device.

F-11: The receive end device performs configuration of differential delay compensation, for example, sets a local buffer for differential delay compensation, based on the first configuration information.

F-12: The receive end device sends the second configuration information to the intermediate device, where the second configuration information includes information used to indicate a configuration of delayed-sending compensation that the intermediate device needs to perform on a corresponding link. Correspondingly, the intermediate device receives the second configuration information sent by the receive end device.

F-13: The receive end device sends the first configuration information to the intermediate device, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the intermediate device receives the first configuration information sent by the source end device. It should be understood that F-13 is an optional step, and F-13 may be performed for another process instead of a collaborative compensation process.

F-14: The intermediate device adjusts a sending delay of a link, for example, sets a buffer for delayed data sending, based on the second configuration information.

F-15: The intermediate device sends, to the receive end device, information about an updated current status of delayed-sending compensation. In this way, preparation can be made for next collaborative compensation, and the receive end device is informed that configuration of delayed-sending compensation is completed.

F-16: The receive end device performs differential delay compensation on the M links after receiving the information sent by the intermediate device. Specifically, the receive end device performs differential delay compensation, that is, sets a differential delay buffer size, based on the first configuration information. The receive end device sends, to the source end device, information indicating that configuration is completed.

F-17: The source end device sends service data to the receive end device based on the first configuration information.



[0200] It should be understood that, between the source end device, the intermediate device, and the receive end device, a transmission format and transmission channel of at least one of the first status information, the first capability information, the first configuration information, the second status information, the second capability information, and the second configuration information are similar to those in Embodiment 4, and details are not described herein again.

[0201] In Embodiment 10, the first device, namely a decision device, is a management device, and the second device includes the receive end device and/or the source end device. The receive end device has a delayed-receiving compensation capability. The K upstream devices may include the source end device and/or at least one intermediate device, and have the delayed-sending compensation capability.

[0202] Specifically, in S110, the obtaining, by a first device, first status information of M links between a source end device and a receive end device may include: receiving, by the first device, the first status information sent by the receive end device; in S120, the obtaining, by the first device, first capability information of the receive end device may include: receiving, by the first device, the first capability information sent by the receive end device; the obtaining, by the first device, second capability information and second status information of each of the K upstream devices may include: receiving, by the first device, the second capability information and the second status information that are sent by each upstream device; and the method 100 may further include: sending, by the first device, second configuration information to at least one of the K upstream devices, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.

[0203] A process of determining, by the management device, a link group configuration and performing, by the receive end device and another device, collaborative compensation may include the following steps.

G-1: Start the link between the source end device and the receive end device.

G-2: The source end device separately sends data frames to the receive end device by using the M links independently. Correspondingly, the receive end device receives the data frames sent by the source end device. It should be understood that the data frames may include an alignment mark.

G-3: The receive end device measures a status of a differential delay between the M links.

G-4: The receive end device sends the first status information to the management device, where the first status information is used to indicate the status of the differential delay between the M links. Correspondingly, the management device receives the first status information sent by the receive end device.

G-5: The receive end device sends the first capability information to the management device, where the first capability information is used to indicate the first capability of performing differential delay compensation on the M links by the receive end device. Correspondingly, the management device receives the first capability information sent by the receive end device.

G-6: The source end device and/or the at least one intermediate device send/sends the second capability information to the management device, where the second capability information is used to indicate the second capability of performing delayed-sending compensation on at least one of the M links by each upstream device. Correspondingly, the management device receives the second capability information sent by the source end device and/or the at least one intermediate device. It should be understood that the second capability information corresponding to the source end device may be carried in the data frame in G-2, or may be sent in another manner. This is not limited in this embodiment. Optionally, the second capability information may be transmitted through a shim-to-shim management channel of an OH code block in a FlexE.

G-7: The source end device and/or the at least one intermediate device send/sends the second status information to the management device, where the second status information is used to indicate the current status of delayed-sending compensation performed on the at least one of the M links by each upstream device. Correspondingly, the management device receives the second status information sent by the source end device and/or the at least one intermediate device. It should be understood that the second status information corresponding to the source end device may be carried in the data frame in G-2, or may be sent in another manner. This is not limited in this embodiment. Optionally, the second status information may be transmitted through a section management channel of an OH code block in a FlexE.

G-8: The management device determines a link group configuration and a delayed-sending compensation configuration based on the first status information, the first capability information, the second status information, and the second capability information. Specifically, the configuration includes grouping the N of the M links into the first link group.

G-9: The management device sends second configuration information to an upstream device that is in the K upstream devices (including the source end device and/or the at least one intermediate device) and that needs to perform configuration of delayed-sending compensation, where the second configuration information is used to indicate a delayed-sending compensation configuration.

G-10: The upstream device that is in the K upstream devices (including the source end device and/or the at least one intermediate device) and that needs to perform configuration of delayed-sending compensation configures a delayed-sending compensation buffer size based on the second configuration information.

G-11: The upstream device that is in the K upstream devices (including the source end device and/or the at least one intermediate device) and that needs to perform configuration of delayed-sending compensation returns acknowledgement information to the management device, to indicate that the second configuration information is received and corresponding configuration is performed. Correspondingly, the management device receives the acknowledgement information returned by the source end device and/or the receive end device. It should be understood that G-11 is an optional step.

G-12: The management device sends the first configuration information and the second configuration information to the receive end device after receiving the acknowledgement information, where the first configuration information includes the information used to indicate the first link group. Correspondingly, the receive end device receives the first configuration information and the second configuration information that are sent by the management device. Optionally, the first configuration information may further include a buffer requirement of each link for differential delay compensation to be performed by the receive end device. The receive end device may directly set a buffer volume of each link based on the buffer requirement.

G-13: The receive end device performs corresponding configuration based on the first configuration information and the second configuration information.

G-14: The receive end device may return acknowledgement information to the management device, to indicate that the first configuration information and the second configuration information are received and corresponding configuration is performed. Correspondingly, the management device receives the acknowledgement information returned by the receive end device. It should be understood that G-13 is an optional step.

G-15: The management device sends the first configuration information to the source end device after receiving the acknowledgement information returned by the receive end device. It should be understood that G-15 is an optional step.

G-16: The source end device sends service data to the receive end device based on the first configuration information.



[0204] It should be understood that communication, between the source end device and the receive end device and the management device, about the first status information, the first capability information, the first configuration information, the second status information, the second capability information, and the second configuration information may be performed through a management channel of an OH code block of the devices and the management device. Optionally, in a FlexO, the foregoing information may be transmitted by using a GCC0 byte of the OH code block in a GFP format, an HDLC format, or a PPP format, or by using an RES field in a self-defined frame format. In a FlexE, the foregoing information may be transmitted in a form of an Internet Protocol (Internet Protocol, IP) packet through the management channel of the OH code block. A specific transmission manner is not limited in this embodiment.

[0205] In the embodiments of this application, the source end device and the receive end device, or even including the intermediate device and the like, may all have a differential delay compensation capability or a delayed-sending compensation capability. The embodiments of this application are applied to the devices, to implement link group compensation through capability negotiation. When a compensation capability of each device in the FlexE group or the FlexO group between the source end device and the receive end device is insufficient to compensate a differential delay between links, a link group is configured, so that the source end device performs cross-link service data transmission only on delay-aligned links.

[0206] It should be understood that, in the embodiments of this application, in transmission of any one of the first status information, the first capability information, the second status information, the second capability information, the first configuration information, and the second configuration information, status, capability, or configuration information corresponding to each link may be transmitted on the link, in other words, related information is transmitted by using a link as a granularity. Certainly, in the embodiments of this application, related information may alternatively be transmitted by using another granularity, for example, by using a device as a granularity. This is not limited herein.

[0207] The foregoing describes the link group configuration method provided in the embodiments of this application. The following describes a link group configuration device provided in the embodiments of this application.

[0208] FIG. 13 is a schematic block diagram of a link group configuration device 500 according to an embodiment of this application. The link group configuration device 500 is a first device. As shown in FIG. 13, the link group configuration device 500 may include:

an obtaining module 510, configured to obtain first status information of M links between a source end device and a receive end device, where the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2, where

the obtaining module 510 is further configured to obtain first capability information of the receive end device, where the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device;

a processing module 520, configured to group N of the M links into a first link group based on the first status information obtained by the obtaining module 510 and the first capability information obtained by the obtaining module 510, where N is an integer less than or equal to M and greater than or equal to 2; and

a sending module 530, configured to send first configuration information to a second device, where the first configuration information includes information used to indicate the first link group.



[0209] The link group configuration device in this embodiment of this application groups the N of the M links into the first link group based on a status of a differential delay between the M links between the source end device and the receive end device and the capability of performing differential delay compensation on the M links by the receive end device. This avoids a case in which all of the M links are unavailable when the differential delay between the M links exceeds the differential delay compensation capability of the receive end device. Therefore, availability and robustness of a link in a transport network can be improved.

[0210] Optionally, in an optional embodiment, the first device is the receive end device, the second device is the source end device, and the obtaining module 510 is specifically configured to: measure a differential delay between the M links, to obtain the first status information; and the device 500 further includes: a compensation module 540, configured to perform differential delay compensation on links in the first link group based on the first configuration information; and a transmission module 550, configured to perform service data transmission with the second device based on the first link group.

[0211] Optionally, in an optional embodiment, the obtaining module 510 is specifically configured to receive the first status information sent by the receive end device, and receive the first capability information sent by the receive end device.

[0212] Optionally, in an optional embodiment, the first device is the source end device, and the second device is the receive end device; or the first device is a management device, and the second device includes the receive end device and/or the source end device.

[0213] Optionally, in an optional embodiment, K upstream devices of the receive end device on the M links have a delayed-sending compensation capability, where K is a positive integer, the K upstream devices include the source end device and/or at least one intermediate device, and the intermediate device is located between the source end device and the receive end device on the M links. The obtaining module 510 is further configured to obtain second capability information and second status information of each of the K upstream devices, where the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each upstream device, and the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each upstream device. The processing module 520 is specifically configured to group the N of the M links into the first link group based on the first status information, the first capability information, the second status information, and the second capability information. The processing module 520 is further configured to determine, based on the first status information, the first capability information, the second status information, and the second capability information, a configuration of delayed-sending compensation that each upstream device needs to perform on a corresponding link.

[0214] It should be understood that, when the M links cannot be aligned on the receive end device, the M links cannot constitute a link group, to be specific, a FlexE group or a FlexO group crashes and cannot work. The source end device, the receive end device, the intermediate device, and the like in the embodiments of this application may all have a differential delay compensation capability or a delayed-sending compensation capability. The devices in the embodiments of this application implement link group compensation through capability negotiation. When a compensation capability of each device in the FlexE group or the FlexO group between the source end device and the receive end device is insufficient to compensate a differential delay between links, a link group is configured, so that the source end device performs cross-link service data transmission only on delay-aligned links. Alternatively, devices perform collaborative compensation, so that the M links can be aligned on the receive end device finally. This can ensure working of the FlexE group or the FlexO group, and can improve link utilization.

[0215] Optionally, in an optional embodiment, the first device is the receive end device, the second device is the source end device, and the obtaining module 510 is specifically configured to: measure a differential delay between the M links, to obtain the first status information; and receive the second capability information and the second status information that are sent by each upstream device; and the sending module 530 is further configured to send second configuration information to at least one of the K upstream devices, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.

[0216] Optionally, in an optional embodiment, the device 500 may further include: a compensation module 540, configured to perform, based on the first configuration information, differential delay compensation on a link, in the first link group, on which the at least one upstream device has performed delayed-sending compensation based on the second configuration information; and a transmission module 550, configured to perform service data transmission with the second device based on the first link group.

[0217] Optionally, in an optional embodiment, the first device is the source end device, the second device is the receive end device, and the obtaining module 510 may be specifically configured to receive the first status information sent by the receive end device, and receive the first capability information sent by the receive end device.

[0218] Optionally, in an optional embodiment, the K upstream devices include the first device, and the device 500 may further include a transmission module 540, configured to transmit, based on the first link group, service data to the second device based on a determined configuration of delayed-sending compensation that the first device needs to perform on a corresponding link.

[0219] Optionally, in an optional embodiment, the K upstream devices include at least one intermediate device, and the obtaining module 510 is specifically configured to receive the second capability information and the second status information that are sent by each of the at least one intermediate device; and the sending module 530 is further configured to send second configuration information to at least some of the at least one intermediate device, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least some intermediate devices need to perform on a corresponding link.

[0220] Optionally, in an optional embodiment, the first device is a management device, the second device includes the receive end device and/or the source end device, and the obtaining module 510 may be specifically configured to receive the first status information sent by the receive end device, receive the first capability information sent by the receive end device, and receive the second capability information and the second status information that are sent by each upstream device; and the sending module 530 may be further configured to send second configuration information to at least one of the K upstream devices, where the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.

[0221] Optionally, in an optional embodiment, the first configuration information includes a mark used to indicate that a link belongs to the first link group.

[0222] Optionally, in an optional embodiment, the sending module 530 may be specifically configured to add the first configuration information to a reserved field of an overhead code block, and send the reserved field to the second device.

[0223] Optionally, in an optional embodiment, the sending module 530 may be specifically configured to send the first configuration information to the second device by using a first link of the N links, where the first configuration information is used to indicate that the first link belongs to the first link group.

[0224] Optionally, in an optional embodiment, a first part of bits in the first configuration information is used to indicate that the first link and another link constitute the first link group, and a second part of bits in the first configuration information is a mark of the first link group.

[0225] Optionally, in an optional embodiment, the obtaining module 510 is specifically configured to receive the first status information that is sent by the receive end device and that is carried in a first type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.

[0226] Optionally, in an optional embodiment, the first TLV unit can further carry information that is used to indicate a current status of delayed-sending compensation performed on the M links by the receive end device when the receive end device sends service data to the source end device.

[0227] Optionally, in an optional embodiment, the first TLV unit can further carry information that is used to indicate a configuration of delayed-sending compensation that an upstream device needs to perform on a corresponding link.

[0228] Optionally, in an optional embodiment, the obtaining module 510 is specifically configured to receive the first capability information that is sent by the receive end device and that is carried in a second type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.

[0229] Optionally, in an optional embodiment, the second TLV unit can further carry information that is used to indicate a capability of performing delayed-sending compensation on the M links by the receive end device when the receive end device sends service data to the source end device.

[0230] It should be understood that some functions of the obtaining module 510 in this embodiment of this application may be implemented by a processor or a related circuit component of a processor, some functions of the obtaining module 510 may be implemented by a network interface or a related circuit component of a network interface, the processing module 520 may be implemented by a processor or a related circuit component of a processor, and the sending module 530 may be implemented by a network interface or a related circuit component of a network interface.

[0231] As shown in FIG. 14, an embodiment of this application further provides a link group configuration device 600. The link group configuration device 600 is a first device. The link group configuration device 600 includes a processor 610, a memory 620, and a network interface 630. The memory 620 is configured to store an instruction. The processor 610 and the network interface 630 are configured to execute the instruction stored in the memory 620.

[0232] When the processor 610 and the network interface 630 of the link group configuration device 600 execute the instruction stored in the memory 620, the following are implemented:

obtaining, by the first device, first status information of M links between a source end device and a receive end device, where the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2;

obtaining, by the first device, first capability information of the receive end device, where the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device;

grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information, where N is an integer less than or equal to M and greater than or equal to 2; and

sending, by the first device, first configuration information to a second device, where the first configuration information includes information used to indicate the first link group.



[0233] The link group configuration device in this embodiment of this application groups the N of the M links into the first link group based on a status of a differential delay between the M links between the source end device and the receive end device and the capability of performing differential delay compensation on the M links by the receive end device. This avoids a case in which all of the M links are unavailable when the differential delay between the M links exceeds the differential delay compensation capability of the receive end device. Therefore, availability and robustness of a link in a transport network can be improved.

[0234] It should be understood that the link group configuration device 500 shown in FIG. 13 or the link group configuration device 600 shown in FIG. 14 may be configured to perform an operation or a process related to a terminal device in the foregoing method embodiments. In addition, an operation and/or a function of each module in the link group configuration device 500 or the link group configuration device 600 are/is for implementing a corresponding process in the foregoing method embodiments. For brevity, details are not described herein again.

[0235] It should be understood that the processor in the embodiments of the present invention may be a central processing unit (Central Processing Unit, CPU), or may be another general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like.

[0236] It should be further understood that the memory in the embodiments of the present invention may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. The nonvolatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable ROM (Programmable ROM, PROM), an erasable programmable read only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), or a flash memory. The volatile memory may be a random access memory (Random Access Memory, RAM), and is used as an external cache. Through illustrative rather than limitative descriptions, a plurality of forms of RAMs can be used, for example, a static random access memory (Static RAM, SRAM), a dynamic random access memory (Dynamic RAM, DRAM), a synchronous dynamic random access memory (Synchronous DRAM, SDRAM), a double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), an enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), a synchlink DRAM (Synchlink DRAM, SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DR RAM).

[0237] It should be understood that, when the processor is the general purpose processor, the DSP, the ASIC, the FPGA or another programmable logic device, the discrete gate or transistor logic device, or the discrete hardware component, the memory (a storage module) is integrated into the processor.

[0238] It should be noted that the memory described in this specification is to include, but not limited to, these memories and any other appropriate type of memory.

[0239] An embodiment of the present invention further provides a computer readable storage medium. The computer readable storage medium stores an instruction. When the instruction is executed on a computer, the computer executes the link group configuration method in the foregoing method embodiments. Specifically, the computer may be the foregoing link group configuration device, that is, the first device.

[0240] An embodiment of the present invention further provides a computer program product including an instruction. When a computer executes the instruction of the computer program product, the computer executes the link group configuration method in the foregoing method embodiments. Specifically, the computer program product may run on the foregoing link group configuration device, that is, the first device.

[0241] All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, the embodiments may be implemented completely or partly in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, all or some of the processes or functions according to the embodiments of this application are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instruction may be stored in a computer readable storage medium, or may be transmitted from a computer readable storage medium to another computer readable storage medium. For example, the computer instruction may be transmitted from a website, a computer, a server, or a data center to another website, another computer, another server, or another data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (Digital Subscriber Line, DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer readable storage medium may be any usable medium that can be accessed by the computer, or may be a data storage device, such as a server or a data center, into which one or more usable media are integrated. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a high-density digital video disc (Digital Video Disc, DVD)), a semiconductor medium (for example, a solid status disk (Solid Status Disk, SSD)), or the like.

[0242] It should be understood that "first", "second", and various numbers in this specification are merely intended for differentiation for ease of description, but are not intended for limiting the scope of this application.

[0243] It should be understood that the term "and/or" in this specification is merely an associative relationship for describing associated objects, and indicates that three relationships may exist. For example, A and/or B may indicate the following three cases: A alone exists, both A and B exist, and B alone exists. In addition, the character "/" in this specification usually indicates that there is an "or" relationship between former and latter associated objects.

[0244] It should be understood that, in the embodiments of this application, sequence numbers of the foregoing processes do not indicate an execution sequence. An execution sequence of the processes should be determined based on functions and internal logic of the processes, but should not constitute any limitation on implementation processes of the embodiments of the present invention.

[0245] A person of ordinary skill in the art may be aware that units and algorithm steps in examples described with reference to the embodiments disclosed in this specification can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on specific applications and design constraint conditions of the technical solutions. A person skilled in the art may use different methods to implement the described functions for each specific application, but it should not be considered that such an implementation goes beyond the scope of this application.

[0246] It can be clearly understood by a person skilled in the art that, for ease and brevity of description, for detailed working processes of the foregoing systems, apparatuses, and units, reference may be made to corresponding processes in the foregoing method embodiments, and details are not described herein again.

[0247] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or may be integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings, direct couplings, or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electrical, mechanical, or other forms.

[0248] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units may be selected depending on an actual requirement, to achieve the objectives of the solutions in the embodiments.

[0249] In addition, functional units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit.

[0250] The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.


Claims

1. A link group configuration method, comprising:

obtaining, by a first device, first status information of M links between a source end device and a receive end device, wherein the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2;

obtaining, by the first device, first capability information of the receive end device, wherein the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device;

grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information, wherein N is an integer less than or equal to M and greater than or equal to 2; and

sending, by the first device, first configuration information to a second device, wherein the first configuration information comprises information used to indicate the first link group.


 
2. The method according to claim 1, wherein the first device is the receive end device, the second device is the source end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device comprises:

measuring, by the first device, a differential delay between the M links, to obtain the first status information; and

the method further comprises:

performing, by the first device, differential delay compensation on links in the first link group based on the first configuration information; and

performing, by the first device, service data transmission with the second device based on the first link group.


 
3. The method according to claim 1, wherein the obtaining, by a first device, first status information of M links between a source end device and a receive end device comprises:

receiving, by the first device, the first status information sent by the receive end device; and

the obtaining, by the first device, first capability information of the receive end device comprises:
receiving, by the first device, the first capability information sent by the receive end device.


 
4. The method according to claim 3, wherein the first device is the source end device, and the second device is the receive end device; or
the first device is a management device, and the second device comprises the receive end device and/or the source end device.
 
5. The method according to claim 1, wherein K upstream devices of the receive end device on the M links have a delayed-sending compensation capability, wherein K is a positive integer, the K upstream devices comprise the source end device and/or at least one intermediate device, the intermediate device is located between the source end device and the receive end device on the M links, and the method further comprises:

obtaining, by the first device, second capability information and second status information of each of the K upstream devices, wherein the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each upstream device, and the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each upstream device;

the grouping, by the first device, N of the M links into a first link group based on the first status information and the first capability information comprises:

grouping, by the first device, the N of the M links into the first link group based on the first status information, the first capability information, the second status information, and the second capability information; and

the method further comprises:
determining, by the first device based on the first status information, the first capability information, the second status information, and the second capability information, a configuration of delayed-sending compensation that each upstream device needs to perform on a corresponding link.


 
6. The method according to claim 5, wherein the first device is the receive end device, the second device is the source end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device comprises:

measuring, by the first device, a differential delay between the M links, to obtain the first status information;

the obtaining, by the first device, second capability information and second status information of each of the K upstream devices comprises:

receiving, by the first device, the second capability information and the second status information that are sent by each upstream device; and

the method further comprises:
sending, by the first device, second configuration information to at least one of the K upstream devices, wherein the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.


 
7. The method according to claim 6, wherein the method further comprises:

performing, by the first device based on the first configuration information, differential delay compensation on a link, in the first link group, on which the at least one upstream device has performed delayed-sending compensation based on the second configuration information; and

performing, by the first device, service data transmission with the second device based on the first link group.


 
8. The method according to claim 5, wherein the first device is the source end device, the second device is the receive end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device comprises:

receiving, by the first device, the first status information sent by the receive end device; and

the obtaining, by the first device, first capability information of the receive end device comprises:
receiving, by the first device, the first capability information sent by the receive end device.


 
9. The method according to claim 8, wherein the K upstream devices comprise the first device, and the method further comprises:
transmitting, by the first device based on the first link group, service data to the second device based on a determined configuration of delayed-sending compensation that the first device needs to perform on a corresponding link.
 
10. The method according to claim 8 or 9, wherein the K upstream devices comprise at least one intermediate device, and the obtaining, by the first device, second capability information and second status information of each of the K upstream devices comprises:

receiving, by the first device, the second capability information and the second status information that are sent by each of the at least one intermediate device; and

the method further comprises:
sending, by the first device, second configuration information to at least some of the at least one intermediate device, wherein the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least some intermediate devices need to perform on a corresponding link.


 
11. The method according to claim 5, wherein the first device is a management device, the second device comprises the receive end device and/or the source end device, and the obtaining, by a first device, first status information of M links between a source end device and a receive end device comprises:

receiving, by the first device, the first status information sent by the receive end device;

the obtaining, by the first device, first capability information of the receive end device comprises:

receiving, by the first device, the first capability information sent by the receive end device;

the obtaining, by the first device, second capability information and second status information of each of the K upstream devices comprises:

receiving, by the first device, the second capability information and the second status information that are sent by each upstream device; and

the method further comprises:
sending, by the first device, second configuration information to at least one of the K upstream devices, wherein the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.


 
12. The method according to any one of claims 1 to 11, wherein the first configuration information comprises a mark used to indicate that a link belongs to the first link group.
 
13. The method according to any one of claims 1 to 12, wherein the sending, by the first device, first configuration information to a second device comprises:
adding, by the first device, the first configuration information to a reserved field of an overhead code block, and sending the reserved field to the second device.
 
14. The method according to any one of claims 1 to 13, wherein the sending, by the first device, first configuration information to a second device comprises:
sending, by the first device, the first configuration information to the second device by using a first link of the N links, wherein the first configuration information is used to indicate that the first link belongs to the first link group.
 
15. The method according to claim 14, wherein a first part of bits in the first configuration information is used to indicate that the first link and another link constitute the first link group, and a second part of bits in the first configuration information is a mark of the first link group.
 
16. The method according to any one of claims 3, 4, 8, 9, and 11, wherein the receiving, by the first device, the first status information sent by the receive end device comprises:
receiving, by the first device, the first status information that is sent by the receive end device and that is carried in a first type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.
 
17. The method according to claim 16, wherein the first TLV unit is further capable of carrying information that is used to indicate a current status of delayed-sending compensation performed on the M links by the receive end device when the receive end device sends service data to the source end device.
 
18. The method according to claim 16 or 17, wherein the first TLV unit is further capable of carrying information that is used to indicate a configuration of delayed-sending compensation that an upstream device needs to perform on a corresponding link.
 
19. The method according to any one of claims 3, 4, 8, 9, and 11, wherein the receiving, by the first device, the first capability information sent by the receive end device comprises:
receiving, by the first device, the first capability information that is sent by the receive end device and that is carried in a second type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.
 
20. The method according to claim 19, wherein the second TLV unit is further capable of carrying information that is used to indicate a capability of performing delayed-sending compensation on the M links by the receive end device when the receive end device sends service data to the source end device.
 
21. A link group configuration device, wherein the device is a first device and comprises:

an obtaining module, configured to obtain first status information of M links between a source end device and a receive end device, wherein the first status information is used to indicate a status of a differential delay between any two of the M links, any one of the M links is a flexible Ethernet FlexE physical connection link or a flexible optical transport network FlexO physical connection link, and M is an integer greater than or equal to 2, wherein

the obtaining module is further configured to obtain first capability information of the receive end device, wherein the first capability information is used to indicate a first capability of performing differential delay compensation on the M links by the receive end device;

a processing module, configured to group N of the M links into a first link group based on the first status information obtained by the obtaining module and the first capability information obtained by the obtaining module, wherein N is an integer less than or equal to M and greater than or equal to 2; and

a sending module, configured to send first configuration information to a second device, wherein the first configuration information comprises information used to indicate the first link group.


 
22. The device according to claim 21, wherein the first device is the receive end device, the second device is the source end device, and the obtaining module is specifically configured to:

measure a differential delay between the M links, to obtain the first status information; and

the device further comprises:

a compensation module, configured to perform differential delay compensation on links in the first link group based on the first configuration information; and

a transmission module, configured to perform service data transmission with the second device based on the first link group.


 
23. The device according to claim 21, wherein the obtaining module is specifically configured to:

receive the first status information sent by the receive end device; and

receive the first capability information sent by the receive end device.


 
24. The device according to claim 23, wherein the first device is the source end device, and the second device is the receive end device; or
the first device is a management device, and the second device comprises the receive end device and/or the source end device.
 
25. The device according to claim 21, wherein K upstream devices of the receive end device on the M links have a delayed-sending compensation capability, wherein K is a positive integer, the K upstream devices comprise the source end device and/or at least one intermediate device, the intermediate device is located between the source end device and the receive end device on the M links, and the obtaining module is further configured to:

obtain second capability information and second status information of each of the K upstream devices, wherein the second capability information is used to indicate a second capability of performing delayed-sending compensation on at least one of the M links by each upstream device, and the second status information is used to indicate a current status of delayed-sending compensation performed on the at least one of the M links by each upstream device;

the processing module is specifically configured to:

group the N of the M links into the first link group based on the first status information, the first capability information, the second status information, and the second capability information; and

the processing module is further configured to:
determine, based on the first status information, the first capability information, the second status information, and the second capability information, a configuration of delayed-sending compensation that each upstream device needs to perform on a corresponding link.


 
26. The device according to claim 25, wherein the first device is the receive end device, the second device is the source end device, and the obtaining module is specifically configured to:

measure a differential delay between the M links, to obtain the first status information; and

receive the second capability information and the second status information that are sent by each upstream device; and

the sending module is further configured to:
send second configuration information to at least one of the K upstream devices, wherein the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.


 
27. The device according to claim 26, wherein the device further comprises:

a compensation module, configured to perform, based on the first configuration information, differential delay compensation on a link, in the first link group, on which the at least one upstream device has performed delayed-sending compensation based on the second configuration information; and

a transmission module, configured to perform service data transmission with the second device based on the first link group.


 
28. The device according to claim 25, wherein the first device is the source end device, the second device is the receive end device, and the obtaining module is specifically configured to:

receive the first status information sent by the receive end device; and

receive the first capability information sent by the receive end device.


 
29. The device according to claim 28, wherein the K upstream devices comprise the first device, and the device further comprises:
a transmission module, configured to transmit, based on the first link group, service data to the second device based on a determined configuration of delayed-sending compensation that the first device needs to perform on a corresponding link.
 
30. The device according to claim 28 or 29, wherein the K upstream devices comprise at least one intermediate device, and the obtaining module is specifically configured to:

receive the second capability information and the second status information that are sent by each of the at least one intermediate device; and

the sending module is further configured to:
send second configuration information to at least some of the at least one intermediate device, wherein the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least some intermediate devices need to perform on a corresponding link.


 
31. The device according to claim 25, wherein the first device is a management device, the second device comprises the receive end device and/or the source end device, and the obtaining module is specifically configured to:

receive the first status information sent by the receive end device;

receive the first capability information sent by the receive end device; and

receive the second capability information and the second status information that are sent by each upstream device; and

the sending module is further configured to:
send second configuration information to at least one of the K upstream devices, wherein the second configuration information is used to indicate a configuration of delayed-sending compensation that the at least one upstream device needs to perform on a corresponding link.


 
32. The device according to any one of claims 21 to 31, wherein the first configuration information comprises a mark used to indicate that a link belongs to the first link group.
 
33. The device according to any one of claims 21 to 32, wherein the sending module is specifically configured to:
add the first configuration information to a reserved field of an overhead code block, and send the reserved field to the second device.
 
34. The device according to any one of claims 21 to 33, wherein the sending module is specifically configured to:
send the first configuration information to the second device by using a first link of the N links, wherein the first configuration information is used to indicate that the first link belongs to the first link group.
 
35. The device according to claim 34, wherein a first part of bits in the first configuration information is used to indicate that the first link and another link constitute the first link group, and a second part of bits in the first configuration information is a mark of the first link group.
 
36. The device according to any one of claims 23, 24, 28, 29, and 31, wherein the obtaining module is specifically configured to:
receive the first status information that is sent by the receive end device and that is carried in a first type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.
 
37. The device according to claim 36, wherein the first TLV unit is further capable of carrying information that is used to indicate a current status of delayed-sending compensation performed on the M links by the receive end device when the receive end device sends service data to the source end device.
 
38. The device according to claim 36 or 37, wherein the first TLV unit is further capable of carrying information that is used to indicate a configuration of delayed-sending compensation that an upstream device needs to perform on a corresponding link.
 
39. The device according to any one of claims 23, 24, 28, 29, and 31, wherein the obtaining module is specifically configured to:
receive the first capability information that is sent by the receive end device and that is carried in a second type-length-value TLV unit in a Link Layer Discovery Protocol LLDP format of a management channel of an overhead code block.
 
40. The device according to claim 39, wherein the second TLV unit is further capable of carrying information that is used to indicate a capability of performing delayed-sending compensation on the M links by the receive end device when the receive end device sends service data to the source end device.
 
41. A computer storage medium, wherein the computer storage medium stores an instruction; and when the instruction is executed on a computer, the computer executes the method according to any one of claims 1 to 20.
 




Drawing














































REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description