Channel detection method, device and equipment and computer readable storage medium
By carrying detection request information and reply information in messages transmitted by small-particle technology, and transmitting different base frames using different time slots of the target channel, the problems of difficulty in detection and fault positioning in the prior art are solved, effective detection and fault positioning of the transmission channel are realized, and maintainability and reliability of the channel are improved.
Patent Information
- Application Number
- CN202311762635.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-19
- Publication Date
- 2025-06-20
AI Technical Summary
In the process of transmitting data using small-particle technology, it is difficult for the prior art to effectively detect and fault locate the transmission channel, resulting in a degradation of the channel transmission quality.
By carrying detection request information and reply information in messages transmitted by small-particle technology, different base frames are transmitted using different time slots of the target channel, thereby realizing detection and fault location of the transmission channel.
Effective detection and fault positioning of transmission channels transmitted using small-particle technology are realized, the maintenance and reliability of the channels are improved, and the transmission quality is ensured.
Smart Images

Figure CN120186053A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and particularly to a channel detection method, apparatus, device, and computer-readable storage medium. Background Art
[0002] With the development of communication technologies, more and more data is transmitted through transmission channels. In the process of data transmission, small-granule technologies can be used to multiplex the same transmission channel to transmit different data. For example, in a slicing packet network (SPN), a multi-frame including multiple base frames obtained by dividing using a fine granularity unit (fgu) technology, and different base frames can serve as small-granule channels to carry data of different services. By using small-granule technologies, the transmission channel is utilized to transmit different data at different times, thereby improving the channel utilization rate of the transmission channel. In the process of transmitting data using small-granule technologies, it is also necessary to detect the transmission channel. For example, in the case of a fault in the transmission channel, the transmission channel needs to be detected in a timely manner, so as to perform fault location according to the detection result, and perform channel repair based on the located fault to ensure the channel transmission quality. Summary of the Invention
[0003] This application provides a channel detection method, apparatus, device, and computer-readable storage medium to detect a transmission channel when transmitting data using small-granule technologies. The technical solutions are as follows:
[0004] In a first aspect, a channel detection method is provided. This method is applied to a first node, and the first node is configured at the source end of a target channel to be detected. The method includes: obtaining a first message carrying detection request information, where the first message includes a plurality of first base frames; transmitting the first message through the target channel, and different first base frames are transmitted through the target channel at different times; receiving a second message returned by a reference node through the target channel based on the detection request information, where the reference node is a node configured on the target channel, the second message carries detection response information, and the second message includes a plurality of second base frames, and different second base frames are transmitted through the target channel at different times; determining the channel detection result of the target channel according to the detection response information.
[0005] The message structures of the first message and the second message both include multiple base frames, such as the first base frame and the second base frame. Different base frames are transmitted at different times. That is, the first message and the second message belong to the messages transmitted using the small particle technology. By carrying the detection request information or the detection response information in the messages transmitted using the small particle technology, the detection of the target channel can be realized. Even if the target channel is a transmission channel using the small particle technology, the channel detection can be achieved, ensuring the maintainability and reliability of the target channel. In the case of a fault in the target channel, the fault of the target channel can be detected in time, and the reaction to the fault is rapid, and the transmission quality of the target channel is high.
[0006] In a possible implementation manner, the first base frame includes an overhead frame. Obtaining the first message carrying the detection request information includes: obtaining a request message corresponding to the detection request information, where the request message includes the detection request information; splitting the request message according to the message structure of the request message to obtain multiple splitting results; and writing the multiple splitting results into multiple overhead frames of the first message to obtain the first message. By writing the complete request message into the first message, the integrity and comprehensiveness of the carried detection request information are ensured. Even if the data volume of the request message is larger than that of a single overhead frame, the request message can be split into multiple splitting results to achieve the writing of the request message, supporting request messages carrying large data, and having a wide generality.
[0007] In a possible implementation manner, the message structure includes message lines. Splitting the request message according to the message structure of the request message includes: splitting the request message according to the message lines of the request message. Since the bit size occupied by one line of the request message is the same, the sizes of the splitting results obtained based on the message lines are consistent, making the splitting more accurate.
[0008] In a possible implementation manner, writing the multiple splitting results into multiple overhead frames of the first message includes: determining the first sequence numbers corresponding to the respective splitting results to obtain multiple first sequence numbers; determining the second sequence numbers of the respective overhead frames among the multiple overhead frames to obtain multiple second sequence numbers, where the multiple second sequence numbers are not less than the multiple first sequence numbers; for any splitting result, determining, from the multiple second sequence numbers, the second sequence number that is the same as the first sequence number corresponding to the any splitting result, and writing the any splitting result into the overhead frame corresponding to the determined second sequence number. The accurate correspondence between the splitting results and the overhead frames is achieved according to the sequence numbers, and the splitting results are regularly written according to the correspondence relationship between the splitting results and the overhead frames, with high writing efficiency.
[0009] In a possible implementation manner, obtaining the first message carrying the detection request information includes: writing the detection request information into the data field of the control code block of the first message, where the control code block is the code block between adjacent first base frames of the first message. The detection request information can be directly written through the control code block, with high writing efficiency.
[0010] In the process of obtaining the first message carrying the detection request information, the detection request information can be written into the control code block, or the detection request information can be written into the overhead frame. There is no limitation on the writing position of the detection request information, and the flexibility is high.
[0011] In a possible implementation, the first message includes a service message. Since the first message is used to carry service operation, this method can implement the detection of the target channel relied on during the service operation under the condition of service operation, thereby ensuring the quality of service operation.
[0012] In a possible implementation, the detection request information includes a first detection type, and the first detection type indicates the second node for detecting the target channel. The reference node includes the second node configured at the sink end of the target channel. Receiving the second message returned by the reference node through the target channel based on the detection request information includes: receiving the second message sent by the second node to the first node through the target channel based on the first detection type. Since the second node is the node configured at the sink end of the target channel, the source-sink connectivity between the first node at the source end and the second node at the sink end can be determined according to the detection response information in the second message. The operation of detecting connectivity is simple, with low cost and high efficiency.
[0013] In a possible implementation, the detection request information includes a second detection type, and the second detection type indicates all the nodes included in the target channel. The reference node includes the second node configured at the sink end of the target channel and the intermediate node of the target channel. Receiving the second message returned by the reference node through the target channel based on the detection request information includes: receiving at least one second message sent by each reference node in at least one reference node to the first node through the target channel based on the second detection type. Through this method, since the nodes configured on the target channel will all return the second message to the first node when receiving the first message, the first node can thus determine the nodes configured on the target channel according to the received second message to obtain the routing information of the target channel, and the operation of obtaining the routing information is simple. Moreover, there is no limitation on the detection type of the target channel. The connectivity of the target channel can be detected, or the routing information of the target channel can be detected, with high flexibility and wide generality.
[0014] In a possible implementation, the channel detection result includes a transmission delay. Determining the channel detection result of the target channel according to the detection response information includes: determining a first reception time when the first node receives the second message; determining a first transmission time when the first node sends the first message; determining a second reception time and a second transmission time carried in the detection response information, where the second reception time indicates the time when the reference node receives the first message, and the second transmission time indicates the time when the reference node sends the second message; determining the transmission delay between the reference node and the first node according to the first transmission time, the first reception time, the second reception time, and the second transmission time. The process of determining the transmission delay is simple and efficient. In addition to indicating whether the first node and the reference node are connected or disconnected, the detection response information of the second message can further indicate the delay situation between the first node and the reference node, and the channel detection is more comprehensive.
[0015] In a possible implementation, the channel detection result includes a first parameter, and the first parameter indicates the forwarding hop count corresponding to the second message. Determining the channel detection result of the target channel according to the detection response information includes: parsing a second parameter carried in the detection response information and determining the second parameter as the first parameter, where the value of the second parameter is determined by the reference node according to the value of a third parameter in the received first message, and the value of the third parameter is adjusted by an intermediate node between the first node and the reference node during transmission. Since the intermediate node between the first node and the reference node adjusts the value of the third parameter in the first message before transmitting the first message, the value of the third parameter of the first message received by the reference node is related to the forwarding hop count of the first message and the intermediate node for the first message. The second parameter determined according to the value of the third parameter can be used as the first parameter, and the first parameter can indicate the forwarding hop count. The process of determining the first parameter has low operation complexity and high efficiency.
[0016] In a second aspect, a channel detection method is provided. The method is applied to a reference node, and the reference node is configured on a target channel to be detected. The method includes: receiving a first message carrying detection request information sent by a first node through the target channel, where the first node is configured at the source end of the target channel, and the first message includes a plurality of first base frames, and different first base frames are transmitted through the target channel at different times; obtaining detection response information, obtaining a second message carrying the detection response information, where the second message includes a plurality of second base frames; and sending the second message to the first node through the target channel, where the second message is used for the first node to determine the channel detection result of the target channel, and different second base frames are transmitted through the target channel at different times.
[0017] After receiving the first message, the reference node will carry detection response information in the second message including multiple second base frames. Since the second messages are messages transmitted at different times, the detection response information is carried by the second messages transmitted at different times to implement the detection of the target channel. Even if the target channel is a transmission channel using small particle technology, the channel detection can be performed, ensuring the maintainability and reliability of the target channel, and the transmission quality of the target channel is high.
[0018] In a possible implementation, before obtaining the detection response information, it further includes: obtaining detection request information according to the first message; determining the nodes to be detected according to the detection request information; in the case that the nodes to be detected include the reference node, determining that the reference node needs to return the detection response information. Before returning the detection response information, it will also be determined whether the reference node needs to respond to the detection request information, so as to return the detection response information in the case of needing to respond, precise the timing of the reference node returning the detection response information, and the interaction between the reference node and the first node is more accurate. Ensure that the reference nodes returning the detection response information are all the nodes to be detected, avoid the nodes that do not need to be detected from returning the detection response information, effectively control the amount of messages transmitted on the target channel, with low transmission cost and high efficiency.
[0019] In a possible implementation, the first base frame includes an overhead frame. Obtaining the detection request information according to the first message includes: parsing multiple overhead frames of the first message, determining the splitting results written in each overhead frame according to the parsing results to obtain multiple splitting results; splicing the multiple splitting results to obtain a request message corresponding to the detection request information; obtaining the detection request information included in the request message. By splicing the splitting results to obtain a request message corresponding to the detection request information, since the request message is a complete message, the integrity of the detection request information obtained according to the request message is high.
[0020] In a possible implementation, splicing the multiple splitting results to obtain a request message corresponding to the detection request information includes: determining the first sequence number corresponding to each splitting result according to the second sequence number of the overhead frame written in each splitting result; splicing the multiple splitting results according to the first sequence number corresponding to each splitting result to obtain the request message. The first sequence number can be determined according to the second sequence number of the overhead frame, and the determination process of the first sequence number is simple. The accurate first sequence number is referred to in the process of splicing the splitting results, ensuring the accuracy of the splicing process.
[0021] In a possible implementation, obtaining detection request information based on a first message includes: parsing a data field of a control code block of the first message, and determining the detection request information written in the data field according to the parsing result, where the control code block is a code block between adjacent first base frames of the first message. By parsing the data field, the detection request information can be obtained. The process of obtaining the detection request information is simple and the obtaining efficiency is high.
[0022] Whether the detection request information is written into an overhead frame or a control code block, the reference node has a corresponding parsing method to obtain the detection request information, with high flexibility and wide generality.
[0023] In a possible implementation, the first message includes a service message. The first message is a message transmitted during the actual business operation. By carrying the detection request information in the service message, it is possible to detect a target channel on which the business operation depends during the business operation, ensuring the quality of the business operation.
[0024] In a possible implementation, the detection request information includes a first detection type, and the first detection type indicates a second node for detecting the target channel. The reference node includes the second node, and the second node is configured at the sink end of the target channel. Alternatively, the detection request information includes a second detection type, and the second detection type indicates all nodes included in the target channel. The reference node includes the second node and intermediate nodes of the target channel. The reference node can be either the second node or an intermediate node, with wide generality.
[0025] In a possible implementation, the channel detection result includes a transmission delay. Obtaining detection response information includes: determining a second reception time when the reference node receives the first message; determining a second transmission time when the reference node sends a second message, to obtain detection response information including the second reception time and the second transmission time, where the second reception time and the second transmission time are used to determine the transmission delay between the reference node and the first node. By counting the reception and transmission times during the process of receiving the first message and sending the second message, the determination of the detection response information can be achieved. The determination process is simple and efficient.
[0026] In a possible implementation, the channel detection result includes a first parameter, and the first parameter indicates the forwarding hop count corresponding to the second message. Obtaining detection response information includes: determining the value of a second parameter included in the detection response information according to the value of a third parameter carried in the first message, where the value of the third parameter is adjusted by an intermediate node between the first node and the reference node during transmission. When receiving the first message, parse the value of the third parameter carried in the first message, and according to the value of the third parameter, the second parameter included in the detection response information can be determined. The operation complexity is low and the cost is low.
[0027] In a possible implementation, the reference node is an intermediate node of the target channel. After receiving the first message carrying detection request information sent by the first node through the target channel, it further includes: sending the first message carrying detection request information to the second node. Continuously sending the first message to the second node, so that the nodes after the reference node can all receive the first message and reply according to the detection request information, ensuring the comprehensiveness of channel detection.
[0028] In a third aspect, a channel detection device is provided. The device is applied to the first node, and the first node is configured at the source end of the target channel to be detected. The device includes: a processing module, configured to obtain a first message carrying detection request information, where the first message includes multiple first base frames; a transceiver module, configured to transmit the first message through the target channel, and different first base frames are transmitted through the target channel at different times; the transceiver module is further configured to receive a second message returned by the reference node through the target channel based on the detection request information. The reference node is a node configured on the target channel, the second message carries detection response information, and the second message includes multiple second base frames, and different second base frames are transmitted through the target channel at different times; the processing module is further configured to determine the channel detection result of the target channel according to the detection response information.
[0029] In a possible implementation, the first base frame includes an overhead frame. The processing module is configured to obtain a request message corresponding to the detection request information, where the request message includes the detection request information; split the request message according to the message structure of the request message to obtain multiple split results; write the multiple split results into multiple overhead frames of the first message to obtain the first message.
[0030] In a possible implementation, the message structure includes message lines. The processing module is configured to split the request message according to the message lines of the request message.
[0031] In a possible implementation, the processing module is configured to determine first sequence numbers corresponding to the respective split results to obtain multiple first sequence numbers; determine second sequence numbers of the respective overhead frames in the multiple overhead frames to obtain multiple second sequence numbers, and the multiple second sequence numbers are not less than the multiple first sequence numbers; for any one of the split results, determine, from the multiple second sequence numbers, a second sequence number that is the same as the first sequence number corresponding to any one of the split results, and write any one of the split results into the overhead frame corresponding to the determined second sequence number.
[0032] In a possible implementation, the processing module is configured to write the detection request information into the data field of the control code block of the first message, where the control code block is the code block between adjacent first base frames of the first message.
[0033] In a possible implementation, the first message includes a service message.
[0034] In a possible implementation, the detection request information includes a first detection type, the first detection type indicating a second node of a target channel to be detected, the reference node including the second node configured at the sink end of the target channel, and a transceiver module, configured to receive a second message sent by the second node to a first node through the target channel based on the first detection type.
[0035] In a possible implementation, the detection request information includes a second detection type, the second detection type indicating all nodes included in a target channel to be detected, the reference node including the second node configured at the sink end of the target channel and an intermediate node of the target channel, and a transceiver module, configured to receive at least one second message sent by each of at least one reference node to a first node through the target channel based on the second detection type.
[0036] In a possible implementation, the channel detection result includes a transmission delay, and a processing module, configured to determine a first reception time when the first node receives the second message; determine a first transmission time when the first node sends a first message; determine a second reception time and a second transmission time carried in the detection response information, the second reception time indicating the time when the reference node receives the first message, and the second transmission time indicating the time when the reference node sends the second message; and determine the transmission delay between the reference node and the first node according to the first transmission time, the first reception time, the second reception time, and the second transmission time.
[0037] In a possible implementation, the channel detection result includes a first parameter, the first parameter indicating a forwarding hop count corresponding to the second message, and a processing module, configured to parse a second parameter carried in the detection response information and determine the second parameter as the first parameter, the value of the second parameter being determined by the reference node according to the value of a third parameter in the received first message, and the value of the third parameter being adjusted by an intermediate node between the first node and the reference node during transmission.
[0038] In a fourth aspect, a channel detection apparatus is provided. The apparatus is applied to a reference node, the reference node being configured in a target channel to be detected. The apparatus includes: a transceiver module, configured to receive a first message carrying detection request information sent by a first node through the target channel, the first node being configured at the source end of the target channel, the first message including a plurality of first base frames, and different first base frames being transmitted through the target channel at different times; a processing module, configured to obtain detection response information and obtain a second message carrying the detection response information, the second message including a plurality of second base frames; and the transceiver module, further configured to send the second message to the first node through the target channel, the second message being used for the first node to determine the channel detection result of the target channel, and different second base frames being transmitted through the target channel at different times.
[0039] In a possible implementation, the processing module is further configured to obtain detection request information according to the first message; determine the nodes to be detected according to the detection request information; and determine that the reference node needs to return detection response information when the detected nodes include the reference node.
[0040] In a possible implementation, the first base frame includes an overhead frame. The processing module is configured to parse multiple overhead frames of the first message, determine the splitting results written into each overhead frame according to the parsing results, and obtain multiple splitting results; splice the multiple splitting results to obtain a request message corresponding to the detection request information; and obtain the detection request information included in the request message.
[0041] In a possible implementation, the processing module is configured to determine the first sequence number corresponding to each splitting result according to the second sequence number of the overhead frame written into each splitting result; and splice the multiple splitting results according to the first sequence number corresponding to each splitting result to obtain the request message.
[0042] In a possible implementation, the processing module is configured to parse the data field of the control code block of the first message, and determine the detection request information written into the data field according to the parsing results. The control code block is the code block between adjacent first base frames of the first message.
[0043] In a possible implementation, the first message includes a service message.
[0044] In a possible implementation, the detection request information includes a first detection type, the first detection type indicating the second node of the detection target channel. The reference node includes the second node, and the second node is configured at the sink end of the target channel. Or, the detection request information includes a second detection type, the second detection type indicating all nodes included in the detection target channel. The reference node includes the second node and the intermediate node of the target channel.
[0045] In a possible implementation, the channel detection result includes a transmission delay. The processing module is configured to determine the second reception time when the reference node receives the first message; and determine the second transmission time when the reference node sends the second message, so as to obtain detection response information including the second reception time and the second transmission time. The second reception time and the second transmission time are used to determine the transmission delay between the reference node and the first node.
[0046] In a possible implementation, the channel detection result includes a first parameter, the first parameter indicating the forwarding hop count corresponding to the second message. The processing module is configured to determine the value of the second parameter included in the detection response information according to the value of the third parameter carried by the first message. The value of the third parameter is adjusted by the intermediate node between the first node and the reference node during the transmission process.
[0047] In a possible implementation, the reference node is an intermediate node of the target channel, and the transceiver module is further configured to send a first message carrying detection request information to the second node.
[0048] In a fifth aspect, a channel detection device is provided, which includes a processor configured to load and execute at least one instruction to cause the channel detection device to perform the method in the first aspect or any possible implementation manner of the first aspect, or to perform the method in the second aspect or any possible implementation manner of the second aspect.
[0049] In a possible implementation, the device includes a memory coupled to the processor, and the memory stores at least one instruction.
[0050] In a sixth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the channel detection method in the first aspect or any possible implementation manner of the first aspect, or to implement the channel detection method in the second aspect or any possible implementation manner of the second aspect.
[0051] In a seventh aspect, a computer program (product) is provided, which includes computer program / instructions, and the computer program / instructions are executed by a processor to cause the computer to implement the channel detection method in the first aspect or any possible implementation manner of the first aspect, or to implement the channel detection method in the second aspect or any possible implementation manner of the second aspect.
[0052] In an eighth aspect, a communication device is provided, which includes a transceiver, a memory, and a processor. Among them, the transceiver, the memory, and the processor communicate with each other through an internal connection path. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and to control the transceiver to send signals. And when the processor executes the instructions stored in the memory, it causes the processor to perform the method in the first aspect or any possible implementation manner of the first aspect, or to perform the method in the second aspect or any possible implementation manner of the second aspect.
[0053] Optionally, the processor is one or more, and the memory is one or more.
[0054] Optionally, the memory may be integrated with the processor, or the memory is separately provided from the processor.
[0055] In a specific implementation process, the memory can be a non-transitory memory, such as a read only memory (ROM), which can be integrated with the processor on the same chip or can be separately provided on different chips. The present application does not limit the type of the memory and the setting manner of the memory and the processor.
[0056] In a ninth aspect, a chip is provided, including a processor configured to call and run the running program instructions or code stored in the memory, so that a communication device installed with the chip executes the methods in the above aspects.
[0057] In a tenth aspect, another chip is provided, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor is configured to execute the code in the memory. When the code is executed, the processor is configured to execute the methods in the above aspects.
[0058] It should be understood that for the beneficial effects obtained by the technical solutions of the third aspect to the tenth aspect of the present application and the corresponding possible implementation manners, reference may be made to the technical effects of the first aspect and its corresponding possible implementation manner or the second aspect and its corresponding possible implementation manner described above, which will not be elaborated herein. Description of the Drawings
[0059] Figure 1 A schematic diagram of an implementation environment provided by an embodiment of the present application;
[0060] Figure 2 A schematic diagram of another implementation environment provided by an embodiment of the present application;
[0061] Figure 3 A flowchart of a channel detection method provided by an embodiment of the present application;
[0062] Figure 4 A schematic diagram of the structure of a request message provided by an embodiment of the present application;
[0063] Figure 5 A flowchart of a node's processing of an overhead frame provided by an embodiment of the present application;
[0064] Figure 6 A schematic diagram of the structure of an overhead frame provided by an embodiment of the present application;
[0065] Figure 7 A schematic diagram of the structure of a data code block provided by an embodiment of the present application;
[0066] Figure 8 A schematic diagram of another structure of a data code block provided by an embodiment of the present application;
[0067] Figure 9 A schematic diagram showing the carrying of detection request information provided by an embodiment of the present application;
[0068] Figure 10 A schematic diagram showing the structure of a response message provided by an embodiment of the present application;
[0069] Figure 11 A schematic diagram showing the carrying of detection response information provided by an embodiment of the present application;
[0070] Figure 12 A schematic diagram showing the feedback of a second message provided by an embodiment of the present application;
[0071] Figure 13 Another schematic diagram showing the feedback of a second message provided by an embodiment of the present application;
[0072] Figure 14 A schematic diagram showing the calculation of transmission delay provided by an embodiment of the present application;
[0073] Figure 15 A schematic diagram showing the structure of a channel detection device provided by an embodiment of the present application;
[0074] Figure 16 Another schematic diagram showing the structure of a channel detection device provided by an embodiment of the present application;
[0075] Figure 17 A schematic diagram showing the structure of a network device provided by an embodiment of the present application;
[0076] Figure 18 Another schematic diagram showing the structure of a network device provided by an embodiment of the present application. Detailed implementation manners
[0077] The terms used in the implementation manners part of the present application are only used to explain the specific embodiments of the present application, rather than aiming to limit the present application. To make the purpose, technical solutions and advantages of the present application clearer, the following will further describe the implementation manners of the present application in detail with reference to the accompanying drawings.
[0078] With the development of communication technology, the amount of data to be transmitted in the network has increased explosively. During the process of transmitting data using a transmission channel, small particle technology is used to slice multiple small particle channels to achieve the transmission of different data through multiple small particle channels. For example, in SPN, fgu is used to split to obtain a multi-frame message including multiple base frames. Different base frames can be used as small particle channels to transmit different data, thereby improving the utilization rate of the transmission channel for transmitting data and meeting the differentiated data transmission requirements such as small bandwidth, high isolation, and high security. During the process of transmitting data using small particle technology, it is also necessary to detect the transmission channel to ensure the transmission performance of the transmission channel and thus improve the data transmission quality.
[0079] The embodiment of the present application provides a channel detection method for detecting a transmission channel that transmits data using small particle technology. Please refer to Figure 1 , which shows a schematic diagram of the implementation environment of the channel detection method provided by the embodiment of the present application. The implementation environment includes a first node 01 and a second node 02. A communication connection is established between the first node 01 and the second node 02 in a wired or wireless network manner, and this communication connection is the target channel to be detected. Exemplarily, the first node 01 and the second node 02 can be directly connected. For example, Figure 1 as shown, there are no other nodes between the first node 01 and the second node 02.
[0080] The first node 01 and the second node 02 can also be indirectly connected through other nodes. Figure 2 is another schematic diagram of the implementation environment provided by the embodiment of the present application. Figure 2 In, there is also an intermediate node 03 between the first node 01 and the second node 02. The number of intermediate nodes 03 between the first node 01 and the second node 02 can be any number, such as one or more. Figure 2 In this case, two or more intermediate nodes 03 are taken as an example for illustration. In this case, the communication connection established between the first node 01 and the second node 02 is the target channel, and the intermediate node 03 is the node through which the target channel passes.
[0081] The first node 01 transmits a first message through the target channel. The first message carries detection request information. The reference node that receives the first message returns a second message carrying detection response information to the first node 01 according to the detection request information. The first node 01 determines the channel detection result of the target channel according to the received second message. Among them, the reference node is a node configured on the target channel. The reference node can be the second node 02. In the case where the target channel includes an intermediate node 03, the reference node can also be the intermediate node 03. The embodiment of the present application does not limit this.
[0082] In a possible implementation, the first node 01, the second node 02, and the intermediate node 03 can be any device with data forwarding capabilities. For example, the first node 01, the second node 02, and the intermediate node 03 can be terminal devices such as desktop computers, laptop computers, or smartphones, and can also be servers that process data during the interaction process, such as a central server, an edge server, or a local server in a local data center. The server can be a physical server or a cloud server that provides cloud computing services, etc. The first node 01, the second node 02, and the intermediate node 03 can also be gateways, routers, switches, etc.
[0083] The channel detection method provided by the embodiments of this application can be applied to the Figure 1 or Figure 2 implementation environment shown above. The flowchart of this method is as Figure 3 shown, including S301 - S307.
[0084] S301, the first node obtains a first message carrying detection request information, and the first message includes multiple first base frames.
[0085] Exemplarily, the first node is a node configured at the source end of the target channel to be detected. The target channel refers to a transmission channel that uses small - particle technology. That is, during the transmission using the target channel, transmission isolation between data messages of different services is achieved through hard - isolation slicing technology, and data messages of different services are transmitted through the target channel at different times to improve the utilization rate of the target channel. The embodiments of this application do not limit the bandwidth sizes of the target channel and the channels occupied by services. For example, the bandwidth size of the target channel is 5 gigabits per second (Gbps), and the bandwidth size of the channel occupied by a service is 10 megabits per second (Mbps). The bandwidth sizes occupied by different services can be the same or different. The embodiments of this application do not limit the number of services carried by the target channel, which can be any number, such as 24 or other numbers. And regardless of the situation of the target channel, the first node can perform channel detection on the target channel.
[0086] The first node can actively trigger channel detection for the target channel or start detecting the target channel when receiving a detection instruction. The detection instruction can be sent by a control device for managing the target channel. The control device can be a terminal operated by an operation and maintenance personnel who supervises the operation of services. The detection instruction can be a packet internet groper (ping) command or a tracert command. The ping command is used to detect the second node of the target channel. The second node is configured at the destination end of the target channel. The source-destination connectivity of the target channel is determined through the ping command to detect whether the target channel is unobstructed or the transmission speed of the target channel. The tracert command is used to detect all nodes included in the target channel to track the routing information of the target channel, so as to find out all nodes passed by the packet during transmission on the target channel.
[0087] The first node can obtain a first message carrying detection request information based on the detection requirement for the target channel. The detection request information includes at least one of a first identifier, a second identifier, a detection type, and a first sending time. The first identifier is the node identifier of the first node, indicating the source node that sends the detection request information. The second identifier is the node identifier of the second node, indicating the destination node that receives the detection request information. Since whether executing the ping command to determine the source-destination connectivity of the target channel or executing the tracert command to determine the routing information of the target channel, the first message needs to be transmitted through the complete target channel. Therefore, the destination node of the detection request information is the second node configured at the destination end to ensure that the first message is transmitted through the complete target channel. The node identifier can be information such as a node name, a node identity document (ID), and a node address that can be used to identify a node. The node address is, for example, an internet protocol (IP) address and a media access control (MAC) address.
[0088] Exemplarily, the detection type includes but is not limited to the first detection type corresponding to the ping command and the second detection type corresponding to the tracert command exemplified in the above embodiments. The first sending time indicates the time when the first node sends the first message. The first node can determine and carry the first sending time by adding a timestamp to the first message at the time of sending the first message. The embodiments of the present application do not limit the method for the first node to carry the detection request information in the first message. The first node can obtain the first message carrying the detection request information through, but not limited to, the following two methods.
[0089] Obtaining Method 1: The first base frame of the first message includes an overhead frame. The first node obtains a request message corresponding to the detection request information, and the request message includes the detection request information; the request message is split according to the message structure of the request message to obtain multiple split results; the multiple split results are written into multiple overhead frames of the first message to obtain the first message.
[0090] In a possible implementation, the first node generates a request message, and the request message includes the detection request information. Figure 4 This is a schematic diagram of the structure of a request message provided by an embodiment of this application. Figure 4 In it, the request message includes a 32-byte MAC message header. The version field indicates the version of the request message, and the type field indicates the detection type. When the type field is the first value, it indicates that the detection type is the first detection type, that is, the ping command. When the type field is the second value, it indicates that the detection type is the second detection type, that is, the tracert command. The first value and the second value can be different numerical values set based on experience. For example Figure 4 As shown, if the first value is 8, then the second value can be 9, or other numerical values.
[0091] Optionally, Figure 4 The serial number (sn) field in it is the sequence of the request message. In the case where the first node triggers multiple channel detections and sends multiple first messages, the sn is used to identify the request messages carried in different first messages, indicating which time the request message is sent for the channel detection. The R field is a reference identifier, used to indicate whether the node receiving the request message needs to adjust the third parameter. The reservation (rsv) field is a definable idle field. The time to live (TTL) field is used as the third parameter to count the forwarding hops of the first message. The fine-grained slot identity number (fg slot id) indicates the slot identity corresponding to the request message, and the fine-grained client identity number (fg client id) indicates the client identity corresponding to the request message. The source label switching router identifier (Source lsr) is the first identifier, indicating the node identifier of the first node. Figure 4The middle node identifier is 4 bytes, and the four parts occupying four bytes are distinguished by 1-4 respectively. The destination label switching router identifier (Destination lsr) is the second identifier, indicating the node identifier of the second node, which is also 4 bytes. The timestamp forward transport (Timestamp Forward TX) is the first sending time, indicating the time when the first message sending request message is sent.
[0092] After the first node generates a request message carrying detection request information, the request message can be filled in the first message. Exemplarily, the first message belongs to a multi-frame structure, including multiple base frames. Any base frame includes an overhead frame and multiple code blocks. Among them, the overhead frame is used to control and adjust the time slot for transmitting the base frame, and the code block is used to carry data content. Exemplarily, the multi-frame includes 20 base frames, a base frame includes an overhead frame and a payload, the payload size is 1560 bytes, a payload includes 24 sub-time slots with a size of 65 bytes, a sub-time slot includes 8 code blocks, and a code block is 65 bits (bit). In a possible implementation, a control code block is inserted between adjacent base frames to control the transmission rate. The control code block is, for example, an idle block, and the rate adaptation is achieved by inserting and deleting idle blocks between adjacent base frames. When introducing the base frames included in the first message later, in order to distinguish them from the base frames included in the second message, the base frames included in the first message are called the first base frames, and the base frames included in the second message are called the second base frames. However, the first and second are intended to distinguish the base frames, rather than to limit the structure of the base frames. The structures of the first base frame and the second base frame are similar.
[0093] In a possible case, the first node fills the request message in the overhead frame of the first message. Figure 5 This is a schematic diagram of message processing provided by an embodiment of the present application. The network element will perform downlink insertion and uplink sending on the message. Figure 5 Among them, the network element that needs to send a message inserts the payload internally in the network element according to the Figure 5 message change method of 1-4, that is, encapsulates the payload into the overhead frame, and changes the format of the transmitted message to achieve the transmission and processing of the message between different components. For the network element that receives the message, the payload is uplinked internally in the network element according to the message change method of 4-6. The first node can write the request message in the overhead frame by downlink insertion or uplink sending as Figure 5 shown. Among them, the overhead frame is Figure 5 a field included in the Payload in
[0094] Figure 6 The following is a schematic structural diagram of an overhead frame provided by an embodiment of the present application. Refer to Figure 6 , the size of the overhead frame is 56 bits, which are seven bytes of small granule overhead bytes (fgBU overhead byte, fgBU OH byte) 0 - fgBU OH byte6. The overhead frame includes a reserve (RES) field, a multi-frame indication (MFI) field, a flag (Flag) field, a definition description (DD) field, a comment (CMT) field, a request (REQ) field, an acknowledge (ACK) field, a general communication channel (GCC) field, and a cyclic redundancy check (CRC) field. In a possible case, the overhead frame may also include other bits. For example, between the GCC field and the Flag field shown in Figure 6 , the bits included are the RES bit, the S bit, the C bit, the CR bit, and the CA bit. Among them, the S bit indicates a time slot increase adjustment notice, the C bit indicates the time slot takes effect, the CR bit indicates a time slot adjustment request, and the CA bit indicates a time slot adjustment response.
[0095] Regardless of the structure of the overhead frame, the first node can write a request message into the overhead frame. Optionally, the first node can write the request message into the GCC field included in the overhead. Since the size of the GCC field is 33 bits, and the size of the request message is greater than 33 bits, the first node needs to split the request message before writing it, obtain multiple split results that are not greater than 33 bits, and then write the split results into the GCC field.
[0096] The embodiment of the present application does not limit the process of the first node splitting the request message. It can be split based on the message structure. Based on the message structure, for example, based on the field structure, a field is split into a split result. For example, Figure 4 the version field in Figure 4 is a split result, and the sn field is a split result. For a field larger than the size of the overhead frame, the field can be split into multiple split results. For example, Figure 4The request message includes 13 lines. The first node splits the request message into 13 split results according to the message lines. The first split result is the information included in the first line MAC message header. The ninth split result includes the version field, the type field, the sn field, the R field, the rsv field, and the TTL field. For the content corresponding to the line numbers in Figure 4 , please refer to the content corresponding to the line numbers in
[0097] After splitting the request message to obtain multiple split results, the first node can write the split results into multiple overhead frames included in the first message. Exemplarily, the first node determines the first sequence number corresponding to each split result; determines the second sequence number of each overhead frame in the multiple overhead frames to obtain multiple second sequence numbers; for any split result, determines the second sequence number that is the same as the first sequence number corresponding to any split result from the multiple second sequence numbers, and writes any split result into the overhead frame corresponding to the determined second sequence number.
[0098] In a possible case, the first node can determine the first sequence number corresponding to each split result according to the position order of each split result in the request message. Taking the example of splitting according to the message lines in the above embodiment, the first sequence number corresponding to the split result of the first line is determined to be 1, and the first sequence number corresponding to the split result of the second line is determined to be 2. Or, the first sequence number corresponding to the split result of the 13th line is determined to be 1, and the first sequence number corresponding to the split result of the 12th line is determined to be 2.
[0099] Optionally, the first node determines the second sequence number of each overhead frame according to the splicing order of the first base frames corresponding to each overhead frame. For example, the second sequence number of the overhead frame included in the first first base frame is determined to be 1, and the second sequence number of the overhead frame included in the second first base frame is determined to be 2. After determining the first sequence number of each split result and the second sequence number of each overhead frame, the first node can write each split result into the overhead frame with the same sequence number. For example, the split result with the first sequence number of 1 is written into the overhead frame with the second sequence number of 1, and the split result with the first sequence number of 2 is written into the overhead frame with the second sequence number of 2.
[0100] Obtaining method two: Write the detection request information into the data field of the control code block of the first message. The control code block is the code block between adjacent first base frames of the first message.
[0101] In a possible implementation, the first message includes a control code block, which is used to control time slots. The control code block can be an idle block exemplified in the above embodiments. By expanding the field definition of the idle block in the SPN channel layer operation administration and maintenance (OAM) enterprise standard format, the writing of detection request information is realized. Exemplarily, the first node writes the detection request information into the data field in the control code block. Figure 7 FIG. is a schematic structural diagram of a control code block provided by an embodiment of the present application. Figure 7 In, the control code block is 66 bits in size, and the control code block includes 6 data (DATA) fields to carry detection request information. The carrying structure is, for example Figure 8 as shown. Figure 8 In, the first data field indicates the detection type of the target channel. The first 4 bits in the sixth data field are used to write a sequence (Seq) to identify different data code blocks included in the first message. Figure 8 The value (Value) field in can carry detection request information by assignment. For the carrying process, see Figure 9 .
[0102] Figure 9 FIG. is a schematic structural diagram of a control code block provided by an embodiment of the present application. Figure 9 In, multiple control code blocks are used to write detection request information. The source access point identifier (SAPI) is used to splice to obtain a first identifier. Figure 9 In, 16 SAPIs are sequentially spliced to obtain a first identifier. The destination access point identifier (DAPI) is used to splice to obtain a second identifier. Figure 9 In, 16 DAPIs are spliced to obtain a second identifier. The serial number (SN) indicates the message identifier of the first message. The TTL is used as a third parameter. The Tx-f-TS is used to splice to obtain the first transmission time of sending the first message. Figure 9 In, the information written in 8 Tx-f-TS fields needs to be spliced to obtain the first transmission time. The 8 Tx-f-TSs are distinguished by B0 - B7. For the first node using multiple control code blocks to write detection request information. Figure 9 In, the Seq field of the control code block indicates the splicing order of the control code blocks. The control code block with Seq being 0x1 is the control code block spliced in the first row, and the control code block with Seq being 0x2 is the control code block spliced in the second row.
[0103] Figure 9 It is intended to illustrate a case of writing detection request information in the control code block, rather than to limit the values of each field in the control code block and the meanings corresponding to the values. The first node can, as Figure 9 shown, carry the detection request information by assigning custom values to the fields in the control code block, or can assign values to the fields according to the standard when the detection request information is a field defined in the OAM enterprise standard or other standards.
[0104] In a possible case, since the control code block is an idle code block for controlling the transmission rate, the control code block does not belong to the code blocks required for carrying service data, that is, the detection request information does not occupy the message space of the service data. Therefore, on the basis of carrying the detection request information, the first message can further carry the service data generated by the service operation. This service data can be written into the code blocks included in the first base frame of the first message. Therefore, the first message can be a service message carrying the service operation. By carrying the detection request information in the service flow including the service message, the detection of the target channel is realized during the service operation, ensuring the service operation quality.
[0105] S302. The first node transmits the first message through the target channel, and different first base frames are transmitted through the target channel at different times.
[0106] After encapsulating the first message, the first node can send the first message to the second node through the target channel. The second node is the destination node of the first message and is configured at the sink end of the target channel. Exemplarily, the target channel for transmitting the first message can be divided into multiple time slots, and different first base frames are transmitted based on different time slots. Therefore, for the detection request information encapsulated in different positions of the first message, the detection request information can be transmitted through different time slots of the target channel. For example, for the case where the acquisition method 1 of S301 carries the detection request information through the overhead frame, the detection request information is transmitted through the overhead channel included in the target channel, for example, transmitted using the GCC pipeline included in the overhead channel. Among them, the overhead channel refers to the time slot in the target channel for transmitting the overhead frame of the first message. Since the overhead frame includes the GCC field, the overhead channel includes the GCC pipeline, and this GCC pipeline refers to the time slot occupied by the GCC field. For the case where the acquisition method 2 of S301 carries the detection request information through the control code block, the detection request information is transmitted through the data channel included in the target channel, and the data channel refers to the time slot in the target channel for transmitting the code blocks included in the first base frame of the first message.
[0107] S303. The reference node receives the first message carrying the detection request information sent by the first node through the target channel. The first node is configured at the source end of the target channel. The first message includes multiple first base frames, and different first base frames are transmitted through the target channel at different times.
[0108] Exemplarily, a reference node refers to a node configured on a target channel. The first node sends a first message to the second node through the target channel, and the reference node configured on the target channel receives the first message. For example, if the reference node is an intermediate node configured on the target channel, then the intermediate node receives the first message that needs to be sent to the second node. The reference node can also be the second node configured on the target channel, and the second node receives the first message sent by the first node.
[0109] S304. The reference node obtains detection response information, obtains a second message carrying the detection response information, and the second message includes a plurality of second base frames.
[0110] In a possible case, when the reference node receives the first message, it first obtains detection request information according to the first message to respond to the first node according to the detection request information. For different writing methods of the detection request information shown in S301, the reference node also has different parsing methods to obtain the detection request information, including but not limited to the following several.
[0111] Parsing method 1: Parse a plurality of overhead frames of the first message, determine the splitting results written in each overhead frame according to the parsing results, and obtain a plurality of splitting results; splice the plurality of splitting results to obtain a request message corresponding to the detection request information; obtain the detection request information included in the request message.
[0112] Exemplarily, the reference node parses the GCC field in the overhead frame, extracts the splitting results written in the GCC field, and splices the plurality of splitting results. Optionally, the process of the first node splicing the splitting results includes: determining the first sequence number corresponding to each splitting result according to the second sequence number of the overhead frame in which each splitting result is written; splicing the plurality of splitting results according to the first sequence number corresponding to each splitting result to obtain a request message. Among them, the rule that the reference node determines the second sequence number of the overhead frame is the same as the rule that the first node determines the second sequence number of the overhead frame. Exemplarily, the reference node can determine the second sequence number of the overhead frame according to the splicing order of the first base frame corresponding to the overhead frame. When the overhead frame is the overhead frame included in the first first base frame, the second sequence number of the overhead frame is 1, and when the overhead frame is the overhead frame included in the second first base frame, the second sequence number of the overhead frame is 2.
[0113] Since the first node writes the split result into the overhead frame with the same sequence number when writing the split result into the overhead frame, the reference node can use the second sequence number of the overhead frame into which the split result can be written as the first sequence number corresponding to each split result. For example, the first sequence number corresponding to the split result parsed from the overhead frame with the second sequence number of 1 is 1, and the first sequence number corresponding to the split result parsed from the overhead frame with the second sequence number of 2 is 2. For the case of the first sequence number corresponding to the split result determined by the first node according to the split result at the message position of the request message, the reference node can perform sequential splicing according to the first sequence number corresponding to each split result to obtain the request message. Taking a split result as Figure 4 a line of message in Figure 4 as an example, the first sequence numbers corresponding to each split result are Figure 4 1 - 13 shown, then the reference node can splice the split result with the first sequence number of 1 on the first line, the split result with the first sequence number of 2 on the second line, and splice 13 split results in sequence to obtain
[0114] the request message shown. Figure 4 After the reference node splices to obtain the request message, it can parse the detection request information carried in the request message to obtain the detection request information. Continuing with the request message
[0115] as an example, the reference node can read the type field of the request message and determine the detection type included in the detection request information according to the value of the type field. When the value of the type field is the first value, it is determined that the detection type is the first detection type, that is, the ping command is executed. When the value of the type field is the second value, it is determined that the detection type is the second detection type, that is, the tracert command is executed. Optionally, the reference node splices 4 Sourcelsr fields to obtain the first identifier, and based on the first identifier being the node identifier of the first node, it is thus determined that the node sending the detection request information is the first node. The process of obtaining other detection request information and the process of obtaining the detection type and node identifier are similar, and it is also by reading the value of the field, which will not be repeated here.
[0115] Parsing method 2: Parse the data field of the control code block of the first message, and determine the detection request information written in the data field according to the parsing result. The control code block is the code block between adjacent first base frames of the first message.
[0116] After receiving the first message, the reference node identifies the control code block from the first message, extracts the control code block, parses the data field in the control code block, and obtains the detection request information written in the data field. In the case where multiple data code blocks are combined to obtain the detection request information, the reference node can splice according to the sequence numbers of each control code block to obtain the detection request information. For example Figure 9As shown, 11 data code blocks are sequentially concatenated according to the Seq field to obtain 11 lines of concatenation results, and the data fields in the 11 lines of concatenation results are sequentially read to obtain the detection request information. Taking the first identifier in the detection request information as an example, the reference node can sequentially concatenate 16 SAPI fields, namely SAPI[0], SAPI[1], SAPI[2], SAPI[3], SAPI[4], SAPI[5], …, SAPI
[14] , SAPI
[15] , to obtain the first identifier. Based on the first identifier being the node identifier of the first node, the reference node determines that the node sending the detection request information is the first node.
[0117] The reference node can select the parsing method corresponding to the acquisition method according to the way the first message carries the detection request information, and obtain the detection request information from the first message by using either parsing method one or parsing method two. And according to the first identifier carried in the detection request information, it determines that the node sending the detection request information is the first node, and directly obtains the detection response information to return the detection response information to the first node. In a possible case, the reference node can also determine the node to be detected according to the detection request information. When the node to be detected includes the reference node, it is determined that the reference node needs to return the detection response information.
[0118] Exemplarily, the reference node determines the node to be detected according to the detection type. The detection type includes the first detection type or the second detection type. Since the first detection type indicates the source-destination connectivity of the detection target channel, that is, the connectivity between the first node and the second node, therefore, the first detection type indicates the second node of the detection target channel. And the second detection type indicates the routing information of the detection target channel, that is, all the nodes configured on the target channel. Therefore, the nodes detected by the second detection type are all the nodes included in the target channel. The reference node can determine whether it belongs to the first detection type or the second detection type according to the value of the field corresponding to the detection type included in the detection request information. When the detection type of the target channel is the first detection type, since the node to be detected is the second node, therefore, the node that needs to respond is the second node, and the intermediate nodes on the target channel do not need to respond. In this case, the reference node that needs to respond to the detection request information is the second node. When the detection type of the target channel is the second detection type, the nodes to be detected are the second node and the intermediate nodes. Therefore, all the nodes on the target channel except the first node need to respond. The reference nodes that need to respond to the detection request information include the intermediate nodes and the second node.
[0119] When the reference node determines that a detection response message is required for the detection request message, it obtains the detection response message. Exemplarily, for the case where the channel detection result includes the transmission delay, the reference node may determine the second reception time of receiving the first message; determine the second transmission time of the reference node sending the second message, and obtain the detection response message including the second reception time and the second transmission time, where the second reception time and the second transmission time are used to determine the transmission delay between the reference node and the first node. In a possible case, since the first transmission time of sending the first message is also required to determine the transmission delay, and the detection request message included in the first message includes the first transmission time, the detection response message may further include the first transmission time. By carrying the first transmission time in the detection response message, the first node can obtain the first transmission time according to the detection response message when determining the transmission delay subsequently, with low operation complexity and high determination efficiency.
[0120] Exemplarily, for the case where the channel detection result includes a first parameter, and the first parameter indicates the forwarding adjustment corresponding to the second message, the reference node may determine the value of the second parameter included in the detection response message according to the value of the third parameter carried in the first message, where the value of the third parameter is adjusted by an intermediate node between the first node and the reference node during the transmission process. Optionally, the value of the first parameter may be equal to the number of forwarding hops that the first message passes from the first node to the reference node. For example, the initial value of the third parameter carried in the first message sent by the first node is 0. After node A receives the first message, since the first message is forwarded by the first node once during the process from the first node to node A, node A adds 1 to the value of the third parameter and transmits the first message with the third parameter equal to 1 to node B. After node B receives the first message, based on the successful forwarding of the first message by the previous hop node, i.e., node A, it continues to add 1 to the value of the third parameter and transmits the first message with the third parameter equal to 2 to node C, which is the reference node. In this case, the value of the third parameter in the first message received by the reference node is equal to 2. Since the first message is forwarded by node B before reaching the reference node, the reference node adds 1 to the value of the third parameter, and the reference node determines that the value of the second parameter carried in the detection response message is 3 according to the value of the third parameter.
[0121] In a possible scenario, the first parameter can also be used to determine the number of forwarding hops that the first message travels from the first node to the reference node. Exemplarily, the difference between the initial value of the third parameter and the value of the first parameter is equal to the number of forwarding hops. For example, the initial value of the third parameter carried in the first message sent by the first node is set to 255 based on experience. After receiving the first message, Node A decrements the value of the third parameter by 1 based on the successful forwarding of the first message by the first node, and transmits the first message with the third parameter equal to 254 to Node B. After receiving the first message, Node B continues to decrement the value of the third parameter by 1 and transmits the first message with the third parameter equal to 253 to Node C, which is the reference node. The value of the third parameter in the first message received by the reference node is equal to 253. The reference node determines that the value of the second parameter is 252 based on 253 minus 1. In this case, the number of forwarding hops that the first message travels can be determined based on the difference between the value of the second parameter and the initial value of the first parameter. The number of forwarding hops is 255 - 252 = 3. In the above embodiments, an example is given with the adjustment value of the third parameter by the node receiving the first message being 1, which is not used to limit the adjustment value of the third parameter by the node. It can be 1 or other values. For example, an intermediate node decrements the third parameter in the first message received each time by 2, or increments it by 3.
[0122] In a possible implementation, the intermediate nodes between the first node and the reference node can default to adjusting the value of the third parameter in the first message. Alternatively, the first message carries a reference identifier. When the reference identifier is a valid value, it instructs the node receiving the first message to adjust the value of the third parameter in the first message. The reference identifier is, for example, the R field, and the valid value is, for example, 0. Then, the node receiving the first message parses the value of the reference identifier in the first message. When R is equal to 0, it adjusts the value of the third parameter. In some cases, the above-mentioned third parameter, second parameter, and first parameter can be referred to as TTL and hops, etc. Among them, the reference identifier can be an independent identifier field in the detection request message, or can share a field with the detection type. For example Figure 9 in which the value of the type field being 0x16 indicates that the message is the first message sent under the first detection type.
[0123] Optionally, for the case where the detection response message includes the second parameter and the first message carries a reference identifier, the detection response message can further include an adjustment identifier, which is assigned an invalid value to instruct the node receiving the detection response message to limit the adjustment of the value of the second parameter. The adjustment identifier is, for example, the R field, and the invalid value can be set to 1 based on experience, or other values that are different from the valid value. Similar to the reference identifier, the adjustment identifier can be an independent field or share a field with the detection type.
[0124] After determining the detection response information, the reference node may write the detection response information into the second message to obtain the second message carrying the detection response information. In a possible case, the process of writing the detection response information into the second message is similar to the process of writing the detection request information into the first message, and also includes a first method of writing the detection response information into the overhead frame and a second method of writing the detection response information into the control code block.
[0125] In the first method, the reference node obtains a response message including the detection response information, splits the response message according to the message structure of the response message to obtain multiple splitting results; writes the multiple splitting results into multiple overhead frames of the second message respectively to obtain the second message, and the second message may be a hardware device module (HDM) message.
[0126] Figure 10 FIG. is a schematic structural diagram of a response message provided by an embodiment of the present application. Figure 10 The detection response information includes a detection type, an adjustment flag, a second parameter, a first flag, a third flag, a first transmission time, a second transmission time, and a second reception time. Among them, type is the field corresponding to the detection type, type equal to 8 indicates that the detection type is the first detection type, R is the reference flag, R = 1 indicates that the node receiving the second message restricts the adjustment of the second parameter, TTL is the second parameter, Source lsr is the third flag, indicating the node identifier of the reference node, used to determine the node sending the detection response information, and Destination lsr is the first flag, indicating the node identifier of the first node, used to determine the destination node to which the detection response information needs to be sent. Figure 10 The numbers after Source lsr and Destination lsr are used to identify different fields. Timestamp_Forward_TX indicates the first transmission time, timestamp forward receive (Timestamp_Forward_RX) indicates the second reception time, and timestamp backward transport (Timestamp_Backward_TX) indicates the second transmission time.
[0127] Exemplarily, the process of the reference node splitting the response message to obtain multiple splitting results and writing the multiple splitting results into the overhead frame of the second message is similar to the process of the first node splitting the request message to obtain multiple splitting results and writing the multiple splitting results into the overhead frame of the first message. For a detailed description, reference may be made to the relevant content in the first method of obtaining in S301, which will not be repeated here.
[0128] Optionally, the reference node may also write the detection response information into the control code block of the second message. Figure 11 Shows the information carried in multiple control code blocks when the detection response information is written into the data field of the control code block. Figure 11 The detection response information in it includes the first identifier, the third identifier, the detection type, the second parameter, the first transmission time, the second transmission time, and the second reception time. Figure 11 In it, 16 DAPIs are concatenated to obtain the first identifier, indicating the node identifier of the first node, that is, the node identifier of the destination node to which the detection response information needs to be sent. 16 SAPIs are concatenated to obtain the third identifier, indicating the node identifier of the reference node, that is, the node identifier of the node sending the detection response information. TTL is used as the second parameter, and type is the field corresponding to the detection type. When type is equal to 0x17, it indicates the first detection type. Figure 11 and Figure 9 The type value in it is different from that in , and is used to distinguish the first message for request and the second message for response in the case of the first detection type. That is, when type is equal to 0x16 and 0x17, both are used to indicate the first detection type. 0x16 indicates that the carried information is detection request information, and 0x17 indicates that the carried information is detection response information. Optionally, when type is equal to 0x18 and 0x19, both are used to indicate the second detection type. 0x18 indicates that the carried information is detection request information, and 0x19 indicates that the carried information is detection response information. 8 Tx-f-TSs are concatenated to obtain the first transmission time, 8 Rx-b-TSs are concatenated to obtain the second reception time, and 8 Tx-b-TSs are concatenated to obtain the second transmission time.
[0129] The reference node may encapsulate the second message in a corresponding manner according to the way the first node encapsulates the first message. For example, when the detection request information is encapsulated in the overhead frame of the first message, the detection response information is encapsulated in the overhead frame of the second message by method one. When the detection request information is encapsulated in the control code block of the first message, the detection response information is encapsulated in the control code block of the second message by method two. The embodiments of the present application do not limit this.
[0130] S305. The reference node sends the second message to the first node through the target channel. The second message is used for the first node to determine the channel detection result of the target channel. Different second base frames are transmitted through the target channel at different times.
[0131] Exemplarily, after encapsulating the detection response information in the second message, the reference node determines that the node to which the detection response information needs to be returned is the first node according to the first identifier in the detection request information, and then returns the second message to the first node through the target channel. The target channel can be divided into multiple time slots, and different second base frames are transmitted at different times through different time slots. For the case where the detection response information is encapsulated in the overhead frame, the detection response information is transmitted to the first node through the overhead channel included in the target channel. For the case where the detection response information is encapsulated in the control code block, the detection response information is transmitted to the first node through the data channel included in the target channel. The description of the overhead channel or data channel occupied by the detection response information and the overhead channel or data channel occupied by the detection request information is similar, and reference can be made to the relevant content of Embodiment S302, which will not be repeated here.
[0132] S306. The first node receives the second message returned by the reference node through the target channel based on the detection request information. The reference node is the node configured on the target channel. The second message carries the detection response information, and the second message includes multiple second base frames, and different second base frames are transmitted at different times through the target channel.
[0133] In a possible implementation manner, after receiving the second message, the first node matches the first identifier in the detection response information of the second message. When the first identifier is the same as the node identifier of the first node, it is determined that the second message is the response message returned by the reference node to the first node. For different detection types, the first node will also receive different numbers of second messages. Exemplarily, for the detection request information including the first detection type, that is, the second node for detecting the target channel. For example, in the case of the ping command exemplified in S301, the first node receives the second message sent by the second node to the first node based on the first detection type. That is, the first message and the second message are in a one-to-one correspondence relationship. Even if the intermediate node on the target channel receives the first message, since the first detection type indicates that the detected node is the second node and the intermediate node does not belong to the second node, the intermediate node determines that there is no need to return the detection response information to the first node. The intermediate node adjusts the value of the third parameter of the first message based on the reference identifier carried in the first message being a valid value, and continues to transmit the adjusted first message to the second node through the target channel. After receiving the first message, the second node, as the reference node, sends the second message to the first node according to the detection request information, and the first node thus receives one second message returned by the second node.
[0134] Figure 12 This is a schematic diagram of the feedback of a second message provided by an embodiment of the present application. Figure 12 The target channel includes four nodes, namely the first node, intermediate node 1, intermediate node 2, and the second node. Figure 12Shows the operations performed by each node after receiving the first message when the first node triggers the ping command detection. The first node sends the first message to the second node through the target channel. After receiving the first message, Intermediate Node 1, based on the type field in the first message being the first value and the detection request information including the first detection type, determines that there is no need to return detection response information to the first node. Since the reference identifier R in the detection request information is a valid value, Intermediate Node 1 adjusts the value of the third parameter included in the first message accordingly. For example Figure 12 increases the value of the third parameter TTL by 1 and continues to send the adjusted first message backward. The operations performed by Intermediate Node 2 are similar to those of Intermediate Node 1. After increasing the TTL value in the first message by 1, Intermediate Node 2 sends the adjusted first message to the second node. The second node determines that it needs to return detection response information to the first node based on the type field in the received first message being the first value and sends the second message to the first node. After receiving the second message, Intermediate Node 1 and Intermediate Node 2 perform a forwarding operation and do not adjust the second parameter carried in the second message.
[0135] In a possible implementation, for the case where the detection request information includes the second detection type, that is, it indicates all nodes of the target channel. For example, in the case of the tracert command exemplified in S301, the first node receives at least one second message sent by each reference node in at least one reference node to the first node based on the second detection type. Since the second detection type is used to detect the routing situation of the target channel, all nodes other than the first node configured on the target channel need to return the second message to the first node so that the first node can determine the node situation configured on the target channel based on the received second message. For the case where there is only the second node other than the first node on the target channel, the first node receives one second message returned by the second node. For the case where there are multiple nodes other than the first node on the target channel, for example, the target channel further includes intermediate nodes on the basis of including the second node, the first node can receive multiple second messages returned by the second node and the intermediate nodes respectively. That is, in the case of performing the second detection type, the first message can correspond to multiple second messages.
[0136] Figure 13 Another schematic diagram of the return of the second message provided by the embodiment of the present application Figure 13 in which the target channel and Figure 12 the target channel are the same, both including the first node, Intermediate Node 1, Intermediate Node 2, and the second node Figure 13Shows the operations performed by the node that receives the first packet in the case of the second detection type, i.e., when the tracert command is executed. After receiving the first packet, Intermediate Node 1 determines that it needs to return detection response information based on the type field being the second value, i.e., when the detection request information includes the second detection type. It encapsulates the detection response information in the second packet 1 and returns the second packet 1 to the first node. Also, it increments the value of the third parameter TTL in the first packet by 1 and sends the adjusted first packet to Intermediate Node 2. Intermediate Node 2 performs a similar operation as Intermediate Node 1, i.e., it also returns the second packet 2 to the first node and continues to send the adjusted first packet to the second node. Since the second node is the destination node of the first packet, after receiving the first packet, the second node does not need to continue transmitting the first packet downward. Instead, it returns the second packet 3 to the first node according to the detection request information in the first packet. That is, in the case where the reference node is an intermediate node of the target channel, after receiving the first packet, the reference node will also send the first packet carrying the detection request information to the second node.
[0137] Since when performing the detection of the second detection type on the target channel, the first node that sends a first packet may receive multiple second packets, during the execution of the second detection type, the generation of bit - interleaved parity (BIP) error alarms will be suppressed. BIP error alarms are used for abnormal alarms when the received second packet and the first packet do not correspond one - to - one. By suppressing the BIP error alarms, it is possible to avoid detecting the situation where one first packet corresponds to multiple second packets as an abnormal situation.
[0138] S307, the first node determines the channel detection result of the target channel according to the detection response information.
[0139] Regardless of whether the first node receives one or multiple second packets, it can determine the channel detection result according to the detection response information in the second packet. Exemplarily, if the channel detection result includes at least one of the transmission delay and the first parameter, the first node can determine the channel detection result through at least the following two methods.
[0140] Determination method 1: Determine the first reception time when the first node receives the second packet; determine the first transmission time when the first node sends the first packet; determine the second reception time and the second transmission time carried in the detection response information, where the second reception time indicates the time when the reference node receives the first packet, and the second transmission time indicates the time when the reference node sends the second packet; determine the transmission delay between the reference node and the first node according to the first transmission time, the first reception time, the second reception time, and the second transmission time.
[0141] Exemplarily, when the first node receives the second message, it determines the first moment when the second message is received. Subsequently, the first node parses the detection response information from the second message and determines the second reception moment and the second transmission moment included in the detection response information. The process by which the first node obtains the detection response information is similar to the process by which the reference node obtains the detection request information from the first message. For the relevant descriptions of parsing method 1 and parsing method 2 in S304, please refer to the relevant descriptions in S304, and will not be repeated here.
[0142] The embodiments of the present application do not limit the process by which the first node determines the first transmission moment. The first node may record and store the first transmission moment of the first message when sending the first message. Subsequently, according to the message identifier of the second message, it determines the first message corresponding to the second message and determines the first transmission moment of the first message. Exemplarily, both the first message and the second message carry a message identifier, which is used to indicate which time the channel detection process the first message and the second message are generated respectively. The message identifier is, for example, Figure 4 and Figure 10 the sn in. Then the first node may use the first message with the same message identifier as the first message corresponding to the second message.
[0143] In a possible case, the first node may also determine the first transmission moment carried in the detection response information. Refer to Figure 10 and Figure 11 . In the process of determining the detection response information, the reference node will also determine the first transmission moment carried in the detection request information as the information included in the detection response information, and write the first transmission moment, the second reception moment, and the second transmission moment into the second message together. Therefore, the first node may determine the first transmission moment included in the detection response information to obtain the first transmission moment.
[0144] After the first node determines the first transmission moment, the first reception moment, the second transmission moment, and the second reception moment, it may determine the transmission delay between the first node and the reference node according to the first transmission moment, the first reception moment, the second transmission moment, and the second reception moment. The determination process is, for example, to determine the first delay according to the first transmission moment and the second reception moment, determine the second delay according to the second transmission moment and the first reception moment, and determine the transmission delay according to the first delay and the second delay.
[0145] Figure 14 FIG. is an interaction schematic diagram between a first node and a reference node provided by an embodiment of the present application. Figure 14 In FIG., node A is the first node, node B is the reference node, t1 is the first transmission moment when the first node sends the first message, t2 is the second reception moment when the reference node receives the first message, t3 is the second transmission moment when the reference node sends the second message, and t4 is the first reception moment when the first node receives the second message.Figure 14 The formula for calculating the first time delay is T1 = t2 - t1 - Δt, and the formula for calculating the second time delay is T2 = t4 - t3 + Δt. Here, Δt is the time phase difference between the first node and the reference node, T1 is the first time delay for the first message sent from the first node to the reference node, and T2 is the second time delay for the second message sent from the reference node to the first node. The first node adds the first time delay and the second time delay to obtain the two-way time delay, and divides the two-way time delay by two. The resulting difference is the transmission time delay. Continuing with Figure 14 as an example, the two-way time delay T = t2 - t1 + t4 - t3. By adding the first time delay and the second time delay, the time phase difference between the first node and the reference node is cancelled out, and the resulting transmission time delay T / 2 has higher accuracy. Figure 14 Also shown in are the respective moments of the second detection, which are the first transmission moment t5, the second reception moment t6, the second transmission moment t7, and the first reception moment t8. The calculation process is similar to that of t1, t2, t3, and t4 above and will not be repeated here.
[0146] Determination method two: Analyze the second parameter carried in the detection response message and determine the second parameter as the first parameter. The value of the second parameter is determined by the reference node according to the value of the third parameter in the received first message, and the value of the third parameter is adjusted by the intermediate node between the first node and the reference node during the transmission process.
[0147] Exemplarily, the first node analyzes the value of the second parameter in the detection response message and uses the value of the second parameter as the value of the first parameter. For example, the first node analyzes the TTL in the second message. When the TTL is equal to 252, it is determined that the first parameter TTL in the channel detection result is 252.
[0148] In the embodiments of the present application, the first node can flexibly select one or more of determination method one or determination method two according to the parameters included in the detection response message to determine the channel detection result. In a possible case, when the first node does not receive the second message corresponding to the first message within the time threshold, the channel detection result is determined to be a timeout. Here, the time threshold is set based on experience and can be 1 s or other durations.
[0149] In the case where the first node receives multiple second messages returned by multiple reference nodes, since the distances between different reference nodes and the first node are different, the time taken for different reference nodes to return the second message to the first node also varies. The first node can, based on experience, set time thresholds corresponding to each reference node for multiple reference nodes. The time thresholds corresponding to different reference nodes can be the same or different. The first node can also set a time threshold and use this time threshold as the maximum tolerance time for waiting for adjacent second messages. In the case where a second message is not received after exceeding the time threshold, it is determined that the downstream node adjacent to the reference node that returned the second message in the previous time period has timed out. Continuing with Figure 13 as an example, Figure 13 in [text not provided], the first node receives the second message 1 returned by the intermediate node 1. After waiting for the time threshold, the second message 2 returned by the intermediate node 2 is not received. Since the reference node that returned the second message in the previous time period is the intermediate node 1, and the downstream node adjacent to the intermediate node 1 is the intermediate node 2, the first node thus determines that the intermediate node 2 has timed out.
[0150] In a possible implementation, after the first node determines the channel detection result, it can display the channel detection result so that the operation and maintenance personnel monitoring the target channel can timely determine whether the target channel is abnormal based on the displayed channel detection result, in order to determine the connection and disconnection and delay conditions of each node on the target channel, thereby improving the maintainability and locatability of the target channel. Taking the channel detection result corresponding to the first detection type as an example:
[0151] Reply form) Destination Lsrid: Sequence=1, ttl=252, time=Delay1
[0152] Reply form Destination Lsrid: Sequence=2, ttl=252, time=Delay2
[0153] Reply form Destination Lsrid: Sequence=3, ttl=252, time=Delay3
[0154] Reply form Destination Lsrid: Sequence=4, timeout
[0155] The above channel detection results are the results of four-channel detections. The first node sends four first messages to the second node in four separate times. The message identifiers of the four first messages, namely Sequences, are 1, 2, 3, and 4 respectively. Among them, the first parameter corresponding to the first message at the first node and the second node is 252, time indicates the transmission delay between the first node and the second node, and Delay1, Delay2, and Delay3 are transmission delay values calculated based on the first sending time, the first receiving time, the second sending time, and the second receiving time. For the first message with the message identifier 4 sent for the fourth time, the first node did not receive the corresponding second message within the time threshold, so the detection result is a timeout.
[0156] Taking the channel detection results corresponding to the second detection type as an example, the echoed channel detection results are as follows:
[0157] 1.Isrid1 TTL = 254 time = delay1
[0158] 2.Isrid2 TTL = 253 time = delay2
[0159] 3.timeout
[0160] 4…
[0161] Among them, Isrid is the third identifier of the reference node. In the case where the target channel includes the first node, intermediate node A, intermediate node B, intermediate node C, and the second node, Isrid1 is the third identifier of intermediate node A, Isrid2 is the third identifier of intermediate node B, TTL is the first parameter, and time is the transmission delay between the first node and the reference node.
[0162] Exemplarily, the first node can also determine whether there is an abnormality in the target channel according to the channel detection results. For example, compare the transmission delay in the channel detection results with the delay threshold; in the case where the transmission delay is greater than the delay threshold, determine that there is an abnormality in the channel between the first node and the reference node, or, in the case where the transmission delay is not greater than the delay threshold, determine that there is no abnormality in the channel between the first node and the reference node. Among them, the delay threshold can be any duration set based on experience. The channel between the first node and the reference node can be the entire target channel. For example, when the reference node is the second node, the channel between the first node and the reference node can also be a part of the target channel. For example, when the reference node is an intermediate node of the target channel.
[0163] For the case where the channel detection result includes a first parameter, since the first parameter indicates the number of forwarding hops of the first packet between the first node and the reference node, the first parameters corresponding to the same reference node should be equal. For example, in the above embodiment, the first node executes the ping command four times, and the first packet is sent from the first node to the second node through the same target channel and forwarded through the same intermediate nodes, and the obtained TTL values are all equal to 252. The difference between the first parameters corresponding to adjacent reference nodes should be equal to the adjustment value. For example, in the channel detection result displayed when the first node executes the tracert command in the above embodiment, where the TTL of reference node 1 is 254, the TTL of reference node 2 is 253, reference node 2 is the adjacent downstream node of reference node 1, and the difference between the TTL corresponding to reference node 1 and the TTL corresponding to reference node 2 is the adjustment value 1.
[0164] Based on the above principle, the first node can determine whether the target channel is abnormal according to multiple first parameters. Exemplarily, the first node obtains second parameters in multiple second packets returned by the same reference node, and determines multiple first parameters according to the multiple second parameters; when the multiple first parameters are the same, it is determined that the channel between the first node and the reference node is normal, or, when the multiple first parameters are different, it is determined that the channel between the first node and the reference node is abnormal. Taking the example that the first node executes the ping command multiple times and obtains multiple second packets returned by the second node, the first node parses the TTL carried in each of the multiple second packets to obtain the first parameter TTL in the channel detection result. When the TTLs are the same and all equal to 252, it is determined that the target channel between the first node and the second node is normal. When the TTLs are different, the difference can be completely different or partially different. For example, the three TTLs are 252, 253, and 253 respectively, and thus it is determined that the target channel between the first node and the second node is abnormal.
[0165] In a possible implementation, the first node can maintain a parameter set, where a parameter set is used to write the first parameter corresponding to a reference node. The first node determines the first parameter according to the value of the second parameter in the currently received second packet, and writes the determined first parameter into the parameter set. When the written first parameter is the same as the first parameter already stored in the parameter set, it is determined that the channel between the first node and the reference node is normal. When the written first parameter is different from the first parameter already stored in the parameter set, it is determined that the channel between the first node and the reference node is abnormal.
[0166] Optionally, the first node may also obtain a second parameter in the second message returned by an adjacent reference node, and determine a plurality of first parameters according to the plurality of second parameters; determine the difference between adjacent first parameters, where the adjacent first parameters refer to two first parameters determined according to the second messages returned by adjacent reference nodes; in the case where the difference is equal to an adjustment value, determine that the target channel is normal, or, in the case where the difference is not equal to the adjustment value, determine that the target channel is abnormal. Wherein, the adjustment value is the value of a third parameter adjusted by the intermediate node when receiving the first message. When the intermediate node decrements the TTL by 1 after receiving the first message, the adjustment value is 1. The first node may count the difference between adjacent first parameters, and compare the calculated difference with the adjustment value, so as to determine whether there is an abnormality in the target channel.
[0167] Exemplarily, Figure 3 For introducing the interaction process between the first node and the second node, in a possible implementation manner, the process of the first node executing the channel detection method includes performing the operations of S301, S302, S306, and S307, and the process of the second node executing the channel detection method includes performing the operations of S303, S304, and S305.
[0168] In summary, for the channel detection method provided by the embodiments of the present application, the message structures of the first message and the second message both include a plurality of base frames, such as a first base frame and a second base frame, and different base frames are transmitted at different times, that is, the first message and the second message are small granularity messages transmitted using different time slots. By carrying detection request information or detection response information in the small granularity messages transmitted on the target channel, the detection of the target channel is realized. By carrying detection request information in the first message, the ping and tracert functions of the target channel are realized, and the connectivity of the target channel and the transmission delay of the target channel can be detected conveniently and quickly. Moreover, in the case of node failures, the faulty node can be located according to the response situation of the reference nodes. For example, the reference node with a response timeout is the faulty node, and the fault location accuracy is high and the response is more timely.
[0169] The above introduces the channel detection method of the embodiments of the present application. Corresponding to the above method, the embodiments of the present application also provide a channel detection device. Figure 15 It is a schematic structural diagram of a channel detection device provided by the embodiments of the present application. Based on Figure 15 the following multiple modules shown, this Figure 15 shown channel detection device can execute all or part of the operations of the above Figure 3 shown first node. It should be understood that the device may include more additional modules than the shown modules or omit some of the shown modules, and the embodiments of the present application do not limit this. As Figure 15As shown, the device is applied to the first node, and the first node is configured at the source end of the target channel to be detected. The device includes:
[0170] A processing module 1501, configured to obtain a first message carrying detection request information, where the first message includes a plurality of first base frames;
[0171] A transceiver module 1502, configured to transmit the first message through the target channel, and different first base frames are transmitted through the target channel at different times;
[0172] The transceiver module 1502 is further configured to receive a second message returned by a reference node through the target channel based on the detection request information. The reference node is a node configured on the target channel, the second message carries detection response information, the second message includes a plurality of second base frames, and different second base frames are transmitted through the target channel at different times;
[0173] The processing module 1501 is further configured to determine the channel detection result of the target channel according to the detection response information.
[0174] In a possible implementation, the first base frame includes an overhead frame. The processing module 1501 is configured to obtain a request message corresponding to the detection request information, where the request message includes the detection request information; split the request message according to the message structure of the request message to obtain a plurality of split results; write the plurality of split results into a plurality of overhead frames of the first message to obtain the first message.
[0175] In a possible implementation, the message structure includes message lines. The processing module 1501 is configured to split the request message according to the message lines of the request message.
[0176] In a possible implementation, the processing module 1501 is configured to determine a first sequence number corresponding to each split result to obtain a plurality of first sequence numbers; determine a second sequence number of each overhead frame in the plurality of overhead frames to obtain a plurality of second sequence numbers, where the plurality of second sequence numbers are not less than the plurality of first sequence numbers; for any split result, determine, from the plurality of second sequence numbers, a second sequence number that is the same as the first sequence number corresponding to the any split result, and write the any split result into the overhead frame corresponding to the determined second sequence number.
[0177] In a possible implementation, the processing module 1501 is configured to write the detection request information into a data field of a control code block of the first message, where the control code block is a code block between adjacent first base frames of the first message.
[0178] In a possible implementation, the first message includes a service message.
[0179] In a possible implementation, the detection request information includes a first detection type, the first detection type indicating a second node of a target channel to be detected, the reference node including a second node configured at a sink end of the target channel, and a transceiver module 1502 configured to receive a second message sent by the second node to a first node through the target channel based on the first detection type.
[0180] In a possible implementation, the detection request information includes a second detection type, the second detection type indicating all nodes included in a target channel to be detected, the reference node including a second node configured at a sink end of the target channel and an intermediate node of the target channel, and a transceiver module 1502 configured to receive at least one second message sent by each of at least one reference node to a first node through the target channel based on the second detection type.
[0181] In a possible implementation, the channel detection result includes a transmission delay, and a processing module 1501 is configured to determine a first reception time when the first node receives the second message; determine a first transmission time when the first node sends a first message; determine a second reception time and a second transmission time carried in the detection response information, the second reception time indicating a time when the reference node receives the first message, and the second transmission time indicating a time when the reference node sends the second message; and determine a transmission delay between the reference node and the first node according to the first transmission time, the first reception time, the second reception time, and the second transmission time.
[0182] In a possible implementation, the channel detection result includes a first parameter, the first parameter indicating a forwarding hop count corresponding to the second message, and a processing module 1501 is configured to parse a second parameter carried in the detection response information and determine the second parameter as the first parameter, the value of the second parameter being determined by the reference node according to a value of a third parameter in the received first message, and the value of the third parameter being adjusted by an intermediate node between the first node and the reference node during transmission.
[0183] The message structures of the first message and the second message of the above device both include a plurality of base frames, and different base frames are transmitted at different times, that is, the first message and the second message are small-granularity messages transmitted using different time slots. By carrying detection request information or detection response information in the small-granularity messages, channel detection of a target channel can be implemented. Even if the target channel is a transmission channel using small-granularity technology, channel detection can be achieved, ensuring the maintainability and reliability of the target channel, and the transmission quality of the target channel is high.
[0184] An embodiment of the present application further provides another channel detection device. Figure 16 is a schematic structural diagram of a channel detection device provided by an embodiment of the present application. Based on Figure 16 the following multiple modules shown, the Figure 16The channel detection device shown above can perform all or part of the operations of the reference node shown above. It should be understood that the device may include more additional modules than those shown or omit some of the modules shown, and the embodiments of the present application do not limit this. As Figure 3 shown, the device is applied to a reference node, and the reference node is configured in the target channel to be detected. The device includes: Figure 16 shown, the device is applied to a reference node, and the reference node is configured in the target channel to be detected. The device includes:
[0185] A transceiver module 1601, configured to receive a first message carrying detection request information sent by a first node through the target channel. The first node is configured at the source end of the target channel, and the first message includes multiple first base frames, and different first base frames are transmitted through the target channel at different times;
[0186] A processing module 1602, configured to obtain detection response information and obtain a second message carrying the detection response information. The second message includes multiple second base frames;
[0187] The transceiver module 1601 is further configured to send the second message to the first node through the target channel. The second message is used for the first node to determine the channel detection result of the target channel, and different second base frames are transmitted through the target channel at different times.
[0188] In a possible implementation manner, the processing module 1602 is further configured to obtain detection request information according to the first message; determine the nodes to be detected according to the detection request information; and in the case that the nodes to be detected include the reference node, determine that the reference node needs to return detection response information.
[0189] In a possible implementation manner, the first base frame includes an overhead frame. The processing module 1602 is configured to parse multiple overhead frames of the first message, determine the splitting results written in each overhead frame according to the parsing results, and obtain multiple splitting results; splice the multiple splitting results to obtain a request message corresponding to the detection request information; and obtain the detection request information included in the request message.
[0190] In a possible implementation manner, the processing module 1602 is configured to determine the first sequence number corresponding to each splitting result according to the second sequence number of the overhead frame written in each splitting result; and splice the multiple splitting results according to the first sequence number corresponding to each splitting result to obtain the request message.
[0191] In a possible implementation manner, the processing module 1602 is configured to parse the data field of the control code block of the first message, and determine the detection request information written in the data field according to the parsing result. The control code block is the code block between adjacent first base frames of the first message.
[0192] In a possible implementation manner, the first message includes a service message.
[0193] In a possible implementation, the detection request information includes a first detection type, the first detection type indicating a second node of a target channel to be detected, the reference node including the second node, the second node being configured at the sink end of the target channel, or the detection request information includes a second detection type, the second detection type indicating all nodes included in the target channel to be detected, the reference node including the second node and intermediate nodes of the target channel.
[0194] In a possible implementation, the channel detection result includes a transmission delay. The processing module 1602 is configured to determine a second reception time when the reference node receives a first message; determine a second transmission time when the reference node sends a second message, to obtain detection response information including the second reception time and the second transmission time, the second reception time and the second transmission time being used to determine the transmission delay between the reference node and the first node.
[0195] In a possible implementation, the channel detection result includes a first parameter, the first parameter indicating the number of forwarding hops corresponding to the second message. The processing module 1602 is configured to determine the value of a second parameter included in the detection response information according to the value of a third parameter carried in the first message, the value of the third parameter being adjusted during transmission by an intermediate node between the first node and the reference node.
[0196] In a possible implementation, the reference node is an intermediate node of the target channel. The transceiver module 1601 is further configured to send a first message carrying the detection request information to the second node.
[0197] After receiving the first message, the above device will carry detection response information in a second message including a plurality of second base frames. Since the second base frames included in the second message are transmitted at different times, the second message belongs to a small particle message segmented by a small particle technology. By carrying the detection response information in the second message, channel detection of the target channel can be realized. Even if the target channel is a transmission channel using small particle technology, channel detection can also be realized, ensuring the maintainability and reliability of the target channel, and the transmission quality of the target channel is high.
[0198] It should be understood that when the above Figure 15 or Figure 16 provided device realizes its functions, only the above division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be elaborated here.
[0199] See Figure 17 , Figure 17The figure shows a schematic structural diagram of a network device 1700 provided by an exemplary embodiment of the present application. Figure 17 The illustrated network device 1700 is used to perform the operations involved in the above Figure 3 illustrated channel detection method. The network device 1700 is, for example, a switch, a router, etc., and the network device 1700 can be implemented by a general bus architecture.
[0200] As Figure 17 shown, the network device 1700 includes at least one processor 1701, a memory 1703, and at least one communication interface 1704.
[0201] The processor 1701 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing unit (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 1701 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in connection with the disclosure of the embodiments of the present application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
[0202] Optionally, network device 1700 further includes a bus. The bus is used to transfer information between the components of network device 1700. The bus can be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 17 it is represented by only a thick line in Figure 17 , but it does not mean that there is only one bus or one type of bus.
[0203] Memory 1703 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. Memory 1703 exists independently, for example, and is connected to processor 1701 through the bus. Memory 1703 can also be integrated with processor 1701.
[0204] The communication interface 1704 uses any transceiver-like device for communicating with other devices or communication networks, which can be Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. The communication interface 1704 can include a wired communication interface and can also include a wireless communication interface. Specifically, the communication interface 1704 can be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area networks (WLAN) interface, a cellular network communication interface, or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. In the embodiments of the present application, the communication interface 1704 can be used for the network device 1700 to communicate with other devices.
[0205] In a specific implementation, as an embodiment, the processor 1701 can include one or more CPUs, such as Figure 17 CPU0 and CPU1 shown in. Each of these processors can be a single-CPU processor or a multi-CPU processor. Here, the processor can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0206] In a specific implementation, as an embodiment, the network device 1700 can include multiple processors, such as Figure 17 the processor 1701 and the processor 1705 shown in. Each of these processors can be a single-CPU processor or a multi-CPU processor. Here, the processor can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0207] In a specific implementation, as an embodiment, the network device 1700 may further include an output device and an input device. The output device communicates with the processor 1701 and can display information in various ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector, etc. The input device communicates with the processor 1701 and can receive user input in various ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensing device, etc.
[0208] In some embodiments, the memory 1703 is used to store the program code 1710 for executing the solution of this application, and the processor 1701 can execute the program code 1710 stored in the memory 1703. That is, the network device 1700 can implement the channel detection method provided in the method embodiment through the processor 1701 and the program code 1710 in the memory 1703. The program code 1710 may include one or more software modules. Optionally, the processor 1701 itself may also store the program code or instructions for executing the solution of this application.
[0209] In a specific embodiment, the network device 1700 of the embodiment of this application may correspond to the computing device in each of the above method embodiments.
[0210] Among them, Figure 3 Each step of the shown channel detection method is completed by the integrated logic circuit of the hardware in the processor of the network device 1700 or the instructions in software form. The steps of the method disclosed in combination with the embodiments of this application can be directly embodied as being executed and completed by the hardware processor, or executed and completed by the combination of the hardware and software modules in the processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method. To avoid repetition, it will not be described in detail here.
[0211] See Figure 18 , Figure 18 shows a schematic structural diagram of a network device 1800 provided by another exemplary embodiment of this application. Figure 18 The shown network device 1800 is used to execute all or part of the operations involved in the above Figure 3 shown channel detection method. The network device 1800 is, for example, a switch, a router, etc., and the network device 1800 can be implemented by a general bus architecture.
[0212] As shown Figure 18 in the figure, the network device 1800 includes: a main control board 1810 and an interface board 1830.
[0213] The main control board is also referred to as the main processing unit (MPU) or the route processor card. The main control board 1810 is used for controlling and managing each component in the network device 1800, including routing calculation, device management, device maintenance, and protocol processing functions. The main control board 1810 includes: a central processing unit 1811 and a memory 1812.
[0214] The interface board 1830 is also referred to as the line processing unit (LPU), line card, or service board. The interface board 1830 is used to provide various service interfaces and implement packet forwarding. The service interfaces include, but are not limited to, Ethernet interfaces, POS (Packet over SONET / SDH) interfaces, etc. The Ethernet interface is, for example, a Flexible Ethernet Clients (FlexE Clients) interface. The interface board 1830 includes: a central processing unit 1831, a network processor 1832, a forwarding table entry memory 1834, and a physical interface card (PIC) 1833.
[0215] The central processing unit 1831 on the interface board 1830 is used to control and manage the interface board 1830 and communicate with the central processing unit 1811 on the main control board 1810.
[0216] The network processor 1832 is used to implement the forwarding processing of packets. The form of the network processor 1832 can be a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 1832 is used to forward the received packets based on the forwarding table entries stored in the forwarding table entry memory 1834. If the destination address of the packet is the address of the network device 1800, the packet is sent to the CPU (such as the central processing unit 1831) for processing; if the destination address of the packet is not the address of the network device 1800, the next hop and output interface corresponding to the destination address are found from the forwarding table according to the destination address, and the packet is forwarded to the output interface corresponding to the destination address. Among them, the processing of the upstream packets can include: the processing of the packet input interface and the forwarding table lookup; the processing of the downstream packets can include: the forwarding table lookup, etc. In some embodiments, the central processing unit can also perform the functions of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for a forwarding chip in the interface board.
[0217] The physical interface card 1833 is used to implement the docking function at the physical layer. The original traffic enters the interface board 1830 from here, and the processed packets are sent out from the physical interface card 1833. The physical interface card 1833 is also called a daughter card and can be installed on the interface board 1830. It is responsible for converting optical and electrical signals into packets, performing a legality check on the packets, and then forwarding them to the network processor 1832 for processing. In some embodiments, the central processing unit 1831 can also perform the functions of the network processor 1832, such as implementing software forwarding based on a general-purpose CPU, so that there is no need for the network processor 1832 in the physical interface card 1833.
[0218] Optionally, the network device 1800 includes multiple interface boards. For example, the network device 1800 further includes an interface board 1840, and the interface board 1840 includes: a central processing unit 1841, a network processor 1842, a forwarding table entry memory 1844, and a physical interface card 1843. The functions and implementation manners of the components in the interface board 1840 are the same as or similar to those in the interface board 1830, and will not be elaborated here.
[0219] Optionally, the network device 1800 further includes a switch fabric board 1820. The switch fabric board 1820 may also be referred to as a switch fabric unit (SFU). When the network device 1800 has multiple interface boards, the switch fabric board 1820 is used to complete data exchange between the interface boards. For example, the interface board 1830 and the interface board 1840 may communicate through the switch fabric board 1820.
[0220] The main control board 1810 is coupled to the interface board. For example, the main control board 1810, the interface board 1830, the interface board 1840, and the switch fabric board 1820 are interconnected through a system bus and a system backplane. In a possible implementation, an inter-process communication (IPC) channel is established between the main control board 1810 and the interface board 1830 and the interface board 1840, and the main control board 1810 communicates with the interface board 1830 and the interface board 1840 through the IPC channel.
[0221] Logically, the network device 1800 includes a control plane and a forwarding plane. The control plane includes the main control board 1810 and the central processing unit 1811, and the forwarding plane includes various components that perform forwarding, such as a forwarding table entry memory 1834, a physical interface card 1833, and a network processor 1832. The control plane performs functions such as acting as a router, generating a forwarding table, processing signaling and protocol packets, and configuring and maintaining the state of the network device. The control plane distributes the generated forwarding table to the forwarding plane. In the forwarding plane, the network processor 1832 looks up the packets received by the physical interface card 1833 based on the forwarding table distributed by the control plane and forwards them. The forwarding table distributed by the control plane may be stored in the forwarding table entry memory 1834. In some embodiments, the control plane and the forwarding plane may be completely separated and not on the same network device.
[0222] It should be noted that there may be one or more main control boards. When there are multiple main control boards, it may include an active main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capacity of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching fabric board, or there may be one or more switching fabric boards. When there are multiple switching fabric boards, they can jointly achieve load sharing and redundant backup. In a centralized forwarding architecture, the network device may not require a switching fabric board, and the interface board undertakes the processing function of the service data of the entire system. In a distributed forwarding architecture, the network device may have at least one switching fabric board, and data exchange between multiple interface boards is achieved through the switching fabric board, providing a large-capacity data exchange and processing capacity. Therefore, the data access and processing capabilities of network devices with a distributed architecture are greater than those of network devices with a centralized architecture. Optionally, the form of the network device may also be a single board card, that is, there is no switching fabric board, and the functions of the interface board and the main control board are integrated on this single board card. At this time, the central processing unit on the interface board and the central processing unit on the main control board can be combined into one central processing unit on this single board card to execute the functions after the superposition of the two. The data exchange and processing capabilities of network devices in this form are relatively low (for example, network devices such as low-end switches or routers). Which architecture to specifically adopt depends on the specific networking deployment scenario and is not limited here.
[0223] In a specific embodiment, the network device 1800 corresponds to the above Figure 15 or Figure 16 channel detection device shown. In some embodiments, Figure 15 the processing module 1501 in the channel detection device shown is equivalent to the central processing unit 1811 or the network processor 1832 in the network device 1800.
[0224] An embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. Among them, the transceiver, the memory, and the processor communicate with each other through an internal connection path. The memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals. And when the processor executes the instructions stored in the memory, the processor is caused to execute the channel detection method.
[0225] It should be understood that the above-mentioned processor may be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It should be noted that the processor may be a processor that supports the advanced RISC machines (ARM) architecture.
[0226] Further, in an alternative embodiment, the above-mentioned memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0227] The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a ROM, a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an EEPROM or a flash memory. The volatile memory may be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).
[0228] An embodiment of the present application also provides a channel detection device, which includes a processor for loading and running at least one instruction to enable the channel detection device to implement the channel detection method provided by the embodiment of the present application. Optionally, the device further includes a memory coupled to the processor, and the memory is used to store at least one instruction.
[0229] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored, and the instruction is loaded and executed by the processor to enable the computer to implement the channel detection method described in any one of the above.
[0230] An embodiment of the present application also provides a computer program (product), when the computer program is executed by a computer, it can cause the processor or the computer to execute the corresponding steps and / or processes in the above method embodiments.
[0231] An embodiment of the present application further provides a chip, which includes a processor for calling and running instructions stored in the memory, so that a communication device installed with the chip executes any one of the above channel detection methods.
[0232] Another embodiment of the present application further provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor is configured to execute the code in the memory. When the code is executed, the processor is configured to execute any one of the above channel detection methods.
[0233] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk).
[0234] It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are all authorized by the user or fully authorized by all parties. The collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions. For example, the first message involved in the present application is obtained under full authorization.
[0235] Those of ordinary skill in the art will realize that, in combination with the method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware, or any combination thereof. To clearly illustrate the interchangeability of hardware and software, the steps and components of the embodiments have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0236] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disk, or the like.
[0237] When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the methods of the embodiments of this application can be described in the context of machine-executable instructions, such as program modules executed in devices included in a target real or virtual processor. Generally speaking, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., which perform specific tasks or implement specific abstract data structures. In the embodiments, the functions of the program modules can be combined or split among the described program modules. The machine-executable instructions for the program modules can be executed within local or distributed devices. In a distributed device, the program modules can be located in both local and remote storage media.
[0238] The computer program code for implementing the methods of the embodiments of this application can be written in one or more programming languages. These computer program codes can be provided to the processors of general-purpose computers, special-purpose computers, or other programmable channel detection devices, such that when the program codes are executed by the computer or other programmable channel detection devices, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program codes can be executed entirely on the computer, partially on the computer, as an independent software package, partially on the computer and partially on a remote computer, or entirely on a remote computer or server.
[0239] In the context of the embodiments of this application, the computer program code or relevant data can be carried by any suitable carrier, so that the device, apparatus, or processor can execute the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like.
[0240] Examples of signals can include electrical, optical, radio, acoustic, or other forms of propagated signals, such as carrier waves, infrared signals, and the like.
[0241] A machine-readable medium can be any tangible medium that contains or stores a program for or relevant to an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. More detailed examples of machine-readable storage media include electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0242] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices, and modules described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0243] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical functional division, and there can be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the shown or discussed couplings, direct couplings, or communication connections to each other can be indirect couplings or communication connections through some interfaces, devices, or modules, and can also be electrical, mechanical, or other forms of connections.
[0244] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they can be located in one place or distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiments of this application.
[0245] In addition, the functional modules in each embodiment of this application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
[0246] When the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in various embodiments of this application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.
[0247] In this application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and effects. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor are the quantity and execution order limited. It should also be understood that although the following description uses terms such as first and second to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of various described examples, the first image can be referred to as the second image, and similarly, the second image can be referred to as the first image. Both the first image and the second image can be images, and in some cases, they can be separate and different images.
[0248] It should also be understood that in various embodiments of this application, the magnitude of the sequence numbers of each process does not mean the order of execution is prior or subsequent. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.
[0249] In this application, the meaning of the term "at least one" refers to one or more, and the meaning of the term "multiple" refers to two or more. For example, multiple second messages refer to two or more second messages. In this article, the terms "system" and "network" are often used interchangeably.
[0250] It should be understood that the terms used in the description of various described examples in this article are only for describing specific examples and are not intended to be limiting. As used in the description of various described examples and the appended claims, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.
[0251] It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a correlative relationship describing associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. Additionally, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0252] It should also be understood that the term "comprises" (also known as "includes", "including", "comprises", and / or "comprising") when used in this specification specifies the presence of the stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or their groups.
[0253] It should also be understood that the terms "if" and "when" can be interpreted to mean "when" ("when" or "upon") or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if it is determined..." or "if [the stated condition or event] is detected" can be interpreted to mean "when it is determined..." or "in response to determining..." or "when [the stated condition or event] is detected" or "in response to detecting [the stated condition or event]".
[0254] It should be understood that determining B based on A does not mean determining B solely based on A. B can also be determined based on A and / or other information.
[0255] It should also be understood that the "one embodiment", "an embodiment", "a possible implementation" mentioned throughout the specification mean that the specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of this application. Therefore, the "in one embodiment" or "in an embodiment", "a possible implementation" that appear throughout the specification do not necessarily refer to the same embodiment. Additionally, these specific features, structures, or characteristics can be combined in one or more embodiments in any suitable manner.
Claims
1. A channel detection method, characterized in that, The method is applied to a first node, which is configured at the source end of a target channel to be detected. The method includes: Obtain a first message carrying detection request information, where the first message includes a plurality of first base frames; Transmit the first message through the target channel, and different first base frames are transmitted through the target channel at different times; Receive a second message returned by a reference node through the target channel based on the detection request information. The reference node is a node configured on the target channel, and the second message carries detection response information. The second message includes a plurality of second base frames, and different second base frames are transmitted through the target channel at different times; Determine the channel detection result of the target channel according to the detection response information.
2. The method according to claim 1, characterized in that, The first base frame includes an overhead frame. The obtaining of the first message carrying detection request information includes: Obtain a request message corresponding to the detection request information, where the request message includes the detection request information; Split the request message according to the message structure of the request message to obtain a plurality of split results; Write the plurality of split results into a plurality of overhead frames of the first message to obtain the first message.
3. The method according to claim 2, characterized in that, The message structure includes message lines. The splitting of the request message according to the message structure of the request message includes: Split the request message according to the message lines of the request message.
4. The method according to claim 2 or 3, characterized in that, The writing of the plurality of split results into a plurality of overhead frames of the first message includes: Determine first sequence numbers corresponding to the respective split results to obtain a plurality of first sequence numbers; Determine second sequence numbers of the respective overhead frames in the plurality of overhead frames to obtain a plurality of second sequence numbers, where the plurality of second sequence numbers are not less than the plurality of first sequence numbers; For any one of the split results, determine a second sequence number that is the same as the first sequence number corresponding to the any one of the split results from the plurality of second sequence numbers, and write the any one of the split results into the overhead frame corresponding to the determined second sequence number.
5. The method according to claim 1, characterized in that, The obtaining of the first message carrying detection request information includes: Write the detection request information into the data field of the control code block of the first message. The control code block is the code block between adjacent first base frames of the first message.
6. The method according to claim 5, characterized in that, The first message includes a service message.
7. The method according to any one of claims 1-6, characterized in that, The detection request information includes a first detection type, and the first detection type indicates a second node for detecting the target channel. The reference node includes a second node configured at the sink end of the target channel. The receiving of the second message returned by the reference node through the target channel based on the detection request information includes: Receive the second message sent by the second node to the first node through the target channel based on the first detection type.
8. The method according to any one of claims 1-6, characterized in that, The detection request information includes a second detection type, and the second detection type indicates detecting all nodes included in the target channel. The reference node includes a second node configured at the sink end of the target channel and an intermediate node of the target channel. The receiving of the second message returned by the reference node through the target channel based on the detection request information includes: Receiving at least one second message sent by each reference node in at least one reference node to the first node through the target channel based on the second detection type.
9. The method according to any one of claims 1-8, characterized in that, The channel detection result includes a transmission delay. Determining the channel detection result of the target channel according to the detection response information includes: Determining a first reception time when the first node receives the second message; Determining a first transmission time when the first node sends the first message; Determining a second reception time and a second transmission time carried in the detection response information, where the second reception time indicates the time when the reference node receives the first message, and the second transmission time indicates the time when the reference node sends the second message; Determining a transmission delay between the reference node and the first node according to the first transmission time, the first reception time, the second reception time, and the second transmission time.
10. The method according to any one of claims 1-9, characterized in that, The channel detection result includes a first parameter, and the first parameter indicates the number of forwarding hops corresponding to the second message. Determining the channel detection result of the target channel according to the detection response information includes: Parsing a second parameter carried in the detection response information and determining the second parameter as the first parameter. The value of the second parameter is determined by the reference node according to the value of a third parameter in the received first message, and the value of the third parameter is adjusted by an intermediate node between the first node and the reference node during transmission.
11. A channel detection method, characterized in that,The method is applied to a reference node, and the reference node is configured on a target channel to be detected. The method includes: Receiving a first message carrying detection request information sent by a first node through the target channel. The first node is configured at the source end of the target channel, and the first message includes a plurality of first base frames, and different first base frames are transmitted through the target channel at different times; Obtaining detection response information, obtaining a second message carrying the detection response information, and the second message includes a plurality of second base frames; Sending the second message to the first node through the target channel. The second message is used for the first node to determine the channel detection result of the target channel, and different second base frames are transmitted through the target channel at different times.
12. The method according to claim 11, wherein Before obtaining the detection response information, it further includes: Obtaining the detection request information according to the first message; Determining the node to be detected according to the detection request information; In the case that the node to be detected includes the reference node, determining that the reference node needs to return detection response information.
13. The method according to claim 12, wherein The first base frame includes an overhead frame. Obtaining the detection request information according to the first message includes: Parsing a plurality of overhead frames of the first message, determining a splitting result written in each overhead frame according to the parsing result, and obtaining a plurality of splitting results; Concatenating the plurality of splitting results to obtain a request message corresponding to the detection request information; Obtaining the detection request information included in the request message.
14. The method according to claim 13, wherein The concatenating the plurality of splitting results to obtain a request message corresponding to the detection request information includes: Determine the first sequence number corresponding to each splitting result according to the second sequence number of the overhead frame written according to each splitting result; Concatenate the multiple splitting results according to the first sequence number corresponding to each splitting result to obtain the request message.
15. The method according to claim 12, wherein The obtaining the detection request information according to the first message includes: Parse the data field of the control code block of the first message, and determine the detection request information written in the data field according to the parsing result, where the control code block is the code block between adjacent first base frames of the first message.
16. The method according to claim 15, wherein The first message includes a service message.
17. The method according to any one of claims 12 - 16, wherein The detection request information includes a first detection type, the first detection type indicates detecting a second node of the target channel, the reference node includes the second node, and the second node is configured at the sink end of the target channel; or the detection request information includes a second detection type, the second detection type indicates detecting all nodes included in the target channel, and the reference node includes the second node and intermediate nodes of the target channel.
18. The method according to any one of claims 11 - 17, wherein The channel detection result includes a transmission delay, and the obtaining the detection response information includes: Determine a second reception time when the reference node receives the first message; Determine a second transmission time when the reference node sends the second message, and obtain detection response information including the second reception time and the second transmission time, where the second reception time and the second transmission time are used to determine the transmission delay between the reference node and the first node.
19. The method according to any one of claims 11 - 18, wherein The channel detection result includes a first parameter, the first parameter indicates the forwarding hop count corresponding to the second message, and the obtaining the detection response information includes: Determine the value of a second parameter included in the detection response information according to the value of a third parameter carried in the first message, where the value of the third parameter is adjusted by an intermediate node between the first node and the reference node during transmission.
20. The method according to any one of claims 11 - 19, wherein After the reference node, which is an intermediate node of the target channel, receives the first message carrying the detection request information sent by the first node through the target channel, it further includes: Send the first message carrying the detection request information to the second node.
21. A channel detection device, wherein The apparatus is applied to a first node, the first node is configured at the source end of a target channel to be detected, and the apparatus includes: A transceiver module, configured to perform operations related to reception and / or transmission in any of the methods recited in claims 1-10; A processing module, configured to perform other operations other than operations related to reception and / or transmission in any of the methods recited in claims 1-10.
22. A channel detection device, characterized in that, The apparatus is applied to a reference node, the reference node is configured in a target channel to be detected, and the apparatus includes: A transceiver module, configured to perform operations related to reception and / or transmission in any of the methods recited in claims 11-20; A processing module, configured to perform other operations other than operations related to reception and / or transmission in any of the methods recited in claims 11-20.
23. A channel detection equipment, characterized in that, The device includes a processor, which is configured to load and execute at least one instruction, so that the channel detection device implements the channel detection method described in any one of claims 1-10, or implements the channel detection method described in any one of claims 11-20.
24. A computer-readable storage medium, characterized in that, At least one instruction is stored in the computer-readable storage medium, and the instruction is loaded and executed by the processor to implement the channel detection method described in any one of claims 1-10, or to implement the channel detection method described in any one of claims 11-20.
25. A chip, characterized in that, The chip includes a processor, which is used to run program instructions or code, so that the device including the chip executes the channel detection method described in any one of claims 1-10, or executes the channel detection method described in any one of claims 11-20.
Citation Information
Cited By
Communication method and apparatus
WO2026130445A1