Method for generating forwarding table and forwarding device

By using forwarding devices to generate forwarding tables in FlexE technology, the mapping relationship between FlexE Group and time slots is realized, which solves the problem of FlexE Client's delay in multi-node transmission and improves transmission efficiency.

CN112039779BActive Publication Date: 2025-04-29HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010786756.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2016-07-06
Publication Date
2025-04-29
Estimated Expiration
2036-07-06

AI Technical Summary

Technical Problem

In FlexE (FlexE) technology, when the sending device and the receiving device transmit FlexE Client through multiple nodes, the traditional layer 2 or layer 3 forwarding method results in a large delay.

Method used

By generating a forwarding table by the forwarding device, the relationship between the first FlexE Group and the first time slot set and the second FlexE Group and the second time slot set are mapped, and the time slot mapping and forwarding of the encoded data block are implemented.

Benefits of technology

It reduces the transmission delay of the FlexE Client, improves the transmission efficiency, and reduces the operational complexity of the forwarding device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112039779B_ABST
    Figure CN112039779B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a method for generating a forwarding table, the method comprising: a forwarding device determines a first time slot set, the first time slot set includes a plurality of time slots used when the forwarding device uses a first flexible Ethernet group to send a plurality of coded data blocks generated by a physical coding sublayer to a first device; the forwarding device determines a second time slot set, the second time slot set includes a plurality of time slots used when the forwarding device uses a second FlexE Group to receive a plurality of coded data blocks sent by a second device; the forwarding device generates a forwarding table, the forwarding table including a mapping relationship between the second FlexE Group, the plurality of time slots included in the second time slot set, the first FlexE Group, and the plurality of time slots included in the first time slot set. The method for generating a forwarding table in an embodiment of the present invention forwards FlexE Clients through the generated forwarding table, which can reduce transmission delay and improve transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a Chinese patent application filed on July 6, 2016, with application number 201680087387.6 and invention name “Method for generating forwarding table and forwarding device”. Technical Field

[0002] The present invention relates to the field of communications, and more particularly to a method for generating a forwarding table and a forwarding device. Background Art

[0003] The introduction of the concept of Flexible Ethernet (FlexE) provides a feasible evolution direction for realizing the virtualization of Ethernet physical links. In FlexE, a flexible Ethernet group (FlexE Group) is formed by binding one or more PHYs. The FlexE Group can be regarded as a FlexE link implemented between transceiver devices. The FlexE link is a logical link. The bandwidth of the logical link is equal to the sum of the bandwidths of the bound multiple PHYs. In the FlexE technical solution, the bandwidth resources of the FlexE Group are used by allocating time domain resources (for example, dividing the time domain resources into 20 time slots or 80 time slots). Virtual links are realized by configuring time slots. FlexE provides services for flexible Ethernet clients (FlexE Clients).

[0004] When the sending device and the receiving device use FlexE technology to transmit FlexE Client through multiple nodes, each node needs to perform forwarding according to the traditional Layer 2 (link layer) or Layer 3 (network layer) forwarding method based on the Layer 2 forwarding table or the Layer 3 forwarding table, which results in a large delay. Summary of the invention

[0005] The embodiment of the present invention provides a method for generating a forwarding table, and the forwarding table generated by a forwarding device is transmitted to a FlexE Client, which can reduce the delay.

[0006] In a first aspect, a method for generating a forwarding table is provided, comprising: a forwarding device determines a first time slot set, the first time slot set includes a plurality of time slots used when the forwarding device uses a first flexible Ethernet group to send a plurality of encoded data blocks generated by a physical coding sublayer (PCS) to a first device, and the plurality of time slots included in the first time slot set correspond one-to-one to the plurality of encoded data blocks; the forwarding device determines a second time slot set, the second time slot set includes a plurality of time slots used when the forwarding device uses a second FlexE Group to receive a plurality of encoded data blocks sent by a second device, and the plurality of time slots included in the second time slot set correspond one-to-one to the plurality of encoded data blocks; the forwarding device generates a forwarding table, the forwarding table including a mapping relationship between the second FlexE Group, the plurality of time slots included in the second time slot set, the first FlexE Group, and the plurality of time slots included in the first time slot set.

[0007] In the method for generating a forwarding table in an embodiment of the present invention, a forwarding device establishes a forwarding table so that when transmitting a FlexEClient, the forwarding device can map the coded data blocks transmitted in multiple time slots in a first time slot set to multiple time slots in a second time slot set for forwarding according to the forwarding table, thereby reducing transmission delay and improving transmission efficiency.

[0008] In a possible implementation, the forwarding device determines a first time slot set, including: the forwarding device receives a first message sent by a first device, the first message is used to instruct the forwarding device to determine the first time slot set; the forwarding device determines the first available time slot of the forwarding device as the first time slot set.

[0009] In a possible implementation, the method may also include: the forwarding device sends a second message to the first device, the second message carries identifiers of multiple time slots included in the first time slot set, and the second message is used to instruct the first device to determine the multiple time slots included in the first time slot set as the time slots used by the first device when receiving multiple encoded data blocks using the first FlexE Group.

[0010] In one possible implementation, a forwarding device determines a second time slot set, including: the forwarding device sends a third message to the second device, the third message is used to instruct the second device to determine the second available time slot of the second device as the second time slot set; the forwarding device receives a fourth message sent by the second device, the fourth message carries identifiers of multiple time slots included in the second time slot set; the forwarding device determines the second time slot set based on the identifiers of the multiple time slots included in the second time slot set carried in the fourth message.

[0011] In one possible implementation, a forwarding device determines a first time slot set, including: the forwarding device receives identifiers of multiple time slots included in the first time slot set sent by the first device, the multiple time slots included in the first time slot set are time slots determined by the first device to be used when receiving multiple encoded data blocks using the first FlexE Group; the forwarding device determines the first time slot set based on the identifiers of the multiple time slots included in the first time slot set sent by the first device.

[0012] In a possible implementation, the method may also include: the forwarding device sends an indication message to the second device, the indication message carrying identifiers of multiple time slots included in the second time slot set, and the indication message is used to instruct the second device to configure the multiple time slots included in the second time slot set as time slots for the second device to send multiple encoded data blocks to the forwarding device through the second FlexE Group.

[0013] In one possible implementation, a forwarding device receives identifiers of multiple time slots in a first time slot set sent by a first device, including: the forwarding device receives a Generalized Multi-Protocol Label Switching (GMPLS) label sent by the first device, the GMPLS label includes a first field and a second field, the first field represents the identifiers of the multiple time slots included in the first time slot set, and the second field represents the first FlexE Group.

[0014] In a possible implementation, before the forwarding device determines the first time slot set, the method also includes: the forwarding device receives a path message sent by the second device, the path message includes path type indication information, and the path type indication information is used to indicate the establishment of a FlexE-based path; the forwarding device forwards the path message to the first device.

[0015] In a possible implementation, the path message may further include traffic parameter attribute information, the traffic parameter attribute information includes a signal type field and a bit_rate field, the signal type field indicates that the transmitted signal type is a coded data block with a rate of 5 Gbps (Gigabit per second), and the bit_rate field indicates the rate of the FlexE Client corresponding to the multiple coded data blocks.

[0016] According to a second aspect, a method for generating a forwarding table is provided, including: a first device sends a first message to a forwarding device, the first message is used to instruct the forwarding device to determine a first time slot set, the first time slot set includes multiple time slots used when the forwarding device uses a first FlexE Group to send multiple coded data blocks generated by a physical coding sublayer to the first device, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks; the first device receives a second message sent by the forwarding device based on the first message, the second message carries identifiers of the multiple time slots included in the first time slot set; the first forwarding device determines the first time slot set according to the second message, and determines the multiple time slots included in the first time slot set as the time slots used when the first device uses the first FlexE Group to receive multiple coded data blocks.

[0017] In a possible implementation, before the first device sends the first message to the forwarding device, the method may further include: the first device receives a path message sent by the forwarding device, the path message includes path type indication information, and the path type indication information is used to indicate the establishment of a FlexE-based path.

[0018] In a possible implementation, the path message may further include traffic parameter attribute information, where the traffic parameter attribute information includes a signal type field and a bit_rate field, where the signal type field indicates that the transmitted signal type is a coded data block at a rate of 5 Gbps, and the bit_rate field indicates a rate of the FlexE Client corresponding to the multiple coded data blocks;

[0019] According to a third aspect, a method for generating a forwarding table is provided, including: a first device determines a first time slot set, the first time slot set includes a plurality of time slots used when the first device uses a first flexible Ethernet group FlexE Group to receive a plurality of coded data blocks generated by a physical coding sublayer sent by the first device, and the plurality of time slots included in the first time slot set correspond one-to-one to the plurality of coded data blocks; the first device sends identifiers of the plurality of time slots included in the first time slot set to a forwarding device, so that the forwarding device determines the plurality of time slots included in the first time slot set as the time slots used when the forwarding device uses the first FlexE Group to send the plurality of coded data blocks to the first device.

[0020] In one possible implementation, the first device sends identifiers of multiple time slots included in the first time slot set to the forwarding device, including: the first device sends a GMPLS label to the forwarding device, the GMPLS label includes a first field and a second field, the first field represents the identifiers of the multiple time slots included in the first time slot set, and the second field represents the first FlexE Group.

[0021] In a possible implementation, before the first device sends the identifiers of multiple time slots included in the first time slot set to the forwarding device, the method may also include: the first device receives a path message sent by the forwarding device, the path message includes path type indication information, and the path type indication information is used to indicate the establishment of a FlexE-based path; wherein the first device sends the identifiers of multiple time slots included in the first time slot set to the forwarding device, including: the first device sends a reservation message in response to the path message to the forwarding device, the reservation message includes the identifiers of multiple time slots in the first time slot set.

[0022] In a possible implementation, the path message may also include traffic parameter attribute information, the traffic parameter attribute information includes a signal type field and a bit_rate field, the signal type field indicates that the transmitted signal type is a coded data block at a rate of 5 Gbps, and the bit_rate field indicates the rate of the FlexE Client corresponding to the multiple coded data blocks.

[0023] In a possible implementation, the path message may further include label request information, and the label request information includes a length field, a class_number field, a class_type field, a label switched path (LSP) encoding type field, a switch type field, and a generalized protocol identifier (G-PID) field. Among them, the value in the length field indicates the length of the label request information, the value in the class_number field indicates the label request information, the value in the class_type field indicates that the label request is a general label request, the value in the LSP encoding type field indicates a FlexE-based path, the value in the switch type field indicates that the applied switching technology is FlexE, and the value in the generalized protocol identifier field indicates that 64B / 66B Ethernet technology is used and is applied to Flexible Ethernet.

[0024] In a fourth aspect, a method for generating a forwarding table is provided, including: a second device receives a third message sent by a forwarding device, the third message is used to instruct the second device to determine a second time slot set, the second time slot set includes multiple time slots used when the forwarding device uses a second FlexE Group to receive multiple coded data blocks sent by the second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks; the second device determines the second time slot set according to the third message; the second device sends a fourth message to the forwarding device, the fourth message carries identifiers of the multiple time slots included in the second time slot set, and the fourth message is used to instruct the forwarding device to configure the multiple time slots included in the second time slot set as time slots for the second device to send multiple coded data blocks to the forwarding device through the second FlexE Group.

[0025] In a possible implementation, before the second device receives the third message sent by the forwarding device, the method may further include: the second device sends a path message to the forwarding device, the path message includes path type indication information, and the path type indication information is used to indicate the establishment of a FlexE-based path.

[0026] In a possible implementation, the path message may also include traffic parameter attribute information, the traffic parameter attribute information includes a signal type field and a bit_rate field, the signal type field indicates that the transmitted signal type is a coded data block at a rate of 5 Gbps, and the bit_rate field indicates the rate of the FlexE Client corresponding to the multiple coded data blocks.

[0027] In a fifth aspect, a method for generating a forwarding table is provided, including: a second device receives an indication message sent by a forwarding device, the indication message carries identifiers of multiple time slots included in a second time slot set, the second time slot set includes multiple time slots used when the forwarding device uses a second FlexE Group to receive multiple coded data blocks sent by the second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks; the second device configures, according to the indication message, the multiple time slots included in the second time slot set as time slots for the second device to send multiple coded data blocks to the forwarding device through the second FlexE Group.

[0028] In one possible implementation, the second device receives an indication message sent by the forwarding device, including: the second device receives a GMPLS label sent by the forwarding device, the GMPLS label includes a first field and a second field, the first field represents identifiers of multiple time slots included in the second time slot set, and the second field represents a second FlexE Group.

[0029] In a possible implementation, before the second device receives the indication message sent by the forwarding device, the method may further include: the second device receives a path message sent by the forwarding device, the path message includes path type indication information, and the path type indication information is used to indicate the establishment of a FlexE-based path.

[0030] In a possible implementation, the path message also includes traffic parameter attribute information, the traffic parameter attribute information includes a signal type field and a bit_rate field, the signal type field indicates that the transmitted signal type is a coded data block at a rate of 5 Gbps, and the bit_rate field indicates the rate of the FlexE Client corresponding to the multiple coded data blocks.

[0031] In a possible implementation, the path message also includes label request information, and the label request information includes a length field, a class_number field, a class_type field, an LSP encoding type field, a switch type field, and a general protocol identification field, wherein the value in the length field indicates the length of the label request information, the value in the class_number field indicates the label request information, the value in the class_type field indicates that the label request is a general label request, the value in the LSP encoding type field indicates a FlexE-based path, the switch type field indicates that the applied switching technology is FlexE, and the value in the general protocol identification field indicates that 64B / 66B Ethernet technology is used and is applied to Flexible Ethernet.

[0032] In a sixth aspect, a forwarding device is provided, which is used to execute the method in the first aspect or any possible implementation of the first aspect. Specifically, the forwarding device includes a unit for executing the method in the first aspect or any possible implementation of the first aspect.

[0033] In a seventh aspect, a first device is provided, configured to execute the method in the second aspect or any possible implementation of the second aspect. Specifically, the forwarding device includes a unit configured to execute the method in the second aspect or any possible implementation of the second aspect.

[0034] In an eighth aspect, a first device is provided, configured to execute the method in the third aspect or any possible implementation of the third aspect. Specifically, the forwarding device includes a unit configured to execute the method in the third aspect or any possible implementation of the third aspect.

[0035] In a ninth aspect, a second device is provided, configured to execute the method in the fourth aspect or any possible implementation of the fourth aspect. Specifically, the forwarding device includes a unit configured to execute the method in the fourth aspect or any possible implementation of the fourth aspect.

[0036] In a tenth aspect, a second device is provided, configured to execute the method in the fifth aspect or any possible implementation of the fifth aspect. Specifically, the forwarding device includes a unit configured to execute the method in the fifth aspect or any possible implementation of the fifth aspect.

[0037] In an eleventh aspect, a forwarding device is provided, the forwarding device comprising a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via the bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals. When the processor executes the instructions stored in the memory, the processor executes the method in the first aspect or any possible implementation of the first aspect.

[0038] In a twelfth aspect, a first device is provided, the first device comprising a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via a bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals. When the processor executes the instructions stored in the memory, the processor executes the method in the second aspect or any possible implementation of the second aspect.

[0039] In the thirteenth aspect, a first device is provided, the first device comprising a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via the bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals. When the processor executes the instructions stored in the memory, the processor executes the method in the third aspect or any possible implementation of the third aspect.

[0040] In a fourteenth aspect, a second device is provided, the second device comprising a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via a bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals. When the processor executes the instructions stored in the memory, the processor executes the method in the fourth aspect or any possible implementation of the fourth aspect.

[0041] In a fifteenth aspect, a second device is provided, the second device comprising a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via a bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals. When the processor executes the instructions stored in the memory, the processor executes the method in the fifth aspect or any possible implementation of the fifth aspect.

[0042] In a sixteenth aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.

[0043] In a seventeenth aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the second aspect or any possible implementation of the second aspect.

[0044] In an eighteenth aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the third aspect or any possible implementation of the third aspect.

[0045] In a nineteenth aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the fourth aspect or any possible implementation of the fourth aspect.

[0046] In the twentieth aspect, the present application provides a computer-readable medium for storing a computer program, wherein the computer program includes instructions for executing the method in the fifth aspect or any possible implementation of the fifth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0048] Figure 1 It is a schematic block diagram of an application scenario of the method for generating a forwarding table according to an embodiment of the present invention.

[0049] Figure 2 It is a schematic flow chart of a method for generating a forwarding table according to an embodiment of the present invention.

[0050] Figure 3 It is a schematic diagram of the flow parameter attribute information format of an embodiment of the present invention.

[0051] Figure 4 It is a schematic diagram of the format of a GMPLS label according to an embodiment of the present invention.

[0052] Figure 5 The figure is a schematic flow chart of a method for generating a forwarding table according to an embodiment of the present invention.

[0053] Figure 6 It is a schematic flow chart of a method for generating a transfer table according to another embodiment of the present invention.

[0054] Figure 7 It is a schematic diagram of the format of a tag request object according to an embodiment of the present invention.

[0055] Figure 8 is a schematic block diagram of a forwarding device according to an embodiment of the present invention.

[0056] Fig. 9 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The technical scheme in the embodiment of the present invention will be clearly described below in conjunction with the accompanying drawings in the embodiment of the present invention. The described embodiment is a part of the embodiment of the present invention, rather than all the embodiments. Based on the embodiment of the present invention, ordinary technicians in this field can obtain other embodiments without making creative work.

[0058] The following is a brief description of the technical terms involved in the embodiments of the present invention:

[0059] FlexE Client: An Ethernet flow for which the Ethernet MAC rate corresponds or does not correspond to the Ethernet PHY rate.

[0060] FlexE Group: A Group of from 1 to n bonded Ethernet PHYs. The value of n is equal to 254. For example, a FlexE Group can be 1 bonded Ethernet PHY. A FlexE Group can be 2 bonded Ethernet PHYs. A FlexE Group can be 5 bonded Ethernet PHYs.

[0061] For 1 bonded Ethernet PHYs, one send PHY is bonded to one receive PHY. The number of the send PHY is equal to the number of the receive PHY.

[0062] For multiple bonded Ethernet PHYs, the multiple transmit PHYs are respectively bonded to the multiple receive PHYs. The number of the multiple transmit PHYs is respectively equal to the number of the multiple receive PHYs.

[0063] The transmit PHY refers to a PHY used to transmit data.

[0064] The receive PHY refers to a PHY used to receive data.

[0065] The PHY in this application refers to Ethernet PHY.

[0066] For information about Flex Ethernet (FlexE), FlexE Client and FlexE Group, please refer to the Flex Ethernet 1.0 Implementation Agreement released by the Optical Internetworking Forum in March 2016. The entire application includes the Flex Ethernet 1.0 Implementation Agreement.

[0067] Logical link: A link built on a physical link. A physical link can be divided into multiple logical links. Or multiple physical links can constitute a logical link.

[0068] The technical solution provided by the embodiment of the present invention can be applied to a backbone network, a convergence network, an access network, an enterprise network, a mobile fronthaul network or a mobile backhaul network.

[0069] Figure 1 FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention. Figure 1 As shown, it includes a first device 101, a forwarding device 102 and a second device 103, wherein the second device 103 can be a sending device, for example, a router or a switch. The first device 101 can be a receiving device, for example, a router or a switch. The forwarding device 102 can be a router or a switch. The forwarding device 102 is a device with the function of forwarding FlexE Client.

[0070] In the prior art, when the second device 103 forwards the FlexEClient to the first device 101 via the forwarding device 102, the forwarding device 102 needs to search the layer 2 or layer 3 forwarding table for forwarding according to the traditional layer 2 (link layer) or layer 3 (network layer) forwarding method, which is more complicated and has a longer transmission delay. Therefore, the present invention provides a method for generating a forwarding table, which can reduce the transmission delay and improve the transmission efficiency.

[0071] The following, combined Figures 2 to 7 A method for generating a transfer table according to an embodiment of the present invention is described in detail.

[0072] Figure 2 2 is a schematic flow chart of a method 200 for generating a forwarding table according to an embodiment of the present invention. It should be understood that Figure 2 The detailed communication steps or operations of the method for generating the forwarding table are shown. These steps or operations are only examples, and the embodiment of the present invention can also perform other operations or Figure 2 In addition, Figure 2 The steps in Figure 2are executed in a different order than the ones presented, and may not be executed Figure 2 It should also be understood that the time slot involved in the embodiment of the present invention may specifically be a calendar slot. For details about the calendar slot, please refer to Ethernet Implementation Protocol 1.0.

[0073] 210. The forwarding device determines a first time slot set.

[0074] Specifically, the first time slot set may include multiple time slots, and the multiple time slots may be multiple time slots used when the forwarding device uses the first FlexE Group to send multiple coded data blocks generated by the PCS to the first device. The multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks, that is, one time slot transmits one coded data block.

[0075] The first FlexE Group includes one or more transmit PHYs. The first FlexE Group includes one or more receive PHYs. The transmit PHYs in the first FlexE Group are bound to the receive PHYs in the first FlexE Group.

[0076] Here, the plurality of coded data blocks may be data blocks generated after the second device (or the sending device) encodes an Ethernet frame corresponding to a FlexEClient. For example, the plurality of coded data blocks may be a plurality of 64B / 66B data blocks or a plurality of 8B / 10B data blocks.

[0077] In an embodiment of the present invention, a forwarding device and a first device may establish a logical link through a first FlexE Group. The forwarding device may send multiple coded data blocks on multiple time slots included in a first time slot set through the first FlexE Group. The first device (or may be referred to as a receiving device) may receive multiple coded data blocks sent by the forwarding device on multiple time slots included in the first time slot set through the first FlexE Group. Furthermore, the first device may generate an Ethernet frame corresponding to the FlexE Client based on the received multiple coded data blocks.

[0078] For example, when allocating time domain resources, the time domain resources may be divided into a plurality of cycles. Each of the plurality of cycles includes 20 time slots, namely, time slot 0 to time slot 19. The time length of each time slot may be 1 millisecond (ms). The time length of a cycle may be 20ms. The forwarding device may allocate time slots 7, 8, 9, and 10 in each cycle to the first FlexE Group. The first FlexE Group may be FlexE Group 1, and the first time slot set may include time slots 7, 8, 9, and 10. The forwarding device may send a plurality of coded data blocks generated by the physical coding sublayer of the second device in time slots 7, 8, 9, and 10 in each cycle, respectively, through FlexE Group 1. The first device receives a plurality of coded data blocks in time slots 7, 8, 9, and 10 in each cycle, respectively, through FlexE Group 1. And generate Ethernet frames according to the received plurality of coded data blocks. That is, the first device may restore the Ethernet frame obtained by the second device according to the plurality of coded data blocks. For example, the first device may generate Ethernet frames by reordering and reorganizing the plurality of coded data blocks. Alternatively, the forwarding device may allocate time slots 7, 8, 9, and 10 in the first cycle to the first FlexE Group. However, the forwarding device does not allocate time slots 7, 8, 9, and 10 in other cycles to the first FlexE Group. In this case, the forwarding device may send multiple coded data blocks in time slots 7, 8, 9, and 10 in the first cycle through FlexE Group 1. The first device receives multiple coded data blocks in time slots 7, 8, 9, and 10 in the first cycle through FlexE Group 1. And generates Ethernet frames according to the received multiple coded data blocks.

[0079] 220. The forwarding device determines a second time slot set.

[0080] Specifically, the second time slot set may include multiple time slots, which may be multiple time slots used when the forwarding device uses the second FlexE Group to receive multiple coded data blocks sent by the second device. Here, the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks, that is, one time slot transmits one coded data block.

[0081] The forwarding device includes a receiving PHY in the second FlexE Group. The second device includes a transmitting PHY in the second FlexE Group.

[0082] In the embodiment of the present invention, a forwarding device and a second device may establish a logical link through a second FlexE Group. The second device may send multiple coded data blocks on multiple time slots included in the second time slot set through the second FlexE Group. The forwarding device may receive multiple coded data blocks sent by the second device on multiple time slots included in the second time slot set through the second FlexE Group.

[0083] For example, the second FlexE Group may be FlexE Group 2, and the second time slot set may include time slots 0, 6, 7, and 10. The second device may transmit the coded data block generated by the physical coding sublayer of the second device in time slots 0, 6, 7, and 10 in each time slot cycle through FlexE Group 2. The forwarding device may receive the coded data block in a time slot in each time slot cycle through FlexE Group 2. Then, the coded data block is sent to the first device in time slots 7, 8, 9, and 10 in each time slot cycle through FlexE Group 1.

[0084] 230. The forwarding device generates a forwarding table, where the forwarding table includes a mapping relationship between the second FlexE Group, the multiple time slots included in the second time slot set, the first FlexE Group, and the multiple time slots included in the first time slot set.

[0085] Specifically, the forwarding device can establish a mapping relationship between the second FlexE Group and the multiple time slots included in the second time slot set and the multiple time slots included in the first FlexE Group and the first time slot set according to the determined second FlexE Group, the multiple time slots included in the second time slot set, and the multiple time slots included in the first FlexE Group and the first time slot set. It should be understood that the multiple time slots included in the first time slot set correspond one-to-one to the multiple time slots included in the second time slot set.

[0086] For example, the mapping relationship included in the forwarding table specifically includes a mapping relationship between the first information and the second information. The first information includes the second FlexE Group and multiple time slots included in the second time slot set. The second information includes the first FlexE Group and multiple time slots included in the first time slot set.

[0087] Optionally, the method may further include: the forwarding device sends a plurality of encoded data blocks according to the forwarding table.

[0088] Optionally, the method may also include: after the forwarding device receives multiple coded data blocks on multiple time slots included in the second time slot set through the second FlexE Group, and before sending multiple coded data blocks on multiple time slots included in the first time slot set through the first FlexE Group, the forwarding device does not perform layer 2 (link layer) or layer 3 (network layer) processing on the multiple coded data blocks.

[0089] For ease of understanding and explanation, the following takes the specific process of forwarding the coded data block corresponding to the FlexE Client as an example. Figure 1 Table 1 details the mapping table established by the forwarding device.

[0090] Assume that the forwarding path of the FlexE Client is Figure 1 As shown, the second device 103 →the forwarding device 102 →the first device 101 .

[0091] For example, the second FlexE Group is FlexE Group 2, the second time slot set includes time slots 0, 6, 7, and 10, the first FlexE Group is FlexE Group 1, and the first time slot set includes time slots 7, 8, 9, and 10. Then the mapping table established by the forwarding device can be as shown in Table 1. It should be understood that the input FlexE Group in Table 1 represents the FlexE Group in which the forwarding device receives the coded data block, which is represented by the FlexE Group number (number); the input time slot set includes the time slot in which the forwarding device receives the coded data block, which is represented by the time slot number; the output FlexE Group represents the FlexEGroup in which the forwarding device sends the coded data block, which is represented by the FlexE Group number; the output time slot set includes the time slot in which the forwarding device sends the coded data block, which is represented by the time slot number.

[0092] Table 1

[0093] Join FlexE Group In-slot set FlexE Group Outgoing Slot Set 2 0,6,7,10 1 7,8,9,10 3 1,2,5 4 3,5,8 … … … …

[0094] Combining Table 1 and Figure 1It can be seen that the coded data block generated by the physical coding sublayer of the second device 103 is sent through FlexE Group 2 in time slots 0, 6, 7, and 10. The forwarding device 102 receives the coded data block sent by the second device 103 in time slots 0, 6, 7, and 10 through FlexE Group 2 between the forwarding device 102 and the second device 103, and sends it in time slots 7, 8, 9, and 10 through FlexE Group 1. The first device 101 receives the coded data block sent by the forwarding device 102 in time slots 7, 8, 9, and 10 through FlexE Group 1, and can restore the FlexEClient based on the coded data block. In this way, it is equivalent to transmitting the FlexE Client through an end-to-end channel established by FlexE Group 1, FlexE Group 2, and Table 1, thereby improving the transmission efficiency.

[0095] It should be understood that the forwarding table shown in Table 1 is only an exemplary description and should not constitute any limitation to the present invention. The forwarding table established by the forwarding device includes an inbound FlexE Group, an inbound time slot set, an outbound FlexE Group, and an outbound time slot set, but Table 1 is not necessarily a form of expression of the forwarding table, or in other words, the forwarding device can establish a forwarding table expressed in Table 1 or in other forms different from Table 1.

[0096] It should also be understood that Figure 1 Only one forwarding device 102 is taken as an example. The forwarding path from the second device 103 to the first device 101 may include multiple forwarding devices. Each forwarding device can establish a forwarding table as shown in Table 1, and each forwarding device forwards through the forwarding table.

[0097] In the method for generating a forwarding table in an embodiment of the present invention, the forwarding device can establish a transmission path between two nodes by generating a forwarding table, so that the FlexE Client can be transmitted through the mapping relationship between the second FlexE Group, the multiple time slots in the second time slot set, the first FlexE Group and the multiple time slots in the first time slot set in the forwarding table. Compared with the prior art, the forwarding device needs to search the 2-layer or 3-layer forwarding table for forwarding according to the traditional 2-layer (link layer) or 3-layer (network layer) forwarding method, which can reduce the transmission delay and improve the transmission efficiency.

[0098] Optionally, when the forwarding device determines the first time slot set, it may autonomously determine the first time slot set according to the first message sent by the first device.

[0099] Specifically, the forwarding device may receive a first message sent by the first device, and the first message is used to instruct the forwarding device to determine the first time slot set. The forwarding device determines the first available time slot of the forwarding device as the first time slot set according to the first message. Here, the first time slot set is determined by the forwarding device itself. The forwarding device may check the available time slots through the time slot configuration module inside the device, and select the first available time slot (for example, time slots 7, 8, 9, 10) from the available time slots as the first time slot set.

[0100] In the embodiment of the present invention, the first message may be a reservation (Resv) message in a resource reservation protocol (RSVP). For ease of description, the reservation message here may be referred to as a first reservation message. The first reservation information may be used to instruct the first device to determine a first time slot set.

[0101] The first reservation message may further include path type indication information, used to indicate the establishment of a FlexE-based path.

[0102] RFC3473 published by the Internet Engineering Task Force (IETF) can be extended to implement the above technical solution. Specifically, the path type indication information can be a new class-type value (Class-Type value) added to the traffic characteristic FLOWSPEC object carried in the first reservation message. The new class-type value can be implemented by extending the fields defined in RFC3473. For example, when the Class-Type value is 9, it can indicate the establishment of a FlexE-based path. It should be understood that Class-Type being 9 indicates that the establishment of a FlexE-based path is only an embodiment of the present invention and should not constitute any limitation to the embodiments of the present invention.

[0103] The path type indication information may also be a new session type extended in RSVP, for example, a new Class-Type value in the RSVP session object. For example, when the Class-Type value is 25, it indicates that a FlexE-based path is established. It should be understood that the Class-Type value of 25 indicating the establishment of a FlexE-based path is only an embodiment of the present invention and should not constitute any limitation on the present invention.

[0104] In addition, the first reservation message may also include traffic parameter (Traffic Parameter) attribute information.

[0105] As an example, the traffic parameter attribute information format can be as follows: Figure 3 As shown. Figure 3 As shown, the traffic parameter attribute information may include a signal type field, a reserved field, and a bit_rate field (Bit_rate). Among them, the signal type field is used to indicate the type of signal carried. For example, when signal type=1, it indicates that the signal type is a coded data block with a rate of 5Gbps. The bit_rate field indicates the rate of the FlexE Client corresponding to the multiple coded data blocks. For example, when Bit_rate=10, it indicates that the rate of the FlexE Client corresponding to the multiple coded data blocks is 10Gbps.

[0106] It should be understood that Figure 3 The flow parameter attribute information format shown is only an example of the flow parameter attribute information in the embodiment of the present invention, and shall not constitute any limitation to the embodiment of the present invention. The embodiment of the present invention does not limit the flow parameter attribute information format.

[0107] Further, after the forwarding device determines the first time slot set, optionally, the method may also include: the forwarding device sends a second message to the first device, and the second message may carry identifiers of multiple time slots included in the first time slot set.

[0108] Specifically, the forwarding device can send a second message to the first device to inform the first device of the first time slot set determined by the forwarding device, and instruct the first device through the second message to determine the multiple time slots included in the first time slot as the time slots used by the first device when receiving multiple encoded data blocks using the first FlexE Group.

[0109] Here, the forwarding device may send the second message to the first device through the in-band FlexE control channel.

[0110] Optionally, the forwarding device determines the second time slot set may include: the forwarding device sends a third message to the second device, the third message is used to instruct the second device to determine the second available time slot of the second device as the second time slot set; the forwarding device receives a fourth message sent by the second device, the fourth message carries identifiers of multiple time slots included in the second time slot set; the forwarding device determines the second time slot set based on the identifiers of the multiple time slots included in the second time slot set carried in the fourth message.

[0111] Specifically, the forwarding device can instruct the second device to determine the second time slot set by sending a third message to the second device. After receiving the third message, the second device can autonomously determine the second time slot set. Here, the second device can specifically check the available time slots through the time slot configuration module inside the device, and select the second available time slots (for example, time slots 0, 6, 7, 10) from the available time slots as the second time slot set. After determining the second time slot set, the second device sends a fourth message to the forwarding device to inform the forwarding device of the second time slot set determined by the second device. The forwarding device determines the second time slot set based on the identifiers of the multiple time slots included in the second time slot set carried in the received fourth message.

[0112] In the embodiment of the present invention, the third message may be a reservation message in RSVP. For the convenience of description, the reservation message in RSVP here may be referred to as a second reservation message. The second reservation message may be used to instruct the second device to determine the second time slot set.

[0113] The second reservation message may refer to the description of the first reservation message, which will not be repeated here for the sake of brevity.

[0114] Here, the second device may also send a fourth message to the forwarding device through the in-band FlexE control channel.

[0115] Optionally, when the forwarding device determines the first time slot set, the first time slot set may be determined according to identifiers of multiple time slots included in the first time slot set sent by the first device.

[0116] Specifically, the first device may first determine a first time slot set (for example, time slots 7, 8, 9, 10), and then send identifiers of multiple time slots included in the first time slot set to the forwarding device. Here, the multiple time slots included in the first time slot set are time slots determined by the first device for use when receiving multiple coded data blocks using the first FlexE Group. After the forwarding device receives the identifiers of the multiple time slots included in the first time slot set sent by the first device, it can determine the first time slot set.

[0117] In the embodiment of the present invention, when the first device sends the identifiers of the multiple time slots included in the first time slot set to the forwarding device, the identifiers of the multiple time slots included in the first time slot set can be sent by sending a reservation (Resv) message in RSVP to the forwarding device. For the convenience of description, the reservation message here can be called a third reservation message. Specifically, the third reservation message can carry the identifiers of the multiple time slots included in the first time slot set.

[0118] The third reservation message may refer to the description of the first reservation message and the second reservation message, which will not be repeated here for the sake of brevity.

[0119] Further, the first device may carry the identifiers of the multiple time slots included in the first time slot set through a general multi-protocol label switching protocol GMPLS label included in the third reservation message. For the convenience of description, the GMPLS label here may be referred to as a first GMPLS label.

[0120] As an example, the format of a GMPLS label may be as follows: Figure 4 As shown. Figure 4 As shown, the first GMPLS label may include a first field and a second field. The first field may be called a used slot field. The used slot field may indicate the identifiers of multiple time slots in the first time slot set. The second field may be called a flexible Ethernet group number (FlexE Group number) field, which indicates that the FlexE Group used is the first FlexE Group. The first GMPLS label may also include a third field and a fourth field. The third field may indicate the length (Length) of the used slot field. The fourth field may be called padding bits. If the sum of the lengths of the first field, the second field, and the third field is not a multiple of 4 bytes, the supplementary bits are used to fill in multiples of 4 bytes. For example, the first field may occupy 80 bits (Bits) to indicate the used slots. For example, the multiple time slots included in the first time slot set may be indicated by setting the positions corresponding to time slots 7, 8, 9, and 10 in the used slot field to 1 and the remaining positions to 0. The first field may also be 20 bits, which is not limited by the embodiment of the present invention. The second field may occupy 20 bits. When FlexE Group number = 1, it indicates that FlexE Group 1 (an example of the first FlexE Group) is used. The third field may be 12 bits. For example, when Length = 80, it indicates that the length of the time slot field used is 80 bits. The length of the fourth field may be 16. In this way, the sum of the lengths of the first field, the second field, the third field, and the fourth field is a multiple of 4 bytes.

[0121] It should be understood that Figure 4 The first GMPLS label shown is only a specific format of a GMPLS label in the embodiment of the present invention, and the embodiment of the present invention does not limit the format of the GMPLS label.

[0122] Optionally, the method may also include: the forwarding device sends an indication message to the second device, the indication message carrying identifiers of multiple time slots included in the second time slot set, and the indication message is used to instruct the second device to configure the multiple time slots included in the second time slot set as time slots for the second device to send multiple encoded data blocks to the forwarding device through the second FlexE Group.

[0123] After determining the second time slot set (for example, time slots 0, 6, 7, 10), the forwarding device can inform the second device to forward the second time slot set determined autonomously by sending an indication message to the second device. Specifically, the forwarding device can carry the identifiers of the multiple time slots included in the second time slot set in the indication message. After the second device receives the indication message sent by the forwarding device, it can know the second time slot set. In addition, the multiple time slots included in the second time slot set can be configured as time slots in which the second device sends multiple coded data blocks to the forwarding device through the second FlexE Group. That is, when forwarding the FlexEClient, the second device can send multiple coded data blocks to the forwarding device through the second FlexE Group on the multiple time slots included in the second time slot set.

[0124] In the embodiment of the present invention, when the forwarding device sends the indication information to the second device, the identifiers of the multiple time slots included in the second time slot set can be sent by sending a reservation message in RSVP to the forwarding device. For the convenience of description, the reservation message here can be called a fourth reservation message. Specifically, the fourth reservation message can carry the identifiers of the multiple time slots included in the second time slot set.

[0125] The fourth reservation message may refer to the description of the first reservation message, the second reservation message and the third reservation message, which will not be described again for brevity.

[0126] Further, the forwarding device may carry the identifiers of the multiple time slots included in the second time slot set through the GMPLS label included in the fourth reservation message. For the convenience of description, the GMPLS label here may be referred to as the second GMPLS label. The second GMPLS label may be a description of the first GMPLS label, which will not be repeated here for the sake of brevity. It should be noted that when the first time slot set is different from the second time slot set, the value of the used slot in the second GMPLS label is different from the value of the used slot in the first GMPLS label.

[0127] The embodiment of the present invention can establish a FlexE-based path from the second device to the first device via the forwarding device by establishing a forwarding table based on the RSVP protocol and on the basis of extending the RSVP protocol.

[0128] The following will be combined Figure 5 and Figure 6 The method for generating a transfer table according to an embodiment of the present invention is shown in detail. Figure 5 and Figure 6 The method shown can be Figure 2 The method shown is expanded on the basis of the above. Figure 5 and Figure 6 When the method shown is implemented specifically, you can refer to the above Figure 2The description of the method shown will not be repeated here.

[0129] It should be noted that the same terms or words as those in the above text that appear below can refer to the description in the above text, and will not be repeated below for the sake of brevity.

[0130] Figure 5 is a schematic flow chart of a method for generating a forwarding table according to an embodiment of the present invention. It should be understood that Figure 5 The detailed communication steps or operations of the method for generating a forwarding table are shown, but these steps or operations are only examples. The embodiment of the present invention may also perform other operations or Figure 5 In addition, Figure 5 The steps in Figure 5 are executed in a different order than the ones presented, and may not be executed Figure 5 All operations in .

[0131] 501. The second device sends a path message to the forwarding device.

[0132] The Path message may carry path type indication information.

[0133] The path type indication information may be a new class-type value (Class-Type value) added (or extended) to the send_type SENDER_TSPEC object carried in the path message, and the new class-type value may be extended based on the fields already defined in RFC3473. For example, Class-Type value. For example, when Class-Type=9, it may indicate that a FlexE-based path is established. It should be understood that Class-Type being 9 indicates that establishing a FlexE-based path is only an embodiment of the present invention and should not constitute any limitation to the implementation of the present invention.

[0134] The path type indication information may also be a new session type extended in RSVP, for example, a new class-type (Class-Type value) in the RSVP session object. For example, when the Class-Type value is 25, it may indicate that a FlexE-based path is established. It should be understood that the Class-Type value of 25 indicating the establishment of a FlexE-based path is only an embodiment of the present invention and should not constitute any limitation on the present invention.

[0135] Furthermore, the path message may also carry traffic parameter attribute information. The traffic parameter attribute information may refer to the description of the traffic parameter attribute information in the first reservation message above, and will not be described here for brevity.

[0136] 502. The forwarding device forwards the path message to the first device.

[0137] 503. The first device sends a first reservation message to the forwarding device.

[0138] Specifically, after receiving the path message, the first device sends a first reservation message in response to the path message to the forwarding device. The first reservation message may be used to instruct the forwarding device to determine the first time slot set.

[0139] 504. The forwarding device determines a first time slot set.

[0140] Specifically, after receiving the first reservation message, the forwarding device may check available time slots through a time slot configuration module inside the device, and select a first time slot set from the available time slots.

[0141] 505. The forwarding device sends a second message to the first device. The second message may carry identifiers of multiple time slots in the first time slot set.

[0142] 506. The first device determines a first time slot set.

[0143] After receiving the second message sent by the first device, the first device determines the first time slot set according to the identifiers of the multiple time slots included in the first time slot set carried in the second message, and configures the first time slot set as the time slot when the FlexE Client sent by the forwarding device is received through the first FlexEGroup.

[0144] 507. The forwarding device sends a second reservation message to the second device.

[0145] The second reservation message may be used to instruct the second device to determine a second set of time slots.

[0146] 508. The second device determines a second time slot set.

[0147] Specifically, after receiving the second reservation message, the second device may check available time slots through a time slot configuration module inside the device, and select a second time slot set (eg, time slots 0, 6, 7, 10) from the available time slots.

[0148] 509. The second device sends a fourth message to the forwarding device.

[0149] 510. The forwarding device determines a second time slot set.

[0150] Specifically, after receiving the fourth message sent by the second device, the forwarding device determines the second time slot set according to identifiers of multiple time slots included in the second time slot set carried in the fourth message.

[0151] 511, the forwarding device generates a mapping table.

[0152] By generating a mapping table as shown in Table 1, when forwarding the FlexE Client, the coded data block generated by the physical coding sublayer of the second device is sent through FlexE Group 2 at time slots 0, 6, 7, and 10. The forwarding device receives the coded data block sent by the second device at time slots 0, 6, 7, and 10 through FlexE Group 2 between the forwarding device and the second device, and sends it at time slots 7, 8, 9, and 10 through FlexE Group 1. The first device receives the coded data block sent by the forwarding device at time slots 7, 8, 9, and 10 through FlexE Group 1, and can restore the FlexE Client based on the coded data block. In this way, it is equivalent to transmitting the FlexE Client through an end-to-end channel established by FlexE Group 1, FlexE Group 2, and Table 1, thereby improving the transmission efficiency.

[0153] Figure 6 is a schematic flow chart of a method for generating a forwarding table according to another embodiment of the present invention. It should be understood that Figure 6 The detailed communication steps or operations of the method for generating a forwarding table are shown, but these steps or operations are only examples. The embodiment of the present invention may also perform other operations or Figure 6 In addition, Figure 6 The steps in Figure 6 are executed in a different order than the ones presented, and may not be executed Figure 6 All operations in .

[0154] 601. The second device sends a path message to the forwarding device.

[0155] Specifically, the path message can refer to Figure 5 Description of step 501 in the method shown.

[0156] In addition, in the embodiment of the present invention, the path message may also carry a label request (LABEL Request) object, the format of the label request object is as follows: Figure 7As shown. The label request object format includes a length field, a class-num field, a class-type field, an LSP encoding type field, a switch type field, and a general protocol identifier (G-PID) field. Among them, the length field indicates the length of the label request object; the class-num field indicates that the object is a label request object, and the value of class-num is 19; the class-type field indicates that the label request is a general label request, and the value of Class-Type can be 4; the LSP encoding type field indicates a FlexE path; the value of the LSP encoding type field can be 15; the switch type field indicates that the applied switching technology is FlexE, and the value of Switch type can be 111; the general protocol identifier field indicates that 64B / 66B Ethernet technology is used and is applied to Flexible Ethernet, and the value of G-PID can be 71.

[0157] It should be understood that Figure 7 The format of the tag request object shown is only an example of the tag request object in the embodiment of the present invention, and shall not constitute any limitation to the embodiment of the present invention. The embodiment of the present invention does not limit the format of the tag request object.

[0158] 602. The forwarding device sends the path message to the first device.

[0159] 603. The first device determines a first time slot set.

[0160] Specifically, the first device can check the available time slots through the time slot configuration module inside the first device, select a first time slot set (for example, time slots 7, 8, 9, 10) from the available time slots, and configure the first time slot set as the time slot when the FlexE Client sent by the forwarding device is received through the first FlexE Group.

[0161] 604. The first device sends a third reservation message to the forwarding device.

[0162] Specifically, the third reservation message may carry identifiers of multiple time slots included in the first time slot set.

[0163] 605. The forwarding device determines a first time slot set.

[0164] After receiving the third reservation message, the forwarding device may determine the first time slot set according to the identifiers of the multiple time slots included in the first time slot set carried in the third reservation message.

[0165] 606. The forwarding device determines a second time slot set.

[0166] Specifically, the forwarding device may check available time slots through a time slot configuration module inside the device, and select a second time slot set (eg, time slots 0, 6, 7, 10) from the available time slots.

[0167] 607, the forwarding device generates a forwarding table.

[0168] 608. The forwarding device sends a fourth reservation message to the second device.

[0169] Specifically, the fourth reservation message may carry identifiers of multiple time slots included in the second time slot set.

[0170] 609. The second device determines a second time slot set.

[0171] After the second device receives the fourth reservation message, it can set the second time slot set as the time slot for sending the FlexE Client to the forwarding device through the second FlexE Group according to the identifiers of multiple time slots included in the second time slot set carried in the fourth reservation message.

[0172] Therefore, in the method for generating a forwarding table in an embodiment of the present invention, the forwarding device can establish a transmission path between two nodes by generating a forwarding table, so that the FlexEClient can be transmitted through the mapping relationship between the second FlexE Group in the forwarding table, the multiple time slots in the second time slot set, the first FlexE Group and the multiple time slots in the first time slot set. Compared with the prior art, the forwarding device needs to search the 2-layer or 3-layer forwarding table for forwarding according to the traditional 2-layer (link layer) or 3-layer (network layer) forwarding method, which can reduce transmission delay and improve transmission efficiency.

[0173] Combined with the above Figures 1 to 7 , describes a method for generating a forwarding table according to an embodiment of the present invention. Figure 8 and Fig. 9 , describing a forwarding device according to an embodiment of the present invention.

[0174] Figure 8 FIG. 8 is a schematic block diagram of a forwarding device 800 according to an embodiment of the present invention. Figure 8 As shown, the forwarding device 800 includes a determining unit 810 and a generating unit 820. The forwarding device 800 can be used to perform Figure 2 Specifically, the forwarding device 800 can be used to implement Figure 2 Alternatively, the forwarding device 800 may be used to perform Figure 5 The forwarding device 800 may be used to implement the steps performed by the forwarding device in the method shown. Figure 5Alternatively, the forwarding device 800 may be used to perform Figure 6 The forwarding device 800 may be used to implement the steps performed by the forwarding device in the method shown. Figure 6 For the specific implementation of the forwarding device 800, please refer to the above description of Figure 2 , Figure 5 as well as Figure 6 The description is not repeated here.

[0175] Determining unit 810, for a first time slot set, the first time slot set includes a plurality of time slots used when the forwarding device uses the first flexible Ethernet group FlexE Group to send a plurality of coded data blocks generated by the physical coding sublayer to the first device, and the plurality of time slots included in the first time slot set correspond one-to-one to the plurality of coded data blocks.

[0176] The determining unit 810 is further configured to determine a second time slot set, where the second time slot set includes a plurality of time slots used by the forwarding device when receiving the plurality of coded data blocks sent by the second device using the second FlexE Group, and the plurality of time slots included in the second time slot set correspond one-to-one to the plurality of coded data blocks;

[0177] The generating unit 820 is configured to generate a forwarding table, wherein the forwarding table includes a mapping relationship between the second FlexE Group, multiple time slots included in the second time slot set, the first FlexE Group, and multiple time slots in the first time slot set.

[0178] For example, the mapping relationship included in the forwarding table specifically includes a mapping relationship between the first information and the second information. The first information includes the second FlexE Group and multiple time slots included in the second time slot set. The second information includes the first FlexE Group and multiple time slots included in the first time slot set.

[0179] The units of the forwarding device 800 according to the embodiment of the present invention and the above-mentioned other operations or functions are respectively the corresponding processes executed by the forwarding device to implement the above-mentioned method, which will not be described in detail here for the sake of brevity.

[0180] The forwarding device of the embodiment of the present invention can establish a transmission path between two nodes by generating a forwarding table, so that the FlexE Client can be transmitted through the mapping relationship between the second FlexE Group, the multiple time slots in the second time slot set, the first FlexEGroup and the multiple time slots in the first time slot set in the forwarding table. Compared with the prior art, the forwarding device needs to search the 2-layer or 3-layer forwarding table for forwarding according to the traditional 2-layer (link layer) or 3-layer (network layer) forwarding method, which can reduce the transmission delay and improve the transmission efficiency.

[0181] The embodiment of the present invention further provides a first device, comprising: a sending unit, a receiving unit and a determining unit. The first device can be used to execute Figure 2 Specifically, the first device can be used to implement Figure 2 Alternatively, the first device may be used to perform Figure 5 The first device may be used to implement the steps of the method shown in FIG. Figure 5 The first device involved. For the specific implementation of the first device, please refer to the above Figure 2 and Figure 5 The description is not repeated here.

[0182] A sending unit is used to send a first message to a forwarding device, where the first message is used to instruct the forwarding device to determine a first time slot set, where the first time slot set includes multiple time slots used when the forwarding device uses a first flexible Ethernet group FlexE Group to send multiple coded data blocks generated by a physical coding sublayer to a first device, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks.

[0183] The receiving unit is used to receive a second message sent by the forwarding device based on the first message, where the second message carries identifiers of multiple time slots included in the first time slot set.

[0184] A determining unit is used to determine a first time slot set according to the second message, and determine multiple time slots included in the first time slot set as time slots used when the first device receives multiple encoded data blocks using the first FlexE Group.

[0185] The embodiment of the present invention further provides a first device, comprising: a determining unit and a sending unit. The first device can be used to execute Figure 2 Specifically, the first device can be used to implement Figure 2 Alternatively, the first device may be used to perform Figure 6 The first device may be used to implement the steps of the method shown in FIG. Figure 6 The first device involved. For the specific implementation of the first device, please refer to the above Figure 2 and Figure 6 The description is not repeated here.

[0186] A determination unit is used to determine a first time slot set, where the first time slot set includes multiple time slots used when the first device uses the first flexible Ethernet group FlexE Group to receive multiple coded data blocks generated by the physical coding sublayer sent by the first device, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks.

[0187] A sending unit is used to send identifiers of multiple time slots included in the first time slot set to the forwarding device, so that the forwarding device determines the multiple time slots included in the first time slot set as the time slots used when the forwarding device uses the first FlexE Group to send multiple encoded data blocks to the first device.

[0188] The embodiment of the present invention further provides a second device, including a receiving unit, a determining unit and a sending unit. The second device can be used to execute Figure 2 Specifically, the second device can be used to implement Figure 2 Alternatively, the second device may be used to perform Figure 5 The second device may be used to implement the steps performed by the second device in the method shown. Figure 5 The second device involved. For the specific implementation of the second device, please refer to the above Figure 2 and Figure 5 The description is not repeated here.

[0189] A receiving unit is used to receive a third message sent by a forwarding device, where the third message is used to instruct the second device to determine a second time slot set, where the second time slot set includes multiple time slots used when the forwarding device uses a second FlexE Group to receive multiple coded data blocks sent by the second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks.

[0190] A determining unit is used to determine a second time slot set according to a third message.

[0191] A sending unit is used to send a fourth message to a forwarding device, wherein the fourth message carries identifiers of multiple time slots included in the second time slot set, and the fourth message is used to instruct the forwarding device to configure the multiple time slots included in the second time slot set as time slots for the second device to send multiple encoded data blocks to the forwarding device through a second FlexE Group.

[0192] The embodiment of the present invention further provides a second device, including a receiving unit and a configuration unit. The second device can be used to execute Figure 2 Specifically, the second device can be used to implement Figure 2Alternatively, the second device may be used to perform Figure 6 The second device may be used to implement the steps performed by the second device in the method shown. Figure 6 The second device involved. For the specific implementation of the second device, please refer to the above Figure 2 and Figure 6 The description is not repeated here.

[0193] A receiving unit is used to receive an indication message sent by a forwarding device, wherein the indication message carries identifiers of multiple time slots included in a second time slot set, and the second time slot set includes multiple time slots used when the forwarding device uses a second FlexE Group to receive multiple coded data blocks sent by a second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks.

[0194] A configuration unit is used to configure, according to the indication message, the multiple time slots included in the second time slot set as time slots in which the second device sends the multiple encoded data blocks to the forwarding device through the second FlexE Group.

[0195] Fig. 9 is a schematic structural diagram of a forwarding device 900 according to an embodiment of the present invention. The forwarding device 900 can be used to implement Figure 8 For the specific implementation of the forwarding device 900, please refer to the above description of the forwarding device 800, which will not be repeated here. Fig. 9 As shown, the forwarding device 900 includes: a receiver 910, a transmitter 920, a processor 930, a memory 940 and a bus system 950. The receiver 910, the transmitter 920, the processor 930 and the memory 940 are connected via the bus system 950, the memory 940 is used to store instructions, and the processor 930 is used to execute the instructions stored in the memory 940 to control the receiver 910 to receive signals and control the transmitter 920 to send signals.

[0196] Processor 930 is used for a first time slot set, wherein the first time slot set includes multiple time slots used when the forwarding device uses the first flexible Ethernet group FlexE Group to send multiple coded data blocks generated by the physical coding sublayer to the first device, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks.

[0197] The processor 930 is also used to determine a second time slot set, where the second time slot set includes multiple time slots used when the forwarding device uses the second FlexE Group to receive the multiple coded data blocks sent by the second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks.

[0198] The processor 930 is further configured to generate a forwarding table, wherein the forwarding table includes a mapping relationship between the second FlexE Group, multiple time slots in the second time slot set, the first FlexE Group, and multiple time slots in the first time slot set.

[0199] It should be understood that in the embodiment of the present invention, the processor 930 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0200] The memory 940 may include a read-only memory and a random access memory, and provides instructions and data to the processor 930. A portion of the memory 940 may also include a nonvolatile random access memory. For example, the memory 940 may also store information on the device type.

[0201] The bus system 950 may include, in addition to the data bus, a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are labeled as the bus system 950 in the figure.

[0202] In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 930 or the instruction in the form of software. The step of generating the transfer table disclosed in the embodiment of the present invention can be directly embodied as a hardware processor to execute, or it can be executed by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 940, and the processor 930 reads the information in the memory 940 and completes the steps of the above method in combination with its hardware. To avoid repetition, it is not described in detail here.

[0203] The units of the forwarding device 900 according to the embodiment of the present invention and the above-mentioned other operations or functions are respectively the corresponding processes executed by the forwarding device to implement the above-mentioned method, which will not be described in detail here for the sake of brevity.

[0204] The forwarding device of the embodiment of the present invention can establish a transmission path between two nodes by generating a forwarding table, so that the FlexE Client can be transmitted through the mapping relationship between the second FlexE Group, the multiple time slots in the second time slot set, the first FlexEGroup and the multiple time slots in the first time slot set in the forwarding table. Compared with the prior art, the forwarding device needs to search the 2-layer or 3-layer forwarding table for forwarding according to the traditional 2-layer (link layer) or 3-layer (network layer) forwarding method, which can reduce the transmission delay and improve the transmission efficiency.

[0205] The embodiment of the present invention further provides a first device, comprising: a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via the bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, wherein:

[0206] A transmitter is used to send a first message to a forwarding device, where the first message is used to instruct the forwarding device to determine a first time slot set, where the first time slot set includes multiple time slots used when the forwarding device uses a first flexible Ethernet group FlexE Group to send multiple coded data blocks generated by a physical coding sublayer to a first device, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks.

[0207] The receiver is used to receive a second message sent by the forwarding device based on the first message, where the second message carries identifiers of multiple time slots included in the first time slot set.

[0208] The processor is used to determine a first time slot set according to the second message, and determine multiple time slots included in the first time slot set as time slots used when the first device receives multiple encoded data blocks using the first FlexE Group.

[0209] It should be understood that for the memory, processor and bus system, reference can be made to the above description, and for the sake of brevity, no further description will be given here.

[0210] The units of the first device according to the embodiment of the present invention and the above other operations or functions are the corresponding processes executed by the first device to implement the above method, which will not be described here for the sake of brevity.

[0211] The embodiment of the present invention further provides a first device, comprising: a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via the bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, wherein:

[0212] The processor is used to determine a first time slot set, where the first time slot set includes multiple time slots used when the first device uses the first flexible Ethernet group FlexE Group to receive multiple coded data blocks generated by the physical coding sublayer sent by the first device, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple coded data blocks.

[0213] A transmitter is used to send identifiers of multiple time slots included in a first time slot set to a forwarding device, so that the forwarding device determines the multiple time slots included in the first time slot set as time slots used when the forwarding device uses the first FlexE Group to send multiple encoded data blocks to the first device.

[0214] It should be understood that for the memory, processor and bus system, reference can be made to the above description, and for the sake of brevity, no further description will be given here.

[0215] The units of the first device according to the embodiment of the present invention and the above other operations or functions are the corresponding processes executed by the first device to implement the above method, which will not be described here for the sake of brevity.

[0216] The embodiment of the present invention further provides a second device, comprising: a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via the bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, wherein:

[0217] A receiver is used to receive a third message sent by a forwarding device, where the third message is used to instruct the second device to determine a second time slot set, where the second time slot set includes multiple time slots used when the forwarding device uses a second FlexE Group to receive multiple coded data blocks sent by the second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks.

[0218] The processor is configured to determine a second time slot set according to the third message.

[0219] A transmitter is used to send a fourth message to a forwarding device, wherein the fourth message carries identifiers of multiple time slots included in the second time slot set, and the fourth message is used to instruct the forwarding device to configure the multiple time slots included in the second time slot set as time slots for the second device to send multiple encoded data blocks to the forwarding device through the second FlexE Group.

[0220] It should be understood that for the memory, processor and bus system, reference can be made to the above description, and for the sake of brevity, no further description will be given here.

[0221] The units of the second device according to the embodiment of the present invention and the above other operations or functions are the corresponding processes executed by the second device to implement the above method, which will not be described here for the sake of brevity.

[0222] The embodiment of the present invention further provides a second device, comprising: a receiver, a transmitter, a processor, a memory and a bus system. The receiver, the transmitter, the processor and the memory are connected via the bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the receiver to receive signals and control the transmitter to send signals, wherein:

[0223] A receiver is used to receive an indication message sent by a forwarding device, wherein the indication message carries identifiers of multiple time slots included in a second time slot set, and the second time slot set includes multiple time slots used when the forwarding device uses a second FlexE Group to receive multiple coded data blocks sent by a second device, and the multiple time slots included in the second time slot set correspond one-to-one to the multiple coded data blocks.

[0224] A processor is used to configure, according to the indication message, the multiple time slots included in the second time slot set as time slots in which the second device sends the multiple encoded data blocks to the forwarding device through the second FlexE Group.

[0225] It should be understood that for the memory, processor and bus system, reference may be made to the description above, and for the sake of brevity, they will not be repeated here.

[0226] The units of the second device according to the embodiment of the present invention and the above other operations or functions are the corresponding processes executed by the second device to implement the above method, which will not be described here for the sake of brevity.

[0227] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0228] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0229] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application.

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

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

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

[0233] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0234] If the functions are implemented in the form of software functional units and configured as independent products for sale or use, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

Claims

1. A communication device, used as a first device, characterized in that: The first device comprises: A memory storing instructions; a processor coupled to the memory, the processor configured to execute the instructions so that the first device is configured to: Receive a second message sent by a forwarding device, where the second message is used to indicate a plurality of time slots included in a first time slot set, where the plurality of time slots are a plurality of time slots used by the forwarding device to send a plurality of coded data blocks to the first device using a first flexible Ethernet group FlexE Group; The multiple time slots are determined as time slots used by the first device when receiving the multiple encoded data blocks sent by the forwarding device using the first FlexE Group.

2. The communication device according to claim 1, characterized in that Before the first device receives the second message, the first device is further configured to: A first message is sent to the forwarding device, where the first message is used to instruct the forwarding device to determine the multiple time slots included in the first time slot set.

3. The communication device according to claim 1 or 2, characterized in that: Before the first device receives the second message, the first device is further configured to: A path message sent by the forwarding device is received, where the path message is used to indicate establishment of a FlexE-based path.

4. The communication device according to claim 3, characterized in that The path message includes path type indication information, where the path type indication information is used to indicate the establishment of the FlexE-based path.

5. The communication device according to claim 3, characterized in that The path message also includes traffic parameter attribute information, the traffic parameter attribute information includes a first field and a second field, the first field is used to indicate a time slot bandwidth, and the second field is used to indicate a rate of a flexible Ethernet client FlexE Client corresponding to the multiple encoded data blocks.

6. The communication device according to claim 5, characterized in that The first field is a signal type field, and the second field is a bit_rate field.

7. The communication device according to claim 5, characterized in that The time slot bandwidth is 5 Gbps.

8. A communication device, used as a first device, characterized in that: The first device comprises: A memory storing instructions; a processor coupled to the memory, the processor configured to execute the instructions so that the first device is configured to: Determine a first time slot set, where the first time slot set includes a plurality of time slots used when the first device uses the first flexible Ethernet group FlexEGroup to receive and forward a plurality of coded data blocks; The identifiers of the multiple time slots included in the first time slot set are sent to the forwarding device, so that the forwarding device determines the multiple time slots included in the first time slot set as the time slots used when sending the multiple encoded data blocks to the first device using the first FlexE Group.

9. The communication device according to claim 8, characterized in that Sending identifiers of multiple time slots included in the first time slot set to the forwarding device includes: A general multi-protocol label switching GMPLS label is sent to the forwarding device, where the GMPLS label includes a first field and a second field, where the first field indicates identifiers of multiple time slots included in the first time slot set, and the second field indicates the first FlexEGroup.

10. The communication device according to claim 8 or 9, characterized in that: Before the first device sends the identifiers of the multiple time slots included in the first time slot set to the forwarding device, the first device is further configured to: receiving a path message sent by the forwarding device, where the path message is used to indicate establishment of a FlexE-based path; The first device sends identifiers of multiple time slots included in the first time slot set to the forwarding device, including: the first device sends a response message in response to the path message to the forwarding device, and the response message includes identifiers of multiple time slots in the first time slot set.

11. The communication device according to claim 10, characterized in that The path message includes path type indication information, where the path type indication information is used to indicate the establishment of the FlexE-based path.

12. The communication device according to claim 10, characterized in that The path message also includes traffic parameter attribute information, where the traffic parameter attribute information includes a first field and a second field, where the first field is used to indicate a timeslot bandwidth, and the second field is used to indicate a rate of a FlexE Client corresponding to the multiple coded data blocks.

13. The communication device according to claim 12, characterized in that The first field is a signal type field, and the second field is a bit_rate field.

14. The communication device according to claim 10, characterized in that The path message also includes label request information.

15. The communication device according to claim 14, characterized in that The label request information includes a first field and a second field, the value of the first field indicates a FlexE-based path, and the value of the second field indicates that the switching technology is FlexE.

16. A communication device, used as a second device, characterized in that: The second device comprises: A memory storing instructions; a processor coupled to the memory, the processor configured to execute the instructions so that the second device is configured to: Receive a third message sent by a forwarding device, where the third message is used to instruct the second device to determine a second time slot set, where the second time slot set includes multiple time slots used by the forwarding device when receiving multiple coded data blocks sent by the second device using a second flexible Ethernet group FlexE Group; determining the second set of time slots; A fourth message is sent to the forwarding device, wherein the fourth message carries identifiers of multiple time slots included in the second time slot set, and the fourth message is used to instruct the forwarding device to configure the multiple time slots included in the second time slot set as multiple time slots used by the forwarding device when using the second FlexE Group to receive the multiple coded data blocks sent by the second device.

17. The communication device according to claim 16, characterized in that Before the second device receives the third message, the second device is further configured to: A path message is sent to the forwarding device, where the path message is used to indicate the establishment of a FlexE-based path.

18. The communication device according to claim 17, characterized in that The path message includes path type indication information, where the path type indication information is used to indicate the establishment of the FlexE-based path.

19. The communication device according to claim 17 or 18, characterized in that: The path message also includes traffic parameter attribute information, the traffic parameter attribute information includes a first field and a second field, the first field is used to indicate the time slot bandwidth, and the second field is used to indicate the rate of the FlexEClient corresponding to the multiple encoded data blocks.

20. The communication device according to claim 19, characterized in that The first field is a signal type field, and the second field is a bit_rate field.

21. A communication device, used as a second device, characterized in that: The second device comprises: A memory storing instructions; a processor coupled to the memory, the processor configured to execute the instructions so that the second device is configured to: Receive an indication message sent by a forwarding device, the indication message carrying identifiers of multiple time slots included in a second time slot set, the second time slot set including the forwarding device using a second flexible Ethernet group FlexE Group a plurality of time slots used when receiving a plurality of coded data blocks sent by a second device; According to the indication message, the multiple time slots included in the second time slot set are configured as time slots in which the second device sends the multiple encoded data blocks to the forwarding device through the second FlexE Group.

22. The communication device according to claim 21, characterized in that The receiving an indication message sent by the forwarding device includes: A general multi-protocol label switching GMPLS label sent by the forwarding device is received, where the GMPLS label includes a first field and a second field, where the first field indicates identifiers of multiple time slots included in the second time slot set, and the second field indicates the second FlexE Group.

23. The communication device according to claim 21 or 22, characterized in that: The second device is further used to: before receiving the indication message sent by the forwarding device, receive a path message sent by the forwarding device, where the path message is used to indicate the establishment of a FlexE-based path.

24. The communication device according to claim 23, characterized in that The path message includes path type indication information, where the path type indication information is used to indicate the establishment of the FlexE-based path.

25. The communication device according to claim 23, characterized in that The path message also includes traffic parameter attribute information, where the traffic parameter attribute information includes a first field and a second field, where the first field is used to indicate a timeslot bandwidth, and the second field is used to indicate a rate of a FlexE Client corresponding to the multiple coded data blocks.

26. The communication device according to claim 25, characterized in that The first field is a signal type field, and the second field is a bit_rate field.

27. A forwarding device, characterized in that: include: A memory storing instructions; a processor coupled to the memory, the processor being configured to execute the instructions so that the forwarding device is configured to: Determine a first time slot set, where the first time slot set includes a plurality of time slots used by the forwarding device to send a plurality of coded data blocks to the first device using a first flexible Ethernet group FlexE Group; Determine a second time slot set, where the second time slot set includes a plurality of time slots used by the forwarding device when receiving the plurality of coded data blocks sent by the second device using the second FlexE Group; Generate a forwarding table, the forwarding table including a mapping relationship between the second FlexE Group, the multiple time slots included in the second time slot set, the first FlexE Group and the multiple time slots included in the first time slot set, and the multiple time slots included in the first time slot set correspond one-to-one to the multiple time slots included in the second time slot set.

28. The forwarding device according to claim 27, characterized in that: The determining of the first time slot set comprises: receiving a first message sent by the first device, where the first message is used to instruct the forwarding device to determine the first time slot set; A first available time slot of the forwarding device is determined as the first time slot set.

29. The forwarding device according to claim 28, characterized in that: The forwarding device is also used for: A second message is sent to the first device, where the second message carries identifiers of multiple time slots included in the first time slot set, and the second message is used to instruct the first device to determine the multiple time slots included in the first time slot set as the time slots used by the first device when receiving the multiple encoded data blocks using the first FlexE Group.

30. The forwarding device according to any one of claims 27 to 29, characterized in that: The determining of the second time slot set comprises: Sending a third message to the second device, where the third message is used to instruct the second device to determine the second available time slot of the second device as the second time slot set; receiving a fourth message sent by the second device, where the fourth message carries identifiers of multiple time slots included in the second time slot set; The second time slot set is determined according to identifiers of multiple time slots included in the second time slot set carried in the fourth message.

31. The forwarding device according to claim 27, characterized in that: The determining of the first time slot set comprises: receiving identifiers of multiple time slots included in the first time slot set sent by the first device, where the multiple time slots included in the first time slot set are time slots determined by the first device to be used when receiving the multiple coded data blocks using the first FlexE Group; The first time slot set is determined according to identifiers of multiple time slots included in the first time slot set sent by the first device.

32. The forwarding device according to claim 31, characterized in that: The forwarding device is also used for: An indication message is sent to the second device, wherein the indication message carries identifiers of multiple time slots included in the second time slot set, and the indication message is used to instruct the second device to configure the multiple time slots included in the second time slot set as time slots for the second device to send the multiple encoded data blocks to the forwarding device through the second FlexE Group.

33. The forwarding device according to claim 31 or 32, characterized in that: The receiving identifiers of a plurality of time slots included in the first time slot set sent by the first device includes: A general multi-protocol label switching (GMPLS) label sent by the first device is received, where the GMPLS label includes a first field and a second field, where the first field indicates identifiers of multiple time slots included in the first time slot set, and the second field indicates the first FlexE Group.

34. The forwarding device according to claim 27, characterized in that: Before determining the first time slot set, the forwarding device is further configured to: receiving a path message sent by the second device, where the path message is used to indicate establishment of a FlexE-based path; The path message is forwarded to the first device.

35. The forwarding device according to claim 34, characterized in that: The path message includes path type indication information, where the path type indication information is used to indicate the establishment of the FlexE-based path.

36. The forwarding device according to claim 34 or 35, characterized in that: The path message further includes traffic parameter attribute information, the traffic parameter attribute information includes a first field and a second field, the first field indicates a time slot bandwidth, and the second field indicates a rate of a flexible Ethernet client corresponding to the plurality of coded data blocks.

37. The forwarding device according to claim 27, characterized in that: The forwarding device is also used for: Receiving, through the second FlexE Group, a plurality of coded data blocks on a plurality of time slots included in the second time slot set; The plurality of coded data blocks are sent according to the forwarding table.

38. The forwarding device according to claim 37, characterized in that: The sending of the plurality of coded data blocks according to the forwarding table comprises: The multiple coded data blocks are sent on multiple time slots included in the first time slot set through the first FlexE Group.

39. The forwarding device according to claim 38, characterized in that: After receiving multiple coded data blocks on multiple time slots included in the second time slot set through the second FlexE Group, and before sending multiple coded data blocks on multiple time slots included in the first time slot set through the first FlexE Group, the forwarding device does not perform layer 2 and layer 3 processing on the multiple coded data blocks.

40. A communication system, characterized in that: It includes a first device, a second device and a forwarding device, wherein the forwarding device is the forwarding device described in any one of claims 27-39.

41. The communication system according to claim 40, characterized in that The first device is the communication device according to any one of claims 1-15.

42. The communication system according to claim 40 or 41, characterized in that: The second device is the communication device described in any one of claims 16-26.

43. A communication system, characterized in that: It includes a first device, a second device and a forwarding device, wherein the first device is the communication device according to any one of claims 1-15.

44. A communication system, characterized in that: It includes a first device, a second device and a forwarding device, wherein the second device is the communication device described in any one of claims 16-26.

Citation Information

Patent Citations

  • Data transmission method and device

    CN102487513A

  • Message forwarding method and network device

    CN102546357A