Data access method and related equipment

By dynamically selecting an SDP gateway when the network changes, the terminal device solves the problem of inaccessibility or poor performance of the terminal device in the zero-trust architecture, achieving efficient and secure application access.

CN118677634APending Publication Date: 2024-09-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310304989.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the zero-trust architecture, the problem of inability to access applications or poor access performance when terminal devices access the network changes, mainly due to improper selection of SDP gateways and degradation of communication link performance.

Method used

When the terminal device senses network changes, it autonomously selects the first SDP gateway from the gateway list for access, and dynamically switches the associated SDP gateway to improve access performance, including sending an authentication request to the SDP controller and receiving the gateway list and network performance information. Choose the SDP gateway with the best network performance for access.

Benefits of technology

It realizes flexible and dynamic gateway switching of terminal equipment when the network changes, improves access performance and quality, reduces communication delay, and ensures security and efficient access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118677634A
    Figure CN118677634A
Patent Text Reader

Abstract

The invention discloses a data access method and related equipment, and aims to flexibly and dynamically switch an SDP gateway when a network accessed by terminal equipment changes and improve the access performance of the terminal equipment. And the SDP controller sends a gateway list including the information of the plurality of SDP gateways to the terminal equipment after passing the authentication of the terminal equipment. When the terminal equipment senses that an accessed network changes, for example, network performance of an access application is degraded, or the terminal equipment replaces the accessed network, the terminal equipment selects the first SDP gateway in the gateway list, and the terminal equipment accesses protected application resources through the first SDP gateway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data access method and related equipment. Background Art

[0002] The borderless network environment of the Internet threatens the security of users' digital assets. In order to address such risks, the zero-trust architecture was proposed and applied. The zero-trust architecture emphasizes the principle of "never trust, always verify", that is, by default, terminal devices that access data resources are untrustworthy, and dynamic trust evaluation of terminal devices is required to determine whether the terminal devices have the authority to access data resources.

[0003] Software defined perimeter (SDP) is a network security model based on the concept of zero trust. SDP creates a security perimeter based on policies to isolate services from insecure networks. The SDP zero trust solution includes three main components: SDP client, SDP controller, and SDP gateway. The SDP client is installed on the terminal device, and the terminal device establishes a connection with the SDP controller and SDP gateway through the SDP client. The SDP controller is used to authenticate the terminal device and the user. The SDP gateway is used to perform identity detection on the terminal device that initiates the application access request, open the gateway port for the verified terminal device, close all ports for illegal terminals, block the terminal access, and ensure the security of data resources.

[0004] The terminal needs to access the application on the application server through the SDP gateway. After the user authentication is passed, the SDP controller assigns the SDP gateway that the terminal needs to access the application through according to the binding relationship between the SDP gateway and the application and the user, and then the SDP controller sends the assigned SDP gateway to the terminal. Once the network to which the terminal is connected changes, the terminal may no longer be able to access the application through the SDP gateway assigned by the SDP controller, or the communication quality of the terminal accessing the application through the SDP gateway assigned by the SDP controller is poor. Summary of the invention

[0005] The present application provides a data access method and related devices to solve the problem that when the network to which the terminal device accesses changes, the terminal device cannot access the application or the communication quality when accessing the application is poor.

[0006] The first aspect provides a data access method. The method is applied to a terminal device running an SDP client. When the network accessed by the terminal device changes, the terminal device selects a first SDP gateway in the gateway list. After selecting the first SDP gateway, the terminal device sends a first application access request to the first SDP gateway, that is, the terminal device accesses the application through the first SDP gateway. Among them, the gateway list includes gateway information of at least one SDP gateway. The gateway list is sent to the terminal device by the SDP controller after the terminal device passes the authentication of the SDP controller. The terminal device is a verified device, so when the network accessed by the terminal device changes, the behavior of autonomously selecting the first SDP gateway from the gateway list is also safe. Changes in the network environment in which the terminal device is located will affect the network performance of the communication link between the terminal device and the SDP gateway, and then affect the performance of the terminal device accessing the application. Therefore, when the terminal device perceives that the accessed network has changed, it reselects the SDP gateway used to forward the application access request from the gateway list, and can flexibly and dynamically switch the SDP gateway associated with the terminal device, thereby improving the access performance of the terminal device.

[0007] In this application, the SDP gateway associated with the terminal device refers to the SDP gateway through which the terminal device accesses the application, that is, the SDP gateway that is connected to the terminal device and verifies and forwards the application access request from the terminal device.

[0008] In one possible implementation, the network accessed by the terminal device changes, for example, the terminal device changes the network it accesses. Changing the network accessed by the terminal device may cause the terminal device to be unable to connect to the associated SDP gateway, thereby causing the terminal device to be unable to access the application through the associated SDP gateway. Changing the network accessed by the terminal device may cause the forwarding path between the terminal device and the associated SDP gateway to become longer, resulting in an increase in the communication delay between the terminal device and the associated SDP gateway, thereby affecting the performance of the terminal device in accessing the application. Thus, when the terminal device perceives that the accessed network has changed, it actively selects the first SDP gateway from the gateway list as the associated SDP gateway, and accesses the application through the first SDP gateway. By flexibly and dynamically switching the associated SDP gateway, the access performance of the terminal device in accessing the application can be improved.

[0009] The change in the network accessed by the terminal device is also, for example, that the terminal device has not changed the network accessed, and the network performance of the communication link between the terminal device and the SDP gateway associated with the terminal device has deteriorated. The deterioration of the network performance of the communication link will cause the process of accessing the application to be stuck or delayed. Therefore, in this case, the terminal device actively selects and switches the associated SDP gateway, which can improve the access performance of the terminal device when accessing the application.

[0010] In a possible implementation, after the terminal device passes the authentication and when the network it accesses changes, it can autonomously select the first SDP gateway in the gateway list. In the authentication stage of the terminal device, the SDP controller can allocate the SDP gateway to the terminal device, that is, the first SDP gateway associated with the terminal device after passing the authentication can be allocated to the terminal device by the SDP controller. Therefore, before the terminal device selects the first SDP gateway in the gateway list, the method also includes: the terminal device sends an authentication request message to the SDP controller. Wherein, the authentication request message includes the Internet Protocol (IP) address and authentication information of the terminal device, so that the SDP controller can authenticate the terminal device according to the authentication information, and after the terminal device passes the authentication, the SDP controller can further allocate the SDP gateway to the terminal device according to the IP address of the terminal device. The terminal device receives a first authentication reply message from the SDP controller. Wherein, the first authentication reply message includes information about the second SDP gateway, the first authentication reply message is sent by the SDP controller after the authentication information is authenticated, and the second SDP gateway is determined by the SDP controller according to the IP address of the terminal device and the mapping relationship between the IP address and the SDP gateway. Then, the terminal device sends a second application access request to the second SDP gateway. After the terminal device passes the authentication, the SDP controller determines the associated SDP gateway for the terminal device based on the mapping relationship between the IP address and the SDP gateway. The IP address and the SDP gateway can be bound based on the principle of proximity. For example, the SDP gateway can be bound to the IP address in the network where the SDP gateway is located. This allows the SDP gateway to be allocated nearby to the terminal device, reducing the communication delay between the terminal device and the SDP gateway and increasing the speed at which the terminal device accesses applications through the SDP gateway.

[0011] In a possible implementation, the terminal device receives a second authentication reply message from the SDP controller, and the second authentication reply message includes a gateway list. After the terminal device passes the authentication, the SDP controller sends the gateway list to the terminal device, so that when the terminal device senses that the accessed network has changed, it can timely select the first SDP gateway from the gateway list and switch, so that the terminal device can flexibly and dynamically switch the SDP gateway, thereby improving the access performance of the terminal device when accessing applications.

[0012] Optionally, the first authentication reply message and the second authentication reply message are the same message. The gateway list and the information of the second SDP gateway may be in the same field of the same message, or in different fields.

[0013] Optionally, the first authentication reply message and the second authentication reply message are different messages, that is, the SDP controller sends the gateway list and the information of the second SDP gateway to the terminal device through two messages respectively.

[0014] In a possible implementation, the terminal device initiates a network probe to the SDP gateway in the target gateway set to obtain network performance information of the communication link between the terminal device and the detected SDP gateway. The target gateway set is a full set or a subset of the gateway list. Then, the terminal device selects the first SDP gateway according to the network performance information. By initiating a network probe to the SDP gateway in the gateway list, the terminal device can test the network performance of the communication link between the terminal device and the SDP gateway, so that the SDP gateway whose network performance can meet the requirements or corresponds to the best communication link can be selected as the first SDP gateway.

[0015] In a possible implementation, the first SDP gateway is the SDP gateway corresponding to the network performance information of all SDP gateways in the target gateway set, indicating the SDP gateway corresponding to the best network performance. Thus, the terminal device can switch the associated SDP gateway to the SDP gateway with the best network performance between the terminal device and the terminal device, thereby improving the performance and quality of the terminal device's access to applications.

[0016] In a possible implementation, the first SDP gateway is an SDP gateway whose network performance information meets the conditions. By selecting an SDP gateway whose network performance meets the conditions, the performance and quality of the terminal device accessing the application can be guaranteed.

[0017] In a possible implementation, when the network accessed by the terminal device changes to a network that the terminal device has not changed access to and the network performance of the communication link between the terminal device and the SDP gateway associated with the terminal device deteriorates, the SDP gateway of the target gateway set is an SDP gateway in the gateway list that belongs to the same network as the SDP gateway associated with the terminal device. In this case, it may be caused by reasons such as the SDP gateway associated with the terminal device being overloaded. The terminal device detects the SDP gateway in the same network, which can reduce the number of SDP gateways that the terminal device needs to detect and improve detection efficiency.

[0018] In a possible implementation, when the network accessed by the terminal device changes to a new network accessed by the terminal device, the SDP gateway of the target gateway set is an SDP gateway in the gateway list that does not belong to the same network as the SDP gateway associated with the terminal device. In this case, the communication links between the terminal device and all SDP gateways in the network where the associated SDP gateway is located may become longer, thereby causing network performance to deteriorate. Therefore, the gateways in the gateway list that belong to the same network as the associated SDP gateway can be excluded, and the SDP gateways that do not belong to the same network as the associated SDP gateway are detected, which can reduce the number of SDP gateways that the terminal device needs to detect and improve detection efficiency.

[0019] In a possible implementation, the terminal device sends an update request message to the SDP controller, the update request message carries information about the first SDP gateway, and the update request message is used to instruct the SDP controller to set the first SDP gateway as the SDP gateway associated with the terminal device. After the terminal device determines the first SDP gateway, the terminal device notifies the SDP controller through the update request message, so that the SDP controller can instruct the first SDP gateway to receive the application access request of the terminal device, and then the terminal device can access the application through the first SDP gateway.

[0020] In a possible implementation, the update request message is used to instruct the SDP controller to send the terminal information of the terminal device to the first SDP gateway. Thus, the first SDP gateway can receive the application access request from the terminal device according to the terminal information of the terminal device, and verify the application access request with the terminal information, and forward the application access request to the accessed application when the verification is successful.

[0021] In a possible implementation, the update request message is used to instruct the SDP controller to delete the terminal information of the terminal device stored in the third SDP gateway, where the third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway. Thus, the exposure of the SDP gateway can be reduced and the security of the SDP gateway can be improved.

[0022] The second aspect provides a data access method. The SDP controller receives an authentication request message from a terminal device, and the authentication request message carries authentication information. After verifying the authentication information, the SDP controller sends a second authentication reply message to the terminal device, and the second authentication reply message carries a gateway list, and the gateway list includes information of at least one SDP gateway. Among them, the gateway list is used for the terminal device to select the first SDP gateway in the gateway list for forwarding application access requests when the network to which it is connected changes. The SDP controller sends a gateway list including at least one SDP gateway to the authenticated terminal device, so that when the terminal device perceives that the network to which it is connected changes, it can reselect the SDP gateway for forwarding application access requests from the gateway list, and can flexibly and dynamically switch the SDP gateway associated with the terminal device, thereby improving the access performance of the terminal device.

[0023] In a possible implementation, the SDP controller stores a mapping relationship between an IP address and an SDP gateway, and the authentication request message carries the IP address of the terminal device, and the method further includes: the SDP controller determines the second SDP gateway according to the IP address of the terminal device and the mapping relationship. Then, the SDP controller sends a first authentication reply message to the terminal device, and the first authentication reply message carries information about the second SDP gateway.

[0024] In a possible implementation, the SDP controller receives an update request message from the terminal device, the update request message carrying information of the first SDP gateway. Then, the SDP controller sets the first SDP gateway as the SDP gateway associated with the terminal device according to the update request message.

[0025] In a possible implementation, the SDP controller sends terminal information of the terminal device to the first SDP gateway, so that when the first SDP gateway receives the first application access request of the terminal device, it blocks or releases the first application access request according to the terminal information.

[0026] In a possible implementation, the SDP controller sends a deletion indication message to the third SDP gateway according to the update request message, and the deletion indication message instructs the third SDP gateway to delete the terminal information of the terminal device. The third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway.

[0027] The third aspect provides a data access method. When the SDP gateway receives a network detection message from a terminal device, it returns a detection response message corresponding to the network detection message to the terminal device. The network detection message is sent by the terminal device to the SDP gateway in the gateway list when the network to which the terminal device is connected changes, so that the terminal device obtains the network performance information of the communication link between the terminal device and the SDP gateway according to the detection response message. The SDP gateway is one of the multiple SDP gateways in the gateway list, and the network performance information is used to assist the terminal device in selecting the first SDP gateway in the gateway list. The SDP gateway opens the detection function to the terminal device, so that when the terminal device perceives that the connected network has changed, it can initiate a network detection to the SDP gateway in the gateway list, and reselect the SDP gateway used to forward the application access request according to the detection result, so that the terminal device can flexibly and dynamically switch the SDP gateway associated with the terminal device, thereby improving the access performance of the terminal device.

[0028] A fourth aspect provides a communication device. The communication device includes: a processing module, which is used to select a first software-defined boundary SDP gateway from a gateway list when a network accessed by the communication device changes, the gateway list includes gateway information of at least one SDP gateway, and the gateway list is sent to the communication device by the SDP controller after the communication device passes the authentication of the SDP controller; and a transceiver module, which is used to send a first application access request to the first SDP gateway.

[0029] In a possible implementation, the change in the network accessed by the communication device includes: the communication device changes the network accessed; or the communication device does not change the network accessed, and the network performance of the communication link between the communication device and the SDP gateway associated with the communication device deteriorates.

[0030] In one possible implementation, the transceiver module is also used to send an authentication request message to the SDP controller, the authentication request message including the IP address and authentication information of the communication device; the transceiver module is also used to receive a first authentication reply message, the first authentication reply message including information of the second SDP gateway, the first authentication reply message is sent by the SDP controller after the authentication information is authenticated, the second SDP gateway is determined by the SDP controller based on the IP address of the communication device and the mapping relationship between the IP address and the SDP gateway; the transceiver module is also used to send a second application access request to the second SDP gateway.

[0031] In a possible implementation, the transceiver module is further configured to receive a second authentication reply message, where the second authentication reply message includes a gateway list.

[0032] In one possible implementation, a processing module is used to initiate a network probe to an SDP gateway in a target gateway set to obtain network performance information of a communication link between a communication device and the probed SDP gateway, wherein the target gateway set is a full set or a subset of a gateway list; and a processing module is used to select a first SDP gateway based on the network performance information.

[0033] In a possible implementation, the first SDP gateway is the SDP gateway corresponding to the network performance information indicating the best network performance among the network performance information corresponding to all the SDP gateways in the target gateway set.

[0034] In a possible implementation, the first SDP gateway is an SDP gateway whose network performance information meets the conditions.

[0035] In one possible implementation, when the network accessed by the communication device changes to a network that the communication device has not changed and the network performance of the communication link between the communication device and the SDP gateway associated with the communication device deteriorates, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that belongs to the same network as the SDP gateway associated with the communication device.

[0036] In a possible implementation, when the network accessed by the communication device changes, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that is associated with the communication device and does not belong to the same network.

[0037] In a possible implementation, the transceiver module is further used to send an update request message to the SDP controller, the update request message carries information of the first SDP gateway, and the update request message is used to instruct the SDP controller to set the first SDP gateway as the SDP gateway associated with the communication device.

[0038] In a possible implementation, the update request message is further used to instruct the SDP controller to delete the terminal information of the communication device stored in a third SDP gateway, where the third SDP gateway is the SDP gateway associated with the communication device before selecting the first SDP gateway.

[0039] The fifth aspect provides a communication device, which includes: a transceiver module, used to receive an authentication request message from a terminal device, the authentication request message carries authentication information; a transceiver module, used to send a second authentication reply message to the terminal device after the authentication information is verified, the second authentication reply message carries a gateway list, the gateway list includes information of at least one SDP gateway, the gateway list is used for the terminal device to select a first SDP gateway in the gateway list for forwarding application access requests when the network to which it is connected changes.

[0040] In one possible implementation, the communication device also includes a storage module and a processing module; the storage module is used to store the mapping relationship between the IP address and the SDP gateway; the processing module is used to determine the second SDP gateway based on the IP address of the terminal device and the mapping relationship; the transceiver module is used to send a first authentication reply message to the terminal device, and the first authentication reply message carries information of the second SDP gateway.

[0041] In one possible implementation, the transceiver module is used to receive an update request message from a terminal device, where the update request message carries information of a first SDP gateway; the transceiver module is used to send terminal information of the terminal device to the first SDP gateway according to the update request message, so that when the first SDP gateway receives a first application access request from the terminal device, it blocks or releases the first application access request according to the terminal information.

[0042] In one possible implementation, the transceiver module is also used to send a deletion indication message to the third SDP gateway according to the update request message, and the deletion indication message instructs the third SDP gateway to delete the terminal information of the terminal device. The third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway.

[0043] A sixth aspect provides a communication device. The communication device includes: a transceiver module, which is used to return a detection response message corresponding to the network detection message to the terminal device when receiving a network detection message from the terminal device, the network detection message is sent by the terminal device to the SDP gateway in the gateway list when the network accessed by the terminal device changes, so that the terminal device obtains network performance information of the communication link between the terminal device and the SDP gateway according to the detection response message, the SDP gateway is one of the multiple SDP gateways in the gateway list, and the network performance information is used to assist the terminal device in selecting the first SDP gateway in the gateway list.

[0044] A seventh aspect provides an electronic device. The device includes a processor and a memory, the processor is coupled to the memory, and the processor is configured to implement the data access method in the first aspect or any possible implementation of the first aspect, or the data access method in the second aspect or any possible implementation of the second aspect, or the data access method in the third aspect or any possible implementation of the third aspect based on instructions stored in the memory.

[0045] In the eighth aspect, a computer-readable storage medium includes instructions, and when the computer-readable storage medium is run on an electronic device, the electronic device implements the data access method in the first aspect or any possible implementation of the first aspect, or the data access method in the second aspect or any possible implementation of the second aspect, or the data access method in the third aspect or any possible implementation of the third aspect.

[0046] The ninth aspect provides a computer program product comprising instructions, which, when executed by a communication device, enables the communication device to implement the data access method in the first aspect or any possible implementation of the first aspect, or the data access method in the second aspect or any possible implementation of the second aspect, or the data access method in the third aspect or any possible implementation of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A system architecture diagram of a traditional network security provided in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of the architecture of an SDP system provided in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0050] Figure 4 A schematic diagram of a scenario of multiple access modes for a terminal device provided in an embodiment of the present application;

[0051] Figure 5 A flowchart of a data access method provided in an embodiment of the present application;

[0052] Figure 6 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0053] Figure 7 A schematic diagram of the structure of another communication device provided in an embodiment of the present application;

[0054] Figure 8 A schematic diagram of the structure of another communication device provided in an embodiment of the present application;

[0055] Fig. 9 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The present application provides a data access method and related devices to flexibly and dynamically switch SDP gateways when the network accessed by the terminal device changes, thereby improving the access performance of the terminal device.

[0057] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there are three relationships. For example, A and / or B means: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c means: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in the embodiments of the present application, the words "first", "second" and the like do not limit the quantity and execution order.

[0058] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.

[0059] Before introducing the embodiments of the present application, the background technology involved in the present application is first introduced and explained.

[0060] The traditional concept of network security is mainly based on the definition of network boundaries for security protection. For example, Figure 1 As shown in the figure, the internal network and the external network are isolated by boundary devices such as firewalls (FW) and network intelligent protection (NIP). Among them, the external network may have security risks, while the internal network is relatively safe. The resources of the internal network (for example, the financial system, human resources system, application programs and other systems used within a certain enterprise) are not exposed to the external network, that is, the terminal devices in the external network cannot access the resources of the internal network. Traditional network security can provide certain security protection for enterprises, but with the technological development and changes in working modes brought about by digital transformation and upgrading, mobile Internet, remote office and cloud computing have made the network boundaries increasingly blurred. The traditional boundary security concept is no longer applicable to the current complex network environment. In the form of endless internal and external attacks and intensified network threats, the zero trust concept with "never trust, continuous verification" as the core has been proposed and applied.

[0061] Software defined perimeter (SDP) is one of the practical solutions of the zero trust concept. SDP is a technology that performs identity-based resource access control. Before granting terminal devices access to resources, SDP first authenticates the user and the device used by the user. If the authentication is successful, the user can use the device to access resources; if the authentication fails, the user is prohibited from using the device to access resources. In other words, SDP technology strictly authenticates the access request of each terminal device to ensure that resources are always accessed securely, thereby ensuring resource isolation and security.

[0062] Figure 2 The present invention provides an architecture diagram of an SDP system, which includes an SDP controller, an SDP client, an SDP gateway, and protected application resources. Both the SDP client and the SDP gateway can be referred to as SDP hosts, and the SDP host is divided into an SDP client and an SDP gateway according to the connection initiator and the receiver. The SDP gateway is arranged between the SDP client and the protected application resources, and the SDP client needs to go through the SDP gateway to access the protected application resources.

[0063] Optionally, the SDP client is installed on the terminal device, and the terminal device with the SDP client installed is called an SDP client device. Before the terminal device accesses various applications, the SDP client obtains the virtual IP address and port number of the SDP gateway mapped to each service that the terminal device and user are allowed to access, as well as the address and port number of the corresponding real server from the SDP controller through the identity authentication and access control process. The SDP client is used to intercept the message sent by the application client on the terminal device where the SDP client is located, and initiate a connection with the SDP gateway based on the message.

[0064] In the SDP system, according to the deployment location of the SDP gateway, the deployment mode of the SDP gateway can be divided into two deployment modes: centralized deployment and distributed deployment. In the centralized deployment scenario, the SDP gateway is deployed close to the location of the protected application resources, such as at the boundary entrance of the protected application resources. In the distributed deployment scenario, the SDP gateway is deployed close to the SDP client device, such as on the network device in the network accessed by the SDP client device.

[0065] In the SDP system, the SDP controller is used to authenticate the SDP client device, authenticate the SDP client device's access to protected application resources, and determine which SDP gateways the SDP client device can communicate with. Optionally, the SDP controller is also used to send the control policy of the authenticated SDP client device to the SDP gateway, so that the SDP gateway controls the SDP client device's access to the protected application resources according to the control policy. Optionally, the protected application resources include World Wide Web (WWW) applications, secure shell protocol (SSH) services, services based on client / server (C / S) systems, services based on browser / server (B / S) systems, etc., and this application example does not impose specific restrictions on this.

[0066] The SDP client device and the SDP gateway establish a two-way connection with the SDP controller respectively. When the SDP client device needs to access protected application resources, the SDP client device will first initiate an authentication request to the SDP controller, and the authentication request carries the user information of the user. After the SDP controller authenticates the user information, it allocates an SDP gateway to the SDP client device, sends the IP address of the SDP client device that needs to be released and the port allowed to be accessed and other information to the SDP gateway, and sends the IP address and port of the SDP gateway and other information to the SDP client device. The method for the SDP controller to allocate an SDP gateway to the SDP client device is that the SDP controller pre-stores the mapping relationship between the SDP client device and the SDP gateway, or the mapping relationship between the application, the SDP client device and the SDP gateway. After the SDP client device is authenticated, the SDP gateway to which the SDP client device can connect is determined according to the above mapping relationship.

[0067] After the SDP client device obtains the information of the SDP gateway, it sends an application access request to the SDP gateway according to the Internet Protocol (IP) address and port of the SDP gateway. The SDP gateway determines whether the source IP address in the application access request is a verified IP address, and forwards the access request to the protected application resource when the source IP address is a verified IP address, thereby allowing the SDP client device that sends the access request to access the protected application resource.

[0068] The SDP gateway assigned to the SDP client device is fixed, that is, the SDP client device can only access protected application resources through the SDP gateway assigned by the SDP controller. However, the network accessed by the SDP client device may change. For example, the location of the SDP client device changes, causing the SDP client device to switch the network it accesses, or the communication link between the SDP client device and the SDP gateway is congested, resulting in network performance degradation such as increased latency and packet loss rate. In these cases, the SDP client device still needs to access the protected application resources through the SDP gateway assigned by the SDP controller, causing the SDP client device to be unable to access the application or have poor access performance. Especially in the scenario of distributed deployment of SDP gateways, the SDP gateways are dispersedly deployed in different networks. During the authentication phase, the SDP controller assigns an SDP gateway to the SDP client device based on the user's user information. Even if the user initiates an authentication request to the SDP controller through the SDP client device at different locations, the SDP client device will be assigned to the same SDP gateway. Furthermore, after the SDP client device is assigned an SDP gateway, if the SDP client device changes location and accesses another network, the number of hops of the communication link between the SDP client device and the assigned SDP gateway may increase, thereby increasing the communication delay between the SDP client device and the SDP gateway. If the network accessed by the SDP client is isolated from the network where the assigned SDP gateway is located, it may even cause the SDP client device to be unable to communicate with the SDP gateway, thereby causing the SDP client device to be unable to access the application.

[0069] At present, usually after the user realizes that the SDP client device cannot access the application or the network performance deteriorates during the application access process, the user operates the SDP client to re-initiate authentication to the SDP controller to request the SDP controller to re-assign the SDP gateway to the SDP client, so that the SDP client device can access the application through the re-assigned SDP gateway. The process of manually re-initiating authentication to switch the SDP gateway connected to the SDP client device is cumbersome and has serious lags, affecting the normal access process.

[0070] In order to solve the above technical problems, the present application provides the following embodiments, so that when the network accessed by the SDP client device changes, the SDP client device can select the SDP gateway in a timely and flexible manner.

[0071] like Figure 3 As shown, Figure 3Schematic diagram of the architecture of the communication system provided for the embodiment of the present application. In the present embodiment, the communication system includes an SDP controller, a terminal device and a plurality of SDP gateways. There may be multiple terminal devices in the communication system, and only one of the terminal devices is used as an example for illustration here. The terminal device runs an SDP client, that is, the terminal device is the above-mentioned SDP client device. The terminal device is, for example, a computer, a laptop, a tablet, a mobile phone, an IoT device or a smart car, or a smart wearable device such as a smart watch, virtual reality, augmented reality, etc. The SDP controller can be deployed on a server or a computer. The SDP gateway can be a network device such as a firewall, a switch, a router or a gateway, or the SDP gateway can also be a hardware module (such as a chip) or a functional module in a firewall, a switch, a router or a gateway.

[0072] The SDP controller, terminal devices and multiple SDP gateways are connected through the network. Figure 4 As shown, Figure 4 Schematic diagram of multiple access modes for terminal devices provided in the embodiments of the present application. The terminal device can access the network through intranet access, Internet access, operator private network access, etc., and thus connect to the SDP controller and SDP gateway.

[0073] Intranet access refers to the access of terminal devices to the local area network (i.e., intranet) within a specified area. The intranet may include a wired LAN, and the intranet may also include a wireless LAN. The terminal device may access the intranet through a wired LAN or a wireless LAN, and there is no restriction here. In the intranet, the terminal device is assigned a fixed private IP address. When the protected application resources are located in the intranet, the terminal device can access the protected application resources with a private IP address. When the protected application resources are located in the extranet (a network outside the intranet mentioned above in the IP network), the IP address of the terminal device needs to be converted to a public IP address through network address translation (NAT) before the protected application resources can be accessed. The intranet is assigned multiple public IP addresses. Generally, the public IP addresses in the intranet are fixed. When NAT is performed on the IP address of the terminal device, a fixed public IP address may be assigned to the terminal device, or an idle public IP address may be selected from multiple public IP addresses and assigned to the terminal device.

[0074] Internet access refers to the access of terminal devices to the external network. Terminal devices can access the external network through a wired LAN or a wireless LAN, without any restrictions. For example, a user of an enterprise can access the Internet through his home network at home, or the user can access the Internet through the hotel network at a hotel. In the Internet access scenario, the IP address used by the terminal device to access the application is not fixed.

[0075] Operator private network access refers to the access of terminal devices through the mobile network specially set up by the operator. Operators can provide independent wireless private networks for terminal devices by setting up dedicated base stations and frequencies. Operators can also provide logically isolated virtual wireless private networks for terminal devices through network slicing and other methods. Operator private networks can be third generation of mobile telecommunications network (3G) private networks, fourth generation of broadband cellular network (4G) private networks, fifth generation of broadband cellular network (5G) private networks or future evolution versions of private networks.

[0076] In the scenario of operator private network access, a dedicated subscriber identity module (SIM) card is installed in the terminal device. The SIM card has an identifier, and the data sent by the terminal device to the base station carries the identifier of the locally installed SIM card. The base station can identify whether the SIM card in the access terminal device is a dedicated SIM card or a non-dedicated SIM card through the identifier of the SIM card. If the operator private network is an independent wireless private network, the base station can determine whether to allow the terminal device to access by whether the SIM card installed in the terminal device is a dedicated SIM card or a non-dedicated SIM card. The base station can only allow access to terminal devices with dedicated SIM cards installed, and refuse access to terminal devices with non-dedicated SIM cards installed. If the operator private network is a virtual wireless private network, the base station can determine whether the signaling and data of the terminal device are transmitted through the private network channel by whether the SIM card installed in the terminal device is a dedicated SIM card or a non-dedicated SIM card. For the signaling and data from the terminal device with a dedicated SIM card installed, the base station transmits it to the core network through the private network channel.

[0077] A dedicated SIM card can be bound to a specific IP address. When the core network element allocates an IP address to a terminal device, a fixed IP address can be allocated to the terminal device based on the binding relationship between the dedicated SIM card and the IP address. In a 4G private network, the core network element is, for example, a packet data network gateway (PGW). In a 5G private network, the core network element is, for example, a service management function (Service Management Function) or a user plane function (User Plane Function, UPF).

[0078] In this embodiment, the access mode of the terminal device may include any one, any two or all of the above three access modes. When the access mode of the terminal device includes at least two, the terminal device may switch between different access modes. For example, it may switch between operator private network access and Internet access, it may switch between intranet access and Internet access, and it may switch between operator private network access and intranet access.

[0079] In the scenario where the access method of the terminal device includes intranet access, the intranet may include at least one SDP gateway. Figure 4 As shown, the SDP gateway can be deployed in the intranet as an access router, as an aggregation switch / aggregation router, or as a core switch / core router / firewall. In order to ensure high concurrency of the communication system, multiple SDP gateways can be included in the intranet. For example, the intranet includes multiple subnets, and each subnet can include at least one SDP gateway. The SDP gateway can be deployed at the exit of a local area network or a subnet in the local area network.

[0080] In the scenario where the access method of the terminal device includes Internet access, the SDP gateway can be deployed at the Internet exit of the intranet. The SDP gateway at the Internet exit may include one or more. In this scenario, the Internet may also include at least one SDP gateway. For example, the SDP gateway is deployed on routers in different regions, so that terminal devices in different regions can connect to the SDP gateway nearby to improve application access performance.

[0081] In the scenario where the access method of the terminal device includes access to the operator's private network, the SDP gateway can be deployed at the boundary between the intranet and the operator's private network.

[0082] The above describes various possible access modes of the terminal device. The following describes the functions and roles of the SDP controller, the terminal device and the SDP gateway in the communication system.

[0083] The terminal device establishes a communication connection with the SDP controller through the SDP client, and sends an authentication request message to the SDP controller through the communication connection. The terminal device also establishes a communication connection with the SDP gateway associated with the terminal device through the SDP client, and sends an application access request to the SDP gateway through the communication connection. In this application, the SDP gateway associated with the terminal device refers to an SDP gateway used to establish a communication connection with the terminal device, verify the application access request from the terminal device, and forward the application access request to the protected application resource when the application access request passes the verification.

[0084] The SDP controller in this embodiment is used not only to verify the identity of the terminal device according to the authentication request message of the terminal device, and to allocate a second SDP gateway to the terminal device that has passed the authentication among multiple SDP gateways, but also to send a gateway list to the terminal device that has passed the authentication. The SDP controller can send a first authentication reply message carrying the information of the second SDP gateway to the terminal device to notify the terminal device that the SDP controller has selected the SDP gateway for the terminal device. The SDP controller can send a second authentication reply message carrying a gateway list to the terminal device. The first authentication reply message and the second authentication reply message can be the same message. The information of the second SDP gateway and the gateway list can be located in different fields of the message. Alternatively, the information of the second SDP gateway and the gateway list can be located in the same field of the message, for example, the field can include multiple subfields, one of which is used to carry the information of the second SDP gateway, and the other subfield is used to carry the gateway list. The first authentication reply message and the second authentication reply message can also be different messages, that is, the SDP controller sends the information of the second SDP gateway and the gateway list to the terminal device through different messages.

[0085] Among them, the SDP gateway in the gateway list is a candidate SDP gateway of the terminal device, and is used for the terminal device to select an SDP gateway from the gateway list as the first SDP gateway when the network changes. The gateway list may include information about all SDP gateways in the communication system. Alternatively, the gateway list includes information about all SDP gateways in the communication system except the second SDP gateway. Alternatively, the gateway list includes information about some SDP gateways in the communication system. The second SDP gateway is the gateway associated with the terminal device after authentication. The SDP gateway in the gateway list is an SDP gateway that can be used for terminal device selection when the network accessed by the terminal device changes. The information of the SDP gateway in the gateway list may include the IP address of the SDP gateway. The port information of the SDP gateway can request the port information of the first SDP gateway from the SDP controller after the terminal device determines the first SDP gateway, thereby reducing the exposure of the SDP gateway and improving the security of the SDP gateway. The information of the SDP gateway in the gateway list may include the IP address of the SDP gateway and the port in the SDP gateway that the terminal device is allowed to access. Since the terminal device is a terminal device authenticated by the SDP controller, the gateway list including port information can also be considered relatively safe, and can reduce the number of interactions between the terminal device and the SDP controller, and improve the efficiency of the terminal device switching the associated SDP gateway to the first SDP gateway.

[0086] Optionally, after the terminal device passes the authentication, the SDP controller is used to determine a second SDP gateway from multiple SDP gateways based on the IP address of the terminal device. For example, the SDP controller stores a mapping relationship between an IP address and an SDP gateway, and determines the second SDP gateway associated with the terminal device from the mapping relationship based on the source IP address in the authentication request message. Since the IP address (private network IP address or IP address after NAT) of the terminal device in the intranet is fixed, or the IP address of the terminal device in the intranet belongs to a fixed IP address pool, the mapping relationship between the IP address and the SDP gateway may include a mapping relationship between the IP address in the intranet and the SDP gateway in the intranet. The mapping relationship between the IP address of the intranet and the SDP gateway of the intranet can be mapped and bound based on the relationship between the network to which the IP address belongs and the network where the SDP gateway is located. For example, the SDP gateway and IP address in the same network can be bound, and a group of IP addresses (which can be multiple scattered IP addresses or continuous IP address segments) are planned to be used by terminal devices in a subnet, and the subnet includes at least one SDP gateway. Then the IP address and SDP gateway of the subnet can be bound and mapped, so that the SDP controller can assign a nearby SDP gateway to the terminal device based on the mapping relationship between the IP address and the SDP gateway. When the subnet includes multiple SDP gateways, that is, one IP address may be mapped to multiple SDP gateways, the SDP controller can further determine the second SDP gateway for the terminal device based on the load of the SDP gateway, etc.

[0087] The IP address of the terminal device in the operator's private network is also fixed, and the mapping relationship between the IP address and the SDP gateway can include the mapping relationship between the IP address in the operator's private network and the SDP gateway at the boundary of the operator's private network. Since the IP address of the terminal device in the Internet access scenario is dynamically changing rather than fixed, when the source IP address in the authentication request message of the SDP controller belongs to neither the intranet IP address nor the IP address of the operator's private network, the SDP controller can determine that an SDP gateway at the Internet exit is the second SDP gateway. Therefore, according to the mapping relationship between the IP address and the SDP gateway, regardless of the access mode of the terminal device, the SDP controller can reasonably allocate an SDP gateway to the terminal device, thereby improving the application access performance of the terminal device.

[0088] The SDP client running in the terminal device is also used to select the first SDP gateway in the gateway list when the network changes, and access the protected application resources through the first SDP gateway. Thus, the terminal device can automatically and timely switch the associated SDP gateway according to the network situation, ensuring that the application can be accessed normally without re-authentication when the network changes.

[0089] In this embodiment, the network change may be that the terminal device changes the network it accesses. The network change may also be that the terminal device does not change the network it accesses, but the performance of the communication link between the terminal device and its associated SDP gateway (assuming that the SDP gateway associated with the terminal device at this time is the third SDP gateway) deteriorates. The third SDP gateway and the second SDP gateway may be the same SDP gateway or different SDP gateways. For example, after the terminal device passes the authentication of the SDP controller, it has changed the associated SDP gateway many times due to changes in the network it accesses, then the third SDP gateway may no longer be the second SDP gateway.

[0090] The performance of the communication link between the terminal device and its third SDP gateway deteriorates, including, for example, an increase in latency, jitter, or packet loss rate when the terminal device accesses an application through the third SDP gateway.

[0091] The change of the network accessed by the terminal device may be caused by the change of the location of the terminal device. The terminal device accesses different networks before and after the location change. The change of the network accessed by the terminal device means that the IP address of the terminal device has also changed. The terminal device can determine that the network accessed by the terminal device has changed by sensing the change of the IP address of the terminal device. For example, the terminal device can periodically obtain the IP address of the terminal device and determine that the accessed network has changed when the IP address changes. The change of the network accessed by the terminal device may include but is not limited to the following situations:

[0092] 1. In the intranet access scenario, the terminal device switches from one subnet in the intranet to another subnet in the intranet.

[0093] 2. In the Internet access scenario, the terminal device switches from a local area network in the Internet to another local area network in the Internet.

[0094] 3. In the scenario of operator private network access, the dedicated SIM card installed in the terminal device is replaced with another dedicated SIM card, or the dedicated SIM card installed in the terminal device is replaced with a non-dedicated SIM card.

[0095] 4. Operator private network access. In the scenario where the operator private network is an independent wireless private network, the base station accessed by the terminal device is switched from a dedicated base station to a base station in the public network, which can be considered as a switch from the operator private network to the Internet.

[0096] 5. The network accessed by the terminal device is switched from the network in the intranet to the network in the Internet, or from the network in the Internet to the network in the intranet.

[0097] 6. The network accessed by the terminal device is switched from the operator's private network to the network in the intranet, or the network in the intranet is switched to the operator's private network.

[0098] After determining that the network has changed, the terminal device selects the first SDP gateway according to the gateway list. The terminal device can randomly select an SDP gateway in the target gateway set as the first SDP gateway. The terminal device can also detect the SDP gateways in the target gateway set and select the first SDP gateway according to the detection results. Among them, the target gateway set is the full set of the gateway list, and the target gateway set is the gateway list. The target gateway set can also be a subset of the gateway list. For example, when the network changes, it means that when the performance of the communication link between the terminal device and the third SDP gateway deteriorates, the SDP gateway in the target gateway set can be an SDP gateway in the target gateway set that belongs to the same network as the third SDP gateway. For another example, when the network changes, it means that when the terminal device switches the network to be accessed, the SDP gateway in the target gateway set can be an SDP gateway in the target gateway set that belongs to a different network than the third SDP gateway. In the second authentication reply message, the information of the SDP gateway in the gateway list includes, for example, the network identifier of the network to which the corresponding SDP gateway belongs. The network identifiers of the SDP gateways belonging to the same network are the same, and the network identifiers of the SDP gateways belonging to different networks are different, so that the terminal device can determine which SDP gateways in the gateway list belong to the same network as the third SDP gateway, and which SDP gateways belong to different networks from the third SDP gateway according to the network identifier. In another implementation, when constructing the second authentication reply message, the SDP controller can write the information of the SDP gateways belonging to the same network into the same field, and the information of the SDP gateways belonging to different networks into different fields. The terminal device can determine which SDP gateways in the gateway list belong to the same network by whether the information of the SDP gateways belongs to the same field. When the terminal device stores the gateway list, the information of the SDP gateways belonging to different networks can be stored in groups, so that when the network changes, the network to which each SDP gateway belongs can be distinguished. When the target gateway set is a subset of the gateway list, the efficiency of the terminal device in selecting the first SDP gateway from the gateway list can be improved.

[0099] The gateway list includes the IP address of the SDP gateway, so the terminal device can initiate network detection on the SDP gateway in the target gateway set to obtain network performance information of the communication link between the terminal device and the detected SDP gateway, and then the terminal device can select the first SDP gateway from the detected SDP gateway based on the network performance information.

[0100] In a possible implementation, the terminal device may initiate a network probe to all SDP gateways in the target gateway set, and after obtaining the network performance information of the communication link between the terminal device and all the SDP gateways in the target gateway set, select the SDP gateway with the best network performance as the first SDP gateway based on all the network performance information. The network performance information includes, for example, indicators such as delay, jitter, or packet loss rate. The terminal device may determine the second SDP gateway based on an indicator. For example, the terminal device may determine the second SDP gateway based on the delay, and the terminal device may select the SDP gateway with the smallest communication delay between the terminal device and all the SDP gateways in the target gateway set as the second SDP gateway. For another example, the terminal device may determine the second SDP gateway based on the jitter, and the terminal device may select the SDP gateway with the smallest jitter as the second SDP gateway. For another example, the terminal device may determine the second SDP gateway based on the packet loss rate, and the terminal device may select the SDP gateway with the smallest packet loss rate as the second SDP gateway.

[0101] Of course, the terminal device can also determine the second SDP gateway according to multiple indicators, conduct a comprehensive evaluation according to multiple indicators, and select the SDP gateway with the best network performance. For example, weights can be assigned to different indicators, as well as a corresponding scoring mechanism for each indicator, so that different indicators can be evaluated comprehensively. The scoring mechanism corresponding to each indicator is, for example, indicating that the better the network performance, the higher the score, for example, the smaller the delay, the higher the score, the smaller the jitter, the higher the score, and the smaller the packet loss rate, the higher the score. The comprehensive evaluation value is calculated according to the score of each indicator and the corresponding weight. The SDP gateway with the highest comprehensive evaluation value can be determined as the SDP gateway with the best network performance. Of course, it can also indicate that the better the network performance, the lower the score of the indicator, and finally the SDP gateway with the lowest comprehensive evaluation value is determined as the SDP gateway with the best performance. The weights of each indicator can be the same or different, and weights can be assigned to each indicator according to the application type. For example, if the application is a video conferencing application, it has high immediacy and high requirements for delay, then a relatively high weight can be assigned to the delay; if the application is a file transfer application, it has high requirements for the integrity and accuracy of the file data, then a relatively high weight can be assigned to the packet loss rate. The specific indicators to be combined for comprehensive evaluation and the weights to be assigned to the indicators can be determined based on actual conditions such as application type and user needs, and are not restricted here.

[0102] In another possible implementation, the terminal device may initiate network detection to the SDP gateways in the target gateway set in turn. After obtaining the network performance information of the communication link between the terminal device and a detected SDP gateway, the terminal device determines whether the network performance information corresponding to the SDP gateway meets the requirements. If it meets the requirements, the SDP gateway is determined to be the second SDP gateway. If it does not meet the requirements, it continues to initiate network detection to the undetected SDP gateways in the target gateway set until it is detected that the network performance information corresponding to a certain SDP gateway meets the requirements. Network performance information includes indicators such as delay, jitter or packet loss rate. The terminal device can determine whether the network performance information meets the requirements based on an indicator, and then select the SDP gateway whose network performance meets the requirements as the first SDP gateway. For example, the terminal device can determine whether the delay meets the requirements. If the terminal device detects that the delay between the terminal device and a certain SDP gateway is less than the delay threshold, it is considered that the network performance meets the requirements, and the SDP gateway can be determined to be the first SDP gateway. For another example, the terminal device can determine whether the jitter meets the requirements. If the terminal device detects that the jitter between the terminal device and a certain SDP gateway is less than the jitter threshold, the network performance is considered to meet the requirements, and the SDP gateway can be determined to be the first SDP gateway. For another example, the terminal device can determine whether the packet loss rate meets the requirements. If the terminal device detects that the packet loss rate between the terminal device and a certain SDP gateway is less than the packet loss rate threshold, the network performance is considered to meet the requirements, and the SDP gateway can be determined to be the first SDP gateway.

[0103] Of course, the terminal device can also comprehensively judge whether the network performance information between the terminal device and a certain SDP gateway meets the requirements based on multiple indicators. For example, weights can be assigned to different indicators, as well as a corresponding scoring mechanism for each indicator, so that different indicators can be evaluated comprehensively. The specific evaluation method can be found in the relevant description above, which will not be repeated here. If the comprehensive evaluation value is greater than the threshold, it can be determined that the network performance of the communication link between the terminal device and the SDP gateway meets the requirements, and the SDP gateway can be determined to be the first SDP gateway.

[0104] In order to enable the SDP gateway to be detected by the terminal device, the SDP gateway can enable the detection function, that is, the SDP gateway can return a detection response message to the terminal device when receiving the network detection message of the terminal device. The terminal device can calculate the delay between the terminal device and the SDP gateway based on the time t1 when it sends the network detection message to the SDP gateway and the time t2 when it receives the detection response message returned by the SDP gateway. The detection response message returned by the SDP gateway to the terminal device may include the time t1′ when the network detection message from the terminal device is received and the time t2′ when the SDP gateway sends the detection response message to the terminal device. The terminal device can calculate a more accurate delay between the terminal device and the SDP gateway based on the time t1 when it sends the network detection message to the SDP gateway, the time t1′ when the SDP gateway receives the network detection message, the time t2′ when the SDP gateway sends the detection response message to the terminal device and the time t2 when the terminal device receives the detection response message. The calculation formula is, for example, delay1=t2-t1-(t2'-t1'). Jitter is calculated from the absolute value of the delay data of adjacent detection cycles. For example, the absolute value of the delay detected in a detection cycle minus the delay detected in the previous detection cycle is the jitter. For example, the delay value of the adjacent cycle delay2 = t4-t3-(t4'-t3'), the final jitter value is calculated by two delay values, as follows: jitter = |delay2-delay1|. The packet loss rate can be obtained by subtracting the difference p2 obtained by the number of network detection messages p1 sent by the terminal device to a certain SDP gateway from the number of detection response messages received from the SDP gateway, and then divided by the number p1 of network detection messages sent by the terminal device to the SDP gateway, that is, the packet loss rate loss = (p1-p2) / p1.

[0105] If the terminal device does not receive a detection response message returned by the SDP gateway in response to a network detection message within a preset time, or the terminal device receives a network unreachable message or a time to live (TTL) message returned in response to the network detection message, the terminal device can determine that packet loss has occurred in the detection and can assign a larger delay to the detection.

[0106] The terminal device can use a ping tool based on the Internet Control Message Protocol (ICMP) to perform network detection. The network detection message is, for example, an echo request message, and the detection response message is, for example, an echo reply message. The terminal device can also use transport layer measurement methods such as the two-way active measurement protocol (TWAMP) or a traceroute program based on the transmission control protocol (TCP) to measure network performance. Alternatively, the terminal device can also measure network performance through a private protocol. If a transport layer measurement method such as TWAMP or TCP traceroute is used, the SDP gateway is required to open the corresponding detection port. For example, the default detection port of TWAMP is 862, and the detection port of TCP traceroute is 80. This is only used as an example and should not be understood as a limitation on the present application.

[0107] The SDP gateway can respond to all network detection messages, or only to some network detection messages. Specifically, in order to ensure the security of the SDP gateway and prevent the SDP gateway from being detected and attacked by unauthenticated terminal devices, the SDP gateway can only respond to network detection messages of terminal devices that have been authenticated by the SDP controller. For example, after the SDP controller authenticates the terminal device, it can send information such as the IP address of the terminal device to all SDP gateways in the gateway list. When the SDP gateway receives the network detection message, it can only respond to the network detection message from the IP address specified by the SDP controller, and return the detection response message to the terminal device corresponding to the specified IP address. For the network detection message from the IP address that does not belong to the IP address specified by the SDP controller, the SDP gateway will not respond, that is, it will not return the detection response message.

[0108] After the terminal device determines the first SDP gateway, the terminal device can directly send an application access request to the first SDP gateway, or it can first send an update request message to the SDP controller. After the SDP controller responds to the update request message and sends the terminal information of the terminal device to the first SDP gateway, the terminal device then sends an application access request to the first SDP gateway.

[0109] In the scenario where the terminal device directly sends an application access request to the first SDP gateway, the SDP controller needs to send the device information of the terminal device to the first SDP gateway in advance. For example, after the terminal device passes the authentication, the SDP controller can send the terminal information of the terminal device to the second SDP gateway. Since the identity of the terminal device is credible, the terminal information can also be sent to all SDP gateways in the gateway list. After the terminal device determines the first SDP gateway, the terminal device can directly send the application access request to the first SDP gateway, and the first SDP gateway can receive and verify the application access request from the terminal device, and forward the application access request to the protected application resource when the application access request passes the authentication.

[0110] In order to make the protected application resources and SDP gateways more secure, the SDP controller only sends the terminal information of the terminal device to the second SDP gateway after the terminal device passes the authentication, and does not send the terminal information to other SDP gateways. Therefore, after selecting the first SDP gateway, the terminal device sends an update request message carrying the information of the first SDP gateway to the SDP controller. After receiving the update request message from the terminal device, the SDP controller sends the terminal information of the terminal device to the first SDP gateway according to the information of the first SDP gateway in the update request message, and then the first SDP gateway can open the port to the terminal device to receive the application access request of the terminal device.

[0111] In this embodiment, when the terminal device senses that the accessed network has changed, it reselects the SDP gateway used to forward the application access request, so that the SDP gateway can be switched flexibly and dynamically, and switched to the SDP gateway with better network performance of the communication link between the terminal device, thereby improving the access performance of the terminal device when accessing the application. In addition, after the terminal device passes the authentication, the SDP controller determines the associated SDP gateway for the terminal device based on the mapping relationship between the IP address and the SDP gateway. The IP address and the SDP gateway can be bound according to the principle of proximity, so that the SDP gateway can be allocated to the terminal device nearby, reducing the communication delay between the terminal device and the SDP gateway, and improving the access speed of the terminal device to access the application through the SDP gateway.

[0112] In the above, it is described that after the SDP controller authenticates the terminal device, the SDP controller allocates a second SDP gateway to the terminal device. In another implementation, after the SDP controller authenticates the terminal device, it may not allocate a second SDP gateway to the terminal device, but the terminal device selects the second SDP gateway from the gateway list. For example, the terminal device may initiate a network probe on the SDP gateways in the gateway list to obtain network performance information, and then select a second SDP gateway from the gateway list based on the network performance information. The method for the terminal device to initiate a network probe on the SDP gateways in the gateway list and select the second SDP gateway based on the network performance information can refer to the method for the terminal device to select the first SDP gateway above, which will not be repeated here.

[0113] Based on the above communication system, the present application provides the following embodiments. Figure 5 As shown, Figure 5 A flowchart of a data access method provided in an embodiment of the present application. This embodiment includes the following steps:

[0114] S501: The terminal device sends an authentication request message to the SDP controller, where the authentication request message carries authentication information.

[0115] If a terminal device wants to access protected application resources, it needs to first send an authentication request message to the SDP controller to request the SDP controller to authenticate the identity of the terminal device. The authentication request message carries authentication information indicating the identity of the terminal device and the user, such as the device identifier of the terminal device, the user account and password.

[0116] MAC is the physical hardware address of the terminal device, which is a globally unique address. The device identifier is a string calculated by the SDP client in the terminal device using a preset algorithm to calculate the media access control (MAC) address of the terminal device. The device identifier can uniquely indicate a terminal device.

[0117] S502: The SDP controller authenticates the terminal device according to the authentication information.

[0118] After receiving the authentication request message from the terminal, the SDP controller obtains the authentication information such as the user account and password in the authentication request message, and then verifies the user account and password to authenticate the user.

[0119] The SDP controller stores user information, such as user account information including user account and password. The SDP controller compares the user account and password in the authentication request message with the user account and password in the stored user information. If the user account and password in the request message are consistent with the user account and password in the stored user information, the user's identity authentication is successful.

[0120] After the user's identity authentication is passed, the terminal device can be considered as a verified device, and the SDP controller can bind the user information to the terminal identification and IP address of the terminal device, and then send it to the associated SDP gateway as the terminal information of the terminal device. After the terminal device passes the authentication, the SDP controller can also determine the application list corresponding to the terminal device based on the user information (for example, the user's IP address). The application list includes the application identification of the applications that the terminal device has the right to access, that is, the terminal device can only access the applications in the application list, and the terminal device has no right to access the applications outside the application list. User information can also include job information such as departments and positions. The SDP controller can also determine the application list corresponding to the terminal device based on the job information such as departments and positions in the user information. Of course, the application list may also include the application identification of applications that the terminal device has no right to access. The terminal device cannot access the applications in the application list, but can access applications outside the application list. In the following, the application list includes the application identification of applications that the terminal device has the right to access as an example for explanation.

[0121] If the verification fails, the SDP controller does not need to assign an associated SDP gateway to the terminal device, nor does it need to send information about the SDP gateway to the terminal device.

[0122] S503: After the terminal device passes authentication, the SDP controller determines a second SDP gateway.

[0123] After the terminal device passes authentication, the SDP controller determines a second SDP gateway from among the multiple SDP gateways. The second SDP gateway is the SDP gateway assigned by the SDP controller to the terminal device.

[0124] The SDP controller can determine the second SDP gateway based on the IP address of the terminal device and the mapping relationship between the IP address and the SDP gateway. Specifically, the SDP controller stores the mapping relationship between the IP address and the SDP gateway. The source IP address field in the authentication request message carries the IP address of the terminal device. The SDP controller obtains the IP address of the terminal device from the source IP address field in the authentication request, and then determines the second SDP gateway corresponding to the terminal device based on the mapping relationship between the IP address and the SDP gateway. For details on determining the second SDP gateway based on the mapping relationship between the IP address and the SDP gateway, please refer to the relevant description above, which will not be repeated here.

[0125] S504: The SDP controller sends the terminal information of the terminal device to the second SDP gateway.

[0126] After determining the second SDP gateway, the SDP controller sends the terminal information of the terminal device to the second SDP gateway. The terminal information includes, for example, the IP address of the terminal device, the port allowed to be accessed by the terminal device, the device identification of the terminal device, and the application list corresponding to the terminal device. Thus, the second SDP gateway can receive and verify the application access request from the terminal device according to the terminal information.

[0127] S505: The second SDP gateway opens a port that allows the terminal device to access according to the terminal information.

[0128] After receiving the terminal information of the terminal device, the second SDP gateway obtains the port that the terminal device is allowed to access and opens the port to receive the application access request from the terminal device through the port. By default, the port of the SDP gateway is closed, so as to avoid being scanned and attacked by illegal terminal devices. The SDP controller sends the terminal information of the terminal device to the second SDP gateway, indicating that the terminal device has been authenticated and is safe. Therefore, the second SDP gateway can open the specified port, and the port is only open to terminal devices authenticated by the SDP controller, thereby ensuring the security of the second SDP gateway.

[0129] S506: The SDP controller sends an authentication reply message to the terminal device, where the authentication reply message includes a gateway list and information about the second SDP gateway.

[0130] The SDP controller may send a first authentication reply message to the terminal device, and the first authentication reply message includes information about the second SDP gateway. The information about the second SDP gateway includes, for example, the IP address of the second SDP gateway, and information such as the port in the second SDP gateway that the terminal device is allowed to access. Thus, the terminal device can establish a communication connection with the second SDP gateway according to the information about the second SDP gateway, and then the terminal device can send an application access request to the second SDP gateway based on the communication connection.

[0131] The SDP controller may send a second authentication reply message to the terminal device, wherein the second authentication reply message includes a gateway list, wherein the gateway list includes information of multiple SDP gateways, and details may refer to the above related description.

[0132] In this embodiment, the first authentication reply message and the second authentication reply message (collectively referred to as authentication reply messages) may be the same message or different messages. For details, please refer to the relevant description above and will not be repeated here.

[0133] This step has no order relationship with S504. The SDP controller may execute S504 first and then S506, or may execute S506 first and then S504, or the SDP controller may execute S504 and S506 simultaneously. There is no limitation here.

[0134] S507: The terminal device sends a second application access request to the second SDP gateway.

[0135] After the terminal device obtains the information of the second SDP gateway from the authentication reply message from the SDP controller, when it needs to access the protected application resources, the terminal device can establish a communication connection with the second SDP gateway according to the information of the second SDP gateway, and then send a second application access request to the second SDP gateway through the communication connection. The second application access request, for example, carries the device identifier of the terminal device and the application identifier of the target application that the terminal device wants to access. The second application access request also carries the IP address of the terminal device, and the IP address of the terminal device is carried in the source IP address field in the second application access request.

[0136] After the second SDP gateway receives the second application access request from the terminal device, it obtains the device identification and IP address of the terminal device, compares the device identification and IP address in the second application access request with the device identification and IP address in the terminal information of the terminal device to see if they are consistent. When the device identification and IP address in the second application access request and the terminal information are consistent, it can be determined that the terminal device sending the second application access request is verified. Further, the second SDP gateway can also verify whether the target application in the second application access request is an application within the scope of the terminal device's authority. The second SDP gateway can determine whether the application identification of the target application in the second application access request belongs to the application list in the terminal information. If it does, and the terminal device passes the verification, it can be considered that the second application access request is safe, and the second SDP gateway releases the second application access request, that is, forwards the second application access request to the target application; if it does not, it can be considered that the second application access request is unsafe, and the second SDP gateway blocks the second application access request, that is, does not forward the second application access request to the target application.

[0137] S508: When the network accessed by the terminal device changes, the terminal device selects the first SDP gateway in the gateway list.

[0138] The terminal device in this embodiment selects the first SDP gateway in the gateway list when sensing a change in the accessed network. The first SDP gateway is the SDP gateway selected by the terminal device to be used for association. The specific method of the terminal device sensing a change in the network and selecting the first SDP gateway in the gateway list can refer to the relevant description above.

[0139] A network change may refer to a change in the network to which the terminal device is connected. A network change may also refer to a change in the network to which the terminal device is connected, and the network performance of the communication link between the terminal device and the SDP gateway associated with the terminal device deteriorates. The specific meaning of the network change can be found in the relevant description above, and will not be repeated here.

[0140] S509: The terminal device sends an update request message to the SDP controller, where the update request message carries information of the first SDP gateway.

[0141] After determining the first SDP gateway, the terminal device sends an update request message to the SDP controller. The update request message carries information about the first SDP gateway, which is used to instruct the SDP controller to set the first SDP gateway as the SDP gateway associated with the terminal device, so that the terminal device can change the associated SDP gateway from the second SDP gateway to the first SDP gateway.

[0142] It should be noted that this embodiment is described by taking the second SDP gateway as the SDP gateway associated with the terminal device before the terminal device selects the first SDP gateway as an example. If the terminal device has changed the associated SDP gateway many times due to changes in the accessed network after passing the authentication of the SDP controller, the SDP gateway associated with the terminal device before the terminal device selects the first SDP gateway may not be the second SDP gateway, but may be another SDP gateway.

[0143] S510: The SDP controller sends the terminal information of the terminal device to the first SDP gateway according to the update request message.

[0144] After receiving the update request message, the SDP controller sets the first SDP gateway as the SDP gateway associated with the terminal device. Specifically, the SDP controller sends the terminal information of the terminal device to the first SDP gateway, so that the first SDP gateway can receive and verify the first application access request from the terminal device according to the terminal information of the terminal device, and block or release the first application access request according to the verification result.

[0145] The terminal information of the terminal device includes, for example, the IP address of the terminal device, the port allowed to be accessed by the terminal device, the device identification of the terminal device, and a list of applications corresponding to the terminal device.

[0146] Optionally, after returning the terminal information of the terminal device to the first SDP gateway, the SDP controller may also send an update completion message to the terminal device to notify the terminal device that the application can be accessed through the first SDP gateway. Of course, the SDP controller may not notify the terminal device that the update is complete. After the terminal device sends an update request message to the SDP controller, the terminal device may immediately or after a period of time try to connect to the first SDP gateway until the connection is successful.

[0147] S511: The first SDP gateway opens a port that allows the terminal device to access according to the terminal information.

[0148] After receiving the terminal information of the terminal device, the first SDP gateway obtains the port that the terminal device is allowed to access and opens the port to receive the application access request from the terminal device through the port. By default, the port of the SDP gateway is closed, so as to avoid being scanned and attacked by illegal terminal devices. The SDP controller sends the terminal information of the terminal device to the first SDP gateway, indicating that the terminal device is a device that has been authenticated by the SDP controller. Therefore, the first SDP gateway can open the specified port, and the port is only open to the terminal device authenticated by the SDP controller, thereby ensuring the security of the first SDP gateway.

[0149] S512: The terminal device sends a first application access request to the first SDP gateway.

[0150] When the terminal device needs to access a protected application, the terminal device sends a first application access request to the first SDP gateway. The first application access request carries, for example, the device identifier of the terminal device and the application identifier of the target application to be accessed by the terminal device. The first application access request also carries the IP address of the terminal device, which is carried in, for example, the source IP address field in the first application access request.

[0151] S513: The first SDP gateway releases or blocks the first application access request according to the terminal information.

[0152] After the first SDP gateway receives the first application access request from the terminal device, it obtains the device identification and IP address of the terminal device, compares the device identification and IP address in the first application access request with the device identification and IP address in the terminal information of the terminal device to see if they are consistent. When the device identification and IP address in the first application access request and the terminal information are consistent, it can be determined that the terminal device sending the first application access request is verified. Furthermore, the first SDP gateway can also verify whether the target application in the first application access request is an application within the authority scope of the terminal device. The first SDP gateway can determine whether the application identification of the target application in the first application access request belongs to the application list in the terminal information. If it does, and the terminal device is a verified device, the first SDP gateway releases the first application access request, that is, forwards the first application access request to the target application; if it does not, the first SDP gateway blocks the first application access request, that is, does not forward the first application access request to the target application.

[0153] Optionally, after S509, this embodiment further includes S514.

[0154] S514: The SDP controller sends a deletion indication message to the second SDP gateway according to the update request message, which is used to instruct the second SDP gateway to delete the terminal information of the terminal device.

[0155] It should be noted that there is no order of precedence between S514 and S510.

[0156] Before the SDP controller sets the SDP gateway associated with the terminal device as the first SDP gateway, the terminal device is associated with the second SDP gateway. The second SDP gateway stores the terminal information of the terminal device, so that the terminal device accesses the protected application resources through the second SDP gateway.

[0157] After the terminal device selects the first SDP gateway as the associated SDP gateway, the terminal device will no longer access the protected application resources through the second SDP gateway. Therefore, the SDP controller sends a deletion instruction message to the second SDP gateway to delete the terminal information of the terminal device. The second SDP gateway deletes the stored terminal information of the terminal device according to the deletion instruction message and closes the port for the terminal device. Before the SDP controller resends the terminal information of the terminal device to the second SDP gateway, the second SDP gateway does not accept the application access request from the terminal device. Thus, the security of the second SDP gateway is improved.

[0158] Optionally, this embodiment may not include S509-S511, that is, after determining the first SDP gateway, the terminal device may directly access the protected application resources through the first SDP gateway. For details, please refer to the above related description, which will not be repeated here.

[0159] In this embodiment, after the terminal device passes the authentication, the SDP controller determines the associated SDP gateway for the terminal device based on the mapping relationship between the IP address and the SDP gateway. The IP address and the SDP gateway can be bound according to the principle of proximity, so that the SDP gateway can be allocated to the terminal device nearby, reducing the communication delay between the terminal device and the SDP gateway, and improving the access speed of the terminal device to the application through the SDP gateway.

[0160] When the terminal device senses that the access network has changed, it reselects the SDP gateway used to forward the application access request, so that the SDP gateway can be switched flexibly and dynamically to improve the access performance of the terminal device when accessing the application. In addition, the terminal device can detect the SDP gateways in the gateway list and select the SDP gateway that meets the conditions or is the best for the communication link with the terminal device. The terminal device can access the protected application resources through the communication link with better network performance, which can improve the access speed and quality.

[0161] like Figure 6 As shown, Figure 6 A schematic diagram of the structure of a communication device provided in the present application. The communication device 600 includes: a processing module 601, which is used to select a first SDP gateway from a gateway list when a network accessed by the communication device changes, the gateway list includes gateway information of at least one SDP gateway, and the gateway list is sent to the communication device by the SDP controller after the communication device passes the authentication of the SDP controller; a transceiver module 602, which is used to send a first application access request to the first SDP gateway.

[0162] In a possible implementation, the change in the network accessed by the communication device includes: the communication device changes the network accessed; or the communication device does not change the network accessed, and the network performance of the communication link between the communication device and the SDP gateway associated with the communication device deteriorates.

[0163] In one possible implementation, the transceiver module 602 is also used to send an authentication request message to the SDP controller, the authentication request message including the IP address and authentication information of the communication device; the transceiver module 602 is also used to receive a first authentication reply message, the first authentication reply message including information of the second SDP gateway, the first authentication reply message is sent by the SDP controller after the authentication information is authenticated, and the second SDP gateway is determined by the SDP controller based on the IP address of the communication device and the mapping relationship between the IP address and the SDP gateway; the transceiver module 602 is also used to send a second application access request to the second SDP gateway.

[0164] In a possible implementation, the transceiver module 602 is further configured to receive a second authentication reply message, where the second authentication reply message includes a gateway list.

[0165] In one possible implementation, processing module 601 is used to initiate network detection to the SDP gateway in the target gateway set to obtain network performance information of the communication link between the communication device and the detected SDP gateway, and the target gateway set is the entire set or a subset of the gateway list; processing module 601 is used to select the first SDP gateway based on the network performance information.

[0166] In a possible implementation, the first SDP gateway is the SDP gateway corresponding to the network performance information indicating the best network performance among the network performance information corresponding to all the SDP gateways in the target gateway set.

[0167] In a possible implementation, the first SDP gateway is an SDP gateway whose network performance information meets the conditions.

[0168] In one possible implementation, when the network accessed by the communication device changes to a network that the communication device has not changed and the network performance of the communication link between the communication device and the SDP gateway associated with the communication device deteriorates, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that belongs to the same network as the SDP gateway associated with the communication device.

[0169] In a possible implementation, when the network accessed by the communication device changes, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that is associated with the communication device and does not belong to the same network.

[0170] In a possible implementation, the transceiver module 602 is further used to send an update request message to the SDP controller, the update request message carries information of the first SDP gateway, and the update request message is used to instruct the SDP controller to set the first SDP gateway as the SDP gateway associated with the communication device.

[0171] In a possible implementation, the update request message is further used to instruct the SDP controller to delete the terminal information of the communication device stored in a third SDP gateway, where the third SDP gateway is the SDP gateway associated with the communication device before selecting the first SDP gateway.

[0172] like Figure 7 As shown, Figure 7A structural diagram of another communication device provided by the present application. The communication device 700 includes: a transceiver module 701, which is used to receive an authentication request message of a terminal device, the authentication request message carries authentication information; the transceiver module 701 is used to send a second authentication reply message to the terminal device after the authentication information is verified, the second authentication reply message carries a gateway list, the gateway list includes information of at least one SDP gateway, and the gateway list is used for the terminal device to select a first SDP gateway in the gateway list for forwarding the application access request when the network to which it is connected changes.

[0173] In one possible implementation, the communication device also includes a storage module 702 and a processing module 703; the storage module 702 is used to store the mapping relationship between the IP address and the SDP gateway; the processing module 703 is used to determine the second SDP gateway based on the IP address and the mapping relationship of the terminal device; the transceiver module 701 is used to send a first authentication reply message to the terminal device, and the first authentication reply message carries information of the second SDP gateway.

[0174] In one possible implementation, the transceiver module 701 is used to receive an update request message from a terminal device, where the update request message carries information of a first SDP gateway; the transceiver module 701 is used to send terminal information of the terminal device to the first SDP gateway according to the update request message, so that when the first SDP gateway receives a first application access request from the terminal device, it blocks or releases the first application access request according to the terminal information.

[0175] In a possible implementation, the transceiver module 701 is also used to send a deletion indication message to the third SDP gateway according to the update request message, and the deletion indication message instructs the third SDP gateway to delete the terminal information of the terminal device. The third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway.

[0176] like Figure 8 As shown, Figure 8 A structural diagram of another communication device provided by the present application. The communication device 800 includes: a transceiver module 801, which is used to return a detection response message corresponding to the network detection message to the terminal device when receiving a network detection message from the terminal device, the network detection message is sent by the terminal device to the SDP gateway in the gateway list when the network accessed by the terminal device changes, so that the terminal device obtains the network performance information of the communication link between the terminal device and the SDP gateway according to the detection response message, the SDP gateway is one of the multiple SDP gateways in the gateway list, and the network performance information is used to assist the terminal device in selecting the first SDP gateway in the gateway list.

[0177] like Fig. 9 As shown, Fig. 9A structural diagram of a communication device provided in the present application. The communication device 900 includes a processor 901 and a memory 902, the processor 901 is coupled to the memory 902, and the processor 901 is configured to implement the data access method in the first aspect or any possible implementation of the first aspect, or the data access method in the second aspect or any possible implementation of the second aspect, or the data access method in the third aspect or any possible implementation of the third aspect based on instructions stored in the memory 902.

[0178] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a communication device, the data access method process of any of the above embodiments is implemented.

[0179] The present application also provides a computer program product comprising instructions, which, when executed by a communication device, enables the communication device to implement the data access method process of any of the above embodiments.

[0180] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0181] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical or other forms.

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

[0183] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0184] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the present application can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A data access method, characterized in that: The method comprises: When a network accessed by a terminal device changes, the terminal device selects a first software-defined boundary SDP gateway in a gateway list, wherein the gateway list includes gateway information of at least one SDP gateway, and the gateway list is sent by the SDP controller to the terminal device after the terminal device passes authentication by the SDP controller; The terminal device sends a first application access request to the first SDP gateway.

2. The method according to claim 1, characterized in that Changes in the network accessed by the terminal device include: The terminal device changes the network it accesses; or The terminal device has not changed the network it accesses, and the network performance of the communication link between the terminal device and the SDP gateway associated with the terminal device has deteriorated.

3. The method according to claim 1 or 2, characterized in that: When the network accessed by the terminal device changes, before the terminal device selects the first SDP gateway in the gateway list, the method further includes: The terminal device sends an authentication request message to the SDP controller, where the authentication request message includes an Internet Protocol IP address and authentication information of the terminal device; The terminal device receives a first authentication reply message, the first authentication reply message includes information of a second SDP gateway, the first authentication reply message is sent by the SDP controller after authenticating the authentication information, and the second SDP gateway is determined by the SDP controller according to the IP address of the terminal device and a mapping relationship between the IP address and the SDP gateway; The terminal device sends a second application access request to the second SDP gateway.

4. The method according to claim 3, characterized in that Also includes: The terminal device receives a second authentication reply message, where the second authentication reply message includes the gateway list.

5. The method according to any one of claims 1 to 4, characterized in that: The terminal device selects a first SDP gateway in the gateway list, including: The terminal device initiates a network detection to the SDP gateway in the target gateway set to obtain network performance information of the communication link between the terminal device and the detected SDP gateway, wherein the target gateway set is the entire set or a subset of the gateway list; The terminal device selects the first SDP gateway according to the network performance information.

6. The method according to claim 5, characterized in that The first SDP gateway is the SDP gateway corresponding to the network performance information indicating the best network performance among the network performance information corresponding to all the SDP gateways in the target gateway set.

7. The method according to claim 5, characterized in that The first SDP gateway is an SDP gateway whose network performance information meets the conditions.

8. The method according to any one of claims 5 to 7, characterized in that When the network accessed by the terminal device changes to a network that the terminal device has not changed and the network performance of the communication link between the terminal device and the SDP gateway associated with the terminal device deteriorates, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that belongs to the same network as the SDP gateway associated with the terminal device.

9. The method according to any one of claims 5 to 7, characterized in that When the network accessed by the terminal device changes, that is, the terminal device changes the network accessed, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that does not belong to the same network as the SDP gateway associated with the terminal device.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: The terminal device sends an update request message to the SDP controller, where the update request message carries information of the first SDP gateway, and the update request message is used to instruct the SDP controller to set the first SDP gateway as the SDP gateway associated with the terminal device.

11. The method according to claim 10, characterized in that The update request message is used to instruct the SDP controller to delete the terminal information of the terminal device stored in a third SDP gateway, where the third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway.

12. A data access method, characterized in that: The method comprises: The software defined border SDP controller receives an authentication request message from a terminal device, where the authentication request message carries authentication information; After verifying the authentication information, the SDP controller sends a second authentication reply message to the terminal device. The second authentication reply message carries a gateway list. The gateway list includes information of at least one SDP gateway. The gateway list is used for the terminal device to select the first SDP gateway in the gateway list for forwarding application access requests when the network to which it is connected changes.

13. The method according to claim 12, characterized in that The SDP controller stores a mapping relationship between an IP address and an SDP gateway, the authentication request message carries the IP address of the terminal device, and the method further includes: The SDP controller determines a second SDP gateway according to the IP address of the terminal device and the mapping relationship; The SDP controller sends a first authentication reply message to the terminal device, where the first authentication reply message carries information about the second SDP gateway.

14. The method according to claim 12 or 13, characterized in that The method further comprises: The SDP controller receives an update request message from the terminal device, where the update request message carries information of the first SDP gateway; The SDP controller sets the first SDP gateway as the SDP gateway associated with the terminal device according to the update request message.

15. The method according to claim 14, characterized in that The SDP controller sets the first SDP gateway as the SDP gateway associated with the terminal device according to the update request message, including: The SDP controller sends the terminal information of the terminal device to the first SDP gateway, so that when the first SDP gateway receives the first application access request of the terminal device, it blocks or releases the first application access request according to the terminal information.

16. The method according to claim 14 or 15, characterized in that The method further comprises: The SDP controller sends a deletion indication message to the third SDP gateway according to the update request message, and the deletion indication message instructs the third SDP gateway to delete the terminal information of the terminal device. The third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway.

17. A data access method, characterized in that: The method comprises: When a software-defined boundary SDP gateway receives a network detection message from a terminal device, it returns a detection response message corresponding to the network detection message to the terminal device. The network detection message is sent by the terminal device to the SDP gateway in the gateway list when the network accessed by the terminal device changes, so that the terminal device obtains network performance information of the communication link between the terminal device and the SDP gateway according to the detection response message. The SDP gateway is one of the multiple SDP gateways in the gateway list, and the network performance information is used to assist the terminal device in selecting the first SDP gateway in the gateway list.

18. A communication device, characterized in that: The communication device comprises: a processing module, configured to select a first software-defined border SDP gateway from a gateway list when a network accessed by the communication device changes, wherein the gateway list includes gateway information of at least one SDP gateway, and the gateway list is sent by the SDP controller to the communication device after the communication device passes the authentication of the SDP controller; The transceiver module is used to send a first application access request to the first SDP gateway.

19. The device according to claim 18, characterized in that The change in the network accessed by the communication device includes: The communication device changes the network it accesses; or The communication device has not changed the network it accesses, and the network performance of the communication link between the communication device and the SDP gateway associated with the communication device is degraded.

20. The device according to claim 18 or 19, characterized in that The transceiver module is further used to send an authentication request message to the SDP controller, wherein the authentication request message includes the IP address and authentication information of the communication device; The transceiver module is further used to receive a first authentication reply message, the first authentication reply message includes information of a second SDP gateway, the first authentication reply message is sent by the SDP controller after the authentication information is authenticated, and the second SDP gateway is determined by the SDP controller according to the IP address of the communication device and the mapping relationship between the IP address and the SDP gateway; The transceiver module is further used to send a second application access request to the second SDP gateway.

21. The device according to claim 20, characterized in that The transceiver module is further used to receive a second authentication reply message, where the second authentication reply message includes the gateway list.

22. The device according to any one of claims 18 to 21, characterized in that The processing module is used to initiate a network probe to an SDP gateway in a target gateway set to obtain network performance information of a communication link between the communication device and the probed SDP gateway, wherein the target gateway set is a full set or a subset of the gateway list; The processing module is used to select the first SDP gateway according to the network performance information.

23. The device according to claim 22, characterized in that The first SDP gateway is the SDP gateway corresponding to the network performance information indicating the best network performance among the network performance information corresponding to all the SDP gateways in the target gateway set.

24. The device according to claim 22, characterized in that The first SDP gateway is an SDP gateway whose network performance information meets the conditions.

25. The device according to any one of claims 22 to 24, characterized in that When the network accessed by the communication device changes to a network to which the communication device has not changed access and the network performance of the communication link between the communication device and the SDP gateway associated with the communication device deteriorates, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that belongs to the same network as the SDP gateway associated with the communication device.

26. The device according to any one of claims 22 to 24, characterized in that When the network accessed by the communication device changes, that is, the communication device changes the network accessed, the SDP gateway in the target gateway set is an SDP gateway in the gateway list that does not belong to the same network as the SDP gateway associated with the communication device.

27. The device according to any one of claims 18 to 26, characterized in that The transceiver module is further used to send an update request message to the SDP controller, the update request message carries information of the first SDP gateway, and the update request message is used to instruct the SDP controller to set the first SDP gateway as the SDP gateway associated with the communication device.

28. The device according to claim 27, characterized in that The update request message is also used to instruct the SDP controller to delete the terminal information of the communication device stored in a third SDP gateway, where the third SDP gateway is the SDP gateway associated with the communication device before selecting the first SDP gateway.

29. A communication device, characterized in that: The communication device comprises: A transceiver module, used to receive an authentication request message from a terminal device, wherein the authentication request message carries authentication information; The transceiver module is used to send a second authentication reply message to the terminal device after the authentication information is verified. The second authentication reply message carries a gateway list, and the gateway list includes information of at least one SDP gateway. The gateway list is used for the terminal device to select the first SDP gateway in the gateway list for forwarding application access requests when the network to which it is connected changes.

30. The device according to claim 29, characterized in that The communication device also includes a storage module and a processing module; The storage module is used to store the mapping relationship between the IP address and the SDP gateway; The processing module is used to determine the second SDP gateway according to the IP address of the terminal device and the mapping relationship; The transceiver module is used to send a first authentication reply message to the terminal device, and the first authentication reply message carries information of the second SDP gateway.

31. The device according to claim 29 or 30, characterized in that The transceiver module is used to receive an update request message from the terminal device, where the update request message carries information of the first SDP gateway; The transceiver module is used to send the terminal information of the terminal device to the first SDP gateway according to the update request message, so that when the first SDP gateway receives the first application access request of the terminal device, it blocks or releases the first application access request according to the terminal information.

32. The device according to claim 29, characterized in that The transceiver module is also used to send a deletion indication message to the third SDP gateway according to the update request message, and the deletion indication message instructs the third SDP gateway to delete the terminal information of the terminal device. The third SDP gateway is the SDP gateway associated with the terminal device before selecting the first SDP gateway.

33. A communication device, characterized in that: The communication device comprises: A transceiver module is used to return a detection response message corresponding to the network detection message to the terminal device when receiving a network detection message from the terminal device. The network detection message is sent by the terminal device to the SDP gateway in the gateway list when the network to which the terminal device accesses changes, so that the terminal device obtains network performance information of the communication link between the terminal device and the SDP gateway based on the detection response message. The SDP gateway is one of the multiple SDP gateways in the gateway list, and the network performance information is used to assist the terminal device in selecting the first SDP gateway in the gateway list.

34. An electronic device, characterized in that: The device comprises a processor and a memory, wherein the processor is coupled to the memory, and the processor is configured to execute the data access method according to any one of claims 1 to 17 based on instructions stored in the memory.

35. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises instructions, which, when the computer-readable storage medium is executed on an electronic device, causes the electronic device to execute the data access method as claimed in any one of claims 1 to 17.

36. A computer program product comprising instructions, characterized in that When the instruction is executed by a communication device, the communication device executes the data access method according to any one of claims 1 to 17.