SDN (Software Defined Network) virtual flow table lookup acceleration method for network flow perception

Through network traffic-aware efficient hashing algorithms and dynamic mask sorting, it solves the problems of slow SDN virtual flow table lookup and low cache space utilization, realizes efficient flow table lookup and adaptive cache management, and improves SDN virtual flow table performance. Flow table lookup performance.

CN118764432APending Publication Date: 2024-10-11CHANGSHA UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410922872.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing SDN virtual flow table lookup solution is slow when network traffic surges, and the cache space utilization is not high, making it difficult to adapt to traffic fluctuations, resulting in performance degradation and failure to improve cache space utilization.

Method used

Design a network traffic-aware SDN virtual flow table lookup acceleration method that provides cache locations for active accurate flows through efficient hashing algorithms, combines adjacent hop and same-direction kick operations to resolve conflicts, and dynamically adjusts the group interval threshold to adapt to traffic changes. ;At the same time, a dynamic mask sorting algorithm is used to optimize the sorting according to the access frequency and load factor of tuples to reduce tuple space search overhead.

Benefits of technology

It significantly improves the cache hit rate and search speed, ensures that efficient virtual flow table search performance can be maintained when network traffic fluctuates and changes, reduces the average tuple space search overhead, and improves the acceleration effect of SDN virtual flow tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764432A_ABST
    Figure CN118764432A_ABST
Patent Text Reader

Abstract

The invention designs an SDN virtual flow table lookup acceleration method based on network flow perception. According to the method, firstly, an active precise flow is cached to accelerate an SDN virtual flow table lookup process, and then a Hash algorithm for efficiently solving conflicts is designed for cache acceleration. According to the algorithm, the cache position is provided for each active precise stream as much as possible by combining the adjacent hop operation and the same-direction kick operation, so that the cache space is fully utilized, and the cache hit rate is improved. Furthermore, the grouping interval of the active precise flow is dynamically adjusted and judged to reach the threshold value according to the fluctuation change of the network flow, so that the number of the active precise flow is matched with the cache capacity, the cache is ensured to always store the precise flow with relatively high activity in the network, and the cache hit rate is kept as high as possible. And for a cache failure situation, the access frequency and the load factor of the tuple are comprehensively considered to optimally design a dynamic mask sorting algorithm, so that the average tuple space search overhead is remarkably reduced, and the SDN virtual flow table search acceleration effect is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of SDN virtual flow table lookup acceleration, and more specifically, to a network traffic-aware SDN virtual flow table lookup acceleration method. Background Technology

[0002] Software-Defined Networking (SDN), as an emerging network architecture, separates data forwarding from control logic. It centrally manages data switching devices through southbound interface protocols, such as SDN, and provides a unified programming interface for upper-layer applications, significantly improving network flexibility, openness, and programmability. In the SDN data plane, SDN protocols support remote management and operation of flow tables in switches, including adding, modifying, and deleting flow table entries, enabling controllers to flexibly customize the transmission paths of data packets in the underlying switching network. Furthermore, SDN uses key fields in the headers of each layer of protocols as matching fields for flow table entries and introduces wildcards into these matching fields, achieving fine-grained and flexible management of network flows. However, this also makes it impossible to directly use hash methods for fast lookups in SDN virtual flow tables. To address this, mainstream SDN switches employ a tuple space search method, dividing the SDN virtual flow table into several tuples according to a mask, and then performing hash lookups within these tuples to achieve wildcard lookups in the flow table.

[0003] Figure 1 The flow table lookup process of an SDN virtual switch is demonstrated, and its construction principle is as follows:

[0004] (1) When a data packet arrives at the SDN virtual switch, firstly, its protocol headers at each layer are parsed, key fields are extracted, and the flow identifier fid is calculated. (2) Then, the masks in the mask array are probed sequentially, that is, the flow identifier fid is ANDed with the mask to obtain the key i, and then the matching flow table entry is searched in the corresponding tuple. (3) If the search is successful, the action set in the flow table entry is executed, and the flow table entry information (such as a counter) is updated. Otherwise, the next mask is probed. (4) If all mask probes fail, the data packet is encapsulated into a Packet-in message and sent to the SDN controller. After the SDN controller generates and issues the corresponding flow rules, the data packet is forwarded for processing. (5) At the same time, a new flow table entry is created according to the flow rules, and it is added to the corresponding tuple in the SDN virtual flow table according to the mask.

[0005] The above scheme achieves wildcard lookup in the flow table by probing the mask one by one and performing hash lookups in the tuples. However, since each packet can only be successfully masked at most once, and each failed mask probe requires a tuple lookup, the flow table lookup speed is slow. Even worse, when network traffic surges, the flow table size expands rapidly, further slowing down the lookup speed. Therefore, an acceleration cache is designed to store more active, precise flows, bypassing the tuple space search method to directly find the corresponding flow table entry and perform packet forwarding, as follows:

[0006] like Figure 2 The illustrated **Solution 1** is an SDN virtual flow table lookup scheme based on multi-level caching. This scheme designs a microflow cache and a megaflow cache in the Open vSwitch kernel module. The megaflow cache internally employs a tuple space search method, storing megaflows with wildcards and no priority. This allows most packets to match flow table entries with only a small number of tuples, improving the speed of SDN virtual flow table lookups. Simultaneously, the microflow cache stores index values ​​mapped to matching masks in the megaflow cache, enabling packets in the cached flow to directly locate the corresponding tuples, thereby accelerating packet lookups in the megaflow cache and further improving the speed of SDN virtual flow table lookups.

[0007] The flow table lookup process for Scheme 1 is as follows: (1) When a data packet arrives at the SDN virtual switch, its important header information is first parsed and extracted to generate a flow identifier fid, and then the micro-flow cache is searched. (2) If the mask detection is successful, the action set of its flow table entry is executed, and the flow table entry and corresponding cache entry information are updated. Otherwise, the macro-flow cache is searched, that is, the mask in the macro-flow cache is detected in turn. (3) If neither the micro-flow cache nor the macro-flow cache is hit, the data packet is sent to the SDN flow table in the user space. (4) If a matching flow table entry is still not found in the SDN flow table, the data packet is encapsulated into a packet-in message and sent to the SDN controller to request the issuance of a new flow rule.

[0008] like Figure 3 The illustrated **Solution 2** is an SDN virtual flow table lookup scheme based on precise flow caching. This scheme leverages network traffic locality to cache active precise flows in the network, ensuring that most data packets hit the cache and quickly locate the corresponding flow table entries, thereby effectively improving the lookup speed of the SDN virtual flow table. The cache uses the Cuckoo hash algorithm, providing two candidate positions for each newly emerging active precise flow. When both candidate positions are full, one flow is randomly removed, and the new flow is inserted into its corresponding position. Simultaneously, the removed flow is inserted into its other candidate position.

[0009] The flow rule placement process for Scheme 2 is as follows: (1) When a data packet arrives at the SDN virtual switch, its header key fields are extracted first, the flow identifier is calculated, and then the active precise flow cache is searched. (2) If the cache lookup successfully matches a cache entry, the corresponding flow table entry in the flow table is located directly based on the flow table entry address, and then the packet is forwarded according to its action set. If the cache lookup fails, all tuples corresponding to the mask array need to be searched in sequence. (3) If a flow table entry is successfully matched in a certain tuple, the action set in it is executed. (4) If all tuple searches fail, the packet information is encapsulated into a packet-in message and sent to the SDN controller. After the SDN controller generates and issues the corresponding flow rule, the packet is forwarded.

[0010] However, the existing SDN virtual flow table lookup schemes mentioned above have the following drawbacks:

[0011] [Solution 1] This solution stores the currently accessed flow in a macro-flow cache and uses a micro-flow cache to store the mapping relationship between cached flow signatures and mask index values. This allows most packets hitting the micro-flow cache to directly locate the corresponding tuple in the macro-flow cache, speeding up the packet matching process in the cache and further accelerating SDN virtual flow table lookups. However, when a packet hits a cache entry in the micro-flow cache, after reading the mask, the corresponding tuple still needs to be searched, and the cache lookup speed needs further improvement. Furthermore, this solution directly stores the flow whose most recently found tuple is in the cache, but this flow may only receive a small number of packets or even none at all afterward, so the cache hit rate needs improvement.

[0012] [Solution 2] This solution uses the Cuckoo hash algorithm to provide two candidate positions for each new active flow. When both candidate positions are full, a flow is randomly replaced and the new flow is inserted. Simultaneously, the flow that was kicked out is inserted into its other candidate position to improve cache space utilization. However, when the kicking operation is repeated, the kicked-out flow may be inserted into the position of a previously kicked-out flow, leading to a circular kicking problem. This circular kicking problem causes performance degradation, increases the time complexity of insertion operations, and may even eventually cause the hash table to be unable to accommodate new traffic, thus failing to improve cache space utilization. Summary of the Invention

[0013] To address the issues of low space utilization and difficulty in adapting to network traffic fluctuations in existing accelerated caches, this patent designs a network traffic-aware SDN virtual flow table lookup acceleration method. This method first caches active precise flows to accelerate the SDN virtual flow table lookup process, and then designs an efficient collision resolution hash algorithm for the accelerated cache. This algorithm combines adjacent hops and same-direction kick operations to provide as many cache locations as possible for each active precise flow, making full use of cache space and thus improving cache hit rate. Furthermore, it dynamically adjusts the packet interval for determining active precise flows based on network traffic fluctuations, ensuring that the number of active precise flows matches the cache capacity, guaranteeing that the cache always stores highly active precise flows in the network, thereby maintaining the highest possible cache hit rate. For cache failure scenarios, a dynamic mask sorting algorithm is optimized by comprehensively considering tuple access frequency and load factor, significantly reducing the average tuple space search overhead and effectively improving the acceleration effect of SDN virtual flow table lookup.

[0014] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0015] This invention designs a network traffic-aware SDN virtual flow table lookup acceleration method, which mainly includes a network traffic-aware, highly efficient adaptive acceleration cache and a dynamic mask sorting method for accelerating tuple space search.

[0016] The network traffic-aware, highly adaptive, and accelerated caching includes the following steps:

[0017] (1) The cache first stores active exact streams containing a large number of data packets and designs an efficient hash algorithm to resolve hash collisions, providing three candidate positions for each active exact stream, namely the direct mapping position and its two adjacent positions.

[0018] (2) When all three positions are full, a kick-in operation is used to free up space for newly arriving active exact streams, thereby making full use of the cache space.

[0019] (3) Further, dynamically adjust the arrival interval threshold of the group of active precise streams so that the number of active precise streams matches its capacity, thereby enabling the cache to adaptively store highly active precise streams, maximize the cache hit rate, and achieve a good virtual flow table lookup acceleration effect.

[0020] (4) Specifically, when the number of active precise flows in the network increases significantly, the packet arrival interval threshold is reduced to cache the most active precise flows; when the number of active precise flows in the network decreases significantly, the packet arrival interval threshold is increased to increase the number of cached active precise flows.

[0021] The dynamic mask sorting method for accelerating tuple space search includes the following steps:

[0022] (1) First, set a dynamic weight for each mask to record the recent access frequency of the corresponding tuple in real time, and sort them from high to low, so that most data packets hit the tuple as early as possible, and only a few data packets need to traverse more tuples.

[0023] (2) Whenever a data packet arrives, the dynamic weight of the corresponding tuple is appropriately increased to move the corresponding mask forward, thereby effectively reducing the number of mask probes for subsequent data packets of that tuple. For each tuple, the single increment of the dynamic weight should be negatively correlated with its lookup cost, so that tuples with high lookup costs move forward cautiously, while tuples with low lookup costs move forward quickly.

[0024] (3) Considering that the lookup cost of a tuple is almost linearly related to its load factor, the dynamic weight increment of a tuple can be set as the reciprocal of its load factor.

[0025] (4) By combining the access frequency and load factor of tuples to optimize their dynamic weights and dynamically sorting the corresponding masks according to them, the average tuple space search overhead of cached invalid data packets is significantly reduced.

[0026] The present invention provides a network traffic-aware SDN virtual flow table lookup acceleration method, which has at least the following gain effects:

[0027] 1. In view of the problem that the space utilization of existing accelerated cache is not high and it is difficult to adapt to the fluctuation of network traffic, this patent designs a network traffic-aware, highly efficient, adaptive accelerated cache. (1) By designing an efficient hash algorithm to resolve collisions, the cache space is fully utilized to store as many active precise flows as possible, thereby improving the cache hit rate and enabling as many data packets as possible to bypass the tuple space search process, thus improving the acceleration effect of SDN virtual flow table lookup; (2) By adaptively adjusting the packet arrival interval threshold for determining active precise flows, the number of active precise flows is matched with the cache capacity, ensuring that the cache always stores highly active precise flows in the network, and always enabling most data packets to directly hit the cache and skip the virtual flow table lookup operation. Even under the condition of network traffic fluctuation, a good virtual flow table lookup acceleration effect is still achieved stably.

[0028] 2. To address the significant overhead of performing tuple searches in the flow table for packets that fail to find cached data, this patent proposes a dynamic mask sorting method to accelerate tuple space searches. This method dynamically sorts the corresponding masks by comprehensively considering tuple access frequency and load factors. This ensures that most packets experience a small number of failed tuple lookup operations before hitting earlier tuples, while only a small number of packets experience a large number of failed tuple lookup operations before hitting later tuples. This significantly reduces the average tuple space search overhead for packets and effectively improves the acceleration effect of SDN virtual flow table searches. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0030] Figure 1 This is a schematic diagram of the flow table lookup process for an SDN virtual switch.

[0031] Figure 2 A schematic diagram of an SDN virtual flow table lookup scheme based on multi-level caching;

[0032] Figure 3 This is a schematic diagram of an SDN virtual flow table lookup scheme based on precise flow caching;

[0033] Figure 4 A schematic diagram of a network traffic-aware SDN virtual flow table lookup acceleration method provided for the implementation of this invention;

[0034] Figure 5 A schematic diagram of the accelerated cache structure provided for the implementation of this invention;

[0035] Figure 6 A schematic diagram of an SDN virtual flow table lookup process provided for implementation of the present invention;

[0036] Figure 7 A schematic diagram of an SDN virtual flow table deletion process provided for the implementation of this invention;

[0037] Figure 8 A schematic diagram of an SDN virtual flow table timeout scanning process provided for the implementation of this invention;

[0038] Figure 9 A schematic diagram of an accelerated cache insertion process provided for the implementation of this invention; Detailed Implementation

[0039] The invention will be further described below with reference to embodiments and accompanying drawings, but these are not intended to limit the scope of the invention.

[0040] like Figure 4 As shown, one embodiment of the present invention provides a method for accelerating SDN virtual flow table lookup with network traffic awareness, as detailed below:

[0041] This method first caches active precise flows to accelerate the SDN virtual flow table lookup process, and then designs an efficient hash algorithm to resolve collisions for accelerated caching. This algorithm combines adjacent hops and same-direction kick operations to provide as many cache locations as possible for each active precise flow, making full use of cache space and thus improving cache hit rate. Furthermore, it dynamically adjusts the packet interval for determining active precise flows based on network traffic fluctuations, ensuring that the number of active precise flows matches the cache capacity and that the cache always stores highly active precise flows in the network, thereby maintaining the highest possible cache hit rate. For cache failure scenarios, a dynamic mask sorting algorithm is optimized by comprehensively considering tuple access frequency and load factor, significantly reducing the average tuple space search overhead and effectively improving the acceleration effect of SDN virtual flow table lookup.

[0042] like Figure 5 As shown, one embodiment of the present invention provides an accelerated cache structure, as detailed below:

[0043] The accelerated cache consists of several hash buckets, each with multiple slots. Each slot stores a cache entry and its corresponding flag. A cache entry consists of a flow signature (sign), a flow table entry index (addr), and a timestamp (time). When a data packet arrives at the SDN virtual switch, key fields are extracted to generate a flow identifier (fid) and a flow signature (sign), which are then used to search the accelerated cache. If the cache search is successful, the corresponding flow table entry can be quickly located using the index (addr) in the matched cache entry. The timestamp (time) records the most recent access time of the cache entry, used for periodic timeout scanning and cache replacement when a new flow is inserted. If the difference between the current time and the timestamp (time) exceeds a set threshold, the cache entry is reset. The offset (+1, 0, -1) records the offset between the actual storage location of the cached flow and its hash mapping location. An offset of 0 indicates that the cached flow is stored at its directly mapped location, while an offset of +1 or -1 indicates that the actual storage location of the cached flow is offset upwards or downwards by one position, respectively.

[0044] Reference Figure 6-9 The above embodiments specifically include the following operations:

[0045] a. SDN Virtual Flow Table Lookup Process

[0046] Figure 6This patent describes the SDN virtual flow table lookup process. When an SDN virtual switch receives a data packet from the network, it first parses and extracts its header information to obtain the flow identifier (fid). Then, it uses the flow identifier to look up the accelerated cache. If the accelerated cache lookup is successful, the flow table entry index value corresponding to the data packet can be obtained. Based on the flow table entry index value, the matching field in the flow table entry is read, and the flow identifier is further checked to see if it matches the matching field. If they match, it means that the cache prediction was successful, and the data packet will be forwarded according to the action set in the flow table entry. After the data packet is forwarded, the relevant content fields in the flow table entry (such as counters and timestamps) need to be updated, and the timestamp information in the successfully matched cache entry needs to be updated for subsequent timeout scanning and cache replacement.

[0047] If cache prediction fails, the mask array needs to be probed sequentially to obtain a matching flow table entry, and then the packet is forwarded for processing, updating the relevant information of the flow table entry. Furthermore, after successfully processing a packet through tuple space search, it is necessary to determine whether the flow to which the packet belongs is in an active state, i.e., whether the arrival time interval between the current packet and the most recent packet is less than a certain threshold PIT. If it is less, the flow is in an active state and needs to be cached. If a corresponding flow table entry cannot be found after tuple space search, it means that the flow to which the packet belongs is a new flow. The SDN virtual switch will package part or all of the packet's header information into a Packet-in message and send it to the SDN controller to request the controller to issue the corresponding flow rule.

[0048] b. SDN Virtual Flow Table Deletion Process

[0049] Figure 7 This patent describes the SDN virtual flow table deletion process. For a given SDN flow table ft and TCAM capacity r, firstly, the matching fields and their quantities n of the flow rules in ft are obtained, thereby constructing a rule dependency graph. Then, flow rules f are sequentially retrieved from the flow table ft. i For each flow rule f i According to f i The location of the rule dependency graph, to obtain f i And its dependent rule set, count its quantity C i Total Activity A i Calculate the TCAM storage yield P i =A i / C i Then, the n flow rules are calculated according to the TCAM storage yield P. i Sort from largest to smallest. Finally, select the rank j and flow rule f in descending order of rank. j Its rule dependency set S j The set of flow rules {f} with a quantity less than rj}∪S j The matching field of each rule is stored in the TCAM stream table, and the content field is stored in the DRAM stream table, until the TCAM stream table is full. The matching field of the remaining stream rules is stored in the SRAM stream table, and the content field is stored in the DRAM stream table.

[0050] c. SDN Virtual Flow Table Timeout Scan Process

[0051] like Figure 8 The diagram shows the SDN virtual flow table timeout scanning flowchart of this patent. Due to the limited capacity of the SDN virtual flow table, to make reasonable use of the flow table space and prevent flow table overflow, expired flows in the flow table need to be cleared in a timely manner. First, the number of masks is obtained. Then, the tuples corresponding to each mask are traversed sequentially, the timestamp information in the flow table entry is read, and the difference between the current system time and the flow table entry's timestamp is compared with the timeout interval. If the timeout interval is exceeded, it means that the flow table entry and its corresponding cache entry in the acceleration cache need to be deleted. This operation is similar to the deletion process.

[0052] d. Accelerate the cache insertion process

[0053] Figure 9 The insertion flowchart of this patent is described. When a cache lookup fails, but the probe mask succeeds (i.e., a flow table entry is found in the flow table), it is determined whether the flow table entry has entered an active state, i.e., whether the arrival time interval between the current data packet and the most recent data packet of the flow is less than a certain threshold PIT. If it is less, the flow table entry enters an active state, and the flow needs to be stored in the cache. The specific process is as follows: First, obtain the flow identifier fid, the corresponding flow table entry index value addr, and the access timestamp information time of the flow rule to be inserted into the cache. Then, generate a flow signature sign using the flow identifier fid, and hash the flow identifier fid to find the corresponding bucket and adjacent hash buckets of the directly mapped position. If there are empty slots or idle flows in these three hash buckets, the active exact flow is directly inserted, and the offset is recorded. When none of the above conditions are met, a bucket is randomly selected from the adjacent buckets above and below. If there is an offset flow in the bucket with the opposite kicking direction, the offset flow is kicked back to its directly mapped position. Otherwise, the flow with an offset of 0 is kicked to the adjacent bucket away from the direction of the directly mapped bucket of the inserted flow. Repeat the above operation until an empty slot, an idle flow, or the number of kicks reaches the threshold is found.

[0054] Compared with existing technologies, this invention designs a network traffic-aware SDN virtual flow table lookup acceleration method. This method first caches active precise flows to accelerate the SDN virtual flow table lookup process, and then designs an efficient collision resolution hash algorithm for the accelerated cache. This algorithm combines adjacent hops and same-direction kick operations to provide as many cache locations as possible for each active precise flow, making full use of the cache space and thus improving the cache hit rate. Furthermore, it dynamically adjusts the packet interval for determining active precise flows based on network traffic fluctuations, ensuring that the number of active precise flows matches the cache capacity, guaranteeing that the cache always stores highly active precise flows in the network, thereby maintaining the highest possible cache hit rate. For cache failure scenarios, a dynamic mask sorting algorithm is optimized by comprehensively considering tuple access frequency and load factor, significantly reducing the average tuple space search overhead and effectively improving the SDN virtual flow table lookup acceleration effect.

[0055] The basic principles, main features, and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are merely illustrative of the principles of the present invention. Various changes and modifications may be made to the present invention without departing from the spirit and scope of the present invention. Such changes and modifications are intended to fall within the scope of the present invention. The scope of protection claimed in the present invention is defined by the appended claims and their equivalents.

Claims

1. A network traffic-aware SDN virtual flow table lookup acceleration method, which first caches active and precise flows to accelerate the SDN virtual flow table lookup process, and then designs an efficient hash algorithm for conflict resolution for accelerated caching. The algorithm combines adjacent hops and same-direction kick operations to provide cache locations for each active and precise flow as much as possible, so that the cache space is fully utilized, thereby improving the cache hit rate; further, according to the fluctuation of network traffic, the packet interval reaching threshold for determining active and precise flows is dynamically adjusted to make the number of active and precise flows match the cache capacity, ensuring that the cache always stores the precise flows with high activity in the network, thereby maintaining the highest possible cache hit rate; for cache failure situations, the dynamic mask sorting algorithm is optimized by comprehensively considering the access frequency and load factor of the tuple, significantly reducing the average tuple space search overhead, and effectively improving the SDN virtual flow table lookup acceleration effect.

2. The SDN virtual flow table lookup acceleration method according to claim 1, It is characterized in that According to the change in the number of active precise flows, the packet arrival interval threshold used to determine the active precise flows is dynamically adjusted to match the cache capacity with the number of active precise flows, so as to always store the precise flows with high activity in the network, thereby stably maintaining a high cache hit rate. When the number of active precise flows in the network surges, the cache capacity is limited and only some of the active precise flows can be stored, resulting in a decrease in the hit rate. At this time, it is necessary to reduce the packet arrival interval threshold to cache the most active precise flows and improve the cache hit rate; when the active precise flows decrease, the packet arrival interval threshold should be increased to cache more active precise flows to keep the acceleration cache at high utilization and hit rate.

3. The SDN virtual flow table lookup acceleration method according to claim 1, It is characterized in that The present invention proposes a hash algorithm for efficiently resolving conflicts, which provides three candidate positions for each active precise flow, namely a direct mapping position and its two adjacent positions; when these three positions are full, vacant positions are made for newly arrived active precise flows through a same-direction kick operation, thereby making full use of the cache space; further, the packet arrival interval threshold for determining the active precise flow is dynamically adjusted to match the number of active precise flows with its capacity, so that the cache can adaptively store precise flows with higher activity, thereby increasing the cache hit rate as much as possible, thereby achieving a good virtual flow table lookup acceleration effect.

4. The SDN virtual flow table lookup acceleration method according to claim 1, It is characterized in that Storing the active accurate stream into the acceleration cache further includes: First, extract the key field to generate the flow identifier fid, and generate the flow signature sign, and then search the acceleration cache; if the cache search is successful, the corresponding flow table item can be quickly located through the index addr in the matched cache item; the timestamp time records the most recent access time of the cache item, which is used for regular cache timeout scanning and cache replacement when a new flow is inserted; if the difference between the current time and the timestamp time exceeds the set threshold, the cache item is reset; the offset records the actual storage location of the cache flow and the offset of the hash mapping location (+1, 0, -1), an offset of 0 indicates that the cache flow is stored in its direct mapping location, and an offset of +1 or -1 indicates that the actual storage location of the cache flow is offset by one position up or down respectively; The acceleration cache provides three candidate locations for each inserted stream, namely the direct mapping location and its upper and lower adjacent locations, and the offsets correspond to 0, +1, and -1 respectively. When inserting an active precise stream, the direct mapping location is obtained by hashing the stream identifier, and then the direct mapping bucket and the adjacent hash bucket are located. If there are vacancies or idle streams in these three hash buckets, the active precise stream is directly inserted and the offset is recorded. When none of the above conditions are met, a bucket is randomly selected from the upper and lower adjacent buckets. If there is an offset flow in the bucket that is opposite to the kicking direction, the offset flow is kicked back to its direct mapping position; otherwise, the flow with an offset of 0 is kicked to the adjacent bucket away from the direction of the direct mapping bucket of the insertion flow; the above operation is repeated until an empty position, an idle flow is found, or the number of kicks reaches the threshold.

5. The SDN virtual flow table lookup acceleration method according to claim 1, It is characterized in that A dynamic mask sorting method for accelerating tuple space search is proposed. This method sets a dynamic weight for each mask to record the recent access frequency of the corresponding tuple in real time and sorts it from high to low, so that most data packets hit the tuple as early as possible, and only a small number of data packets need to traverse more tuples. Whenever a data packet arrives, the dynamic weight of the corresponding tuple is appropriately increased to prompt the corresponding mask to move forward, thereby effectively reducing the number of mask detections of subsequent data packets of the tuple. For each tuple, the single increment of the dynamic weight should be negatively correlated with its search cost, so that tuples with large search costs are moved forward cautiously, while tuples with small search costs are moved forward quickly. Considering that the search cost of a tuple is almost linearly related to its load factor, the dynamic weight increment of a tuple can be set to the inverse of its load factor. By optimizing the design of its dynamic weight in combination with the access frequency and load factor of the tuple, and dynamically sorting the corresponding mask according to it, the average tuple space search cost of cache invalid data packets is significantly reduced.

6. The SDN virtual flow table lookup acceleration method according to claim 1, It is characterized in that The SDN virtual flow table lookup acceleration algorithm specifically includes the following steps: When the SDN virtual switch receives a data packet in the network, it first parses and extracts its header information to obtain the flow identifier fid, and then uses the flow identifier to search the acceleration cache; if the acceleration cache search is successful, the flow table entry index value corresponding to the data packet can be obtained; According to the index value of the flow table entry, the matching field in the flow table entry is read to further check whether the flow identifier is consistent with the matching field; if they are consistent, it means that the cache prediction is successful and the data packet will be forwarded according to the action set in the flow table entry; After the packet is forwarded, the relevant content field information (such as counters and timestamps) in the flow table entry needs to be updated, and the timestamp information in the successfully matched cache entry needs to be updated to facilitate subsequent timeout scanning and cache replacement; If the cache prediction fails, the mask array needs to be probed in sequence to obtain the matching flow table entry, and then the data packet is forwarded and processed, and the relevant information of the flow table entry is updated.

7. The SDN virtual flow table lookup acceleration method according to claim 1, It is characterized in that SDN virtual flow table timeout scan, specific The following steps are involved: First, get the number of masks; Then, traverse the tuples corresponding to each mask in turn, read the timestamp information in the flow table entry, and compare the difference between the system current time and the flow table entry timestamp with the timeout interval; If the timeout interval is exceeded, it means that the flow table entry and its corresponding cache entry in the acceleration cache need to be deleted.