Traffic identification method, device and computer equipment

By in the zero-trust network architecture, the target connector modifys the client's source address to the modified source address consistent with the target virtual address and forwards access traffic to the target application, the problem of low user traffic recognition accuracy in the zero-trust network architecture is solved, and more accurate user recognition and higher access security are achieved.

CN119788537APending Publication Date: 2025-04-08HANGZHOU YIGE CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510055062.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In a zero-trust network architecture, the connector loses the client's source IP address when proxy traffic forwarding, resulting in low accuracy in user traffic recognition.

Method used

By receiving the user number and access traffic sent by the gateway, the target connector determines the target virtual address corresponding to the user number, and modifys the client's source address to the modified source address consistent with the target virtual address, establishes a connection with the target application based on the modified source address, and forwards the access traffic to the target application.

Benefits of technology

It improves the accuracy of traffic recognition, realizes accurate identification by users when accessing target applications, and provides a virtual address basis for target applications for security policy management and traffic audits, improving the security of accessing applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119788537A_ABST
    Figure CN119788537A_ABST
Patent Text Reader

Abstract

The present application relates to a traffic identification method, device and computer equipment. Applied to a target connector, the method includes: receiving a user number and access traffic sent by a gateway, the access traffic being the traffic of a client accessing a target application; determining a target virtual address corresponding to the user number, and modifying the source address corresponding to the client based on the target virtual address to obtain a modified source address, the modified source address being consistent with the target virtual address; establishing a connection with the target application based on the modified source address, and forwarding the access traffic to the target application, so that the target application identifies the modified source address and responds to the access traffic. The use of this method can improve the accuracy of traffic identification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a traffic identification method, device and computer equipment. Background Art

[0002] With the changes in the office environment and the development of cloud computing, the zero-trust network architecture has been introduced to ensure the security of network access. The zero-trust network architecture usually uses gateways and connectors as key components, which are responsible for connecting clients and proxy access to application servers respectively. In the zero-trust network architecture, the connector loses the client's source Internet Protocol (IP) address when forwarding proxy traffic to the application actually accessed, and instead uses the connector's own IP address to access the application server, so that the application server or audit device can only receive the connector's IP address and cannot distinguish users based on the IP address, resulting in low accuracy in user traffic identification. Summary of the invention

[0003] Based on this, it is necessary to provide a flow identification method, device and computer equipment that can improve the accuracy of flow identification in response to the above technical problems.

[0004] In a first aspect, the present application provides a traffic identification method, which is applied to a target connector, and the method includes:

[0005] Receive the user ID and access traffic sent by the gateway, where the access traffic is the traffic of the client accessing the target application;

[0006] Determine a target virtual address corresponding to the user number, and modify the source address corresponding to the client based on the target virtual address to obtain a modified source address, wherein the modified source address is consistent with the target virtual address;

[0007] A connection is established with the target application based on the modified source address, and the access traffic is forwarded to the target application, so that the target application identifies the modified source address and responds to the access traffic.

[0008] In one of the embodiments, a return static route is configured between the target connector and the target application, and the method further includes:

[0009] The response traffic corresponding to the access traffic sent by the target application is received through the return static routing; and the response traffic is sent to the gateway through a preset local loopback interface.

[0010] In one embodiment, determining the target virtual address corresponding to the user number, and modifying the source address corresponding to the client based on the target virtual address to obtain the modified source address includes:

[0011] In the mapping relationship between the number and the virtual address, the target virtual address corresponding to the user number is determined; the source address corresponding to the client is modified according to the preset modification strategy and the target virtual address to obtain the modified source address.

[0012] In one embodiment, the method further comprises:

[0013] Obtain the virtual address pool from the management and control system.

[0014] In a second aspect, the present application provides a traffic identification method, which is applied to a gateway, and the method includes:

[0015] Send the user number and access traffic to the target connector, so that the target connector determines the target virtual address corresponding to the user number and modifies the source address corresponding to the client based on the target virtual address to obtain a modified source address, the modified source address is consistent with the target virtual address, establishes a connection with the target application based on the modified source address, and forwards the access traffic to the target application, so that the target application identifies the modified source address and responds to the access traffic, the access traffic being the traffic of the client accessing the target application;

[0016] In one embodiment, the method further comprises:

[0017] If an abnormality is detected in the target connector, an abnormality signal is sent to the management and control system, so that the management and control system updates the routing configuration table based on the abnormality signal to obtain an updated routing configuration table;

[0018] Based on the updated routing configuration table and the user ID, a new connector is selected as the target connector.

[0019] In one embodiment, the gateway establishes a connection with a plurality of connectors, and the method further comprises:

[0020] Based on the priority of each of the connectors, a target connector group that meets a preset screening condition is obtained;

[0021] The numbering information is mapped based on a preset hash algorithm to obtain a hash value corresponding to the numbering information, and a connector matching the hash value is screened out from the target connector group, and the connector matching the hash value is determined to be the target connector, wherein the numbering information includes the user number and / or application number.

[0022] In a third aspect, the present application provides a traffic identification method, which is applied to a target application, and the method includes:

[0023] Receive a modified source address and access traffic sent by a target connector, wherein the modified source address is obtained by modifying a source address corresponding to a client based on a target virtual address by the target connector, and the modified source address is consistent with the target virtual address, and the target virtual address is determined by the target connector based on a user number. The access traffic is the traffic of the client accessing the target application;

[0024] The modified source address is identified, and the access traffic is responded to.

[0025] In a fourth aspect, the present application further provides a flow identification device, applied to a target connector, the device comprising:

[0026] A receiving module, used to receive a user ID and access traffic sent by a gateway, wherein the access traffic is traffic for a client to access a target application;

[0027] A modification module, used to determine a target virtual address corresponding to the user number, and to modify a source address corresponding to the client based on the target virtual address to obtain a modified source address, wherein the modified source address is consistent with the target virtual address;

[0028] A forwarding module is used to establish a connection with the target application based on the modified source address and forward the access traffic to the target application, so that the target application can identify the modified source address and respond to the access traffic.

[0029] In a fifth aspect, the present application further provides a traffic identification device, applied to a gateway, the device comprising:

[0030] A sending module is used to send the user number and access traffic to the target connector, so that the target connector determines the target virtual address corresponding to the user number and modifies the source address corresponding to the client based on the target virtual address to obtain a modified source address, the modified source address is consistent with the target virtual address, a connection is established with the target application based on the modified source address, and the access traffic is forwarded to the target application, so that the target application identifies the modified source address and responds to the access traffic, the access traffic is the traffic of the client accessing the target application.

[0031] In a sixth aspect, the present application further provides a flow identification device, applied to a target application, the device comprising:

[0032] A receiving module, configured to receive a modified source address and access traffic sent by a target connector, wherein the modified source address is obtained by modifying a source address corresponding to a client based on a target virtual address by the target connector, and the modified source address is consistent with the target virtual address, and the target virtual address is determined by the target connector based on a user number. The access traffic is traffic for the client to access the target application;

[0033] The identification module is used to identify the modified source address and respond to the access traffic.

[0034] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0035] Receive the user ID and access traffic sent by the gateway, where the access traffic is the traffic of the client accessing the target application;

[0036] Determine a target virtual address corresponding to the user number, and modify the source address corresponding to the client based on the target virtual address to obtain a modified source address, wherein the modified source address is consistent with the target virtual address;

[0037] A connection is established with the target application based on the modified source address, and the access traffic is forwarded to the target application, so that the target application identifies the modified source address and responds to the access traffic.

[0038] In an eighth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0039] Receive the user ID and access traffic sent by the gateway, where the access traffic is the traffic of the client accessing the target application;

[0040] Determine a target virtual address corresponding to the user number, and modify the source address corresponding to the client based on the target virtual address to obtain a modified source address, wherein the modified source address is consistent with the target virtual address;

[0041] A connection is established with the target application based on the modified source address, and the access traffic is forwarded to the target application, so that the target application identifies the modified source address and responds to the access traffic.

[0042] The above-mentioned traffic identification method, device and computer equipment determine the target virtual address corresponding to the user code, modify the source address of the client based on the target virtual address, obtain the modified source address, establish a connection with the target application based on the modified source address, and forward the access traffic to the target application. The target application can identify and respond to the access traffic based on the modified source address. The connector accesses the target application through the modified source address, thereby improving the accuracy of identifying users when users access the target application. At the same time, the virtual address is used as a benchmark to facilitate the subsequent security policy management and traffic auditing of the target application, thereby improving the security of access to the application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A schematic diagram of a flow identification system in one embodiment;

[0045] Figure 2 A flow chart of a flow identification method in one embodiment;

[0046] Figure 3 A flow chart of a flow identification method in one embodiment;

[0047] Figure 4 A schematic diagram of a flow identification system in one embodiment;

[0048] Figure 5 A flow chart of a flow identification method in one embodiment;

[0049] Figure 6 An interactive diagram of a traffic identification method in one embodiment;

[0050] Figure 7 is a structural block diagram of a flow identification device in one embodiment;

[0051] Figure 8 is a structural block diagram of a flow identification device in one embodiment;

[0052] Fig. 9 is a structural block diagram of a flow identification device in one embodiment;

[0053] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] The flow identification method provided in the embodiment of the present application can be applied to Figure 1 In the traffic identification system, the gateway (POP) can establish a connection with the client; the gateway can establish a connection with multiple connectors (connector 1, connector 2, connector 3, ..., connector n), and the connector can establish a connection with the target application. The client and each connector can obtain relevant information from the management and control system.

[0056] The client can be a zero-trust client. The client can be, but is not limited to, various personal computers, laptops, smart phones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The connector can be deployed in the core network of the intranet where the target application is located, and multiple connectors are supported.

[0057] The target application may include security devices and applications. The target application may be an application server, an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.

[0058] In an exemplary embodiment, Figure 2 As shown, a flow identification method is provided, which is applied to Figure 1 Taking the target connector in as an example, the method includes the following steps:

[0059] Step 201: Receive the user ID and access traffic sent by the gateway.

[0060] The user number may be sent by the client to the gateway, the access traffic may be the traffic of the client accessing the target application, and the target connector may be a connector selected by the gateway from multiple connectors based on the user number.

[0061] Specifically, when a user registers in the management and control system, the management and control system can assign a corresponding user number to each user. When a user logs in to the client, the user number corresponding to the user can be obtained from the management and control system. The client can establish a long connection to the gateway, report the user number at the same time, and send the access traffic to the target application to the gateway. The gateway can select a target connector from multiple connectors based on the user number, and forward the user number and access traffic to the target connector. The target connector can receive the user number and access traffic sent by the gateway. For example, the gateway can forward the user number and access traffic to the target connector through the Tag-Length-Value (tlv) protocol.

[0062] Optionally, the client can also establish a persistent connection to the gateway and then report the user code and access traffic.

[0063] Step 202: determine the target virtual address corresponding to the user number, and modify the source address corresponding to the client based on the target virtual address to obtain a modified source address.

[0064] Among them, the modified source address is consistent with the target virtual address.

[0065] Specifically, the management and control system can allocate a non-overlapping virtual address pool to each connector. Each connector can obtain its own virtual address pool from the management and control system. The target connector can determine the target virtual address corresponding to the user number based on the virtual address pool and the user number. The target connector can modify the target virtual address to the source address corresponding to the client to obtain the modified source address.

[0066] Step 203: Establish a connection with the target application based on the modified source address, and forward the access traffic to the target application, so that the target application can identify the modified source address and respond to the access traffic.

[0067] Specifically, the target connector initiates a transmission control protocol connection to the target application through the target virtual address. The target connector can forward the access traffic to the target application based on the connection established with the target application. The target application can obtain the virtual address pool of each connector in advance. The security device in the target application can identify whether the modified source address belongs to the virtual address pool configured for each connector. If the modified source address belongs to the virtual address pool configured for each connector, the security device in the target application can respond based on the access traffic, obtain the response traffic, and return the response traffic to the client via the original route. If the modified source address does not belong to the virtual address pool configured for each connector, the security device in the target application can intercept the access traffic.

[0068] The above-mentioned traffic identification method determines the target virtual address corresponding to the user code, modifies the source address of the client based on the target virtual address, obtains the modified source address, establishes a connection with the target application based on the modified source address, and forwards the access traffic to the target application. The target application can identify and respond to the access traffic based on the modified source address. The connector accesses the target application through the modified source address, thereby improving the accuracy of identifying users when users access the target application. At the same time, the virtual address is used as a benchmark to facilitate the subsequent security policy management and traffic auditing of the target application, thereby improving the security of access to the application.

[0069] In an exemplary embodiment, the traffic identification method further includes:

[0070] Receive the response traffic corresponding to the access traffic sent by the target application through the return static route; send the response traffic to the gateway through the preset local loopback interface.

[0071] A return static route is configured between the target connector and the target application.

[0072] Specifically, for the virtual address pool of each connector, a return static route from the connector to the target application is configured in the network, and the network segment corresponding to the virtual address pool in the connector can return the response traffic of the access traffic to the corresponding connector through the return static route. Each connector can send the traffic data of the virtual address pool configured on the local machine to the preset local loopback interface, and the traffic data can be returned to the client through the preset local loopback interface.

[0073] The target connector can receive the response traffic corresponding to the access traffic sent by the target application through the return static route. The target connector sends the received response traffic to the preset local loopback interface and sends it to the gateway through the preset local loopback interface. The gateway can return the response traffic to the client.

[0074] In this embodiment, by configuring the return static route, the response traffic of the target application can be returned to the target connector and returned to the client by the original route. This can ensure that the target application can accurately send the response traffic to the target connector and return the response traffic to the client by the original route under the premise of the virtual address.

[0075] In an exemplary embodiment, the specific implementation process of the step of "determining a target virtual address corresponding to the user number, and modifying a source address corresponding to the client based on the target virtual address to obtain a modified source address" may include:

[0076] In the mapping relationship between the number and the virtual address, the target virtual address corresponding to the user number is determined; the source address corresponding to the client is modified according to the preset modification strategy and the target virtual address to obtain the modified source address.

[0077] Among them, in the virtual address pools of different connectors, each number may have a mapping relationship with a virtual address.

[0078] Specifically, the management and control system can assign a mapping relationship between a number and a virtual address to each connector. The target connector can determine the target virtual address corresponding to the user number based on the mapping relationship between the number and the virtual address. Before the target connector establishes a connection with the target application, the source address of the client can be modified to the target virtual address through the dialer. The modified source address can be the target virtual address.

[0079] In this embodiment, the target virtual address corresponding to the user number is determined, and a virtual address is bound to the user. The target connector can use the virtual address to access the target application to improve the accuracy of user traffic identification.

[0080] In an exemplary embodiment, the traffic identification method further includes:

[0081] Obtain the virtual address pool from the management and control system.

[0082] The virtual address pool may include a mapping relationship between numbers and virtual addresses, and each virtual address pool corresponds to a network segment of a different range.

[0083] Specifically, the management and control system may configure a routing configuration table, which may include non-overlapping virtual address pools corresponding to different connectors. Each connector may obtain its own virtual address pool from the management and control system.

[0084] In an exemplary embodiment, Figure 3 As shown, a flow identification method is provided, which is applied to Figure 1 Taking the gateway in as an example, the method includes the following steps:

[0085] Step 301: Send the user number and access traffic to the target connector so that the target connector determines the target virtual address corresponding to the user number and modifies the source address corresponding to the client based on the target virtual address to obtain the modified source address, establishes a connection with the target application based on the modified source address, and forwards the access traffic to the target application so that the target application identifies the modified source address and responds to the access traffic.

[0086] The user number may be sent by the client to the gateway, and the access traffic may be the traffic of the client accessing the target application. The target connector may be a connector selected by the gateway from multiple connectors based on the user number. The modified source address is consistent with the target virtual address.

[0087] Specifically, when a user registers in the management and control system, the management and control system can assign a corresponding user number to each user. When a user logs in to the client, the user number corresponding to the user is obtained from the management and control system. The client can establish a long connection to the gateway, report the user number at the same time, and send the access traffic to the target application to the gateway. The gateway can select a target connector from multiple connectors based on the user number, and forward the user number and access traffic to the target connector. The target connector can receive the user number and access traffic sent by the gateway. For example, the gateway can forward the user number and access traffic to the target connector through the tlv protocol.

[0088] The management and control system can allocate a non-overlapping virtual address pool to each connector. Each connector can obtain its own virtual address pool from the management and control system. The target connector can determine the target virtual address corresponding to the user number based on the virtual address pool and the user number. The target connector can modify the target virtual address to the source address corresponding to the client to obtain the modified source address.

[0089] The target connector initiates a transmission control protocol connection to the target application through the target virtual address. The target connector can forward the access traffic to the target application. The target application can obtain the virtual address pool of each connector in advance. The security device in the target application can identify whether the modified source address belongs to the virtual address pool configured for each connector. If the modified source address belongs to the virtual address pool configured for each connector, the security device in the target application can respond based on the access traffic, obtain the response traffic, and return the response traffic to the client in the original path. If the modified source address does not belong to the virtual address pool configured for each connector, the security device in the target application can intercept the access traffic.

[0090] The above-mentioned traffic identification method determines the target virtual address corresponding to the user code, modifies the source address of the client based on the target virtual address, obtains the modified source address, establishes a connection with the target application based on the modified source address, and forwards the access traffic to the target application. The target application can identify and respond to the access traffic based on the modified source address. The connector accesses the target application through the modified source address, thereby improving the accuracy of identifying users when users access the target application. At the same time, the virtual address is used as a benchmark to facilitate the subsequent security policy management and traffic auditing of the target application, thereby improving the security of access to the application.

[0091] In an exemplary embodiment, the traffic identification method further includes:

[0092] If an abnormality is detected in the target connector, an abnormal signal is sent to the management and control system, so that the management and control system updates the routing configuration table based on the abnormal signal to obtain an updated routing configuration table; based on the updated routing configuration table and the user number, a new connector is selected as the target connector.

[0093] The abnormal signal may indicate that the target connector itself is abnormal or that the connection between the target connector and the gateway is abnormal. The routing configuration table may indicate different virtual address pools corresponding to different connectors.

[0094] Specifically, Figure 4 As shown, after the gateway establishes a connection with the target connector, the gateway can monitor the abnormality of the target connector. If the connection between the gateway and the target connector is abnormal or the target connector itself is abnormal, it is determined that the target connector is abnormal and sends an abnormal signal to the management and control system. Based on the received abnormal signal, the management and control system can remove the abnormal target connector from the routing configuration table and generate a new routing configuration table. The gateway can obtain a new routing configuration table from the management and control system, and select a new connector from the updated routing configuration table as the target connector based on the user number. The gateway can adjust the forwarding path of the traffic in time according to the new target connector, and transfer the traffic of the original abnormal target connector to the new target connector. Optionally, the gateway can establish a Transmission Control Protocol (TCP) long connection to each connector.

[0095] In addition, when the gateway detects that the target connector before the update has returned to normal, the gateway can perceive that a long connection has been established with the target connector before the update and restore the previous forwarding path.

[0096] In this embodiment, by modifying the forwarding path of the target connector that has an abnormality, it is ensured that the traffic can be forwarded to the target application even when the target connector has an abnormality.

[0097] In an exemplary embodiment, the traffic identification method further includes:

[0098] Based on the priority of each connector, a target connector group that meets the preset screening conditions is obtained; based on the preset hash algorithm, the numbering information is mapped to obtain a hash value corresponding to the numbering information, and in the target connector group, the connector matching the hash value is screened out, and the connector matching the hash value is determined as the target connector.

[0099] The gateway establishes connections with multiple connectors, and the numbering information includes a user number and / or an application number.

[0100] Specifically, the gateway may obtain the priority of each connector, and determine one or more connectors whose priorities meet a preset threshold as a target connector group that meets a preset screening condition. The gateway may calculate the user number based on a preset hash algorithm to obtain a hash value corresponding to the user number. Based on the hash value corresponding to the user number, the user number is mapped to a connector in the target connector group that matches the hash value. The gateway may determine the connector that matches the hash value as the target connector.

[0101] Optionally, the gateway may calculate the user number and the application code based on a preset hash algorithm to obtain a hash value corresponding to the user number and the application code. Based on the hash value corresponding to the user number and the application code, the user number is mapped to a connector in the target connector group that matches the hash value. The gateway may determine the connector that matches the hash value as the target connector.

[0102] Exemplarily, the gateway may group and sort the connectors from high to low according to the priority of each connector, group connectors with priorities within a certain range or the same into a connector group, and select the connector group with the highest priority as the target connector group that meets the preset screening conditions.

[0103] In addition, due to different rules for selecting connectors, the same user may correspond to different target connectors under different selection rules. Different target connectors have different virtual address pools, that is, the same user will be mapped to different target virtual addresses on different target connectors.

[0104] In this embodiment, the user code of each user can be forwarded to different connectors through gateway matching, so that load balancing can be achieved even in the case of multiple connectors.

[0105] In an exemplary embodiment, Figure 5 As shown, a flow identification method is provided, which is applied to Figure 1 Taking the target application in as an example, the method includes the following steps:

[0106] Step 501: Receive the modified source address and access traffic sent by the target connector.

[0107] The modified source address may be obtained by modifying the source address corresponding to the client based on the target virtual address by the target connector. The modified source address is consistent with the target virtual address. The target virtual address may be the access traffic determined by the target connector based on the user number, which is the traffic of the client accessing the target application.

[0108] Specifically, the target connector initiates a transmission control protocol connection to the target application through the target virtual address. The target connector can forward access traffic to the target application.

[0109] Step 502: Identify the modified source address and respond to the access traffic.

[0110] Specifically, the target application can obtain the virtual address pool of each connector in advance. The security device in the target application can identify whether the modified source address belongs to the virtual address pool configured for each connector. If the modified source address belongs to the virtual address pool configured for each connector, the security device in the target application can respond based on the access traffic, obtain the response traffic, and return the response traffic to the client in the original path. If the modified source address does not belong to the virtual address pool configured for each connector, the security device in the target application can intercept the access traffic.

[0111] The above-mentioned traffic identification method determines the target virtual address corresponding to the user code, modifies the source address of the client based on the target virtual address, obtains the modified source address, establishes a connection with the target application based on the modified source address, and forwards the access traffic to the target application. The target application can identify and respond to the access traffic based on the modified source address. The connector accesses the target application through the modified source address, thereby improving the accuracy of identifying users when users access the target application. At the same time, the virtual address is used as a benchmark to facilitate the subsequent security policy management and traffic auditing of the target application, thereby improving the security of access to the application.

[0112] In one example, the target application may have the functions of allowing access traffic, denying access traffic, and auditing access traffic. The security device and application may reverse-check the received modified source address according to the virtual address pool of the target connector to obtain the user number.

[0113] In this embodiment, the target application can determine the corresponding user through the modified source address, and reversely identify the user through the modified source address, so as to more accurately identify user information, facilitate security policy management and traffic auditing based on the virtual address, and ensure the security of user access to the target application.

[0114] In one example, if Figure 6 As shown, Figure 6 An interactive diagram of a flow identification method is provided, and the flow identification method specifically includes the following steps:

[0115] Step 601: When a user registers in the management and control system, the management and control system assigns a unique user ID to the user.

[0116] Step 602: When the zero-trust client detects that a user has logged in, it obtains attribute information corresponding to the user, including the user ID.

[0117] Step 603: After the virtual IP feature is enabled, the management and control system sets a non-overlapping virtual IP pool for each connector.

[0118] Step 604: The management and control system sends the virtual IP pool corresponding to each connector to the corresponding connector.

[0119] Step 605: Each connector sends the traffic on the network segment of the virtual IP pool configured on the local machine to the loopback port.

[0120] Step 606: The zero-trust client establishes a persistent connection to the gateway, reports the user ID, and directs access traffic to the gateway.

[0121] Step 607: The gateway calculates a hash value corresponding to the user number based on a hash algorithm, and maps a target connector from the connector group with the highest priority through the hash value.

[0122] Step 608: The gateway forwards the user ID and access traffic to the target connector.

[0123] Step 609: The target connector maps the target virtual IP corresponding to the user number from its own virtual IP pool through the user number. The target connector modifies the source IP of the client into the virtual IP.

[0124] Step 610: The target connector completes the connection to the target application and forwards the access traffic to the target application.

[0125] Step 611: The target application identifies the virtual IP. When the virtual IP is identified successfully, the access traffic is responded to to obtain the response traffic. When the virtual IP is not identified successfully, the access traffic is blocked from accessing the target application.

[0126] Step 612: The target application forwards the response traffic to the target connector through the return static route established with the target connector.

[0127] Step 613: The target connector forwards the response traffic to the gateway through the configured loopback port.

[0128] Step 614: The gateway forwards the response traffic to the zero-trust client.

[0129] The embodiment of the present application proposes a method for accurately identifying user traffic using a virtual IP under a zero-trust network architecture while keeping the application side unchanged. A virtual IP is bound to each user, and the target connector uses the virtual IP to access the target application, thereby accurately identifying user traffic and performing security policy management and traffic auditing based on the virtual IP. In addition, it does not require the application side to develop new protocol support, has better applicability, and improves the accuracy of traffic identification; at the same time, it reduces network overhead on the application side and reduces costs. The embodiment of the present application can be applied to scenarios where each data packet needs to carry a real IP.

[0130] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0131] Based on the same inventive concept, the embodiment of the present application also provides a flow identification device for implementing the flow identification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more flow identification device embodiments provided below can refer to the limitations on the flow identification method above, and will not be repeated here.

[0132] In an exemplary embodiment, Figure 7 As shown, a flow identification device 70 is provided, which is applied to a target connector and includes: a receiving module 71, a modifying module 72 and a forwarding module 73, wherein:

[0133] The receiving module 71 is used to receive the user number and access traffic sent by the gateway, where the access traffic is the traffic of the client accessing the target application;

[0134] The modification module 72 is used to determine the target virtual address corresponding to the user number, and modify the source address corresponding to the client based on the target virtual address to obtain a modified source address, and the modified source address is consistent with the target virtual address;

[0135] The forwarding module 73 is used to establish a connection with the target application based on the modified source address and forward the access traffic to the target application, so that the target application can identify the modified source address and respond to the access traffic.

[0136] In one of the embodiments, the forwarding module 73 is further used to receive the response traffic corresponding to the access traffic sent by the target application through the return static route; and send the response traffic to the gateway through the preset local loopback interface.

[0137] In one embodiment, the modification module 72 is used to determine the target virtual address corresponding to the user number in the mapping relationship between the number and the virtual address; modify the source address corresponding to the client according to the preset modification strategy and the target virtual address to obtain the modified source address.

[0138] In one of the embodiments, the receiving module 71 is further used to obtain a virtual address pool from a management and control system.

[0139] In an exemplary embodiment, Figure 8 As shown, a traffic identification device 80 is provided, which is applied to a gateway and includes: a sending module 81, wherein:

[0140] The sending module 81 is used to send the user number and access traffic to the target connector, so that the target connector determines the target virtual address corresponding to the user number and modifies the source address corresponding to the client based on the target virtual address to obtain a modified source address, and the modified source address is consistent with the target virtual address. A connection is established with the target application based on the modified source address, and the access traffic is forwarded to the target application, so that the target application identifies the modified source address and responds to the access traffic, and the access traffic is the traffic of the client accessing the target application.

[0141] In one embodiment, the sending module 81 is further used to send an abnormality signal to the management and control system if an abnormality is detected in the target connector, so that the management and control system updates the routing configuration table based on the abnormality signal to obtain an updated routing configuration table;

[0142] Based on the updated routing configuration table and user ID, a new connector is selected as the target connector.

[0143] In one embodiment, the sending module 81 is further used to obtain a target connector group that meets a preset screening condition based on the priority of each connector;

[0144] The numbering information is mapped based on a preset hash algorithm to obtain a hash value corresponding to the numbering information, and a connector matching the hash value is screened out in the target connector group, and the connector matching the hash value is determined to be the target connector. The numbering information includes a user number and / or an application number.

[0145] In an exemplary embodiment, Fig. 9 As shown, a flow identification device 90 is provided, which is applied to a target application and includes: a receiving module 91 and an identification module 92, wherein:

[0146] A receiving module 91 is used to receive a modified source address and access traffic sent by a target connector, wherein the modified source address is obtained by modifying the source address corresponding to the client based on the target virtual address by the target connector, and the modified source address is consistent with the target virtual address, and the target virtual address is determined by the target connector based on the user number. The access traffic is the traffic of the client accessing the target application;

[0147] The identification module 92 is used to identify the modified source address and respond to the access traffic.

[0148] Each module in the above-mentioned traffic identification device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0149] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a traffic identification method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0150] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0151] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0152] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0153] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0154] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0155] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0157] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A flow identification method, characterized in that: Applied to a target connector, the method comprises: Receive the user ID and access traffic sent by the gateway, where the access traffic is the traffic of the client accessing the target application; Determine a target virtual address corresponding to the user number, and modify the source address corresponding to the client based on the target virtual address to obtain a modified source address, wherein the modified source address is consistent with the target virtual address; A connection is established with the target application based on the modified source address, and the access traffic is forwarded to the target application, so that the target application identifies the modified source address and responds to the access traffic.

2. The method according to claim 1, characterized in that A return static route is configured between the target connector and the target application, and the method further includes: The response traffic corresponding to the access traffic sent by the target application is received through the return static routing; and the response traffic is sent to the gateway through a preset local loopback interface.

3. The method according to claim 1, characterized in that The determining of the target virtual address corresponding to the user number, and modifying the source address corresponding to the client based on the target virtual address to obtain the modified source address, includes: In the mapping relationship between the number and the virtual address, the target virtual address corresponding to the user number is determined; the source address corresponding to the client is modified according to the preset modification strategy and the target virtual address to obtain the modified source address.

4. The method according to claim 1, characterized in that: The method further comprises: Obtain the virtual address pool from the management and control system.

5. A flow identification method, characterized in that: Applied to a gateway, the method comprises: The user number and access traffic are sent to the target connector so that the target connector determines the target virtual address corresponding to the user number and modifies the source address corresponding to the client based on the target virtual address to obtain a modified source address, and the modified source address is consistent with the target virtual address; the modified source address and the access traffic are forwarded to the target application so that the target application identifies the modified source address and responds to the access traffic, and the access traffic is the traffic of the client accessing the target application.

6. The method according to claim 5, characterized in that The method further comprises: If an abnormality is detected in the target connector, an abnormality signal is sent to the management and control system, so that the management and control system updates the routing configuration table based on the abnormality signal to obtain an updated routing configuration table, wherein the routing configuration table represents different virtual address pools corresponding to different connectors; Based on the updated routing configuration table and the user ID, a new connector is selected as the target connector.

7. The method according to claim 5, characterized in that The gateway establishes a connection with a plurality of connectors, and the method further comprises: Based on the priority of each of the connectors, a target connector group that meets a preset screening condition is obtained; The numbering information is mapped based on a preset hash algorithm to obtain a hash value corresponding to the numbering information, and a connector matching the hash value is screened out from the target connector group, and the connector matching the hash value is determined to be the target connector, wherein the numbering information includes the user number and / or application number.

8. A flow identification method, characterized in that: Applied to the target application, the method comprises: Receive a modified source address and access traffic sent by a target connector, wherein the modified source address is obtained by modifying a source address corresponding to a client based on a target virtual address by the target connector, and the modified source address is consistent with the target virtual address, and the target virtual address is determined by the target connector based on a user number. The access traffic is the traffic of the client accessing the target application; The modified source address is identified, and the access traffic is responded to.

9. A flow identification device, characterized in that: Applied to a target connector, the device comprises: A receiving module, used to receive a user ID and access traffic sent by a gateway, wherein the access traffic is traffic for a client to access a target application; a modification module, configured to determine a target virtual address corresponding to the user number, and modify a source address corresponding to the client based on the target virtual address to obtain a modified source address, wherein the modified source address is consistent with the target virtual address; A forwarding module is used to establish a connection with the target application based on the modified source address and forward the access traffic to the target application, so that the target application can identify the modified source address and respond to the access traffic.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.