Method, system, electronic device and storage medium for migrating device session

CN116471317BActive Publication Date: 2026-09-08ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

[0003]本申请实施例是提供一种设备会话的迁移方法、系统、电子设备以及计算机可读存储介质,以解决或部分解决由于设备异常导致设备之间的配置信链路出现抖动,通信稳定性差的问题

Benefits of technology

在本发明实施例中,可以应用于网络控制系统,在该网络控制系统中可以包括至少一个网络配置服务、与网络配置服务通信的至少一个设备协商服务以及与设备协商服务通信的至少一个统一网络代理,其中,当需要进行设备会话的迁移时,网络控制系统可以获取到针对第一统一网络代理的迁移指令,并获取与第一统一网络代理对应的第一配置信息,以及第一配置信息对应的订阅模型,订阅模型为第一设备协商服务代理第一统一网络代理,在网络配置服务中订阅的第一配置信息的通信链路,第一配置信息为与网络通信相关的参数,接着从网络控制系统中,定位到与迁移参数对应的第一设备协商服务和第二设备协商服务,以及定位到与迁移参数对应的第一统一网络代理,然后根据迁移参数与迁移指令,将第一统一网络代理与第一设备协商服务之间的通信链路迁移至第二设备协商服务,从而在需要进行会话迁移时,通过定位到迁移前的设备协商服务和迁移后的设备协商服务,接着对两者进行无感知的定向会话迁移,实现管控系统和转发设备之间的会话平移迁移,减少了系统的性能开销,且有效地保证了设备之间通信的稳定性,减少配置链路的抖动,同时通过对会话进行热迁移,可以保证配置信息下发的有效性,提高了配置信息下发的成功率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116471317B_ABST
    Figure CN116471317B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a device session migration method and system, an electronic device and a storage medium, applied to the technical field of data communication. The method comprises: obtaining a migration instruction for a first unified network agent; obtaining first configuration information corresponding to the first unified network agent, and a subscription model corresponding to the first configuration information, the subscription model being a communication link of the first configuration information subscribed in a network configuration service by a first device negotiation service agent, the first unified network agent, the first configuration information being a parameter related to network communication; locating, from a network control system, a first device negotiation service and a second device negotiation service corresponding to the migration instruction, and locating the first unified network agent corresponding to the migration instruction; and migrating a communication link between the first unified network agent and the first device negotiation service to the second device negotiation service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication technology, and in particular to a method for migrating device sessions, a network control system, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the rapid growth of cloud network scale, the cloud network controller platform can provide cloud services such as VPC (Virtual Private Cloud), CEN (Cloud Enterprise Network), NLB (Network Load Balancer), and ALB (Application Load Balancer) according to user needs. Among these, DBS (Device Broker Service) is the device management service of the cloud network controller platform. As a stateful service, it supports configuration deployment in ultra-large-scale, ultra-high-concurrency scenarios. A single DBS can connect to a specific batch of devices and manage these devices. In certain scenarios, such as DBS deployment or restart, the connection between DBS and these devices may be lost, leading to the failure of northbound token deployment, causing jitter in the configuration link, and resulting in a poor user experience. Summary of the Invention

[0003] This application provides a method, system, electronic device, and computer-readable storage medium for migrating device sessions, in order to solve or partially solve the problem of jitter in the configuration communication link between devices due to device malfunctions, resulting in poor communication stability.

[0004] This application discloses a device session migration method applied to a network control system. The network control system includes at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network proxy communicating with the device negotiation service. The method includes: Obtain migration instructions for the first unified network agent; Obtain the first configuration information corresponding to the first unified network proxy, and the subscription model corresponding to the first configuration information. The subscription model is the communication link of the first configuration information subscribed to by the first device negotiation service proxy for the first unified network proxy in the network configuration service. The first configuration information is parameters related to network communication. From the network control system, locate the first device negotiation service and the second device negotiation service corresponding to the migration command, and locate the first unified network agent corresponding to the migration command; The communication link between the first unified network agent and the first device negotiation service is migrated to the second device negotiation service.

[0005] Optionally, migrating the communication link between the first unified network proxy and the first device negotiation service to the second device negotiation service includes: The network configuration service obtains migration parameters corresponding to the migration instruction, the migration parameters including a first proxy identifier and second IP information; The network configuration service sends the migration instruction, the first proxy identifier, and the second IP information to the first device negotiation service. The first device negotiation service stores target device proxy information, which includes the proxy identifier of a unified network proxy that subscribes to the first configuration information and communicates with the first device negotiation service. The first device negotiation service maps the first proxy identifier to the target device proxy information, and locates the first unified network proxy corresponding to the first proxy identifier; The first unified network proxy receives the migration instruction, the second IP information, and the first IP information corresponding to the first device negotiation service issued by the first device negotiation service, and establishes a communication link between itself and the second device negotiation service corresponding to the second IP information according to the migration instruction. The second device negotiation service receives the first IP information sent by the first unified network agent through the communication link, and registers a subscription for the first configuration information with the network configuration service on behalf of the first unified network agent, while sending a session migration success message to the first device negotiation service.

[0006] Optionally, migrating the communication link between the first unified network proxy and the first device negotiation service to the second device negotiation service further includes: The first device negotiation service obtains the session migration success information, obtains the currently existing configuration information and the distribution status information corresponding to the existing configuration information, and the distribution status information indicates whether the device negotiation service distributes the configuration information to the unified network proxy. If the issued status information indicates that the existing configuration information has been issued to the first unified network agent, then the first device negotiation service disconnects the communication link with the first unified network agent.

[0007] Optionally, it also includes: The first device negotiation service obtains the migration timestamp corresponding to the session migration success information; The first device negotiation service obtains the second configuration information issued by the network configuration service, and obtains the issuance timestamp corresponding to the second configuration information; If the distribution timestamp is less than the migration timestamp, the first device negotiation service will distribute the second configuration information to the first unified network agent; If the distribution timestamp is greater than the migration timestamp, the first device negotiation service sends a distribution success message for the second configuration information to the network configuration service, but does not distribute the second configuration information to the first unified network agent.

[0008] Optionally, the network configuration service stores a target subscription relationship corresponding to the first configuration information, the target subscription relationship including the subscription relationship between the first IP information corresponding to the first device negotiation service and the first configuration information, and the method further includes: In response to the successful configuration subscription of the first configuration information, the network configuration service adds the second IP information corresponding to the second device negotiation service to the target subscription relationship, and establishes a subscription relationship between the second device negotiation service and the first configuration information.

[0009] Optionally, it also includes: The first unified network agent obtains the third configuration information issued by the first device negotiation service and / or the second device negotiation service, and obtains the processing identifier corresponding to the third configuration information. The processing identifier is used to indicate whether the unified network agent has completed the processing of the configuration information. If the processing identifier exists locally and indicates that the processing of the third configuration information has been completed, the first unified network agent sends a processing success message for the third configuration information to the first device negotiation service and / or the second device negotiation service. If the processing identifier exists locally and indicates that the third configuration information is in a processing state, the first unified network agent sends a processing status message for the third configuration information to the first device negotiation service and / or the second device negotiation service. If the processing identifier does not exist locally, the first unified network agent writes the processing identifier corresponding to the third configuration information and processes the third configuration information.

[0010] Optionally, the migration parameters further include at least the configuration identifier of the first configuration information. The subscription model includes a communication layer architecture between the network configuration service, the device negotiation service, and the unified network proxy. The communication layer architecture corresponds to configuration subscription information and subscription relationship information stored in the network configuration service. The configuration subscription information includes a set tag for each configuration information and the device negotiation service subscribing to the configuration information. The subscription relationship information includes the IP information of the device negotiation service corresponding to the set tag. Locating the first device negotiation service and the second device negotiation service corresponding to the migration instruction from the network control system, and locating the first unified network proxy corresponding to the migration instruction, includes: The network configuration service maps the configuration identifier to the configuration subscription information to obtain the target set label corresponding to the configuration identifier; The network configuration service extracts the first IP information corresponding to the first proxy identifier from the target set label, locates the first device negotiation service corresponding to the first IP information, and locates the second device negotiation service corresponding to the second IP information.

[0011] Optionally, it also includes: In response to a configuration creation command, the network configuration service obtains target configuration information corresponding to the configuration creation command. The network configuration service stores configuration subscription information and subscription relationship information corresponding to the target configuration information. The network configuration service parses out the target device negotiation service with the target configuration information based on the configuration subscription information and the subscription relationship information. The target device negotiation service stores device agent information corresponding to the target configuration information. The target device negotiation service extracts the second agent identifier of the unified network agent that has subscribed to the target configuration information from the device agent information, and sends the target configuration information to the second unified network agent corresponding to the second agent identifier.

[0012] Optionally, the network control system includes a control system that provides at least one cloud service among a private network, a cloud enterprise network, a network load balancer, and an application load balancer.

[0013] This application also discloses a network control system, which includes at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network proxy communicating with the device negotiation service; wherein, the network control system is used for: Obtain migration instructions for the first unified network agent; Obtain the first configuration information corresponding to the first unified network proxy, and the subscription model corresponding to the first configuration information. The subscription model is the communication link of the first configuration information subscribed to by the first device negotiation service proxy for the first unified network proxy in the network configuration service. The first configuration information is parameters related to network communication. From the network control system, locate the first device negotiation service and the second device negotiation service corresponding to the migration command, and locate the first unified network agent corresponding to the migration command; The communication link between the first unified network agent and the first device negotiation service is migrated to the second device negotiation service.

[0014] Optionally, the migration parameters include a first proxy identifier and second IP information; The network configuration service is used to obtain migration parameters corresponding to the migration instruction, the migration parameters including a first proxy identifier and a second IP information; The network configuration service is used to send the migration instruction, the first proxy identifier, and the second IP information to the first device negotiation service. The first device negotiation service stores target device proxy information, which includes the proxy identifier of a unified network proxy that subscribes to the first configuration information and communicates with the first device negotiation service. The first device negotiation service is used to map the first proxy identifier to the target device proxy information and locate the first unified network proxy corresponding to the first proxy identifier; The first unified network proxy is used to receive the migration instruction, the second IP information and the first IP information corresponding to the first device negotiation service issued by the first device negotiation service, and to establish a communication link between the migration instruction and the second device negotiation service corresponding to the second IP information. The second device negotiation service is used to receive the first IP information sent by the first unified network agent through the communication link, and to register the subscription for the first configuration information with the network configuration service on behalf of the first unified network agent, and at the same time send session migration success information to the first device negotiation service.

[0015] Optionally, the first device negotiation service is used to obtain the session migration success information, obtain the currently existing configuration information and the distribution status information corresponding to the existing configuration information, wherein the distribution status information indicates whether the device negotiation service distributes the configuration information to the unified network proxy. The first device negotiation service is used to disconnect the communication link with the first unified network agent if the issued status information indicates that the existing configuration information has been issued to the first unified network agent.

[0016] Optionally, the first device negotiation service is used for: Obtain the migration timestamp corresponding to the successful session migration information; Obtain the second configuration information issued by the network configuration service, and obtain the issuance timestamp corresponding to the second configuration information; If the distribution timestamp is less than the migration timestamp, then the second configuration information is distributed to the first unified network agent; If the distribution timestamp is greater than the migration timestamp, a distribution success message for the second configuration information is sent to the network configuration service, but the second configuration information is not distributed to the first unified network agent.

[0017] Optionally, the network configuration service stores target subscription relationships corresponding to the first configuration information, wherein the target subscription relationship includes the subscription relationship between the first IP information corresponding to the first device negotiation service and the first configuration information; wherein, The network configuration service is used to add the second IP information corresponding to the second device negotiation service to the target subscription relationship in response to the successful configuration subscription of the first configuration information, and to establish a subscription relationship between the second device negotiation service and the first configuration information.

[0018] Optionally, the first unified network agent is used for: Obtain the third configuration information issued by the first device negotiation service and / or the second device negotiation service, and obtain the processing identifier corresponding to the third configuration information. The processing identifier is used to indicate whether the unified network agent has completed the processing of the configuration information. If the processing identifier exists locally and indicates that the processing of the third configuration information has been completed, then a processing success message for the third configuration information is sent to the first device negotiation service and / or the second device negotiation service. If the processing identifier exists locally and indicates that the third configuration information is in a processing state, then a processing status message for the third configuration information is sent to the first device negotiation service and / or the second device negotiation service; If the processing identifier does not exist locally, then the processing identifier corresponding to the third configuration information is written, and the third configuration information is processed.

[0019] Optionally, the migration parameters further include at least the configuration identifier of the first configuration information; the subscription model includes a communication layer architecture between the network configuration service, the device negotiation service, and the unified network proxy; the communication layer architecture corresponds to configuration subscription information and subscription relationship information stored in the network configuration service; the configuration subscription information includes set tags for each configuration information and the device negotiation service subscribing to the configuration information; the subscription relationship information includes the IP information of the device negotiation service corresponding to the set tags; wherein, the network configuration service is used for: Map the configuration identifier to the configuration subscription information to obtain the target set label corresponding to the configuration identifier; Extract the first IP information corresponding to the first proxy identifier from the target set label, locate the first device negotiation service corresponding to the first IP information, and locate the second device negotiation service corresponding to the second IP information.

[0020] Optionally, the network configuration service is configured to, in response to a configuration creation instruction, obtain target configuration information corresponding to the configuration creation instruction, and the network configuration service stores configuration subscription information and subscription relationship information corresponding to the target configuration information; The network configuration service is used to parse out a target device negotiation service with respect to the target configuration information based on the configuration subscription information and the subscription relationship information. The target device negotiation service stores device agent information corresponding to the target configuration information. The target device negotiation service is used to extract the second agent identifier of the unified network agent that has subscribed to the target configuration information from the device agent information, and to send the target configuration information to the second unified network agent corresponding to the second agent identifier.

[0021] Optionally, the network control system includes a control system that provides at least one cloud service among a private network, a cloud enterprise network, a network load balancer, and an application load balancer.

[0022] This application also discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method described in the embodiments of this application.

[0023] This application also discloses a computer-readable storage medium storing instructions that, when executed by one or more processors, cause the processors to perform the methods described in this application.

[0024] The embodiments of this application have the following advantages: In this embodiment of the invention, it can be applied to a network control system, which may include at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network proxy communicating with the device negotiation service. When a device session migration is required, the network control system can obtain a migration instruction for the first unified network proxy, and obtain first configuration information corresponding to the first unified network proxy, as well as a subscription model corresponding to the first configuration information. The subscription model is the communication link subscribed to by the first device negotiation service agent (first unified network proxy) in the network configuration service. The first configuration information consists of parameters related to network communication. Then, the migration parameters are located from the network control system. The system uses the corresponding first and second device negotiation services, and locates the first unified network agent corresponding to the migration parameters. Then, according to the migration parameters and migration instructions, it migrates the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service. Thus, when session migration is required, by locating the device negotiation service before and after migration, and then performing a seamless directed session migration between the two, the system achieves session migration between the control system and the forwarding device. This reduces system performance overhead and effectively ensures the stability of communication between devices, reduces configuration link jitter, and ensures the effectiveness of configuration information distribution by performing hot migration of sessions, thereby improving the success rate of configuration information distribution. Attached Figure Description

[0025] Figure 1 This is a flowchart illustrating the steps of a device session migration method provided in this application embodiment; Figure 2 This is a schematic diagram of the network control system provided in the embodiments of this application; Figure 3 This is a schematic diagram of a session migration scenario provided in the embodiments of this application; Figure 4 This is a structural block diagram of a device session migration device provided in the embodiments of this application; Figure 5 This is a block diagram of an electronic device provided in the embodiments of this application. Detailed Implementation

[0026] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0027] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0028] As an example, DBS (Device Broker Service) is a device management service in the cloud network controller platform. As a stateful service, it supports configuration distribution in ultra-large-scale, ultra-high-concurrency scenarios. A single DBS can connect to a specific batch of devices and manage them. In certain scenarios, such as DBS deployment or restart, the connection between DBS and these devices may be lost, leading to the failure of northbound token (configuration information) distribution, causing jitter in the configuration link and resulting in a poor user experience. To address this, related technologies typically use short-connection methods to proactively push configuration information southbound. Therefore, each configuration information distribution requires selecting a live network controller node and pushing it to the corresponding device through that node. This process involves repeatedly selecting network controller nodes, establishing communication links between nodes, and distributing distributed transactions, significantly increasing system performance overhead.

[0029] Based on this, one of the core inventive points of this application lies in adopting a long-connection stateful mode, that is, a network device is managed by a network control system node for a period of time. This avoids the system performance overhead caused by repeatedly selecting network controller nodes, establishing communication links between nodes, and distributing distributed transactions every time a configuration is sent northward. Based on this, the structure of the network control system is configured, which may include at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network agent communicating with the device negotiation service. When a device session migration is required, the network control system can obtain a migration instruction for the first unified network agent, and obtain the first configuration information corresponding to the first unified network agent, as well as the subscription model corresponding to the first configuration information. The subscription model is: first device negotiation service agent, first unified network agent. The communication link for subscribing to the first configuration information in the network configuration service, where the first configuration information consists of parameters related to network communication, is then located from the network control system. This involves locating the first and second device negotiation services corresponding to the migration parameters, as well as the first unified network agent corresponding to the migration parameters. Based on the migration parameters and migration instructions, the communication link between the first unified network agent and the first device negotiation service is migrated to the second device negotiation service. Thus, when session migration is required, by locating the device negotiation service before and after migration, and then performing a seamless, directed session migration between the two, the session migration between the control system and the forwarding device is achieved. This reduces system performance overhead and effectively ensures the stability of communication between devices, reducing configuration link jitter. Furthermore, by performing hot migration of the session, the effectiveness of configuration information distribution is guaranteed, improving the success rate of configuration information distribution.

[0030] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, some technical features involved in the embodiments of this application are explained below: NCS: Network Config Service, is used to parse each user request and calculate the specific configuration information to be distributed, and to call DBS according to the subscription relationship. In addition, it is also responsible for providing the operation entry point for managing devices.

[0031] DBS: Device Broker Service, is responsible for proxying the devices it manages to subscribe to configuration information from the NCS, calculating the corresponding forwarding devices to which the configuration information parsed by the NCS should be distributed, and pushing it to the devices. DBS is a stateful device management system, meaning that each DBS manages a specific batch of UNA devices, and all operations related to the distribution of configuration information and device management for this device are handled by this DBS.

[0032] UNA: Unified Network Agent, responsible for proxying the registration of forwarding devices with DBS, receiving configuration information issued by DBS, and pushing it to the forwarding process.

[0033] Daemon: A forwarding process, which can be a special process running in the background to perform specific system tasks, such as forwarding the issued configuration information to the corresponding device.

[0034] Configuration information can be parameters related to network communication, including information related to setting parameters for network devices. For example, by sending corresponding configuration information to the corresponding network devices, the network devices can be configured with the appropriate parameters so that they can perform network data forwarding or data routing.

[0035] Hot migration can be used to migrate communication links between nodes in a network control system in real time. For example, assuming that DBS-1 is currently communicating with UNA, through hot migration, UNA can be migrated to DBS-2 in real time to establish a communication link between UNA and DBS-2. In addition, it can also include session hot migration between DBS and NCS. This application does not limit this.

[0036] Specifically, for an NCS, an NCS can establish a corresponding communication link with at least one DBS, and a DBS can establish a corresponding communication link with at least one UNA. Each UNA corresponds to a Daemon. When it is necessary to send the corresponding configuration information to the network device, the NCS can send the corresponding configuration information to the corresponding DBS, the DBS can send the configuration information to the corresponding UNA, and the UNA can then forward the sent configuration information to the corresponding forwarding process. The forwarding process then forwards the configuration information to the corresponding network device so that the network device can perform the corresponding configuration operation.

[0037] Reference Figure 1 This document illustrates a flowchart of a device session migration method provided in an embodiment of this application. The method is applied to a network control system, which includes at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network proxy communicating with the device negotiation service. Specifically, the method may include the following steps: Step 101: Obtain the migration instruction for the first unified network agent; Step 102: Obtain the first configuration information corresponding to the first unified network proxy, and the subscription model corresponding to the first configuration information. The subscription model is the communication link subscribed to by the first configuration information in the network configuration service by the first device negotiation service proxy to the first unified network proxy. The first configuration information is parameters related to network communication. For steps 101 and 102, refer to... Figure 2 The diagram illustrates the structure of the network control system provided in this application embodiment. The network control system can be a control system that supports functions such as private network, cloud enterprise network, network load balancing, and application load balancing. The network control system can include at least one network configuration service (hereinafter referred to as NCS), at least one device negotiation service (hereinafter referred to as DBS), and at least one unified network agent (hereinafter referred to as UNA). An NCS can establish a corresponding communication link with at least one DBS, and a DBS can establish a corresponding communication link with at least one UNA. Each UNA is connected to a forwarding process (hereinafter referred to as Daemon).

[0038] In this embodiment, the communication link between DBS and UNA can be a corresponding device session. In this embodiment, the migration of the device session can be the migration of the communication connection between DBS and UNA. For example, if UNA currently has a communication link with DBS-1, the communication link can be migrated to DBS-2, a communication link between UNA and DBS-2 can be established, and the communication link with DBS-1 can be disconnected, realizing seamless hot migration of the session and realizing session migration. This effectively ensures the stability of communication between devices and reduces jitter in the configuration link.

[0039] In this embodiment of the application, for the network control system, when session migration for a unified network agent is required, relevant personnel can input a migration command for the first unified network agent into the network control system to determine the unified network agent for which session migration is required. The network control system can obtain the first configuration information corresponding to the first unified network agent and the subscription model corresponding to the first configuration information based on the migration command. The subscription model can be a communication link between NCS, DBS, UNA, and forwarding processes. Specifically, this subscription model can be a communication link where the first device negotiates service proxy for the first unified network agent and subscribes to the first configuration information in the network configuration service. This can correspond to configuration subscription information, subscription relationship information, device relationship information, and device proxy information.

[0040] Optionally, for a network control system, based on different configuration information, the device negotiation service can act as an agent for different unified network agents to subscribe to the corresponding configuration information from the same or different network configuration services. In this case, the network control system can include subscription models corresponding to different configuration information.

[0041] The configuration subscription information can include set tags for each configuration information and device negotiation service subscription configuration information, used to represent the DBS set corresponding to each configuration information; subscription relationship information includes the IP information of the device negotiation service corresponding to the set tag, used to represent the IP information of the DBS subscribing to a certain configuration information; device relationship information can include the relationship between NCS and DBS, used to represent the IP information corresponding to each DBS connected to the NCS; device proxy information includes the proxy identifier of the unified network proxy that subscribes to a certain configuration information and communicates with the device negotiation service, used to represent what configuration information the UNA connected to the DBS subscribed to. By constructing the corresponding subscription model and storing the corresponding information, on the one hand, the device can be quickly located during the configuration information distribution process, improving the efficiency of configuration information distribution; on the other hand, when session migration is required, based on the subscription model, the devices involved before and after the migration can be quickly located, and hot migration of sessions can be performed based on the located devices. This not only improves the efficiency of session migration but also enhances the accuracy of session migration, accurately migrating sessions to the corresponding communication links, thereby ensuring the stability of system operation.

[0042] In the specific implementation, for the construction of the subscription model, when the network control system creates the corresponding configuration information, it can process the subscription relationship of the NCS, DBS, UNA and forwarding process for the configuration information according to the created configuration information, including: (1) adding the storage structure of configuration information (i.e. configuration subscription information) in the NCS: <Configuration Information ID: Set Label>, the configuration information ID is the ID identifier corresponding to each configuration information, and the set label is the set of the corresponding configuration information subscribed by the device, which can be composed of the IP information corresponding to several devices. This storage structure is constructed when the configuration information is created; (2) adding the storage structure of the subscription relationship (i.e. subscription relationship information) in the NCS: <Set Label: DBS IP>, the DBS IP can be the IP of the DBS service. This storage structure is constructed when the DBS proxy UNA subscribes to the NCS; (3) adding the storage structure of the device relationship (i.e. device relationship information) in the NCS:<NCS ID: DBS IP> , NCS ID can be the identifier corresponding to NCS. This storage structure is constructed when DBS agent UNA subscribes to NCS; (4) Add the storage structure of the device in DBS (i.e. device agent information): <set label: UNA ID>, UNA ID can be the device ID of UNA. This storage structure is constructed by passing in the relevant relationship when creating the device through NCS. In this way, by constructing the information corresponding to the configuration subscription model, on the one hand, the device can be quickly located during the configuration information distribution process, which improves the efficiency of configuration information distribution. On the other hand, when session migration is required, based on the subscription model, the devices involved before and after the migration can be quickly located, and the session migration can be carried out based on the located devices. This not only improves the efficiency of session migration, but also improves the accuracy of session migration, accurately migrates the session to the corresponding communication link, and thus ensures the stability of system operation. Optionally, the storage structure can be in the form of key-value pairs or other methods. This application does not restrict this.

[0043] Step 102: From the network control system, locate the first device negotiation service and the second device negotiation service corresponding to the migration command, and locate the first unified network agent corresponding to the migration command; For a migration command, it can be represented as a command to migrate the corresponding communication link. The subscription model can be a communication structure between network configuration service, device negotiation service, unified network agent and forwarding process for subscribing to a certain configuration information (for example, it can be a communication architecture model for the first device negotiation service agent and the first unified network agent to subscribe to the first configuration information in the network configuration service). For the network control system, it can include subscription models corresponding to different configuration information. In the process of migrating the session for the first unified network agent, the first device negotiation service and the second device negotiation service corresponding to the migration command, as well as the first unified network agent corresponding to the migration parameters, can be located from the network control system.

[0044] The first device negotiation service can be a device negotiation service that is currently communicating with the first unified network agent, and it proxies the first unified network agent to subscribe to the first configuration information from the NCS; the second device negotiation service can be a target device negotiation service for session migration.

[0045] In the specific implementation, the network configuration service can first obtain the corresponding migration parameters based on the migration command. The migration parameters include at least the first proxy identifier, the second IP information, and the configuration identifier of the first configuration information. The first proxy identifier can be represented as the identifier corresponding to the unified network proxy, and the second IP information can be represented as the IP corresponding to the target device negotiation service after the session migration. The configuration identifier can be the ID corresponding to the configuration information (here, the first configuration information). Different network configurations can correspond to different IDs. During the session migration process, the network configuration service in the network control system can map the configuration identifier to the configuration subscription information to obtain the target set label corresponding to the configuration identifier. Then, it can extract the first IP information corresponding to the proxy identifier from the target set label and locate the first device negotiation service corresponding to the first IP information, as well as the second device negotiation service corresponding to the second IP information.

[0046] Step 103: Migrate the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service.

[0047] In this embodiment, the network control system can achieve seamless session migration based on migration parameters and migration commands. Specifically, the network configuration service in the network control system can first obtain migration parameters (including a first proxy identifier and a second IP information, etc.) corresponding to the migration command, and then send the migration command, the first proxy identifier, and the second IP information to the first device negotiation service. The first device negotiation service can store target device proxy information, which includes the proxy identifier of a unified network proxy that subscribes to the first configuration information and communicates with the first device negotiation service. The first device negotiation service in the network control system can then map the first proxy identifier to the target device proxy information, locating the first unified network proxy corresponding to the first proxy identifier. The first unified network proxy in the network control system then receives the migration command, the second IP information, and the first device negotiation service sent by the first device negotiation service. The system receives the first IP information corresponding to the first unified network agent and establishes a communication link with the second device negotiation service corresponding to the second IP information according to the migration instruction. Then, the second device negotiation service in the network control system receives the first IP information sent by the first unified network agent through the communication link and registers a subscription for the first configuration information with the network configuration service on behalf of the first unified network agent. At the same time, it sends a session migration success message to the first device negotiation service. Thus, when session migration is required, the system locates the device negotiation service before and after the migration and then performs a seamless targeted session migration between the two. This realizes the session migration between the control system and the forwarding device, reduces system performance overhead, effectively ensures the stability of communication between devices, reduces configuration link jitter, and ensures the effectiveness of configuration information distribution by performing hot migration of sessions, thereby improving the success rate of configuration information distribution.

[0048] For the first device negotiation service, it can also respond to the acquisition of session migration success information, acquire the existing configuration information and the corresponding distribution status information (the distribution status information can indicate whether the device negotiation service has distributed the configuration information to the unified network agent). If the distribution status information indicates that the existing configuration information has been distributed to the first unified network agent, the first device negotiation service disconnects the communication link with the first unified network agent. It should be noted that before the communication link between the first device negotiation service and the first unified network management is disconnected, the configuration information issued by the network configuration service will still be issued to the first device negotiation service. The first device negotiation service needs to issue these configurations to the first unified network management so that the first unified network management can complete the processing normally. To this end, the first device negotiation service obtains the migration timestamp corresponding to the session migration success information. When it obtains the second configuration information issued by the network configuration service, it can obtain the issuance timestamp corresponding to the second configuration information. Then, it compares the migration timestamp with the issuance timestamp corresponding to the received second configuration information. If the issuance timestamp is less than the migration timestamp, the second configuration information is issued to the first unified network agent. If the issuance timestamp is greater than the migration timestamp, a issuance success information for the second configuration information is sent to the network configuration service, but the second configuration information is not issued to the first unified network agent.

[0049] For the network configuration service, when it receives a registration request from the second device negotiation service to subscribe to the first unified network proxy for the first configuration information, it can register the request and update the corresponding subscription relationship. Specifically, in response to the successful configuration subscription of the first configuration information, the network configuration service can add the second IP information corresponding to the second device negotiation service to the target subscription relationship, establish a subscription relationship between the second device negotiation service and the first configuration information, and in subsequent cases involving the distribution of the first configuration information, the network configuration service can distribute the first configuration information to the first unified network proxy through the second device negotiation service.

[0050] For the first unified network agent, when the communication link with the first device negotiation service has not been disconnected and the communication link with the second device negotiation service has been established, since the network configuration service can distribute the corresponding configuration to the first unified network agent through the first and second device negotiation services, it needs to support the idempotent processing capability for repeated configuration information distribution. Specifically, the network configuration service can add a corresponding processing identifier to each distributed configuration information. The first unified network agent can record the corresponding distribution status based on the processing identifier. The storage structure can be <processing identifier: processing completed / processing in progress / not processed>. Thus, when a new network configuration is received, the distribution status corresponding to the current processing identifier can be queried, and then the corresponding processing operation can be performed according to the distribution status.

[0051] In its implementation, the first unified network agent can respond to receiving third configuration information from the first device negotiation service and / or the second device negotiation service, and obtain the processing identifier corresponding to the third configuration information (the processing identifier is used to indicate whether the unified network agent has completed processing the configuration information). If a processing identifier exists locally and indicates that the processing of the third configuration information has been completed, the first unified network agent sends a processing success message for the third configuration information to the first device negotiation service and / or the second device negotiation service. If a processing identifier exists locally and indicates that the third configuration information is in a processing state, the first unified network agent sends a processing message for the third configuration information to the first device negotiation service and / or the second device negotiation service. If a processing identifier does not exist locally, the first unified network agent writes the processing identifier corresponding to the third configuration information locally, processes the third configuration information, records the processing state corresponding to the processing identifier after processing, and then sends a processing success message for the third configuration information to the corresponding device negotiation service. Thus, when the configuration information is distributed, by configuring the corresponding processing identifier, the unified network agent can process the information based on the processing identifier, ensuring both the uniqueness and integrity of the configuration information processing.

[0052] Through the above process, when session migration is required, the device negotiation service before and after the migration is located, and then a seamless, targeted session migration is performed between the two. This achieves a smooth migration of sessions between the control system and the forwarding device, reducing system performance overhead and effectively ensuring the stability of communication between devices, reducing configuration link jitter. At the same time, by performing hot migration of sessions, the effectiveness of configuration information distribution can be guaranteed, and the success rate of configuration information distribution can be improved.

[0053] Furthermore, for the normal configuration information distribution process, when a relevant person creates configuration information and wants to distribute it to the corresponding network device, the network configuration service in the system can respond to the configuration creation command, obtain the target configuration information corresponding to the configuration creation command, and store the configuration subscription information and subscription relationship information corresponding to the target configuration information. Then, the network configuration service can parse the target device negotiation service based on the configuration subscription information and subscription relationship information. The target device negotiation service stores the device agent information corresponding to the target configuration information. Then, the target device negotiation service extracts the second agent identifier of the unified network agent that has subscribed to the target configuration information from the device agent information and distributes the target configuration information to the second unified network agent corresponding to the second agent identifier. The second unified network agent then forwards the corresponding target configuration information to the corresponding network device through the forwarding process, realizing the seamless distribution of northbound configuration.

[0054] Optionally, the network control system may include a control system that provides at least one cloud service among private networks, cloud enterprise networks, network load balancing, and application load balancing.

[0055] In this embodiment of the invention, it can be applied to a network control system, which may include at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network proxy communicating with the device negotiation service. When a device session migration is required, the network control system can obtain a migration instruction for the first unified network proxy, and obtain first configuration information corresponding to the first unified network proxy, as well as a subscription model corresponding to the first configuration information. The subscription model is the first device negotiation service proxy to the first unified network proxy. The system subscribes to the communication link of the first configuration information in the network configuration service. The first configuration information consists of parameters related to network communication. Then, the system locates the communication link related to the migration parameters from the network control system. The system identifies the first and second device negotiation services corresponding to the migration parameters, locates the first unified network agent corresponding to the migration parameters, and then migrates the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service according to the migration parameters and migration instructions. Thus, when session migration is required, by locating the device negotiation service before and after the migration, and then performing a seamless directed session migration between the two, the system achieves session migration between the control system and the forwarding device, reducing system performance overhead and effectively ensuring the stability of communication between devices, reducing configuration link jitter. At the same time, by performing hot migration of sessions, the effectiveness of configuration information distribution can be guaranteed, and the success rate of configuration distribution can be improved.

[0056] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, an example is provided below for illustration: For the normal configuration distribution process: When a user creates configuration information through the NCS interface, the system parses the DBS IP address to be distributed based on the input configuration information ID and set tag, and then distributes the relevant configuration information to the DBS. Upon receiving the configuration information, the DBS can parse the list of devices to be distributed based on the set tag and push the configuration information to the relevant devices.

[0057] Regarding the session migration process: When a user changes / maintains a device through the NCS interface, the DBS IP to be issued is parsed based on the incoming NCS ID, and the relevant operation instructions are sent to the DBS. After receiving the DBS, the specific maintenance / change instructions are sent to the UNA device based on the NCS ID.

[0058] Reference Figure 3This illustration shows a scenario diagram of session migration provided in this application embodiment. It assumes that a UNA device has been created and registered with DBS-1, and has subscribed to configuration information in the NCS. The NCS continuously and normally sends configuration information northbound. The session hot migration process may include: 1. Through the external device session migration interface of NCS, the UNA device ID to be migrated and the target DBS IP are passed in. Based on the storage structure, NCS determines that the current DBS device where the UNA resides is DBS-1, and notifies DBS-1 to start hot migration of the UNA. The specific distribution format is as follows:

[0059] 2. After receiving the migration call, DBS-1 issues a migration command to the corresponding UNA device, containing the target DBS IP of DBS-2 and the source DBS IP of DBS-1. The specific protocol format is as follows:

[0060] 3. After receiving the above migration instructions, UNA initiates a registration request to the target DBS-2 and establishes a communication link. At this time, source DBS information needs to be transmitted. The specific protocol format is as follows:

[0061] 4. DBS-2 proxies UNA to register configuration information subscription with NCS. After the subscription is completed, the subscription relationship in NCS will be updated to: <collection label: [DBS-1, DBS-2]>. Note that when configuration information about collection labels is subsequently distributed, NCS will distribute it to both DBS-1 and DBS-2.

[0062] Note that at this point, both DBSs distribute the configuration information to the UNA through their respective channels. Therefore, the UNA needs to support idempotent handling of duplicate configuration information distributions. Specifically, based on the NCS's processing identifier for each distributed configuration information, the UNA records the distribution status according to the processing identifier. The storage structure is: <Processing Identifier: Processing Complete / Processing / Unprocessed>. For a new request, the idempotency table for the current sequence number is queried. (1) If the local system exists and has already been successfully processed, return success directly; (2) If it exists locally and is being processed, return the status as being processed; (3) If there is no record locally, write the seq related status and process it normally. After successful processing, update the status to success.

[0063] 5. DBS-2 notifies DBS-1 that the session migration has been completed. Based on the srcDBS IP field passed during UNA registration, DBS calls the original DBS (i.e., DBS-1) to notify this UNA device that the session migration is complete.

[0064] 6. After DBS-1 has completed the processing of its existing configuration information, it disconnects from UNA, thus completing the session migration.

[0065] After receiving the notification from DBS-2, DBS-1 needs to process the northbound requests for this device that it has already received from NCS. For subsequent requests, it should directly return success, then actively disconnect from UNA and cancel its proxy subscription to UNA. This is because after DBS-1 receives the notification from DBS-2, it means that DBS-2 has already established a subscription relationship with UNA. From then on, any new configuration information generated by NCS will be sent to DBS-2. However, information generated before this point will only be sent to DBS-1. Therefore, DBS-1 needs to process the previously received requests normally.

[0066] Specifically, upon receiving the aforementioned request, DBS-1 records a timestamp indicating that the device migration is complete, with the storage structure as follows:<NCS ID:finishMigratingTime> Before the configuration information is sent to the UNA, it checks whether the processing timestamp of the configuration information (refer to the configuration information structure above) timeStamp is less than the above time. If it is less, it is processed and sent normally; if it is greater, it returns success directly.

[0067] Through the above process, when session migration is required, the device negotiation service before and after the migration is located, and then a seamless, targeted session migration is performed between the two. This achieves a smooth migration of sessions between the control system and the forwarding device, reducing system performance overhead and effectively ensuring the stability of communication between devices, reducing configuration link jitter. At the same time, by performing hot migration of sessions, the effectiveness of configuration information distribution can be guaranteed, and the success rate of configuration information distribution can be improved.

[0068] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this application are not limited to the described order of actions, because according to the embodiments of this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this application.

[0069] Reference Figure 4This diagram illustrates a structural block diagram of a network control system provided in an embodiment of this application. The network control system includes at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network agent communicating with the device negotiation service; wherein, the network control system is used for: Obtain migration instructions for the first unified network agent; Obtain the first configuration information corresponding to the first unified network proxy, and the subscription model corresponding to the first configuration information. The subscription model is the communication link of the first configuration information subscribed to by the first device negotiation service proxy for the first unified network proxy in the network configuration service. The first configuration information is parameters related to network communication. From the network control system, locate the first device negotiation service and the second device negotiation service corresponding to the migration command, and locate the first unified network agent corresponding to the migration command; The communication link between the first unified network agent and the first device negotiation service is migrated to the second device negotiation service.

[0070] In one optional embodiment, the migration parameters include a first proxy identifier and second IP information; The network configuration service is used to obtain migration parameters corresponding to the migration instruction, the migration parameters including a first proxy identifier and a second IP information; The network configuration service is used to send the migration instruction, the first proxy identifier, and the second IP information to the first device negotiation service. The first device negotiation service stores target device proxy information, which includes the proxy identifier of a unified network proxy that subscribes to the first configuration information and communicates with the first device negotiation service. The first device negotiation service is used to map the first proxy identifier to the target device proxy information and locate the first unified network proxy corresponding to the first proxy identifier; The first unified network proxy is used to receive the migration instruction, the second IP information and the first IP information corresponding to the first device negotiation service issued by the first device negotiation service, and to establish a communication link between the migration instruction and the second device negotiation service corresponding to the second IP information. The second device negotiation service is used to receive the first IP information sent by the first unified network agent through the communication link, and to register the subscription for the first configuration information with the network configuration service on behalf of the first unified network agent, and at the same time send session migration success information to the first device negotiation service.

[0071] In one optional embodiment, the first device negotiation service is used to obtain the session migration success information, obtain the currently existing configuration information and the distribution status information corresponding to the existing configuration information, wherein the distribution status information indicates whether the device negotiation service distributes the configuration information to the unified network proxy. The first device negotiation service is used to disconnect the communication link with the first unified network agent if the issued status information indicates that the existing configuration information has been issued to the first unified network agent.

[0072] In one alternative embodiment, the first device negotiation service is used for: Obtain the migration timestamp corresponding to the successful session migration information; Obtain the second configuration information issued by the network configuration service, and obtain the issuance timestamp corresponding to the second configuration information; If the distribution timestamp is less than the migration timestamp, then the second configuration information is distributed to the first unified network agent; If the distribution timestamp is greater than the migration timestamp, a distribution success message for the second configuration information is sent to the network configuration service, but the second configuration information is not distributed to the first unified network agent.

[0073] In one optional embodiment, the network configuration service stores target subscription relationships corresponding to the first configuration information, wherein the target subscription relationship includes the subscription relationship between the first IP information corresponding to the first device negotiation service and the first configuration information; wherein... The network configuration service is used to add the second IP information corresponding to the second device negotiation service to the target subscription relationship in response to the successful configuration subscription of the first configuration information, and to establish a subscription relationship between the second device negotiation service and the first configuration information.

[0074] In one alternative embodiment, the first unified network proxy is used to: Obtain the third configuration information issued by the first device negotiation service and / or the second device negotiation service, and obtain the processing identifier corresponding to the third configuration information. The processing identifier is used to indicate whether the unified network agent has completed the processing of the configuration information. If the processing identifier exists locally and indicates that the processing of the third configuration information has been completed, then a processing success message for the third configuration information is sent to the first device negotiation service and / or the second device negotiation service. If the processing identifier exists locally and indicates that the third configuration information is in a processing state, then a processing status message for the third configuration information is sent to the first device negotiation service and / or the second device negotiation service; If the processing identifier does not exist locally, then the processing identifier corresponding to the third configuration information is written, and the third configuration information is processed.

[0075] In an optional embodiment, the migration parameters further include at least a configuration identifier of the first configuration information; the subscription model includes a communication layer architecture between the network configuration service, the device negotiation service, and the unified network proxy; the communication layer architecture corresponds to configuration subscription information and subscription relationship information stored in the network configuration service; the configuration subscription information includes set tags for each configuration information and the device negotiation service subscribing to the configuration information; the subscription relationship information includes the IP information of the device negotiation service corresponding to the set tags; wherein, the network configuration service is used for: Map the configuration identifier to the configuration subscription information to obtain the target set label corresponding to the configuration identifier; Extract the first IP information corresponding to the first proxy identifier from the target set label, locate the first device negotiation service corresponding to the first IP information, and locate the second device negotiation service corresponding to the second IP information.

[0076] In one optional embodiment, the network configuration service is configured to, in response to a configuration creation instruction, obtain target configuration information corresponding to the configuration creation instruction, and the network configuration service stores configuration subscription information and subscription relationship information corresponding to the target configuration information; The network configuration service is used to parse out a target device negotiation service with respect to the target configuration information based on the configuration subscription information and the subscription relationship information. The target device negotiation service stores device agent information corresponding to the target configuration information. The target device negotiation service is used to extract the second agent identifier of the unified network agent that has subscribed to the target configuration information from the device agent information, and to send the target configuration information to the second unified network agent corresponding to the second agent identifier.

[0077] In one alternative embodiment, the network control system includes a control system that provides at least one cloud service among a private network, a cloud enterprise network, a network load balancer, and an application load balancer.

[0078] As the system implementation is basically similar to the method implementation, it is described in a relatively simple way. For relevant details, please refer to the description of the method implementation.

[0079] In addition, this application also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described device session migration method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0080] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described device session migration method embodiments and achieves the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0081] Figure 5 A schematic diagram of the hardware structure of an electronic device for implementing the various embodiments of this application. The electronic device 500 includes, but is not limited to, components such as: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will understand that the electronic device structure described in the embodiments of this application does not constitute a limitation on the electronic device. An electronic device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. In the embodiments of this application, the electronic device includes, but is not limited to, mobile phones, tablet computers, laptops, PDAs, in-vehicle terminals, wearable devices, and pedometers.

[0082] It should be understood that, in this embodiment, the radio frequency unit 501 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink data from the base station and processes it with the processor 510; additionally, it transmits uplink data to the base station. Typically, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, etc. Furthermore, the radio frequency unit 501 can also communicate with networks and other devices through a wireless communication system.

[0083] The electronic device provides users with wireless broadband internet access through the network module 502, such as helping users send and receive emails, browse web pages, and access streaming media.

[0084] The audio output unit 503 can convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into audio signals and output them as sound. Furthermore, the audio output unit 503 can also provide audio output related to specific functions performed by the electronic device 500 (e.g., call signal reception sound, message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, and a receiver, etc.

[0085] Input unit 504 is used to receive audio or video signals. Input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The GPU 5041 processes image data of still images or videos acquired by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on display unit 506. The image frames processed by GPU 5041 can be stored in memory 509 (or other storage media) or transmitted via radio frequency unit 501 or network module 502. Microphone 5042 can receive sound and process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via radio frequency unit 501 in telephone call mode.

[0086] The electronic device 500 also includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the ambient light level, and the proximity sensor can turn off the display panel 5061 and / or backlight when the electronic device 500 is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used to identify the posture of the electronic device (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc. The sensor 505 may also include a fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc., which will not be described in detail here.

[0087] The display unit 506 is used to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0088] User input unit 507 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of electronic devices. Specifically, user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near touch panel 5071). Touch panel 5071 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 510, which receives and executes commands from the processor 510. In addition, touch panel 5071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. Besides touch panel 5071, user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here.

[0089] Furthermore, the touch panel 5071 can cover the display panel 5061. When the touch panel 5071 detects a touch operation on or near it, it transmits the information to the processor 510 to determine the type of touch event. Subsequently, the processor 510 provides corresponding visual output on the display panel 5061 according to the type of touch event. It is understood that in one embodiment, the touch panel 5071 and the display panel 5061 are implemented as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated to realize the input and output functions of the electronic device. The specific implementation is not limited here.

[0090] Interface unit 508 serves as an interface for connecting external devices to electronic device 500. For example, external devices may include a wired or wireless headphone port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, and so on. Interface unit 508 can be used to receive input from external devices (e.g., data, power, etc.) and transmit the received input to one or more components within electronic device 500, or it can be used to transmit data between electronic device 500 and external devices.

[0091] The memory 509 can be used to store software programs and various data. The memory 509 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback, image playback, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0092] The processor 510 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 509, and by calling data stored in the memory 509, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 510.

[0093] The electronic device 500 may also include a power supply 511 (such as a battery) that supplies power to various components. Preferably, the power supply 511 can be logically connected to the processor 510 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system.

[0094] In addition, the electronic device 500 includes some functional modules not shown, which will not be described in detail here.

[0095] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0096] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0097] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0098] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0099] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0100] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0101] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0102] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0103] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0104] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for migrating a device session, characterized in that, Applied to a network control system, the network control system including at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network agent communicating with the device negotiation service, the method includes: The network configuration service receives a migration instruction for the first unified network agent; The network configuration service obtains the first configuration information corresponding to the first unified network proxy, and the subscription model corresponding to the first configuration information. The subscription model is the communication link of the first configuration information subscribed to by the first device negotiation service proxy for the first unified network proxy in the network configuration service. The first configuration information is parameters related to network communication. The network configuration service locates the first device negotiation service and the second device negotiation service corresponding to the migration instruction from the network control system, and locates the first unified network agent corresponding to the migration instruction. The network control system migrates the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service. Wherein, the first device negotiation service stores target device agent information, and the network control system migrates the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service, including: The network configuration service obtains migration parameters corresponding to the migration instruction. The migration parameters include at least the first proxy identifier of the first unified network proxy and the second IP information of the second device negotiation service. The first device negotiation service maps the first proxy identifier to the target device proxy information to locate the first unified network proxy; The first unified network proxy receives the migration instruction and the second IP information issued by the first device negotiation service, and establishes a communication link between the second device negotiation service corresponding to the second IP information according to the migration instruction; The second device negotiation service agent registers a subscription for the first configuration information with the network configuration service.

2. The method according to claim 1, characterized in that, The target device proxy information includes a proxy identifier for a unified network proxy that subscribes to the first configuration information and negotiates a service communication connection with the first device. Mapping the first proxy identifier to the target device proxy information to locate the first unified network proxy includes: Map the first proxy identifier to each of the other proxy identifiers to locate the first unified network proxy.

3. The method according to claim 1, characterized in that, Also includes: The first unified network proxy receives the first IP information sent by the first device negotiation service; The second device negotiation service receives the first IP information of the first device negotiation service sent by the first unified network agent through the communication link, and sends session migration success information to the first device negotiation service based on the first IP information.

4. The method according to claim 3, characterized in that, The network control system migrates the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service, and further includes: The first device negotiation service obtains the session migration success information, obtains the currently existing configuration information and the distribution status information corresponding to the existing configuration information, and the distribution status information indicates whether the device negotiation service distributes the configuration information to the unified network proxy. If the issued status information indicates that the existing configuration information has been issued to the first unified network agent, then the first device negotiation service disconnects the communication link with the first unified network agent.

5. The method according to claim 4, characterized in that, Also includes: The first device negotiation service obtains the migration timestamp corresponding to the session migration success information; The first device negotiation service obtains the second configuration information issued by the network configuration service, and obtains the issuance timestamp corresponding to the second configuration information; If the distribution timestamp is less than the migration timestamp, the first device negotiation service will distribute the second configuration information to the first unified network agent; If the distribution timestamp is greater than the migration timestamp, the first device negotiation service sends a distribution success message for the second configuration information to the network configuration service, but does not distribute the second configuration information to the first unified network agent.

6. The method according to claim 4 or 5, characterized in that, The network configuration service stores target subscription relationships corresponding to the first configuration information, the target subscription relationship including the subscription relationship between the first IP information corresponding to the first device negotiation service and the first configuration information, and the method further includes: In response to the successful configuration subscription of the first configuration information, the network configuration service adds the second IP information corresponding to the second device negotiation service to the target subscription relationship, and establishes a subscription relationship between the second device negotiation service and the first configuration information.

7. The method according to claim 1, characterized in that, Also includes: The first unified network agent obtains the third configuration information issued by the first device negotiation service and / or the second device negotiation service, and obtains the processing identifier corresponding to the third configuration information. The processing identifier is used to indicate whether the unified network agent has completed the processing of the configuration information. If the processing identifier exists locally and indicates that the processing of the third configuration information has been completed, the first unified network agent sends a processing success message for the third configuration information to the first device negotiation service and / or the second device negotiation service. If the processing identifier exists locally and indicates that the third configuration information is in a processing state, the first unified network agent sends a processing status message for the third configuration information to the first device negotiation service and / or the second device negotiation service. If the processing identifier does not exist locally, the first unified network agent writes the processing identifier corresponding to the third configuration information and processes the third configuration information.

8. The method according to claim 1, characterized in that, The migration parameters further include at least the configuration identifier of the first configuration information. The subscription model includes a communication layer architecture between the network configuration service, the device negotiation service, and the unified network proxy. The communication layer architecture corresponds to configuration subscription information and subscription relationship information stored in the network configuration service. The configuration subscription information includes set tags for each configuration information and the device negotiation service subscribing to the configuration information. The subscription relationship information includes the IP information of the device negotiation service corresponding to the set tags. The network configuration service locates the first device negotiation service and the second device negotiation service corresponding to the migration instruction from the network control system, and locates the first unified network proxy corresponding to the migration instruction, including: The network configuration service maps the configuration identifier to the configuration subscription information to obtain the target set label corresponding to the configuration identifier; The network configuration service extracts the first IP information corresponding to the first proxy identifier from the target set label, locates the first device negotiation service corresponding to the first IP information, and locates the second device negotiation service corresponding to the second IP information.

9. The method according to claim 1, characterized in that, Also includes: In response to a configuration creation command, the network configuration service obtains target configuration information corresponding to the configuration creation command. The network configuration service stores configuration subscription information and subscription relationship information corresponding to the target configuration information. The network configuration service parses out the target device negotiation service with the target configuration information based on the configuration subscription information and the subscription relationship information. The target device negotiation service stores device agent information corresponding to the target configuration information. The target device negotiation service extracts the second agent identifier of the unified network agent that has subscribed to the target configuration information from the device agent information, and sends the target configuration information to the second unified network agent corresponding to the second agent identifier.

10. The method according to claim 1, characterized in that, The network control system includes a control system that provides at least one cloud service among private networks, cloud enterprise networks, network load balancing, and application load balancing.

11. A network control system, characterized in that, The network control system includes at least one network configuration service, at least one device negotiation service communicating with the network configuration service, and at least one unified network agent communicating with the device negotiation service; wherein, The network configuration service is used to obtain migration instructions for the first unified network agent; The network configuration service is used to obtain first configuration information corresponding to the first unified network proxy, and subscription model corresponding to the first configuration information. The subscription model is a communication link subscribed to the first configuration information by the first device negotiation service proxy for the first unified network proxy. The first configuration information is parameters related to network communication. The network configuration service is used to locate the first device negotiation service and the second device negotiation service corresponding to the migration instruction from the network control system, and to locate the first unified network agent corresponding to the migration instruction. The network control system is used to migrate the communication link between the first unified network agent and the first device negotiation service to the second device negotiation service; The first device negotiation service stores target device agent information; The network configuration service is used to obtain migration parameters corresponding to the migration instruction. The migration parameters include at least the first proxy identifier of the first unified network proxy and the second IP information of the second device negotiation service. The first device negotiation service is used to map the first proxy identifier to the target device proxy information to locate the first unified network proxy; The first unified network proxy is used to receive the migration instruction and the second IP information issued by the first device negotiation service, and to establish a communication link between the second device negotiation service corresponding to the second IP information according to the migration instruction; The second device negotiation service agent is used by the first unified network agent to register a subscription for the first configuration information with the network configuration service.

12. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; The memory is used to store computer programs; When the processor executes a program stored in the memory, it implements the method as described in any one of claims 1-10.

13. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-10.

Citation Information

Patent Citations

  • Network reconnection method, equipment, system and storage medium

    CN113301092A

  • Communication network system and method for providing a service broker function, and service broker apparatus

    US20090193131A1