Ten million-level network session table management method, system, medium and equipment based on Hash algorithm
A technology of hash algorithm and management method, applied in the field of network session management, can solve the problems of data packets being too late to process, discard, session memory management, and low performance of search methods, and achieve the effect of reducing system overhead and high performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0052] In an enterprise environment, traffic can be mirrored through switches to centrally analyze the traffic of the entire network, but a large number of sessions will be generated (if the source IP, destination IP, source port, destination port, and protocol type of the data packets are the same, they are considered to belong to the same One session), up to tens of millions.
[0053] Therefore, this embodiment provides a hash algorithm-based method for managing tens of millions of network session tables, which can quickly locate the session corresponding to a certain data packet in real time, and update the session information. Ten thousand session table management, including session creation, search and deletion.
[0054] Such as figure 1 As shown, the method for managing tens of millions of network session tables based on the hash algorithm in this embodiment includes two steps: session table memory management based on pre-allocation and session location based on the has...
Embodiment 2
[0089] Such as figure 2 As shown, the present embodiment provides a ten-million-level network session table management system based on a hash algorithm, and the system includes: a session table memory management module 1 and a session location module 2;
[0090] The session table memory management module 1 is used to allocate memory space and manage the drawing table based on the pre-allocated session table, including: a memory space allocation module 11, a node linked list generation module 12 and a first operation module 13;
[0091] The memory space allocation module 11 is configured to pre-allocate and initialize all continuous memory space according to the preset session table capacity;
[0092] The node linked list generation module 12 is used to form an available node linked list with available session table units, and the node linked list includes the offset position of the session node;
[0093] The first operation module 13 is configured to re-enter the available n...
Embodiment 3
[0101] This embodiment provides a storage medium, the storage medium stores one or more programs, and when the programs are executed by the processor, the hash algorithm-based tens of millions of network session table management method in the above-mentioned embodiment 1 is implemented, as follows:
[0102] Session table memory management based on pre-allocation;
[0103] According to the pre-set session table capacity, pre-allocate all continuous memory space and initialize it;
[0104] Form an available node linked list with available session table units, and the node linked list includes offset positions of session nodes;
[0105] When the session table unit is deleted, the node memory is not released to the operating system, and the available node list is re-entered for use by the new session;
[0106] Session location based on hash algorithm;
[0107] When a data packet is collected, it is judged whether the session corresponding to the data packet has been established...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com