A connection control method and system
Through the collaboration between the target client and the server, high-risk connections are identified and blocked, which solves the challenge of business node access control under the cloud native architecture and achieves effective access control of business nodes and stable business operation.
Patent Information
- Application Number
- CN202111487790.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-07
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-07
AI Technical Summary
Existing technology cannot effectively implement access control of business nodes, especially when business nodes are deployed quickly, have high elasticity and increase in number under cloud native architecture. Rapid changes in intranet IP and traffic bring greater challenges to access control. challenge.
Through communication and collaboration between the target client and the server, the target client is responsible for collecting risky connection information and executing blocking strategies. The server is responsible for analyzing and issuing blocking strategies, identifying and blocking high-risk connections, and realizing control over business nodes. Access control.
It effectively realizes access control to target business nodes, avoids affecting business processing, ensures business processing capabilities and efficiency, and ensures normal business operation.
Smart Images

Figure CN114124568B
Abstract
Description
Technical Field
[0001] The present invention relates to computer science and technology, and in particular to a connection control method and system. Background Art
[0002] With the development of computer science and technology, access control technology continues to improve.
[0003] In the cloud-native era, the types of business nodes are becoming more diverse, such as virtual machines, physical machines, and containers. Under the cloud-native architecture, business nodes are deployed quickly, are highly elastic, and are increasing in number. As a result, the number of IP addresses and traffic in the intranet has increased and changed rapidly, which poses a greater challenge to the access control of business nodes in the intranet. Currently, existing technologies can control access to business nodes by setting up and using firewalls, that is, identifying abnormal traffic that occurs during access to business nodes and restricting the corresponding peers from continuing to access the business nodes.
[0004] However, existing technologies cannot effectively implement access control of business nodes. Summary of the invention
[0005] In view of the above problems, the present invention provides a connection control method and system that overcomes the above problems or at least partially solves the above problems. The technical solution is as follows:
[0006] A connection control method, comprising:
[0007] The target client obtains risk connection information of a target service node on a target terminal device, the target client is set on the target terminal device, and the risk connection information at least includes a node identifier of the target service node and a node identifier of a target connection node;
[0008] The target client sends the risk connection information to the server;
[0009] The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information;
[0010] If the connection risk is high risk, the server sends a blocking enable instruction to the target client;
[0011] The target client sends a blocking message to the target connection node in response to the blocking enable instruction to block the connection between the target service node and the target connection node.
[0012] Optionally, the server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, including:
[0013] The server searches for corresponding connection risks from a predefined node connection risk table based on the node identifier of the target service node and the node identifier of the target connection node; wherein the node connection risk table stores corresponding node identifiers and connection risks of two connected nodes.
[0014] Optionally, the node identifier of the target service node is a first service identifier, and the node identifier of the target connection node is a second service identifier, the first service identifier is an identifier of the service processed by the target service node, and the second service identifier is an identifier of the service processed by the target connection node.
[0015] Optionally, before the target client obtains the risk connection information of the target service node on the target terminal device, the method further includes:
[0016] The server obtains traffic information of multiple service nodes collected and sent by multiple clients from multiple terminal devices, respectively, each of the clients is respectively set on each of the terminal devices, each of the clients includes the target client, each of the terminal devices is in the same local area network, and the multiple service nodes include the target service node and the target connection node;
[0017] The server clusters the service nodes based on the traffic information of the multiple service nodes and according to the service type of the service processed by each service node to obtain at least one service node group;
[0018] The server sets a corresponding service identifier for each service node in each service node group;
[0019] The server returns each of the service identifiers to the corresponding clients.
[0020] Optionally, each of the service nodes is a container, and the traffic information includes a node identifier of the service node; the server clusters each of the service nodes based on the traffic information of the multiple service nodes according to a service type of a service processed by each of the service nodes to obtain at least one service node group, including:
[0021] The server determines the container image corresponding to each of the service nodes based on the traffic information of each of the service nodes;
[0022] The server determines the service nodes corresponding to the same container image as a service node group processing the same type of service to obtain each service node group.
[0023] Optionally, the method further includes:
[0024] When the target client fails, the target client stops sending blocking messages to the target connection node.
[0025] Optionally, the risk connection information also includes the number of visits of the target connection node to the target service node within a predefined time period, and the server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, including:
[0026] The server compares whether the number of accesses is not less than a preset access number threshold, and if so, determines that the connection risk between the target business node and the target connection node is high risk; otherwise, determines that the connection risk between the target business node and the target connection node is low risk.
[0027] A connection control system, comprising: a target client and a server;
[0028] The target client obtains risk connection information of a target service node on a target terminal device, the target client is set on the target terminal device, and the risk connection information at least includes a node identifier of the target service node and a node identifier of a target connection node;
[0029] The target client sends the risk connection information to the server;
[0030] The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information;
[0031] If the connection risk is high risk, the server sends a blocking enable instruction to the target client;
[0032] The target client sends a blocking message to the target connection node in response to the blocking enable instruction to block the connection between the target service node and the target connection node.
[0033] Optionally, the server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, and is set as:
[0034] The server searches for corresponding connection risks from a predefined node connection risk table based on the node identifier of the target service node and the node identifier of the target connection node; wherein the node connection risk table stores corresponding node identifiers and connection risks of two connected nodes.
[0035] Optionally, the node identifier of the target service node is a first service identifier, and the node identifier of the target connection node is a second service identifier, the first service identifier is an identifier of the service processed by the target service node, and the second service identifier is an identifier of the service processed by the target connection node.
[0036] Optionally, before the target client obtains the risk connection information of the target service node on the target terminal device, the server further obtains traffic information of multiple service nodes collected and sent by multiple clients from multiple terminal devices, respectively, each of the clients is respectively set on each of the terminal devices, each of the clients includes the target client, each of the terminal devices is in the same local area network, and the multiple service nodes include the target service node and the target connection node;
[0037] The server clusters the service nodes based on the traffic information of the multiple service nodes and according to the service type of the service processed by each service node to obtain at least one service node group;
[0038] The server sets a corresponding service identifier for each service node in each service node group;
[0039] The server returns each of the service identifiers to the corresponding clients.
[0040] Optionally, each of the service nodes is a container, and the traffic information includes a node identifier of the service node; the server clusters each of the service nodes based on the traffic information of the multiple service nodes according to a service type of a service processed by each of the service nodes to obtain at least one service node group, which is set as:
[0041] The server determines the container image corresponding to each of the service nodes based on the traffic information of each of the service nodes;
[0042] The server determines the service nodes corresponding to the same container image as a service node group processing the same type of service to obtain each service node group.
[0043] Optionally, when the target client fails, the target client also stops sending blocking messages to the target connection node.
[0044] Optionally, the risk connection information also includes the number of visits of the target connection node to the target service node within a predefined time period; the server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, and is set to:
[0045] The server compares whether the number of accesses is not less than a preset access number threshold, and if so, determines that the connection risk between the target business node and the target connection node is high risk; otherwise, determines that the connection risk between the target business node and the target connection node is low risk.
[0046] The connection control method and system proposed in this embodiment, the target client obtains the risk connection information of the target service node on the target terminal device, the target client is set on the target terminal device, the risk connection information at least includes the node identification of the target service node and the node identification of the target connection node, the target client sends the risk connection information to the server, the server determines the connection risk between the target service node and the target connection node based on the predefined connection risk determination rule and the risk connection information, if the connection risk is high risk, the server sends a blocking enable instruction to the target client, the target client responds to the blocking enable instruction, and sends a blocking message to the target connection node to block the connection between the target service node and the target connection node. The present invention can identify the illegal access behaviors such as the access attack that the target connection node may perform on the target service node by adopting a communication and cooperation mode between the target client and the server, that is, the target client is responsible for collecting the risk connection information and executing the blocking strategy, and the server is responsible for analyzing the risk connection information reported by the target client and issuing the blocking strategy, and can block the connection between the target service node and the target connection node when it is determined that there is a high risk of connection between the target connection node and the target service node. The present invention can effectively implement access control to a target service node, avoid affecting the target service node's processing of services, and ensure the service processing capability and efficiency of the target service node, thereby ensuring the normal operation of the services.
[0047] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0049] Figure 1 A signaling diagram of a first connection control method provided by an embodiment of the present invention is shown;
[0050] Figure 2A signaling diagram of a second connection control method provided by an embodiment of the present invention is shown;
[0051] Figure 3 A schematic structural diagram of a first connection control system provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0053] like Figure 1 As shown, this embodiment proposes a first connection control method, which may include the following steps:
[0054] S101, a target client obtains risk connection information of a target service node on a target terminal device, the target client is set on the target terminal device, and the risk connection information includes at least a node identifier of the target service node and a node identifier of the target connection node;
[0055] The target client may be a client that is set on a target terminal device and is used to implement access control on a target service node.
[0056] The target terminal device may be an electronic device, such as a server, a mobile phone, a tablet computer, and a desktop computer.
[0057] Optionally, the target service node may be a service node set on a target terminal device, such as a virtual machine and a container.
[0058] Optionally, the target service node may also be the target terminal device itself.
[0059] The risky connection information may be information corresponding to a risky connection between a target service node and a target connection node. The target connection node may be the risky connection with the target service node or a node accessing the target service node.
[0060] Optionally, the target connection node can be a service node in the same local area network as the target service node and used to process the same type of service, or it can be a service node in the same local area network and used to process different types of service, or it can be a node in a different local area network from the target service node. The present invention does not limit the node type of the target connection node.
[0061] Specifically, the risk connection information may include a node identifier of a target service node and a node identifier of a target connection node.
[0062] Specifically, the target client can identify the risky connection occurring at the target service node on the target terminal device, and can obtain the risky connection information corresponding to the risky connection.
[0063] Specifically, the target client can identify the risky connections occurring in the target business node and collect corresponding risky connection information on the target terminal device based on information such as the node connection protocol, port and / or the number of visits of the relevant business node to the target business node.
[0064] S102, the target client sends the risk connection information to the server;
[0065] The server can be used to analyze the information sent by the target client and send a blocking policy to the target client.
[0066] Specifically, after obtaining the risk connection information, the target client may send the risk connection information to the server.
[0067] S103, the server determines the connection risk between the target service node and the target connection node based on the predefined connection risk determination rule and risk connection information;
[0068] Specifically, after receiving the risk connection information, the server may determine the connection risk between the target service node and the target connection node according to the predefined connection risk determination rule and the risk connection information.
[0069] Optionally, the server searches for corresponding connection risks from a predefined node connection risk table based on the node identifier of the target business node and the node identifier of the target connection node; wherein the node connection risk table stores corresponding node identifiers and connection risks of two connected nodes.
[0070] The node connection risk table can be a data table prepared in advance by the technicians according to the actual situation. Specifically, when the technicians determine that the connection between two nodes is high-risk, they can record the node identifications of both nodes and the high risk of the connection in the node connection risk table; specifically, when the technicians determine that a certain node has a high possibility of network attack, they can determine the node as a high-risk node, determine any connection between the node and the node as high-risk and record it in the connection risk table.
[0071] Specifically, after receiving the risk connection information, the server can extract the node identifiers of the target business node and the target connection node, and then search for the connection risk matching the target business node and the target connection node in the node connection risk table. At this time, the connection risk determination rule can be to determine the connection risk found in the node connection risk table as the connection risk between the target business node and the target connection node.
[0072] Optionally, the risk connection information also includes the number of times the target connection node visits the target service node within a predefined time period. The server determines the connection risk between the target service node and the target connection node based on the predefined connection risk determination rule and the risk connection information, including:
[0073] The server compares whether the number of accesses is not less than a preset access number threshold. If so, the connection risk between the target business node and the target connection node is determined to be high risk; otherwise, the connection risk between the target business node and the target connection node is determined to be low risk.
[0074] The risk connection information may also include information such as the number of visits, the frequency of visits, and the specific type of visits made by the target connection node to the target business node.
[0075] The predefined duration may be determined by a technician according to actual conditions, and the present invention does not limit this.
[0076] Specifically, the server can determine whether the target connection node has any illegal access behavior such as access attack on the target business node by analyzing the risk connection information, thereby determining the connection risk between the target business node and the target connection node.
[0077] Specifically, the server can extract the number of visits of the target connection node to the target business node within a predefined time period from the risk connection information, and then compare the number of visits with a preset number of visits threshold. If the number of visits is not less than the number of visits threshold, it can be determined that the connection risk between the target business node and the target connection node is high risk; if the number of visits is less than the number of visits threshold, it can be determined that the connection risk between the target business node and the target connection node is low risk or no risk.
[0078] S104: If the connection risk is high, the server sends a blocking enable instruction to the target client;
[0079] Specifically, when the server determines that the connection risk between the target business node and the target connection node is high risk, it sends a blocking enable instruction to the target client, that is, sends a blocking policy to the target client, so that the target client blocks the connection between the target business node and the target connection node, implements access control on the target business node, avoids affecting the target business node's processing of the business, ensures the business processing capability and efficiency of the target business node, and thus ensures the normal operation of the business.
[0080] S105. The target client sends a blocking message to the target connection node in response to the blocking enable instruction to block the connection between the target service node and the target connection node.
[0081] Specifically, after receiving the blocking enable instruction, the target client may block the connection between the target service node and the target connection node by sending a blocking message to the target connection node.
[0082] Optionally, the target client may perform bypass blocking by sending a reset packet to the target connection node, thereby disconnecting the connection between the target service node and the target connection node.
[0083] It should be noted that the prior art can perform traffic detection and connection blocking on the service node based on IP to achieve access control on the target service node. Specifically, the prior art can perform IP blocking by calling iptables on the terminal device. Among them, iptables can be a firewall set on the terminal device that comes with the Linux operating system, which can achieve access control based on IP. Specifically, the prior art can also directly set an independent firewall on the terminal device to achieve access control on the service node based on IP. However, in the process of implementing access control based on IP, when the IP changes, the prior art is difficult to accurately capture and analyze, and consumes a lot of resources on the terminal device. When using iptables for IP blocking, since the performance of iptables is limited, when the blocking strategy continues to increase, iptables may have a performance bottleneck.
[0084] The present invention can identify illegal access behaviors such as access attacks that the target connection node may carry out on the target business node by adopting a communication and collaboration method between the target client and the server, that is, the target client is responsible for collecting risk connection information and executing blocking strategies, and the server is responsible for analyzing the risk connection information reported by the target client and issuing blocking strategies, and can block the connection between the target business node and the target connection node when it is determined that there is a high risk of connection between the target connection node and the target business node. The present invention can realize access control of the target business node, avoid affecting the processing of the business by the target business node, ensure the business processing capability and efficiency of the target business node, and thus ensure the normal operation of the business.
[0085] The connection control method proposed in this embodiment, the target client obtains the risk connection information of the target service node on the target terminal device, the target client is set on the target terminal device, the risk connection information at least includes the node identification of the target service node and the node identification of the target connection node, the target client sends the risk connection information to the server, the server determines the connection risk between the target service node and the target connection node based on the predefined connection risk determination rule and the risk connection information, if the connection risk is high risk, the server sends a blocking enable instruction to the target client, the target client responds to the blocking enable instruction, and sends a blocking message to the target connection node to block the connection between the target service node and the target connection node. The present invention can identify the illegal access behaviors such as the access attack that the target connection node may perform on the target service node by adopting a communication and cooperation mode between the target client and the server, that is, the target client is responsible for collecting the risk connection information and executing the blocking strategy, and the server is responsible for analyzing the risk connection information reported by the target client and issuing the blocking strategy, and can block the connection between the target service node and the target connection node when it is determined that there is a high risk of connection between the target connection node and the target service node. The present invention can effectively implement access control to a target service node, avoid affecting the target service node's processing of services, and ensure the service processing capability and efficiency of the target service node, thereby ensuring the normal operation of the services.
[0086] based on Figure 1 The steps shown are as follows: Figure 2 As shown, this embodiment proposes a second connection control method. In this method, it can also include:
[0087] S201. When a target client fails, the target client stops sending blocking messages to a target connection node.
[0088] It should be noted that the target client can stop sending blocking messages to the target connection node when it detects that it has a fault, to avoid the situation where the target client is unable to stop blocking the target connection node from connecting to the target business node due to possible failures such as being unable to receive the new blocking policy issued by the server and being unable to respond to the new blocking policy issued by the server when the blocking policy issued by the server is changed (such as determining that the connection risk between the target business connection node and the target connection node is no longer a high risk, and instructing the target client to stop sending blocking messages to the target connection node). This avoids the target business node from processing normal business and ensures business processing efficiency.
[0089] The connection control method proposed in this embodiment enables the target client to stop sending blocking messages to the target connection node when detecting that it has a fault, thereby further avoiding the target service node from processing normal services and ensuring service processing efficiency.
[0090] based on Figure 1 In the steps shown, this embodiment proposes a third connection control method. In this method, the node identifier of the target service node is the first service identifier, the node identifier of the target connection node is the second service identifier, the first service identifier is the identifier of the service processed by the target service node, and the second service identifier is the identifier of the service processed by the target connection node.
[0091] Specifically, both the first service identifier and the second service identifier may be generated by the server based on traffic information collected by the target client from the target terminal device, and sent to the target client.
[0092] Optionally, the third connection control method may further include, before the target client obtains the risk connection information of the target service node on the target terminal device:
[0093] The server obtains traffic information of multiple service nodes collected and sent by multiple clients from multiple terminal devices, each client is respectively set on each terminal device, each client includes a target client, each terminal device is in the same local area network, and the multiple service nodes include a target service node and a target connection node;
[0094] The server clusters each service node based on the traffic information of the multiple service nodes and according to the service type of the service processed by each service node to obtain at least one service node group;
[0095] The server sets a corresponding service identifier for each service node in each service node group;
[0096] The server returns each service identifier to the corresponding client.
[0097] Specifically, the above-mentioned multiple terminal devices may be devices in the same local area network (such as the same intranet). A client may be provided on each terminal device. Each client may collect the flow information of the service node from the terminal device where it is located, and send it to the server. For example, for a first terminal device, a first client may be provided on the first terminal device, and the first client may collect the flow information of the corresponding service node on the first terminal device, and send it to the server.
[0098] The traffic information may include data transmission information between a certain service node and other service nodes, such as the node identification, access times, and specific access type of the service node.
[0099] Optionally, when a terminal device itself can be used as a service node, a client installed on the terminal device can collect traffic information of the terminal device;
[0100] Optionally, when a virtual machine or container is set in a terminal device as a service node, a client set on the terminal device can collect traffic information of the service node in the terminal device and send it to the server.
[0101] Specifically, when the client sends traffic information to the server, it can carry the client's own client identification and send it to the server, so that when the server receives the traffic information, it can associate the traffic information with the client and determine which client specifically sent the traffic information.
[0102] It is understandable that the server can receive traffic information sent by all clients and can perform unified control and management on all clients.
[0103] Specifically, the server can analyze the traffic information sent by each client, and classify each service node according to different service types, that is, classify the service nodes for processing the same type of service into the same category. Specifically, the present invention can classify the service nodes for processing the same type of service into the same service node group, and obtain a corresponding number of service node groups.
[0104] It can be understood that all service nodes in a service node group can be used for services of a certain type.
[0105] Specifically, the server can set corresponding service identifiers for service nodes in each service node group according to the service corresponding to each service node group. For example, for a first service node group that processes a first type of service and a second service node group that processes a second type of service, the server can set a first service identifier for all service nodes in the first service node group, and the server can set a second service identifier for all service nodes in the second service node group.
[0106] Specifically, after setting the service identifier for a service node in a service node group, the service end may send the set service identifier to the corresponding client. For example, after setting the target service identifier for the target service node, the service end may send the target service identifier to the target client; for another example, if the third service node is set on a third terminal device, and the client set on the third terminal device is a third client, the service end may send the service identifier to the third client after setting a service identifier for the third service node.
[0107] It should be noted that the server can set labels for business roles of business nodes by providing business identification for the business nodes.
[0108] Specifically, after receiving the service identifier, the client can determine the service identifier as the node identifier of the service node, and send it to the server by carrying it in the risk connection information. After receiving the risk connection information sent by the service node, if the risk connection information includes the service identifiers of two service nodes (in this case, the target service node and the target connection node are service nodes in the same local area network), the server can perform role verification and access authentication on the two service nodes according to the connection risk determination rules and the two service identifiers, and determine the connection risk of the two service nodes, thereby realizing access control of data transmission of service nodes in the same local area network, realizing detection and blocking of east-west traffic in the intranet, and making intranet traffic visible and controllable.
[0109] Optionally, in the fourth connection control method proposed in this embodiment, each service node is a container, and the traffic information includes a node identifier of the service node; the server clusters each service node based on the traffic information of the multiple service nodes according to the service type of the service processed by each service node to obtain at least one service node group, which may include:
[0110] The server determines the container image corresponding to each business node based on the traffic information of each business node;
[0111] The server determines the business nodes corresponding to the same container image as a business node group processing the same type of business to obtain each business node group.
[0112] Specifically, when each business node is a container, the server can determine the container image corresponding to each business node, i.e., container, based on the traffic information sent by the client, and then determine the business nodes pulled up by the same container image as business nodes for processing the same type of business, so that the business nodes pulled up by the same container image can be determined as a business node group.
[0113] It can be understood that if only some of the above-mentioned multiple business nodes are container nodes, the server can also determine the containers corresponding to the same container image as business nodes of the same type of business, and can determine the containers corresponding to the same container image as a business node group.
[0114] The connection control method proposed in this embodiment can implement access control of data transmission of business nodes within the same local area network, detect and block the east-west traffic of the intranet, and make the intranet traffic visible and controllable.
[0115] and Figure 1 The steps shown correspond to Figure 3 As shown, this embodiment proposes a first connection control system. The system may include a target client 101 and a server 102, wherein:
[0116] The target client 101 obtains risk connection information of the target service node on the target terminal device, the target client 101 is set on the target terminal device, and the risk connection information at least includes a node identifier of the target service node and a node identifier of the target connection node;
[0117] The target client 101 sends the risk connection information to the server 102;
[0118] The server 102 determines the connection risk between the target service node and the target connection node based on the predefined connection risk determination rule and the risk connection information;
[0119] If the connection risk is high, the server 102 sends a blocking enable instruction to the target client 101;
[0120] In response to the blocking enable instruction, the target client 101 sends a blocking message to the target connection node to block the connection between the target service node and the target connection node.
[0121] It should be noted that the introduction and execution process of the target client 101 and the server 102 can be referred to Figure 1 The relevant descriptions of steps S101, S102, S103, S104 and S105 in the above description will not be repeated here.
[0122] Optionally, the server 102 determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and risk connection information, and is set as:
[0123] The server 102 searches for corresponding connection risks from a predefined node connection risk table based on the node identifier of the target service node and the node identifier of the target connection node; wherein the node connection risk table stores corresponding node identifiers and connection risks of two connected nodes.
[0124] Optionally, the node identifier of the target service node is a first service identifier, and the node identifier of the target connection node is a second service identifier. The first service identifier is an identifier of a service processed by the target service node, and the second service identifier is an identifier of a service processed by the target connection node.
[0125] Optionally, before the target client 101 obtains the risk connection information of the target service node on the target terminal device, the server 102 further obtains the flow information of multiple service nodes collected and sent by multiple clients from multiple terminal devices, respectively, each client is respectively set on each terminal device, each client includes the target client 101, each terminal device is in the same local area network, and the multiple service nodes include the target service node and the target connection node;
[0126] The server 102 clusters each service node based on the traffic information of the multiple service nodes and according to the service type of the service processed by each service node to obtain at least one service node group;
[0127] The server 102 sets a corresponding service identifier for each service node in each service node group;
[0128] The server 102 returns each service identifier to each corresponding client.
[0129] Optionally, each service node is a container, and the traffic information includes a node identifier of the service node; the server 102 clusters each service node based on the traffic information of the multiple service nodes according to the service type of the service processed by each service node, and obtains at least one service node group, which is set as:
[0130] The server 102 determines the container image corresponding to each service node based on the traffic information of each service node;
[0131] The server 102 determines the service nodes corresponding to the same container image as a service node group processing the same type of service to obtain each service node group.
[0132] Optionally, when the target client 101 fails, the target client 101 also stops sending blocking messages to the target connection node.
[0133] Optionally, the risk connection information also includes the number of visits of the target connection node to the target service node within a predefined time period; the server 102 determines the connection risk between the target service node and the target connection node based on the predefined connection risk determination rule and the risk connection information, and is set to:
[0134] The server 102 compares whether the number of accesses is not less than a preset number of accesses threshold, and if so, determines that the connection risk between the target service node and the target connection node is high risk; otherwise, determines that the connection risk between the target service node and the target connection node is low risk.
[0135] The connection control system proposed in this embodiment can effectively implement access control on the target service node, avoid affecting the target service node's processing of services, ensure the service processing capability and efficiency of the target service node, and thus ensure the normal operation of the services.
[0136] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0137] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A connection control method, characterized in that: include: The target client obtains risk connection information of a target service node on a target terminal device, the target client is set on the target terminal device, and the risk connection information at least includes a node identifier of the target service node and a node identifier of a target connection node; The target client sends the risk connection information to the server; The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information; If the connection risk is high risk, the server sends a blocking enable instruction to the target client; The target client sends a blocking message to the target connection node in response to the blocking enable instruction to block the connection between the target service node and the target connection node; The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, including: The server searches for corresponding connection risks from a predefined node connection risk table based on the node identifier of the target service node and the node identifier of the target connection node; wherein the node connection risk table stores corresponding node identifiers and connection risks of two connected nodes.
2. The connection control method according to claim 1, characterized in that: The node identifier of the target service node is a first service identifier, and the node identifier of the target connection node is a second service identifier. The first service identifier is an identifier of the service processed by the target service node, and the second service identifier is an identifier of the service processed by the target connection node.
3. The connection control method according to claim 2, characterized in that: Before the target client obtains the risk connection information of the target service node on the target terminal device, the method further includes: The server obtains traffic information of multiple service nodes collected and sent by multiple clients from multiple terminal devices, respectively, each of the clients is respectively set on each of the terminal devices, each of the clients includes the target client, each of the terminal devices is in the same local area network, and the multiple service nodes include the target service node and the target connection node; The server clusters the service nodes based on the traffic information of the multiple service nodes and according to the service type of the service processed by each service node to obtain at least one service node group; The server sets a corresponding service identifier for each service node in each service node group; The server returns each of the service identifiers to the corresponding clients.
4. The connection control method according to claim 3, characterized in that: Each of the service nodes is a container, and the traffic information includes a node identifier of the service node; the server clusters each of the service nodes based on the traffic information of the multiple service nodes according to the service type of the service processed by each of the service nodes to obtain at least one service node group, including: The server determines the container image corresponding to each of the service nodes based on the traffic information of each of the service nodes; The server determines the service nodes corresponding to the same container image as a service node group processing the same type of service to obtain each service node group.
5. The connection control method according to claim 1, characterized in that: The method further comprises: When the target client fails, the target client stops sending blocking messages to the target connection node.
6. The connection control method according to claim 1, characterized in that: The risk connection information also includes the number of visits of the target connection node to the target service node within a predefined time period. The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, including: The server compares whether the number of accesses is not less than a preset access number threshold, and if so, determines that the connection risk between the target business node and the target connection node is high risk; otherwise, determines that the connection risk between the target business node and the target connection node is low risk.
7. A connection control system, characterized in that: include: Target client and server; The target client obtains risk connection information of a target service node on a target terminal device, the target client is set on the target terminal device, and the risk connection information at least includes a node identifier of the target service node and a node identifier of a target connection node; The target client sends the risk connection information to the server; The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information; If the connection risk is high risk, the server sends a blocking enable instruction to the target client; The target client sends a blocking message to the target connection node in response to the blocking enable instruction to block the connection between the target service node and the target connection node; The server determines the connection risk between the target service node and the target connection node based on a predefined connection risk determination rule and the risk connection information, and is set as follows: The server searches for corresponding connection risks from a predefined node connection risk table based on the node identifier of the target service node and the node identifier of the target connection node; wherein the node connection risk table stores corresponding node identifiers and connection risks of two connected nodes.
8. The connection control system according to claim 7, characterized in that: The node identifier of the target service node is a first service identifier, and the node identifier of the target connection node is a second service identifier. The first service identifier is an identifier of the service processed by the target service node, and the second service identifier is an identifier of the service processed by the target connection node.
