Flow table deletion method and device and related equipment
By evaluating the heat score of the flow table in the smart network card hardware module and deleting the flow table when the score is lower than the preset value, the problem of poor flow table deletion effect in the existing technology is solved, and the accuracy and efficiency of deletion are improved.
Patent Information
- Application Number
- CN202410995072.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-10-01
AI Technical Summary
When deleting flow tables, it is easy to accidentally delete flow tables with high frequency of use in the existing technology, resulting in poor deletion effect.
By obtaining the heat score of the target flow table in the smart network card hardware module, deletion is only performed when the heat score is less than the preset score, thereby reducing the occurrence of accidental deletion.
It improves the accuracy and effect of flow table deletion, ensures that frequently used flow tables are not accidentally deleted, and enhances the storage efficiency of hardware modules.
Smart Images

Figure CN118740767A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of cloud computing technology, and in particular to a flow table deletion method, device, and related equipment. Background Art
[0002] With the continuous development of cloud computing technology, virtual switches can offload flow tables to the hardware module of the smart network card, and then high-speed forwarding of network data will be realized in the hardware module based on the above flow tables. However, due to the large number of flow tables stored in the hardware module and the limited storage space of the hardware module, some flow tables usually need to be deleted. Currently, flow tables with a storage time longer than a certain time are usually deleted directly, which easily leads to the accidental deletion of some frequently used flow tables. It can be seen that the current flow table deletion effect is poor. Summary of the invention
[0003] The embodiments of the present invention provide a flow table deletion method, apparatus and related equipment to solve the problem that the current flow table deletion effect is poor.
[0004] To solve the above problems, the present invention is achieved as follows:
[0005] In a first aspect, an embodiment of the present invention provides a flow table deletion method, including:
[0006] Acquire a target flow table in a hardware module included in the smart network card, wherein the target flow table includes logic information for the hardware module to forward a network data packet;
[0007] Obtaining a heat score of the target flow table, where the heat score is used to indicate a usage of the target flow table;
[0008] When the heat score is less than a preset score, the target flow table is deleted.
[0009] In a second aspect, an embodiment of the present invention provides a flow table deletion device, including:
[0010] A first acquisition module, configured to acquire a target flow table in a hardware module included in the smart network card, wherein the target flow table includes logical information for the hardware module to forward a network data packet;
[0011] A second acquisition module is used to acquire a heat score of the target flow table, where the heat score is used to indicate the usage of the target flow table;
[0012] The deleting module is used to delete the target flow table when the heat score is less than a preset score.
[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps in the method described in the first aspect above.
[0014] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein the program, when executed by a processor, implements the steps in the method described in the first aspect.
[0015] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising computer instructions, which, when executed by a processor, implement the steps in the method described in the first aspect above.
[0016] In an embodiment of the present invention, a target flow table in a hardware module included in an intelligent network card is obtained, wherein the target flow table includes logical information of the hardware module forwarding network data packets; a heat score of the target flow table is obtained, wherein the heat score is used to indicate the usage of the target flow table; and when the heat score is less than a preset score, the target flow table is deleted. In this way, whether the corresponding target flow table needs to be deleted can be evaluated based on the heat score, and the target flow table is deleted only when the heat score is less than the preset score, thereby reducing the occurrence of the phenomenon that some flow tables with higher usage frequencies are mistakenly deleted, thereby enhancing the deletion effect of the target flow table. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0018] Figure 1 is a schematic diagram of the structure of a smart network card applicable to an embodiment of the present invention;
[0019] Figure 2 is a flow chart of a flow table deletion method provided by an embodiment of the present invention;
[0020] Figure 3 is a schematic diagram of the structure of a target flow table provided by an embodiment of the present invention;
[0021] Figure 4 It is a structural schematic diagram of a flow table deletion device provided in an embodiment of the present invention;
[0022] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, which represents 7 situations including single A, single B, single C, and A and B all exist, B and C all exist, A and C all exist, and A, B and C all exist.
[0025] See also Figure 1 , Figure 1 is a structural diagram of a smart network card applicable to an embodiment of the present invention, such as Figure 1 As shown, it includes a hardware module 11 and a virtual switch 12. The hardware module 11 and the virtual switch 12 can communicate with each other.
[0026] It should be noted that in the related art, when the virtual switch receives a network data packet for the first time, it will unload the network data packet and the flow table corresponding to the network data packet into the hardware module, and when the virtual switch is started, a flow table aging time will be set by default, and all flow tables will use this time for aging. That is, in the process of the hardware module forwarding the network data packet, the hardware module will synchronize the state of the hit flow table (that is, when the hardware module forwards the subsequent network data packet corresponding to the above network data packet, it will use the above flow table, and the use of the above flow table is called a hit) to the virtual switch in real time through the internal interface. The virtual machine switch will continuously calculate the hit time and current time of each flow table to obtain a time difference. If this time difference is greater than the preset aging time, the virtual switch will issue a command to delete the corresponding flow table in the hardware module.
[0027] After the hardware module deletes the flow table, if the virtual switch receives the above network data packet again, it needs to re-use the first packet sending mechanism (need to parse the above network data packet), and the virtual switch needs to unload the flow table to the hardware again. Since the first packet sending mechanism takes a slow path, it will bring huge time overhead, which not only affects the forwarding performance of the smart network card, but also brings a bad user experience to tenants.
[0028] Therefore, the following embodiment is provided, that is, the flow table deletion method provided by the embodiment of the present invention is described below.
[0029] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a flow table deletion method provided by an embodiment of the present invention. Figure 2 As shown, the flow table deletion method may include the following steps:
[0030] Step 201: Acquire a target flow table in a hardware module included in the intelligent network card, wherein the target flow table includes logical information for the hardware module to forward network data packets.
[0031] Among them, when the network data packet is transmitted to the smart network card for the first time, the target flow table can be transmitted to the smart network card along with the network data packet, and at this time the target flow table can be unloaded to the hardware module. When the network data packet is transmitted to the smart network card again, the hardware module can forward the network data packet according to the target flow table. In this way, the forwarding efficiency of the network data packet can be improved.
[0032] Among them, the target flow table includes the logical information of the hardware module forwarding the network data packet, which can be understood as: the target flow table can include at least one of the following information: the source network address, source network port, destination network address, destination network port, protocol type and other information of the hardware module forwarding the network data packet, and the above-mentioned source network address, source network port, destination network address, destination network port, and protocol type can be collectively referred to as network quintuple information.
[0033] It should be noted that the target flow table mainly includes the following fields, which can occupy 48 bytes. The specific composition diagram is as follows: Figure 3 As shown:
[0034] Hash: hash value, occupies 128 bits, calculated by using the message digest algorithm (Message-Digest Algorithm 5, MD5) based on the network quintuple information to ensure the uniqueness of the key and the consistency of the hash value generated by the same quintuple.
[0035] score: The heat score of the flow table (also called heat score), occupies 8 bits, and the score ranges from 1 to 100.
[0036] srcip: Source network IP address (also called source network address), occupies 32 bits, network quintuple information.
[0037] srcport: Source network port, occupies 16 bits, network quintuple information.
[0038] dstip: destination network IP address (also called destination network address), occupies 32 bits, network quintuple information.
[0039] dstport: destination network port, occupies 16 bits, network quintuple information.
[0040] proto: protocol type, occupies 8 bits, including TCP, UDP, etc. Network quintuple information.
[0041] hittime: time type, occupies 72 bits, the time of the most recent flow table match (that is, the time when the most recent flow table was obtained).
[0042] ofdcount: count, occupies 32 bits, counts the number of times the flow table is successfully unloaded along the slow path (that is, the number of times the flow table is unloaded to the hardware module again after being deleted).
[0043] status: aging status (also called aging status bit information), occupies 8 bits, records the aging status of the flow table, 0-aged, 1-not aged.
[0044] Step 202: Obtain a heat score of the target flow table, where the heat score is used to indicate a usage of the target flow table.
[0045] The time for determining the heat score is not limited here. Optionally, the heat score of the target flow table may be a score calculated in advance, or the heat score of the target flow table may be a score calculated in real time.
[0046] The usage of the target flow table may refer to the usage frequency or the number of times the target flow table is used. When the usage frequency or the number of times the target flow table is used is higher, the heat score is higher. When the usage frequency or the number of times the target flow table is used is lower, the heat score is lower.
[0047] Step 203: When the heat score is less than a preset score, delete the target flow table.
[0048] When there are multiple candidate flow tables stored in the hardware module, the heat score of each candidate flow table can be calculated, and the multiple candidate flow tables are sorted according to the heat score, and the target flow tables whose heat scores after sorting are less than the preset score are deleted.
[0049] In an embodiment of the present invention, through steps 201 to 203, it is possible to evaluate whether the corresponding target flow table needs to be deleted based on the heat score. The target flow table is deleted only when the heat score is less than the preset score, thereby reducing the occurrence of some frequently used flow tables being mistakenly deleted, thereby enhancing the deletion effect of the target flow table.
[0050] It should be noted that some flow tables with higher usage frequencies have higher heat scores, that is, some flow tables with higher usage frequencies have heat scores greater than or equal to the preset scores, while some flow tables with lower usage frequencies have heat scores less than the preset scores. Thus, compared with the method of setting an aging time for all flow tables in the related art and deleting the flow tables after the aging time is reached, this embodiment can improve the flexibility of deleting the target flow tables, that is, the target flow tables with higher usage frequencies can be screened out by the heat scores, and the target flow tables with higher usage frequencies can be retained in the hardware module for a long time.
[0051] The relevant technology can be seen in the following description: Each flow table that passes the first packet delivery mechanism and is successfully unloaded to the hardware is set with a key-value record (see Figure 3 As shown in the figure), the status of the flow table is set to 1 (not aged). The aged flow table information will still be saved in the ordered hash linked list structure, but the status will be set to 0 (aged). If the time difference calculated between the current time and hittime (the time when the flow table switches to the aged state) is greater than maxsavetime (the default is 1 hour, which is the preset duration), the key-value of this item will be completely deleted from the ordered hash linked list structure.
[0052] As an optional implementation manner, when the heat score is less than a preset score, deleting the target flow table includes:
[0053] In the case where the heat score is less than a preset score, determining aging state bit information in the target flow table;
[0054] When the duration between the target time and the current time is greater than the preset duration, the target flow table is deleted, and the target time is the time corresponding to the switching of the aging status bit information to the aged status information.
[0055] Among them, the aging status bit information may refer to the above-mentioned status information. When the status information is 0, it indicates that the aging status bit information of the target flow table is aged status information; when the status information is 1, it indicates that the aging status bit information of the target flow table is not aged status information.
[0056] In an implementation manner of the present invention, when the heat score is less than a preset score, it is necessary to determine whether the time between the moment when the aging status bit information of the target flow table is switched to the aged status information and the current moment is greater than the preset time. The target flow table is deleted only when the above time is greater than the preset time. In this way, the accuracy of the target flow table deletion result can be further improved, reducing the occurrence of the target flow table being accidentally deleted.
[0057] As an optional implementation, the smart network card further includes a virtual switch, the virtual switch is connected to the hardware module, and the method further includes:
[0058] When the duration between the target time and the current time is less than or equal to a preset duration, maintaining the target flow table stored in the hardware module;
[0059] In the case where the virtual switch unloads the target flow table to the hardware module again, the heat score of the target flow table is increased.
[0060] In the embodiment of the present invention, when the virtual switch unloads the target flow table to the hardware module again, it indicates that the target flow table is used frequently. At this time, the heat score of the target flow table needs to be increased to prevent the target flow table from being deleted by mistake.
[0061] As an optional implementation manner, obtaining the heat score of the target flow table includes:
[0062] Acquire a first parameter of the target flow table, the first parameter including at least one of the following: continuous use duration, use frequency, and the number of times that aging status bit information switches to aged status information;
[0063] A heat score of the target flow table is calculated according to the first parameter.
[0064] In an embodiment of the present invention, since the first parameter includes at least one of the following items: continuous usage time, usage frequency, and the number of times the aging status bit information switches to the aged status information, when the first parameter includes more content, the accuracy of the result of the heat score of the target flow table calculated according to the first parameter can be further improved.
[0065] As an optional implementation manner, the first parameter includes continuous use time, and the heat score of the target flow table is calculated according to the first parameter, including:
[0066] Detecting the continuous duration of the target flow table;
[0067] When the continuous duration exceeds N target durations, the heat score of the target flow table increases by N, where N is a positive integer.
[0068] Among them, when the continuous duration exceeds 1 target duration, the heat score of the target flow table increases by 1 point. When the continuous duration exceeds N target durations, the heat score of the target flow table increases by N points.
[0069] For example, for every 10 seconds the continuous duration exceeds, the heat score of the target flow table increases by 1 point.
[0070] In the implementation manner of the present invention, the heat score of the target flow table can be accurately determined by the continuous duration of the target flow table, that is, the accuracy of the heat score determination result is further improved.
[0071] The above implementation mode is described below with an example of a specific embodiment:
[0072] When a newly unloaded target flow table is first unloaded to the hardware module:
[0073] Step 1: Calculate the unique hash key and fill in the value based on the five-tuple information (which can be understood as the various information included in the target flow table, see Figure 3 ) structure content, the score of the target flow table is 1.
[0074] Step 2: The ofdcount status of the target flow table is set to 0, indicating that an unloading aging action has not been completed.
[0075] Step 3: The status of the target flow table is set to 1, indicating that the current flow table is in an unloaded state (ie, the target flow table is unloaded to the hardware module).
[0076] Step 4: The uninstalled flow table is judged according to the hit time (i.e., the duration of matching with subsequent network data packets when the target flow table is stored in the hardware module). When the target flow table survives for 10 consecutive seconds, the score increases by 1 point.
[0077] Step 5: When the target flow table is not updated every 10 seconds (i.e., it is not obtained to match the subsequent network data packets), the score is reduced by 1 point.
[0078] Step 6: The flow table with a score of 1 will be aged when the aging time specified by the tenant is reached.
[0079] Step 7: For the aged flow table ofdcount, add 1 based on the original setting.
[0080] Step 8: Status is set to 0, indicating that the flow table has aged, but the flow table information is still saved in LinkedHashMap for 1 hour.
[0081] It should be noted that the following is an example of an embodiment to illustrate the update method of the heat score when the target flow table is unloaded to the hardware module again:
[0082] Step 1: Use the five-tuple information to calculate the hash and find the corresponding item (i.e., the target flow table) in the ordered hash list.
[0083] Step 2: Use the value ofdcount of the target flow table as the score to update the score. The larger the value ofdcount is, the more frequently this flow table is enabled, so the higher the initial score is.
[0084] Step 3: Update and maintain the score based on the usage time of the flow table.
[0085] It should be noted that the embodiment of the present invention can score the usage popularity of each candidate flow table in real time, and the obtained popularity score is mapped to two dimensions of tenants' network usage: usage duration and usage frequency. The above scoring process does not require tenant participation. The smart network card can automatically learn the tenant's usage habits of flowing into or out of the network card network, and set a more reasonable aging plan for each candidate flow table. Combined with the characteristics of the ordered hash list structure, the time complexity of each update is O(n).
[0086] As an optional implementation, the target flow table is an ordered hash linked table flow table, and the hardware module stores multiple candidate flow tables, and the obtaining of the target flow table in the hardware module included in the smart network card includes:
[0087] Calculate a corresponding hash value according to a second parameter of each candidate flow table, where the second parameter is used to represent parameter information of the candidate flow table;
[0088] The candidate flow table whose hash value is the target hash value is determined as the target flow table.
[0089] The second parameter may include at least one of the following: source network address, source network port, destination network address, destination network port, and protocol type. When the second parameter includes the source network address, source network port, destination network address, destination network port, and protocol type, the second parameter may be referred to as network five-tuple information. That is, the second parameter may be understood as at least part of the information included in the target flow table.
[0090] In the implementation manner of the present invention, the corresponding hash value is calculated according to the second parameter of each candidate flow table, and then the target flow table is obtained by screening multiple candidate flow tables according to the hash value, so that the efficiency of screening the target flow table can be improved.
[0091] It should be noted that if a large number of flow tables are accumulated in the hardware module for a long time, it will not only lead to the risk of storage space resource exhaustion, but also reduce network forwarding performance. Therefore, the flow table will have a survival life cycle, also known as the flow table aging time.
[0092] In an embodiment of the present invention, based on the heat score of the flow table, the flow table with the lowest aging score can be prioritized and deleted from the hardware module. However, the aged flow table will still be stored in the ordered hash linked list structure, and the ofdcount and status contents will be updated. When the aged flow table is uninstalled again (i.e., uninstalled to the hardware module again), the initial score will be set according to ofdcount. The larger the value of ofdcount, the more frequently this flow table is enabled, and the higher the initial score (i.e., the heat score) will be. Ofdcount represents the frequency of use information of the flow table for a certain period of time (the default is one hour, and the certain period of time can be understood as within a preset time period). The more frequently used the flow table is, the higher the initial score for triggering the uninstallation again, and thus the higher its heat score.
[0093] See also Figure 4 , Figure 4 4 is a structural diagram of a flow table deletion device provided in an embodiment of the present invention. The flow table deletion device 400 includes:
[0094] A first acquisition module 401 is used to acquire a target flow table in a hardware module included in the smart network card, wherein the target flow table includes logical information of the hardware module forwarding a network data packet;
[0095] A second acquisition module 402 is used to acquire a heat score of the target flow table, where the heat score is used to indicate the usage of the target flow table;
[0096] The deleting module 403 is configured to delete the target flow table when the heat score is less than a preset score.
[0097] As an optional implementation, the deletion module includes:
[0098] A first determination submodule, configured to determine, when the heat score is less than a preset score, aging status bit information in the target flow table;
[0099] The deleting submodule is used to delete the target flow table when the duration between the target time and the current time is greater than a preset duration, and the target time is the time corresponding to the switching of the aging status bit information to the aged status information.
[0100] As an optional implementation manner, the smart network card further includes a virtual switch, the virtual switch is connected to the hardware module, and the flow table deletion device further includes:
[0101] A maintaining module, configured to maintain the target flow table stored in the hardware module when the duration between the target time and the current time is less than or equal to a preset duration;
[0102] The increasing module is used to increase the heat score of the target flow table when the virtual switch unloads the target flow table to the hardware module again.
[0103] As an optional implementation manner, the second acquisition module includes:
[0104] An acquisition submodule, configured to acquire a first parameter of the target flow table, wherein the first parameter includes at least one of the following: continuous use duration, use frequency, and the number of times the aging status bit information switches to the aged status information;
[0105] The first calculation submodule is used to calculate the heat score of the target flow table according to the first parameter.
[0106] As an optional implementation manner, the first parameter includes continuous use time, and the first calculation submodule includes:
[0107] A detection unit, used to detect the continuous duration of the target flow table;
[0108] The increasing unit is used to increase the heat score of the target flow table by N when the continuous duration exceeds N target durations, where N is a positive integer.
[0109] As an optional implementation, the target flow table is an ordered hash linked table flow table, and the hardware module stores multiple candidate flow tables, and the first acquisition module includes:
[0110] A second calculation submodule, used to calculate a corresponding hash value according to a second parameter of each candidate flow table, where the second parameter is used to represent parameter information of the candidate flow table;
[0111] The second determining submodule is configured to determine a candidate flow table whose hash value is a target hash value as the target flow table.
[0112] The flow table deletion device 400 can implement the embodiment of the present invention Figure 2 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0113] The embodiment of the present invention also provides an electronic device. Figure 5 , the electronic device may include a processor 501, a memory 502, and a program 5021 stored in the memory 502 and executable on the processor 501. When the program 5021 is executed by the processor 501, Figure 2Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated here.
[0114] A person skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware related to program instructions, and the program can be stored in a readable medium. The embodiment of the present invention also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 2 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be repeated here to avoid repetition.
[0115] The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0116] The embodiment of the present invention also provides a computer program product, including computer instructions, which can achieve the above-mentioned Figure 2 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be repeated here to avoid repetition.
[0117] The above is a preferred implementation of the embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A flow table deletion method, characterized in that: include: Acquire a target flow table in a hardware module included in the smart network card, wherein the target flow table includes logic information for the hardware module to forward a network data packet; Obtaining a heat score of the target flow table, where the heat score is used to indicate a usage of the target flow table; When the heat score is less than a preset score, the target flow table is deleted.
2. The method according to claim 1, characterized in that: When the heat score is less than a preset score, deleting the target flow table includes: In the case where the heat score is less than a preset score, determining aging state bit information in the target flow table; When the duration between the target time and the current time is greater than the preset duration, the target flow table is deleted, and the target time is the time corresponding to the switching of the aging status bit information to the aged status information.
3. The method according to claim 2, characterized in that The smart network card further includes a virtual switch, and the virtual switch is connected to the hardware module. The method further includes: When the duration between the target time and the current time is less than or equal to a preset duration, maintaining the target flow table stored in the hardware module; In the case where the virtual switch unloads the target flow table to the hardware module again, the heat score of the target flow table is increased.
4. The method according to any one of claims 1 to 3, characterized in that The obtaining the heat score of the target flow table includes: Acquire a first parameter of the target flow table, the first parameter including at least one of the following: continuous use duration, use frequency, and the number of times that aging status bit information switches to aged status information; A heat score of the target flow table is calculated according to the first parameter.
5. The method according to claim 4, characterized in that The first parameter includes the continuous use time, and the heat score of the target flow table is calculated according to the first parameter, including: Detecting the continuous duration of the target flow table; When the continuous duration exceeds N target durations, the heat score of the target flow table increases by N, where N is a positive integer.
6. The method according to any one of claims 1 to 3, characterized in that The target flow table is an ordered hash linked table flow table, and the hardware module stores a plurality of candidate flow tables. The step of obtaining the target flow table in the hardware module included in the smart network card includes: Calculate a corresponding hash value according to a second parameter of each candidate flow table, where the second parameter is used to represent parameter information of the candidate flow table; The candidate flow table whose hash value is the target hash value is determined as the target flow table.
7. A flow table deletion device, characterized in that: include: A first acquisition module, configured to acquire a target flow table in a hardware module included in the smart network card, wherein the target flow table includes logical information for the hardware module to forward a network data packet; A second acquisition module is used to acquire a heat score of the target flow table, where the heat score is used to indicate the usage of the target flow table; The deleting module is used to delete the target flow table when the heat score is less than a preset score.
8. An electronic device, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that the processor is used to read the program in the memory to implement the steps in the flow table deletion method as described in any one of claims 1 to 6.
9. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the flow table deleting method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the flow table deletion method according to any one of claims 1 to 6.
Citation Information
Cited By
Flow table information deletion method and device, equipment, storage medium and program product
CN119520391A
Method, device, equipment, storage medium and program product for deleting flow table information
CN119520391B
