Communication Link Establishment Method, Device, Storage Medium and Product

By identifying network devices and sending protocol messages at specific delay times, the method addresses the challenge of low communication link re-establishment success rates after server restarts, ensuring accurate and timely link re-establishment.

CN120091055BActive Publication Date: 2025-07-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510526252.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-25
Publication Date
2025-07-15
Estimated Expiration
2045-04-25

AI Technical Summary

Technical Problem

After the server restarts for a short time, the communication link establishment success rate is low, and the existing technology cannot restore link connections in time.

Method used

By acquiring the delay data set of the network device, determining the first delay transmission time, outputting protocol messages to trigger the status update of the network device, and monitoring the establishment of the trigger messages to realize automatic reconstruction of the communication link.

Benefits of technology

Improves the success rate and stability of link establishment, ensuring rapid recovery of communication connections after device restart or network fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120091055B_ABST
    Figure CN120091055B_ABST
Patent Text Reader

Abstract

The present application discloses a communication link establishment method, device, storage medium, and product, relating to the field of communication technologies. The method includes determining a network device corresponding to a link to be established according to one or more links to be established, thereby achieving accurate identification between the communication path and the interaction target; obtaining a delay data set corresponding to the network device, and determining a first delay transmission duration according to the delay data set, thereby achieving matching between the protocol message transmission time and the response characteristics of the network device; outputting a protocol message that satisfies the first delay transmission duration to the network device, monitoring a connection trigger message sent by the network device, and when receiving the connection trigger message, establishing a communication link between a first device end and a second device end through the network device corresponding to the connection trigger message according to the connection trigger message. By means of strategic delay control, the method achieves reduction of connection failures caused by unrefreshed device states, and improves the success rate and stability of link establishment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and particularly to a communication link establishment method, device, storage medium, and product. Background Art

[0002] The establishment of a communication link between a server and a storage system depends on the monitoring and notification mechanism of the network state by a switch. Usually, the server and the storage system will regularly send packets for notifying the online state of the device to the switch. After receiving these packets, the switch will mark the devices connected to the corresponding ports as the online state; if no packet is received within a period of time, the device state will be marked as offline. When the device state changes (i.e., from the offline state to the online state), the switch will send a link establishment packet to the server, prompting it to establish a link connection.

[0003] However, after the server is restarted, its network service usually resumes within a short period of time and quickly sends packets to the switch. If the switch has not completed the recognition of the "offline state" of the server, that is, has not switched its state from online to offline, it will consider that the server is always in the online state. At this time, the switch will not send a link establishment packet to the server, and thus the communication link between the server and the storage system cannot be re-established. Based on this, there is an urgent need for a communication link establishment method to solve the technical problem of low success rate of restoring link establishment after the server is restarted in a short time. Summary of the Invention

[0004] This application provides a communication link establishment method, device, storage medium, and product to at least solve the problem of low success rate of restoring link establishment in related technologies.

[0005] This application provides a communication link establishment method, including:

[0006] Determine network devices corresponding to the to-be-established links according to one or more to-be-established links, and obtain one or more delay data sets according to at least one network device;

[0007] Wherein, a first device end establishes a communication link with a second device end through a network device;

[0008] Obtain a first delay sending duration corresponding to the network device according to one or more delay data sets, and output a protocol packet that meets the first delay sending duration to the network device to trigger the network device to send a establishment trigger packet after receiving the protocol packet;

[0009] Monitor the reception status of the establishment trigger packet, and when the establishment trigger packet is received, establish a communication link between the first device end and the second device end through the network device corresponding to the establishment trigger packet according to the establishment trigger packet.

[0010] The present application also provides a communication link establishment device, including:

[0011] A data acquisition module, configured to determine network devices corresponding to the links to be established according to one or more links to be established, and acquire one or more delay data sets according to at least one network device; wherein, a first device end establishes a communication link with a second device end through the network device.

[0012] A delay sending module, configured to acquire a first delay sending duration corresponding to the network device according to one or more delay data sets, and output protocol packets satisfying the first delay sending duration to the network device, so as to trigger the network device to send a establishment trigger packet after receiving the protocol packets.

[0013] A link establishment module, configured to monitor the reception status of the establishment trigger packet, and when receiving the establishment trigger packet, establish a communication link between the first device end and the second device end through the network device corresponding to the establishment trigger packet according to the establishment trigger packet.

[0014] The present application also provides an electronic device, including: a memory, configured to store a computer program; a processor, configured to implement the steps of any one of the above communication link establishment methods when executing the computer program.

[0015] The present application also provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program implements the steps of any one of the above communication link establishment methods when executed by a processor.

[0016] The present application also provides a computer program product, including a computer program, which implements the steps of any one of the above communication link establishment methods when executed by a processor.

[0017] Through the to-be-established link, the network device corresponding to the link is determined, achieving accurate identification between the communication path and the interaction target, ensuring that the sending of the message has a clear directionality, and improving the hit rate and effectiveness of the link establishment process. By obtaining the delay data set corresponding to the network device and determining the first delay sending duration based on this data set, the matching between the sending rhythm of the protocol message and the response characteristics of the network device is achieved. Through strategic delay control, the link establishment failure rate caused by unrefreshed device status and unupdated link status is reduced, and the success rate and stability of link establishment are improved. By outputting the protocol message that meets the first delay sending duration, the network device is triggered to actively send a establishment trigger message under its status perception mechanism, achieving the purpose of completing the restoration and reconstruction of the communication link without additional manual intervention. Through real-time monitoring and parsing of the establishment trigger message, a rapid response to link establishment is achieved. Therefore, the technical problem of low success rate of link establishment after a short restart can be solved, and the timeliness of link establishment instruction execution and the success rate of link establishment can be improved. Description of the Drawings

[0018] To more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0019] Figure 1 It is a schematic diagram of the scenario architecture of the present application;

[0020] Figure 2 It is a schematic flowchart of the method for establishing a communication link provided by an embodiment of the present application;

[0021] Figure 3 It is a schematic flowchart of the method for progressive delay provided by an embodiment of the present application;

[0022] Figure 4 It is a schematic flowchart of the method for obtaining the first delay sending duration provided by an embodiment of the present application;

[0023] Figure 5 It is a schematic flowchart of the method for obtaining the second delay sending duration provided by an embodiment of the present application;

[0024] Figure 6 It is a schematic diagram of the structure of the communication link establishment device provided by an embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of the structure of the electronic device provided by the present application. Detailed Embodiments

[0026] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0027] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and not to describe a specific order or sequence.

[0028] The inventive concept of the present application is to provide a communication link establishment method, aiming to improve the automatic reconstruction ability of the communication link after device restart, network fluctuation or link anomaly, and ensure that the data transmission channel between the first device end and the second device end can quickly and stably resume connection. The core concept is to determine the network devices related to the link to be established according to the link to be established, and obtain the corresponding delay data set for each network device. This delay data set records the response characteristics of the network device during the state judgment process and constitutes the decision basis for subsequent delay packet sending scheduling. Further, according to the delay data set, the first delay sending duration is extracted, and the sending rhythm of the protocol packet is controlled with this as the threshold to ensure that the network device is accurately triggered and its state change and response mechanism for the first device end. After the network device receives the packet and determines that the corresponding port state becomes online, it returns a connection trigger packet to the first device end. After the first device end monitors this connection trigger packet, it initiates the establishment of the communication link with the second device end. Through the whole process, the automation and high success rate of link reconstruction are achieved.

[0029] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] Refer to Figure 1 , Figure 1This is a schematic diagram of the scenario architecture of the present application. The architecture includes a first device end 101, a second device end 103, and a network device 102 disposed therebetween. The first device end 101 is the initiating end of the communication link, such as a server, and is used to actively perform link status monitoring and connection operations. The second device end 103 is the target node of the link, usually a remote device that provides data or services, such as a storage system or other communicable entity. Between the first device end 101 and the second device end 103, one or more network devices 102 are deployed. The network device 102 can be a switch or other network relay node with link forwarding and status awareness capabilities. The network devices 102 are interconnected in sequence through physical links to form a multi-hop or hierarchical network transmission path, enabling the first device end 101 to establish an effective data communication channel with the second device end 103 through the forwarding mechanism between the network devices 102.

[0031] Figure 2 This is a schematic flowchart of the method for establishing a communication link provided by an embodiment of the present application, as Figure 2 shown, including:

[0032] S21, determine the network device corresponding to the link to be established according to one or more links to be established, and obtain one or more delay data sets according to at least one network device; wherein, the first device end establishes a communication link with the second device end through the network device.

[0033] In this embodiment, first, obtain the communication links that have connection requirements but have not been established, and form a set of links to be established. The so-called link to be established refers to a link in which the original communication relationship is interrupted due to reasons such as device restart, network reconstruction, policy adjustment, or temporary exception during network operation, and the communication relationship still needs to exist. Exemplarily, the judgment that the communication relationship still needs to exist can be based on various source information, including network configuration, service scheduling dependency, interface state change, or link historical information, etc. Through this identification process, the missing situation of the communication link can be discovered in time. After obtaining one or more links to be established, it is necessary to obtain the network devices related to these links. The network device is usually located in the middle of the communication link and plays roles such as relaying, forwarding, status monitoring, and triggering responses of protocol packets. Obtaining the corresponding network device information is to clarify the transmission path and interaction objects of the packets during the link establishment process, so as to ensure the effective triggering of the establishment action.

[0034] After obtaining the network device information, obtain the delay data information corresponding to the network device. The delay data can reflect the response duration characteristics of the network device and the processing time distribution of connection events under different states, different loads, or different context conditions. By obtaining these delay data, more accurate delay data can be provided for the subsequent establishment of the communication link, reducing the failure of link establishment caused by incorrect timing judgment. Overall, through the three processes of obtaining the link to be established, associating network devices, and extracting delay data, the data foundation before the establishment of the communication link is constructed. This process realizes the active identification of link requirements and the clear analysis of the network structure, improving the accuracy of communication link establishment and the timeliness of response. Especially in scenarios where the network state changes frequently or devices are quickly restarted, it can effectively re - establish the link communication link, enhancing network stability and service continuity.

[0035] S22, according to one or more delay data sets, obtain the first delay transmission duration corresponding to the network device, and output a protocol message that meets the first delay transmission duration to the network device to trigger the network device to send a establishment trigger message after receiving the protocol message.

[0036] In this embodiment, according to one or more delay data sets, determine the first delay transmission duration applicable to the current link establishment scenario. The delay transmission duration is a time parameter determined by combining the response characteristics of the network device to the protocol message, used to control the sending rhythm of the protocol message to adapt to the link establishment trigger conditions of the network device. Through the time characteristics of different dimensions in the delay data set, the waiting time suitable for different network devices can be filtered out as the scheduling basis for subsequent protocol message sending. According to the first delay transmission duration, control the sending timing of the protocol message, and the network device outputs the protocol message. The protocol message is used to inform the network device that the first device - end is currently in the online state. The type of this protocol message can be set according to the specific application network environment, usually a network - layer or link - layer message with link perception or status notification functions, such as link discovery protocol messages, status marker notifications, heartbeat - type data packets, etc., but is not limited to specific protocol implementations. The sending method can be unicast, multicast, or broadcast, specifically depending on the response mechanism of the target network device and the network structure configuration, which is not limited here. The sending action is essentially an active notification process triggered by a delay scheduling mechanism, and its purpose is to activate the state response logic of the network device at the appropriate time.

[0037] After the network device receives a protocol message, it determines, based on its internal status monitoring logic, that an online change has occurred in the connected port or associated node, triggering an operation to send a setup trigger message. The setup trigger message is a message used by the network device to send back to the first device end. Through this process, the network device, as a relay node, completes the transition from status recognition to connection response, thus enabling the communication link establishment process to enter an executable stage. In this embodiment, by determining the packet sending duration based on a delay data set and controlling the sending of protocol messages accordingly, an accurate match of the link establishment trigger condition for the network device is achieved. This method reduces the occurrence of link establishment failures or link idle waiting problems caused by timing misjudgment, improves the adaptability to the response mechanisms of different network devices, enhances the robustness and success rate of the link establishment process in a complex network environment, and ensures the efficient reconstruction of the communication link and service continuity.

[0038] S23, monitor the reception status of the setup trigger message. When the setup trigger message is received, based on the setup trigger message, establish a communication link between the first device end and the second device end through the network device corresponding to the setup trigger message.

[0039] In this embodiment, after sending a protocol message to the network device, it is necessary to continuously monitor the reception status of the setup trigger message. The setup trigger message is a responsive message sent by the network device after receiving the protocol message and completing status updates, used to notify the first device end to perform link establishment. Such a message not only serves as a connection confirmation but also usually carries key parameter information required for link establishment, such as target device identification, network address, protocol identifier, link identifier, or connection domain information, etc. Exemplarily, the reception status of the setup trigger message can be achieved through various mechanisms such as real-time listening or active polling. Sense the status of the target interface or message channel within a specified time window to identify whether the network device has returned a setup trigger message. In actual implementation, this process can be carried out in a software-hardware collaborative manner, such as based on driver-level message listening, etc., but is not limited to any specific deployment form.

[0040] After receiving a valid setup trigger message, immediately parse the message content to extract the information related to link establishment therein. Then, initiate the communication link establishment process between the first device end and the second device end. The link establishment can be achieved through standard protocol commands, network driver interfaces, protocol layer connection instructions, etc. The specific method depends on the communication protocol type, network environment, and device capabilities, and is not specifically limited here. The essence of the establishment action is to enable the first device end to obtain access to the second device end and construct a communication path for protocol interaction and data sending and receiving. Through this embodiment, a closed-loop process from network device status perception to link establishment is achieved. By monitoring the reception status of the setup trigger message, the success rate and efficiency of the communication link establishment process are improved.

[0041] In one embodiment, Figure 3 A schematic diagram of a method for delaying and advancing provided in an embodiment of the present application. Based on the above embodiment, Figure 3 As shown, the establishment method also includes:

[0042] S31, when no establishment trigger message is received, based on the first delayed sending duration and according to one or more delayed data sets, obtaining a second delayed sending duration corresponding to the network device;

[0043] S32, outputting a message sending instruction that satisfies a second delayed sending duration to the network device, and monitoring the receiving status of the establishment trigger message; wherein the second delayed sending duration is greater than the first delayed sending duration.

[0044] In this embodiment, if the first device does not receive the establishment trigger message from the network device after the first delayed sending duration, it will be deemed that the current round of link triggering is unsuccessful, and it is necessary to enter the retry control phase to continue trying to establish the communication link. To this end, it is necessary to recalculate or select the second delayed sending duration for one or more network devices based on the previously acquired delay data set, and send the protocol message to the network device again according to the delay strategy, so as to re-trigger the network device to perform status judgment and response. The acquisition process of the second delayed sending duration depends on the time distribution information available in the delay data set. The delay data set can maintain multiple different levels of delay reference values for each network device, so that a more relaxed but still targeted waiting time can be flexibly selected in different link establishment attempt stages, ensuring that the link establishment strategy is progressive and robust.

[0045] When the second delayed sending duration is determined, a corresponding message sending instruction will be generated for each network device, and the sending time point will be set to meet the second duration requirement. The protocol message is consistent with the content of the first round of sending, and is mainly used to re-notify the online status or communication needs of the first device end, but this time the sending occurs under a strategy with a longer delay, which can adapt to scenarios such as network devices that have not completed status reset or cache refresh for a longer period of time. In summary, the second delayed sending duration is re-acquired, and a delayed retransmission operation is performed, thereby achieving active repair and continuous advancement of the unsuccessful first link establishment attempt. The second delayed sending duration is greater than the first delayed sending duration, reflecting the progressiveness of the strategy, which helps to reduce the problem of occasional loss of message transmission or control logic delay and missing the opportunity to establish a link. By introducing multiple delay strategy levels, it is possible to balance stability and success rate while ensuring the timeliness of link establishment.

[0046] In a specific embodiment, Figure 4Schematic flow chart of the method for obtaining the first delay transmission duration provided by the embodiments of the present application. It is a specific description of an implementation manner for obtaining the first delay transmission duration in step S22 above. On the basis of the above embodiments, as Figure 4 shown, it includes:

[0047] S41. Obtain the average delay transmission duration corresponding to each delay data set according to one or more delay data sets;

[0048] S42. Screen and record the maximum average delay transmission duration as the first delay transmission duration of the network device according to one or more average delay transmission durations.

[0049] In this embodiment, to ensure that the sending timing of the protocol message can accurately match the state update rhythm of each network device, the first delay transmission duration needs to be determined based on the delay data set. Specifically, the delay data set is a set of time characteristics describing the response behavior of the network device to the protocol message during the communication link establishment process. Each delay data set usually contains several sampling results. Based on these data, statistical analysis can be performed on the response behavior of the network device, and the average delay transmission duration reflects the average response delay of the network device in the normal state. The average delay transmission duration can be calculated for each delay data set respectively, and the calculation method can adopt arithmetic mean, weighted mean or dynamic mean algorithm based on a sliding window, and is not limited to a specific manner. This calculation process should ensure that while considering the data volatility, it reflects the typical response behavior of the device at different time periods, so as to enhance the representativeness and practicability of the mean.

[0050] After all the average delay transmission durations are calculated, the results are compared, and the maximum value is selected as the standard reference time for the first delay transmission during the establishment process of this communication link. The strategy of selecting the maximum value is to ensure that in all the links to be established, a delay threshold that is still compatible with the slowest responding device is adopted. This maximum average delay transmission duration is uniformly set as the first delay transmission duration, which is used to control the sending scheduling behavior of the protocol message and is applicable to the initial link establishment attempts of multiple network devices. This embodiment ensures that the first round of link establishment actions in the communication link establishment process have higher robustness and success probability by extracting the delay characteristics based on each delay data set and selecting the most guaranteed time parameter. It should be further noted here that for the same sending time in the above embodiments, the corresponding mean values, that is, different delay transmission durations, can also be set according to different network devices, which does not affect the concept of this embodiment of selecting the mean as the delay sending standard. Whether to adopt a unified sending time in practical applications can be flexibly set by those skilled in the art according to specific needs and scenarios.

[0051] In a specific embodiment, Figure 5Schematic flow chart of the method for obtaining the second delay transmission duration provided by the embodiment of the present application. It is a specific description of an implementation manner of the above step S31. On the basis of the above embodiment, as Figure 5 shown, it includes:

[0052] S51, obtain a delay data set corresponding to the first delay transmission duration, and obtain one or more delay transmission duration confidence intervals in the delay data set;

[0053] S52, according to the preset priority order of the confidence intervals, sequentially set the upper limit value in the delay transmission duration confidence interval as the second delay transmission duration, so as to obtain the second delay transmission duration corresponding to the network device.

[0054] In this embodiment, when the establishment trigger message returned by the network device has not been received after the protocol message is sent based on the first delay transmission duration, it is necessary to enter a more refined delay control stage to further improve the link establishment success rate. This step is to construct a progressive delay retry strategy based on the statistical interval information in the delay data set, and gradually extend the sending waiting time of the protocol message through the sequential selection mechanism of the confidence interval segments. Specifically, first, according to the set first delay transmission duration, retrieve the delay data set corresponding to this duration. And obtain the delay transmission duration confidence interval in the delay data set. Among them, the confidence interval is used to reflect the response time range under different confidence levels. For example, it can be set as a segmented time interval covering 20%, 40%, 60%, 80% to 100% of the sampled data. Each confidence interval contains a set of upper and lower limit values, which are used to describe the distribution characteristics of the link establishment response duration of the network device within a certain probability range.

[0055] After obtaining a delay data set containing multiple confidence intervals, the upper limit values of these intervals will be processed one by one in a preset order as the second delay sending duration for subsequent link establishment attempts. The preset order can be based on the increasing logic of confidence, and attempts can be made from low confidence to high confidence, or other strategies that take into account response efficiency and resource consumption can be adopted. In each attempt, the system will select the upper limit value of the current confidence interval as the delayed sending time of this round of protocol messages to ensure that after this time point, the network device has a high probability of completing the status update and can correctly identify and respond to the protocol message. This processing flow implements a progressive delay control mechanism between multiple confidence intervals, has fault tolerance and adaptability, continuously promotes link establishment actions, and reduces the occurrence of link establishment failures caused by excessive delays in network devices. This embodiment constructs a progressive delay retry method based on the segmented processing method of the confidence interval under the premise that the first delay strategy is not effective, and realizes more accurate adaptive control of the response characteristics of the network device. The ability to tolerate uncertainty in response time during the communication link establishment process is improved, effectively improving the robustness and success rate of the overall link establishment strategy.

[0056] In another specific embodiment, in addition to using the upper limit value in the confidence interval of the delayed sending duration as the second delayed sending duration, the delay adjustment may also be performed in combination with the current environmental parameter information of the first device end, including:

[0057] S61, collecting and acquiring at least one current environment parameter information of the first device end; wherein the environment parameter information includes processor load and / or network interface utilization;

[0058] S62, according to the preset confidence interval priority order, select the upper limit value in the delayed sending duration confidence interval in turn, and obtain the second delayed sending duration according to the upper limit value and at least one current environmental parameter information through the preset delay adjustment rule.

[0059] In this embodiment, to improve the adaptability of the link establishment strategy to complex operating environments, when the packet sending based on the first delay sending duration fails to trigger an effective response from the network device, the corresponding second delay sending duration can be obtained by coordinating historical statistical data with the current environmental state. First, at least one current environmental parameter information of the first device end is collected and obtained. The environmental parameter information refers to measurable data reflecting the current operating state, resource occupancy, and network performance of the first device end, including at least one of the following indicators: one is the processor load, which represents the current computing pressure of the central processing unit and is used to determine whether the first device end has the ability to immediately process connection requests; the other is the network interface utilization rate, which is used to reflect the current bandwidth usage of each network interface of the first device end. A high utilization rate of the interface may cause queuing or delay of protocol packets at the sending end. Subsequently, according to the preset confidence interval priority order, the delay sending duration confidence intervals included in the delay data set are sequentially selected. The delay sending duration confidence interval is a hierarchical interval formed based on the sample statistics of the maximum tolerance duration of the network device, representing the expected link establishment time range under different confidence levels. Try the intervals with lower confidence levels (i.e., shorter delays) first in the preset order (such as 20%, 40%, 60%, 80%, 100%), and gradually extend to higher confidence levels during the retry process.

[0060] After each new upper limit value of the confidence interval is selected, this upper limit value and the at least one collected current environmental parameter information are used as inputs, and the second delay sending duration is calculated and generated by calling the preset delay adjustment rule. The core of the delay adjustment rule is: when detecting processor overload, network congestion, or abnormal delay, appropriately extend the waiting time for packet sending to reduce the initiation of link establishment in a resource-constrained state, thereby improving the link establishment success rate. Exemplarily, when the current environmental parameter of the first device end exceeds the preset threshold, the upper limit value is automatically incrementally adjusted to generate the second delay sending duration. For example, when the processor load value exceeds 2.0 (in a multi-core system environment), the current computing resources are relatively tight. At this time, based on the original upper limit value, a 20-second waiting time is added; or if the interface utilization rate exceeds 85%, a 30-second delay buffer is added. Finally, the generated second delay sending duration not only reflects the statistical expectation of the network device response characteristics but also incorporates the real-time feedback of the current system operating state, realizing the adaptive regulation of the strategy and the environment. It improves the success rate of communication link reconstruction and the rationality of resource use.

[0061] In one embodiment, before determining the network device corresponding to the link to be established according to one or more links to be established, on the basis of the above embodiment, the establishment method further includes:

[0062] S201, obtain the historical link connection information of the first device end, and monitor the link connection statuses of multiple links of the first device end;

[0063] S202, according to the historical link connection information, filter out the links that are not currently connected and have connection records in the historical link connection information as the links to be established, so as to obtain one or more links to be established.

[0064] In this embodiment, to achieve dynamic perception of the current network status, it is necessary to first obtain the historical link connection information of the first device end and analyze and judge it in combination with the current link connection status, so as to identify the communication links that are actually in the disconnected state currently but should be restored according to the existing operation records. Among them, the historical link connection information refers to the recorded data of the communication links established with other devices (such as the second device end) during the operation of the first device end. Such information may include, but is not limited to: link establishment time, used protocol, connection device identifier, network interface mapping, link status change log, connection duration, etc., and is usually automatically recorded and continuously updated by the communication module, link management service or log collection program. This historical information reflects the actual connection behavior between devices in the past cycle.

[0065] After the historical information is extracted, the link connection status of the current first device end will be further monitored. The link connection status refers to the real-time connection situation of each link in the current network, which can be determined by means such as interface status reading, protocol command feedback, path reachability detection, and routing table parsing. The connection status can be detected in parallel on multiple physical or logical network interfaces to ensure that the link status is obtained comprehensively, in real time and specifically. Subsequently, the above two data sources are compared and processed, that is, the links in the "not connected" state currently are intersected and filtered with the links that "have established connections" in the historical records. If a certain link is not currently connected, but there is a stable or repeated connection behavior in the historical records, it can be presumed that there is a need or business requirement to restore the connection of this link, so as to identify it as a link to be established. Through this filtering process, the invalid link establishment operations for links without business requirements are reduced, and at the same time, the automatic restoration of the historical connection relationship after the network restarts is ensured. The identified links to be established will be used as the basis for subsequent link establishment execution, and the number of them can be one or more, depending on the matching result of the current network status and the historical connection situation. Through this embodiment, the active screening before the communication link establishment is realized, and the accuracy and efficiency of the link establishment process are improved.

[0066] Next, in an embodiment, according to one or more links to be established, determine the network devices corresponding to the links to be established, including:

[0067] S211. Based on one or more links to be established, obtain the network device identification information corresponding to the link to be established through the preset current local area network topology information, and determine the network device corresponding to the link to be established according to the network device identification information.

[0068] In this embodiment, according to the pre-constructed current local area network topology information, obtain the network device identification information corresponding to each link to be established, and determine the matching network device accordingly. Among them, the current local area network topology information refers to the structural data of the connection relationship between the first device end and other network devices in the local area network, which is represented in the form of a graph structure, a relationship table, a configuration mapping, etc. The topology information usually includes fields such as local network interface identification, corresponding connection ports, peer device identification, device type, interface rate, protocol type, etc., which are used to comprehensively reflect the connection status and path distribution among devices in the network. On the basis of obtaining the current local area network topology information, for each network interface in the link to be established, find its peer mapping relationship in the topology. By comparing the starting point of the link with the local interface item in the topology information, the peer network device identification information corresponding to the link can be obtained. The network device identification information includes, but is not limited to, device name, management IP, physical interface name, serial number, device model, etc., which are used to locate the target network device in subsequent operations. After obtaining the network device identification information, determine the network device corresponding to the link to be established according to the network device identification information. In summary, by using the current local area network topology information, the matching between link identification and devices is realized. The automation degree of the link establishment process is improved, the dependence on manual configuration is effectively reduced, and the automation level of communication link dynamic recovery is improved.

[0069] Specifically, on the basis of the above embodiment, the construction of the current local area network topology information includes:

[0070] S2101. According to multiple network interfaces of the first device end, obtain the local identification information of the network interface, and obtain the network device identification information connected to the network interface through the link layer discovery protocol;

[0071] S2102. Associate the local identification information with the network device identification information to generate the mapping relationship between the network interface and the network device;

[0072] S2103. According to the mapping relationship between multiple network interfaces and network devices, construct the current local area network topology information.

[0073] In this embodiment, multiple network interfaces of the first device end are identified, and local identification information of each interface is obtained. Among them, the local identification information usually includes interface name, physical address, Internet Protocol (IP) address, etc. These information can be automatically extracted through network interface management tools provided by the operating system (such as ip a, etc.). After obtaining the local interface identification information, a discovery operation is performed on each network interface through the Link Layer Discovery Protocol (LLDP) or other protocols with neighbor discovery capabilities to obtain the network device identification information of the network device physically connected to the interface. The network device identification information usually includes peer device name, device type, port number, device management address, etc.

[0074] After obtaining the local identification information of each interface and its corresponding network device identification information, these two types of information are associated and matched to form a one-to-one mapping relationship. This mapping relationship is the basic unit for constructing the topological structure and represents the existence of a logical link in the current local area network. To support multi-interface, multi-device, and multi-path scenarios, a table structure, graph structure, or key-value mapping structure can be used to store and manage this relationship, and provide fast retrieval capabilities for subsequent link identification, device search, and other operations. Based on the mapping relationship between multiple interfaces and devices, all associated information is further integrated to construct the current local area network topological structure information. In this embodiment, starting from the network interface and combining the link layer discovery mechanism, a structured mapping between the network interface and the network device is gradually established, and finally the current local area network topological structure information is formed, realizing the automatic perception of the network connection structure and providing data support for the automatic identification of communication links and link establishment strategies.

[0075] In one embodiment, a method for implementing the acquisition of the delay data set in step S21 above is provided. Based on the above embodiment, it includes:

[0076] S212, obtaining the network device identification information of at least one network device, and querying and obtaining the delay data set corresponding to the network device identification information in a preset delay policy database, and obtaining one or more delay data sets;

[0077] Among them, the delay data set includes the average delay transmission duration and at least one delay transmission duration confidence interval.

[0078] In this embodiment, network device identification information is extracted from one or more determined network devices. The network device identification information generally includes, but is not limited to, device name, model number, serial number, etc. After the extraction of the network device identification information is completed, the identification information is used as a query key value to initiate a retrieval operation in a preset delay policy database. The delay policy database is a set of policy data pre-constructed and stored on the device side or the management center, mainly used to save the response time characteristics and behavior patterns of different network devices during the link establishment process. When the query is successful, a delay data set corresponding to each network device will be obtained. The delay data set is a structured data unit, which at least includes two core components: one is the statistical mean of the delay sending duration, representing the average response duration of the device in the sample collection; the other is one or more confidence interval segments of the delay sending duration, used to reflect the response time distribution range under different confidence levels. Through this embodiment, a correspondence relationship is established between the network device identification and the specific policy data, so as to implement a personalized delay control policy for different devices during the link establishment process, providing data support for the dynamic reconstruction of the entire communication link and improving the policy adaptability and link establishment success rate when dealing with complex network states.

[0079] Further, the construction of the delay policy database includes:

[0080] S2121, select any one of the multiple network devices connected to the first device end as the sampling network device;

[0081] S2122, according to the multiple disconnections of the communication link established by the first device end through the sampling network device with the second device end, and according to the multiple establishments of the communication link established by the first device end through the sampling network device with the second device end, perform multiple data samplings on the communication link established through the sampling network device to obtain multiple maximum tolerance durations of the sampling network device; where, when the network device continuously does not receive the protocol message sent by the first device end, the waiting duration before the network device determines that the first device end is in an offline state is the maximum tolerance duration;

[0082] S2123, calculate the mean value of the multiple maximum tolerance durations according to the multiple maximum tolerance durations of the sampling network device, and record it as the mean value of the delay sending duration of the sampling network device;

[0083] S2124, divide the multiple maximum tolerance durations into confidence intervals according to the mean value of the delay sending duration, and obtain at least one confidence interval of the delay sending duration corresponding to the sampling network device;

[0084] S2125, obtain the delay data set of the sampling network device according to the mean value of the delay sending duration of the sampling network device and at least one confidence interval of the delay sending duration;

[0085] S2126 traverses multiple network devices, obtains a delay data set corresponding to the multiple network devices, obtains network device identification information corresponding to the delay data set, and stores the multiple delay data sets and the multiple network device identification information in a delay policy database.

[0086] In this embodiment, according to multiple network devices connected to the first device end, any one of the network devices is selected as a sampling network device. After the sampling network device is selected, other network devices can be disconnected, and only the sampling network device is retained. By separately executing the disconnection of the communication link established between the first device end and the second device end through this network device multiple times, and the corresponding re - establishment process. For each disconnection and re - establishment behavior, the time period from when the first device end stops sending protocol packets to the sampling network device until the sampling network device determines it to be in an offline state is completely recorded. This time period is the maximum tolerance duration corresponding to this link disconnection event.

[0087] Once the maximum tolerance duration is exceeded, the network device will automatically determine that the device end corresponding to this interface is in an offline state. It is necessary to perform sampling on the sampling network device multiple times, usually not less than 10 times, to obtain a statistically representative set of maximum tolerance duration data. Subsequently, using this data set as a sample, calculate its arithmetic mean as the mean of the delay sending duration. Further, based on this mean, confidence intervals of multiple maximum tolerance duration samples are divided. Confidence interval division is used to determine the response time range of the network device for protocol packets under different confidence levels (such as 20%, 40%, 60%, 80%, 100%). Each confidence interval consists of upper and lower limits. By dividing multiple levels of confidence intervals, a progressive time benchmark is provided for subsequent delay re - transmission policies to adapt to the tolerance requirements in different network environments. Combining the mean of the delay sending duration and the confidence intervals, a delay data set can be generated. Subsequently, the system can traverse multiple network devices, repeat the above sampling, calculation, and generation processes, and finally obtain delay data sets corresponding to multiple network devices. After corresponding each data set with its corresponding network device identification information one by one, they are uniformly stored in a preset delay policy database. Through this embodiment, the standardized acquisition and storage of delay data are realized, providing support for concurrent link establishment, dynamic packet sending control, and policy accuracy improvement of multiple network devices, and effectively improving the success rate of communication link establishment in complex or uncertain network environments.

[0088] Exemplarily, during the sampling process of the maximum endurance duration for three switches, each switch collected 10 sets of data. Specifically as follows: For the first switch, the maximum endurance durations of its 10 samplings are successively: 119 seconds, 121 seconds, 117 seconds, 123 seconds, 115 seconds, 125 seconds, 113 seconds, 127 seconds, 111 seconds, and 129 seconds. The corresponding mean value of the maximum endurance duration is 120 seconds. The division of its confidence intervals includes a 20% confidence interval of [118, 122]; a 40% confidence interval of [116, 124]; a 60% confidence interval of [114, 126]; an 80% confidence interval of [112, 128]; and a 100% confidence interval of [110, 130].

[0089] For the second switch, the maximum endurance durations of its 10 samplings are successively: 179 seconds, 181 seconds, 177 seconds, 183 seconds, 175 seconds, 185 seconds, 173 seconds, 187 seconds, 171 seconds, and 189 seconds. The corresponding mean value of the maximum endurance duration is 180 seconds. The division of its confidence intervals includes a 20% confidence interval of [178, 182]; a 40% confidence interval of [176, 184]; a 60% confidence interval of [174, 186]; an 80% confidence interval of [172, 188]; and a 100% confidence interval of [170, 190].

[0090] For the third switch, the maximum endurance durations of its 10 samplings are successively: 219 seconds, 221 seconds, 217 seconds, 223 seconds, 215 seconds, 225 seconds, 213 seconds, 227 seconds, 211 seconds, and 229 seconds. The corresponding mean value of the maximum endurance duration is 220 seconds. The division of its confidence intervals includes a 20% confidence interval of [218, 222]; a 40% confidence interval of [216, 224]; a 60% confidence interval of [214, 226]; an 80% confidence interval of [212, 228]; and a 100% confidence interval of [210, 230].

[0091] In one embodiment, the implementation method of establishing the communication link between the first device end and the second device end in step S23 above is described. On the basis of the above embodiment, it includes:

[0092] S231, parse the establishment trigger message, extract the link establishment information included in the establishment trigger message, and according to the link establishment information, call the link establishment instruction to establish the communication link between the first device end and the second device end through the network device corresponding to the establishment trigger message;

[0093] Among them, the link establishment information includes at least one of the network protocol address or identification information of the second device end.

[0094] In this embodiment, upon receiving a setup trigger message sent by a network device, the parsing process is triggered. The setup trigger message is a message actively sent by the network device to the first device end after perceiving a change in the link state. The link setup information includes at least one of the network protocol address or identification information of the second device end. These parameters are used to locate the target device and its communication interface to ensure that the link setup command can be correctly connected. After extracting the link setup information, the link setup instruction is called according to this information. The link setup instruction is a protocol-level command for initiating a connection between devices, and its specific format depends on the communication protocol adopted. For example, in the NVMe over RoCE scenario, the nvme connect command can be called to set parameters such as the target IP address and port number to establish a session with the storage system subsystem. This instruction can be executed by the communication module, the driver layer component inside the first device end, or the Storage Network SmartDiscovery (SNSD) plugin configured on the first device end, and has the ability to execute automatically. After the link setup command is executed, a communication link is established between the first device end and the second device end through the network device corresponding to the setup trigger message. Through this embodiment, it is ensured that the parameter source of the link setup action is credible, the execution path is correct, and the target is clear, improving the success rate and connection efficiency of the link setup and effectively supporting the communication recovery requirements in the dynamic online or restart scenarios.

[0095] In a specific embodiment, outputting a protocol message that meets the first delay sending duration to the network device includes:

[0096] S221, generating a delay sending instruction according to the first delay sending duration corresponding to the network device;

[0097] S222, according to the delay sending instruction, after the end of the first delay sending duration, outputting a protocol message to the network device through the message sending module of the first device end.

[0098] In this embodiment, a delay transmission instruction is generated according to the first delay transmission duration extracted from the delay dataset in the early stage. The delay transmission instruction is a scheduling instruction for controlling the transmission timing of protocol messages, and its content includes but is not limited to the target network device identifier, the delay duration, the transmission interface identifier, etc. This instruction can be parsed and executed by the message transmission module to ensure that the protocol message is accurately sent after meeting the specified delay condition. The generation process can be implemented based on a policy scheduling engine, a task queue system, or a timer control unit, and supports generating and managing multiple delay transmission instructions for multiple network devices to achieve concurrent scheduling and asynchronous control. After the delay transmission instruction is generated, it is handed over to the message transmission module of the first device end for execution. Once the time arrives, the corresponding protocol message is sent to the target network device through the specified network interface. The protocol message is used to notify the network device that the first device end is currently in a communicable state. The message type can be adapted according to different protocol standards, and common ones include LLDP messages, status synchronization notification messages, custom link layer handshake messages, etc. The transmission format is not limited to a specific implementation method and is not specifically restricted here. Through this embodiment, the first delay transmission duration is converted into the time control of the actual message transmission behavior, completing the transformation from policy data to control actions. Through the time scheduling and transmission mechanism, the accuracy of protocol message transmission and the matching degree of network device status response are improved, the adaptability to network asynchrony and status differences during the communication link establishment process is enhanced, and thus the success rate and execution efficiency of the overall link establishment process are improved.

[0099] In another embodiment, outputting a message transmission instruction that meets the second delay transmission duration to a network device includes:

[0100] S321, generating a delay transmission instruction according to the second delay transmission duration corresponding to the network device;

[0101] S322, according to the delay transmission instruction, after the end of the second delay transmission duration, output a protocol message to the network device through the message transmission module of the first device end.

[0102] In this embodiment, when the protocol message triggered by the first delay transmission duration fails to effectively activate the response mechanism of the network device, it is necessary to reschedule the transmission timing of the message based on the second delay transmission duration corresponding to the current network device, so as to further improve the success rate of link establishment. Specifically, first generate a delay transmission instruction according to the second delay transmission duration corresponding to the network device. The second delay transmission duration refers to a new message transmission time threshold determined based on the upper limit of the confidence interval of the delay data set, the current environmental parameters or the retry policy on the basis of the failure of the first delay transmission. This duration is usually longer than the first delay transmission duration, and a more relaxed time window is adopted to wait for the update and refresh of the network device status. The delay transmission instruction, as an executable scheduling task, includes the target network device identifier, the transmission delay value, the protocol message type, etc. The generation of this instruction can be completed by the link control module, the SNSD plug-in or the policy scheduling engine. After the instruction is generated, hand over the delay transmission instruction to the message transmission module (such as the SNSD plug-in) of the first device end for execution. After receiving the delay transmission instruction, start the internal timer, and when the set second delay transmission duration arrives, output the protocol message from the corresponding network interface to the target network device. The type of the protocol message sent can be the same as that in the first link establishment attempt, usually a link layer control message (such as an LLDP message). After the first attempt fails, complete the continuation of the link establishment logic based on the second delay strategy to ensure that the link establishment operation has fault tolerance, recoverability and time adaptability.

[0103] In a specific embodiment, in a data center or network deployment environment, the establishment of a communication link often involves a data interaction channel between a server and a storage system, and a switch serves as an intermediate network device to implement nodes for data forwarding and status perception. On the basis of the above link establishment method, taking the first device end as the server, the second device end as the storage system, and the network device as the switch, the link establishment method is further described. This helps to perform more specific policy application and operation implementation when facing specific application scenarios. As the first device end that actively initiates communication, the server needs to establish a communication link with the storage system (the second device end) on the other side of the network to support the access of the business system to storage resources, data transmission and the interaction of control commands. Since a direct connection between the two is not common in most deployment structures, a switch, as a typical network device, is introduced to complete the forwarding of protocol messages, the detection of status and the response to link establishment trigger behaviors. First, determine the switches on which these links depend according to one or more links to be established between the server and the storage system. This process can be obtained based on the topology structure information of the current local area network, the interface configuration of the server and the storage system, historical connection records, etc., to ensure that each link to be established can be accurately matched to its associated switch node.

[0104] Subsequently, for these switches, obtain the corresponding delay data set. As a data structure representing the response characteristics of the switch, the delay data set usually includes the average time (i.e., the average delay transmission duration) experienced by the switch from receiving the protocol packet to the status judgment, and one or more delay transmission duration confidence intervals generated based on multiple sampled data. These data are stored in the delay policy database. After obtaining the delay data set, generate corresponding protocol packets according to the first delay transmission duration corresponding to each switch in these data, and send them to one or more switches according to the preset delay policy. The protocol packet can adopt the Link Layer Discovery Protocol. The sending behavior is implemented through the Storage Network Smart Discovery (SNSD) plugin configured by the server. After the protocol packet is sent, continuously monitor whether the switch returns a setup trigger packet. After the switch receives the protocol packet and completes judgments such as port status refresh and online status confirmation, if the trigger condition is met, it will send a control packet with link establishment information to the server. The setup trigger packet contains the network address or other protocol fields required to execute the link establishment command. After receiving the setup trigger packet, the server parses the content of the packet and calls the link establishment instruction (such as nvmeconnect) based on the information contained in the packet to reconstruct the communication link with the storage system. Through this method, the link reconnection can be automatically and accurately completed in scenarios such as server restart, network fault recovery, or configuration change.

[0105] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.

[0106] Figure 6 It is a schematic structural diagram of a communication link establishment device provided by an embodiment of the present application. As Figure 6 shown, the communication link establishment device 60 includes:

[0107] A data acquisition module 61, configured to determine network devices corresponding to the links to be established according to one or more links to be established, and obtain one or more delay data sets according to at least one network device; wherein, the first device end establishes a communication link with the second device end through the network device;

[0108] A delay transmission module 62, configured to obtain the first delay transmission duration corresponding to the network device according to one or more delay data sets, and output a protocol packet that meets the first delay transmission duration to the network device to trigger the network device to send a setup trigger packet after receiving the protocol packet;

[0109] The link establishment module 63 is used to monitor the reception status of the establishment trigger message. When the establishment trigger message is received, a communication link between the first device end and the second device end is established through the network device corresponding to the establishment trigger message according to the establishment trigger message.

[0110] In one embodiment, it further includes a delay progression module, which is used to, when the establishment trigger message is not received, based on the first delay sending duration, obtain the second delay sending duration corresponding to the network device according to one or more delay data sets; output a message sending instruction that meets the second delay sending duration to the network device, and monitor the reception status of the establishment trigger message; wherein, the second delay sending duration is greater than the first delay sending duration.

[0111] In a specific embodiment, the delay sending module 62 is specifically used for:

[0112] According to one or more delay data sets, obtain the average delay sending duration corresponding to each delay data set; according to one or more average delay sending durations, screen and record the maximum average delay sending duration as the first delay sending duration of the network device.

[0113] In a specific embodiment, the delay progression module is specifically used for:

[0114] Obtain the delay data set corresponding to the first delay sending duration, and obtain one or more delay sending duration confidence intervals in the delay data set; according to the preset confidence interval priority order, sequentially set the upper limit value in the delay sending duration confidence interval as the second delay sending duration to obtain the second delay sending duration corresponding to the network device.

[0115] In one embodiment, the communication link establishment device further includes a link monitoring module;

[0116] The link monitoring module is used to obtain the historical link connection information of the first device end and monitor the multiple link connection states of the first device end;

[0117] According to the historical link connection information, screen out the links that are not currently connected and have connection records in the historical link connection information as the links to be established, so as to obtain one or more links to be established.

[0118] In a specific embodiment, the data acquisition module 61 is specifically used for:

[0119] According to one or more links to be established, obtain the network device identification information corresponding to the links to be established through the preset current local area network topology structure information, and determine the network device corresponding to the links to be established according to the network device identification information.

[0120] In a specific embodiment, the data acquisition module 61 is further specifically configured to:

[0121] Obtain the local identification information of the network interface according to multiple network interfaces of the first device end, and obtain the network device identification information connected to the network interface through the Link Layer Discovery Protocol;

[0122] Associate the local identification information with the network device identification information to generate a mapping relationship between the network interface and the network device;

[0123] Construct the current local area network topology information according to the mapping relationship between multiple network interfaces and network devices.

[0124] In a specific embodiment, the data acquisition module 61 is specifically configured to:

[0125] Obtain the network device identification information of at least one network device, and query and obtain the delay data set corresponding to the network device identification information in the preset delay policy database, and obtain one or more delay data sets;

[0126] Wherein, the delay data set includes the average delay transmission duration and at least one delay transmission duration confidence interval.

[0127] In a specific embodiment, the data acquisition module 61 is further specifically configured to:

[0128] Select any one of the multiple network devices connected to the first device end as the sampling network device;

[0129] According to the multiple disconnections of the communication link established by the first device end through the sampling network device with the second device end, and according to the multiple establishments of the communication link established by the first device end through the sampling network device with the second device end, perform multiple data samplings on the communication link established through the sampling network device to obtain multiple maximum tolerance durations of the sampling network device;

[0130] Wherein, when the network device continuously does not receive the protocol message sent by the first device end, the waiting duration before the network device determines that the first device end is in an offline state is the maximum tolerance duration;

[0131] Calculate the average value of the multiple maximum tolerance durations according to the multiple maximum tolerance durations of the sampling network device, and record it as the average delay transmission duration of the sampling network device;

[0132] Divide the confidence interval of the multiple maximum tolerance durations according to the average delay transmission duration to obtain at least one delay transmission duration confidence interval corresponding to the sampling network device;

[0133] Obtain the delay data set of the sampling network device according to the average delay transmission duration of the sampling network device and at least one confidence interval of the delay transmission duration;

[0134] Traverse multiple network devices, obtain the delay data sets corresponding to the multiple network devices, obtain the network device identification information corresponding to the delay data sets, and store the multiple delay data sets and the multiple network device identification information in the delay policy database.

[0135] In a specific embodiment, the link establishment module 63 is specifically configured to:

[0136] Parse the establishment trigger message, extract the link establishment information included in the establishment trigger message, and according to the link establishment information, call the link establishment instruction to establish a communication link between the first device end and the second device end through the network device corresponding to the establishment trigger message;

[0137] Among them, the link establishment information includes at least one of the network protocol address or identification information of the second device end.

[0138] In a specific embodiment, the link establishment module 63 is further specifically configured to:

[0139] Generate a delay transmission instruction according to the first delay transmission duration corresponding to the network device;

[0140] According to the delay transmission instruction, after the first delay transmission duration ends, output a protocol message to the network device through the message sending module of the first device end.

[0141] In a specific embodiment, the delay progression module is further specifically configured to:

[0142] Generate a delay transmission instruction according to the second delay transmission duration corresponding to the network device;

[0143] According to the delay transmission instruction, after the second delay transmission duration ends, output a protocol message to the network device through the message sending module of the first device end.

[0144] For the description of the features in the embodiments corresponding to the communication link establishment device, reference can be made to the relevant description of the embodiments corresponding to the communication link establishment method, which will not be elaborated here one by one.

[0145] Figure 7 This is a schematic structural diagram of the electronic device provided by the present application. As Figure 7 shown, the electronic device 7 provided in this embodiment includes: at least one processor 71 and a memory 72. Optionally, the electronic device 7 further includes a communication component 73. Among them, the processor 71, the memory 72, and the communication component 73 are connected through a bus 74.

[0146] In the specific implementation process, at least one processor 71 executes the computer-executable instructions stored in the memory 72, so that at least one processor 71 executes the above-described communication link establishment method embodiments.

[0147] For the specific implementation process of the processor 71, reference may be made to the above method embodiments. Their implementation principles and technical effects are similar, and will not be elaborated here in this embodiment.

[0148] In the above embodiments, it should be understood that the processor may be a central processing unit (Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0149] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0150] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0151] The embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is configured to execute the steps in any of the above communication link establishment method embodiments when running.

[0152] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media that can store computer programs, such as USB flash drives, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disks, magnetic disks, or optical discs.

[0153] An embodiment of the present application also provides a computer program product. The above computer program product includes a computer program. When the computer program is executed by a processor, the steps in any of the above embodiments of the communication link establishment method are implemented.

[0154] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps in any of the above embodiments of the communication link establishment method are implemented.

[0155] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to 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. Skilled professionals 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.

[0156] The above provides a detailed introduction to a communication link establishment provided by this application. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A method for establishing a communication link, characterized in that Including: Determine network devices corresponding to the to-be-established link according to one or more to-be-established links, and obtain one or more delay data sets according to at least one of the network devices; Wherein, a communication link is established between the first device end and the second device end through the network device; Obtain a first delay transmission duration corresponding to the network device according to one or more of the delay data sets, and output a protocol message that meets the first delay transmission duration to the network device to trigger the network device to send a establishment trigger message after receiving the protocol message; Monitor the reception status of the establishment trigger message, and when receiving the establishment trigger message, establish a communication link between the first device end and the second device end through the network device corresponding to the establishment trigger message according to the establishment trigger message; The obtaining one or more delay data sets according to at least one of the network devices includes: Obtain network device identification information of at least one of the network devices, and query and obtain the delay data set corresponding to the network device identification information in a preset delay policy database, and obtain one or more of the delay data sets; Wherein, the delay data set includes an average delay transmission duration and at least one delay transmission duration confidence interval.

2. The establishment method according to claim 1, wherein The establishment method further includes: When the establishment trigger message is not received, obtain a second delay transmission duration corresponding to the network device according to one or more of the delay data sets based on the first delay transmission duration; Output a message sending instruction that meets the second delay transmission duration to the network device, and monitor the reception status of the establishment trigger message; Wherein, the second delay transmission duration is greater than the first delay transmission duration.

3. The establishment method according to claim 2, wherein The obtaining a first delay transmission duration corresponding to the network device according to one or more of the delay data sets includes: Obtain the average delay transmission duration corresponding to each of the delay data sets according to one or more of the delay data sets; Screen and record the maximum average delay transmission duration as the first delay transmission duration of the network device according to one or more of the average delay transmission durations.

4. The establishment method according to claim 3, wherein The obtaining a second delay transmission duration corresponding to the network device according to one or more of the delay data sets based on the first delay transmission duration includes: Obtain the delay data set corresponding to the first delay transmission duration, and obtain one or more delay transmission duration confidence intervals in the delay data set; Set the upper limit value in the delay transmission duration confidence interval as the second delay transmission duration in sequence according to a preset confidence interval priority order to obtain the second delay transmission duration corresponding to the network device.

5. The establishment method according to claim 1, characterized in that, Before determining network devices corresponding to the to-be-established link according to one or more to-be-established links, the establishment method further includes: Obtain historical link connection information of the first device end, and monitor multiple link connection states of the first device end; Based on the historical link connection information, filter out the links that are not currently connected and have connection records in the historical link connection information as the links to be established, so as to obtain one or more of the links to be established.

6. The establishment method according to claim 1 or 5, characterized in that The determination of the network device corresponding to the link to be established according to one or more links to be established includes: According to one or more links to be established, obtain the network device identification information corresponding to the link to be established through the preset current local area network topology structure information, and determine the network device corresponding to the link to be established according to the network device identification information.

7. The establishment method according to claim 6, characterized in that The construction of the current local area network topology structure information includes: According to multiple network interfaces of the first device end, obtain the local identification information of the network interfaces, and obtain the network device identification information connected to the network interfaces through the Link Layer Discovery Protocol; Associate the local identification information with the network device identification information to generate the mapping relationship between the network interface and the network device; Construct the current local area network topology structure information according to the mapping relationships between multiple network interfaces and network devices.

8. The establishment method according to claim 1, wherein, The construction of the delay policy database includes: According to multiple network devices connected to the first device end, select any one of the network devices as the sampling network device; According to the multiple disconnections of the communication link established by the first device end through the sampling network device with the second device end, and according to the multiple establishments of the communication link established by the first device end through the sampling network device with the second device end, perform multiple data samplings on the communication link established through the sampling network device to obtain multiple maximum tolerance durations of the sampling network device; Wherein, when the network device does not receive the protocol message sent by the first device end continuously, the waiting duration before the network device determines that the first device end is in an offline state is the maximum tolerance duration; Calculate the mean value of multiple maximum tolerance durations according to the multiple maximum tolerance durations of the sampling network device, and record it as the mean delay transmission duration of the sampling network device; According to the mean delay transmission duration, divide the confidence interval of multiple maximum tolerance durations to obtain at least one delay transmission duration confidence interval corresponding to the sampling network device; Obtain the delay data set of the sampling network device according to the mean delay transmission duration and at least one delay transmission duration confidence interval of the sampling network device; Traverse multiple network devices, obtain delay data sets corresponding to multiple network devices, obtain the network device identification information corresponding to the delay data sets, and store multiple delay data sets and multiple network device identification information in the delay policy database.

9. The establishment method according to claim 1 or 2, characterized in that The establishment of the communication link between the first device end and the second device end through the network device corresponding to the establishment trigger message according to the establishment trigger message includes: Parse the establishment trigger message, extract the link establishment information included in the establishment trigger message, and according to the link establishment information, call a link establishment instruction to establish a communication link between the first device end and the second device end through the network device corresponding to the establishment trigger message; Wherein, the link establishment information includes at least one of the network protocol address or identification information of the second device end.

10. The establishment method according to any one of claims 1-3, characterized in that, The outputting of the protocol message that meets the first delay sending duration to the network device includes: Generate a delay sending instruction according to the first delay sending duration corresponding to the network device; According to the delay sending instruction, after the end of the first delay sending duration, output a protocol message to the network device through the message sending module of the first device end.

11. The establishment method according to claim 2, characterized in that, The outputting of the message sending instruction that meets the second delay sending duration to one or more of the network devices includes: Generate a delay sending instruction according to the second delay sending duration corresponding to the network device; According to the delay sending instruction, after the end of the second delay sending duration, output a protocol message to the network device through the message sending module of the first device end.

12. An electronic device, characterized in that, Includes: A memory for storing a computer program; A processor for implementing the steps of the establishment method according to any one of claims 1 to 11 when executing the computer program.

13. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the establishment method according to any one of claims 1 to 11 when executed by a processor.

14. A computer program product, comprising a computer program, characterized in that, The computer program implements the steps of the establishment method according to any one of claims 1 to 11 when executed by a processor.

Citation Information

Patent Citations

  • Satellite link intermittent and delay simulation method

    CN108737141A

  • Link aggregation method

    CN112994946A