Ethernet data receiving method, sending method, device and transceiver system

By introducing multiple channels and binding LB flags into the physical coding sublayer of Ethernet, flexible bandwidth configuration is achieved, and the problem of bandwidth fixation of traditional Ethernet interfaces is solved, enriching its application scenarios and improving competitiveness.

CN116132549BActive Publication Date: 2024-12-03北京晟芯网络科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211370728.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-03
Publication Date
2024-12-03
Estimated Expiration
2042-11-03

AI Technical Summary

Technical Problem

The bandwidth of traditional Ethernet interfaces is fixed, unable to be flexibly adjusted, and cannot meet the needs of different users, limiting the richness of their application scenarios.

Method used

By introducing multiple channels into the physical coding sublayer (PCS) of Ethernet, and determining the binding relationship between channels by obtaining the channel binding LB flag, the data flow merge processing or separate processing is realized, and the BIP is inserted in alternating ways The alignment marks of the flag and channel-bound LB flags are flexibly configured with the bandwidth of the Ethernet interface.

Benefits of technology

It realizes the flexible bandwidth configuration of the Ethernet interface, enriches its application scenarios, and can be split into any 10G interface combination without affecting the original 40G standard interface functions, improving the competitiveness of the product.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132549B_ABST
    Figure CN116132549B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses an Ethernet data receiving method, sending method, device and transceiver system. The Ethernet physical coding sublayer PCS includes multiple channels corresponding to the same MAC interface. The receiving method includes: obtaining the LB flags corresponding to each of the multiple channels; determining the binding relationship between the multiple channels according to the obtained LB flags, merging the data streams of at least two channels with a binding relationship, and processing the data streams of channels that do not have a binding relationship with other channels separately. When sending the data stream of each channel in the multiple channels, the sending method inserts an alignment mark with a BIP mark and an alignment mark with an LB mark in an alternating manner. Through the scheme of this embodiment, the bandwidth of the Ethernet interface can be flexibly configured to enrich the application scenarios of the Ethernet interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to flexible Ethernet technology, and more specifically, to an Ethernet data receiving method, sending method, device and transceiver system. Background Art

[0002] 40G BASE-R is a standard physical coding sublayer (PCS) protocol of IEEE 802.3, which is widely used in the field of communications. With the rise of 5G, large bandwidth and small granularity have become the current technical hotspots. The disadvantage of traditional Ethernet interfaces is that the bandwidth is fixed and cannot be flexibly adjusted according to user needs. Summary of the invention

[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0004] The present disclosure provides an Ethernet data receiving method, sending method, device and transceiver system, which can flexibly configure the bandwidth of the Ethernet interface and enrich the application scenarios of the Ethernet interface.

[0005] An embodiment of the present disclosure provides a method for receiving Ethernet data, wherein a physical coding sublayer PCS of the Ethernet includes multiple channels corresponding to the same MAC interface, and the method includes:

[0006] Obtain the channel binding LB flags corresponding to each of the multiple channels;

[0007] The binding relationship between the multiple channels is determined according to the obtained LB flag, the data streams of at least two channels with a binding relationship are merged, and the data streams of the channels without a binding relationship with other channels are processed separately.

[0008] An embodiment of the present disclosure further provides an Ethernet data transmission method, wherein the Ethernet physical coding sublayer PCS includes multiple channels corresponding to the same MAC interface, and the method includes:

[0009] Determining that the plurality of channels constitute a plurality of interfaces;

[0010] When sending the data stream of each of the multiple channels, an alignment marker with a BIP flag and an alignment marker with a channel bonding LB flag are inserted alternately.

[0011] An embodiment of the present disclosure further provides an Ethernet data receiving device, comprising a processor and a memory storing a computer program, wherein the processor can implement the Ethernet data receiving method as described in any embodiment of the present disclosure when executing the computer program.

[0012] An embodiment of the present disclosure further provides an Ethernet data sending device, comprising a processor and a memory storing a computer program, wherein the processor can implement the Ethernet data sending method as described in any embodiment of the present disclosure when executing the computer program.

[0013] An embodiment of the present disclosure further provides an Ethernet data transceiving system, comprising an Ethernet data receiving device as described in any embodiment of the present disclosure and an Ethernet data sending device as described in any embodiment of the present disclosure.

[0014] Compared with the related art, the embodiments of the present disclosure provide an Ethernet data receiving method, sending method, device and transceiver system. By adding a fixed BIP (i.e., channel binding flag) with binding relationship information to the data stream of each channel of the same MAC interface of the Ethernet PCS to indicate the binding relationship of the multiple channels, the bandwidth of the Ethernet interface can be flexibly configured, enriching the application scenarios of the Ethernet interface.

[0015] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. Other advantages of the present disclosure can be realized and obtained by the schemes described in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are used to provide an understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation on the technical solution of the present disclosure.

[0017] Figure 1 is a flow chart of an Ethernet data receiving method according to an embodiment;

[0018] Figure 2a This is a schematic diagram of a bonding mode of an Ethernet channel in an example 40G mode;

[0019] Figure 2b This is a schematic diagram of another bonding mode of Ethernet channels in an example 40G mode;

[0020] Figure 2c This is a schematic diagram of another bonding mode of Ethernet channels in an example 40G mode;

[0021] Figure 2d This is a schematic diagram of another bonding mode of Ethernet channels in an example 40G mode;

[0022] Figure 2e This is a schematic diagram of another bonding mode of Ethernet channels in an example 40G mode;

[0023] Figure 3 is a schematic diagram of a descrambling algorithm according to an embodiment;

[0024] Figure 4 is a flow chart of an Ethernet data sending method according to an embodiment;

[0025] Figure 5 is a schematic diagram of a data stream of a channel after an alignment mark is inserted according to an embodiment;

[0026] Figure 6a This is a schematic diagram of a configuration mode of an Ethernet channel in an example 40G mode;

[0027] Figure 6b This is another configuration mode diagram of an Ethernet channel in 40G mode;

[0028] Figure 6c This is another configuration mode diagram of an Ethernet channel in 40G mode;

[0029] Figure 6d This is another configuration mode diagram of an Ethernet channel in 40G mode;

[0030] Figure 6e This is another configuration mode diagram of an Ethernet channel in 40G mode;

[0031] Figure 7 is a schematic diagram of a scrambling algorithm of an embodiment;

[0032] Figure 8 It is a schematic diagram of an Ethernet data sending device according to an embodiment. DETAILED DESCRIPTION

[0033] The present disclosure describes multiple embodiments, but the description is exemplary rather than restrictive, and it is apparent to those skilled in the art that there may be more embodiments and implementations within the scope of the embodiments described in the present disclosure. Although many possible feature combinations are shown in the drawings and discussed in the specific embodiments, many other combinations of the disclosed features are possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with any other feature or element in any other embodiment, or may replace any other feature or element in any other embodiment.

[0034] The present disclosure includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features, and elements disclosed in the present disclosure may also be combined with any conventional features or elements to form a unique invention scheme defined by the claims. Any features or elements of any embodiment may also be combined with features or elements from other invention schemes to form another unique invention scheme defined by the claims. Therefore, it should be understood that any feature shown and / or discussed in the present disclosure may be implemented individually or in any appropriate combination. Therefore, except for the limitations made according to the attached claims and their equivalents, the embodiments are not subject to other limitations. In addition, various modifications and changes may be made within the scope of protection of the attached claims.

[0035] Implementing a flexible and configurable 10G Ethernet interface based on the original 40G Ethernet interface, which can communicate with the standard Ethernet interface, is an effective solution to enhance product competitiveness.

[0036] The present disclosure is an improved solution for PCS processing based on IEEE802.3 40G BASE-R. The original 40G BASE-R alignment marker is only used for channel alignment and verification. The present disclosure does not affect the function of the original 40G standard interface. By changing the original alignment marker corresponding to one BIP field to two alignment markers sharing one BIP field, that is, the BIP field of one alignment marker remains unchanged, and the BIP field of the other alignment marker uses a specific format to distinguish the binding relationship of different channels, thereby realizing the flexible use of 4 10G channels and achieving the effect of 10G granularity.

[0037] An embodiment of the present disclosure provides a method for receiving Ethernet data, wherein the physical coding sublayer PCS of the Ethernet includes multiple channels corresponding to the same MAC interface, and the method includes receiving Ethernet interface data, such as Figure 1 As shown, the following processing is performed on multiple channels corresponding to the same MAC interface included in the physical coding sublayer PCS:

[0038] Step S110, obtaining channel binding LB marks corresponding to each of the plurality of channels, wherein the LB marks include information on the binding relationship between the plurality of channels;

[0039] Step S120, determining the binding relationship between the multiple channels according to the obtained LB flag, merging the data streams of at least two channels with a binding relationship, and processing the data streams of the channels without a binding relationship with other channels separately.

[0040] This embodiment determines the binding relationship between channels based on the LB flag added by the PCS layer, so as to realize flexible binding between channels.

[0041] In an exemplary embodiment of the present disclosure, determining the binding relationship between the multiple channels according to the acquired LB flag includes:

[0042] Acquire a value of an LB flag of each channel among the multiple channels, wherein the value of the LB flag includes a value indicating that there is a binding relationship with other channels and a value indicating that there is no binding relationship with other channels; and,

[0043] Determine that the values ​​of the LB marks in the multiple channels are the same and indicate that at least two channels that have binding relationships with other channels have a binding relationship, and determine that the values ​​of the LB marks in the multiple channels indicate that each channel that has no binding relationship with other channels has no binding relationship with other channels.

[0044] In an exemplary embodiment of the present disclosure, the method further includes: after achieving alignment between the plurality of channels, detecting each channel, and completing LB field locking when a set number of alignment mark pairs are continuously detected, and each alignment mark pair includes an alignment mark with a BIP mark and an alignment mark with an LB mark;

[0045] After completing the LB field locking, the channel binding LB flags corresponding to each of the multiple channels are obtained.

[0046] In an example of this embodiment, the LB flag includes data of the BIP3 field and data of the BIP7 field in the alignment mark, and the data of the BIP3 field and the data of the BIP7 field are the same, and the value of the LB flag is equal to the value of the BIP3 field or the BIP7 field;

[0047] When detecting each channel, if it is detected that the data of the BIP3 field and the data of the BIP7 field in an alignment mark are the same, it is determined that an alignment mark with an LB mark is detected.

[0048] In this example, the data in the BIP3 field of the LB flag is the same as the data in the BIP7 field, and can be distinguished from the BIP flag, thereby avoiding the BIP flag from being mistakenly matched with the LB flag, which can speed up the binding time and simplify the binding process.

[0049] In an example of this embodiment, the BIP flag includes data of the BIP3 field and data of the BIP7 field in the alignment mark, and the data of the BIP3 field is the bitwise inversion of the data of the BIP7 field;

[0050] When detecting each channel, if it is detected that the data of the BIP3 field in an alignment mark is the bitwise inversion of the data of the BIP7 field, it is determined that an alignment mark with a BIP flag is detected;

[0051] After completing the LB field locking, the method also includes: after detecting an alignment mark with an LB mark, comparing the XOR result of the set position bits in the 2*16384 66B code blocks before the LB mark with the data of the BIP3 field or the BIP7 field in the LB mark to perform bit error statistics.

[0052] The verification algorithm is consistent with the protocol. The corresponding relationship of word bits for each BIP bit verification is shown in Table 1. For example, bit0 of BIP3 is obtained by XORing bit2, bit10, bit18, bit26, bit34, bit42, bit50, and bit58 of each 66-bit block. The calculation method for other bits is similar.

[0053] <![CDATA[BIP3 bit number]]> Assigned 66-bit word bits 0 2,10,18,26,34,42,50,58 1 3,11,19,27,35,43,51,59 2 4,12,20,28,36,44,52,60 3 0,5,13,21,29,37,45,53,61 4 1,6,14,22,30,38,46,54,62 5 7,15,23,31,39,47,55,63 6 8,16,24,32,40,48,56,64 7 9,17,25,33,41,49,57,65

[0054] Table 1

[0055] Because the BIP field in the inserted alignment marker is consistent with the protocol and the BIP field in the protocol is only used for bit error statistics, the replacement does not affect the normal operation of the Ethernet interface link.

[0056] This example compares the XOR result of the set position bits in the 2*16384 66B code blocks before the LB flag with the data of the BIP3 field or the BIP7 field in the LB flag, that is, the BIP check length is extended from the original one 16384 code block to 2 16384 code blocks, which can ensure the verification of all data on the Ethernet interface link.

[0057] In an example of this embodiment, the PCS includes four channels with bandwidths of 10G each; the method further includes:

[0058] After alignment between multiple channels is achieved, for each channel, when a set number of alignment marks with BIP marks are continuously detected, the BIP field is locked, and it is determined that the four channels are all in a binding relationship to form a 40G interface.

[0059] In an example of this embodiment, the PCS includes 4 channels with bandwidths of 10G each, and the LB flag has 4 set values, which respectively represent a 10G interface, a 20G interface 1, a 20G interface 2, and a 30G interface. The corresponding relationship between the value of the LB flag and the interface bandwidth is shown in Table 2 below:

[0060] BIP3 BIP7 10G 55 55 20G-0 5A 5A 20G-1 A5 A5 30G AA AA

[0061] Table 2

[0062] Determining the binding relationship between the multiple channels according to the obtained LB flags includes any one or more of the following methods:

[0063] Determining that the values ​​of the LB flags in the four channels all indicate that there is a binding relationship between the three channels of the 30G interface, forming a 30G interface; determining that the value of the LB flag indicates that the other channel of the 10G interface has no binding relationship with the other channels, forming a 10G interface;

[0064] Determine that among the four channels, the values ​​of the LB flags all indicate that there is a binding relationship between the two channels of the 20G interface 1, forming a 20G interface; determine that the values ​​of the LB flags all indicate that there is a binding relationship between the two channels of the 20G interface 2, forming another 20G interface;

[0065] It is determined that among the four channels, the values ​​of the LB flags all indicate that there is a binding relationship between the two channels of the 20G interface 1 or the 20G interface 2, forming a 20G interface; it is determined that the values ​​of the LB flags all indicate that the two channels of the 10G interface have no binding relationship with the other channels, and each forms a 10G interface;

[0066] It is determined that in the four channels, the values ​​of the LB flags all indicate that the four channels of the 10G interface have no binding relationship with other channels, and each constitutes a 10G interface.

[0067] This example is based on the BIP field in the alignment mark added by the PCS layer. It uses the feature that the BIP field is only used for statistical verification. The binding relationship between channels is determined by using the BIP with special meaning (i.e., the LB flag), so that flexible binding between channels can be achieved.

[0068] In an example of this embodiment, when the physical coding sublayer PCS MAC interface is in 40G mode, the PCS includes 4 channels with bandwidths of 10G, namely LANE 0 to LANE 3; the 4 channels with bandwidths of 10G include the following bonding modes:

[0069] The first binding mode, such as Figure 2a As shown, when the alignment mark of each lane in the four lanes is a BIP mark, it means that there is only one 40G data stream, and LANE 0 to LANE 3 are spliced ​​into a 40G data stream;

[0070] In the second binding mode, as shown in Table 2, the identifier 5A corresponds to 20G-0, and the identifier A5 corresponds to 20G-1. Figure 2bAs shown in the figure, when the alignment mark of LANE 0 and LANE 2 is 5A, and the alignment mark of LANE 1 and LANE 3 is A5, it represents the combination of two 20G data streams; LANE 0 and LANE 2 are spliced ​​into one 20G data stream, and LANE 1 and LANE 3 are spliced ​​into another 20G data stream;

[0071] The third binding mode, as shown in Table 2, the identifier AA corresponds to 30G, and the identifier 55 corresponds to 10G. Figure 2c As shown in the figure, when the alignment marks of LANE 0, LANE1, and LANE 3 are AA, and the alignment mark of LANE2 is 55, it represents a combination of 30G data stream and 10G data stream; LANE 0, LANE1, and LANE 3 are spliced ​​into a 30G data stream, and LANE2 is used as a 10G data stream alone;

[0072] The fourth binding mode, as shown in Table 2, the identifier 5A corresponds to 20G-0, and the identifier 55 corresponds to 10G. Figure 2d As shown in the figure, when the alignment marks of LANE 0 and LANE 2 are 5A, and the alignment marks of LANE 1 and LANE 3 are 55, it represents a combination of 20G data stream and 10G data stream; LANE 0 and LANE 2 are spliced ​​into a 20G data stream, and LANE 1 and LANE 3 are respectively used as a 10G data stream;

[0073] The fifth binding mode, as shown in Table 2, the identifier 55 corresponds to 10G, such as Figure 2e As shown in the figure, when the alignment marks of LANE 0 to LANE 3 are all 55, it represents a combination of 4 10G data streams; LANE 0 to LANE 3 are respectively regarded as a 10G data stream.

[0074] The above specific configuration methods of the binding mode are only exemplary, and the same binding mode can have multiple different configuration modes. However, it is necessary to ensure the rationality of the configuration. For example, as shown in Table 1, when the Ethernet physical coding sublayer PCS MAC interface is in 40G mode, if multiple channels are bound to 20G-0 mode, it must be ensured that there are only two channels configured in this mode, and one or three channels cannot be configured.

[0075] This implementation example can ensure that the MAC interface is consistent with the standard 40G BASE-R protocol to the greatest extent. Without affecting the original 40G MAC interface, a 40G MAC interface can be flexibly split into any combination of 10G interfaces, and each interface is physically independent, has its own independent pipeline, and will not affect each other, and can be used as an independent interface. In this way, the bandwidth of the 40G Ethernet interface can be flexibly configured, and the application scenarios of the 40G Ethernet interface can be enriched.

[0076] In an exemplary embodiment of the present disclosure, after determining the binding relationship between the multiple channels according to the acquired LB flag, merging the data streams of at least two channels with a binding relationship, and separately processing the data streams of the channels without a binding relationship with other channels, the method further includes:

[0077] The data stream of each channel from the physical medium adaptation layer PMA to the medium independent interface MII direction is descrambled and decoded in the following way:

[0078] Remove alignment marks;

[0079] Descramble the data stream of each channel;

[0080] Insert IDLE at the end of the data stream of each channel;

[0081] Decode the data in the data stream of each channel.

[0082] In an example of this embodiment, decoding the data in the data stream of each channel includes: decoding the data according to Table 3, and recovering the corresponding MII data after decoding. If the decoded data is not in Table 3, it is decoded into an error code.

[0083]

[0084] Table 3

[0085] In an exemplary embodiment of the present disclosure, a method for receiving Ethernet data is provided, and the following steps are performed when receiving Ethernet data:

[0086] The first step is to synchronize the 66-bit code block according to the standard process. If the code blocks detected for 64 consecutive times are all 01 or 10, it means the code block is locked; if an illegal synchronization header 00 or 11 is detected during the 64 consecutive code block detections, it means the synchronization header is wrong, and the frame is slipped 1bit to re-detect; if the synchronization header errors accumulate to 65 after the code block is locked, it means the synchronization is lost, the code block is unlocked, and the frame is slipped to re-synchronize.

[0087] The second step is to synchronize the alignment marker according to the standard process. If two alignment markers are detected consecutively, it means that the alignment marker is locked; if four wrong alignment markers are detected consecutively, the alignment marker is unlocked, and a 66-bit code block is slipped to resynchronize the code block. Among them, when detecting the alignment marker, only the fixed M field in the alignment marker is matched, and the BIP field is not matched.

[0088] The third step is to align the channels according to the position of the alignment mark of each channel.

[0089] The fourth step is to lock the channel. LB_cnt is accumulated when the BIP flag and LB flag are detected continuously; BIP_cnt is cleared each time the LB flag is detected; LB_cnt is cleared when the LB flag or BIP flag is detected continuously. When LB_cnt is greater than or equal to 4 or BIP_cnt is greater than or equal to 8, it means that the channel binding is completed and the channel enters the locked state. When 4 wrong alignment marks are detected continuously, the channel lock state is exited.

[0090] The fifth step is to obtain the channel binding LB flags corresponding to each of the multiple channels, and determine the binding relationship between the multiple channels based on the obtained LB flags, merge the data streams of at least two channels with a binding relationship, and process the data streams of channels that have no binding relationship with other channels separately.

[0091] The sixth step is to descramble and decode the data stream of each channel from the physical medium adaptation layer PMA to the medium independent interface MII. The schematic diagram of the descrambling algorithm is shown in FIG. Figure 3 As shown, Figure 3 In which S0-S57 each represents one bit.

[0092] An embodiment of the present disclosure further provides a method for sending Ethernet data, wherein the Ethernet physical coding sublayer PCS includes multiple channels corresponding to the same MAC interface, and the method includes: when sending Ethernet interface data, Figure 4 As shown, the following processing is performed on multiple channels corresponding to the same MAC interface included in the physical coding sublayer PCS of Ethernet:

[0093] Step S210, determining that the plurality of channels constitute a plurality of interfaces;

[0094] Step S220: When sending the data stream of each channel of the multiple channels, an alignment mark with a BIP mark and an alignment mark with a channel binding LB mark are inserted alternately.

[0095] After inserting the alignment marker, the Ethernet physical coding sublayer PCS includes marker information corresponding to multiple channels of the same MAC interface, such as Figure 5 As shown;

[0096] This embodiment configures the multiple channels into different combination modes by inserting alignment marks with BIP marks and alignment marks with channel binding LB marks in an alternating manner when sending the data stream of each channel of the multiple channels, thereby realizing flexible splitting of a 40G MAC interface into any combination of 10G interfaces, and each interface is physically independent, has its own independent pipeline, and will not affect each other, and can be used as an independent interface.

[0097] In an exemplary embodiment of the present disclosure, the PCS includes 4 channels with bandwidths of 10G each, and the LB flag has 4 set values, representing a 10G interface, a 20G interface 1, a 20G interface 2, and a 30G interface, respectively.

[0098] In an example of this embodiment, when inserting the alignment mark with the LB mark, the value of the LB mark is determined in the following manner:

[0099] When three of the four channels constitute a 30G interface and one channel constitutes a 10G interface, the LB flag inserted in the data streams of the three channels is set to a value indicating the 30G interface, and the LB flag inserted in the data stream of the one channel is set to a value indicating the 10G interface;

[0100] Two of the four channels constitute a 20G interface, and the other two channels constitute another 20G interface, and the LB flags inserted in the data streams of the two channels are set to a value indicating the 20G interface one, and the LB flags inserted in the data streams of the other two channels are set to a value indicating the 20G interface two;

[0101] Two of the four channels constitute a 20G interface, and the other two channels constitute a 10G interface respectively, and the LB flags inserted in the data streams of the two channels are set to a value indicating the 20G interface one or the 20G interface two, and the LB flags inserted in the data streams of the other two channels are set to a value indicating the 10G interface;

[0102] Each of the four channels constitutes a 10G interface, and the LB flag inserted into the data stream of each of the four channels is set to a value indicating a 10G interface.

[0103] In an example of this embodiment, when the Ethernet physical coding sublayer PCS MAC interface is in 40G mode, the PCS includes four channels with bandwidths of 10G, namely LANE 0 to LANE 3; the PCS channel may include the following five configuration modes:

[0104] The first one, such as Figure 6aAs shown, the original 40G MAC configuration remains unchanged and is sent in the order of LANE 0-LANE3;

[0105] The second type, such as Figure 6b As shown, the configuration is a 20G MAC composed of LANE 0 and LANE 2, and another 20G MAC composed of LANE 1 and LANE 3. Each MAC sends in the order of PCS LANE0-LANE3;

[0106] The third type, such as Figure 6c As shown, the configuration is a 30G MAC consisting of LANE 0, LANE 1, and LANE 3, and a 10G MAC consisting of LANE 2;

[0107] The fourth type, such as Figure 6d As shown, the configuration is one 20G MAC consisting of LANE 0 and LANE 2, and two 10G MACs consisting of LANE 1 and LANE 3 respectively;

[0108] The fifth type, such as Figure 6e As shown, the configuration is four 10GMACs consisting of LANE 0, LANE 1, LANE 2, and LANE 3 respectively.

[0109] In an exemplary embodiment of the present disclosure, the LB flag includes data of a BIP3 field and data of a BIP7 field in the alignment tag, and the data of the BIP3 field and the data of the BIP7 field are the same, and the value of the LB flag is equal to the value of the BIP3 field or the BIP7 field;

[0110] The BIP flag includes data of the BIP3 field and data of the BIP7 field in the alignment mark, and the data of the BIP3 field is the bitwise inversion of the data of the BIP7 field.

[0111] In an exemplary embodiment of the present disclosure, the method further includes: determining that the multiple channels constitute an interface; and, when sending the data stream of each channel of the multiple channels, continuously inserting alignment markers with BIP marks.

[0112] In an exemplary embodiment of the present disclosure, before inserting the alignment marker with the BIP mark and the alignment marker with the channel binding LB mark in an alternating manner in the data stream of each channel of the multiple channels, the method further includes:

[0113] The data stream of each channel from the medium independent interface MII to the physical medium adaptation layer PMA is encoded and scrambled in the following way:

[0114] The data stream of each channel is independently 64B / 66B encoded and scrambled;

[0115] The 64B / 66B encoding and scrambling Start character and Order character are set at the S0 position;

[0116] Each channel is provided with a channel number, and when sending the data stream of each channel among the multiple channels, the data stream of the corresponding channel is sent in the order of the channel number.

[0117] An embodiment of the present disclosure further provides a method for sending Ethernet data. The Ethernet physical coding sublayer PCS includes multiple channels corresponding to the same MAC interface. The Ethernet data is sent according to the following steps:

[0118] In the first step, the data stream corresponding to each channel of each MAC interface is independently encoded according to the standard process of 40G BASE-R; the encoding is performed according to the above Table 3.

[0119] If all 64 bits are data, the synchronization header is 2'b 01, and the data characters remain unchanged;

[0120] If all 64 bits are control characters, the synchronization header is 2'b10, the first byte is 0x1E, and the following control characters are converted according to Table 4. Control characters not in Table 4 are converted according to error codes.

[0121] If Control Block Formats is S0D1D2D3D4D5D6D7, the sync header is 2'b10, the first byte is 0x78, and the following 7 bytes of data remain unchanged;

[0122] If Control Block Formats is O0D1D2D3Z4Z5Z6Z7, the sync header is 2'b10, the first byte is 0x4B, the following 3 bytes remain unchanged, and the last 4 bytes are all 0;

[0123] If the Control Block Formats is T0C1C2C3C4C5C6C7, the synchronization header is 2'b10, the first byte is 0x87, followed by 7bit0, and the following 7 bytes of control code are converted according to Table 4;

[0124] If Control Block Formats is D0T1C2C3C4C5C6C7, the sync header is 2'b10, the first byte is 0x99, the second byte is the first byte data before encoding, followed by 6 bits 0, and the following 6 bytes of control code are converted according to Table 4;

[0125] If the Control Block Formats is D0D1T2C3C4C5C6C7, the sync header is 2'b10, the first byte is 0xAA, the next two bytes are the second byte data before encoding, followed by 5 bit0, and the following 5 bytes of control code are converted according to Table 4;

[0126] If the Control Block Formats is D0D1D2T3C4C5C6C7, the sync header is 2'b10, the first byte is 0xB4, the next three bytes are the third byte data before encoding, followed by 4bit0, and the following 4 bytes of control code are converted according to Table 4;

[0127] If the Control Block Formats is D0D1D2D3T4C5C6C7, the sync header is 2'b10, the first byte is 0xCC, the next four bytes are the fourth byte data before encoding, followed by 3 bit0, and the following 3 bytes of control code are converted according to Table 4;

[0128] If the Control Block Formats is D0D1D2D3D4T5C6C7, the sync header is 2'b10, the first byte is 0xD2, the next five bytes are the fifth byte data before encoding, followed by 2bit0, and the following 2 bytes of control code are converted according to Table 4;

[0129] If the Control Block Formats is D0D1D2D3D4D5T6C7, the sync header is 2'b10, the first byte is 0xE1, the next six bytes are the sixth byte of data before encoding, followed by 1bit0, and the last byte of control code is converted according to Table 4;

[0130] If the Control Block Formats is D0D1D2D3D4D5D6T7, the synchronization header is 2'b10, the first byte is 0xFF, and the next seven bytes are the seventh byte of data before encoding.

[0131]

[0132] Table 4: Control word encoding table

[0133] The sequence ordered supported in Table 4 is shown in Table 5 below:

[0134]

[0135] Table 5

[0136] The second step is to use the scrambling polynomial G(x)=1+X 39 +X 58The coded data stream is scrambled, and the scrambling process is as follows: Figure 7 As shown, Figure 7 In which S0-S57 each represents one bit.

[0137] The third step is to insert alignment markers with BIP flags and alignment markers with channel bonding LB flags in an alternating manner in each channel for alignment and bonding. For example, one alignment marker is inserted every 16383 66b code blocks transmitted.

[0138] Among them, the M0 field, M1 field, M2 field, M4 field, M5 field, and M6 field of the BIP flag are consistent with the protocol, thereby ensuring the compatibility of the link; the value of the LB flag is set to the value of the corresponding mode in Table 1 according to the configuration mode of the channel.

[0139] The fourth step is to send the data stream of the corresponding channel in the order of the channel numbers.

[0140] An embodiment of the present disclosure also provides an Ethernet data receiving device, see Figure 8 , comprising a processor and a memory storing a computer program, wherein when the processor executes the computer program, it can implement the Ethernet data receiving method as described in any embodiment of the present disclosure.

[0141] An embodiment of the present disclosure also provides an Ethernet data sending device, see Figure 8 , comprising a processor and a memory storing a computer program, wherein when the processor executes the computer program, it can implement the Ethernet data sending method as described in any embodiment of the present disclosure.

[0142] The processor of the above-mentioned embodiment of the present disclosure may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP for short), a microprocessor, etc., or other conventional processors, etc.; the processor may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), discrete logic or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or other equivalent integrated or discrete logic circuits, or a combination of the above devices. That is, the processor of the above-mentioned embodiment may be any processing device or device combination for implementing the various methods, steps and logic block diagrams disclosed in the embodiment of the present disclosure. If the embodiment of the present disclosure is partially implemented in software, the instructions for the software may be stored in a suitable non-volatile computer-readable storage medium, and one or more processors may be used to execute the instructions in hardware to implement the method of the embodiment of the present disclosure. The term "processor" used herein may refer to the above-mentioned structure or any other structure suitable for implementing the technology described herein.

[0143] An embodiment of the present disclosure further provides an Ethernet data transceiving system, comprising the Ethernet data receiving device described in any embodiment of the present disclosure and the Ethernet data sending device described in any embodiment of the present disclosure.

[0144] In one or more of the above exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on a computer-readable medium or transmitted via a computer-readable medium as one or more instructions or codes, and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium such as a data storage medium, or a communication medium that facilitates a computer program, such as any medium transmitted from one place to another according to a communication protocol. In this way, a computer-readable medium may generally correspond to a non-temporary tangible computer-readable storage medium or a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the technology described in the present disclosure. A computer program product may include a computer-readable medium.

[0145] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection may also be referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwave are included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient (transient) media, but are directed to non-transient tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks, or Blu-ray disks, etc., where disks typically reproduce data magnetically, while optical disks use lasers to reproduce data optically. Combinations of the above should also be included within the scope of computer-readable media.

Claims

1. A method for receiving Ethernet data, wherein the physical coding sublayer PCS of the Ethernet includes multiple channels corresponding to the same MAC interface, and the method comprises: Obtain channel binding LB marks corresponding to each of the multiple channels, where the LB marks include information about binding relationships between the multiple channels; Determine the binding relationship between the multiple channels according to the obtained LB flag, merge the data streams of at least two channels with a binding relationship, and process the data streams of channels without a binding relationship with other channels separately; The method also includes: after achieving alignment between multiple channels, detecting each channel, and completing LB field locking when a set number of alignment mark pairs are continuously detected, and each alignment mark pair includes an alignment mark with a BIP mark and an alignment mark with an LB mark; after completing the LB field locking, obtaining the channel binding LB marks corresponding to each of the multiple channels.

2. The method according to claim 1, characterized in that: The determining the binding relationship between the plurality of channels according to the acquired LB flag includes: Acquire a value of an LB flag of each channel among the multiple channels, wherein the value of the LB flag includes a value indicating that there is a binding relationship with other channels and a value indicating that there is no binding relationship with other channels; and, Determine that the values ​​of the LB marks in the multiple channels are the same and indicate that at least two channels that have binding relationships with other channels have a binding relationship, and determine that the values ​​of the LB marks in the multiple channels indicate that each channel that has no binding relationship with other channels has no binding relationship with other channels.

3. The method according to claim 1, characterized in that: The LB flag includes data of the BIP3 field and data of the BIP7 field in the alignment mark, and the data of the BIP3 field and the data of the BIP7 field are the same, and the value of the LB flag is equal to the value of the BIP3 field or the BIP7 field; When detecting each channel, if it is detected that the data of the BIP3 field and the data of the BIP7 field in an alignment mark are the same, it is determined that an alignment mark with an LB mark is detected.

4. The method according to claim 1, characterized in that: The BIP flag includes the data of the BIP3 field and the data of the BIP7 field in the alignment mark, and the data of the BIP3 field is the bitwise inversion of the data of the BIP7 field; When detecting each channel, if it is detected that the data of the BIP3 field in an alignment mark is the bitwise inversion of the data of the BIP7 field, it is determined that an alignment mark with a BIP flag is detected; After completing the LB field locking, the method further includes: after detecting an alignment mark with an LB mark, comparing the XOR result of the set position bits in the 2*16384 66B code blocks before the LB mark with the data of the BIP3 field or the BIP7 field in the LB mark to perform bit error statistics.

5. The method according to claim 1, characterized in that: The PCS includes four channels with bandwidths of 10G each; the method further includes: After alignment between multiple channels is achieved, for each channel, when a set number of alignment marks with BIP marks are continuously detected, the BIP field is locked, and it is determined that the four channels are all in a binding relationship to form a 40G interface.

6. The method according to claim 1, characterized in that: The PCS includes 4 channels with bandwidths of 10G each, and the LB flag has 4 set values, which respectively represent a 10G interface, a 20G interface 1, a 20G interface 2, and a 30G interface; Determining the binding relationship between the multiple channels according to the obtained LB flags includes any one or more of the following methods: Determining that the values ​​of the LB flags in the four channels all indicate that there is a binding relationship between the three channels of the 30G interface, forming a 30G interface; Determining that the values ​​of the LB flags indicate that the other channel of the 10G interface has no binding relationship with the other channels, forming a 10G interface; Determine that among the four channels, the values ​​of the LB flags all indicate that there is a binding relationship between the two channels of the 20G interface 1, forming a 20G interface; determine that the values ​​of the LB flags all indicate that there is a binding relationship between the two channels of the 20G interface 2, forming another 20G interface; It is determined that among the four channels, the values ​​of the LB flags all indicate that there is a binding relationship between the two channels of the 20G interface 1 or the 20G interface 2, forming a 20G interface; it is determined that the values ​​of the LB flags all indicate that the two channels of the 10G interface have no binding relationship with the other channels, and each forms a 10G interface; It is determined that in the four channels, the values ​​of the LB flags all indicate that the four channels of the 10G interface have no binding relationship with other channels, and each constitutes a 10G interface.

7. The method according to claim 1, characterized in that : After determining the binding relationship between the multiple channels according to the obtained LB flag, merging the data streams of at least two channels with a binding relationship, and separately processing the data streams of the channels without a binding relationship with other channels, the method further includes: The data stream of each channel from the physical medium adaptation layer PMA to the medium independent interface MII direction is descrambled and decoded in the following way: Remove alignment marks; Descramble the data stream of each channel; Insert IDLE at the end of the data stream of each channel; Decode the data in the data stream of each channel.

8. A method for transmitting Ethernet data, wherein the physical coding sublayer PCS of the Ethernet includes multiple channels corresponding to the same MAC interface, the method comprising: Determining that the plurality of channels constitute a plurality of interfaces; When sending the data stream of each channel of the plurality of channels, an alignment marker with a BIP mark and an alignment marker with a channel binding LB mark are inserted alternately at intervals; in, The LB flag contains information about the binding relationship between the multiple channels; the LB flag includes the data of the BIP3 field and the data of the BIP7 field in the alignment tag, and the data of the BIP3 field is the same as the data of the BIP7 field, and the value of the LB flag is equal to the value of the BIP3 field or the BIP7 field; the BIP flag includes the data of the BIP3 field and the data of the BIP7 field in the alignment tag, and the data of the BIP3 field is the bitwise inversion of the data of the BIP7 field.

9. The method according to claim 8, characterized in that: The PCS includes 4 channels with bandwidths of 10G each, and the LB flag has 4 set values, which respectively represent a 10G interface, a 20G interface 1, a 20G interface 2, and a 30G interface.

10. The method according to claim 9, characterized in that: When inserting the alignment mark with the LB mark, the value of the LB mark is determined in the following manner: When three of the four channels constitute a 30G interface and one channel constitutes a 10G interface, the LB flag inserted in the data streams of the three channels is set to a value indicating the 30G interface, and the LB flag inserted in the data stream of the one channel is set to a value indicating the 10G interface; Two of the four channels constitute a 20G interface, and the other two channels constitute another 20G interface, and the LB flags inserted in the data streams of the two channels are set to a value indicating the 20G interface one, and the LB flags inserted in the data streams of the other two channels are set to a value indicating the 20G interface two; Two of the four channels constitute a 20G interface, and the other two channels constitute a 10G interface respectively, and the LB flags inserted in the data streams of the two channels are set to a value indicating the 20G interface one or the 20G interface two, and the LB flags inserted in the data streams of the other two channels are set to a value indicating the 10G interface; Each of the four channels constitutes a 10G interface, and the LB flag inserted into the data stream of each of the four channels is set to a value indicating a 10G interface.

11. The method according to claim 8, characterized in that: The method further includes: determining that the multiple channels constitute an interface; and, when sending the data stream of each channel of the multiple channels, continuously inserting alignment markers with BIP marks.

12. The method according to claim 8, characterized in that : Before inserting an alignment marker with a BIP mark and an alignment marker with a channel bonding LB mark in an alternating manner in the data stream of each channel of the plurality of channels, the method further includes: The data stream of each channel from the medium independent interface MII to the physical medium adaptation layer PMA is encoded and scrambled in the following way: The data stream of each channel is independently 64B / 66B encoded and scrambled; The 64B / 66B encoding and scrambling Start character and Order character are set at the S0 position; Each channel is provided with a channel number, and when the data stream of each channel among the multiple channels is sent, the data stream of the corresponding channel is sent in the order of the channel number.

13. An Ethernet data receiving device, comprising a processor and a memory storing a computer program, wherein: When the processor executes the computer program, the Ethernet data receiving method according to any one of claims 1 to 7 can be implemented.

14. An Ethernet data transmission device, comprising a processor and a memory storing a computer program, wherein: When the processor executes the computer program, the Ethernet data sending method according to any one of claims 8 to 12 can be implemented.

15. An Ethernet data transceiving system, comprising the Ethernet data receiving device according to claim 13 and the Ethernet data sending device according to claim 14.