Communication list forming and access control method and system based on flow identification
By analyzing the data traffic logs of the Internet server, identifying and tracking abnormal traffic, automatically updating the access list, and adjusting the user's access rights according to the current access status, the low editing efficiency and lack of security in access whitelists and blacklists in the existing technology are solved. issues, improving access security and load management of Internet servers.
Patent Information
- Application Number
- CN202410694222.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology cannot effectively improve the editing efficiency and accuracy of the Internet server's access whitelist and blacklist, resulting in reduced access security, inability to automatically update, and inability to avoid access overload.
By analyzing the data traffic logs of the Internet server, we can identify abnormal traffic, track the source of abnormal traffic, sample and analyze future access traffic, automatically update the access list, and adjust the user's access rights and connection status according to the current access status to achieve access security to the Internet server. performance and load management.
It realizes automatic and accurate updating of access whitelists and blacklists of Internet servers, improves access security, and avoids access overload.
Smart Images

Figure CN118713862A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet communication, and in particular to a communication list formation and access control method and system based on traffic identification. Background Art
[0002] As the main body of Internet communication, the Internet server can provide corresponding Internet data to different user terminals. The user terminal realizes data communication interaction with the Internet server by accessing and connecting to the Internet server. In actual communication work, when the user terminal is hijacked, the user terminal will launch a DDOS attack on the Internet server, causing a sudden increase in the access traffic of the Internet server, generating an overload of access to the Internet server, and causing the Internet server to be unable to communicate and connect with other user terminals normally. In order to ensure the access security of the Internet server, a corresponding access whitelist and access blacklist will be set for the Internet server, and access rights will be developed for all user terminals under the access whitelist, and access will be prohibited for all user terminals under the access blacklist. In addition, in order to ensure the reliability of the access whitelist and the access blacklist, it is necessary to update and edit the two lists. The existing technology is to add, delete, modify and check entries in the two lists by manual verification means, which cannot improve the editing efficiency and accuracy of the access whitelist and the access blacklist and reduce the access security of the Internet server. Summary of the invention
[0003] The purpose of the present invention is to provide a communication list formation and access control method and system based on traffic identification, which analyzes the data traffic log of an Internet server, determines the abnormal traffic in the corresponding scenario, tracks the abnormal traffic, determines the gateway location information of the user terminal generating the abnormal traffic, and realizes the network positioning of the suspicious user terminal; it also samples and analyzes the access traffic generated by the user terminal in a future preset time period to determine whether the user terminal wants to launch a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server, and realizing automatic and accurate updating of the access whitelist and access blacklist of the Internet server; based on the updated and edited access list, it changes the access rights of the user terminal that has real-time access connection with the Internet server and the user terminal that requests to access the Internet server, thereby improving the access security of the Internet server; it also adjusts the access connection status of the user terminal of the Internet server based on the current total access traffic status of the Internet server to avoid access overload.
[0004] The present invention is achieved through the following technical solutions:
[0005] The communication list formation and access control method based on traffic identification includes:
[0006] Obtaining a data traffic log of an Internet server, analyzing the data traffic log, and determining abnormal traffic in a corresponding communication scenario of the Internet server; tracking and processing the abnormal traffic, and determining the gateway location information of a user terminal generating the abnormal traffic;
[0007] Based on the gateway location information, the access traffic generated by the user terminal in a future preset time period is sampled to obtain a number of access traffic samples; all access traffic samples are analyzed to determine whether the user terminal launches a traffic attack to the Internet server, thereby updating and editing the access list of the Internet server;
[0008] Based on the updated and edited access list, the access rights of the user terminals that have real-time access connection with the Internet server and the user terminals that request access connection with the Internet server are changed; and based on the current total access traffic status of the Internet server, the user terminal access connection status of the Internet server is adjusted.
[0009] Optionally, obtaining a data traffic log of an Internet server, analyzing the data traffic log, and determining abnormal traffic in a corresponding communication scenario of the Internet server; and tracking and processing the abnormal traffic to determine gateway location information of a user terminal generating the abnormal traffic, including:
[0010] Obtaining a data flow log of an Internet server under a condition that a preset communication time length is met, analyzing the data flow log, determining a data flow record of the Internet server in a busy communication scenario, and extracting access flow change characteristic information of the Internet server from the data flow record; wherein the access flow change characteristic information includes the access flow peak duration of the Internet server;
[0011] If the duration of the access traffic peak is greater than or equal to the preset time threshold, the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic;
[0012] The abnormal traffic is tracked and processed to obtain all gateway address information through which the abnormal traffic passes during Internet transmission; and based on all gateway address information, the gateway location information of the user terminal generating the abnormal traffic is determined.
[0013] Optionally, analyzing the data traffic log to determine abnormal traffic in a corresponding communication scenario of the Internet server includes:
[0014] Step S1, obtaining the current timestamp t of the Internet server, wherein the timestamp t is a millisecond timestamp, i.e., a 13-digit timestamp, and generating a random number according to the timestamp t.
[0015] P(t)=t 13 t1+t 12 t2+…+t1t 13 (1)
[0016] In the above formula (1), P(t) is a random number generated according to the timestamp t, t1, t2…t 13 They are the numbers at the corresponding positions of the 13-digit timestamp;
[0017] Step S2, assuming that within the time corresponding to the random number P(t), the access flow of the gateway address M in the Internet server is M P(t) , and in the time corresponding to the random number P(t), in addition to the gateway address M, there are m other gateway addresses with access traffic, and the average access traffic of the m gateway addresses in the time corresponding to the random number P(t) is,
[0018]
[0019] In the above formula (2), is the average access flow of the m gateway addresses within the time corresponding to the random number P(t), i is the number of the i-th gateway address among the m gateway addresses, m iP(t) is the access traffic of the ith gateway address within P(t) seconds;
[0020] Step S3, assuming that the preset time threshold is X, the dynamic flow threshold of the gateway address M from the time stamp t to the time corresponding to the random number P(t) is,
[0021]
[0022] In the above formula (3), L M is the dynamic traffic threshold of the gateway address M from the time stamp t to the time corresponding to the random number P(t). When the traffic of the gateway address M from the current time stamp t to the subsequent P(t) is greater than L M When , the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic; when the timing starts from the timestamp t to the random number P(t), the above steps S1-S3 are repeated, the corresponding dynamic flow threshold is recalculated and the abnormal traffic is judged.
[0023] Optionally, based on the gateway location information, sampling the access traffic generated by the user terminal in a future preset time period to obtain a plurality of access traffic samples; analyzing all access traffic samples to determine whether the user terminal launches a traffic attack to the Internet server, thereby updating and editing the access list of the Internet server, including:
[0024] Based on the gateway location information, determine the gateway path for the user terminal to access the Internet server; based on the gateway path, sample the access traffic generated by the user terminal in a future preset time period to obtain a number of access traffic samples;
[0025] Analyze all access traffic samples to obtain data codes contained in all access traffic samples; compare all data codes to determine whether there are repeated data codes in all access traffic samples; if so, determine that the user terminal has launched a traffic attack on the Internet server; otherwise, determine that the user terminal has not launched a traffic attack on the Internet server;
[0026] When the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal does not launch a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server.
[0027] Optionally, based on the updated access list, changing the access rights of the user terminals that have real-time access connection with the Internet server and the user terminals that request to access the Internet server; and adjusting the access connection status of the user terminals of the Internet server based on the current total access traffic status of the Internet server, including:
[0028] Based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are opened;
[0029] Based on the current total access traffic value of the Internet server, determine whether the Internet server has an access overload event; if so, reduce the number of user terminals allowed to access the Internet server; otherwise, keep the current number of user terminals allowed to access the Internet server unchanged.
[0030] Communication list formation and access control system based on traffic identification, including:
[0031] An abnormal traffic identification module is used to obtain a data traffic log of an Internet server, analyze the data traffic log, and determine abnormal traffic in a corresponding communication scenario of the Internet server;
[0032] An abnormal traffic tracking module is used to track and process the abnormal traffic and determine the gateway location information of the user terminal generating the abnormal traffic;
[0033] An access traffic sampling module, used to sample the access traffic generated by the user terminal in a future preset time period based on the gateway location information to obtain a number of access traffic samples;
[0034] An access traffic analysis module is used to analyze all access traffic samples to determine whether the user terminal launches a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server;
[0035] An access rights changing module, for changing the access rights of a user terminal that has real-time access connection with the Internet server and a user terminal that requests to have access connection with the Internet server based on the updated and edited access list;
[0036] The access connection state adjustment module is used to adjust the user-side access connection state of the Internet server based on the current total access flow state of the Internet server.
[0037] Optionally, the abnormal traffic identification module is used to obtain a data traffic log of an Internet server, analyze the data traffic log, and determine the abnormal traffic in a corresponding communication scenario of the Internet server, including:
[0038] Obtaining a data flow log of an Internet server under a condition that a preset communication time length is met, analyzing the data flow log, determining a data flow record of the Internet server in a busy communication scenario, and extracting access flow change characteristic information of the Internet server from the data flow record; wherein the access flow change characteristic information includes the access flow peak duration of the Internet server;
[0039] If the duration of the access traffic peak is greater than or equal to the preset time threshold, the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic;
[0040] The abnormal traffic tracking module is used to track the abnormal traffic and determine the gateway location information of the user terminal generating the abnormal traffic, including:
[0041] The abnormal traffic is tracked and processed to obtain all gateway address information through which the abnormal traffic passes during Internet transmission; and based on all gateway address information, the gateway location information of the user terminal generating the abnormal traffic is determined.
[0042] Optionally, the access traffic sampling module is used to sample the access traffic generated by the user terminal in a future preset time period based on the gateway location information to obtain a number of access traffic samples, including:
[0043] Based on the gateway location information, determine the gateway path for the user terminal to access the Internet server; based on the gateway path, sample the access traffic generated by the user terminal in a future preset time period to obtain a number of access traffic samples;
[0044] The access traffic analysis module is used to analyze all access traffic samples to determine whether the user terminal launches a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server, including:
[0045] Analyze all access traffic samples to obtain data codes contained in all access traffic samples; compare all data codes to determine whether there are repeated data codes in all access traffic samples; if so, determine that the user terminal has launched a traffic attack on the Internet server; otherwise, determine that the user terminal has not launched a traffic attack on the Internet server;
[0046] When the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal does not launch a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server.
[0047] Optionally, the access permission changing module is used to change the access permission of the user terminal that has real-time access connection with the Internet server and the user terminal that requests to access the Internet server based on the updated access list, including:
[0048] Based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are opened;
[0049] The access connection state adjustment module is used to adjust the user terminal access connection state of the Internet server based on the current total access traffic state of the Internet server, including:
[0050] Based on the current total access traffic value of the Internet server, determine whether the Internet server has an access overload event; if so, reduce the number of user terminals allowed to access the Internet server; otherwise, keep the current number of user terminals allowed to access the Internet server unchanged.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] The communication list formation and access control method and system based on traffic identification provided in the present application analyze the data traffic log of the Internet server, determine the abnormal traffic in the corresponding scenario, and track the abnormal traffic, determine the gateway location information of the user terminal generating the abnormal traffic, and realize the network positioning of the suspicious user terminal; it also samples and analyzes the access traffic generated by the user terminal in the future preset time period to determine whether the user terminal wants to launch a traffic attack on the Internet server, so as to update and edit the access list of the Internet server, and realize the automatic and accurate update of the access whitelist and access blacklist of the Internet server; it also changes the access rights of the user terminal that has real-time access connection with the Internet server and the user terminal that requests to access the Internet server based on the updated and edited access list, so as to improve the access security of the Internet server; it also adjusts the access connection status of the user terminal of the Internet server based on the current total access traffic status of the Internet server to avoid access overload. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0054] Figure 1 A flow chart of the communication list formation and access control method based on traffic identification provided by the present invention.
[0055] Figure 2 A schematic diagram of the structure of the communication list formation and access control system based on traffic identification provided by the present invention. DETAILED DESCRIPTION
[0056] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0057] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0058] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0059] See also Figure 1 As shown, a communication list formation and access control method based on traffic identification provided by an embodiment of the present application includes:
[0060] Obtaining a data traffic log of an Internet server, analyzing the data traffic log, and determining abnormal traffic in a corresponding communication scenario of the Internet server; tracking and processing the abnormal traffic, and determining the gateway location information of a user terminal generating the abnormal traffic;
[0061] Based on the gateway location information, the access traffic generated by the user terminal in a future preset time period is sampled to obtain a number of access traffic samples; all access traffic samples are analyzed to determine whether the user terminal launches a traffic attack on the Internet server, so as to update and edit the access list of the Internet server;
[0062] Based on the updated access list, the access rights of the user terminals that have real-time access connection with the Internet server and the user terminals that request access connection with the Internet server are changed; and based on the current total access traffic status of the Internet server, the user terminal access connection status of the Internet server is adjusted.
[0063] The beneficial effects of the above embodiments are as follows: the communication list formation and access control method based on traffic identification analyzes the data traffic log of the Internet server, determines the abnormal traffic in the corresponding scenario, tracks the abnormal traffic, determines the gateway location information of the user terminal generating the abnormal traffic, and realizes the network positioning of the suspicious user terminal; it also samples and analyzes the access traffic generated by the user terminal in the future preset time period to determine whether the user terminal wants to launch a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server, and realizing the automatic and accurate update of the access whitelist and access blacklist of the Internet server; based on the updated and edited access list, the access rights of the user terminal that has real-time access connection with the Internet server and the user terminal that requests access connection with the Internet server are changed, thereby improving the access security of the Internet server; based on the current total access traffic status of the Internet server, the access connection status of the user terminal of the Internet server is adjusted to avoid access overload.
[0064] In another embodiment, obtaining a data traffic log of an Internet server, analyzing the data traffic log, and determining abnormal traffic in a corresponding communication scenario of the Internet server; tracking and processing the abnormal traffic, and determining the gateway location information of the user terminal generating the abnormal traffic, includes:
[0065] Obtaining a data flow log of an Internet server under a condition that a preset communication time length is met, analyzing the data flow log, determining a data flow record of the Internet server in a busy communication scenario, and extracting access flow change characteristic information of the Internet server from the data flow record; wherein the access flow change characteristic information includes the access flow peak duration of the Internet server;
[0066] If the duration of the access traffic peak is greater than or equal to the preset time threshold, the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic;
[0067] The abnormal traffic is tracked and processed to obtain the address information of all gateways through which the abnormal traffic passes during Internet transmission; based on all the gateway address information, the gateway location information of the user end generating the abnormal traffic is determined.
[0068] The beneficial effect of the above embodiment is that the Internet server will form a log about the data traffic state of being accessed during the working process, obtain the data traffic log of the Internet server within the preset time length range, and analyze the data traffic log to obtain the data traffic record of the Internet server in a busy communication scenario; wherein, the busy communication scenario may be but is not limited to the scenario where the Internet server is accessed by more than a preset number of user terminals at the same time. Then, the access traffic peak duration of the Internet server is extracted from the data traffic record, and this is used as the access traffic change characteristic information. The longer the access traffic peak duration is, the longer the Internet server is at the high level of access traffic. The access traffic peak duration is compared with the threshold value to accurately determine whether the corresponding access traffic is abnormal traffic, so as to facilitate the subsequent source tracking of only abnormal traffic. The abnormal traffic is tracked and processed to obtain all gateway address information that the abnormal traffic passes through during the Internet transmission process, and further determine the gateway location information of the user terminal that generates the abnormal traffic, so that the user terminal suspected of initiating a traffic attack can be accurately located in the network.
[0069] In another embodiment, analyzing the data traffic log to determine abnormal traffic in a corresponding communication scenario of the Internet server includes:
[0070] Step S1, obtain the current timestamp t of the Internet server, which is a millisecond timestamp, that is, a 13-digit timestamp, and generate a random number based on the timestamp t.
[0071] P(t)=t 13 t1+t 12 t2+…+t1t 13 (1)
[0072] In the above formula (1), P(t) is a random number generated according to the timestamp t, t1, t2…t 13 They are the numbers at the corresponding positions of the 13-digit timestamp;
[0073] Step S2: Assume that within the time corresponding to the random number P(t), the access flow of the gateway address M in the Internet server is M P(t) , and in the time corresponding to the random number P(t), in addition to the gateway address M, there are m other gateway addresses with access traffic. The average access traffic of the m gateway addresses in the time corresponding to the random number P(t) is,
[0074]
[0075] In the above formula (2), is the average access traffic of the m gateway addresses in the time corresponding to the random number P(t), i is the number of the i-th gateway address among the m gateway addresses, m iP(t) is the access traffic of the ith gateway address within P(t) seconds;
[0076] Step S3, assuming that the preset time threshold is X, then the dynamic flow threshold of the gateway address M from the time stamp t to the time corresponding to the random number P(t) is,
[0077]
[0078] In the above formula (3), L M is the dynamic traffic threshold of the gateway address M from the timestamp t to the time corresponding to the random number P(t). When the traffic of the gateway address M from the current timestamp t to the subsequent P(t) is greater than L M When , the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic; when the timing starts from the timestamp t to the random number P(t), the above steps S1-S3 are repeated, the corresponding dynamic flow threshold is recalculated and the abnormal traffic is judged.
[0079] The beneficial effect of the above embodiment is that since the preset time threshold is usually changed less frequently, abnormal traffic can be detected through technical means, thereby changing the access strategy, bypassing the time threshold setting, and continuing to carry out traffic attacks or other illegal activities to damage the system. In order to prevent the abnormal traffic identification strategy from being easily sniffed and detected by the traffic attacker, a random strategy algorithm is added on the basis of setting the time threshold to ensure system security; a random number is generated according to the start timestamp to obtain a random time interval, and the dynamic traffic threshold of the target gateway address is obtained according to the traffic access situation of other gateway addresses in the random time interval, and the traffic situation of the gateway address in the subsequent time is judged as abnormal traffic. Due to the uncertainty of the acquisition time, the generated observation time window is random. At the same time, the diversity of traffic from other gateway addresses greatly increases the difficulty of cracking the defense strategy, improves the security of the system, and avoids the situation of bypassing the time threshold setting, conducting traffic attacks or other illegal activities to damage the system.
[0080] In another embodiment, based on the gateway location information, the access traffic generated by the user terminal in a future preset time period is sampled to obtain a number of access traffic samples; all access traffic samples are analyzed to determine whether the user terminal launches a traffic attack on the Internet server, so as to update and edit the access list of the Internet server, including:
[0081] Based on the gateway location information, determine the gateway path for the user terminal to access the Internet server; based on the gateway path, sample the access traffic generated by the user terminal in a future preset time period to obtain a number of access traffic samples;
[0082] Analyze all access traffic samples to obtain the data codes contained in all access traffic samples; compare all data codes to determine whether there is any duplication of data codes in all access traffic samples; if so, determine that the user terminal has launched a traffic attack on the Internet server; otherwise, determine that the user terminal has not launched a traffic attack on the Internet server;
[0083] When the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal does not launch a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server.
[0084] The beneficial effect of the above embodiment is that the gateway path for the user terminal to access the Internet server is determined based on the gateway location information. After the user terminal is connected to the Internet server, the user terminal usually accesses the Internet server along a fixed network path, which is composed of several gateways. Based on the gateway path, the access traffic generated by the user terminal in the future preset time period is sampled to obtain several access traffic samples to ensure that the sampled access traffic samples are from the same user terminal. All access traffic samples are then analyzed to obtain the data codes contained in all access traffic samples. If the user terminal launches a traffic attack on the Internet server, the user terminal will repeatedly send the same data code to the Internet server. For this purpose, all data codes are compared and processed to determine whether there are repeated data codes in all access traffic samples, so as to accurately determine whether the user terminal wants to launch a traffic attack on the Internet server. When the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal does not launch a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server. In this way, different user terminals can be differentiated and identified, and the access blacklist and access whitelist can be automatically and timely updated, so that the Internet server can accurately change the access rights of different user terminals.
[0085] In another embodiment, based on the updated access list, changing the access rights of the client that has real-time access connection with the Internet server and the client that requests to access the Internet server; and adjusting the client access connection state of the Internet server based on the current total access traffic state of the Internet server, including:
[0086] Based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are permitted;
[0087] Based on the current total access traffic value of the Internet server, determine whether the Internet server has an access overload event; if so, reduce the number of user terminals allowed to access the Internet server; otherwise, keep the current number of user terminals allowed to access the Internet server unchanged.
[0088] The beneficial effect of the above embodiment is that, based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to access the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to access the Internet server are opened, so that the access security of the Internet server can be improved. In addition, based on the current total access flow value of the Internet server, it is judged whether the Internet server has an access overload event, and when an access overload event occurs, the number of user terminals allowed to access the Internet server is reduced, effectively avoiding overload access to the Internet server and ensuring the access stability and reliability of the Internet server.
[0089] See also Figure 2 As shown, a communication list formation and access control system based on traffic identification provided by an embodiment of the present application includes:
[0090] The abnormal traffic identification module is used to obtain the data traffic log of the Internet server, analyze the data traffic log, and determine the abnormal traffic in the corresponding communication scenario of the Internet server;
[0091] The abnormal traffic tracking module is used to track and process the abnormal traffic and determine the gateway location information of the user end generating the abnormal traffic;
[0092] An access traffic sampling module is used to sample the access traffic generated by the user terminal in a future preset time period based on the gateway location information to obtain a number of access traffic samples;
[0093] The access traffic analysis module is used to analyze all access traffic samples to determine whether the user terminal launches a traffic attack on the Internet server, so as to update and edit the access list of the Internet server;
[0094] An access rights changing module, for changing the access rights of a user terminal that has real-time access connection with the Internet server and a user terminal that requests to have access connection with the Internet server based on the updated and edited access list;
[0095] The access connection state adjustment module is used to adjust the user-side access connection state of the Internet server based on the current total access flow state of the Internet server.
[0096] The beneficial effects of the above embodiments are as follows: the communication list formation and access control system based on traffic identification analyzes the data traffic log of the Internet server, determines the abnormal traffic in the corresponding scenario, tracks the abnormal traffic, determines the gateway location information of the user terminal generating the abnormal traffic, and realizes the network positioning of the suspicious user terminal; it also samples and analyzes the access traffic generated by the user terminal in the future preset time period to determine whether the user terminal wants to launch a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server, and realizing automatic and accurate updating of the access whitelist and access blacklist of the Internet server; based on the updated and edited access list, it changes the access rights of the user terminal that has real-time access connection with the Internet server and the user terminal that requests access connection with the Internet server, thereby improving the access security of the Internet server; it also adjusts the access connection status of the user terminal of the Internet server based on the current total access traffic status of the Internet server to avoid access overload.
[0097] In another embodiment, the abnormal traffic identification module is used to obtain a data traffic log of an Internet server, analyze the data traffic log, and determine the abnormal traffic in a corresponding communication scenario of the Internet server, including:
[0098] Obtaining a data flow log of an Internet server under a condition that a preset communication time length is met, analyzing the data flow log, determining a data flow record of the Internet server in a busy communication scenario, and extracting access flow change characteristic information of the Internet server from the data flow record; wherein the access flow change characteristic information includes the access flow peak duration of the Internet server;
[0099] If the duration of the access traffic peak is greater than or equal to the preset time threshold, the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic;
[0100] The abnormal traffic tracking module is used to track the abnormal traffic and determine the gateway location information of the user terminal generating the abnormal traffic, including:
[0101] The abnormal traffic is tracked and processed to obtain the address information of all gateways through which the abnormal traffic passes during Internet transmission; then based on all the gateway address information, the gateway location information of the user end generating the abnormal traffic is determined.
[0102] The beneficial effect of the above embodiment is that the Internet server will form a log about the data traffic state of being accessed during the working process, obtain the data traffic log of the Internet server within the preset time length range, and analyze the data traffic log to obtain the data traffic record of the Internet server in a busy communication scenario; wherein, the busy communication scenario may be but is not limited to the scenario where the Internet server is accessed by more than a preset number of user terminals at the same time. Then, the access traffic peak duration of the Internet server is extracted from the data traffic record, and this is used as the access traffic change characteristic information. The longer the access traffic peak duration is, the longer the Internet server is at the high level of access traffic. The access traffic peak duration is compared with the threshold value to accurately determine whether the corresponding access traffic is abnormal traffic, so as to facilitate the subsequent source tracking of only abnormal traffic. The abnormal traffic is tracked and processed to obtain all gateway address information that the abnormal traffic passes through during the Internet transmission process, and further determine the gateway location information of the user terminal that generates the abnormal traffic, so that the user terminal suspected of initiating a traffic attack can be accurately located in the network.
[0103] In another embodiment, the access traffic sampling module is used to sample the access traffic generated by the user terminal in a future preset time period based on the gateway location information to obtain a number of access traffic samples, including:
[0104] Based on the gateway location information, determine the gateway path for the user terminal to access the Internet server; based on the gateway path, sample the access traffic generated by the user terminal in a future preset time period to obtain a number of access traffic samples;
[0105] The access traffic analysis module is used to analyze all access traffic samples to determine whether the client launches a traffic attack on the Internet server, so as to update and edit the access list of the Internet server, including:
[0106] Analyze all access traffic samples to obtain the data codes contained in all access traffic samples; compare all data codes to determine whether there is any duplication of data codes in all access traffic samples; if so, determine that the user terminal has launched a traffic attack on the Internet server; otherwise, determine that the user terminal has not launched a traffic attack on the Internet server;
[0107] When the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal does not launch a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server.
[0108] The beneficial effect of the above embodiment is that the gateway path for the user terminal to access the Internet server is determined based on the gateway location information. After the user terminal is connected to the Internet server, the user terminal usually accesses the Internet server along a fixed network path, which is composed of several gateways. Based on the gateway path, the access traffic generated by the user terminal in the future preset time period is sampled to obtain several access traffic samples to ensure that the sampled access traffic samples are from the same user terminal. All access traffic samples are then analyzed to obtain the data codes contained in all access traffic samples. If the user terminal launches a traffic attack on the Internet server, the user terminal will repeatedly send the same data code to the Internet server. For this purpose, all data codes are compared and processed to determine whether there are repeated data codes in all access traffic samples, so as to accurately determine whether the user terminal wants to launch a traffic attack on the Internet server. When the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal does not launch a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server. In this way, different user terminals can be differentiated and identified, and the access blacklist and access whitelist can be automatically and timely updated, so that the Internet server can accurately change the access rights of different user terminals.
[0109] In another embodiment, the access permission changing module is used to change the access permission of the user terminal that has real-time access connection with the Internet server and the user terminal that requests to access the Internet server based on the updated access list, including:
[0110] Based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are permitted;
[0111] The access connection state adjustment module is used to adjust the user terminal access connection state of the Internet server based on the current total access traffic state of the Internet server, including:
[0112] Based on the current total access traffic value of the Internet server, determine whether the Internet server has an access overload event; if so, reduce the number of user terminals allowed to access the Internet server; otherwise, keep the current number of user terminals allowed to access the Internet server unchanged.
[0113] The beneficial effect of the above embodiment is that, based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to access the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to access the Internet server are opened, so that the access security of the Internet server can be improved. In addition, based on the current total access flow value of the Internet server, it is judged whether the Internet server has an access overload event, and when an access overload event occurs, the number of user terminals allowed to access the Internet server is reduced, effectively avoiding overload access to the Internet server and ensuring the access stability and reliability of the Internet server.
[0114] In general, the communication list formation and access control method and system based on traffic identification analyzes the data traffic log of the Internet server, determines the abnormal traffic in the corresponding scenario, tracks the abnormal traffic, determines the gateway location information of the user terminal generating the abnormal traffic, and realizes the network positioning of the suspicious user terminal; it also samples and analyzes the access traffic generated by the user terminal in the future preset time period to determine whether the user terminal wants to launch a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server, and realizing automatic and accurate updating of the access whitelist and access blacklist of the Internet server; based on the updated and edited access list, it also changes the access rights of the user terminal that has real-time access connection with the Internet server and the user terminal that requests access connection with the Internet server, thereby improving the access security of the Internet server; it also adjusts the access connection status of the user terminal of the Internet server based on the current total access traffic status of the Internet server to avoid access overload.
[0115] The above is only a specific implementation of the present invention, and any other improvements made based on the concept of the present invention are considered to be within the protection scope of the present invention.
Claims
1. A communication list formation and access control method based on traffic identification, characterized in that: include: Obtaining a data traffic log of an Internet server, analyzing the data traffic log, and determining abnormal traffic in a corresponding communication scenario of the Internet server; Tracking the abnormal traffic to determine the gateway location information of the user terminal generating the abnormal traffic; Based on the gateway location information, the access traffic generated by the user terminal in a future preset time period is sampled to obtain a number of access traffic samples; all access traffic samples are analyzed to determine whether the user terminal launches a traffic attack to the Internet server, thereby updating and editing the access list of the Internet server; Based on the updated and edited access list, the access rights of the user terminals that have real-time access connection with the Internet server and the user terminals that request access connection with the Internet server are changed; and based on the current total access traffic status of the Internet server, the user terminal access connection status of the Internet server is adjusted.
2. The communication list formation and access control method based on traffic identification as claimed in claim 1, characterized in that: Obtaining a data traffic log of an Internet server, analyzing the data traffic log, and determining abnormal traffic in a corresponding communication scenario of the Internet server; Tracking the abnormal traffic to determine the gateway location information of the user terminal generating the abnormal traffic, including: Obtaining a data flow log of an Internet server under a condition that a preset communication time length is met, analyzing the data flow log, determining a data flow record of the Internet server in a busy communication scenario, and extracting access flow change characteristic information of the Internet server from the data flow record; wherein the access flow change characteristic information includes the access flow peak duration of the Internet server; If the duration of the access traffic peak is greater than or equal to a preset time threshold, the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic; the abnormal traffic is tracked and processed to obtain all gateway address information through which the abnormal traffic passes during Internet transmission; and based on all gateway address information, the gateway location information of the user terminal that generates the abnormal traffic is determined.
3. The communication list formation and access control method based on traffic identification as claimed in claim 1, characterized in that: Analyzing the data traffic log to determine abnormal traffic in the corresponding communication scenario of the Internet server includes: Step S1, obtaining the current timestamp t of the Internet server, wherein the timestamp t is a millisecond timestamp, i.e., a 13-digit timestamp, and generating a random number according to the timestamp t. P(t)=t 13 t1+t 12 t2+…+t1t 13 (1) In the above formula (1), P(t) is a random number generated according to the timestamp t, t1, t2…t 13 They are the numbers at the corresponding positions of the 13-digit timestamp; Step S2, assuming that within the time corresponding to the random number P(t), the access flow of the gateway address M in the Internet server is M P(t) , and in the time corresponding to the random number P(t), in addition to the gateway address M, there are m other gateway addresses with access traffic, and the average access traffic of the m gateway addresses in the time corresponding to the random number P(t) is, In the above formula (2), is the average access flow of the m gateway addresses within the time corresponding to the random number P(t), i is the number of the i-th gateway address among the m gateway addresses, m iP(t) is the access traffic of the ith gateway address within P(t) seconds; Step S3, assuming that the preset time threshold is X, the dynamic flow threshold of the gateway address M from the time stamp t to the time corresponding to the random number P(t) is, In the above formula (3), L M is the dynamic traffic threshold of the gateway address M from the time stamp t to the time corresponding to the random number P(t). When the traffic of the gateway address M from the current time stamp t to the subsequent P(t) is greater than L M When , the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic; when the timing starts from the timestamp t to the random number P(t), the above steps S1-S3 are repeated, the corresponding dynamic flow threshold is recalculated and the abnormal traffic is judged.
4. The communication list formation and access control method based on traffic identification as claimed in claim 1, characterized in that: Based on the gateway location information, the access traffic generated by the user terminal in a future preset time period is sampled to obtain a number of access traffic samples; all access traffic samples are analyzed to determine whether the user terminal launches a traffic attack to the Internet server, thereby updating and editing the access list of the Internet server, including: Based on the gateway location information, determine the gateway path for the user terminal to access the Internet server; based on the gateway path, sample the access traffic generated by the user terminal in a future preset time period to obtain a number of access traffic samples; All access traffic samples are analyzed to obtain the data codes contained in all access traffic samples; all data codes are compared to determine whether there is any data code duplication in all access traffic samples; if so, it is determined that the user terminal has launched a traffic attack on the Internet server; otherwise, it is determined that the user terminal has not launched a traffic attack on the Internet server; when the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal has not launched a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server.
5. The communication list formation and access control method based on traffic identification as claimed in claim 1, characterized in that: Based on the updated access list, changing the access rights of the user terminals that have real-time access connection with the Internet server and the user terminals that request to access the Internet server; Based on the current total access traffic state of the Internet server, adjusting the user terminal access connection state of the Internet server includes: Based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are opened; Based on the current total access traffic value of the Internet server, determine whether the Internet server has an access overload event; if so, reduce the number of user terminals allowed to access the Internet server; otherwise, keep the current number of user terminals allowed to access the Internet server unchanged.
6. Communication list formation and access control system based on traffic identification, characterized in that: include: An abnormal traffic identification module is used to obtain a data traffic log of an Internet server, analyze the data traffic log, and determine abnormal traffic in a corresponding communication scenario of the Internet server; An abnormal traffic tracking module is used to track and process the abnormal traffic and determine the gateway location information of the user terminal generating the abnormal traffic; An access traffic sampling module, used to sample the access traffic generated by the user terminal in a future preset time period based on the gateway location information to obtain a number of access traffic samples; An access traffic analysis module is used to analyze all access traffic samples to determine whether the user terminal launches a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server; An access rights changing module, for changing the access rights of a user terminal that has real-time access connection with the Internet server and a user terminal that requests to have access connection with the Internet server based on the updated and edited access list; The access connection state adjustment module is used to adjust the user-side access connection state of the Internet server based on the current total access flow state of the Internet server.
7. The communication list formation and access control system based on traffic identification as claimed in claim 5, characterized in that: The abnormal traffic identification module is used to obtain a data traffic log of an Internet server, analyze the data traffic log, and determine the abnormal traffic in a corresponding communication scenario of the Internet server, including: Obtaining a data flow log of an Internet server under a condition that a preset communication time length is met, analyzing the data flow log, determining a data flow record of the Internet server in a busy communication scenario, and extracting access flow change characteristic information of the Internet server from the data flow record; wherein the access flow change characteristic information includes the access flow peak duration of the Internet server; If the duration of the access traffic peak is greater than or equal to the preset time threshold, the corresponding access traffic is determined as abnormal traffic; otherwise, the corresponding access traffic is not determined as abnormal traffic; the abnormal traffic tracking module is used to track the abnormal traffic and determine the gateway location information of the user terminal generating the abnormal traffic, including: The abnormal traffic is tracked and processed to obtain all gateway address information through which the abnormal traffic passes during Internet transmission; and based on all gateway address information, the gateway location information of the user terminal generating the abnormal traffic is determined.
8. The communication list formation and access control system based on traffic identification as claimed in claim 5, characterized in that: The access traffic sampling module is used to sample the access traffic generated by the user terminal in a future preset time period based on the gateway location information to obtain a number of access traffic samples, including: Based on the gateway location information, determine the gateway path for the user terminal to access the Internet server; based on the gateway path, sample the access traffic generated by the user terminal in a future preset time period to obtain a number of access traffic samples; The access traffic analysis module is used to analyze all access traffic samples to determine whether the user terminal launches a traffic attack on the Internet server, thereby updating and editing the access list of the Internet server, including: All access traffic samples are analyzed to obtain the data codes contained in all access traffic samples; all data codes are compared to determine whether there is any data code duplication in all access traffic samples; if so, it is determined that the user terminal has launched a traffic attack on the Internet server; otherwise, it is determined that the user terminal has not launched a traffic attack on the Internet server; when the user terminal launches a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access blacklist of the Internet server; when the user terminal has not launched a traffic attack on the Internet server, the terminal identity information of the user terminal is added to the access whitelist of the Internet server.
9. The communication list formation and access control system based on traffic identification as claimed in claim 5, characterized in that: The access permission changing module is used to change the access permission of the user terminal that has real-time access connection with the Internet server and the user terminal that requests to access the Internet server based on the updated access list, including: Based on all the terminal identity information included in the updated access blacklist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are prohibited; based on all the terminal identity information included in the updated access whitelist, the access rights of the corresponding user terminals that are connected to the Internet server in real time and the corresponding user terminals that request to connect to the Internet server are opened; The access connection state adjustment module is used to adjust the user terminal access connection state of the Internet server based on the current total access traffic state of the Internet server, including: Based on the current total access traffic value of the Internet server, determine whether the Internet server has an access overload event; if so, reduce the number of user terminals allowed to access the Internet server; otherwise, keep the current number of user terminals allowed to access the Internet server unchanged.
Citation Information
Cited By
Personnel list information management method and device, computer equipment and storage medium
CN119513918A
