Communication method, apparatus and system

CN122534631APending Publication Date: 2026-08-07HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-11-30
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0005]但是,目前第二节点在根据第一节点的指示调整上行信道时,信道调整的误差较大

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122534631A_ABST
    Figure CN122534631A_ABST
Patent Text Reader

Abstract

The application discloses a communication method, device and system, and belongs to the technical field of communication. The method comprises the following steps: after a target second node receives a channel indication sent by a first node and comprising the identification of a plurality of uplink channels, the target second node sequentially performs a plurality of setting operations corresponding to the uplink channels. One setting operation corresponding to one uplink channel comprises the following steps: after the target second node sets a first uplink channel as one uplink channel, the target second node sends a first uplink test signal to the first node, and receives a similarity indication sent by the first node; when the similarity indication indicates that the similarity between the first uplink channel and one uplink channel is less than a first similarity threshold, the target second node adjusts the first uplink channel, and repeatedly performs the operation of sending the first uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and one uplink channel is greater than or equal to the first similarity threshold. The application can reduce the error of channel adjustment, and the application is used for the adjustment of channels.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202111441459.1 and the original application date is November 30, 2021. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of communications, and in particular to a communication method, apparatus and system. Background Technology

[0003] In the field of communications, point-to-multipoint communication connections are common. For example, a first node may be connected to multiple second nodes, and the first node may be able to communicate with all of the second nodes.

[0004] To differentiate between multiple second nodes, the communication resources between the first node and the multiple second nodes are typically divided into multiple channels, with each second node communicating with the first node on a different channel. Furthermore, the first node can instruct the second nodes to adjust the uplink channel from the second node to the first node.

[0005] However, currently, when the second node adjusts the uplink channel according to the instructions of the first node, the channel adjustment error is relatively large. Summary of the Invention

[0006] This application provides a communication method, apparatus, and system that can solve the problem of large channel adjustment errors. The technical solution is as follows: In a first aspect, a communication method is provided, which is executed by a target second node connected to a first node. The first node is connected to multiple second nodes, and the target second node is one of the multiple second nodes. The method includes: after receiving a channel indication sent by the first node, the target second node sequentially executes the setting operations corresponding to the multiple uplink channels according to the identifiers of the multiple uplink channels in the channel indication.

[0007] The uplink channel is the channel from the second node to the first node. The setting operation for one of the multiple uplink channels includes: the target second node first sets the first uplink channel from the target second node to the first node as the one uplink channel; then, the target second node sends a first uplink test signal to the first node on the first uplink channel and receives a similarity indication sent by the first node according to the first uplink test signal, wherein the similarity indication is used to indicate whether the similarity between the first uplink channel and an uplink channel is less than a first similarity threshold; when the similarity between the first uplink channel and an uplink channel is less than the first similarity threshold, the target second node adjusts the first uplink channel and repeats the operation of sending the first uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and the one uplink channel is greater than or equal to the first similarity threshold.

[0008] In the communication method provided in this application embodiment, a first node can send a channel indication including identifiers of multiple uplink channels to a target second node. This allows the target second node to sequentially set a first uplink channel as one of the multiple uplink channels based on these identifiers, ultimately setting the first uplink channel as the working uplink channel among the multiple uplink channels. Compared to related technologies where the first node instructs the target second node to set the first uplink channel as the working uplink channel, the target second node in this application embodiment can gradually set the first uplink channel as the working uplink channel with less error. Therefore, it avoids the problem of large channel adjustment errors caused by the target second node setting the first uplink channel as the working uplink channel all at once.

[0009] Furthermore, after setting the first uplink channel as each of the multiple uplink channels, the target second node can also send a first uplink test signal to the first node on the first uplink channel, and receive a similarity indication sent by the first node. Based on the similarity indication, it can determine whether the first uplink channel needs adjustment to ensure that the target second node can accurately set the first uplink channel as each of the multiple uplink channels. In this way, after sequentially setting the first uplink channel as the multiple uplink channels, the target second node can achieve a relatively accurate setting of the first uplink channel as the working uplink channel among the multiple uplink channels. Because the target second node can accurately set the first uplink channel as the working uplink channel, it does not need to use a wavelength etalon.

[0010] Optionally, the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially. When the target second node performs the setting operations corresponding to the plurality of uplink channels sequentially according to the identifiers of the plurality of uplink channels, it can perform the setting operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. It can be seen that the channel indication can not only indicate the plurality of uplink channels through the identifiers of the plurality of uplink channels, but also indicate the order in which the target second node performs the setting operations corresponding to the plurality of uplink channels sequentially through the arrangement order of the identifiers of the plurality of uplink channels. Of course, the identifiers of the plurality of uplink channels may not be arranged sequentially, and this application does not limit this.

[0011] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the target second node can adjust the first uplink channel based on the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite direction of the first frequency offset direction. In this case, the target second node can adjust the first uplink channel based on the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0012] Optionally, the plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. These plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes; this application does not limit this. Furthermore, since these plurality of uplink channels are all idle, the target second node setting the first uplink channel to these plurality of uplink channels sequentially will not affect the communication between other second nodes and the first node. Of course, these plurality of uplink channels can also be partially idle uplink channels; this application does not limit this.

[0013] Optionally, before receiving the channel indication sent by the first node, the target second node may also set the first downlink channel from the first node to the target second node as a common downlink channel. The target second node can receive the channel indication sent by the first node on the first downlink channel. The common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node. Since the common downlink channel is idle, the channel indication will not affect the communication between other second nodes and the first node. Of course, the target second node may also choose not to receive the channel indication on the common downlink channel; this application does not limit this.

[0014] Optionally, before receiving the channel indication sent by the first node, the target second node can set the first uplink channel as a common uplink channel, where the common uplink channel is an idle uplink channel between the first node and the plurality of second nodes. After setting the first downlink channel from the first node to the target second node as a common downlink channel, the target second node can send a setting indication to the first node on the first uplink channel; the setting indication is used to indicate that the first downlink channel has been set as the common downlink channel. After receiving the setting indication sent by the target second node, the first node can determine that it has set the first downlink channel as a common downlink channel and the first uplink channel as a common uplink channel. At this time, the first node and the target second node can communicate through the common uplink channel and the common downlink channel to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel.

[0015] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. In this case, the first node can first determine the idle uplink channels between the first node and the multiple second nodes, excluding the common uplink channel, and then determine the aforementioned multiple uplink channels from these idle uplink channels. Since the multiple uplink channels do not include the common uplink channel, when the target second node sequentially sets the first uplink channel to the multiple uplink channels, the common uplink channel can be in an idle state. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include the common uplink channel, and this embodiment of the application does not limit this.

[0016] Optionally, the common downlink channel and the common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel can include the channel among the downlink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel can include the channel among the uplink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can more easily adjust the first downlink channel to the common downlink channel and more easily adjust the first uplink channel to the common uplink channel.

[0017] In the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different. For example, at least one parameter of the time slot, signal frequency band, or signal wavelength may be different for different channels. Optionally, in the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands; the downlink channel is the channel from the first node to the second node.

[0018] When at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, since the target second node can adjust the first uplink and first downlink channels relatively accurately, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Because it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers applicable to both the first and second nodes.

[0019] Secondly, a communication method is provided, which is executed by a first node connected to a plurality of second nodes. The method includes: after sending a channel indication to a target second node, the first node sequentially performs detection operations corresponding to the plurality of uplink channels according to the identifiers of the multiple uplink channels in the channel indication. The target second node is one of the plurality of second nodes; the uplink channel is a channel from the second node to the first node.

[0020] The detection operation for one uplink channel among the plurality of uplink channels includes: a first node receiving a first uplink test signal sent by the target second node on the uplink channel, and sending a similarity indication to the target second node according to the first uplink test signal, the similarity indication being used to indicate whether the similarity between the first uplink channel and the channel is less than a first similarity threshold; thereafter, when the similarity between the first uplink channel and the channel is less than the first similarity threshold, the first node repeats the operation of receiving the first uplink test signal and sending the similarity indication until the similarity between the first uplink channel and the channel is greater than or equal to the first similarity threshold.

[0021] It should be noted that when the similarity indicator is used to indicate that the similarity between the first uplink channel and the channel is less than the first similarity threshold, the target second node will repeatedly perform the operation of sending the first uplink test signal to the first node. Therefore, the first node will repeatedly perform the operation of receiving the first uplink test signal and sending the similarity indicator to the target second node.

[0022] Optionally, the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially. When the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially, the target second node, when performing the setting operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels, can perform the setting operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. Correspondingly, when the first node, when performing the detection operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels, can perform the detection operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. It can be seen that the channel indication can not only indicate the plurality of uplink channels through the identifiers of the plurality of uplink channels, but also indicate the order in which the target second node performs the setting operations corresponding to the plurality of uplink channels through the arrangement order of the identifiers of the plurality of uplink channels. Of course, the identifiers of the plurality of uplink channels may not be arranged sequentially, and this application does not limit this.

[0023] After receiving a first uplink test signal from the target second node on an uplink channel, the first node can determine the similarity between the first uplink channel and the target uplink channel based on the first uplink test signal, and determine whether the similarity is less than a first similarity threshold. Then, the first node can send a similarity indication to the target second node on the current first downlink channel (such as a common downlink channel) to indicate the result of the determination. There are various ways for the first node to determine whether the similarity between the first uplink channel and the target uplink channel is less than the first similarity threshold based on the first uplink test signal, and this application embodiment does not limit this method.

[0024] For example, the first node can obtain a first frequency offset based on a first uplink test signal, such as by performing signal processing (e.g., analog signal processing and / or digital signal processing) on ​​the first uplink test signal. Then, if the absolute value of the first frequency offset is less than or equal to a first absolute value threshold, the first node can determine that the similarity between the first uplink channel and that particular uplink channel is greater than or equal to a first similarity threshold; if the absolute value of the first frequency offset is greater than the first absolute value threshold, the first node can determine that the similarity between the first uplink channel and that particular uplink channel is less than the first similarity threshold.

[0025] For example, the first node can input the first uplink test signal into the first machine learning model and receive the result of whether the similarity between the first uplink channel and the first uplink channel output by the first machine learning model is less than a first similarity threshold.

[0026] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the target second node can adjust the first uplink channel based on the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite direction of the first frequency offset direction. In this case, the target second node can adjust the first uplink channel based on the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0027] Optionally, the plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. These plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes; this application does not limit this. Furthermore, since these plurality of uplink channels are all idle, the target second node setting the first uplink channel to these plurality of uplink channels sequentially will not affect the communication between other second nodes and the first node. Of course, these plurality of uplink channels can also be partially idle uplink channels; this application does not limit this.

[0028] Optionally, before receiving the channel indication sent by the first node, the target second node may also set the first downlink channel from the first node to the target second node as a common downlink channel. The target second node can receive the channel indication sent by the first node on the first downlink channel. The common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node. Since the common downlink channel is idle, the channel indication will not affect the communication between other second nodes and the first node. Of course, the target second node may also choose not to receive the channel indication on the common downlink channel; this application does not limit this.

[0029] Optionally, before the first node sends a channel indication to the target second node, the target second node can set the first uplink channel as a common uplink channel, where the common uplink channel is an idle uplink channel between the first node and the plurality of second nodes. After setting the first downlink channel from the first node to the target second node as a common downlink channel, the target second node can send a setting indication to the first node on the first uplink channel; the setting indication is used to indicate that the first downlink channel has been set as the common downlink channel. After receiving the setting indication sent by the target second node, the first node can determine that it has set both the first downlink channel and the first uplink channel as common uplink channels. At this time, the first node and the target second node can communicate through the common uplink channel and the common downlink channel to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel.

[0030] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. Since the multiple uplink channels do not include a common uplink channel, when the target second node sequentially sets the first uplink channel to these multiple uplink channels, the common uplink channel can be idle. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include a common uplink channel; this embodiment does not limit this.

[0031] Optionally, the common downlink channel and the common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel can include the channel among the downlink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel can include the channel among the uplink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can more easily adjust the first downlink channel to the common downlink channel and more easily adjust the first uplink channel to the common uplink channel.

[0032] In the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different. For example, at least one parameter of the time slot, signal frequency band, or signal wavelength may be different for different channels. Optionally, in the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands; the downlink channel is the channel from the first node to the second node.

[0033] When at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, since the target second node can adjust the first uplink and first downlink channels relatively accurately, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Because it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers applicable to both the first and second nodes.

[0034] Furthermore, the first node can receive and transmit signals of one or more wavelengths. On one hand, when the first node is capable of receiving and transmitting signals of one wavelength, it may include a transceiver (such as an optical module) for receiving and transmitting signals of that wavelength. On the other hand, when the first node is capable of receiving and transmitting signals of multiple wavelengths (such as two, four, or eight), it may include multiple transceivers, each corresponding to one of the multiple wavelengths, with each transceiver used to receive and transmit signals of the corresponding wavelength.

[0035] Thirdly, a communication device is provided, wherein the communication device is a target second node connected to a first node, the first node is connected to a plurality of second nodes, and the target second node is one of the plurality of second nodes. The communication device includes: a receiving module and a first setting module. The receiving module is used to receive a channel indication sent by the first node; wherein the channel indication includes: identifiers of a plurality of uplink channels between the first node and the plurality of second nodes; the uplink channels are channels from the second node to the first node; the first setting module is used to sequentially execute setting operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels.

[0036] The setting operation for one uplink channel among the plurality of uplink channels includes: setting the first uplink channel from the target second node to the first node as the one uplink channel, then sending a first uplink test signal to the first node on the first uplink channel; then receiving a similarity indication sent by the first node according to the first uplink test signal, the similarity indication being used to indicate whether the similarity between the first uplink channel and the one uplink channel is less than a first similarity threshold; when the similarity between the first uplink channel and the one uplink channel is less than the first similarity threshold, adjusting the first uplink channel, and repeating the operation of sending the first uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and the one uplink channel is greater than or equal to the first similarity threshold.

[0037] In the communication device provided in this application embodiment, the receiving module can receive a channel indication sent by a first node, including identifiers of multiple uplink channels. This allows the first setting module to sequentially set the first uplink channel to the multiple uplink channels according to their identifiers, ultimately setting the first uplink channel as the working uplink channel among the multiple uplink channels. Compared to related technologies where the first node instructs the target second node to set the first uplink channel as the working uplink channel, the target second node in this application embodiment can gradually set the first uplink channel as the working uplink channel with less error. Therefore, it avoids the problem of large channel adjustment errors caused by the target second node setting the first uplink channel as the working uplink channel all at once.

[0038] Furthermore, after setting the first uplink channel to each of the multiple uplink channels, the first setting module can also send a first uplink test signal to the first node on the first uplink channel, and receive a similarity indication sent by the first node. Based on the similarity indication, it determines whether the first uplink channel needs adjustment to ensure that the target second node can accurately set the first uplink channel to each of the multiple uplink channels. In this way, after the target second node sequentially sets the first uplink channel to the multiple uplink channels, it can achieve a relatively accurate setting of the first uplink channel as the working uplink channel among the multiple uplink channels.

[0039] As can be seen from the above, in this embodiment of the application, when the target second node adjusts the first uplink channel from one channel to another, it only needs to ensure that the similarity between the adjusted first uplink channel and the other channel is less than a certain similarity threshold. Furthermore, when the similarity threshold is less than one, it is not necessary to ensure that the two channels are completely identical. Therefore, the target second node does not need to use a wavelength etalon, which is used to ensure that the center wavelength of the adjusted first uplink channel is completely consistent with the center wavelength of the other channel.

[0040] Optionally, the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially. When the first setting module performs setting operations corresponding to the plurality of uplink channels sequentially according to the identifiers of the plurality of uplink channels, it can perform the setting operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. It can be seen that the channel indication can not only indicate the plurality of uplink channels through the identifiers of the plurality of uplink channels, but also indicate the order in which the target second node performs the setting operations corresponding to the plurality of uplink channels sequentially through the arrangement order of the identifiers of the plurality of uplink channels. Of course, the identifiers of the plurality of uplink channels may not be arranged sequentially, and this application does not limit this.

[0041] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the first setting module can adjust the first uplink channel according to the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the first setting module can adjust the first uplink channel according to the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may indicate the opposite of the first frequency offset. In this case, the first setting module can adjust the first uplink channel according to the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may indicate the opposite direction of the first frequency offset direction. In this case, the first setting module can adjust the first uplink channel according to the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0042] Optionally, the plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. These plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes; this application does not limit this. Furthermore, since these plurality of uplink channels are all idle, the first setting module sequentially setting the first uplink channel to these plurality of uplink channels will not affect the communication between other second nodes and the first node. Of course, these plurality of uplink channels can also be partially idle uplink channels; this application does not limit this.

[0043] Optionally, the communication device further includes a second setting module. This first setting module is used to set a first downlink channel from the first node to the target second node as a common downlink channel. The common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node. The receiving module is used to receive the channel indication sent by the first node on the first downlink channel. Since the common downlink channel is an idle channel, the channel indication will not affect the communication between other second nodes and the first node. Of course, the target second node may also choose not to receive the channel indication on the common downlink channel; this application does not limit this.

[0044] Optionally, the communication device further includes a third setting module and a sending module. The third setting module is used to set the first uplink channel as a common uplink channel, wherein the common uplink channel is an idle uplink channel between the first node and the plurality of second nodes. The sending module is used to send a setting instruction to the first node on the first uplink channel after setting the first downlink channel from the first node to the target second node as a common downlink channel; the setting instruction is used to indicate that the first downlink channel has been set as the common downlink channel. After receiving the setting instruction sent by the target second node, the first node can determine that the first node has set the first downlink channel as a common downlink channel and the first uplink channel as a common uplink channel. At this time, the first node and the target second node can communicate through the common uplink channel and the common downlink channel to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel.

[0045] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. In this case, the first node can first determine the idle uplink channels between the first node and the multiple second nodes, excluding the common uplink channel, and then determine the aforementioned multiple uplink channels from these idle uplink channels. Since the multiple uplink channels do not include the common uplink channel, when the target second node sequentially sets the first uplink channel to the multiple uplink channels, the common uplink channel can be in an idle state. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include the common uplink channel, and this embodiment of the application does not limit this.

[0046] Optionally, the common downlink channel and the common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel can include the channel among the downlink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel can include the channel among the uplink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can more easily adjust the first downlink channel to the common downlink channel and more easily adjust the first uplink channel to the common uplink channel.

[0047] In the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different. For example, at least one parameter of the time slot, signal frequency band, or signal wavelength may be different for different channels. Optionally, in the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands; the downlink channel is the channel from the first node to the second node.

[0048] When at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, since the target second node can adjust the first uplink and first downlink channels relatively accurately, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Because it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers applicable to both the first and second nodes.

[0049] Fourthly, a communication device is provided, the communication device being a first node connected to a plurality of second nodes, the communication device comprising: a transmitting module and a detection module. The transmitting module is configured to transmit a channel indication to a target second node; the target second node is one of the plurality of second nodes; the channel indication includes: identifiers of a plurality of uplink channels between the first node and the plurality of second nodes, the uplink channels being channels from the second node to the first node; the detection module is configured to sequentially perform detection operations corresponding to the plurality of uplink channels based on the identifiers of the plurality of uplink channels.

[0050] The detection operation for one uplink channel among the plurality of uplink channels includes: after receiving a first uplink test signal sent by the target second node on the uplink channel, sending a similarity indication to the target second node according to the first uplink test signal, wherein the similarity indication is used to indicate whether the similarity between the first uplink channel and the channel is less than a first similarity threshold; when the similarity between the first uplink channel and the channel is less than the first similarity threshold, repeating the operation of receiving the first uplink test signal and sending the similarity indication until the similarity between the first uplink channel and the channel is greater than or equal to the first similarity threshold.

[0051] Optionally, the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially. When the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially, the target second node, when performing the setting operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels, can perform the setting operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. Correspondingly, when the detection module, when performing the detection operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels, can perform the detection operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. It can be seen that the channel indication can not only indicate the plurality of uplink channels through the identifiers of the plurality of uplink channels, but also indicate the order in which the target second node performs the setting operations corresponding to the plurality of uplink channels through the arrangement order of the identifiers of the plurality of uplink channels. Of course, the identifiers of the plurality of uplink channels may not be arranged sequentially, and this application does not limit this.

[0052] After the receiving module receives the first uplink test signal sent by the target second node on the uplink channel, the sending module can determine the similarity between the first uplink channel and the current uplink channel based on the first uplink test signal, and determine whether the similarity is less than a first similarity threshold. Then, the sending module can send a similarity indication to the target second node on the current first downlink channel (such as a common downlink channel) to indicate the result of the determination. There are various ways for the sending module to determine whether the similarity between the first uplink channel and the current uplink channel is less than the first similarity threshold based on the first uplink test signal, and this application embodiment does not limit this method.

[0053] For example, the transmitting module can obtain a first frequency offset based on a first uplink test signal, such as by performing signal processing (e.g., analog signal processing and / or digital signal processing) on ​​the first uplink test signal. Then, the transmitting module can determine that the similarity between the first uplink channel and the specified uplink channel is greater than or equal to a first absolute value threshold when the absolute value of the first frequency offset is less than or equal to a first absolute value threshold; and determine that the similarity between the first uplink channel and the specified uplink channel is less than a first similarity threshold when the absolute value of the first frequency offset is greater than the first absolute value threshold.

[0054] For example, the transmitting module can input the first uplink test signal into the first machine learning model and receive the result of whether the similarity between the first uplink channel and the first uplink channel output by the first machine learning model is less than a first similarity threshold.

[0055] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the target second node can adjust the first uplink channel based on the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite direction of the first frequency offset direction. In this case, the target second node can adjust the first uplink channel based on the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0056] Optionally, the plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. These plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes; this application does not limit this. Furthermore, since these plurality of uplink channels are all idle, the target second node setting the first uplink channel to these plurality of uplink channels sequentially will not affect the communication between other second nodes and the first node. Of course, these plurality of uplink channels can also be partially idle uplink channels; this application does not limit this.

[0057] Optionally, before receiving the channel indication sent by the first node, the target second node may also set the first downlink channel from the first node to the target second node as a common downlink channel. The transmitting module can receive the channel indication sent by the first node on the first downlink channel. The common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node. Since the common downlink channel is idle, the channel indication will not affect the communication between other second nodes and the first node. Of course, the target second node may also choose not to receive the channel indication on the common downlink channel; this application does not limit this.

[0058] Optionally, before the first node sends a channel indication to the target second node, the target second node can set the first uplink channel as a common uplink channel, where the common uplink channel is an idle uplink channel between the first node and the plurality of second nodes. After setting the first downlink channel from the first node to the target second node as a common downlink channel, the target second node can send a setting indication to the first node on the first uplink channel; the setting indication is used to indicate that the first downlink channel has been set as the common downlink channel. In this case, the communication device further includes a receiving module for receiving the setting indication. After the receiving module receives the setting indication sent by the target second node, the sending module can determine that the first node has set the first downlink channel as a common downlink channel and the first uplink channel as a common uplink channel. At this time, the first node and the target second node can communicate through the common uplink channel and the common downlink channel to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel. For example, the sending module can send the aforementioned channel indication to the target second node.

[0059] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. Since the multiple uplink channels do not include a common uplink channel, when the target second node sequentially sets the first uplink channel to these multiple uplink channels, the common uplink channel can be idle. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include a common uplink channel; this embodiment does not limit this.

[0060] Optionally, the common downlink channel and the common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel can include the channel among the downlink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel can include the channel among the uplink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can more easily adjust the first downlink channel to the common downlink channel and more easily adjust the first uplink channel to the common uplink channel.

[0061] In the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different. For example, at least one parameter of the time slot, signal frequency band, or signal wavelength may be different for different channels. Optionally, in the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands; the downlink channel is the channel from the first node to the second node.

[0062] When at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, since the target second node can adjust the first uplink and first downlink channels relatively accurately, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Because it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers applicable to both the first and second nodes.

[0063] Furthermore, the first node can receive and transmit signals of one or more wavelengths. On one hand, when the first node is capable of receiving and transmitting signals of one wavelength, it may include a transceiver (such as an optical module) for receiving and transmitting signals of that wavelength. On the other hand, when the first node is capable of receiving and transmitting signals of multiple wavelengths (such as two, four, or eight), it may include multiple transceivers, each corresponding to one of the multiple wavelengths, with each transceiver used to receive and transmit signals of the corresponding wavelength.

[0064] Fifthly, a communication device is provided, the communication device comprising: a processor and a memory, the memory storing a program; the processor being configured to invoke the program stored in the memory to cause the communication device to execute the communication method described in any of the designs of the first aspect.

[0065] In a sixth aspect, a communication device is provided, the communication device comprising: a processor and a memory, the memory storing a program; the processor being configured to invoke the program stored in the memory to cause the communication device to perform a communication method as described in any of the designs in the second aspect.

[0066] In a seventh aspect, a communication system is provided, the communication system comprising: a first node and a plurality of second nodes; The first node is a communication device as described in either the third or fifth aspect; The target second node among the plurality of second nodes is the communication device described in either the fourth aspect or the sixth aspect.

[0067] Eighthly, a computer storage medium is provided, wherein a computer program is stored therein; when the computer program is run on a computer, the computer performs the communication method described in any of the designs of the first aspect.

[0068] In a ninth aspect, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to perform the communication method as described in any of the designs in the second aspect.

[0069] The technical effects of any of the design methods in aspects two through nine can be found in the technical effects of the corresponding design methods in aspect one, and will not be repeated here. Attached Figure Description

[0070] Figure 1 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application; Figure 2 A schematic diagram of multiple channels provided in an embodiment of this application; Figure 3 This application provides a schematic diagram illustrating a connection method between a first node and multiple second nodes in an embodiment. Figure 4 This is a schematic diagram illustrating another connection method between a first node and multiple second nodes provided in an embodiment of this application. Figure 5 This is a schematic diagram illustrating another connection method between a first node and multiple second nodes provided in an embodiment of this application. Figure 6 A schematic diagram of multiple transceivers in a first node provided in an embodiment of this application; Figure 7 A flowchart illustrating a communication method provided in an embodiment of this application; Figure 8 A flowchart illustrating how a first uplink channel is sequentially configured into multiple uplink channels is provided in this application embodiment; Figure 9 A schematic diagram illustrating the power of signals at different wavelengths provided in an embodiment of this application; Figure 10 A schematic diagram illustrating the power of a signal of a different wavelength provided in an embodiment of this application; Figure 11 A block diagram of a communication device provided in an embodiment of this application; Figure 12 A block diagram of another communication device provided in an embodiment of this application. Detailed Implementation

[0071] To make the principles and technical solutions of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0072] This application provides a communication system. This communication system can be any type of communication system, such as a passive optical network (PON) system for access networks, a metropolitan area network (MAN) system, etc. The PON system can be any PON standard system, such as next-generation passive optical network 2 (NG-PON2), gigabit passive optical network (GPON), 10-gigabit passive optical network (XG-PON), Ethernet passive optical network (EPON), etc.

[0073] The aforementioned communication system includes multiple nodes, which can be communication devices or parts thereof (such as interface units of the devices). The communication devices may include a processor; the processor is coupled to a memory, reads instructions from the memory, and then executes the method described in the embodiments of this application, performed by the communication device. In this communication device, there can be multiple processors, and the memory coupled to the processors can be independent of the processors or the communication devices, or it can be within the processors or network devices. The memory can be a physically independent unit, or it can be storage space on a cloud server or a network hard drive, etc. Optionally, there can be one or more memories. When there are multiple memories, they can be located in the same or different locations and can be used independently or in combination.

[0074] For example, when the memory is located inside the communication device, please refer to Figure 1 , Figure 1This is a schematic diagram of a communication device provided in an embodiment of this application. The communication device 100 includes a processor 102 and a memory 101, wherein the memory 101 is used to store programs, and the processor 102 is used to call the programs stored in the memory 101 to cause the communication device to execute corresponding methods or functions. Optionally, as... Figure 1 As shown, the communication device 100 may further include at least one communication interface 103 and at least one communication bus 104. The memory 101, processor 102, and communication interface 103 are communicatively connected via the communication bus 104. The communication interface 103 is used to communicate with other devices under the control of the processor 102, and the processor 102 can call programs stored in the memory 101 via the communication bus 104.

[0075] Furthermore, multiple nodes in a communication system include a first node and multiple second nodes. In a PON system, the first node can be an optical line terminal (OLT), and the second node can be an optical network unit (ONU). In a metropolitan area network (MAN) system, both the first and second nodes can be switches, routers, transmission network equipment, etc., that contain optical modules.

[0076] The first node is connected to multiple second nodes via at least one common transmission medium (such as fiber optic cable). This connection can be called a point-to-multipoint connection, and the first node can communicate with each of the second nodes. The first node is also called the central node, and the second nodes are also called leaf nodes.

[0077] To distinguish between multiple second nodes, the communication resources between the first node and the multiple second nodes are typically divided into multiple channels. Each second node communicates with the first node on a different channel; this technique is called multiple access technology. These multiple channels include: multiple uplink channels corresponding one-to-one with each of the multiple second nodes, and multiple downlink channels corresponding one-to-one with each of the multiple second nodes. Each second node sends signals to the first node on its corresponding uplink channel (i.e., the uplink channel between the second node and the first node) and receives signals sent by the first node on its corresponding downlink channel (i.e., the downlink channel between the second node and the first node).

[0078] Among the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different.

[0079] For example, when communication resources between a first node and multiple second nodes are divided using Time Division Multiple Access (TDMA), these communication resources are divided into multiple channels, each corresponding to a different time slot. In this case, different second nodes communicate with the first node in different time slots, allowing the first node to distinguish signals sent by different second nodes, and vice versa.

[0080] For example, when communication resources between a first node and multiple second nodes are divided using Frequency Division Multiple Address (FDMA), these communication resources are divided into multiple channels, each corresponding to a different frequency band. In this case, different second nodes communicate with the first node using signals on different frequency bands, allowing the first node to distinguish signals sent by different second nodes, and vice versa.

[0081] For example, when communication resources between a first node and multiple second nodes are divided using wavelength division multiple address (WDMA), the communication resources are divided into multiple channels, each corresponding to a different wavelength. In this case, the signal wavelengths used by different second nodes to communicate with the first node are different, allowing the first node to distinguish signals sent by different second nodes, and vice versa.

[0082] Furthermore, the various methods of allocating communication resources mentioned above can be combined.

[0083] For example, a partitioning method combining TDMA and WDMA is also known as TWDM. When communication resources between a first node and multiple second nodes are partitioned using TWDM, these communication resources are divided into multiple channels, with different channels corresponding to different time slots and / or wavelengths. In this case, different second nodes communicate with the first node using different time slots and / or signal wavelengths, allowing the first node to distinguish signals sent by different second nodes, and vice versa.

[0084] For example, a partitioning method combining TDMA and FDMA is also known as TFDM. When communication resources between a first node and multiple second nodes are partitioned according to TFDM, these communication resources are divided into multiple channels, with different channels corresponding to different time slots and / or frequency bands. Figure 2 As shown, this communication resource is divided into multiple channels in both the time and frequency domains; Figure 2 In a series of channels, different channels correspond to different frequency bands; Figure 2 In a single channel, different channels correspond to different time slots; Figure 2 In a network of multiple channels in different rows and columns, each channel corresponds to a different frequency band and time slot. Therefore, different second nodes communicate with the first node via different time slots and / or different signal wavelengths, allowing the first node to distinguish signals sent by different second nodes, and vice versa.

[0085] The above content uses the parameters of the channel as an example, including the time slot, signal frequency band, and signal wavelength of the channel, and at least one of the parameters of the time slot, signal frequency band, and signal wavelength is different for different channels.

[0086] Of course, the channel may also have other parameters, such as the polarization parameters and encoding / decoding parameters. For example, different channels may have the same time slot, signal frequency band, and signal wavelength, but different encoding / decoding parameters. In this way, the first node can process signals sent by different second nodes based on different encoding / decoding parameters to distinguish the signals sent by different second nodes; and different second nodes can process signals sent by the first node based on different encoding / decoding parameters to distinguish the signals sent by the first node to different second nodes.

[0087] Furthermore, in the communication system provided in this application embodiment, the physical topology connecting the first node and multiple second nodes is diverse. Several of these physical topologies will be briefly introduced below.

[0088] (1) Star-shaped physical topology.

[0089] Please refer to Figure 3 In this star-shaped physical topology, the first node is connected to a splitter (also called a coupler), and each second node is connected to the splitter. The communication system also includes this splitter. Each second node can send signals to the first node via the splitter on its corresponding uplink channel. The first node can send signals to each second node via the splitter on its corresponding downlink channel. The splitter is located between the first node and the multiple second nodes, and is used to split the signal input from the first node's side into multiple signals according to the signal power, and output these multiple signals to the second nodes' side; and to combine the multiple signals input from the second nodes' side into a single signal according to the signal power, and output this single signal to the first node's side.

[0090] It should be noted that the embodiments of this application do not limit the splitting ratio of the splitter, wherein the splitting ratio refers to the ratio of the power of the multiple signals into which the splitter divides one signal.

[0091] (2) Chain-like physical topology.

[0092] Please refer to Figure 4 In this chain-like physical topology, multiple splitters are connected sequentially in a chain, and one of the sequentially connected splitters is located at the edge (e.g., Figure 4 The leftmost splitter is connected to the first node, and each splitter is also connected to at least one second node. Figure 3 (Taking a second node as an example). Figure 4 The function of the splitter in the middle is similar to Figure 3 The function of the splitter is to split the signal input from the side where the first node is located into multiple signals according to the signal power and output the multiple signals to the side where the second node is located, and to combine the multiple signals input from the side where the second node is located into one signal according to the signal power and output the one signal to the side where the first node is located.

[0093] (3) Ring physical topology.

[0094] Please refer to Figure 5 A ring physical topology is equivalent to building upon a chain physical topology by adding another splitter located at the edge of a series of sequentially connected splitters (such as...). Figure 5 The rightmost splitter is connected to another first node. In this case, the communication resources between each first node and multiple second nodes are divided into multiple channels. Furthermore, the communication resources between different second nodes and these multiple second nodes are different.

[0095] Furthermore, in the communication system provided in this application embodiment, the first node can receive and transmit signals of one or more wavelengths.

[0096] On the one hand, when the first node is capable of receiving and transmitting a signal of a certain wavelength, the first node may include a transceiver (such as an optical module) for receiving and transmitting signals of that wavelength.

[0097] On the other hand, when the first node is able to receive and transmit signals of multiple wavelengths (such as two, four, or eight), the first node may include multiple transceivers, each of which corresponds to one of the multiple wavelengths, and each transceiver is used to receive and transmit signals of the corresponding wavelength.

[0098] For example, please refer to Figure 6 When the physical topology connecting the first node and multiple second nodes is a star topology, in Figure 3Based on this, the first node can include two transceivers, namely transceiver 1 and transceiver 2. Transceiver 1 and transceiver 2 are used to transmit and receive signals of different wavelengths. For each second node, the first node can communicate with the second node using either transceiver 1 or transceiver 2, and the first node can also switch the transceiver it communicates with.

[0099] When the first node includes multiple transceivers, each transceiver can support the transmission of uplink and downlink signals at a certain rate. Multiple transceivers can support the transmission of uplink and downlink signals at higher rates. For example, each transceiver can support the transmission of downlink signals at a maximum rate of 10 gigabits per second (G / s) and uplink signals at a maximum rate of 10 G / s. If the first node includes four transceivers, then the first node can support the transmission of downlink signals at a maximum rate of 40 gigabits per second (G / s) and uplink signals at a maximum rate of 40 G / s.

[0100] When the first node comprises multiple transceivers, each transceiver uses different wavelengths for transmitting and receiving signals, and these wavelengths are spaced at least a certain distance apart (e.g., the minimum wavelength between the intervals corresponds to a frequency of 100 gigahertz (GHz)). In this case, the communication resources between the first node and the multiple second nodes include the communication resources between each of the multiple transceivers and the multiple second nodes. Furthermore, the communication resources between different transceivers and the multiple second nodes are different.

[0101] In addition, nodes in the communication system (such as the first node and / or the second node) can receive signals using coherent detection or direct modulation and detection.

[0102] For the first node: On the one hand, when the first node receives signals using a direct modulation and direct detection method, if the first node includes multiple transceivers, then the communication system provided in this application embodiment also includes a multiplexer (such as a multiplexer) located between the first node and multiple second nodes. Figure 6 (As shown). The multiplexer is connected to each transceiver in the first node to combine the signals from each transceiver into a single signal and transmit that signal to each of the second nodes. The multiplexer is also used to filter the signals from each of the second nodes to obtain signals for each transceiver, and then sends these signals to the corresponding transceivers.

[0103] On the other hand, when the first node receives signals using coherent detection, if the first node includes multiple transceivers, the communication system provided in this application embodiment may not include the aforementioned multiplexer, but it may also include a splitter located between the first node and multiple second nodes. The function of the splitter is similar to that of the splitter in the aforementioned embodiment, and will not be described in detail here.

[0104] For the second node: On the one hand, when the second node receives the signal using a direct modulation and detection method, the second node includes a filter, which is used to filter the signal sent by the first node to obtain the signal sent from the first node to the second node.

[0105] When multiple second nodes receive signals using a direct-modulation, direct-detection method, each second node may include a filter, or none of the second nodes may contain filters. The communication system also includes a multiplexer located between the first node and the multiple second nodes. This multiplexer is connected to all the second nodes and is used to combine the signals emitted by the multiple second nodes into a single signal, which is then transmitted to the first node. The multiplexer also filters the signals emitted by the first node to obtain signals for transmission to the multiple second nodes, and then sends these signals to the corresponding second nodes.

[0106] On the other hand, when multiple second nodes receive signals using coherent detection, the communication system provided in this application embodiment may not include the aforementioned multiplexer, but may also include a splitter located between the first node and the multiple second nodes (such as...). Figure 3 , Figure 4 , Figure 5 , Figure 6 (The function of the splitter is similar to that of the splitter in the previous embodiments, and will not be described again in this application embodiment).

[0107] Additionally, when a node (first node or second node) receives signals using coherent detection, the node may include a receiver. The receiver is used to receive signals using coherent detection; for example, the receiver can coherently process the local laser light with the received signals to obtain the portion of these signals with wavelengths similar to the local laser light, thereby obtaining the signal from these signals to be sent to the node.

[0108] Regardless of the method by which a node receives signals, a node can include a signal processor that can process the signals sent to the node, such as performing analog signal processing and digital signal processing on the signal in sequence.

[0109] As described above in the communication system provided in this application embodiment, the communication resources between the first node and multiple second nodes are divided into multiple channels. These multiple channels include an uplink channel between each second node and the first node (also referred to as the uplink channel corresponding to that second node), and a downlink channel between each second node and the first node (also referred to as the downlink channel corresponding to that second node). During communication between the first node and multiple second nodes, the first node can also instruct the second nodes to switch their corresponding uplink channel and / or downlink channel. In related technologies, when the first node instructs the second node to switch its corresponding uplink channel, the second node adjusts its laser to emit light in the new uplink channel. However, due to the limited capabilities of the laser itself, it is difficult for the laser to accurately emit light in the new uplink channel, causing the second node to be unable to accurately switch its corresponding uplink channel.

[0110] Based on this, this application provides a communication method in which the second node can switch the corresponding uplink channel more accurately, thereby improving the switching accuracy of the uplink channel of the second node.

[0111] For example, Figure 7 A flowchart illustrating a communication method provided in this application embodiment. This communication method can be used in any of the communication systems provided in this application embodiment, such as... Figure 7 As shown, the communication method includes: S101, The target second node sets the first downlink channel from the first node to the target second node as a common downlink channel. The common downlink channel is an idle downlink channel between the first node and multiple second nodes.

[0112] The target second node is any one of the multiple second nodes connected to the first node.

[0113] The communication resources between the first node and multiple second nodes are divided into multiple channels, including multiple uplink channels and multiple downlink channels. The uplink channel is the channel from the second node to the first node, and the downlink channel is the channel from the first node to the second nodes. The communication resources can be divided according to any method. This embodiment of the application takes as an example where at least two of the uplink and downlink channels between the first node and multiple second nodes have different frequency bands.

[0114] Among the aforementioned channels, there are a common uplink channel and a common downlink channel, both of which are idle. These common uplink and downlink channels are used for communication between the target second node and the first node when the target second node comes online. Since both channels are idle, communication between the target second node and the first node when the target second node comes online will not affect communication between other second nodes and the first node. In step S101, when the target second node comes online, it can first adjust its laser to set the first downlink channel from the first node to the target second node as this common downlink channel.

[0115] The common downlink channel and common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel may include the downlink channel between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel may include the uplink channel between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can be relatively easy to adjust the first downlink channel to the common downlink channel. After S101, the target second node can also relatively easily adjust the first uplink channel to the common uplink channel.

[0116] For example, multiple channels between a first node and multiple second nodes are used as... Figure 2 Taking the multiple channels shown as an example, assume that the frequency bands of the first uplink channel and the first downlink channel when the target second node starts are both less than [a certain value]. Figure 2 The frequency bands of each channel in the system. At this time, Figure 2 The common uplink and common downlink channels can be channels on two smaller frequency bands.

[0117] S102. The first node sends an online indication signal to the target second node on the common downlink channel. The online indication signal is used to indicate whether the second node is allowed to go online.

[0118] The first node manages the second nodes in the communication system. The first node can determine whether to allow a new second node to come online based on the current usage of multiple channels between itself and multiple second nodes. The first node can send an online indication signal on a common downlink channel to indicate whether a second node is allowed to come online. For example, the first node can periodically send an online indication signal on the common downlink channel; or, the first node can send an online indication signal on the common downlink channel when it determines that a new second node is currently allowed to come online.

[0119] Since the target second node sets the first downlink channel as a common downlink channel in S101, the target second node can receive the online indication signal sent by the first node on the common downlink channel in S102.

[0120] S103. When the online indication signal is used to indicate that the second node is allowed to go online, the target second node sets the first uplink channel from the target second node to the first node as a common uplink channel. The common uplink channel is an idle uplink channel between the first node and multiple second nodes.

[0121] Upon receiving the online indication signal, the target second node can parse the signal to determine whether it is permitted to go online. If the online indication signal disallows the second node, the target second node can repeatedly receive the online indication signal on the common downlink channel until it receives an online indication signal that allows the second node to go online. If the online indication signal allows the second node to go online, the target second node can set the first uplink channel as the common uplink channel to facilitate subsequent signal transmission to the first node on the common uplink channel.

[0122] S104. The target second node sends a setting instruction to the first node on the first uplink channel. The setting instruction is used to indicate that the first downlink channel has been set as a common downlink channel.

[0123] After the target second node sets the first downlink channel as a common downlink channel and the first uplink channel as a common uplink channel, it can send a configuration instruction to the first node on the first uplink channel (currently a common uplink channel). Correspondingly, after the first node sends an online instruction on the common downlink channel to indicate that the second node is allowed to go online, it can receive the configuration instruction sent by the target second node on the common uplink channel.

[0124] S105. The first node sends a channel indication to the target second node on a common downlink channel according to the setting instruction; wherein, the channel indication includes: the identifiers of multiple uplink channels between the first node and multiple second nodes, and the identifiers of the working downlink channels between the first node and multiple second nodes.

[0125] After receiving the setting instruction from the target second node, the first node can determine that it has set the first downlink channel to a common downlink channel and the first uplink channel to a common uplink channel. At this point, the first node and the target second node can communicate via the common uplink and common downlink channels to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel.

[0126] For example, the first node can determine multiple uplink channels and a working downlink channel between itself and multiple second nodes based on this setting instruction. The first node can also send a channel indication, including identifiers of the multiple uplink channels and the identifier of the working downlink channel, to the target second node on a common downlink channel. Here, the uplink channels are the channels from the second node to the first node, the multiple uplink channels are the channels to which the target second node needs to sequentially adjust its first uplink channel, and the working downlink channel is the channel to which the target second node needs to adjust its first downlink channel.

[0127] It is understood that if a first node receives channel indications from at least two second nodes, the first node can select one of the at least two second nodes and send a channel indication to the selected second node. In this embodiment, the selected second node is taken as the target second node. Furthermore, for other second nodes among the at least two that are not selected: the first node may not need to send a signal to these other second nodes; or, the first node may send a signal to these other second nodes to indicate that they are waiting, and after waiting for a certain period of time, these other second nodes may send the aforementioned setting indication to the first node again.

[0128] Before sending a channel indication to the target second node, the first node can first determine the working uplink channel to which the target second node needs to adjust the first uplink channel. Then, based on the common uplink channel and the working uplink channel, it can determine at least one uplink channel that the target second node needs to pass through to adjust the first uplink channel from the common uplink channel to the working uplink channel, thus obtaining the aforementioned multiple uplink channels. These multiple uplink channels include: the at least one uplink channel and the working uplink channel.

[0129] For example, please continue to refer to Figure 2 Assuming the current first uplink channel is Figure 2 Channel 1 in the diagram, the working uplink channel is... Figure 2 If channel 6 is specified, then the first node can determine that the channels traversed from channel 1 to channel 6 include: channel 2, channel 3, channel 4, and channel 5. In this case, the identifiers of the multiple uplink channels in the channel indication include: the identifiers of channel 2, channel 3, channel 4, channel 5, and channel 6.

[0130] In the channel indication, the identifiers of the multiple uplink channels can be arranged sequentially. For example, the first node can arrange the identifiers of the multiple uplink channels sequentially according to the order of at least one uplink channel required to adjust the first uplink channel from the common uplink channel to the working uplink channel. Continuing with the example above, if the first node determines that the channels required to adjust from channel 1 to channel 6 include: channel 2, channel 3, channel 4, and channel 5, then the identifiers of channel 2, channel 3, channel 4, channel 5, and channel 6 in the channel indication can be arranged sequentially.

[0131] Optionally, the aforementioned plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. In this case, the first node can first determine the idle uplink channels between the first node and the plurality of second nodes, and then determine the aforementioned plurality of uplink channels from among these idle uplink channels. The plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes, and this embodiment of the application does not limit this. Furthermore, since the plurality of uplink channels are all idle uplink channels, the target second node setting the first uplink channel to the plurality of uplink channels in sequence will not affect the communication between other second nodes and the first node.

[0132] Similar to the multiple uplink channels mentioned above, the working downlink channel can be an idle downlink channel between the first node and multiple second nodes. In this case, the first node can first determine the idle downlink channels between itself and the multiple second nodes, and then determine the working downlink channel from among these idle downlink channels. Since this working downlink channel is an idle downlink channel, the target second node setting the first downlink channel to this working downlink channel will not affect the communication between the first node and other second nodes.

[0133] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. In this case, the first node can first determine the idle uplink channels between the first node and the multiple second nodes, excluding the common uplink channel, and then determine the aforementioned multiple uplink channels from these idle uplink channels. Since the multiple uplink channels do not include the common uplink channel, when the target second node sequentially sets the first uplink channel to the multiple uplink channels, the common uplink channel can be in an idle state. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include the common uplink channel, and this embodiment of the application does not limit this.

[0134] Similar to the multiple uplink channels described above, the working downlink channel may also exclude the common downlink channel. In this case, when the target second node sets the first downlink channel to this working downlink channel, the common downlink channel can be idle. At this time, the common downlink channel can be used by other second nodes that need to go online. Of course, the working downlink channel may also include the common downlink channel, and this application embodiment does not limit this.

[0135] In addition, in S105, the first node sends a channel indication to the target second node on the common downlink channel. Since the common downlink channel is an idle channel, the channel indication will not affect the communication between the other second nodes and the first node.

[0136] It should be noted that the common uplink channel and the aforementioned working uplink channel can also be adjacent. In this case, the channel indication does not include the identifiers of multiple uplink channels, but only the identifier of the working uplink channel.

[0137] S106. The target second node executes the setting operations corresponding to multiple uplink channels in sequence according to the identifiers of multiple uplink channels.

[0138] After receiving the channel indication, the target second node can parse it to obtain the identifiers of multiple uplink channels. Then, based on these uplink channel identifiers, the target second node can sequentially execute the setting operations corresponding to these uplink channels to set the first uplink channel as one of the multiple uplink channels.

[0139] Please refer to Figure 8 The configuration operation for one of the multiple uplink channels includes: S1061, The target second node sets the first uplink channel from the target second node to the first node as an uplink channel.

[0140] S1062. The target second node sends a first uplink test signal to the first node on the first uplink channel.

[0141] Since the current first uplink channel is this one uplink channel, the first node can receive the first uplink test signal sent by the target second node on this one uplink channel in S1062.

[0142] S1063. The first node sends a similarity indication to the target second node on the first downlink channel based on the first uplink test signal. The similarity indication is used to indicate whether the similarity between the first uplink channel and an uplink channel is less than a first similarity threshold.

[0143] After receiving the first uplink test signal sent by the target second node on the uplink channel, the first node can determine the similarity between the first uplink channel and the target uplink channel based on the first uplink test signal, and determine whether the similarity is less than a first similarity threshold. Then, the first node can send a similarity indication to the target second node on the current first downlink channel (such as a common downlink channel) to indicate the result of this determination.

[0144] There are various ways for the first node to determine whether the similarity between the first uplink channel and the other uplink channel is less than the first similarity threshold based on the first uplink test signal, and the embodiments of this application do not limit this.

[0145] For example, the first node can obtain a first frequency offset based on a first uplink test signal, such as by performing signal processing (e.g., analog signal processing and / or digital signal processing) on ​​the first uplink test signal. Then, the first node can determine that the similarity between the first uplink channel and the specified uplink channel is greater than or equal to a first absolute value threshold when the absolute value of the first frequency offset is less than or equal to a first absolute value threshold; and determine that the similarity between the first uplink channel and the specified uplink channel is less than a first similarity threshold when the absolute value of the first frequency offset is greater than the first absolute value threshold.

[0146] For example, the first node can input the first uplink test signal into the first machine learning model and receive the result of whether the similarity between the first uplink channel and the first uplink channel output by the first machine learning model is less than a first similarity threshold.

[0147] S1064. The target second node determines, based on the similarity indicator, whether the similarity between the first uplink channel and the given uplink channel is less than a first similarity threshold. If the similarity between the first uplink channel and the given uplink channel is less than the first similarity threshold, then proceed to S1065.

[0148] S1065, The target second node adjusts the first uplink channel and executes S1062.

[0149] When the similarity indicator shows that the similarity between the first uplink channel and the specified uplink channel is less than a first similarity threshold, it indicates that the first uplink channel has not yet been accurately set to the specified uplink channel. In this case, the target second node can adjust the first uplink channel and repeatedly send the first uplink test signal to the first node on the adjusted first uplink channel. After receiving the repeatedly sent first uplink test signal from the first node, the first node can send a similarity indicator to the target second node based on the first uplink test signal.

[0150] When the similarity indicator shows that the similarity between the first uplink channel and the specified uplink channel is greater than or equal to a first similarity threshold, it indicates that the first uplink channel has been set to the specified uplink channel with relatively high accuracy. At this point, the target second node ends the setting operation corresponding to that uplink channel. Afterwards, the target second node begins executing the setting operation for the next uplink channel among multiple uplink channels. The process of the target second node executing the setting operation for each uplink channel among multiple uplink channels can be found in [reference needed]. Figure 8 The process is shown.

[0151] As can be seen, when the similarity between the first uplink channel and another uplink channel is less than the first similarity threshold, the target second node adjusts the first uplink channel and repeatedly performs the operations of sending the first uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and another uplink channel is greater than or equal to the first similarity threshold.

[0152] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the target second node can adjust the first uplink channel based on the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite direction of the first frequency offset direction. In this case, the target second node can adjust the first uplink channel based on the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0153] It should be noted that if the aforementioned similarity indicator is used to indicate the direction of the first frequency offset, but not the amount of the frequency offset, then the first node can determine the direction of the frequency offset based on the first frequency offset, or it can determine the direction of the frequency offset without relying on the first frequency offset. For example, when the first node includes multiple transceivers, and there is a multiplexer between the first and second nodes, and the multiplexer is used to filter the signals sent by multiple second nodes to obtain the signal to be sent to each transceiver, the first node can determine the direction of the frequency offset using a perturbation method.

[0154] For example, for one uplink channel among multiple uplink channels, assuming the center wavelength of this uplink channel is λ0, after the target second node sets the first uplink channel to this one uplink channel, it can send two first uplink test signals to the first node. One of these first uplink test signals has a center wavelength slightly larger than the center wavelength λ1 of the first uplink channel, and the other has a center wavelength slightly smaller than λ1. Considering the wavelength response of the multiplexer, signals with different center wavelengths have different losses and different transmission parameters (power or bit error rate). Therefore, the first node can compare the magnitudes of the transmission parameters of these two first uplink test signals and determine the direction of the first frequency offset between the first uplink channel and this one uplink channel based on the comparison result.

[0155] For example, suppose the power (a transmission parameter) of signals with different center wavelengths is as follows: Figure 9 As shown, if the center wavelengths of the two first uplink test signals sent by the target second node are respectively Figure 9 Given λ2 and λ3, after comparing the power of these two first uplink test signals, the first node can determine that the center wavelength λ1 of the first uplink channel is less than the center wavelength λ0 of the other uplink channel, and the direction of the first frequency offset is that the center frequency of the first uplink channel is greater than the center frequency of the other uplink channel. At this point, when the target second node adjusts the first uplink channel, it can decrease the center frequency of the first uplink channel to increase its center wavelength.

[0156] Please refer to Figure 10 If the center wavelengths of the two first uplink test signals sent by the target second node are respectively Figure 10 Given λ4 and λ5, after comparing the power of these two first uplink test signals, the first node can determine that the center wavelength λ1 of the first uplink channel is greater than the center wavelength λ0 of the other uplink channel, and the direction of the first frequency offset is that the center frequency of the first uplink channel is less than the center frequency of the other uplink channel. At this point, when the target second node adjusts the first uplink channel, it can increase the center frequency of the first uplink channel to reduce its center wavelength.

[0157] The first frequency offset is obtained by processing the first uplink test signal. This not only yields the direction of the first frequency offset but also the amount of the first frequency offset. This allows the target second node to adjust the first uplink channel more accurately based on the amount of the frequency offset, thereby improving the efficiency and accuracy of the target second node in adjusting the first uplink channel.

[0158] Furthermore, obtaining the first frequency offset by processing the first uplink test signal places lower requirements on the power stability of the laser in the target second node. When the first node in this embodiment obtains the first frequency offset by processing the first uplink test signal, a target second node with lower cost (and lower power stability) can also be used.

[0159] As can be seen from the above, in S106, during the process of the target second node sequentially performing the setting operations corresponding to multiple uplink channels based on the identifiers of multiple uplink channels, the first node will sequentially perform the detection operations corresponding to multiple uplink channels based on the identifiers of multiple uplink channels. Among them, the detection operation corresponding to one uplink channel among multiple uplink channels includes: receiving a first uplink test signal sent by the target second node on an uplink channel, and sending a similarity indication to the target second node based on the first uplink test signal; and when the similarity between the first uplink channel and an uplink channel is less than a first similarity threshold, repeatedly performing the operations of receiving the first uplink test signal and sending the similarity indication until the similarity between the first uplink channel and a channel is greater than or equal to the first similarity threshold.

[0160] Optionally, when the identifiers of multiple uplink channels in the channel indication are arranged sequentially, the target second node, when performing the setting operations corresponding to the multiple uplink channels according to their identifiers, can perform the setting operations sequentially according to the arrangement order of the uplink channel identifiers. Correspondingly, when the first node, when performing the detection operations corresponding to the multiple uplink channels according to their identifiers, can perform the detection operations sequentially according to the arrangement order of the uplink channel identifiers.

[0161] Taking the example in S105 above, assume that the identifiers of multiple uplink channels in the channel indication include: the identifier of channel 2, the identifier of channel 3, the identifier of channel 4, the identifier of channel 5, and the identifiers of channel 6 are arranged in sequence. Then, the target second node can sequentially execute the setting operations corresponding to channels 2, 3, 4, 5, and 6, and the first node can sequentially execute the detection operations corresponding to channels 2, 3, 4, 5, and 6.

[0162] Of course, the target second node may also execute the setting operations corresponding to the multiple uplink channels sequentially, regardless of the arrangement order of the uplink channel identifiers. Correspondingly, the first node may also execute the detection operations corresponding to the multiple uplink channels sequentially, regardless of the arrangement order of the uplink channel identifiers.

[0163] S107. The target second node sets the first downlink channel as the working downlink channel according to the identifier of the working downlink channel.

[0164] After receiving the channel indication, the target second node can parse the channel indication to obtain the identifier of the working downlink channel. Then, the target second node can set the first downlink channel as the working downlink channel.

[0165] Furthermore, after sending a channel indication to the target second node, the first node can also send a first downlink test signal to the target second node on the working downlink channel. After setting the first downlink channel as the working downlink channel, the target second node can also receive the first downlink test signal sent by the first node on the first downlink channel, and determine whether the similarity between the first downlink channel and the working downlink channel is less than a second similarity threshold based on the first downlink test signal.

[0166] When the similarity between the first downlink channel and the working downlink channel is less than the second similarity threshold, the target second node can adjust the first downlink channel and repeatedly perform the operations of receiving the first downlink test signal and determining whether the similarity between the first downlink channel and the working downlink channel is less than the second similarity threshold, until the similarity between the first downlink channel and the working downlink channel is greater than or equal to the second similarity threshold.

[0167] It can be seen that after the target second node sets the first downlink channel as the working downlink channel, it can also adjust the first downlink channel according to the first downlink test signal sent by the first node, so as to set the first downlink test signal as the first downlink channel more accurately.

[0168] The method by which the second node determines whether the similarity between the first downlink channel and the working downlink channel is less than the second similarity threshold based on the first downlink test signal can refer to the method by which the first node determines whether the similarity between the first uplink channel and the current uplink channel is less than the first similarity threshold based on the first uplink test signal.

[0169] For example, the target second node can obtain the second frequency offset based on the first downlink test signal, such as by performing signal processing on the first downlink test signal (e.g., analog signal processing and / or digital signal processing). Then, when the absolute value of the second frequency offset is greater than the second absolute value threshold, the target second node determines that the similarity between the first downlink channel and the working downlink channel is less than the second similarity threshold. When the absolute value of the second frequency offset is less than or equal to the second absolute value threshold, the target second node determines that the similarity between the first downlink channel and the working downlink channel is greater than or equal to the second similarity threshold.

[0170] As another example, the target second node can input the first downlink test signal into the second machine learning model and receive the result of whether the similarity between the first downlink channel output by the second machine learning model and the working downlink channel is less than a second similarity threshold.

[0171] In the embodiments of this application, different similarity thresholds may be the same or different, and different absolute value thresholds may be the same or different. The embodiments of this application do not limit this.

[0172] In the communication method provided in this application embodiment, a first node can send a channel indication including identifiers of multiple uplink channels to a target second node. This allows the target second node to sequentially set a first uplink channel as one of the multiple uplink channels based on these identifiers, ultimately setting the first uplink channel as the working uplink channel among the multiple uplink channels. Compared to related technologies where the first node instructs the target second node to set the first uplink channel as the working uplink channel, the target second node in this application embodiment can gradually set the first uplink channel as the working uplink channel with less error. Therefore, it avoids the problem of large channel adjustment errors caused by the target second node setting the first uplink channel as the working uplink channel all at once.

[0173] For example, taking the example in S105 above, in this embodiment of the application, the target second node sets the first uplink channel from channel 1 to channels 2, 3, 4, 5, and 6 sequentially, while in related technologies, the target second node directly sets the first uplink channel from channel 1 to channel 6. Because the difference between channel 1 and channel 6 is large, directly setting channel 1 to channel 6 by the target second node is more prone to significant errors. However, the differences between channel 1 and channel 2, channel 2 and channel 3, channel 3 and channel 4, channel 4 and channel 5, and channel 5 and channel 6 are smaller. Therefore, setting the first uplink channel from channel 1 to channel 2, from channel 2 to channel 3, from channel 3 to channel 4, from channel 4 to channel 5, and from channel 5 to channel 6 by the target second node will not result in significant errors, nor will setting the first uplink channel from channel 1 to channels 2, 3, 4, 5, and 6 sequentially result in significant errors.

[0174] As can be seen, in the embodiments of this application, the difference between each uplink channel and the previous uplink channel can be less than the difference between the first uplink channel and the common uplink channel. Specifically, for each uplink channel, during the process of the target second node setting the first uplink channel from channel 1 to channels 2, 3, 4, 5 and 6 in sequence, the target second node will set the first uplink channel from the previous uplink channel to the current uplink channel.

[0175] Furthermore, after setting the first uplink channel as each of the multiple uplink channels, the target second node can also send a first uplink test signal to the first node on the first uplink channel, and receive a similarity indication sent by the first node. Based on the similarity indication, it can determine whether the first uplink channel needs adjustment, ensuring that the target second node can accurately set the first uplink channel as each of the multiple uplink channels. In this way, after sequentially setting the first uplink channel as the multiple uplink channels, the target second node can achieve a relatively accurate setting of the first uplink channel as the working uplink channel among the multiple uplink channels.

[0176] Since the target second node can accurately set the first uplink channel to the working uplink channel, it does not need to use a wavelength etalon. Furthermore, when at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, because the target second node can accurately adjust the first uplink and first downlink channels, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Since a wide interval is not required between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers suitable for both the first and second nodes.

[0177] Furthermore, in the above embodiment, before S104, the target second node can also adjust the first uplink channel and the first downlink channel so that the first uplink channel is set to a common uplink channel more accurately, and the first downlink channel is set to a common downlink channel more accurately.

[0178] On the one hand, for the first downlink channel: Before S104, the first node can periodically transmit a second downlink test signal on the common downlink channel. After the target second node sets the first downlink channel as the common downlink channel in S101, it can receive the second downlink test signal transmitted by the first node on the first downlink channel. Then, the target second node can determine whether the similarity between the first downlink channel and the common downlink channel is less than a third similarity threshold based on the second downlink test signal. When the similarity between the first downlink channel and the common downlink channel is less than the third similarity threshold, the target second node can adjust the first downlink channel and repeat the process of receiving the second downlink test signal and determining whether the similarity between the first downlink channel and the common downlink channel is less than the third similarity threshold, until the similarity between the first downlink channel and the common downlink channel is greater than or equal to the third similarity threshold.

[0179] The method by which the target second node determines whether the similarity between the first downlink channel and the common downlink channel is less than the third similarity threshold based on the second downlink test signal can refer to the method by which the target second node determines whether the similarity between the first downlink channel and the working downlink channel is less than the second similarity threshold based on the first downlink test signal.

[0180] For example, the target second node can obtain the third frequency offset based on the second downlink test signal, such as by performing signal processing on the second downlink test signal (e.g., analog signal processing and / or digital signal processing). Then, the target second node can determine that the similarity between the first downlink channel and the common downlink channel is less than the third similarity threshold if the absolute value of the third frequency offset is greater than the third absolute value threshold; and determine that the similarity between the first downlink channel and the common downlink channel is greater than or equal to the third similarity threshold if the absolute value of the third frequency offset is less than or equal to the third absolute value threshold.

[0181] For example, the target second node can input the second downlink test signal into the third machine learning model and receive the result of whether the similarity between the first downlink channel and the common downlink channel output by the third machine learning model is less than the third similarity threshold.

[0182] On the other hand, for the first uplink channel: Before S104, the target second node can send a second uplink test signal to the first node on the first uplink channel after setting the first uplink channel as a common uplink channel. Upon receiving the second uplink test signal, the first node can send a similarity indication to the target second node on the common downlink channel based on the second uplink test signal. This similarity indication indicates whether the similarity between the first uplink channel and the common uplink channel is less than a fourth similarity threshold. The target second node can determine whether the similarity between the first uplink channel and the common uplink channel is less than the fourth similarity threshold based on the received similarity indication. When the similarity between the first uplink channel and the common uplink channel is less than the fourth similarity threshold, the target second node can adjust the first uplink channel and repeat the operations of sending the second uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and the common uplink channel is greater than or equal to the fourth similarity threshold.

[0183] During the process of the first node sending a similarity indication to the target second node based on the second uplink test signal, it can first determine whether the similarity between the first uplink channel and the common uplink channel is less than the fourth similarity threshold based on the second uplink test signal; then, it sends a similarity indication to the target second node based on the determination result. The process by which the second node determines whether the similarity between the first uplink channel and the common uplink channel is less than the fourth similarity threshold based on the second uplink test signal can refer to the process by which the first node determines whether the similarity between the first uplink channel and the aforementioned uplink channel is less than the first similarity threshold based on the first uplink test signal.

[0184] For example, the first node can obtain the fourth frequency offset based on the second uplink test signal, such as by performing signal processing (e.g., analog signal processing and / or digital signal processing) on ​​the second uplink test signal. Then, the first node can determine that the similarity between the first uplink channel and the common uplink channel is less than the fourth similarity threshold when the absolute value of the fourth frequency offset is greater than the fourth absolute value threshold; and determine that the similarity between the first uplink channel and the common uplink channel is greater than or equal to the fourth similarity threshold when the absolute value of the fourth frequency offset is less than or equal to the fourth absolute value threshold.

[0185] For example, the first node can input the second uplink test signal into the fourth machine learning model and receive the result of whether the similarity between the first uplink channel and the common uplink channel output by the fourth machine learning model is less than the fourth similarity threshold.

[0186] Optionally, the similarity indication sent by the second node based on the second uplink test signal is also used to indicate the fourth frequency offset. In this case, when adjusting the first uplink channel, the target second node can adjust the first uplink channel according to the fourth frequency offset. Alternatively, the similarity indication is only used to indicate the frequency offset direction of the fourth frequency offset and not to indicate the frequency offset amount. In this case, when adjusting the first uplink channel, the target second node can adjust the first uplink channel according to the frequency offset direction. Alternatively, the similarity indication is used to indicate the opposite number of the fourth frequency offset. In this case, when adjusting the first uplink channel, the target second node can adjust the first uplink channel according to the opposite number of the fourth frequency offset. Alternatively, the similarity indication is used to indicate the opposite direction of the frequency offset direction of the fourth frequency offset. In this case, when adjusting the first uplink channel, the target second node can adjust the first uplink channel according to the opposite direction of the frequency offset direction.

[0187] Furthermore, following S106 and S107 above, the first uplink channel is set as the working uplink channel of the target second node, and the first downlink channel is set as the working downlink channel of the target second node. The first node can also instruct the target second node to adjust the first uplink channel to change the working uplink channel of the target second node; the first node can also instruct the target second node to adjust the first downlink channel to change the working downlink channel of the target second node.

[0188] For example, after S106 and S107 above, the first node and the second node can repeat S105, S106 and S107 above to adjust the first uplink channel and the first downlink channel, and change the working uplink channel and the working downlink channel of the target second node.

[0189] In addition, after each adjustment of the first uplink channel, the target second node can send a third uplink test signal to the first node on the first uplink channel. The first node can send a similarity indication to the target second node based on the third uplink test signal. The similarity indication is used to indicate whether the similarity between the first uplink channel and the uplink channel that the first uplink channel should currently be in is less than a fifth similarity threshold. When the similarity between the first uplink channel and the uplink channel that the first uplink channel should currently be in is less than the fifth similarity threshold, the target second node needs to adjust the first uplink channel and repeat the operation of sending the third uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and the uplink channel that the first uplink channel should currently be in is greater than or equal to the fifth similarity threshold.

[0190] The method by which the first node determines whether the similarity between the first uplink channel and the uplink channel that the first uplink channel should currently be in is less than the fifth similarity threshold based on the third uplink test signal can refer to the method by which the first node determines whether the similarity between the first uplink channel and the aforementioned uplink channel is less than the first similarity threshold based on the first uplink test signal. The embodiments of this application will not be elaborated here.

[0191] After each adjustment of the first downlink channel, the target second node can receive the third downlink test signal sent by the first node on the first downlink channel. The target second node can determine whether the similarity between the first downlink channel and the downlink channel that the first downlink channel should currently be in is less than the sixth similarity threshold based on the third downlink test signal. When the similarity between the first downlink channel and the downlink channel that the first downlink channel should currently be in is less than the sixth similarity threshold, the target second node needs to adjust the first downlink channel and repeat the operation of receiving the third downlink test signal and determining whether the similarity between the first downlink channel and the downlink channel that the first downlink channel should currently be in is less than the sixth similarity threshold, until the similarity between the first downlink channel and the downlink channel that the first downlink channel should currently be in is greater than or equal to the sixth similarity threshold.

[0192] The method by which the target second node determines whether the similarity between the first downlink channel and the downlink channel that the first downlink channel should currently be in is less than the sixth similarity threshold based on the third downlink test signal can refer to the method by which the target second node determines whether the similarity between the first downlink channel and the working downlink channel is less than the second similarity threshold based on the first downlink test signal. This embodiment of the application will not be described in detail here.

[0193] It should be noted that the communication resources between the first node and the multiple second nodes in this application embodiment can be fixed or dynamically changing, and this application embodiment does not limit this. When the communication resources change dynamically, the multiple channels into which the communication resources are divided will also change. At this time, the target second node can adjust the first uplink channel and the first downlink channel under the instruction of the first node.

[0194] The order of operations in the method embodiments provided by the present invention can be adjusted appropriately, and the operations can also be added or removed as appropriate. Any variations that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the protection scope of the present invention, and therefore will not be elaborated further.

[0195] For example, after S105, S107 can be executed first, followed by S106. The channel indication may also exclude the identifier of the working downlink channel; in this case, S107 may not be executed. S101, S102, S103, and S104 may also be omitted; in this case, the target second node does not need to receive the channel indication on the common downlink channel. Alternatively, S101, S103, and S104 can be executed, and S102 may be omitted; in S103, the target second node directly sets the first uplink channel as the common uplink channel.

[0196] The above text combines Figures 1 to 10 This application provides a detailed description of the communication methods. It is understood that, in order to implement the functions described in the above methods, the communication device needs to include hardware and / or software modules corresponding to each function. Based on the execution process of the methods described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is implemented by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0197] This embodiment can divide the corresponding communication device into functional modules according to the above method embodiment. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware.

[0198] When using a functional module division method, the following will combine... Figure 11 This application describes the communication device provided.

[0199] Figure 11 This is a block diagram of a communication device provided in an embodiment of this application. This communication device may, for example, be the target second node in the foregoing embodiments. Figure 11 As shown, the communication device includes a receiving module 1101 and a first setting module 1102.

[0200] The receiving module 1101 is used to receive the channel indication sent by the first node; wherein, the channel indication includes: the identifier of multiple uplink channels between the first node and the plurality of second nodes; the uplink channel is the channel from the second node to the first node; the operation performed by the receiving module 1101 can refer to the content related to the target second node in S105 above.

[0201] The first setting module 1102 is used to sequentially execute setting operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels. The operations performed by the first setting module 1102 can be referred to the content related to the target second node in S106 above.

[0202] The setting operation for one uplink channel among the plurality of uplink channels includes: setting the first uplink channel from the target second node to the first node as the one uplink channel, then sending a first uplink test signal to the first node on the first uplink channel; then receiving a similarity indication sent by the first node according to the first uplink test signal, the similarity indication being used to indicate whether the similarity between the first uplink channel and the one uplink channel is less than a first similarity threshold; when the similarity between the first uplink channel and the one uplink channel is less than the first similarity threshold, adjusting the first uplink channel, and repeating the operation of sending the first uplink test signal and receiving the similarity indication until the similarity between the first uplink channel and the one uplink channel is greater than or equal to the first similarity threshold.

[0203] In the communication device provided in this application embodiment, the receiving module 1101 can receive a channel indication sent by the first node, including identifiers of multiple uplink channels. This allows the first setting module 1102 to sequentially set the first uplink channel to the multiple uplink channels according to their identifiers, ultimately setting the first uplink channel as the working uplink channel among the multiple uplink channels. Compared to related technologies where the first node instructs the target second node to set the first uplink channel as the working uplink channel, the target second node in this application embodiment can gradually set the first uplink channel as the working uplink channel with less error. Therefore, it avoids the problem of a large channel adjustment error caused by the target second node setting the first uplink channel as the working uplink channel all at once.

[0204] Furthermore, after setting the first uplink channel to each of the multiple uplink channels, the first setting module 1102 can also send a first uplink test signal to the first node on the first uplink channel, and receive a similarity indication sent by the first node. Based on the similarity indication, it can determine whether the first uplink channel needs adjustment to ensure that the target second node can accurately set the first uplink channel to each of the multiple uplink channels. In this way, after the target second node sequentially sets the first uplink channel to the multiple uplink channels, it can achieve a relatively accurate setting of the first uplink channel as the working uplink channel among the multiple uplink channels.

[0205] As can be seen from the above, in this embodiment of the application, when the target second node adjusts the first uplink channel from one channel to another, it only needs to ensure that the similarity between the adjusted first uplink channel and the other channel is less than a certain similarity threshold. Furthermore, when the similarity threshold is less than one, it is not necessary to ensure that the two channels are completely identical. Therefore, the target second node does not need to use a wavelength etalon, which is used to ensure that the center wavelength of the adjusted first uplink channel is completely consistent with the center wavelength of the other channel.

[0206] Optionally, the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially. When the first setting module 1102 executes the setting operations corresponding to the plurality of uplink channels sequentially according to the identifiers of the plurality of uplink channels, it can execute the setting operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. It can be seen that the channel indication can not only indicate the plurality of uplink channels through the identifiers of the plurality of uplink channels, but also indicate the order in which the target second node executes the setting operations corresponding to the plurality of uplink channels sequentially through the arrangement order of the identifiers of the plurality of uplink channels. Of course, the identifiers of the plurality of uplink channels may not be arranged sequentially, and this application does not limit this.

[0207] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the first setting module 1102 can adjust the first uplink channel according to the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the first setting module 1102 can adjust the first uplink channel according to the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite of the first frequency offset. In this case, the first setting module 1102 can adjust the first uplink channel according to the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite direction of the first frequency offset direction. In this case, the first setting module 1102 can adjust the first uplink channel according to the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0208] Optionally, the plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. These plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes; this application does not limit this. Furthermore, since these plurality of uplink channels are all idle, the first setting module 1102 setting the first uplink channel sequentially to these plurality of uplink channels will not affect the communication between other second nodes and the first node. Of course, these plurality of uplink channels can also be partially idle uplink channels; this application does not limit this.

[0209] Optionally, the communication device further includes: a second setting module ( Figure 11 (Not shown in the diagram). The first setting module is used to set the first downlink channel from the first node to the target second node as a common downlink channel. The common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node. The operation performed by the second setting module can be referred to the content related to the target second node in S101 of the above embodiment.

[0210] The receiving module 1101 is configured to receive the channel indication sent by the first node on the first downlink channel. Since the common downlink channel is idle, the channel indication will not affect communication between other second nodes and the first node. Of course, the target second node may also choose not to receive the channel indication on the common downlink channel; this application does not limit this.

[0211] Optionally, the communication device further includes: a third setting module and a transmitting module ( Figure 11 (Not shown in the text).

[0212] The third setting module is used to set the first uplink channel as a common uplink channel, wherein the common uplink channel is an idle uplink channel between the first node and the plurality of second nodes; the operation performed by the third setting module can refer to the content related to the target second node in S103 of the above embodiment.

[0213] The sending module is configured to send a setting indication to the first node on the first uplink channel after setting the first downlink channel from the first node to the target second node as a common downlink channel; the setting indication is used to indicate that the first downlink channel has been set as the common downlink channel. The operations performed by the sending module can be referred to the content related to the target second node in S104 of the above embodiment.

[0214] After receiving the setting instruction from the target second node, the first node can determine that it has set the first downlink channel to a common downlink channel and the first uplink channel to a common uplink channel. At this point, the first node and the target second node can communicate via the common uplink and common downlink channels to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel.

[0215] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. In this case, the first node can first determine the idle uplink channels between the first node and the multiple second nodes, excluding the common uplink channel, and then determine the aforementioned multiple uplink channels from these idle uplink channels. Since the multiple uplink channels do not include the common uplink channel, when the target second node sequentially sets the first uplink channel to the multiple uplink channels, the common uplink channel can be in an idle state. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include the common uplink channel, and this embodiment of the application does not limit this.

[0216] Optionally, the common downlink channel and the common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel can include the channel among the downlink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel can include the channel among the uplink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can more easily adjust the first downlink channel to the common downlink channel and more easily adjust the first uplink channel to the common uplink channel.

[0217] In the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different. For example, at least one parameter of the time slot, signal frequency band, or signal wavelength may be different for different channels. Optionally, in the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands; the downlink channel is the channel from the first node to the second node.

[0218] When at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, since the target second node can adjust the first uplink and first downlink channels relatively accurately, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Because it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers applicable to both the first and second nodes.

[0219] Figure 12 This is a block diagram of another communication device provided in an embodiment of this application. This communication device may, for example, be the first node in the foregoing embodiments. Figure 12 As shown, the communication device includes a transmitting module 1201 and a detection module 1202.

[0220] The sending module 1201 is used to send a channel indication to a target second node; the target second node is one of the plurality of second nodes; the channel indication includes: the identifiers of a plurality of uplink channels between the first node and the plurality of second nodes, the uplink channels being channels from the second node to the first node; the operation performed by the sending module 1201 can refer to the content related to the first node in S105 of the above embodiment.

[0221] The detection module 1202 is used to sequentially perform detection operations corresponding to the plurality of uplink channels based on the identifiers of the plurality of uplink channels. The operations performed by the detection module 1202 can be referred to the operations related to the first node in S106 of the above embodiment.

[0222] The detection operation for one uplink channel among the plurality of uplink channels includes: after receiving a first uplink test signal sent by the target second node on the uplink channel, sending a similarity indication to the target second node according to the first uplink test signal, wherein the similarity indication is used to indicate whether the similarity between the first uplink channel and the channel is less than a first similarity threshold; when the similarity between the first uplink channel and the channel is less than the first similarity threshold, repeating the operation of receiving the first uplink test signal and sending the similarity indication until the similarity between the first uplink channel and the channel is greater than or equal to the first similarity threshold.

[0223] Optionally, the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially. When the identifiers of the plurality of uplink channels in the channel indication are arranged sequentially, the target second node, when performing the setting operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels, can perform the setting operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. Correspondingly, when the detection module, when performing the detection operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels, can perform the detection operations corresponding to the plurality of uplink channels sequentially according to the arrangement order of the identifiers of the plurality of uplink channels. It can be seen that the channel indication can not only indicate the plurality of uplink channels through the identifiers of the plurality of uplink channels, but also indicate the order in which the target second node performs the setting operations corresponding to the plurality of uplink channels through the arrangement order of the identifiers of the plurality of uplink channels. Of course, the identifiers of the plurality of uplink channels may not be arranged sequentially, and this application does not limit this.

[0224] After the receiving module 1101 receives the first uplink test signal sent by the target second node on the uplink channel, the sending module can determine the similarity between the first uplink channel and the current uplink channel based on the first uplink test signal, and determine whether the similarity is less than a first similarity threshold. Then, the sending module can send a similarity indication to the target second node on the current first downlink channel (such as a common downlink channel) to indicate the result of the determination. There are various ways for the sending module to determine whether the similarity between the first uplink channel and the current uplink channel is less than the first similarity threshold based on the first uplink test signal, and this embodiment does not limit this method.

[0225] For example, the transmitting module can obtain a first frequency offset based on a first uplink test signal, such as by performing signal processing (e.g., analog signal processing and / or digital signal processing) on ​​the first uplink test signal. Then, the transmitting module can determine that the similarity between the first uplink channel and the specified uplink channel is greater than or equal to a first absolute value threshold when the absolute value of the first frequency offset is less than or equal to a first absolute value threshold; and determine that the similarity between the first uplink channel and the specified uplink channel is less than a first similarity threshold when the absolute value of the first frequency offset is greater than the first absolute value threshold.

[0226] For example, the transmitting module can input the first uplink test signal into the first machine learning model and receive the result of whether the similarity between the first uplink channel and the first uplink channel output by the first machine learning model is less than a first similarity threshold.

[0227] Optionally, the similarity indicator may also be used to indicate a first frequency offset between the first uplink channel and the aforementioned uplink channel. In this case, the target second node can adjust the first uplink channel based on the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may only indicate the direction of the first frequency offset and not the amount of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the direction of the frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite of the first frequency offset. In this case, the target second node can adjust the first uplink channel based on the opposite of the first frequency offset when adjusting the first uplink channel. Alternatively, the similarity indicator may be used to indicate the opposite direction of the first frequency offset direction. In this case, the target second node can adjust the first uplink channel based on the opposite direction of the frequency offset direction when adjusting the first uplink channel.

[0228] Optionally, the plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes. These plurality of uplink channels can be all or part of all idle uplink channels between the first node and the plurality of second nodes; this application does not limit this. Furthermore, since these plurality of uplink channels are all idle, the target second node setting the first uplink channel to these plurality of uplink channels sequentially will not affect the communication between other second nodes and the first node. Of course, these plurality of uplink channels can also be partially idle uplink channels; this application does not limit this.

[0229] Optionally, before receiving the channel indication sent by the first node, the target second node may also set the first downlink channel from the first node to the target second node as a common downlink channel. The transmitting module can receive the channel indication sent by the first node on the first downlink channel. The common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node. Since the common downlink channel is idle, the channel indication will not affect the communication between other second nodes and the first node. Of course, the target second node may also choose not to receive the channel indication on the common downlink channel; this application does not limit this.

[0230] Optionally, before the first node sends a channel indication to the target second node, the target second node can set the first uplink channel as a common uplink channel, where the common uplink channel is an idle uplink channel between the first node and the plurality of second nodes; after setting the first downlink channel from the first node to the target second node as a common downlink channel, the target second node can send a setting indication to the first node on the first uplink channel; the setting indication is used to indicate that the first downlink channel has been set as the common downlink channel. At this time, the communication device further includes a receiving module for receiving the setting indication. Figure 12 (Not shown in the diagram) The operations performed by the receiving module can be referred to the content related to the first node in S104 of the above embodiment. After the receiving module receives the setting instruction sent by the target second node, the sending module can determine that the current first node has set the first downlink channel to a common downlink channel and the first uplink channel to a common uplink channel. At this time, the first node and the target second node can communicate through the common uplink channel and the common downlink channel to instruct the target second node to adjust its first uplink channel to a non-common uplink channel and its first downlink channel to a non-common downlink channel. For example, the sending module can send the above channel instruction to the target second node.

[0231] Furthermore, the aforementioned multiple uplink channels may not include a common uplink channel. Since the multiple uplink channels do not include a common uplink channel, when the target second node sequentially sets the first uplink channel to these multiple uplink channels, the common uplink channel can be idle. At this time, the common uplink channel can be used by other second nodes that need to go online. Of course, the multiple uplink channels may also include a common uplink channel; this embodiment does not limit this.

[0232] Optionally, the common downlink channel and the common uplink channel can be any of the multiple channels, and this embodiment does not limit this. Optionally, the common downlink channel can include the channel among the downlink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started. The common uplink channel can include the channel among the uplink channels between the first node and the multiple second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started. In this way, after the target second node is started, it can more easily adjust the first downlink channel to the common downlink channel and more easily adjust the first uplink channel to the common uplink channel.

[0233] In the multiple channels obtained by dividing communication resources, at least one parameter of each channel is different. For example, at least one parameter of the time slot, signal frequency band, or signal wavelength may be different for different channels. Optionally, in the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands; the downlink channel is the channel from the first node to the second node.

[0234] When at least two channels between the first node and multiple second nodes have different frequency bands in the frequency domain, since the target second node can adjust the first uplink and first downlink channels relatively accurately, it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes to avoid errors in the target second node's adjustment of the first uplink and first downlink channels affecting the transmission of signals in other channels. Because it is unnecessary to design a wide interval between different frequency bands in the communication resources between the first node and multiple second nodes, the spectral coverage of the communication resources can be reduced, and the frequency adjustment range of the lasers in the first and second nodes can be reduced, making low-cost lasers applicable to both the first and second nodes.

[0235] Furthermore, the first node can receive and transmit signals of one or more wavelengths. On one hand, when the first node is capable of receiving and transmitting signals of one wavelength, it may include a transceiver (such as an optical module) for receiving and transmitting signals of that wavelength. On the other hand, when the first node is capable of receiving and transmitting signals of multiple wavelengths (such as two, four, or eight), it may include multiple transceivers, each corresponding to one of the multiple wavelengths, with each transceiver used to receive and transmit signals of the corresponding wavelength.

[0236] When using integrated units, the communication device provided in this application may include an interface, a processing module, and a storage module. The processing module can be used to control and manage the operations of the communication device; for example, it can support the communication device in performing the operations described above performed by the target second node or the first node. The storage module can support the communication device in executing stored program code and data. The interface can be used for communication between the communication device and other devices.

[0237] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory.

[0238] In one embodiment, when the processing module is a processor and the storage module is a memory, the processing device involved in this embodiment can be a device having... Figure 1 The communication device has the structure shown. In one implementation, the various modules included in this communication device can be computer programs stored in a memory, and are called by a processor to implement the corresponding execution functions of each module.

[0239] This application provides a computer storage medium storing a computer program; when the computer program is run on a computer, it causes the computer to execute the method executed by the first node or the target second node in any of the communication methods provided in this application.

[0240] This application also provides a computer program product containing instructions that, when run on a communication device, cause the communication device to execute the method executed by the first node or the target second node in any of the communication methods provided in this application.

[0241] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented entirely or partially as a computer program product, which includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated entirely or partially. The computer can be a general-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (e.g., solid-state drive), etc.

[0242] In this application, the terms "first" and "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The term "at least one" means one or more, and "multiple" means two or more, unless otherwise expressly defined. The term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0243] The different types of embodiments, such as method embodiments, device embodiments, and system embodiments provided in this application can be referenced to each other, and this application does not limit them.

[0244] The above description is merely an optional implementation of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A communication method, characterized in that, The method is executed by a target second node, wherein the first node is connected to multiple second nodes, and the target second node is one of the multiple second nodes. The method includes: The first uplink channel from the target second node to the first node is set as the second uplink channel. The second uplink channel is one of a plurality of uplink channels between the first node and the second node. The uplink channel is the channel from the second node to the first node. Send a first uplink test signal to the first node on the first uplink channel; The first node receives a similarity indication sent by the first node based on the first uplink test signal. The similarity indication is used to indicate whether the similarity between the first uplink channel and the second uplink channel is less than a first similarity threshold. When the similarity between the first uplink channel and the second uplink channel is less than the first similarity threshold, the first uplink channel is adjusted, and the operation of sending the first uplink test signal and receiving the similarity indication is repeated until the similarity between the first uplink channel and the second uplink channel is greater than or equal to the first similarity threshold.

2. The method according to claim 1, characterized in that, Before setting the first uplink channel from the target second node to the first node as the second uplink channel, the method further includes: Receive a channel indication sent by the first node; wherein the channel indication includes: the identifiers of the plurality of uplink channels; Setting the first uplink channel from the target second node to the first node as the second uplink channel includes: Based on the identifiers of the plurality of uplink channels, the first uplink channel is set as the second uplink channel.

3. The method according to claim 2, characterized in that, The identifiers of the plurality of uplink channels in the channel indication are arranged sequentially; Setting the first uplink channel from the target second node to the first node as the second uplink channel includes: According to the arrangement order of the identifiers of the plurality of uplink channels, the first uplink channel is set as the second uplink channel.

4. The method according to any one of claims 1 to 3, characterized in that, The similarity indicator is also used to indicate a first frequency offset between the first uplink channel and the second uplink channel; Adjusting the first uplink channel includes: Adjust the first uplink channel based on the first frequency offset.

5. The method according to any one of claims 1 to 3, characterized in that, The plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes.

6. The method according to claim 2 or 3, characterized in that, Before receiving the channel indication sent by the first node, the method further includes: The first downlink channel from the first node to the target second node is set as a common downlink channel, wherein the common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node; Receiving the channel indication sent by the first node includes: Receive the channel indication sent by the first node on the first downlink channel.

7. The method according to claim 6, characterized in that, The common downlink channel includes the downlink channel between the first node and the plurality of second nodes that is closest in the frequency domain to the first downlink channel when the target second node is started.

8. The method according to claim 6, characterized in that, Before receiving the channel indication sent by the first node, the method further includes: The first uplink channel is set as a common uplink channel, which is an idle uplink channel between the first node and the plurality of second nodes; After setting the first downlink channel from the first node to the target second node as a common downlink channel, a setting instruction is sent to the first node on the first uplink channel; the setting instruction is used to indicate that the first downlink channel has been set as the common downlink channel.

9. The method according to claim 8, characterized in that, The plurality of uplink channels does not include the common uplink channel.

10. The method according to claim 8 or 9, characterized in that, The common uplink channel includes the uplink channel between the first node and the plurality of second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started.

11. The method according to any one of claims 1 to 3, characterized in that, In the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands, and the downlink channel is the channel from the first node to the second node.

12. A communication method, characterized in that, The method is executed by a first node, which is connected to a plurality of second nodes. The method includes: The first uplink test signal sent by the target second node is received on the second uplink channel, wherein the second uplink channel is one of a plurality of uplink channels between the first node and the second node, and the target second node is one of the plurality of second nodes; Based on the first uplink test signal, a similarity indication is sent to the target second node. The similarity indication is used to indicate whether the similarity between the first uplink channel from the target second node to the first node and the second uplink channel is less than a first similarity threshold. When the similarity between the first uplink channel and the second uplink channel is less than the first similarity threshold, the operation of receiving the first uplink test signal and sending the similarity indication is repeated until the similarity between the first uplink channel and the second uplink channel is greater than or equal to the first similarity threshold.

13. The method according to claim 12, characterized in that, Before receiving the first uplink test signal sent by the target second node on the second uplink channel, the method further includes: Send a channel indication to the target second node; the channel indication includes: identifiers of multiple uplink channels between the first node and the plurality of second nodes; Receive the first uplink test signal sent by the target second node on the second uplink channel, including: Based on the identifiers of the plurality of uplink channels, the first uplink test signal sent by the target second node is received on the second uplink channel.

14. The method according to claim 13, characterized in that, The identifiers of the plurality of uplink channels in the channel indication are arranged sequentially; Based on the identifiers of the plurality of uplink channels, a first uplink test signal transmitted by the target second node is received on the second uplink channel, including: According to the arrangement order of the identifiers of the multiple uplink channels, the first uplink test signal sent by the target second node is received on the second uplink channel.

15. The method according to any one of claims 12 to 14, characterized in that, Based on the first uplink test signal, a similarity indication is sent to the target second node, including: Based on the first uplink test signal, determine the first frequency offset between the first uplink channel and the second uplink channel; Based on the first frequency offset, determine whether the similarity between the first uplink channel and the second uplink channel is less than the first similarity threshold; Based on the result of the judgment, the similarity indication is sent to the target second node.

16. The method according to any one of claims 12 to 14, characterized in that, The similarity indicator is also used to indicate a first frequency offset between the first uplink channel and the second uplink channel.

17. The method according to any one of claims 12 to 14, characterized in that, The plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes.

18. The method according to claim 13 or 14, characterized in that, Sending the channel indication to the target second node includes: The channel indication is sent to the first node on the common downlink channel; Wherein, the common downlink channel is an idle downlink channel between the first node and the plurality of second nodes, and the downlink channel is the channel from the first node to the second node.

19. The method according to claim 18, characterized in that, The common downlink channel includes the downlink channel between the first node and the plurality of second nodes that is closest in the frequency domain to the first downlink channel from the first node to the target second node when the target second node is started.

20. The method according to claim 18, characterized in that, Before sending the channel indication to the first node on the common downlink channel, the method further includes: Receive a setting instruction sent by the target second node on the common uplink channel, the setting instruction being used to indicate that the first downlink channel from the first node to the target second node has been set as the common downlink channel; Sending the channel indication to the first node on the common downlink channel includes: According to the setting instruction, the channel instruction is sent to the first node on the common downlink channel.

21. The method according to claim 20, characterized in that, The plurality of uplink channels does not include the common uplink channel.

22. The method according to claim 20 or 21, characterized in that, The common uplink channel includes the uplink channel between the first node and the plurality of second nodes that is closest in the frequency domain to the first uplink channel when the target second node is started.

23. The method according to any one of claims 12 to 14, characterized in that, In the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands, and the downlink channel is the channel from the first node to the second node.

24. The method according to any one of claims 12 to 14, characterized in that, The first node includes at least one transceiver.

25. A communication device, characterized in that, The communication device is a target second node connected to a first node, the first node is connected to a plurality of second nodes, and the target second node is one of the plurality of second nodes. The communication device includes: A receiving module is configured to receive a channel indication sent by the first node; wherein the channel indication includes: identifiers of multiple uplink channels between the first node and the plurality of second nodes, the uplink channels being channels from the second nodes to the first node; The first setting module is used to sequentially execute the setting operations corresponding to the plurality of uplink channels according to the identifiers of the plurality of uplink channels; The setting operation for one of the multiple uplink channels includes: The first uplink channel from the target second node to the first node is set as the second uplink channel, and the second uplink channel is one of the multiple uplink channels between the first node and the second node; Send a first uplink test signal to the first node on the first uplink channel; The first node receives a similarity indication sent by the first node based on the first uplink test signal. The similarity indication is used to indicate whether the similarity between the first uplink channel and the second uplink channel is less than a first similarity threshold. When the similarity between the first uplink channel and the second uplink channel is less than the first similarity threshold, the first uplink channel is adjusted, and the operation of sending the first uplink test signal and receiving the similarity indication is repeated until the similarity between the first uplink channel and the second uplink channel is greater than or equal to the first similarity threshold.

26. The communication device according to claim 25, characterized in that, The identifiers of the plurality of uplink channels in the channel indication are arranged sequentially; The first setting module is used to: sequentially execute the setting operations corresponding to the plurality of uplink channels according to the arrangement order of the identifiers of the plurality of uplink channels.

27. The communication device according to claim 25 or 26, characterized in that, The similarity indicator is also used to indicate a first frequency offset between the first uplink channel and the second uplink channel; The first setting module is used to: adjust the first uplink channel according to the first frequency offset.

28. The communication device according to claim 25 or 26, characterized in that, The plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes.

29. The communication device according to claim 25 or 26, characterized in that, In the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands, and the downlink channel is the channel from the first node to the second node.

30. A communication device, characterized in that, The communication device is a first node, which is connected to multiple second nodes. The communication device includes: A transmitting module is used to transmit a channel indication to a target second node; the target second node is one of the plurality of second nodes; the channel indication includes: identifiers of a plurality of uplink channels between the first node and the plurality of second nodes, the uplink channels being channels from the second node to the first node; The detection module is used to sequentially perform detection operations corresponding to the plurality of uplink channels based on the identifiers of the plurality of uplink channels; The detection operation corresponding to one of the plurality of uplink channels includes: The first uplink test signal sent by the target second node is received on the second uplink channel, where the second uplink channel is one of a plurality of uplink channels between the first node and the second node. Based on the first uplink test signal, a similarity indication is sent to the target second node. The similarity indication is used to indicate whether the similarity between the first uplink channel and the second uplink channel is less than a first similarity threshold. When the similarity between the first uplink channel and the second uplink channel is less than the first similarity threshold, the operation of receiving the first uplink test signal and sending the similarity indication is repeated until the similarity between the first uplink channel and the second uplink channel is greater than or equal to the first similarity threshold.

31. The communication device according to claim 30, characterized in that, The identifiers of the plurality of uplink channels in the channel indication are arranged sequentially; The detection module is used to: sequentially perform the detection operations corresponding to the multiple uplink channels according to the arrangement order of the identifiers of the multiple uplink channels.

32. The communication device according to claim 30 or 31, characterized in that, The sending module is used for: Based on the first uplink test signal, determine the first frequency offset between the first uplink channel and the second uplink channel; Based on the first frequency offset, determine whether the similarity between the first uplink channel and the second uplink channel is less than the first similarity threshold; Based on the result of the judgment, the similarity indication is sent to the target second node.

33. The communication device according to claim 30 or 31, characterized in that, The similarity indicator is also used to indicate a first frequency offset between the first uplink channel and the second uplink channel.

34. The communication device according to claim 30 or 31, characterized in that, The plurality of uplink channels are at least partially idle uplink channels between the first node and the plurality of second nodes.

35. The communication device according to claim 30 or 31, characterized in that, In the uplink and downlink channels between the first node and the plurality of second nodes, at least two channels have different frequency bands, and the downlink channel is the channel from the first node to the second node.

36. The communication device according to claim 30 or 31, characterized in that, The first node includes at least one transceiver.

37. A communication device, characterized in that, The communication device includes: a processor and a memory, wherein the memory stores a program; The processor is used to invoke a program stored in the memory so that the communication device performs the communication method as described in any one of claims 1 to 11.

38. A communication device, characterized in that, The communication device includes: a processor and a memory, wherein the memory stores a program; The processor is used to invoke a program stored in the memory so that the communication device performs the communication method as described in any one of claims 12 to 24.

39. A communication system, characterized in that, The communication system includes: a first node and multiple second nodes; The first node is the communication device according to any one of claims 30 to 36, 38; The target second node among the plurality of second nodes is the communication device described in any one of claims 25 to 29 and 37.

40. A computer storage medium, characterized in that, The computer storage medium stores a computer program. When the computer program is run on a computer, it causes the computer to perform the communication method according to any one of claims 1 to 24.