Frequency encoding method and apparatus, storage medium, and electronic device

CN119233408BActive Publication Date: 2026-09-04ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310810069.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2026-09-04
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

[0006]本申请实施例提供了一种频率编码方法、装置、存储介质及电子装置,以至少解决现有的16GBIT编码方法不能覆盖C+L波段的全部波段的问题

Benefits of technology

[0023]通过本申请,获取待编码的中心波长频率值;通过目标BIT表示法对所述中心波长频率值进行编码,其中,所述目标BIT表示法采用的比特数大于16BIT,所述目标BIT表示法采用至少7个连续BIT来扩展L波段的低频部分。也就是说,通过采用:比特数大于16BIT,具有至少7个连续BIT用于扩展L波段低频部分的目标BIT表示法,对中心波长频率进行编码,解决了现有的16GBIT编码方法不能覆盖C+L波段的全部波段的技术问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233408B_ABST
    Figure CN119233408B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a frequency encoding method, device, storage medium and electronic device. The method comprises: obtaining a center wavelength frequency value to be encoded; and encoding the center wavelength frequency value by 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 expand the low frequency part of the L wave band. By using the above technical solution, the problem that the existing 16GBIT encoding method in the related art cannot cover the entire C+L wave band is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more specifically, to a frequency coding method, apparatus, storage medium, and electronic device. Background Technology

[0002] With the enrichment of 400G solutions and the industry chain, 400G will begin to be widely commercialized. The increased single-wavelength transmission rate requires higher baud rates, leading to an increase in the bandwidth occupied by a single channel. 400G Phase Shift Modulation 16 Quadrature Amplitude Modulation (400GPS-16QAM) based on 90GBaud requires 100GHz bandwidth per channel, while 400GPM-QPSK based on 130GBaud requires 150GHz bandwidth per channel. Due to the increased bandwidth occupied per channel, the system's spectrum bandwidth also needs to be increased simultaneously. Currently, the C-band supports a maximum bandwidth of 6T, which can be expanded to a maximum of 12T after expansion to the L-band. Compared to the traditional C-band, the C+L band introduces the L-band. Due to the introduction of the L-band and the change in networking methods, the software needs to add L-band management and support changes in resource model abstraction, affecting wavelength-related interface changes, resource allocation, and tag management.

[0003] The existing center wavelength frequency is encoded using 16-bit representation, which can cover the high-frequency portion of the coarse wave, C-band (frequency 190.675–196.675 THz), and L-band (frequency 184.325–190.875 THz). However, the current 16-bit encoding format has certain problems: First, because the integer part of the 16-bit encoding format uses 7 bits to represent a total of 128 numbers, the integer part cannot cover the entire C+L band. Second, the fractional part of the 16-bit encoding method only has 2 bits, with a maximum precision of 0.25 GHz, which cannot represent the frequency of a 3.125 GHz grid. As grid precision increases in the future, this encoding method will be unable to represent it. In addition, it cannot support the U-band, S-band, etc., which may be added in the future.

[0004] Regarding the issue that existing 16GBIT coding methods cannot cover all bands of the C+L band, no effective solution has yet been proposed.

[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention

[0006] This application provides a frequency coding method, apparatus, storage medium, and electronic device to at least solve the problem that the existing 16GBIT coding method cannot cover all bands of the C+L band.

[0007] According to one aspect of the embodiments of this application, a frequency encoding method is provided, comprising: obtaining a center wavelength frequency value to be encoded; encoding the center wavelength frequency value by means of a target bit representation, wherein the target bit representation uses more than 16 bits, and the target bit representation uses at least 7 consecutive bits to extend the low frequency portion of the L band.

[0008] In one exemplary embodiment, encoding the center wavelength frequency value using a target BIT representation includes: determining a frequency value to be encoded for 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 value; and encoding the frequency value to be encoded using the target BIT representation.

[0009] In one exemplary embodiment, encoding the frequency value to be encoded using the target bit representation includes: when the target bit representation uses 32 bits, determining the rounded value of the frequency value to be encoded, and encoding the rounded value using 7 bits from bits 0 to 6 or 7 bits from bits 24 to 30 of the 32 bits; and determining the 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.

[0010] In an exemplary embodiment, encoding the frequency value to be encoded using the target BIT representation includes: determining the band type to which the center wavelength frequency value belongs; and, if the target BIT representation uses 32 bits, representing the band type using four bits from the 20th to the 23rd bit of the 32 bits.

[0011] In one exemplary embodiment, encoding the rounded value using 7 bits from bits 0 to 6 or 7 bits from bits 24 to 30 of the 32-bit encoding method includes: encoding the rounded value using 7 bits from bits 24 to 30 of the 32-bit encoding method when the center wavelength frequency value belongs to the low-frequency portion of the L-band; and encoding the rounded value using 7 bits from bits 0 to 6 of the 32-bit encoding method when the center wavelength frequency value does not belong to the low-frequency portion of the L-band.

[0012] In one exemplary embodiment, encoding the difference using 13 bits of the 7th to 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 using 4 bits of the 7th to 10th bits included in the 13 bits of the 7th to 19th bits, encoding the second part using 3 bits of the 11th to 13th bits included in the 13 bits of the 7th to 19th bits, and encoding the third part using 2 bits of the 14th to 15th bits and 4 bits of the 16th to 19th bits included in the 13 bits of the 7th to 19th bits.

[0013] In one exemplary embodiment, the step size value group corresponding to the 4 bits from 7 to 10 includes, in descending order: a first value, a second value, a third value, and a fourth value; the step size value of the 3 bits from 11 to 13 is a fifth value, which is less than the fourth value; the step size value of the 2 bits from 14 to 15 is a sixth value, which is less than the fifth value; and the step size value of the 4 bits from 16 to 19 is a seventh value, which is less than the sixth value.

[0014] In one exemplary embodiment, encoding the first portion using four bits from the 7th to the 10th bits out of the 13 bits from the 7th to the 19th bits includes: comparing the difference with the values ​​in the step size group; setting the bit position corresponding to the first maximum value in the step size group that is less than or equal to the difference to 1; determining whether a first remainder is greater than or equal to the values ​​in the step size group, wherein the first remainder is the remainder between the difference and the first maximum value; and if the first remainder is greater than or equal to the values ​​in the step size group, setting the bit position corresponding to the second maximum value in the step size group to 1.

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

[0016] In an exemplary embodiment, after determining whether the first remainder is greater than the value in the step value group, the method further includes: if the first remainder is less than the value in the step value group, continuing to encode 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.

[0017] In one exemplary embodiment, the first remainder is further encoded using three bits of the 11th to 13th bits, two bits of the 14th to 15th bits, and four bits of the 16th to 19th bits of the target BIT representation, including: encoding the integer part of the first remainder based on the fifth value and the three bits of the 11th to 13th bits; and encoding the fractional part of the first remainder based on the sixth value, the two bits of the 14th to 15th bits, the seventh value, and the four bits of the 16th to 19th bits.

[0018] According to another aspect of the embodiments of this application, a frequency decoding method is provided, comprising: obtaining a center wavelength encoded value to be decoded; and decoding the center wavelength encoded value based on a target bit representation, wherein the target bit representation uses more than 16 bits, and the target bit representation uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

[0019] According to another aspect of the embodiments of this application, a frequency encoding device is also provided, comprising: a first acquisition module for acquiring a center wavelength frequency value to be encoded; and an encoding module for encoding the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits, and the target bit representation uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

[0020] According to another aspect of the embodiments of this application, a frequency decoding apparatus is also provided, comprising: a second acquisition module for acquiring a center wavelength encoded value to be decoded; and a decoding module for decoding the center wavelength encoded value based on a target bit representation, wherein the target bit representation uses more than 16 bits, and the target bit representation uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

[0021] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described frequency encoding method at runtime.

[0022] According to another aspect of the embodiments of this application, an electronic device is also 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 encoding method described above through the computer program.

[0023] This application obtains the center wavelength frequency value to be encoded; it then encodes the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits and employs at least 7 consecutive bits to extend the low-frequency portion of the L-band. In other words, by using a target bit representation with more than 16 bits and at least 7 consecutive bits for extending the low-frequency portion of the L-band to encode the center wavelength frequency, the technical problem that existing 16GBIT encoding methods cannot cover the entire C+L band is solved. Attached Figure Description

[0024] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments of this application and, together with the description thereof, serve to explain this application and do not constitute an undue limitation thereof. In the drawings:

[0025] Figure 1 This is a hardware structure block diagram of a computer terminal for the frequency encoding method according to an embodiment of this application;

[0026] Figure 2 This is a flowchart (I) of a frequency encoding method according to an embodiment of this application;

[0027] Figure 3 This is a schematic diagram of the target bit representation of the frequency coding method according to an embodiment of this application;

[0028] Figure 4 This is a flowchart (a) of a frequency decoding method according to an embodiment of this application;

[0029] Figure 5 This is a flowchart (II) of the frequency encoding method according to an embodiment of this application;

[0030] Figure 6 This is a flowchart (II) of a frequency decoding method according to an embodiment of this application;

[0031] Figure 7 This is a schematic diagram of the encoding process of Embodiment 1 of the frequency decoding method according to the present application;

[0032] Figure 8 This is a schematic diagram of the decoding process of Embodiment 1 of the frequency decoding method according to the present application;

[0033] Figure 9This is a schematic diagram of the encoding process of Embodiment 2 of the frequency decoding method according to the embodiments of this application;

[0034] Figure 10 This is a schematic diagram of the decoding process in Embodiment 2 of the frequency decoding method according to the present application;

[0035] Figure 11 This is a schematic diagram of the encoding process of Embodiment 3 of the frequency decoding method according to the embodiments of this application;

[0036] Figure 12 This is a schematic diagram of the decoding process in Embodiment 3 of the frequency decoding method according to the present application;

[0037] Figure 13 This is a structural block diagram of a frequency encoding device according to an embodiment of this application;

[0038] Figure 14 This is a structural block diagram of a frequency decoding device according to an embodiment of this application. Detailed Implementation

[0039] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0040] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0041] The methods and embodiments provided in this application can be executed on a computer terminal or similar computing device. Taking running on a computer terminal as an example, Figure 1 This is a hardware structure block diagram of a computer terminal for the frequency encoding method according to an embodiment of this application. For example... Figure 1 As shown, a computer terminal may include one or more ( Figure 1Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor unit (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data are also shown. In one exemplary embodiment, the computer terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the computer terminal described above. For example, the computer terminal may also include components that are more complex than those described above. Figure 1 The more or fewer components shown, or having the same Figure 1 Equivalent functions or ratios shown Figure 1 The functions shown have more different configurations.

[0042] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the frequency encoding method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thus implementing the above-described method. 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 instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to a computer terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0043] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider for the computer terminal. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.

[0044] Figure 2 This is a flowchart (I) of a frequency encoding method according to an embodiment of this application, as follows: Figure 2 As shown, the steps of this method include:

[0045] Step S202: Obtain the center wavelength frequency value to be encoded;

[0046] Step S204: Encode the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

[0047] This application embodiment obtains the center wavelength frequency value to be encoded through the above steps; it then encodes the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits and employs at least 7 consecutive bits to extend the low-frequency portion of the L-band. In other words, by using a target bit representation with more than 16 bits and at least 7 consecutive bits for extending the low-frequency portion of the L-band to encode the center wavelength frequency, the technical problem that existing 16GBIT encoding methods cannot cover all bands of the C+L band is solved. This achieves the technical effect of encoding all bands of the C+L band.

[0048] In one exemplary embodiment, encoding the center wavelength frequency value using a target BIT representation includes: determining a frequency value to be encoded for 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 value; and encoding the frequency value to be encoded using the target BIT representation.

[0049] Understandably, to facilitate encoding the center wavelength frequency value, a target frequency value can be selected from the center wavelength frequency values. Therefore: Encoded frequency value = (Center wavelength frequency value - Target frequency value) * 10. Generally, the same target frequency value can be selected for center wavelength frequencies belonging to the same band. For example, for center wavelength frequencies belonging to the C-band (frequency 190.9–196.675 THz), 190 can be selected as the target frequency value; for center wavelength frequencies 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 use 180 as the target frequency value; for center wavelength frequencies 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 the unit of the center wavelength frequency value.

[0050] In one exemplary embodiment, encoding the frequency value to be encoded using the target bit representation includes: when the target bit representation uses 32 bits, determining the 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 of the 32 bits; and determining the 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.

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

[0052] In one exemplary embodiment, encoding the rounded value using 7 bits from bits 0 to 6 or 7 bits from bits 24 to 30 of the 32-bit encoding method includes: encoding the rounded value using 7 bits from bits 24 to 30 of the 32-bit encoding method when the center wavelength frequency value belongs to the low-frequency portion of the L-band; and encoding the rounded value using 7 bits from bits 0 to 6 of the 32-bit encoding method when the center wavelength frequency value does not belong to the low-frequency portion of the L-band.

[0053] Optionally, the target bit representation provided in this application embodiment includes more than 16 bits. In a preferred embodiment, a target bit representation using 32 bits is provided, specifically as follows: Figure 3 As shown. The rounded value can then be encoded using the 7 bits of the target BIT representation (bits 0-6) or the extended 7 bits of the 24th-30th bits. Specifically, the rounded value corresponding to the center wavelength frequency value is determined to be encoded in bits 0-6 or bits 24-30 based on the band to which the center wavelength frequency value belongs. In a preferred embodiment, for center wavelength frequency values ​​belonging to the low-frequency portion of the L-band, bits 24-30 can be used for encoding; for center wavelength frequency values ​​not belonging to the low-frequency portion of the L-band, such as C-band, the high-frequency portion of the L-band, and the S-band, bits 0-6 can be used for encoding.

[0054] In an exemplary embodiment, encoding the frequency value to be encoded using the target BIT representation includes: determining the band type to which the center wavelength frequency value belongs; and, if the target BIT representation uses 32 bits, representing the band type using four bits from the 20th to the 23rd bit of the 32 bits.

[0055] That is, the target bit representation described in this application 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 four bits from the 20th to the 23rd bit of the 32-bit representation. Furthermore, when encoding based on binary, the values ​​of the 20th to the 23rd bits are 0 to 15, which can represent 16 types of bands. The specific correspondence between the encoding and the band can be set universally as needed. For example, the C and L band types can be defined as 0, that is, the 20th to the 23rd bits are represented as 0000b, that is, the 20th to the 23rd bits are not encoded. In essence, the default value of 0 indicates that the center wavelength frequency value belongs to the C and L bands; the S band type can be defined as 1, then the extended 20th to the 23rd bits are filled with 1, that is, 0001b.

[0056] Table 1: Common Bands

[0057]

[0058]

[0059] In one exemplary embodiment, encoding the difference using 13 bits of the 7th to 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 using 4 bits of the 7th to 10th bits included in the 13 bits of the 7th to 19th bits, encoding the second part using 3 bits of the 11th to 13th bits included in the 13 bits of the 7th to 19th bits, and encoding the third part using 2 bits of the 14th to 15th bits and 4 bits of the 16th to 19th bits included in the 13 bits of the 7th to 19th bits.

[0060] In one exemplary embodiment, the step size value group corresponding to the 4 bits from 7 to 10 includes, in descending order: a first value, a second value, a third value, and a fourth value; the step size value of the 3 bits from 11 to 13 is a fifth value, which is less than the fourth value; the step size value of the 2 bits from 14 to 15 is a sixth value, which is less than the fifth value; and the step size value of the 4 bits from 16 to 19 is a seventh value, which is less than the sixth value.

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

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

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

[0064] The third part is the fractional part of the remaining portion after the first part of the difference has been encoded. This fractional part is encoded in bits 14-15 and extended bits 16-19, with preferred step sizes as follows: the sixth value is preferably 1 / 4, and the seventh value is preferably 1 / 64. Extending bits 16-19 provides a more precise step size, allowing the target bit representation to achieve an encoding precision of 1 / 64. It should be noted that in a 32-bit target bit representation, the encoding precision is extended by 4 bits from bits 16-19; in target representations larger than 16 bits, at least 4 bits can be used to extend the encoding precision.

[0065] In one exemplary embodiment, encoding the first portion using four bits from the 7th to the 10th bits out of the 13 bits from the 7th to the 19th bits includes: comparing the difference with the values ​​in the step size group; setting the bit position corresponding to the first maximum value in the step size group that is less than or equal to the difference to 1; determining whether a first remainder is greater than or equal to the values ​​in the step size group, wherein the first remainder is the remainder between the difference and the first maximum value; and if the first remainder is greater than or equal to the values ​​in the step size group, setting the bit position corresponding to the second maximum value in the step size group to 1.

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

[0067] It should be noted that the first remainder is considered as the existing remainder throughout the entire encoding process of bits 7 to 10. If the final second remainder is less than the value in the step size group, the first remainder still needs to be updated to the second remainder.

[0068] It is understood that the difference is encoded from the 7th bit to the 19th bit. The specific encoding scheme for the difference in bits 7 to 10 is as follows: 1)-3)

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

[0070] 2) Calculate the remainder between the difference and the first maximum value. Then, determine if there exists a second maximum value in the step size group that is less than the first remainder. If it exists, set the bit corresponding to the second maximum value to 1, and set the bit between the corresponding bits of the first and second maximum values ​​to 0. If it does not exist, proceed to the calculation of the second and third parts. For example: if the first maximum value corresponds to the 8th bit (already set to 1), and the second maximum value corresponds to the 10th bit, then set the 10th bit to 1, and set the 9th bit between the 8th and 10th bits to 0.

[0071] 3) Determine the second remainder between the first remainder and the second maximum value. If the second remainder is greater than or equal to the value in the step size group, update the first remainder to the second remainder.

[0072] The above solutions are illustrated with examples:

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

[0074] If the first remainder is greater than 25GHz (the second value), then the 8th bit is set to 1, and the second remainder is 21.875GHz;

[0075] If the second remainder is determined to be greater than 12.5GHz, the first remainder is updated to the second remainder, that is, the existing remainder is 12.5GHz, and the 9th bit is set to 1, and the new second remainder is 9.375GHz;

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

[0077] The current second remainder is less than any value in the step size group, so 3.125GHz is updated to the first remainder as the final first remainder (i.e., the sum of the second and third parts to be encoded), and the encoding of bits 7 to 10 ends.

[0078] In an exemplary embodiment, after determining whether the first remainder is greater than the value in the step value group, the method further includes: if the first remainder is less than the value in the step value group, continuing to encode 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.

[0079] In one exemplary embodiment, the first remainder is further encoded using three bits of the 11th to 13th bits, two bits of the 14th to 15th bits, and four bits of the 16th to 19th bits of the target BIT representation, including: encoding the integer part of the first remainder based on the fifth value and the three bits of the 11th to 13th bits; and encoding the fractional part of the first remainder based on the sixth value, the two bits of the 14th to 15th bits, the seventh value, and the four bits of the 16th to 19th bits.

[0080] For example, if the final first remainder is 3.125GHz, then the 11th to 13th bits are the integer part of the remainder, 3, i.e., 011b; then the remaining uncoded fractional part is 0.125GHz. According to the step size represented by the 14th to 15th bits, which is 1 / 4GHz, the 14th to 15th bits are 0, i.e., 00b, and the remainder is 0.125GHz; according to the step size represented by the 16th to 19th bits, which is 1 / 64GHz, the 16th to 19th bits are 8, i.e., 1000b.

[0081] Figure 4 This is a flowchart (I) of a frequency decoding method according to an embodiment of this application, as follows: Figure 4 As shown, the steps of this method include:

[0082] Step S402: Obtain the center wavelength encoding value to be decoded;

[0083] Step S404: Decode the center wavelength encoded value based on the target BIT representation, wherein the target BIT representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency part of the L-band.

[0084] This application embodiment obtains the center wavelength encoded value to be decoded through the above steps; it then decodes the center wavelength encoded value based on a target bit representation, wherein the target bit representation uses more than 16 bits and employs at least 7 consecutive bits to extend the low-frequency portion of the L-band. In other words, by using a target bit representation with more than 16 bits and at least 7 consecutive bits for extending the low-frequency portion of the L-band to decode the center wavelength encoded value, the technical problem that existing 16GBIT decoding methods cannot cover all bands of the C+L band is solved. This achieves the technical effect of decoding the center wavelength encoded values ​​corresponding to all bands of the C+L band.

[0085] The frequency coding method will be further explained below with reference to the following examples.

[0086] To address the shortcomings of existing 16-bit encoding and decoding methods, this application proposes a 32-bit encoding and decoding method. In the extended high 16-bit encoding, 7 bits are selected to solve the problem of insufficient numbers, and 4 bits are selected to increase decimal precision, improving the precision from 1 / 4 to 1 / 64. The remaining bits are reserved as a field, which can support up to 16 application type encodings, representing other U-band, S-band, and other types.

[0087] Specifically, the process of converting the center wavelength frequency value into a 32-bit code is as follows: Figure 5As shown, the detailed encoding format is as follows:

[0088] Step S501: Input the center wavelength frequency value.

[0089] Step S502: Determine the range of the band.

[0090] Step S502 further includes:

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

[0092] Step S5022: For the high-frequency portion of the L-band (frequency 186.9~190.875THz), calculate the rounded frequency value using the formula [(freq-180)*10] and save it to 0~6 bits. The portion of the C-band that overlaps with the L-band (frequency 190.675~190.875THz) is also calculated using the formula [(freq-180)*10].

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

[0094] It should be noted that, 1) in the embodiments of this application, “~” means “to”, and 2) bit is equivalent to a bit position, for example, 0~6bit means the 0th to 6th bit position.

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

[0096] Step S504: 08bit (equivalent to the 8th bit in the above embodiment, also equivalent to...) Figure 5 If the remainder is greater than or equal to 25GHz, the bit is set to 1; otherwise, the bit is set to 0. If there is still a remainder after the calculation, proceed to the next step.

[0097] Step S505: 09bit (equivalent to the 9th bit in the above embodiment, also equivalent to...) Figure 5If the remainder is greater than or equal to 12.5GHz, the bit is set to 1; otherwise, the bit is set to 0. If there is still a remainder after the calculation, proceed to the next step.

[0098] Step S506: 10 bits (equivalent to the 10th bit in the above embodiment, also equivalent to...) Figure 5 If the remainder is greater than or equal to 6.25GHz, the bit is set to 1; otherwise, the bit is set to 0. If there is still a remainder after the calculation, proceed to the next step.

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

[0100] Step S508: Bits 14 to 15 take values ​​from 0 to 3, with each step representing 1 / 4 GHz; in the high 16 bits, the extended bits 16 to 19 take values ​​from 0 to 15, with each step representing 1 / 64 GHz, so the highest precision after extension can be improved to 1 / 64 GHz.

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

[0102] Furthermore, the process of converting the center wavelength frequency value into a 32-bit decoder is as follows: Figure 6 As shown, the detailed decoding format is as follows:

[0103] Step S601: Input the 32-bit encoding value of the center frequency.

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

[0105] 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, proceed to step S6042 and calculate the integer value of the center frequency according to the method of x / 10+190. Otherwise, proceed to step S6043 and calculate according to the method of x / 10+180.

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

[0107] Step S605: If 07 bit (equivalent to Figure 6 If bit 7 in the clock is set to 1, then the center frequency value is increased by 50 GHz.

[0108] Step S606: If 08bit (equivalent to Figure 6 If bit 8 in the clock is set to 1, then the center frequency value is increased by 25 GHz.

[0109] Step S607: If 09 bit (equivalent to Figure 6 If bit 9 in the clock is set to 1, then the center frequency value is increased by 12.5 GHz.

[0110] Step S608: If 10 bits (equivalent to...) Figure 6 If bit 10 in the clock is set to 1, then the center frequency value is increased by 6.25 GHz.

[0111] Step S609: Obtain the values ​​of bits 11 to 13, with a step size of 1 GHz, and accumulate them to the center frequency value.

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

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

[0114] To make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of this application will be described in detail below with reference to the accompanying drawings.

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

[0116] For the C-band center frequency, taking the encoding and decoding of a frequency of 193.974375 THz as an example, based on the method of this application embodiment:

[0117] Specifically, in this embodiment, it can be combined with Figure 7 The coding calculation process for the C-band frequency of 193.984375 THz is explained below, with the specific steps as follows:

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

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

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

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

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

[0123] Step S706: After step S705, the remainder is 5.625GHz. Then, bits 11 to 13 are the integer value of the remainder, which is 5, i.e., 101b, and the remainder is 0.625GHz.

[0124] Step S707: After step S706, the remainder is 0.625GHz. Since each step size represented by 14-15 bits is 1 / 4GHz, the value of 14-15 bits is 2, i.e. 10b, and the remainder is 0.125GHz.

[0125] Step S708: After step S707, the remainder is 0.125GHz. Based on the calculation that each step size is 1 / 64GHz as represented by 16 to 19 bits, the value of 16 to 19 bits is 8, which is 1000b.

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

[0127] Specifically, in this embodiment, it can be combined with Figure 8 The decoding calculation process for the 32-bit encoded value 0x8AEA7 is explained below, with the specific steps as follows:

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

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

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

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

[0132] Step S805: The 10-bit value of the frequency encoding is 1, which needs to be accumulated to 6.25GHz.

[0133] Step S806: The 11th to 13th bits of the frequency encoding are 5, and need to be accumulated to 5*1GHz.

[0134] Step S807: The 14th to 15th bits of the frequency encoding are 2, and need to be accumulated by 2*1 / 4GHz.

[0135] Step S808: The 16th to 19th bits of the frequency encoding are 8, which needs to be accumulated to 8*1 / 64GHz.

[0136] Step S809: Decoding complete, the calculated cumulative frequency value is 193.974375THz.

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

[0138] For the L-band center frequency, taking the encoding and decoding of a frequency of 184.546875 THz as an example, based on the method of the embodiments of this application:

[0139] Specifically, in this embodiment, it can be combined with Figure 9 The encoding calculation process for the L-band frequency of 184.546875 THz is explained below, with specific steps as follows:

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

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

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

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

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

[0145] Step S906: After step S905, the remainder is 3.125GHz. Then, bits 11 to 13 are the integer value of the remainder, which is 3, i.e., 011b, and the remainder is 0.125GHz.

[0146] Step S907: After step S906, the remainder is 0.125GHz. Since each step size represented by bits 14 to 15 is 1 / 4GHz, the value of bits 14 to 15 is 0, i.e., 00b, and the remainder is 0.125GHz.

[0147] Step S908: After step S907, the remainder is 0.125GHz. Based on the calculation that each step size is 1 / 64GHz as represented by 16 to 19 bits, the value of 16 to 19 bits is 8, which is 1000b.

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

[0149] Specifically, in this embodiment, it can be combined with Figure 10 The decoding calculation process for the 32-bit encoded value 0x2D081F00 is explained below, with the specific steps as follows:

[0150] Step S1001: The value of the extended integer part 24 to 30 bits is 45. Therefore, 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 184.5THz.

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

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

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

[0154] Step S1005: The 10-bit value of the frequency encoding is 1, which needs to be accumulated to 6.25GHz.

[0155] Step S1006: The 11th to 13th bits of the frequency encoding are 3, and need to be accumulated to 3*1GHz.

[0156] Step S1007: The 14th to 15th bits of the frequency encoding are 0, and no accumulation is required.

[0157] Step S1008: The 16th to 19th bits of the frequency encoding are 8, and need to be accumulated to 8*1 / 64GHz.

[0158] Step S1009: Decoding complete, the calculated cumulative frequency value is 184.546875THz.

[0159] Example 3, S-band center frequency coding

[0160] For the S-band center frequency, the method based on the embodiments of this application can be extended, taking the encoding and decoding of a frequency of 198.546875THz as an example:

[0161] Specifically, in this embodiment, it can be combined with Figure 11 The coding calculation process for the S-band frequency of 198.546875 THz is explained below, with specific steps as follows:

[0162] Step S1101: Define the S-band type as 1, then fill the extended 20 to 23 bits with 1, i.e., 0001b.

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

[0164] Step S1103: The remainder value after unit conversion is 46.875GHz, which is less than 50GHz, so the 7-bit value is 0 and the remainder value is 46.875GHz.

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

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

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

[0168] Step S1107: After step S1106, the remainder is 3.125GHz. Therefore, bits 11 to 13 are the integer value of the remainder, which is 3, i.e., 011b, and the remainder is 0.125GHz.

[0169] Step S1108: After step S1107, the remainder is 0.125GHz. Since each step size represented by bits 14 to 15 is 1 / 4GHz, the value of bits 14 to 15 is 0, i.e., 00b, and the remainder is 0.125GHz.

[0170] Step S1109: After step S1108, the remainder is 0.125GHz. Based on the calculation that each step size is 1 / 64GHz as represented by 16 to 19 bits, the value of 16 to 19 bits is 8, which is 1000b.

[0171] Step S1110: 31 bits are reserved, defaulting to 0. The encoding calculation is complete, and the final calculated encoding value is 0x181F23.

[0172] Specifically, in this embodiment, it can be combined with Figure 12 The decoding calculation process for the 32-bit encoded value 0x181F23 is explained below, with the specific steps as follows:

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

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

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

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

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

[0178] Step S1206: The 10-bit value of the frequency encoding is 1, which needs to be accumulated to 6.25GHz.

[0179] Step S1207: The 11th to 13th bits of the frequency encoding are 3, and need to be accumulated to 3*1GHz.

[0180] Step S1208: The 14th to 15th bits of the frequency encoding are 0, and no accumulation is required.

[0181] Step S1209: The 16th to 19th bits of the frequency encoding are 8, and need to be accumulated to 8*1 / 64GHz.

[0182] Step S1210: Decoding complete, the calculated cumulative frequency value is 198.546875THz.

[0183] It should be noted that this application may have other various embodiments. Without departing from the spirit and essence of this invention, those skilled in the art can make various corresponding changes and modifications based on this application, but these corresponding changes and modifications should all fall within the protection scope of this application.

[0184] Furthermore, in optical communication systems, through a unified encoding and decoding method, the center frequency value corresponding to the wavelength used in the optical path can be accurately transmitted within and between network elements of each device. By using the method in this application, the entire grid range of C-band and L-band can be covered, and the grid accuracy can reach up to 1 / 64 GHz. Moreover, by modifying the extended reserved fields, it can easily accommodate other band types that may be used in the future.

[0185] In practical engineering, it is necessary to query and configure the wavelength of the optical path. The control layer of the equipment needs to accurately transmit the center frequency value. The wavelength tag transmission in the optical tag function configuration can also use this encoding to transmit wavelength information. The method of this application supports unified encoding representation for multiple bands and can support the representation of center frequencies with high grid precision.

[0186] This embodiment also provides a frequency encoding device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, hardware implementations, or a combination of software and hardware, are also possible and contemplated.

[0187] Figure 13 This is a structural block diagram of a frequency encoding apparatus according to an embodiment of this application. Figure 13 As shown, the frequency encoding device includes:

[0188] The first acquisition module 1302 is used to acquire the center wavelength frequency value to be encoded;

[0189] The encoding module 1304 is used to encode the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

[0190] This application embodiment obtains the center wavelength frequency value to be encoded using the aforementioned modules; it then encodes the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits and employs at least 7 consecutive bits to extend the low-frequency portion of the L-band. In other words, by using a target bit representation with more than 16 bits and at least 7 consecutive bits for extending the low-frequency portion of the L-band to encode the center wavelength frequency, the technical problem that existing 16GBIT encoding methods cannot cover all bands of the C+L band is solved. This achieves the technical effect of encoding all bands of the C+L band.

[0191] In an exemplary embodiment, the encoding module 1304 is further configured to determine a frequency value to be encoded for 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 value; and to encode the frequency value to be encoded using the target BIT representation.

[0192] In an exemplary embodiment, the encoding module 1304 is further configured to, when the target bit representation uses 32 bits, determine the rounded value of the frequency value to be encoded, and encode the rounded value using 7 bits of bits 0 to 6 or 7 bits of bits 24 to 30 in the 32 bits; and determine the difference between the frequency value to be encoded and the rounded value, and encode the difference using 13 bits of bits 7 to 19 in the target bit representation.

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

[0194] In one exemplary embodiment, the encoding module 1304 is further configured to encode the rounded value using 7 bits of the 24th to 30th bits of the 32-bit encoding module when the center wavelength frequency value belongs to the low-frequency portion of the L-band; and to encode the rounded value using 7 bits of the 0th to 6th bits of the 32-bit encoding module when the center wavelength frequency value does not belong to the low-frequency portion of the L-band.

[0195] In an exemplary embodiment, the encoding module 1304 is further configured to determine 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 a target value, and the second part and the third part are both less than the target value; the first part is encoded using 4 bits from the 7th to the 10th bits of the 13 bits from the 7th to the 19th bits, the second part is encoded using 3 bits from the 11th to the 13 bits from the 7th to the 19th bits, and the third part is encoded using 2 bits from the 14th to the 15th bits and 4 bits from the 16th to the 19th bits.

[0196] In one exemplary embodiment, the step size value group corresponding to the 4 bits from 7 to 10 includes, in descending order: a first value, a second value, a third value, and a fourth value; the step size value of the 3 bits from 11 to 13 is a fifth value, which is less than the fourth value; the step size value of the 2 bits from 14 to 15 is a sixth value, which is less than the fifth value; and the step size value of the 4 bits from 16 to 19 is a seventh value, which is less than the sixth value.

[0197] In an exemplary embodiment, the encoding module 1304 is further configured to compare the difference with the values ​​in the step size group; set the bit position corresponding to the first maximum value in the step size group that is less than or equal to the difference to 1; determine whether the first remainder is greater than or equal to the values ​​in the step size group, wherein the first remainder is the remainder between the difference and the first maximum value; and if the first remainder is greater than or equal to the values ​​in the step size group, set the bit position corresponding to the second maximum value in the step size group to 1.

[0198] 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 the value in the step value group, wherein the second remainder is the remainder of the first remainder and the second maximum value.

[0199] In an exemplary embodiment, the encoding module 1304 is further configured to continue encoding the first remainder 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 when the first remainder is less than the value in the step value group.

[0200] In one exemplary embodiment, the encoding module 1304 is further configured to encode the integer part of the first remainder based on the fifth value and the three bits of the 11th to 13th bits; and to encode the fractional part of the first remainder based on the sixth value, the two bits of the 14th to 15th bits, the seventh value, and the four bits of the 16th to 19th bits.

[0201] Figure 14 This is a structural block diagram of a frequency decoding apparatus according to an embodiment of this application. Figure 14 As shown, the frequency decoding device includes:

[0202] The second acquisition module 1402 is used to acquire the center wavelength encoded value to be decoded;

[0203] The decoding module 1404 is used to decode the center wavelength encoded value based on the target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low frequency part of the L band.

[0204] This application embodiment obtains the center wavelength encoded value to be decoded through the above steps; it then decodes the center wavelength encoded value based on a target bit representation, wherein the target bit representation uses more than 16 bits and employs at least 7 consecutive bits to extend the low-frequency portion of the L-band. In other words, by using a target bit representation with more than 16 bits and at least 7 consecutive bits for extending the low-frequency portion of the L-band to decode the center wavelength encoded value, the technical problem that existing 16GBIT decoding methods cannot cover all bands of the C+L band is solved. This achieves the technical effect of decoding the center wavelength encoded values ​​corresponding to all bands of the C+L band.

[0205] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0206] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0207] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0208] Embodiments of this application also provide 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.

[0209] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0210] S1, Obtain the center wavelength frequency value to be encoded;

[0211] S2, the center wavelength frequency value is encoded using a target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

[0212] In one 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.

[0213] Optionally, in this embodiment, the electronic device may also be configured to execute the above steps S1 through a computer program to obtain the center wavelength frequency value to be encoded; S2, to encode the center wavelength frequency value through a target bit representation, wherein the target bit representation uses more than 16 bits, and the target bit representation uses at least 7 consecutive bits to extend the low frequency part of the L band.

[0214] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0215] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0216] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.

Claims

1. A frequency coding method, characterized in that, include: Obtain the center wavelength frequency value to be encoded; The center wavelength frequency value is encoded using a target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

2. The frequency coding method according to claim 1, characterized in that, Encoding the center wavelength frequency value using the target bit representation includes: The center wavelength frequency value is determined to be encoded 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 value; The frequency value to be encoded is encoded using the target BIT representation.

3. The frequency coding method according to claim 2, characterized in that, Encoding the frequency value to be encoded using the target bit representation includes: When the target bit representation uses 32 bits, the rounded value of the frequency value to be encoded is determined, and the rounded value is encoded using 7 bits from bits 0 to 6, or 7 bits from bits 24 to 30 of the 32-bit representation; 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 coding method according to claim 2, characterized in that, Encoding the frequency value to be encoded using the target bit representation includes: Determine the band type to which the center wavelength frequency value belongs; When the target bit representation uses 32 bits, the band type is represented by the 4 bits from the 20th to the 23rd bit of the 32 bits.

5. The frequency coding method according to claim 3, characterized in that, The rounded value is encoded using 7 bits from bits 0 to 6 of the 32-bit array, or 7 bits from bits 24 to 30, including: When the center wavelength frequency value belongs to the low frequency part of the L band, the rounded value is encoded by the 7 bits of the 24th to 30th bits of the 32-bit encoding. If the center wavelength frequency value does not belong to the low frequency part of the L band, the rounded value is encoded by the 7 bits of the 0th to 6th bits of the 32-bit encoding.

6. The frequency coding method according to claim 3, characterized in that, The difference is encoded using 13 bits from bits 7 to 19 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 second part and the third part are both less than the target value; The first part is encoded using 4 bits from bits 7 to 10 of the 13 bits from bits 7 to 19, the second part is encoded using 3 bits from bits 11 to 13 of the 13 bits from bits 7 to 19, and the third part is encoded using 2 bits from bits 14 to 15 and 4 bits from bits 16 to 19 of the 13 bits from bits 7 to 19.

7. The frequency coding method according to claim 6, characterized in that, The step size value group corresponding to the 4 bits from 7 to 10 includes, in descending order: first value, second value, third value, and fourth value; the step size value of the 3 bits from 11 to 13 is the fifth value, which is less than the fourth value; the step size value of the 2 bits from 14 to 15 is the sixth value, which is less than the fifth value; and the step size value of the 4 bits from 16 to 19 is the seventh value, which is less than the sixth value.

8. The frequency coding method according to claim 7, characterized in that, The first portion is encoded using four bits from bits 7 to 10, which are included in the 13 bits from bits 7 to 19. Compare the difference with the values ​​in the step size group; Set the bit position corresponding to the first maximum value in the step size group that is less than or equal to the difference to 1; Determine whether the first remainder is greater than or equal to the value in the step size value group, wherein the first remainder is the remainder between the difference and the first maximum value; If the first remainder is greater than or equal to the value in the step size group, the bit position corresponding to the second maximum value in the step size group is set to 1.

9. The frequency coding method according to claim 8, characterized in that, After setting the bit corresponding to the second maximum value in the step size group to 1, the method further includes: If the second remainder is greater than or equal to the value in the step size group, the first remainder is updated to the second remainder, wherein the second remainder is the remainder between the first remainder and the second maximum value.

10. The frequency coding method according to claim 8, characterized in that, After determining whether the first remainder is greater than the value in the step size value group, the method further includes: If the first remainder is less than the value in the step size group, the first remainder is further encoded using the 3 bits of the 11th to 13th bits, the 2 bits of the 14th to 15th bits, and the 4 bits of the 16th to 19th bits of the target BIT representation.

11. The frequency coding method according to claim 10, characterized in that, The first remainder is further encoded using the 3 bits from bits 11 to 13, the 2 bits from bits 14 to 15, and the 4 bits from bits 16 to 19 of the target bit representation, including: The integer part of the first remainder is encoded based on the fifth value and the three bits of the 11th to 13th bits; Based on the sixth value, the two bits of bits 14 to 15, the seventh value, the four bits of bits 16 to 19, encodes the fractional part of the first remainder.

12. A frequency decoding method, characterized in that, include: Obtain the center wavelength encoded value to be decoded; The center wavelength encoded value is decoded based on the target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency part of the L-band.

13. A frequency encoding device, characterized in that, include: The first acquisition module is used to acquire the center wavelength frequency value to be encoded; An encoding module is used to encode the center wavelength frequency value using a target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency portion of the L-band.

14. A frequency decoding device, characterized in that, include: The second acquisition module is used to acquire the center wavelength encoded value to be decoded; A decoding module is used to decode the center wavelength encoded value based on the target bit representation, wherein the target bit representation uses more than 16 bits and uses at least 7 consecutive bits to extend the low-frequency part of the L-band.

15. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 12 when it is run.

16. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a computer program and the processor is configured to perform the method described in any one of claims 1 to 12 via the computer program.

Citation Information

Patent Citations

  • Wavelength label transmission method and device

    CN102624479A

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

    CN102857837A