Frequency coding method and apparatus, and storage medium and electronic apparatus

By using the target BIT representation with a bit number greater than 16BIT, expanding the low-frequency part of the L band, the problem that the existing 16BIT encoding method cannot cover the C+L band is solved, and high-precision frequency representation and multi-band support are achieved.

WO2025001806A1PCT designated stage expired Publication Date: 2025-01-02ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/097837
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-30
Filing Date
2024-06-06
Publication Date
2025-01-02

AI Technical Summary

Technical Problem

The existing 16BIT encoding method cannot cover all bands of the C+L band, and the accuracy of the fractional part is not enough to represent a high-precision frequency grid, and the newly added U and S bands cannot be supported.

Method used

The target BIT representation with a bit number greater than 16BIT is adopted, and at least 7 consecutive bits are used to extend the low frequency part of the L band, the center wavelength frequency value is represented through the 32BIT encoding format, the accuracy of the fractional part is increased and multiple band types are supported.

Benefits of technology

The entire band encoding and decoding of the C+L band is realized, the accuracy of frequency representation is improved to 1/64GHz, and the unified encoding representation of multiple band types is supported, solving the problems of incomplete encoding and insufficient accuracy in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024097837_02012025_PF_FP_ABST
    Figure CN2024097837_02012025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a frequency coding method and apparatus, and a storage medium and an electronic apparatus. The method comprises: acquiring a central wavelength frequency value to be coded (S202); and coding the central wavelength frequency value by means of a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 bits, and the target BIT representation method uses at least seven consecutive bits to expand a low-frequency portion of an L-band (S204). By using the technical solution, the problem in the related art whereby existing 16-bit coding methods cannot cover the entire C+L band is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Frequency encoding method, device, storage medium and electronic device

[0001] This disclosure claims priority to the Chinese patent application filed with the China Patent Office on June 30, 2023, with application number 202310810069.X and invention name “Frequency Coding Method, Device, Storage Medium and Electronic Device”, the entire contents of which are incorporated by reference into this disclosure. Technical Field

[0002] The present disclosure relates to the field of communications, and in particular to a frequency coding method, device, storage medium, and electronic device. Background Art

[0003] With the expansion of 400G solutions and the growing industry chain, 400G will enter widespread commercial use. The increase in single-wavelength transmission rates requires higher baud rates, which in turn increases the spectral bandwidth occupied by each channel. 400G Phase Shift Modulation 16 Quadrature Amplitude Modulation (400G PS-16QAM) based on 90GBaud requires 100GHz of bandwidth per channel, while 400G PM-QPSK based on 130GBaud requires 150GHz of bandwidth per channel. This increase in per-channel bandwidth also requires a simultaneous increase in system spectrum bandwidth. Currently, the C-band supports a maximum bandwidth of 6T; with the expansion to the L-band, this will be able to support a maximum of 12T. The C+L band introduces the L-band compared to the traditional C-band. Due to the introduction of the L-band and changes in networking, software needs to enhance L-band management and support changes in resource model abstraction, impacting wavelength-related interface changes, resource partitioning, and label management.

[0004] The existing center wavelength frequency is encoded using a 16-bit representation, which covers the high-frequency portions of the coarse wave, C-band (frequencies 190.675 to 196.675 THz), and L-band (frequencies 184.325 to 190.875 THz). However, the current 16-bit encoding format has certain issues: First, because the integer portion of the 16-bit encoding format uses 7 bits to represent a total of 128 numbers, the integer portion cannot cover the entire C+L band. Second, the decimal portion of the 16-bit encoding method is only 2 bits, with a maximum precision of 0.25 GHz, which cannot represent frequencies on a 3.125 GHz grid. As the grid precision increases, this encoding method will become incapable of representing frequencies. Furthermore, it will not support the U-band and S-band that may be added in the future.

[0005] In the related art, the existing 16GBIT encoding method cannot cover the entire C+L band, and no effective solution has been proposed yet.

[0006] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology.

[0007] Summary of the Invention

[0008] The embodiments of the present disclosure provide a frequency encoding method, device, storage medium, and electronic device to at least solve the problem that the existing 16GBIT encoding method cannot cover all bands of the C+L band.

[0009] According to one aspect of an embodiment of the present disclosure, a frequency encoding method is provided, including: obtaining a center wavelength frequency value to be encoded; encoding the center wavelength frequency value using a target BIT representation, wherein the number of bits used in the target BIT representation is greater than 16 BITs, and the target BIT representation uses at least 7 consecutive BITs to extend the low-frequency portion of the L-band.

[0010] According to another aspect of an embodiment of the present disclosure, a frequency decoding method is provided, including: obtaining a center wavelength code value to be decoded; and decoding the center wavelength code value based on a target BIT representation, wherein the number of bits used in the target BIT representation is greater than 16 BITs, and the target BIT representation uses at least 7 consecutive BITs to extend the low-frequency portion of the L-band.

[0011] According to another aspect of an embodiment of the present disclosure, a frequency encoding device is further provided, including: a first acquisition module, used to obtain a center wavelength frequency value to be encoded; an encoding module, used to encode the center wavelength frequency value through a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0012] According to another aspect of the embodiments of the present disclosure, a frequency decoding device is further provided, including: a second acquisition module, used to obtain a center wavelength code value to be decoded; a decoding module, used to decode the center wavelength code value based on a target BIT representation, wherein the number of bits used in the target BIT representation is greater than 16 BITs, and the target BIT representation uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0013] According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the above-mentioned frequency encoding method when running.

[0014] According to another aspect of the embodiments of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the frequency coding method through the computer program.

[0015] The present disclosure obtains a center wavelength frequency value to be encoded and encodes the center wavelength frequency value using a target bit representation method, wherein the target bit representation method uses more than 16 bits and uses at least seven consecutive bits to extend the low-frequency portion of the L-band. In other words, by encoding the center wavelength frequency using a target bit representation method with more than 16 bits and at least seven consecutive bits for extending the low-frequency portion of the L-band, the technical problem of existing 16GBIT encoding methods that cannot cover the entire C+L band is resolved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation of the present disclosure. In the drawings:

[0017] FIG1 is a hardware structure block diagram of a computer terminal of a frequency encoding method according to an embodiment of the present disclosure;

[0018] FIG2 is a flow chart (I) of a frequency encoding method according to an embodiment of the present disclosure;

[0019] FIG3 is a schematic diagram of a target BIT representation method of a frequency encoding method according to an embodiment of the present disclosure;

[0020] FIG4 is a flow chart (I) of a frequency decoding method according to an embodiment of the present disclosure;

[0021] FIG5 is a flow chart (II) of a frequency encoding method according to an embodiment of the present disclosure;

[0022] FIG6 is a flowchart (II) of a frequency decoding method according to an embodiment of the present disclosure;

[0023] FIG7 is a schematic diagram of an encoding process of a frequency decoding method according to a first embodiment of the present disclosure;

[0024] FIG8 is a schematic diagram of a decoding process of a frequency decoding method according to a first embodiment of the present disclosure;

[0025] FIG9 is a schematic diagram of the encoding process of Example 2 of the frequency decoding method according to an embodiment of the present disclosure;

[0026] FIG10 is a schematic diagram of a decoding process of a second embodiment of a frequency decoding method according to an embodiment of the present disclosure;

[0027] FIG11 is a schematic diagram of the encoding process of Example 3 of the frequency decoding method according to an embodiment of the present disclosure;

[0028] FIG12 is a schematic diagram of a decoding process of a third embodiment of a frequency decoding method according to an embodiment of the present disclosure;

[0029] FIG13 is a structural block diagram of a frequency encoding device according to an embodiment of the present disclosure;

[0030] FIG14 is a structural block diagram of a frequency decoding apparatus according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present disclosure.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] The method embodiments provided in the embodiments of the present disclosure can be executed in a computer terminal or similar computing device. Taking operation on a computer terminal as an example, FIG1 is a hardware block diagram of a computer terminal for the frequency encoding method according to the embodiments of the present disclosure. As shown in FIG1 , the computer terminal may include one or more (only one is shown in FIG1 ) processors 102 (processor 102 may include, but is not limited to, a microprocessor (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 and input / output devices 108 for communication functions. Those skilled in the art will appreciate that the structure shown in FIG1 is merely illustrative and does not limit the structure of the computer terminal. For example, the computer terminal may include more or fewer components than those shown in FIG1 , or have a different configuration with equivalent functionality or more functionality than that shown in FIG1 .

[0034] The memory 104 can be used to store computer programs, such as software programs and modules of application software, such as the computer program corresponding to the frequency coding method in the embodiments of the present disclosure. The processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, thereby implementing the above-mentioned methods. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0035] The transmission device 106 is used to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a computer terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0036] FIG2 is a flow chart (I) of a frequency encoding method according to an embodiment of the present disclosure. As shown in FIG2 , the method includes the following steps:

[0037] Step S202, obtaining the center wavelength frequency value to be encoded;

[0038] Step S204 : Encode the center wavelength frequency value using a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0039] The disclosed embodiment obtains the center wavelength frequency value to be encoded through the above steps and encodes the center wavelength frequency value using a target BIT representation method, wherein the target BIT representation method uses a bit number greater than 16 bits and uses at least seven consecutive bits to extend the low-frequency portion of the L-band. In other words, by encoding the center wavelength frequency using a target BIT representation method with a bit number greater than 16 bits and at least seven consecutive bits for extending the low-frequency portion of the L-band, the technical problem of the existing 16GBIT encoding method not being able to cover the entire C+L band is resolved. This achieves the technical effect of encoding the entire C+L band.

[0040] In an exemplary embodiment, encoding the center wavelength frequency value through a target BIT representation includes: determining a frequency value to be encoded of the center wavelength frequency value based on the center wavelength frequency value and a target frequency value, wherein the target frequency value is a target frequency value selected from the center wavelength frequency values; and encoding the frequency value to be encoded through the target BIT representation.

[0041] It is understood that to facilitate encoding of the center wavelength frequency value, a target frequency value can be selected from the center wavelength frequency values, and further, the frequency value to be encoded = (center wavelength frequency value - target frequency value) * 10. Generally, the same target frequency value can be selected for center wavelength frequency values ​​belonging to the same band. For example, for the center wavelength frequency value belonging to the C band (frequency 190.9-196.675 THz), 190 can be selected as the target frequency value; for the center wavelength frequency value belonging to the L band (frequency 184.325-190.875 THz), 180 can be selected as the target frequency value; the portion of the C band that overlaps with the L band (frequency 190.675-190.875 THz) can also select 180 as the target frequency value; and for the center wavelength frequency value belonging to the S band, 195 can be selected as the target frequency value. It should be noted that the unit of the target frequency value is the same as that of the center wavelength frequency value.

[0042] In an exemplary embodiment, encoding the frequency value to be encoded using the target BIT representation includes: when the number of bits used by the target BIT representation is 32BIT, determining a rounded value of the frequency value to be encoded, and encoding the rounded value using 7 BITs from bits 0 to 6, or bits 24 to 30, in the 32BIT; and determining a difference between the frequency value to be encoded and the rounded value, and encoding the difference using 13 BITs from bits 7 to 19 of the target BIT representation.

[0043] It is understood that the target BIT representation provided in the embodiments of the present disclosure divides the frequency value to be encoded into two parts: the first part: the rounded value of the frequency value to be encoded, and the second part: the difference remaining after the rounding operation on the frequency value to be encoded. Furthermore, by encoding the frequency value to be encoded in parts, the encoding of the frequency value to be encoded can be made more accurate.

[0044] In an exemplary embodiment, the rounded value is encoded by 7 BITs of bits 0 to 6, or 7 BITs of bits 24 to 30 in the 32BIT, including: when the center wavelength frequency value belongs to the low-frequency part of the L band, the rounded value is encoded by 7 BITs of bits 24 to 30 of the 32BIT; when the center wavelength frequency value does not belong to the low-frequency part of the L band, the rounded value is encoded by 7 BITs of bits 0 to 6 of the 32BIT.

[0045] Optionally, the target BIT representation provided by the embodiment of the present disclosure includes a number of bits greater than 16 BITs. In a preferred embodiment, a target BIT representation using a bit number of 32 BITs is provided, as specifically shown in FIG3 . The rounded value can then be encoded using 7 BITs of bits 0 to 6 of the target BIT representation, or 7 BITs of bits 24 to 30 of the extended bits. Specifically, depending on the band to which the center wavelength frequency value belongs, it is determined whether the rounded value corresponding to the center wavelength frequency value is encoded into bits 0 to 6 or bits 24 to 30. In a preferred embodiment, for the center wavelength frequency value of the low-frequency part belonging to the L-band, bits 24 to 30 can be used for encoding; for the center wavelength frequency value of the low-frequency part that does not belong to the L-band, such as the C-band, the high-frequency part of the L-band, the S-band, etc., bits 0 to 6 can be used for encoding.

[0046] In an exemplary embodiment, encoding the frequency value to be encoded using the target BIT representation method includes: determining the band type to which the center wavelength frequency value belongs; when the number of bits used in the target BIT representation method is 32BIT, representing the band type using 4 BITs from the 20th to the 23rd bits of the 32BIT.

[0047] That is, the target BIT representation described in this disclosure can represent multiple bands, including but not limited to those shown in Table 1 below. The representation scheme is as follows: the band type is represented by at least four consecutive bits in the target BIT representation. Specifically, when the target BIT representation is 32-bit, the band type is represented by the four bits (bits 20 to 23) of the 32-bit representation. Furthermore, when encoded in binary format, the values ​​of bits 20 to 23 range from 0 to 15, representing 16 types of bands. The specific correspondence between codes and bands can be universally set as needed. For example, the C and L band types can be defined as 0, with bits 20 to 23 represented as 0000b, meaning that bits 20 to 23 are not encoded. This effectively indicates that the center wavelength frequency value belongs to the C and L bands by using a default value of 0. Alternatively, the S band type can be defined as 1, with bits 20 to 23 extended to 1, i.e., 0001b.

[0048] Table 1: Common bands

[0049] In an exemplary embodiment, encoding the difference by using 13 bits from the 7th to the 19th bits of the target BIT representation includes: determining a first part, a second part, and a third part corresponding to the difference, wherein the sum of the first part, the second part, and the third part is equal to the difference, the first part is greater than the target value, and the second part and the third part are both less than the target value; encoding the first part by using 4 bits from the 7th to the 10th bits included in the 13 bits from the 7th to the 19th bits, encoding the second part by using 3 bits from the 11th to the 13 bits included in the 7th to the 19th bits, and encoding the third part by using 2 bits from the 14th to the 15th bits and 4 bits from the 16th to the 19th bits included in the 13 bits from the 7th to the 19th bits.

[0050] In an exemplary embodiment, the step value groups corresponding to the 4 BITs of bits 7 to 10 include, from large to small: a first value, a second value, a third value, and a fourth value; the step value of the 3 BITs of bits 11 to 13 is a fifth value, and the fifth value is smaller than the fourth value; the step value of the 2 BITs of bits 14 to 15 is a sixth value, and the sixth value is smaller than the fifth value; the step value of the 4 BITs of bits 16 to 19 is a seventh value, and the seventh value is smaller than the sixth value.

[0051] It is understandable that the difference can be further divided into three parts for encoding. The first part is greater than the second part, and the second part is greater than the third part, wherein:

[0052] The first part is the part greater than the target value, which is encoded in bits 7 to 10. The target value is preferably 6.25. The step values ​​corresponding to bits 7 to 10 are preferably as follows: 50G for the first value, 25G for the second value, 12.5G for the third value, and 6.25G for the fourth value. The target value can be the same as the fourth value.

[0053] The second part is the integer part of the difference after the first part is encoded, which is encoded in bits 11 to 13, and the corresponding step value (fifth value) is preferably 1;

[0054] The third part is the decimal part corresponding to the remaining part after the first part of the difference is encoded, which is encoded in the 14th to 15th bits and the extended 16th to 19th bits. The corresponding step values ​​are preferably as follows: the sixth value is preferably 1 / 4, and the seventh value is preferably 1 / 64. The extended 16th to 19th bits have a more precise step value, which can make the encoding accuracy of the target BIT representation reach 1 / 64. It should be noted that in the 32BIT target BIT representation, the encoding accuracy is extended by 4 BITs from the 16th to 19th bits. In the target representation greater than 16BIT, the encoding accuracy can be extended by at least 4 BITs.

[0055] In an exemplary embodiment, the first part is encoded by 4 BITs of bits 7 to 10 included in the 13 BITs of bits 7 to 19, including: comparing the difference with the value in the step value group; setting the bit position corresponding to the first maximum value in the step value group that is less than or equal to the difference to 1; determining whether the first remainder is greater than or equal to the value in the step value group, wherein the first remainder is the remainder of the difference and the first maximum value; when the first remainder is greater than or equal to the value in the step value group, setting the bit position corresponding to the second maximum value in the step value group to 1.

[0056] In an exemplary embodiment, after setting the bit position corresponding to the second maximum value in the step value group to 1, the method further includes: when the second remainder is greater than or equal to the value in the step value group, updating the first remainder to the second remainder, wherein the second remainder is the remainder of the first remainder and the second maximum value.

[0057] It should be noted that the first remainder is regarded as the existing remainder in the entire encoding process of bits 7 to 10. In the case that the second remainder is smaller than the value in the step value group, the first remainder still needs to be updated to the second remainder.

[0058] It is understandable that the difference is encoded from bit 7 to bit 19. The encoding scheme for the difference at bits 7 to 10 is as follows 1)-3):

[0059] 1) Compare the difference value with the values ​​in the step value group (first value, second value, third value, fourth value). If the difference value is less than any of the values ​​(i.e., the first maximum value does not exist), the first part of the difference value does not exist, and the encoding stage of the second and third parts is directly entered, and the second and third parts are equal to the difference value. If the difference value is greater than at least one of the values ​​(i.e., the first maximum value exists), the bit positions corresponding to the values ​​in the step value group that are greater than the first maximum value are set to 0, and the bit positions corresponding to the first maximum value are set to 1. For example, if the difference value is greater than the second value, the 8th bit position corresponding to the second value is set to 1, and the 7th bit position before the 8th bit is set to 0; if the difference value is greater than the fourth value, the 10th bit position corresponding to the fourth value is set to 1, and the 7th to 9th bits before the 10th bit are set to 0.

[0060] 2) Calculate the first remainder of the difference between the first maximum value and the first maximum value. Continue to determine whether there is a second maximum value in the step value group that is smaller than the first remainder. If so, set the bit corresponding to the second maximum value to 1, and the bits between the first and second maximum values ​​to 0. If not, proceed to the second and third parts of the calculation. For example, if the first maximum value corresponds to bit 8 (which is already set to 1) and the second maximum value corresponds to bit 10, then set bit 10 to 1 and bit 9 between bits 8 and 10 to 0.

[0061] 3) determining a second remainder between the first remainder and the second maximum value, and updating the first remainder to the second remainder when the second remainder is greater than or equal to a value in the step value group.

[0062] For example, the above solution:

[0063] Assuming the difference is 46.875 GHz, which is less than 50 GHz (the first value), the 7th bit position is 0 and the first remainder is 46.875 GHz;

[0064] If the first remainder is greater than 25 GHz (the second value), the eighth bit position is 1 and the second remainder is 21.875 GHz.

[0065] Determining that the second remainder is greater than 12.5 GHz, updating the first remainder to the second remainder, i.e., the existing remainder is 12.5 GHz, and then the 9th bit position is 1, and the new second remainder is 9.375 GHz;

[0066] If the new second remainder is greater than 6.25 GHz, the first remainder is updated to the new second remainder, that is, the existing remainder is 6.25 GHz, and the 10th bit position is 1, and the current second remainder is 3.125 GHz;

[0067] The current second remainder is smaller than any value in the step value group, and 3.125 GHz is updated to the first remainder as the final first remainder (ie, the sum of the second and third parts to be encoded), and the encoding of bits 7 to 10 is completed.

[0068] In an exemplary embodiment, after determining whether the first remainder is greater than the numerical value in the step value group, the method further includes: when the first remainder is less than the numerical value in the step value group, continuing to encode the first remainder through 3 BITs of the 11th to 13th bits, 2 BITs of the 14th to 15th bits, and 4 BITs of the 16th to 19th bits of the target BIT representation.

[0069] In an exemplary embodiment, the first remainder is further encoded using 3 BITs at bits 11 to 13, 2 BITs at bits 14 to 15, and 4 BITs at bits 16 to 19 of the target BIT representation, including: encoding the integer part of the first remainder based on the fifth value and the 3 BITs at bits 11 to 13; encoding the decimal part of the first remainder based on the sixth value, 2 BITs at bits 14 to 15, and 4 BITs at bits 16 to 19.

[0070] For example, when the final first remainder is 3.125 GHz, the values ​​of the 11th to 13th bits are the integer part 3 of the remainder, that is, 011b; the remaining uncoded decimal part is 0.125 GHz, and according to the step value represented by the 14th to 15th bits is 1 / 4 GHz, the values ​​of the 14th to 15th bits are 0, that is, 00b, and the remainder is 0.125 GHz; according to the step value represented by the 16th to 19th bits is 1 / 64 GHz, the values ​​of the 16th to 19th bits are 8, that is, 1000b.

[0071] FIG4 is a flow chart (I) of a frequency decoding method according to an embodiment of the present disclosure. As shown in FIG4 , the method includes the following steps:

[0072] Step S402, obtaining the center wavelength code value to be decoded;

[0073] Step S404: decoding the center wavelength code value based on a target BIT representation, wherein the number of bits used by the target BIT representation is greater than 16 BITs, and the target BIT representation uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0074] The disclosed embodiment, through the aforementioned steps, obtains the center wavelength code value to be decoded; and decodes the center wavelength code value based on a target BIT representation, wherein the target BIT representation uses a bit number greater than 16 bits and employs at least seven consecutive bits to extend the low-frequency portion of the L-band. In other words, by employing a target BIT representation greater than 16 bits and employing at least seven consecutive bits to extend the low-frequency portion of the L-band to decode the center wavelength code value, the technical issue of the existing 16GBIT decoding method not being able to cover the entire C+L band is resolved. This achieves the technical effect of decoding the center wavelength code values ​​corresponding to the entire C+L band.

[0075] Next, the frequency encoding method will be further described in conjunction with the following embodiments.

[0076] To address the shortcomings of existing 16-bit encoding and decoding methods, the disclosed embodiments propose a 32-bit encoding and decoding method. Within the extended high 16-bit encoding, 7 bits are selected to address insufficient digits, and 4 bits are selected to increase decimal precision, increasing the precision from 1 / 4 to 1 / 64. The remaining bits are reserved as fields, supporting up to 16 application type codes, including those for U-band and S-band types.

[0077] Specifically, the process of converting the center wavelength frequency value into 32-bit encoding is shown in FIG5 , and the detailed encoding format is as follows:

[0078] Step S501: input the center wavelength frequency value.

[0079] Step S502: Determine the wavelength range.

[0080] Wherein, step S502 further includes:

[0081] Step S5021: For the center frequency of the C band (frequency 190.9~196.675THz), the rounded value of the frequency is calculated by the formula [(freq-190)*10] and saved to 0~6 bits, where freq is the center frequency value in THz.

[0082] Step S5022: For the high-frequency portion of the L-band (frequencies 186.9 to 190.875 THz), the frequency is rounded using the formula [(freq - 180) * 10] and stored in bits 0 to 6. The C-band portion (frequencies 190.675 to 190.875 THz) that overlaps with the L-band is also rounded using the formula [(freq - 180) * 10].

[0083] Step S5023: Extend 24 to 30 bits to represent the extended integer part, which completes the integer value that cannot be represented in the 16-bit encoding method for the L-band low frequency, that is, the integer part encoding value 43 to 68 of the L-band (frequency 184.325 to 186.9 THz).

[0084] It should be noted that, 1) in the embodiments of the present disclosure, “~” means “to”, and 2) bit is equivalent to bit position, for example, 0~6bit means bits 0 to 6.

[0085] Step S503: bit 07 (equivalent to the 7th bit in the above embodiment, and also equivalent to bit 7 in FIG5 ) is the difference between the actual wavelength and the integer represented by bits 0 to 6. If it is greater than or equal to 50 GHz, the bit is set to 1; otherwise, the bit is 0. If there is a remainder after the calculation, the calculation proceeds to the next step.

[0086] Step S504: 08 bit (equivalent to the 8th bit in the above embodiment, also equivalent to bit 8 in FIG5 ), if the remainder is greater than or equal to 25 GHz, the bit is set to 1; otherwise, the bit is 0, and if there is a remainder after the calculation, proceed to the next step;

[0087] Step S505: 09 bit (equivalent to the 9th bit in the above embodiment, also equivalent to bit 9 in FIG5 ), if the remainder is greater than or equal to 12.5 GHz, the bit is set to 1; otherwise, the bit is 0, and if there is a remainder after the calculation, proceed to the next step;

[0088] Step S506: 10 bits (equivalent to the 10th bit in the above embodiment, also equivalent to bit 10 in FIG5 ), if the remainder is greater than or equal to 6.25 GHz, the bit is set to 1; otherwise, the bit is 0, and if there is a remainder after the calculation, proceed to the next step;

[0089] Step S507: bits 11 to 13, with values ​​of 0 to 7, store the integer part of the remainder less than 6.25 GHz.

[0090] Step S508: 14 to 15 bits take values ​​of 0 to 3, and each step represents 1 / 4 GHz. In the upper 16 bits, the extended 16 to 19 bits take values ​​of 0 to 15, and each step represents 1 / 64 GHz. Therefore, the maximum accuracy after extension can be increased to 1 / 64 GHz.

[0091] Step S509: The extended bits 20 to 23 are used as the band type, with values ​​ranging from 0 to 15, representing 16 types of bands. The default value of 0 is used for the C and L bands, and the other bits 1 to 15 can be defined as the U band, S band, etc. The extended 31 bits in the 32-bit encoding are reserved and default to 0.

[0092] Furthermore, the process of converting the center wavelength frequency value into 32BIT decoding is shown in Figure 6. The detailed decoding format is as follows:

[0093] Step S601: Input the 32-bit code value of the center frequency.

[0094] Step S602: First parse the value of the extended integer part 24 to 30 bits. If the value is not 0, go to step S6041, take the value as the decoding of the integer part, and calculate the integer part value after the center frequency is multiplied by 10 according to the x / 10+180 method; if the 24 to 30 bit value is 0, go to step S603.

[0095] Step S603: Take the value of 0 to 6 bits as the encoding value of the integer part. If the encoding value is less than 69, go to step S6042 and calculate the integer value of the center frequency according to the method of x / 10+190. Otherwise, go to step S6043 and calculate according to the method of x / 10+180.

[0096] Step S604: Calculate the positive part, including the above steps S6041-S6043.

[0097] Step S605: If the value of bit 07 (equivalent to bit 7 in FIG. 6 ) is 1, the center frequency value is increased by 50 GHz.

[0098] Step S606: If the value of bit 08 (equivalent to bit 8 in FIG. 6 ) is 1, the center frequency value is increased by 25 GHz.

[0099] Step S607: If the value of bit 09 (equivalent to bit 9 in FIG. 6 ) is 1, the center frequency value is increased by 12.5 GHz.

[0100] Step S608: If the value of bit 10 (equivalent to bit 10 in FIG. 6 ) is 1, the center frequency value is increased by 6.25 GHz.

[0101] Step S609: Obtain the values ​​of bits 11 to 13, with each step length being 1 GHz, and add them to the center frequency value.

[0102] Step S610: Obtain the values ​​of bits 14 to 15, with each step being 1 / 4 GHz, and add them to the center frequency value.

[0103] Step S611: Obtain the values ​​of bits 16 to 19, with each step length being 1 / 64 GHz, and add them to the center frequency value. The remaining bits are reserved, and the decoding calculation is now complete.

[0104] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0105] Example 1: C-band center frequency 32-bit encoding and decoding

[0106] For the C-band center frequency, based on the method of the embodiment of the present disclosure, take the encoding and decoding of the 193.974375 THz frequency as an example:

[0107] Specifically, in this embodiment, the coding calculation process of the C-band 193.984375 THz frequency can be described with reference to FIG7 , and the specific steps are as follows:

[0108] Step S701: Since the center frequency is in the C band, the integer part code value 39 is obtained by calculating the value according to (freq-190)*10, that is, the value of 0 to 6 bits is 0100111b.

[0109] Step S702: after the unit conversion, the remainder is 74.375 GHz, which is greater than 50 GHz. Therefore, the 7-bit value is 1, and the remainder is 24.375 GHz.

[0110] Step S703: After step S702, if the residual value is less than 25 GHz, the 8-bit value is 0 and the residual value is still 24.375 GHz.

[0111] Step S704: After step S703, if the residual value is greater than 12.5 GHz, the 9-bit value is 1 and the residual value is 11.875 GHz.

[0112] Step S705: After step S704, if the residual value is greater than 6.25 GHz, the 10-bit value is 1 and the residual value is 5.625 GHz.

[0113] Step S706: After step S705, the remainder is 5.625 GHz, and the values ​​of bits 11 to 13 are the rounded value 5 of the remainder, that is, 101b, and the remainder is 0.625 GHz.

[0114] Step S707: After step S706, the residual value is 0.625 GHz. Since each step length represented by 14 to 15 bits is 1 / 4 GHz, the value of 14 to 15 bits is 2, that is, 10b, and the residual value is 0.125 GHz.

[0115] Step S708: After step S707, the remainder is 0.125 GHz. According to the calculation that each step length represented by 16 to 19 bits is 1 / 64 GHz, the value of 16 to 19 bits is 8, that is, 1000 bits.

[0116] Step S709: The remaining bits 20 to 23 and 31 are reserved and default to 0, and bits 24 to 30 of the extended integer part are also 0. The encoding calculation is completed, and the final calculated encoding value is 0x8AEA7.

[0117] Specifically, in this embodiment, the decoding calculation process of the coded value 0x8AEA7 in 32-bit representation can be described with reference to FIG8 , and the specific steps are as follows:

[0118] Step S801: If the value of the 24-30 bits of the extended integer part is 0, then the wavelength does not belong to the low-frequency range of the L band. The 0-6 bits are parsed to obtain a value of 39. If it is less than 69, the frequency value is restored according to the x / 10+190 method of the C band, and the value of this part is solved to be 193.9 THz.

[0119] Step S802: The 7-bit value of the frequency code is 1, and 50 GHz needs to be accumulated.

[0120] Step S803: The 8-bit value of the frequency code is 0, and there is no need to accumulate 25 GHz.

[0121] Step S804: The 9-bit value of the frequency code is 1, and 12.5 GHz needs to be accumulated.

[0122] Step S805: The 10-bit value of the frequency code is 1, and 6.25 GHz needs to be accumulated.

[0123] Step S806: The value of bits 11 to 13 of the frequency code is 5, and needs to be accumulated to 5*1 GHz.

[0124] Step S807: The value of bits 14 to 15 of the frequency code is 2, and needs to be accumulated to 2*1 / 4 GHz.

[0125] Step S808: The value of 16-19 bits of the frequency code is 8, and needs to be accumulated to 8*1 / 64GHz.

[0126] Step S809: Decoding is completed, and the accumulated frequency value is calculated to be 193.974375 THz.

[0127] Example 2: L-band center frequency 32-bit encoding and decoding

[0128] For the L-band center frequency, based on the method of the embodiment of the present disclosure, the encoding and decoding of the frequency of 184.546875 THz is taken as an example:

[0129] Specifically, in this embodiment, the coding calculation process of the L-band 184.546875 THz frequency can be described with reference to FIG9 , and the specific steps are as follows:

[0130] Step S901: Since the center frequency is in the low frequency range of the L band (frequency 184.325~186.9THz), the encoding value of the integer part is obtained according to [(freq-180)*10], that is, the value of the 24~30 bits of the extended integer part is 0101101b, and the value of 0~6 bits is 0.

[0131] Step S902: after the unit conversion, the remainder is 46.875 GHz, which is less than 50 GHz. Therefore, the 7-bit value is 0, and the remainder is 46.875 GHz.

[0132] Step S903: After step S902, if the residual value is greater than 25 GHz, the 8-bit value is 1 and the residual value is still 21.875 GHz.

[0133] Step S904: After step S903, if the residual value is greater than 12.5 GHz, the 9-bit value is 1 and the residual value is 9.375 GHz.

[0134] Step S905: After step S904, if the residual value is greater than 6.25 GHz, the 10-bit value is 1 and the residual value is 3.125 GHz.

[0135] Step S906: After step S905, the remainder is 3.125 GHz, and the values ​​of bits 11 to 13 are the rounded value 3 of the remainder, that is, 011b, and the remainder is 0.125 GHz.

[0136] Step S907: After step S906, the residual value is 0.125 GHz. Since each step length represented by bits 14 to 15 is 1 / 4 GHz, the values ​​of bits 14 to 15 are 0, that is, 00b, and the residual value is 0.125 GHz.

[0137] Step S908: After step S907, the remainder is 0.125 GHz. According to the calculation that each step length represented by 16 to 19 bits is 1 / 64 GHz, the value of 16 to 19 bits is 8, that is, 1000 bits.

[0138] Step S909: The remaining bits 20 to 23 and 31 are reserved and default to 0. The encoding calculation is completed, and the final calculated encoding value is 0x2D081F00.

[0139] Specifically, in this embodiment, the decoding calculation process of the coded value 0x2D081F00 in 32-bit representation can be described with reference to FIG10 , and the specific steps are as follows:

[0140] Step S1001: The value of the 24-30 bits of the extended integer part is 45, so the wavelength belongs to the low frequency range of the L band. The frequency value is restored according to the x / 10+180 method of the L band, and the value of this part is solved to be 184.5 THz.

[0141] Step S1002: The 7-bit value of the frequency code is 0, and 50 GHz needs to be accumulated.

[0142] Step S1003: The 8-bit value of the frequency code is 1, and there is no need to accumulate 25 GHz.

[0143] Step S1004: The 9-bit value of the frequency code is 1, and 12.5 GHz needs to be accumulated.

[0144] Step S1005: The 10-bit value of the frequency code is 1, and 6.25 GHz needs to be accumulated.

[0145] Step S1006: The value of bits 11 to 13 of the frequency code is 3, and needs to be accumulated to 3*1 GHz.

[0146] Step S1007: The values ​​of bits 14 to 15 of the frequency code are 0 and do not need to be accumulated.

[0147] Step S1008: The value of 16-19 bits of the frequency code is 8, and needs to be accumulated to 8*1 / 64GHz.

[0148] Step S1009: Decoding is completed, and the accumulated frequency value is calculated to be 184.546875 THz.

[0149] Example 3, S-band center frequency encoding

[0150] For the S-band center frequency, based on the method of the embodiment of the present disclosure, the representation can be expanded, taking the encoding and decoding of the frequency of 198.546875 THz as an example:

[0151] Specifically, in this embodiment, the coding calculation process of the S-band 198.546875 THz frequency can be described with reference to FIG11 , and the specific steps are as follows:

[0152] Step S1101: define the S-band type as 1, and fill the extended bits 20 to 23 with 1, that is, 0001b.

[0153] Step S1102: Define the integer part of the S-band type and calculate the rounded value to 35 by [(freq-195)*10]. Then the integer part 0 to 6 bits are filled with 0100011b, and the extended integer part 24 to 31 bits are filled with 0.

[0154] Step S1103: After the unit conversion, the remainder is 46.875 GHz, which is less than 50 GHz. Therefore, the 7-bit value is 0, and the remainder is 46.875 GHz.

[0155] Step S1104: After step S1103, if the residual value is greater than 25 GHz, the 8-bit value is 1 and the residual value is still 21.875 GHz.

[0156] Step S1105: After step S1104, if the residual value is greater than 12.5 GHz, the 9-bit value is 1 and the residual value is 9.375 GHz.

[0157] Step S1106: After step S1105, if the residual value is greater than 6.25 GHz, the 10-bit value is 1 and the residual value is 3.125 GHz.

[0158] Step S1107: After step S1106, the remainder is 3.125 GHz, and the values ​​of bits 11 to 13 are the rounded value 3 of the remainder, that is, 011b, and the remainder is 0.125 GHz.

[0159] Step S1108: After step S1107, the residual value is 0.125 GHz. Since each step length represented by bits 14 to 15 is 1 / 4 GHz, the values ​​of bits 14 to 15 are 0, that is, 00b, and the residual value is 0.125 GHz.

[0160] Step S1109: After step S1108, the remainder is 0.125 GHz. According to the calculation that each step length represented by 16 to 19 bits is 1 / 64 GHz, the value of 16 to 19 bits is 8, that is, 1000 bits.

[0161] Step S1110: Bit 31 is reserved and defaults to 0. The encoding calculation is completed, and the final calculated encoding value is 0x181F23.

[0162] Specifically, in this embodiment, the decoding calculation process of the coded value 0x181F23 in 32-bit representation can be described with reference to FIG12 , and the specific steps are as follows:

[0163] Step S1201: If the value of bit 20 to 23 of the band type is 1, the range of the integer part is processed according to the S band.

[0164] Step S1202: The value of the integer part 0 to 6 bits is parsed to be 35, and the frequency value is restored according to the formula x / 10+195 of the S band, and the value of this part is solved to be 198.5 THz.

[0165] Step S1203: The 7-bit value of the frequency code is 0, and 50 GHz needs to be accumulated.

[0166] Step S1204: The 8-bit value of the frequency code is 1, and there is no need to accumulate 25 GHz.

[0167] Step S1205: The 9-bit value of the frequency code is 1, and 12.5 GHz needs to be accumulated.

[0168] Step S1206: The 10-bit value of the frequency code is 1, and 6.25 GHz needs to be accumulated.

[0169] Step S1207: The value of bits 11 to 13 of the frequency code is 3, and needs to be accumulated to 3*1 GHz.

[0170] Step S1208: The values ​​of bits 14 to 15 of the frequency code are 0 and do not need to be accumulated.

[0171] Step S1209: The value of 16-19 bits of the frequency code is 8, and needs to be accumulated to 8*1 / 64GHz.

[0172] Step S1210: Decoding is completed, and the accumulated frequency value is calculated to be 198.546875 THz.

[0173] It should be noted that the present disclosure may have many other embodiments. Without departing from the spirit and essence of the present invention, technical personnel familiar with the art can make various corresponding changes and modifications based on the present disclosure, but these corresponding changes and modifications should all fall within the scope of protection of the present disclosure.

[0174] Furthermore, in optical communication systems, a unified encoding and decoding method allows accurate communication of the center frequency corresponding to the wavelength used by the optical path within and between network elements. By using the method disclosed herein, the entire grid range of the C-band and L-band can be covered, with grid accuracy up to 1 / 64 GHz. By modifying the extended reserved field, it can easily accommodate other band types that may be used in the future.

[0175] In practical projects, it's necessary to query and configure the wavelength of an optical path. The device's control layer must accurately transmit the center frequency value. The wavelength label transmission in the optical label function configuration can also use this coded representation to convey wavelength information. The disclosed method supports unified coded representation for multiple wavelength bands and can represent center frequencies with high grid precision.

[0176] In this embodiment, a frequency encoding device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments. Details that have already been described will not be repeated. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0177] FIG13 is a block diagram of a frequency encoding device according to an embodiment of the present disclosure. As shown in FIG13 , the frequency encoding device includes:

[0178] A first acquisition module 1302 is configured to acquire a center wavelength frequency value to be encoded;

[0179] The encoding module 1304 is configured to encode the center wavelength frequency value using a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0180] The disclosed embodiment uses the aforementioned module to obtain the center wavelength frequency value to be encoded; this center wavelength frequency value is then encoded using a target BIT representation method, wherein the target BIT representation method uses a bit number greater than 16 bits and employs at least seven consecutive bits to extend the low-frequency portion of the L-band. In other words, by encoding the center wavelength frequency using a target BIT representation method with a bit number greater than 16 bits and at least seven consecutive bits for extending the low-frequency portion of the L-band, the technical issue of existing 16GBIT encoding methods that cannot cover the entire C+L band is resolved. This achieves the technical effect of encoding the entire C+L band.

[0181] In an exemplary embodiment, the encoding module 1304 is further used to determine the frequency value to be encoded of the center wavelength frequency value based on the center wavelength frequency value and the target frequency value, wherein the target frequency value is a target frequency value selected from the center wavelength frequency values; and encode the frequency value to be encoded using the target BIT representation.

[0182] In an exemplary embodiment, the encoding module 1304 is further used to determine, when the number of bits used in the target BIT representation is 32 BITs, a rounded value of the frequency value to be encoded, and encode the rounded value using 7 BITs from bits 0 to 6 in the 32 BITs, or 7 BITs from bits 24 to 30; and determine a difference between the frequency value to be encoded and the rounded value, and encode the difference using 13 BITs from bits 7 to 19 of the target BIT representation.

[0183] In an exemplary embodiment, the encoding module 1304 is further used to determine the band type to which the center wavelength frequency value belongs; when the number of bits used in the target BIT representation is 32 BITs, the band type is represented by 4 BITs from the 20th to the 23rd bits of the 32 BITs.

[0184] In an exemplary embodiment, the encoding module 1304 is further used to encode the rounded value using 7 BITs of bits 24 to 30 of the 32BIT when the center wavelength frequency value belongs to the low-frequency part of the L band; and to encode the rounded value using 7 BITs of bits 0 to 6 of the 32BIT when the center wavelength frequency value does not belong to the low-frequency part of the L band.

[0185] In an exemplary embodiment, the encoding module 1304 is further used to determine the first part, the second part, and the third part corresponding to the difference, wherein the sum of the first part, the second part, and the third part is equal to the difference, the first part is greater than the target value, and the second part and the third part are both less than the target value; the first part is encoded by 4 bits of bits 7 to 10 included in the 13 bits of bits 7 to 19, the second part is encoded by 3 bits of bits 11 to 13 included in the 13 bits of bits 7 to 19, and the third part is encoded by 2 bits of bits 14 to 15 and 4 bits of bits 16 to 19 included in the 13 bits of bits 7 to 19.

[0186] In an exemplary embodiment, the step value groups corresponding to the 4 BITs of bits 7 to 10 include, from large to small: a first value, a second value, a third value, and a fourth value; the step value of the 3 BITs of bits 11 to 13 is a fifth value, and the fifth value is smaller than the fourth value; the step value of the 2 BITs of bits 14 to 15 is a sixth value, and the sixth value is smaller than the fifth value; the step value of the 4 BITs of bits 16 to 19 is a seventh value, and the seventh value is smaller than the sixth value.

[0187] In an exemplary embodiment, the encoding module 1304 is further used to compare the difference value with the numerical value in the step value group; set the bit position corresponding to the first maximum value in the step value group that is less than or equal to the difference value to 1; determine whether the first remainder is greater than or equal to the numerical value in the step value group, wherein the first remainder is the remainder of the difference value and the first maximum value; when the first remainder is greater than or equal to the numerical value in the step value group, set the bit position corresponding to the second maximum value in the step value group to 1.

[0188] In an exemplary embodiment, the encoding module 1304 is further configured to update the first remainder to the second remainder when the second remainder is greater than or equal to a value in the step value group, wherein the second remainder is the remainder of the first remainder and the second maximum value.

[0189] In an exemplary embodiment, the encoding module 1304 is further used to continue encoding the first remainder using 3 BITs of the 11th to 13th bits, 2 BITs of the 14th to 15th bits, and 4 BITs of the 16th to 19th bits of the target BIT representation when the first remainder is smaller than the value in the step value group.

[0190] In an exemplary embodiment, the encoding module 1304 is further used to encode the integer part of the first remainder based on the fifth value and the 3 BITs of the 11th to 13th bits; and to encode the decimal part of the first remainder based on the sixth value, the 2 BITs of the 14th to 15th bits, and the 4 BITs of the seventh value and the 16th to 19th bits.

[0191] FIG14 is a block diagram of a frequency decoding device according to an embodiment of the present disclosure. As shown in FIG14 , the frequency decoding device includes:

[0192] The second acquisition module 1402 is used to obtain the center wavelength code value to be decoded;

[0193] The decoding module 1404 is configured to decode the center wavelength code value based on a target BIT representation, wherein the number of bits used in the target BIT representation is greater than 16 BITs, and the target BIT representation uses at least 7 consecutive BITs to extend the low-frequency portion of the L band.

[0194] The disclosed embodiment, through the aforementioned steps, obtains the center wavelength code value to be decoded; and decodes the center wavelength code value based on a target BIT representation, wherein the target BIT representation uses a bit number greater than 16 bits and employs at least seven consecutive bits to extend the low-frequency portion of the L-band. In other words, by employing a target BIT representation greater than 16 bits and employing at least seven consecutive bits to extend the low-frequency portion of the L-band to decode the center wavelength code value, the technical issue of the existing 16GBIT decoding method not being able to cover the entire C+L band is resolved. This achieves the technical effect of decoding the center wavelength code values ​​corresponding to the entire C+L band.

[0195] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present disclosure.

[0196] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0197] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0198] An embodiment of the present disclosure further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0199] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0200] S1, obtaining the central wavelength frequency value to be encoded;

[0201] S2. Encode the center wavelength frequency value using a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0202] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0203] Optionally, in this embodiment, the electronic device may also be configured to execute step S1 through a computer program to obtain the center wavelength frequency value to be encoded; and S2 to encode the center wavelength frequency value through a target BIT representation, wherein the number of bits used by the target BIT representation is greater than 16 BITs, and the target BIT representation uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

[0204] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail here.

[0205] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.

[0206] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be included within the scope of protection of the present disclosure.

Claims

1. A frequency encoding method, comprising: Obtaining the central wavelength frequency value to be encoded; The center wavelength frequency value is encoded by a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low frequency part of the L band.

2. The frequency encoding method according to claim 1, wherein: The center wavelength frequency value is encoded by a target BIT representation, including: Determine a frequency value to be encoded of the center wavelength frequency value according to the center wavelength frequency value and a target frequency value, wherein the target frequency value is a target frequency value selected from the center wavelength frequency values; The frequency value to be encoded is encoded using the target BIT representation method.

3. The frequency encoding method according to claim 2, wherein: Encoding the frequency value to be encoded by using the target BIT representation method includes: In a case where the number of bits adopted by the target BIT representation is 32 BITs, determining a rounded value of the frequency value to be encoded, and encoding the rounded value by using 7 BITs of bits 0 to 6 or 7 BITs of bits 24 to 30 in the 32 BITs; and The difference between the frequency value to be encoded and the rounded value is determined, and the difference is encoded using 13 BITs of the 7th to 19th bits of the target BIT representation.

4. The frequency encoding method according to claim 2, wherein: Encoding the frequency value to be encoded by using the target BIT representation method includes: Determine the type of band to which the central wavelength frequency value belongs; When the number of bits used by the target BIT representation method is 32 BITs, the band type is represented by 4 BITs from the 20th to the 23rd bits of the 32 BITs.

5. The frequency encoding method according to claim 3, wherein: The rounded value is encoded by using 7 bits from bit 0 to bit 6 in the 32 bits, or 7 bits from bit 24 to bit 30, including: In the case where the center wavelength frequency value belongs to the low frequency part of the L band, the rounded value is encoded by 7 BITs of the 24th to 30th bits of the 32 BITs; In the case that the center wavelength frequency value does not belong to the low frequency part of the L band, the rounded value is encoded by 7 BITs of the 0th to 6th bits of the 32 BITs.

6. The frequency encoding method according to claim 3, wherein: The difference is encoded by 13 BITs of the 7th to 19th bits of the target BIT representation, including: Determine the first part, the second part, and the third part corresponding to the difference, wherein the sum of the first part, the second part, and the third part is equal to the difference, the first part is greater than the target value, and the sum of the second part and the third part is equal to the difference. All three parts are less than the target value; The first part is encoded by 4 BITs of bits 7 to 10 included in the 13 BITs of bits 7 to 19, the second part is encoded by 3 BITs of bits 11 to 13 included in the 13 BITs of bits 7 to 19, and the third part is encoded by 2 BITs of bits 14 to 15 and 4 BITs of bits 16 to 19 included in the 13 BITs of bits 7 to 19.

7. The frequency encoding method according to claim 6, wherein: The step value groups corresponding to the 4 BITs of bits 7 to 10 include, from large to small: a first value, a second value, a third value, and a fourth value. The step value of the 3 BITs of bits 11 to 13 is a fifth value, which is smaller than the fourth value. The step value of the 2 BITs of bits 14 to 15 is a sixth value, which is smaller than the fifth value. The step value of the 4 BITs of bits 16 to 19 is a seventh value, which is smaller than the sixth value.

8. The frequency encoding method according to claim 7, wherein: The first part is encoded by 4 BITs of bits 7 to 10 included in the 13 BITs of bits 7 to 19, including: comparing the difference value with the values ​​in the step value group; Set the bit position corresponding to the first maximum value in the step value group that is less than or equal to the difference to 1; Determine whether a first remainder is greater than or equal to a value in the step value group, wherein the first remainder is a remainder of the difference value and the first maximum value; When the first remainder is greater than or equal to a value in the step value group, the bit position corresponding to the second maximum value in the step value group is set to 1.

9. The frequency encoding method according to claim 8, wherein: After setting the bit position corresponding to the second maximum value in the step value group to 1, the method further includes: When the second remainder is greater than or equal to a value in the step value group, the first remainder is updated to the second remainder, wherein the second remainder is the remainder of the first remainder and the second maximum value.

10. The frequency encoding method according to claim 8, wherein: After determining whether the first remainder is greater than a value in the step value group, the method further includes: When the first remainder is smaller than the value in the step value group, the first remainder is further encoded by 3 BITs of the 11th to 13th bits, 2 BITs of the 14th to 15th bits, and 4 BITs of the 16th to 19th bits of the target BIT representation.

11. The frequency encoding method according to claim 10, wherein: The first remainder is further encoded by using 3 bits of the 11th to 13th bits, 2 bits of the 14th to 15th bits, and 4 bits of the 16th to 19th bits of the target BIT representation, including: Encode the integer part of the first remainder based on the fifth value and the 3 BITs of the 11th to 13th bits; Based on the sixth value, 2 BITs of the 14th to 15th bits, the seventh value, 4 BITs of the 16th to 19th bits encode the decimal part of the first remainder.

12. A frequency decoding method, comprising: Obtain the center wavelength code value to be decoded; The central wavelength code value is decoded based on a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

13. A frequency encoding device, comprising: A first acquisition module, used to acquire a central wavelength frequency value to be encoded; The encoding module is used to encode the central wavelength frequency value through a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

14. A frequency decoding device, comprising: A second acquisition module is used to acquire a central wavelength code value to be decoded; A decoding module is used to decode the central wavelength code value based on a target BIT representation method, wherein the number of bits used by the target BIT representation method is greater than 16 BITs, and the target BIT representation method uses at least 7 consecutive BITs to extend the low-frequency part of the L band.

15. A computer-readable storage medium, wherein a computer program is stored in the storage medium, wherein: The computer program is arranged to execute the method as claimed in any one of claims 1 to 12 when executed.

16. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the method according to any one of claims 1 to 12 through the computer program.

Citation Information

Patent Citations

  • Encoding method and processing method of wavelength labels and nodes for flexible grid optical network

    CN102857837A

  • Method for identifying fiber grating coding group

    CN107167872A

  • Optical signal transmission method and device, equipment and storage medium

    CN115412193A

  • Optical Network, Optical Transport System, and Optical Node Included Therein

    US20210328676A1