Alignment mark search method, device, system and computer-readable storage medium
By multiplexing multiple data streams with the number of symbol bits of the FEC codeword as the reference granularity and searching for alignment flags, the problem of data stream skew and burst errors in the multi-channel Ethernet interface is solved, and tolerance is improved and search efficiency.
Patent Information
- Application Number
- CN202310032473.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-10
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-01-10
AI Technical Summary
In Ethernet interfaces where multiple channels are transmitted in parallel, data flow is prone to skew, which causes the sending end of the data flow to insert alignment flags for the receiver to align. However, the prior art has the impact of burst errors in bit multiplexing. Larger, insufficient tolerance.
By multiplexing multiple data streams with the number of symbol bits included in the FEC codeword as a reference granularity, a data stream is acquired and aligned flags are searched therein, providing flexible demultiplexing and interval acquisition methods to increase tolerance.
In the case of burst error, the number of symbols affected is small, which improves the tolerance and efficiency of alignment flag search and reduces the impact of errors caused by bit multiplexing.
Smart Images

Figure CN118337352B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, system and computer-readable storage medium for searching an alignment mark. Background Art
[0002] With the development of communication technology, the speed of Ethernet interface is constantly increasing. Since the speed of Ethernet interface is much higher than the speed of a single channel connected to the Ethernet interface, using multiple channels to transmit the data stream sent by the Ethernet interface in parallel has become a way to achieve the speed adaptation of the channel and the Ethernet interface.
[0003] Since data streams are prone to skew when transmitted through multiple channels, the sender of the data stream needs to insert an alignment marker (AM) into the data streams transmitted through multiple channels, so that the receiver of the data stream can search for the AM and align the data streams transmitted through multiple channels based on the AM, thereby accurately obtaining the data. Summary of the invention
[0004] The present application proposes a method, device, system and computer-readable storage medium for searching an alignment mark, which are used to perform an AM search on a data stream.
[0005] In a first aspect, a method for searching an alignment mark is provided, the method comprising: a first module receives a first data stream transmitted by a second module, the first data stream is obtained by multiplexing multiple second data streams according to a reference granularity, any second data stream includes AM and data from at least one forward error correction (FEC) codeword, the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, and n is a positive integer; then, the first module obtains a first data segment from a first position of the first data stream according to the reference granularity, and performs an AM search on the first data segment, wherein the first position is any position in the first data stream.
[0006] Since the first data stream in the method is obtained by multiplexing multiple second data streams with the number of bits corresponding to the n symbols included in the FEC codeword as the reference granularity, when a burst error occurs in the first data stream, the number of symbols affected by the burst error is small. If the first data stream is obtained by bit-multiplexing multiple second data streams, and the bit multiplexing multiplexes multiple data streams with 1 bit as the granularity, the burst error will affect multiple symbols, resulting in a large number of symbols affected by the burst error. Therefore, compared with performing AM search in the data stream obtained by bit multiplexing, the method provided by the present application has a stronger tolerance to burst errors.
[0007] In a possible implementation, obtaining a first data segment from a first position of a first data stream according to a reference granularity includes: demultiplexing the first data stream from the first position of the first data stream according to the reference granularity to obtain the first data segment. Thus, when the first position is a boundary for performing multiplexing, the data included in the first data segment may come from the same second data stream, and the AM search may be continued for the first data segment. For example, the AM search may be performed on the first data segment based on the AM search method specified by the Institute of Electrical and Electronics Engineers (IEEE) 802.3 standard.
[0008] In one possible implementation, a first data segment is obtained from a first position of a first data stream according to a reference granularity, including: obtaining a first number of bits from the first position of the first data stream at intervals of a first number of bits, and obtaining the first data segment based on the obtained multiple groups of the first number of bits, wherein the first number is determined according to the reference granularity. Compared with the method of obtaining the first data segment by demultiplexing, this implementation does not require demultiplexing of the first data stream, and the first data segment can be obtained by directly obtaining bits from the first data stream at intervals of a first number, thereby improving the efficiency of obtaining the first data segment. Furthermore, in this method, the first data segment can be obtained by demultiplexing, or by directly obtaining bits from the first data stream, and the method of obtaining the first data segment is more flexible.
[0009] In a possible implementation, the method further includes: based on the AM not being searched in the first data segment, obtaining the second data segment from the second position of the first data stream according to the reference granularity, and performing an AM search on the second data segment, wherein the second position is different from the first position. That is, if the AM cannot be searched in the first data segment, it means that the first position is not a boundary for performing multiplexing, in which case the second data segment can be obtained from another position in the first data stream, namely the second position, and an AM search can be performed in the second data segment.
[0010] In a possible implementation, the second position is a position of a second number of bits after the first position, or the second position is a position of a third number of reference symbols after the first position; wherein the type of the reference symbol is determined according to the modulation mode corresponding to the second data stream, and the number of bits corresponding to the second number and the third number of reference symbols are different. The method for determining the second position is relatively flexible.
[0011] In a possible implementation, the AM includes a common marker (CM) field, and the CM field is used to perform an AM search on the first data segment. In the case of performing an AM search based on the CM field, if the CM field is searched, it is considered that the AM is searched, thereby improving the efficiency of the AM search.
[0012] In a possible implementation, the FEC codeword is a Reed-Solomon (RS) codeword.
[0013] In a second aspect, a method for searching an alignment mark is provided, the method comprising: a second module acquires a first data stream, the first data stream is obtained by multiplexing multiple second data streams according to a reference granularity, any second data stream includes AM and data from at least one FEC codeword, the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, and n is a positive integer; then, the second module transmits the first data stream to the first module, so that the first module acquires a first data segment from a first position of the first data stream according to the reference granularity, and performs an AM search on the first data segment, wherein the first position is any position in the first data stream.
[0014] In this method, the number of bits corresponding to the n symbols included in the FEC codeword is used as the reference granularity to multiplex multiple second data streams to obtain the first data stream, so that when a burst error occurs in the first data stream, the number of symbols affected by the burst error is small. If the method of bit-multiplexing multiple second data streams to obtain the first data stream is adopted, since bit multiplexing multiple data streams with 1 bit as the granularity, the burst error will affect multiple symbols, resulting in a large number of symbols affected by the burst error. Therefore, compared with the data stream obtained by bit multiplexing, the first data stream obtained by this method has a stronger tolerance to burst errors.
[0015] In a third aspect, a device for searching an alignment mark is provided, the device being applied to a first module, and comprising:
[0016] an acquisition unit, configured to receive a first data stream transmitted by the second module, the first data stream being obtained by multiplexing a plurality of second data streams according to a reference granularity, any second data stream comprising AM and data from at least one FEC codeword, the reference granularity being the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer;
[0017] The acquisition unit is further used to acquire the first data segment from a first position of the first data stream according to the reference granularity, where the first position is any position in the first data stream;
[0018] The search unit is used to perform an AM search on the first data segment.
[0019] In a possible implementation, the acquisition unit is configured to demultiplex the first data stream from a first position of the first data stream according to a reference granularity to obtain a first data segment.
[0020] In a possible implementation, an acquisition unit is used to acquire a first number of bits from a first position of a first data stream every first number of bits, and obtain a first data segment based on multiple groups of the acquired first number of bits, where the first number is determined according to a reference granularity.
[0021] In one possible implementation, the search unit is further used to obtain a second data segment from a second position of the first data stream according to a reference granularity based on the fact that AM is not found in the first data segment, where the second position is different from the first position; and perform an AM search on the second data segment.
[0022] In one possible implementation, the second position is a position of a second number of bits after the first position, or the second position is a position of a third number of reference symbols after the first position; wherein the type of the reference symbol is determined according to the modulation method corresponding to the second data stream, and the number of bits corresponding to the second number and the third number of reference symbols are different.
[0023] In a possible implementation, AM includes a CM field, and the CM field is used to perform an AM search on the first data segment.
[0024] In a possible implementation, the FEC codeword is a RS codeword.
[0025] In a fourth aspect, a device for searching an alignment mark is provided, the device being applied to a second module, and comprising:
[0026] an acquisition unit, configured to acquire a first data stream, the first data stream being obtained by multiplexing a plurality of second data streams according to a reference granularity, any of the second data streams including AM and data from at least one FEC codeword, the reference granularity being the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer;
[0027] The transmission unit is used to transmit the first data stream to the first module so that the first module obtains the first data segment from the first position of the first data stream according to the reference granularity, and the first position is any position in the first data stream; and performs AM search on the first data segment.
[0028] In a fifth aspect, a communication system is provided, the system comprising a first module and a second module, the first module being used to execute any alignment mark search method in the first aspect, and the second module being used to execute any alignment mark search method in the second aspect.
[0029] In a sixth aspect, a computer system is provided, the computer system includes a processor, the processor includes a first module or a second module, when the processor includes the first module, when the processor executes a program instruction or code, the computer system implements any alignment mark search method in the first aspect, and when the processor includes the second module, when the processor executes a program instruction or code, the computer system implements the alignment mark search method in the second aspect. Exemplarily, the computer system also includes a memory, the memory is used to store the program instruction or code.
[0030] In the seventh aspect, a computer-readable storage medium is provided, in which at least one program instruction or code is stored, and the program instruction or code is executed by a computer, and the computer includes a first module or a second module; when the computer includes the first module, the program instruction or code is executed by the computer so as to enable the computer to implement any alignment mark search method in the first aspect; when the computer includes the second module, the program instruction or code is executed by the computer so as to enable the computer to implement the alignment mark search method in the second aspect.
[0031] In an eighth aspect, a communication device is provided, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute instructions stored in the memory to control the transceiver to send and receive signals, and the processor includes a first module or a second module. In the case where the processor includes the first module, when the processor executes the instructions stored in the memory, the processor executes any of the alignment mark search methods in the first aspect. In the case where the processor includes the second module, when the processor executes the instructions stored in the memory, the processor executes the alignment mark search method in the second aspect.
[0032] Illustratively, there are one or more processors and one or more memories.
[0033] For example, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0034] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.
[0035] In the ninth aspect, a computer program product is provided, comprising: computer program instructions or codes, the computer program instructions or codes are executed by a computer, and the computer comprises a first module or a second module; in the case where the computer comprises the first module, when the computer program instructions or codes are executed by the computer, the computer executes any one of the alignment mark search methods in the first aspect; in the case where the computer comprises the second module, when the computer program instructions or codes are executed by the computer, the computer implements the alignment mark search method in the second aspect.
[0036] In the tenth aspect, a chip is provided, which includes a processor, the processor includes a first module or a second module, the processor is used to run program instructions or codes, when the processor includes the first module, the device including the chip executes any alignment mark search method in the first aspect, when the processor includes the second module, the device including the chip executes the alignment mark search method in the second aspect.
[0037] Exemplarily, the chip further includes: an input interface, an output interface and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the memory is used to store program instructions or codes.
[0038] It should be understood that the beneficial effects achieved by the technical solutions of the third to tenth aspects of the present application and their corresponding possible implementation methods can be referred to the technical effects of the above-mentioned first and second aspects and their corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of an implementation scenario of a method for searching for an alignment mark provided in an embodiment of the present application;
[0040] Figure 2 is a flow chart of a method for searching an alignment mark provided in an embodiment of the present application;
[0041] Figure 3 It is a schematic diagram of multiplexing a second data stream to obtain a first data stream provided by an embodiment of the present application;
[0042] Figure 4 is a schematic diagram of a first position provided in an embodiment of the present application;
[0043] Figure 5 is a schematic diagram of obtaining multiple groups of a first number of bits provided by an embodiment of the present application;
[0044] Figure 6 It is a structural schematic diagram of an alignment mark search device provided in an embodiment of the present application;
[0045] Figure 7 is a structural schematic diagram of another alignment mark search device provided in an embodiment of the present application;
[0046] Figure 8 is a schematic diagram of the structure of a computer system provided in an embodiment of the present application;
[0047] Fig. 9 It is a structural diagram of another computer system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The terms used in the implementation method of this application are only used to explain the embodiments of this application, and are not intended to limit this application. The embodiments of this application are described below in conjunction with the accompanying drawings.
[0049] With the development of communication technology, the rate growth of Ethernet interface may be faster than the rate growth of a single channel connected to it. For example, a 10 Gigabit Ethernet (GE) interface is connected to a single lane of 10 Gigabits per second (Gbps), a 100GE interface is connected to four 25Gbps channels, and a 400GE interface is connected to 16 25Gbps channels or 8 50Gbps channels. The above channels can be physical coding sublayer (PCS) channels. It can be seen that when the rate of the Ethernet interface increases from 10GE to 400GE, the rate of a single channel is only increased from 10Gbps to 25Gbps or 50Gbps. In this case, the data stream sent by the Ethernet interface can be transmitted by transmitting data streams in parallel through multiple channels. In the case where the Ethernet interface is connected by multiple channels, multiple channels can transmit data streams in parallel.
[0050] Since the skew of the data stream on different channels may be different when the data stream is transmitted in parallel through multiple channels, the sending end of the data stream inserts AM into the data stream transmitted through multiple channels, and the receiving end of the data stream searches for AM in the data stream received from multiple channels to obtain the position of the AM inserted in the data stream transmitted by each channel. Therefore, after the receiving end of the data stream obtains the position of the AM, the data streams transmitted by multiple channels are aligned based on the position of the AM (including alignment lock and de-skew), and then the data stream transmitted from the sending end to the receiving end through multiple channels is decoded. Among them, the content of the AM will not be changed during the transmission process, but its specific bit sequence may be disrupted in the data stream due to processes such as bit multiplexing and symbol multiplexing. This bit sequence can also be called a bit pattern.
[0051] When transmitting data streams through a physical link, the rate of the physical link used to transmit the data stream can be higher than the rate of the PCS channel. For example, the rate of a single PCS channel is 25Gbps, while the rate of the physical link used to transmit the data stream can be 50Gbps or 100Gbps. In this case, when the data stream of the PCS channel is transmitted through the physical link, it is necessary to aggregate the data streams transmitted by multiple PCS channels and transmit the aggregated data stream through the physical link. At the receiving end of the data stream, the data stream transmitted by the PCS channel is obtained based on the aggregated data stream, and then an AM search can be performed on the data stream transmitted by the PCS channel.
[0052] The embodiment of the present application proposes a method for searching an alignment mark, which is suitable for performing an AM search on a converged data stream. Figure 1 is a schematic diagram of an implementation scenario of a method for searching for alignment marks provided in an embodiment of the present application, see Figure 1 , the implementation scenario includes a first module 101 and a second module 102, and the first module 101 and the second module 102 are communicatively connected. For example, the first module 101 and the second module 102 are communicatively connected via multiple physical links. Exemplarily, the first module 101 is included in a first device, and the second module 102 is included in a second device. The first module 101 and the second module 102 may also be included in the same device. Among them, the device where any one or more of the first module 101 and the second module 102 are located may be a network device, or may be other devices including an Ethernet interface or complying with IEEE 802.3. In addition, Figure 1 The illustrated implementation scenario may also include other modules, which are not limited in the embodiments of the present application.
[0053] The search method for alignment marks provided in the embodiment of the present application can be as follows: Figure 2 As shown, next, combined with Figure 1 The implementation scenario shown is used to illustrate the search method for the alignment mark provided in the embodiment of the present application. Figure 2 As shown, the method includes but is not limited to S201 and S202.
[0054] S201, the second module obtains the first data stream, which is obtained by multiplexing multiple second data streams according to a reference granularity, any second data stream includes AM and data from at least one FEC codeword, and the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer.
[0055] When the second module multiplexes the plurality of second data streams to obtain the first data stream, the multiplexing is performed based on the number of bits corresponding to one or more symbols of the FEC codeword as the reference granularity, that is, n may be equal to or greater than 1. In some embodiments, n may be 2m , m is a positive integer greater than or equal to 1. For example, n is 2, or 4, or 8, or 16. The FEC codeword may be a Reed-Solomon (RS) codeword. In an embodiment of the present application, n may be determined according to the number of FEC codewords corresponding to the second data stream. For example, for any second data stream, the any second data stream includes data from two FEC codewords, that is, the number of FEC codewords corresponding to the any second data stream is 2. In this case, n is greater than or equal to 2.
[0056] Exemplarily, for any second data stream among the plurality of second data streams, the AM included in the any second data stream corresponds to the channel that transmits the any second data stream. For example, each second data stream is a data stream transmitted by a PCS channel, and the AM included in each second data stream corresponds one-to-one to the sequence number of the PCS channel that transmits each second data stream. In the case where 8 PCS channels are used to transmit a plurality of second data streams in parallel, the correspondence between the AM included in each second data stream and the sequence number of the PCS channel that transmits each second data stream can be shown in Table 1.
[0057] Table 1
[0058]
[0059]
[0060] As shown in Table 1, the eight PCS channels are PCS channel 0 to PCS channel 7 with serial numbers 0-7, and the AM corresponding to any PCS channel includes a CM field, a unique marker (UM) field, and a unique pad (UP) field. Among them, the values of CM0 to CM5 in the AM corresponding to each PCS channel are the same. For example, in Table 1, the value of CM0 in each AM is 0x9A, the value of CM1 in each AM is 0x4A, the value of CM2 in each AM is 0x26, the value of CM3 in each AM is 0x65, the value of CM4 in each AM is 0xB5, and the value of CM5 in each AM is 0xD9. The values of UM0 to UM5 in the AM corresponding to each PCS channel uniquely correspond to each PCS channel, and the values of UP0 to UP2 can also uniquely correspond to each PCS channel. For example, the values of UM0 of AM in PCS channels 0 to 7 are 0xB3, 0x5A, 0x3E, 0x86, 0x2A, 0x12, 0x42, and 0xD6 respectively; the values of UP0 of AM in PCS channels 0 to 7 are 0x05, 0x04, 0x46, 0x5A, 0xE1, 0xF2, 0x3D, and 0x22 respectively. Exemplarily, the values of UP0 to UP2 are padding data that are not related to the AM locking mechanism. The content of Table 1 above is intended to illustrate the correspondence between PCS channels and AMs and the contents included in AMs, and is not intended to limit the numbering method of PCS channels.
[0061] In the case where 16 PCS channels are used to transmit multiple second data streams in parallel, the corresponding relationship between the AM included in each second data stream and the sequence number of the PCS channel transmitting each second data stream may be as shown in Table 2 and Table 3.
[0062] Table 2
[0063]
[0064]
[0065] Table 3
[0066]
[0067] As shown in Table 2 and Table 3, the 16 PCS channels are PCS channel 0 to PCS channel 15 with serial numbers 0-15, and the correspondence between the PCS channels and AM is the same as that shown in Table 1, which will not be repeated here. In addition, the contents of the above Table 2 and Table 3 are intended to illustrate the correspondence between the PCS channels and AM and the contents included in AM, and are not used to limit the numbering method of the PCS channels.
[0068] In combination with the contents of Tables 1 to 3 above, CM0 to CM5, UM0 to UM5, and UP0 to UP2 may each include 8 bits, so that one AM may include 120 bits. 120 bits may come from multiple FEC codewords. For example, when the symbol size of the FEC codeword includes 10 bits, 120 bits of AM may be allocated to multiple FEC codewords in units of 10 bits. Of course, AM may also include other bits in addition to 120 bits. For example, AM may also include padding (pad or padding), and pad or padding is used to adjust the number of bits included in AM to a specified number. The embodiment of the present application does not limit the number of bits included in AM.
[0069] It should be noted that the 8 groups of AM shown in Table 1 above are specific to the 200GE interface. If there are interfaces with other rates, different AMs may be used. For the convenience of design, for multiple PCS channels connected to any interface, the CM field in the AM corresponding to each PCS channel can be the same, such as Tables 1 to 3, but the UM is different. In addition, Tables 2 and 3 are specific to the 400GE interface. If interfaces with other rates use 16 channels, the AM may be different. Tables 1 to 3 above are only examples and do not limit the various situations in which the correspondence between AM and PCS channels applicable to this application is applicable. In addition, Table 1 is used to illustrate the AM corresponding to the PCS channel connected to the 200GE interface, and Tables 2 and 3 are used to illustrate the AM corresponding to the PCS channel connected to the 400GE interface. For interfaces with other rates, the AM may be different from the contents of Tables 1 to 3, for example, the AM does not include the UP field.
[0070] Figure 3 FIG. 1 is a schematic diagram of a method of multiplexing a second data stream to obtain a first data stream provided by an embodiment of the present application. Figure 3 As shown, the two second data streams are transmitted by PCS channel 0 and PCS channel 1 respectively, and both second data streams include AM and data parts from FEC codewords. AM0 is used when the second data stream is transmitted in PCS channel 0, and AM1 is used when the second data stream is transmitted in PCS channel 1. Taking the symbol of the FEC codeword as an example, where n is equal to 4, that is, the reference granularity is 40 bits, AM0 and AM1 are both divided into three parts for multiplexing, and the data part from the FEC codeword in the second data stream is also multiplexed at the reference granularity to obtain the first data stream.
[0071] Exemplarily, in an embodiment of the present application, when multiple second data streams are multiplexed, the multiple second data streams are first deskewed, and then the multiple second data streams after de-skewed are multiplexed. When de-skewing the multiple second data streams, there is no need to fully deskew the multiple second data streams, that is, there is no need to fully align the multiple second data streams according to the AM in the multiple second data streams, and the multiple second data streams only need to be de-skewed to the reference granularity of multiplexing, that is, the AM of one second data stream can be partially aligned with the data of another second data stream, and the multiple second data streams can be multiplexed according to the reference granularity. Figure 3 As shown, AM1 is partially aligned with the data in the second data stream transmitted by PCS channel 0, but is not aligned with AM0.
[0072] S202: The second module transmits a first data stream to the first module.
[0073] The embodiment of the present application does not limit the manner in which the second module transmits the first data stream to the first module, for example, the second module transmits the first data stream to the first module via a physical link. The first module can obtain the first data segment from the first position of the first data stream according to the reference granularity and perform an AM search on the first data segment, wherein the first position is any position in the first data stream. Please refer to S203 to S205 for details on the process of the first module obtaining the first data segment and then performing an AM search on the first data segment, which will not be described in detail here.
[0074] In the method provided in the embodiment of the present application, the number of bits corresponding to the n symbols included in the FEC codeword is used as the reference granularity to multiplex multiple second data streams to obtain the first data stream, so that when a burst error occurs in the first data stream, the number of symbols affected by the burst error is small. If the method of bit-multiplexing multiple second data streams to obtain the first data stream is adopted, since bit multiplexing multiple data streams with 1 bit as the granularity, the burst error will affect multiple symbols, resulting in a large number of symbols affected by the burst error. Therefore, compared with the data stream obtained by bit multiplexing, the first data stream obtained by this method has a stronger tolerance to burst errors.
[0075] The above takes the second module side as an example to illustrate the search method for the alignment mark provided in the embodiment of the present application. Next, take the first module side as an example to illustrate the method. Figure 2 As shown, the method includes but is not limited to S203 to S205.
[0076] S203: The first module receives the first data stream transmitted by the second module.
[0077] The embodiment of the present application does not limit the manner in which the first module receives the first data stream transmitted by the second module, and can correspond to the manner in which the second module transmits the first data stream to the first module. The first data stream is obtained by multiplexing multiple second data streams according to a reference granularity, and any second data stream includes AM and data from at least one FEC codeword. The reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, and n is a positive integer.
[0078] S204, the first module obtains a first data segment from a first position of the first data stream according to a reference granularity, where the first position is any position in the first data stream.
[0079] In a possible implementation, the first module uses the following method 1 or method 2 to perform an operation of acquiring the first data segment from the first position of the first data stream according to the reference granularity.
[0080] Method 1: From the first position of the first data stream, the first data stream is demultiplexed according to the reference granularity to obtain a first data segment.
[0081] In this method 1, the first module can start from any position of the first data stream and perform demultiplexing of the first data stream at the same granularity based on the reference granularity adopted for multiplexing. Thus, when the first position is the boundary for performing multiplexing, the data included in the first data segment can come from the same second data stream.
[0082] Figure 4 is a schematic diagram of a first position provided in an embodiment of the present application, see Figure 4 , if the first position is position A or position B in the first data stream, since position A and position B are not the boundaries for performing multiplexing, the obtained first data segment will include both data from the second data stream transmitted by PCS channel 0 and data from the second data stream transmitted by PCS channel 1. In other words, the data included in the first data segment comes from two second data streams. If the first position is position C in the first data stream, since position C is the boundary for performing multiplexing, the obtained first data segment will only include data from the second data stream transmitted by PCS channel 0, or only include data from the second data stream transmitted by PCS channel 1. In other words, the data included in the first data segment comes from the same second data stream. In an embodiment of the present application, in the case where the first data segment is obtained by demultiplexing the first data stream, an AM search may be subsequently performed on the first data segment. For example, an AM search may be performed on the first data segment in a manner based on the AM search specified in the IEEE802.3 standard.
[0083] Method 2: obtaining a first number of bits from a first position of a first data stream at intervals of a first number of bits, and obtaining a first data segment based on multiple groups of the obtained first number of bits, wherein the first number is determined according to a reference granularity.
[0084] Compared with the method of obtaining the first data segment by demultiplexing in method 1, in method 2, the first data stream is not demultiplexed, and bits are directly obtained from the first data stream at a first number interval to obtain the first data segment, and the efficiency of obtaining the first data segment is higher. In an embodiment of the present application, the first number is equal to the number of bits corresponding to the reference granularity. For example, when the symbol of the FEC codeword includes 10 bits, continuous n*10 bits are obtained from the first data stream every continuous n*10 bits, and then the first data segment is obtained based on the obtained multiple groups of n*10 bits.
[0085] Figure 5 is a schematic diagram of obtaining multiple groups of first number bits, see Figure 5 If the first module takes position D as the first position, the first module will obtain the first number of bits every first number of bits in the first data stream starting from position D. If the first module takes position E as the first position, the first module will obtain the first number of bits every first number of bits in the first data stream starting from position E. Position E is a position located 1 bit after position D.
[0086] S205: The first module performs an AM search on the first data segment.
[0087] Exemplarily, the CM field included in the AM is used to perform an AM search on the first data segment, so that the amount of data required to perform the AM search is small and the efficiency of the AM search is high. The CM field may include CM0 to CM5 in the above Tables 1 to 3. In an embodiment of the present application, for any second data stream, the AM corresponding to the PCS channel that transmits any second data stream can be inserted at intervals in the any second data stream. In the case of performing an AM search based on the CM field, if the CM field is searched, it is considered that the AM is searched. In an embodiment of the present application, for any second data stream, the AM corresponding to the PCS channel that transmits any second data stream can be repeatedly inserted into the any second data stream according to the reference interval. In this case, if the CM field is searched for p consecutive times in the first data segment according to the reference interval for inserting the AM, it is considered that the AM is searched for p consecutive times in the first data segment according to the reference interval of the AM, and the AM lock is successful, and p can be a positive integer greater than or equal to 2. The embodiment of the present application does not limit the method of searching the CM field. For example, each CM field includes 2 nibbles, and CM0 to CM5 include a total of 12 nibbles. If 9 nibbles out of the 12 nibbles can be searched in the first data segment, it is determined that the CM field is searched.
[0088] In a possible implementation, the first module may also perform an AM search on the first data segment based on multiple fields of AM. For example, the first module may perform an AM search on the first data segment based on the CM field and the UM field of AM. That is to say, the first module may also search the UM field on the basis of searching the CM field. Thus, if both the CM field and the UM field are searched in the first data segment, it is considered that AM is searched in the first data segment. The embodiment of the present application does not limit the method of searching the UM field. For example, each UM field includes 2 nibbles, and UM0 to UM5 include a total of 12 nibbles. If 9 nibbles out of the 12 nibbles can be searched in the first data segment, it is determined that the UM field is searched.
[0089] In a possible implementation, the method further includes: based on AM not being searched for in the first data segment, obtaining a second data segment from a second position of the first data stream according to a reference granularity, the second position being different from the first position; and performing an AM search on the second data segment. That is, if AM cannot be searched for in the first data segment, it means that the first position is not a boundary for performing multiplexing. In this case, the second data segment can be obtained from another position in the first data stream, namely the second position, and an AM search can be performed in the second data segment. The content of searching for AM in the second data segment is the same as the content principle of S205 above, and will not be repeated here. Exemplarily, if AM is still not searched for after a reference length of bits, it is determined that AM is not searched for in the first data segment. The reference length can be determined based on experience or actual needs, for example, the reference length is 5 times the insertion interval of AM.
[0090] The second position may be a position of the second number of bits after the first position, or the second position may be a position of the third number of reference symbols after the first position; wherein the type of the reference symbol is determined according to the modulation mode corresponding to the second data stream, and the number of bits corresponding to the second number and the third number of reference symbols is different. The modulation mode corresponding to the second data stream may be four-level pulse amplitude modulation (4-level pulse amplitude modulation, PAM4), so that the reference symbol may be a PAM4 symbol. Alternatively, the modulation mode corresponding to the second data stream is three-level pulse amplitude modulation (3-level pulse amplitude modulation, PAM3), so that the reference symbol may be a PAM3 symbol. Alternatively, the modulation mode corresponding to the second data stream is five-level pulse amplitude modulation (5-level pulse amplitude modulation, PAM5), so that the reference symbol may be a PAM5 symbol. The modulation mode corresponding to the second data stream may also be six-level pulse amplitude modulation (6-level pulse amplitude modulation, PAM6), so that the reference symbol may be a PAM6 symbol. Alternatively, the modulation mode corresponding to the second data stream is eight-level pulse amplitude modulation (8-level pulse amplitude modulation, PAM8), so that the reference symbol may be a PAM8 symbol. Alternatively, the modulation mode corresponding to the second data stream is 16-level pulse amplitude modulation (PAM16), so the reference symbol can be a PAM16 symbol. Alternatively, the modulation mode corresponding to the second data stream is quadrature amplitude modulation (QAM), so the reference symbol can be a QAM symbol.
[0091] Exemplarily, if AM is not found in the second data segment, the first module can continue to change the position, obtain the data segment from the changed position in the first data stream, and search the obtained data segment for AM. The first module cyclically executes the process of changing the position, obtaining the data segment, and searching the data segment for AM until AM is found in the data segment.
[0092] Since the multiplexing granularity is fixed, the multiplexing boundary appears periodically. Therefore, when changing the position, it can be the position of 1 bit after position A, or it can be the position of x*n*10bit+1 bit. Where x is a positive integer greater than or equal to 1. For example, Figure 4 As shown, if position A is the first position and the first module does not search for AM in the first data segment, position B located one bit after position A can be used as the second position and the second data segment can be obtained, and the obtained second data segment can be searched for AM. If the first module does not search for AM in the second data segment, position C located one bit after position B can be used as the third position, and the third data segment can be obtained from position C of the first data stream according to the reference granularity, and the third data segment can be searched for AM. For another example, Figure 5 As shown, when position D is the first position, if the first module does not search for AM in the first data segment, position E located 1 bit after position D can be used as the second position and the second data segment can be obtained, and AM search can be performed on the obtained second data segment.
[0093] Furthermore, in the case of obtaining the first data segment through demultiplexing, if multiple first data segments are obtained, an AM search can be performed on each of the first data segments. If the AM lock of any one of the multiple first data segments fails, it is determined that the first position is not a boundary for multiplexing, and the first module executes an operation of obtaining the second data segment from the second position of the first data stream according to the reference granularity and performing an AM search on the second data segment.
[0094] The method provided in the embodiment of the present application is suitable for performing an AM search on a first data stream. Since the first data stream in the method is obtained by multiplexing multiple second data streams with the number of bits corresponding to the n symbols included in the FEC codeword as the reference granularity, when a burst error occurs in the first data stream, the number of symbols affected by the burst error is small. If the first data stream is obtained by bit-multiplexing multiple second data streams, and bit multiplexing multiplexes multiple data streams with 1 bit as the granularity, the burst error will affect multiple symbols, resulting in a large number of symbols affected by the burst error. Therefore, compared with performing an AM search in a data stream obtained by bit multiplexing, the method provided in the embodiment of the present application has a stronger tolerance for burst errors.
[0095] The embodiment of the present application also provides a device for searching for alignment marks. Figure 6 Schematic diagram of a structure of a search device for alignment marks provided in an embodiment of the present application. Figure 6 The multiple units shown, Figure 6 The alignment mark search device shown can perform all or part of the operations performed by the first module. It should be understood that the device may include more additional units than the units shown or omit some of the units shown, and the embodiment of the present application is not limited to this. Figure 6 As shown, the device comprises:
[0096] An acquiring unit 601 is configured to receive a first data stream transmitted by a second module, where the first data stream is obtained by multiplexing a plurality of second data streams according to a reference granularity, where any second data stream includes AM and data from at least one FEC codeword, and the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer;
[0097] The acquisition unit 601 is further configured to acquire a first data segment from a first position of the first data stream according to a reference granularity, where the first position is any position in the first data stream;
[0098] The search unit 602 is configured to perform an AM search on the first data segment.
[0099] In a possible implementation, the acquisition unit 601 is configured to demultiplex the first data stream from a first position of the first data stream according to a reference granularity to obtain a first data segment.
[0100] In a possible implementation, the acquisition unit 601 is used to acquire a first number of bits from a first position of a first data stream every first number of bits, and obtain a first data segment based on multiple groups of the acquired first number of bits, where the first number is determined according to a reference granularity.
[0101] In one possible implementation, the search unit 602 is further used to obtain a second data segment from a second position of the first data stream according to a reference granularity based on the fact that AM is not found in the first data segment, where the second position is different from the first position; and perform an AM search on the second data segment.
[0102] In one possible implementation, the second position is a position of a second number of bits after the first position, or the second position is a position of a third number of reference symbols after the first position; wherein the type of the reference symbol is determined according to the modulation method corresponding to the second data stream, and the number of bits corresponding to the second number and the third number of reference symbols are different.
[0103] In a possible implementation, AM includes a CM field, and the CM field is used to perform an AM search on the first data segment.
[0104] In a possible implementation, the FEC codeword is a RS codeword.
[0105] The device provided in the embodiment of the present application is suitable for performing an AM search on a first data stream. Since the first data stream in the device is obtained by multiplexing multiple second data streams with the number of bits corresponding to the n symbols included in the FEC codeword as the reference granularity, when a burst error occurs in the first data stream, the number of symbols affected by the burst error is small. If the first data stream is obtained by bit-multiplexing multiple second data streams, and bit multiplexing multiplexes multiple data streams with 1 bit as the granularity, the burst error will affect multiple symbols, resulting in a large number of symbols affected by the burst error. Therefore, compared with performing an AM search in the data stream obtained by bit multiplexing, the device has a stronger tolerance for burst errors.
[0106] Figure 7 Schematic diagram of another alignment mark search device provided in an embodiment of the present application. Figure 7 The multiple units shown in Figure 7 The alignment mark search device shown can perform all or part of the operations performed by the second module. It should be understood that the device may include more additional units than the units shown or omit some of the units shown, and the embodiment of the present application is not limited to this. Figure 7 As shown, the device comprises:
[0107] An acquiring unit 701 is configured to acquire a first data stream, where the first data stream is obtained by multiplexing a plurality of second data streams according to a reference granularity, where any second data stream includes AM and data from at least one FEC codeword, and the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer;
[0108] The transmission unit 702 is used to transmit the first data stream to the first module so that the first module obtains the first data segment from the first position of the first data stream according to the reference granularity, and the first position is any position in the first data stream; and performs AM search on the first data segment.
[0109] In the device provided in the embodiment of the present application, the number of bits corresponding to the n symbols included in the FEC codeword is used as the reference granularity to multiplex multiple second data streams to obtain the first data stream, so that when a burst error occurs in the first data stream, the number of symbols affected by the burst error is small. If the method of bit-multiplexing multiple second data streams to obtain the first data stream is adopted, since bit multiplexing multiple data streams with 1 bit as the granularity, the burst error will affect multiple symbols, resulting in a large number of symbols affected by the burst error. Therefore, compared with the data stream obtained by bit multiplexing, the first data stream obtained by the device is more resistant to burst errors.
[0110] It should be understood that the above Figure 6-7 When the device provided realizes its functions, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0111] See also Figure 8 , Figure 8 The following is a schematic diagram of the structure of a computer system provided in an embodiment of the present application. Figure 8 As shown, the computer system is a computer system 2000. The computer system 2000 may be a network device, and the network device may be a routing device or a switching device. Figure 8 The computer system 2000 shown is used to execute the above Figure 2 The operations involved in the first module or the operations involved in the second module in the alignment mark search method shown. The computer system 2000 is, for example, a server, etc. The computer system 2000 can be implemented by a general bus architecture.
[0112] like Figure 8 As shown, the computer system 2000 includes at least one processor 2001 , a memory 2003 , and at least one communication interface 2004 .
[0113] Processor 2001 is, for example, a central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0114] Optionally, the computer system 2000 further includes a bus. The bus is used to transmit information between the components of the computer system 2000. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0115] The memory 2003 is, for example, a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2003 is, for example, independent and connected to the processor 2001 via a bus. The memory 2003 can also be integrated with the processor 2001.
[0116] The communication interface 2004 uses any transceiver-like device to communicate with other devices or communication networks, and the communication network can be Ethernet, radio access network (RAN) or wireless local area network (WLAN), etc. The communication interface 2004 can include a wired communication interface and can also include a wireless communication interface. Specifically, the communication interface 2004 can be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a WLAN interface, a cellular network communication interface or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. In an embodiment of the present application, the communication interface 2004 can be used for the computer system 2000 to communicate with other devices.
[0117] In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as Figure 8 0 and CPU1 shown in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0118] In a specific implementation, as an embodiment, the computer system 2000 may include multiple processors, such as Figure 8 2001 and processor 2005 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0119] In a specific implementation, as an embodiment, the computer system 2000 may further include an output device and an input device. The output device communicates with the processor 2001 and may display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 2001 and may receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device.
[0120] In some embodiments, the memory 2003 is used to store the program code 2010 for executing the solution of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003. The program code 2010 may include one or more software modules. Optionally, the processor 2001 itself may also store the program code or instructions for executing the solution of the present application.
[0121] In a specific embodiment, the computer system 2000 of the embodiment of the present application may include the first module in each of the above method embodiments, and the processor 2001 in the computer system 2000 reads the program code 2010 in the memory 2003 or the program code or instruction stored in the processor 2001 itself, so that Figure 8 The computer system 2000 shown is capable of executing all or part of the operations performed by the first module.
[0122] In a specific embodiment, the computer system 2000 of the embodiment of the present application may include the second module in each of the above-mentioned method embodiments, and the processor 2001 in the computer system 2000 reads the program code 2010 in the memory 2003 or the program code or instruction stored in the processor 2001 itself, so that Figure 8 The computer system 2000 shown is capable of executing all or part of the operations performed by the second module.
[0123] The computer system 2000 may also correspond to the above Figure 6 ,7 The device shown, Figure 6 , 7 Each functional unit in the device shown is implemented using software of the computer system 2000. In other words, Figure 6 , 7 The functional units included in the device shown are generated after the processor 2001 of the computer system 2000 reads the program code 2010 stored in the memory 2003.
[0124] in, Figure 2 Each step of the search method for the alignment mark shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the computer system 2000. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art 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, and the processor reads the information in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0125] Fig. 9 is a schematic diagram of another computer system provided in an embodiment of the present application, the computer system is used to execute the above Figure 2 The operations involved in the first module or the operations involved in the second module in the search method for the alignment mark shown. Exemplarily, the computer system is a server, and the server may have relatively large differences due to different configurations or performances. The computer system may include one or more processors 901 and one or more memories 902, wherein the one or more memories 902 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 901. Exemplarily, the processor 901 is a CPU. Of course, the computer system may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The computer system may also include other components for realizing device functions, which are not described here.
[0126] An embodiment of the present application also provides a computer system, which includes a processor, the processor includes a first module or a second module, and the processor is used to call and execute instructions stored in the memory from the memory; when the processor includes the first module, the computer system implements the alignment mark search method executed by the first module, and when the processor includes the second module, the computer system implements the alignment mark search method executed by the second module.
[0127] In a possible implementation, the computer system further includes: an input interface, an output interface and the memory, and the input interface, the output interface, the processor and the memory are connected via an internal connection path.
[0128] The embodiment of the present application also provides a communication system, which includes a first module and a second module. The first module is used to execute Figure 2 The method executed by the first module shown, the second module is used to execute Figure 2 The functions of the first module and the second module of the communication system can refer to the above Figure 2 The relevant descriptions shown will not be repeated here one by one.
[0129] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory and a processor. The transceiver, the memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to send and receive signals, and the processor includes a first module or a second module. In the case where the processor includes the first module, when the processor executes the instructions stored in the memory, the processor executes the search method for the alignment mark executed by the first module. In the case where the processor includes the second module, when the processor executes the instructions stored in the memory, the processor executes the search method for the alignment mark executed by the second module.
[0130] It should be understood that the processor may be a CPU, or other general-purpose processors, DSPs, ASICs, 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 any conventional processor, etc. It is worth noting that the processor may be a processor supporting an advanced RISC machines (ARM) architecture.
[0131] Further, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0132] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a ROM, a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an electrically erasable programmable read-only memory (electrically EPROM, EEPROM) or a flash memory. The volatile memory may be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (static RAM, SRAM), dynamic random access memory (dynamic random access memory, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (doubledata rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).
[0133] The embodiment of the present application also provides a computer-readable storage medium, in which at least one program instruction or code is stored, and the program instruction or code is executed by a computer, and the computer includes a first module or a second module. In the case where the computer includes the first module, when the program instruction or code is executed by the computer, the computer implements the search method for the alignment mark executed by the first module. In the case where the computer includes the second module, when the program instruction or code is executed by the computer, the computer implements the search method for the alignment mark executed by the second module.
[0134] The embodiment of the present application also provides a computer program product, the computer program product includes: computer program instructions or codes, the computer program instructions or codes are executed by a computer, and the computer includes a first module or a second module. In the case where the computer includes the first module, when the computer program instructions or codes are executed by the computer, the computer executes the search method for the alignment mark executed by the first module. In the case where the computer includes the second module, when the computer program instructions or codes are executed by the computer, the computer executes the search method for the alignment mark executed by the second module.
[0135] The embodiment of the present application also provides a chip, including a processor, the processor including a first module or a second module, and the processor is used to run program instructions or codes. In the case where the processor includes the first module, the device including the chip executes the search method for the alignment mark executed by the first module. In the case where the processor includes the second module, the device including the chip executes the search method for the alignment mark executed by the second module.
[0136] Exemplarily, the chip further includes: an input interface, an output interface and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the memory contains program instructions or codes.
[0137] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0138] In the above embodiments, the unit of transmission rate Gb / s can also be abbreviated as G, such as the rate of 400 Gb / s can also be abbreviated as 400G.
[0139] In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0140] The computer program code for implementing the method of the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable alignment mark search device, so that when the program code is executed by the computer or other programmable alignment mark search device, the function / operation specified in the flow chart and / or block diagram is implemented. The program code can be executed completely on the computer, partially on the computer, as an independent software package, partially on the computer and partially on the remote computer or completely on the remote computer or server.
[0141] In the context of the embodiments of the present application, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, etc. Examples of signals may include electrical, optical, radio, acoustic or other forms of propagation signals, such as carrier waves, infrared signals, etc.
[0142] 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 modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0143] 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 module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.
[0144] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0145] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0146] In this application, the words such as "first", "second", etc. are used to distinguish the same or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is the quantity and execution order limited. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another element. For example, without departing from the scope of various examples, the first module can be referred to as the second module, and similarly, the second module can be referred to as the first module.
[0147] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process 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 application.
[0148] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple code blocks means two or more code blocks. The terms "system" and "network" are often used interchangeably herein.
[0149] It should be understood that the terms used in the description of various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0150] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0151] It should also be understood that, depending on the context, the phrase “if it is determined that…” or “if [stated condition or event] is detected” may be interpreted to mean “upon determining that…” or “in response to determining that…” or “upon detecting [stated condition or event]” or “in response to detecting [stated condition or event]”.
[0152] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.
[0153] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Claims
1. A method for searching for an alignment mark, characterized in that: The method comprises: The first module receives a first data stream transmitted by the second module, where the first data stream is obtained by multiplexing a plurality of second data streams according to a reference granularity, and any second data stream includes an alignment mark AM and data from at least one forward error correction FEC codeword, and the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer; acquiring a first data segment from a first position of the first data stream according to the reference granularity, where the first position is any position in the first data stream; An AM search is performed on the first data segment.
2. The method according to claim 1, characterized in that The acquiring, from the first position of the first data stream and according to the reference granularity, the first data segment comprises: From a first position of the first data stream, the first data stream is demultiplexed according to the reference granularity to obtain the first data segment.
3. The method according to claim 1, characterized in that The acquiring, from the first position of the first data stream and according to the reference granularity, the first data segment comprises: A first number of bits is obtained from a first position of the first data stream every first number of bits, and the first data segment is obtained based on multiple groups of the first number of bits obtained, where the first number is determined according to the reference granularity.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Based on the fact that AM is not found in the first data segment, obtaining a second data segment from a second position of the first data stream according to the reference granularity, the second position being different from the first position; Perform an AM search on the second data segment.
5. The method according to claim 4, characterized in that The second position is a position located a second number of bits after the first position, or the second position is a position a third number of reference symbols after the first position; The type of the reference symbol is determined according to a modulation mode corresponding to the second data stream, and the number of bits corresponding to the second number and the third number of reference symbols are different.
6. The method according to any one of claims 1-3 and 5, characterized in that: The AM includes a common flag CM field, and the CM field is used to perform an AM search on the first data segment.
7. The method according to claim 4, characterized in that The AM includes a common flag CM field, and the CM field is used to perform an AM search on the first data segment.
8. The method according to any one of claims 1-3, 5 and 7, characterized in that: The FEC codeword is a Reed-Solomon RS codeword.
9. The method according to claim 4, characterized in that The FEC codeword is a Reed-Solomon RS codeword.
10. The method according to claim 6, characterized in that The FEC codeword is a Reed-Solomon RS codeword.
11. A method for searching for an alignment mark, characterized in that: The method comprises: The second module obtains a first data stream, where the first data stream is obtained by multiplexing multiple second data streams according to a reference granularity, and any second data stream includes an alignment marker AM and data from at least one forward error correction FEC codeword, and the reference granularity is the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer; Transmit the first data stream to the first module so that the first module obtains a first data segment from a first position of the first data stream according to the reference granularity, where the first position is any position in the first data stream; and perform an AM search on the first data segment.
12. A search device for alignment marks, characterized in that: The device is applied to a first module, and comprises: an acquisition unit, configured to receive a first data stream transmitted by a second module, wherein the first data stream is obtained by multiplexing a plurality of second data streams according to a reference granularity, any of the second data streams including an alignment marker AM and data from at least one forward error correction FEC codeword, the reference granularity being the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer; The acquisition unit is further configured to acquire a first data segment from a first position of the first data stream according to the reference granularity, where the first position is any position in the first data stream; A search unit is used to perform an AM search on the first data segment.
13. The device according to claim 12, characterized in that The acquisition unit is used to demultiplex the first data stream from a first position of the first data stream according to the reference granularity to obtain the first data segment.
14. The device according to claim 12, characterized in that The acquisition unit is used to acquire a first number of bits every first number of bits from a first position of the first data stream, and obtain the first data segment based on multiple groups of the acquired first number of bits, where the first number is determined according to the reference granularity.
15. The device according to any one of claims 12 to 14, characterized in that: The search unit is further configured to obtain a second data segment from a second position of the first data stream according to the reference granularity based on the fact that the AM is not found in the first data segment, where the second position is different from the first position; Perform an AM search on the second data segment.
16. The device according to claim 15, characterized in that The second position is a position of a second number of bits after the first position, or the second position is a position of a third number of reference symbols after the first position; wherein the type of the reference symbol is determined according to the modulation mode corresponding to the second data stream, and the second number is different from the third number of reference symbols corresponding to the number of bits.
17. The device according to any one of claims 12-14 and 16, characterized in that: The AM includes a common flag CM field, and the CM field is used to perform an AM search on the first data segment.
18. The device according to claim 15, characterized in that The AM includes a common flag CM field, and the CM field is used to perform an AM search on the first data segment.
19. The device according to any one of claims 12-14, 16 and 18, characterized in that: The FEC codeword is a Reed-Solomon RS codeword.
20. The device according to claim 15, characterized in that The FEC codeword is a Reed-Solomon RS codeword.
21. The device according to claim 17, characterized in that The FEC codeword is a Reed-Solomon RS codeword.
22. A search device for an alignment mark, characterized in that: The device is applied to the second module, and the device includes: an acquisition unit, configured to acquire a first data stream, wherein the first data stream is obtained by multiplexing a plurality of second data streams according to a reference granularity, any of the second data streams including an alignment marker AM and data from at least one forward error correction FEC codeword, the reference granularity being the number of bits corresponding to n symbols included in the FEC codeword, where n is a positive integer; A transmission unit is used to transmit the first data stream to the first module, so that the first module obtains the first data segment from the first position of the first data stream according to the reference granularity, and the first position is any position in the first data stream; and performs an AM search on the first data segment.
23. A communication system, characterized in that: The system comprises a first module and a second module, wherein the first module is used to execute the method according to any one of claims 1 to 10, and the second module is used to execute the method according to claim 11.
24. A computer system, characterized in that: The computer system includes: a processor, the processor includes a first module or a second module, and when the processor includes the first module, when the processor executes a program instruction or code, the computer system implements the method according to any one of claims 1 to 10, and when the processor includes the second module, when the processor executes a program instruction or code, the computer system implements the method according to claim 11.
25. The computer system according to claim 24, characterized in that The computer system further comprises: a memory, wherein the memory is used to store the program instructions or codes.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program instruction or code, and the program instruction or code is executed by a computer, and the computer includes a first module or a second module; when the computer includes the first module, the program instruction or code is executed by the computer so that the computer implements the method according to any one of claims 1 to 10, and when the computer includes the second module, the program instruction or code is executed by the computer so that the computer implements the method according to claim 11.
27. A computer program product, characterized in that The computer program product includes computer program instructions or codes, and the computer program instructions or codes are executed by a computer, and the computer includes a first module or a second module; when the computer includes the first module, when the computer program instructions or codes are executed by the computer, the computer implements the method as claimed in any one of claims 1 to 10, and when the computer includes the second module, when the computer program instructions or codes are executed by the computer, the computer implements the method as claimed in claim 11.
28. A chip, characterized in that: The chip includes a processor, the processor includes a first module or a second module, and the processor is used to run program instructions or codes. When the processor includes the first module, the device including the chip executes the method described in any one of claims 1 to 10. When the processor includes the second module, the device including the chip executes the method described in claim 11.
29. The chip according to claim 28, characterized in that The chip further includes: an input interface, an output interface and a memory. The input interface, the output interface, the processor and the memory are connected via an internal connection path. The memory contains the program instructions or codes.
