CN116074247B - Hardware flow table aging method, software flow table aging method, device and electronic equipment - Google Patents

Hardware flow table aging method, software flow table aging method, device and electronic equipment Download PDF

Info

Publication number
CN116074247B
CN116074247B CN202310205465.XA CN202310205465A CN116074247B CN 116074247 B CN116074247 B CN 116074247B CN 202310205465 A CN202310205465 A CN 202310205465A CN 116074247 B CN116074247 B CN 116074247B
Authority
CN
China
Prior art keywords
flow table
hit
aging
current period
identification bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310205465.XA
Other languages
Chinese (zh)
Other versions
CN116074247A (en
Inventor
李盼
李易
吴绍华
刘珂
邹明
卢士鹏
文旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202310205465.XA priority Critical patent/CN116074247B/en
Publication of CN116074247A publication Critical patent/CN116074247A/en
Application granted granted Critical
Publication of CN116074247B publication Critical patent/CN116074247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a hardware flow table aging method, a software flow table aging method, a device and electronic equipment, belonging to the technical field of intelligent network cards, comprising the following steps: periodically recording hit records of a plurality of stream tables, and generating hit tables of the stream tables; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not; transmitting the hit table in the current period to driving software of the intelligent network card so as to drive the driving software to determine a target flow table to be aged; and deleting the target flow table in response to the received aging instruction. The hit records of a plurality of flow tables can be obtained by carrying out few interactions between the driving software and the hardware equipment, so that the aging judgment of each flow table is carried out, the interaction times between the driving software and the hardware equipment are reduced, the time consumption of the generated interactions is reduced, and the efficiency is improved.

Description

Hardware flow table aging method, software flow table aging method, device and electronic equipment
Technical Field
The present invention relates to the field of intelligent network cards, and in particular, to a hardware flow table aging method, a software flow table aging method, a device and an electronic apparatus.
Background
The hardware device and the driving software of the intelligent network card have flow tables, and when the data packet fails to match the flow tables in the hardware device, the data packet is uploaded to the driving software to generate new flow table rules. When the connection is not free or the connection is disconnected, the flow table which is not used for a long time needs to be deleted in an aging mode to release the space of the hardware device.
Current flow table aging is mainly achieved in two ways:
first, the flow table to be aged is calculated by the hardware device to determine, and the aging operation is performed by the driver software. Secondly, the hardware equipment records the service condition of the flow table, and the driving software and the hardware equipment interactively acquire the service condition of the flow table and then calculate the service condition to determine whether the flow table needs to be aged or not. Under the method, the driving software can only acquire the service condition of one flow table every time when interacting with the hardware equipment.
The current flow table aging has higher requirements on the complexity of the hardware equipment, and the judgment of the aging of each flow table by the driving software is interacted with the hardware equipment once, so that the interaction times are more and the time consumption is longer.
Disclosure of Invention
In view of the above, the present invention aims to provide a hardware flow table aging method, a software flow table aging method, a device and an electronic apparatus, so as to solve the problems of more interaction times and longer time consumption between driving software and hardware equipment during current flow table aging.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a hardware flow table aging method is applied to hardware equipment of an intelligent network card, and comprises the following steps:
periodically recording hit records of a plurality of stream tables in the hardware equipment, and generating hit tables of the stream tables based on the hit records; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not;
transmitting the hit table generated in the current period to the driving software of the intelligent network card so as to drive the driving software to determine a target flow table to be aged;
and deleting the target flow table in response to the aging instruction sent by the driving software.
Further, after the hit table generated in the current period is sent to the driving software of the intelligent network card, the method further includes:
performing target processing on the hit table generated in the current period to record hit conditions of a plurality of stream tables in the next period; wherein the target processing includes deletion of a hit table in the current period, or initialization of an identification bit in a hit table in the current period.
Further, the identification bit is a bit.
Further, the periodically recording hit records of a plurality of stream tables in the hardware device includes:
in the current period, sequentially recording the hit condition of each flow table, and writing the hit condition of each flow table into a corresponding identification bit of the hit table in the current period so that the value of the identification bit represents the hit condition of the flow table;
the driving software for sending the hit table generated in the current period to the intelligent network card comprises the following steps:
in the current period, every interval preset time, transmitting a current hit table to driving software of the intelligent network card;
or alternatively, the first and second heat exchangers may be,
after the writing of each identification bit in the hit table in the current period is completed, segmenting a plurality of identification bits in the hit table in the current period according to a preset length, and transmitting a plurality of identification bit segments obtained by segmentation to driving software of the intelligent network card;
wherein each of said identification bit segments comprises at least one of said identification bits.
Compared with the prior art, the hardware flow table aging method has the following advantages:
according to the invention, hit records of a plurality of stream tables are recorded periodically, and hit tables of the stream tables are generated; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not; transmitting the hit table in the current period to driving software of the intelligent network card so as to drive the driving software to determine a target flow table to be aged; and deleting the target flow table in response to the aging instruction sent by the driving software.
Because the hardware device records hit tables of a plurality of flow tables and sends the hit tables to the driving software, the driving software and the hardware device can acquire hit records of the plurality of flow tables by carrying out few interactions, so that the aging judgment of each flow table is carried out, the interaction times between the driving software and the hardware device are greatly reduced, the time consumption of the generated interactions is greatly reduced, and the efficiency is improved.
The invention further aims to provide a software flow table aging method, which aims to solve the problems that the number of interactions between driving software and hardware equipment is more and the time is longer when the current flow table is aged.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a software flow table aging method is applied to driving software of an intelligent network card, and comprises the following steps:
receiving a hit table in the current period sent by hardware equipment of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table hits or not;
determining a target flow table to be aged based on the values of a plurality of the identification bits of the hit table in the current period;
and sending an aging instruction to the hardware equipment of the intelligent network card, wherein the aging instruction is used for indicating the hardware equipment to age the target flow table.
Further, the method further comprises:
adding the target flow table to an aging list, wherein the aging list is used for storing the serial numbers of flow tables to be aged in the driving software;
and deleting the target flow table in the driving software.
Further, the method further comprises:
and updating the flow table associated with the target flow table.
Further, the determining the target flow table to be aged based on the values of the plurality of identification bits of the hit table in the current period includes:
determining a flow table corresponding to the identification bit with a second preset value as a candidate flow table, and determining the last use time of the candidate flow table;
and determining the target flow table based on the difference value between the last use time and the current time of the candidate flow table.
Further, the last use time of each of the flow tables is determined by including:
updating the last use time of the flow table under the condition that the value of the corresponding identification bit of the flow table is a first preset value;
under the condition that the value of the corresponding identification bit of the flow table is the second preset value, the last use time of the last update of the flow table is taken as the last use time;
Wherein the first preset value is different from the second preset value.
Further, the updating the last usage time of the flow table includes:
inquiring the receiving moment when the hit table of the flow table is received;
and updating the last use time of the flow table to the receiving moment.
Further, the determining the target flow table based on the difference between the last usage time and the current time of the candidate flow table includes:
and determining the candidate flow table with the difference exceeding an aging threshold as the target flow table.
The software flow table aging method has the same advantages as the hardware flow table aging method compared with the prior art, and is not described in detail herein.
The invention further aims to provide a hardware flow table aging device, so that the problems of more interaction times and longer time consumption of driving software and hardware equipment in the current flow table aging process are solved.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a hardware flow table aging device is applied to hardware equipment of an intelligent network card, and comprises:
the generation module is used for periodically recording hit records of a plurality of stream tables and generating hit tables of the stream tables; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not;
The hit table sending module is used for sending the hit table in the current period to the driving software of the intelligent network card so as to drive the driving software to determine a target flow table to be aged;
and the deleting module is used for deleting the target flow table in response to the aging instruction sent by the driving software.
The hardware flow table aging device has the same advantages as the hardware flow table aging method in comparison with the prior art, and is not described in detail herein.
The invention further aims to provide a software flow table aging device, which is used for solving the problems of more interaction times and longer time consumption of driving software and hardware equipment during current flow table aging.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a software flow table aging device is applied to driving software of an intelligent network card, and comprises:
the receiving module is used for receiving a hit table in the current period sent by the hardware equipment of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table hits or not;
the determining module is used for determining a target flow table to be aged based on the values of a plurality of identification bits of the hit table in the current period;
The instruction sending module is used for sending an aging instruction to the hardware equipment of the intelligent network card, wherein the aging instruction is used for indicating the hardware equipment to age the target flow table.
The software flow table aging device has the same advantages as the hardware flow table aging method in comparison with the prior art, and is not described in detail herein.
The invention further aims to provide electronic equipment, so that the problems of more interaction times and longer time consumption of driving software and hardware equipment when the current flow table is aged are solved.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
an electronic device, comprising:
a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the hardware flow table aging method of any one of the above or the software flow table aging method of any one of the above when executing the program.
The electronic device and the hardware flow table aging method have the same advantages as those of the prior art, and are not described in detail herein.
Another objective of the present invention is to provide a computer readable storage medium, so as to solve the problems of more interaction times and longer time consumption between the driving software and the hardware device when the current flow table is aged.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
a computer-readable storage medium, comprising:
the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the hardware flow table aging method of any one of the above, or to perform the software flow table aging method of any one of the above.
The computer readable storage medium has the same advantages as the hardware flow table aging method described above with respect to the prior art, and will not be described in detail herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention. In the drawings:
FIG. 1 is a flow chart showing the steps of a hardware flow table aging method according to a first embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary flow of a hardware device generation command table for the intelligent network card of the present invention;
FIG. 3 is a flowchart showing steps of a software flow table aging method according to a second embodiment of the present invention;
FIG. 4 is a flowchart showing the steps of determining a target flow table to be aged according to a software flow table aging method according to still another embodiment of the present invention;
FIG. 5 is a flowchart of an exemplary method for aging a software flow table according to another embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a hardware flow table aging device according to a third embodiment of the present invention;
fig. 7 shows a schematic structural diagram of a software flow table aging device according to a fourth embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that the embodiments of the present invention and the features of the embodiments may be combined with each other without collision.
The intelligent network card, also called intelligent network adapter, provides network data transmission function and also provides built-in programmable and configurable hardware acceleration engine. Data that passes through the same network at the same time during the data transmission process and has some common feature or attribute may be referred to as a stream. The set of policy entries for one or more particular flows is referred to as a flow table, which is responsible for the lookup and forwarding of data packets.
The hardware device and the driving software in the intelligent network card store a plurality of flow tables, during the data transmission process, the data packet is firstly matched with the flow tables in the hardware device, and under the condition that the matching is successful, the action corresponding to the matched flow tables is executed (for example, the data packet is forwarded to a specific path). In case of a failure of the match, the hardware device sends the packet to an Open Virtual Switch (OVS) standard of the driver software to generate a new flow table rule.
The open network communication protocol (OpenFlow) is a new type of network communication protocol applied to communication between a controller and a repeater in a software defined network architecture. A core idea of the software-defined network is "forwarding and control separation", and to implement the forwarding and control separation, a communication interface standard needs to be established between the controller and the repeater, so as to allow the controller to directly access and control the forwarding plane of the repeater. The open network communication protocol (OpenFlow) protocol architecture is composed of a controller, a switch and a secure channel, wherein the controller deploys a corresponding flow table on a repeater through an interface, and the repeater guides the forwarding of a data packet through the flow table, so that the control of a forwarding plane is realized.
The Open virtual switch standard (OVS) refers to a virtual switch supporting multi-layer data forwarding, and is applicable to an Open network communication protocol (OpenFlow).
Under the condition that the connection is invalid, idle or disconnected, the flow table of the intelligent network card hardware equipment needs to be deleted in an aging mode so as to release space.
The ageing mode of the flow table in the prior art mainly comprises the following two modes:
firstly, the hardware equipment counts and calculates the service condition of the flow table, adds the flow table to an aging queue after determining the flow table to be aged, then sends the aging queue to the driving software, and the driving software executes aging operation.
In the method, the aging judgment of the flow table is completed through the hardware equipment, so that the operation required by time and period is required, and the complexity of the hardware equipment is increased.
Secondly, the hardware equipment counts the service conditions of the flow tables, the driving software periodically acquires the message statistics of each flow table from the hardware to judge whether the message hits or not, and then the aging operation is executed after the flow table to be aged is determined by operation.
In this way, the driver software can only acquire the usage of one flow table at a time by interacting with the hardware, so how many flow tables on the hardware device need to interact with the hardware device for a corresponding number of times. And the aging process needs to periodically judge whether all the flow tables need aging or not, so that the number of interactions with hardware is more, and the time consumption is longer.
Therefore, the embodiment of the invention provides a flow table aging method which is simple in hardware implementation and small in interaction times, so that the flow table aging efficiency is improved.
Example 1
Referring to fig. 1, fig. 1 shows a flowchart of steps of a hardware flow table aging method according to a first embodiment of the present invention, where the method is applied to a hardware device of an intelligent network card, as described in fig. 1, and includes:
step S101: periodically recording hit records of a plurality of stream tables in the hardware equipment, and generating hit tables of the stream tables based on the hit records; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not.
In the embodiment of the invention, the hardware equipment of the intelligent network card periodically records the hit records of each flow table, and generates and stores the hit table of each flow table. The hardware device stores the hit table under the fixed path, and updates the corresponding identification bit of the stored hit table when the hit record of each stream table in the current period is generated.
The standard that the hardware device judges whether each flow table is hit is: whether the flow table matches the data packet in the period is considered to be hit as long as the flow table matches the data packet.
The hit table includes hit information on whether each stream table is hit or not, and does not include hit count information.
It can be appreciated that the number of hits in the flow table is greater than or equal to one in one cycle and is recorded as hit; the number of hits in the flow table is zero in one cycle and is recorded as a miss.
In an alternative embodiment, the identification bits are bits.
After the hardware device of the intelligent network card records the hit record of each flow table, a bit table can be generated, wherein the bit table comprises a plurality of bits, each bit corresponds to one flow table, and the value of each bit represents whether the corresponding flow table is hit or not.
The bit is the smallest unit of data within the current computer system. One data structure in which specific data is stored by an array of bits may be referred to as a bit table. The hit table in this application may be regarded as a kind of bit table.
Wherein the value of each identification bit, i.e. a bit, in the hit is typically 0 or 1. Wherein a value of 0 indicates that the corresponding stream table is not hit, and a value of 1 indicates that the corresponding stream table is hit.
When the hardware equipment records hit records of each flow table in the current period, if the hit times of the flow table is more than or equal to one time, the value of the corresponding bit is recorded as 1 in the hit table; and if the hit number of the stream table is zero, the value of the corresponding bit is recorded as 0 in the hit table.
In an alternative embodiment, the time length of one of the periods is on the order of microseconds to milliseconds.
The intelligent network card records the hit record of each flow table, and the time length of one period is microsecond-millisecond level.
Referring to fig. 2, fig. 2 is a flowchart illustrating a table in a hardware device generation command of the intelligent network card according to the present invention, and as shown in fig. 2, when data transmission occurs in the intelligent network card, a data packet arrives at the hardware device and matches with a plurality of flow tables in the hardware device. After the data packet is matched with the stream table, the hardware device records the hit record of the stream table, generates a hit table and updates the value of the corresponding identification bit in the hit table.
For example, if the packet matches a certain flow table, the hardware device may record a hit in the form of a bit table, record the value of the bit corresponding to the flow table as 1, and record the values of the bits corresponding to other flow tables that are not matched as 0. And taking the bit table in which all the stream tables in the current period are recorded as a hit table in the current period.
Then step S102 is performed.
Step S102: and sending the hit table generated in the current period to the driving software of the intelligent network card so as to drive the driving software to determine a target flow table to be aged.
After the hardware device completes the record of each flow table hit record in one period, the generated hit table is sent to the driving software, and the driving software calculates based on the hit table to determine the target flow table to be aged. Wherein the target flow table is a missed flow table.
The hardware device records hit records of each stream table in the form of a bit table, divides a plurality of bits corresponding to a plurality of stream tables according to a group of N after completing recording in one period, obtains one or more bit tables, and sends the one or more bit tables to the driver software.
In one specific implementation, the hardware device sends the hit table to the data plane development kit module (Data Plane Development Kit, DPDK) of the driver software. The data plane development suite refers to a collection of libraries and drivers that are configured by the virtual switch to process messages quickly.
In one specific implementation, the hit table may be partitioned into groups of 8 bits.
After receiving the hit tables, the driving software calculates the difference value between the last use time and the current time of each flow table based on hit records of each flow table, determines the flow tables with the difference value exceeding the aging threshold, and takes the flow tables as target flow tables to be aged.
After the target flow table to be aged is determined, the driving software sends an aging instruction to the hardware equipment. The aging instruction is used for indicating the hardware equipment to age the target flow table to be aged, and the aging instruction at least comprises the number of the target flow table to be aged.
Then step S103 is performed.
Step S103: and deleting the target flow table in response to the aging instruction sent by the driving software.
After the hardware equipment receives the ageing instruction sent by the driving software, the serial number of the target flow table to be aged contained in the ageing instruction is obtained, the target flow table is called out based on the serial number, and the target flow table is deleted from the hardware equipment.
In an optional embodiment, after sending the hit table generated in the current period to the driving software of the intelligent network card, the hardware flow table aging method provided by the embodiment of the invention further includes:
performing target processing on the hit table generated in the current period to record hit conditions of a plurality of stream tables in the next period; wherein the target processing includes deletion of a hit table in the current period, or initialization of an identification bit in a hit table in the current period.
After the hardware device of the intelligent network card sends the hit table generated in the current period to the driving software, the hit table generated in the current period is subjected to target processing so as to record the next period.
When the target process is a deletion process, the hardware device may delete the hit table generated in the current period, generate a new hit table when recording in the next period, and write the hit condition of the corresponding stream table in the identification bit of the new hit table.
When the target process is an initialization process, the hardware device may initialize the identification bits of the hit table generated in the current period, that is, uniformly initialize the values of the identification bits in the hit table generated in the current period to be a target value, for example, 0, and keep the table of the hit table, and when the record of the next period is performed, rewrite the hit condition of the corresponding stream table in the identification bits of the hit table after the initialization.
In an alternative embodiment, the periodically recording hit records of a plurality of stream tables in the hardware device includes: in the current period, sequentially recording the hit condition of each flow table, and writing the hit condition of each flow table into a corresponding identification bit of the hit table in the current period so that the value of the identification bit represents the hit condition of the flow table;
The driving software for sending the hit table generated in the current period to the intelligent network card comprises the following steps:
in the current period, every interval preset time, transmitting a current hit table to driving software of the intelligent network card;
or alternatively, the first and second heat exchangers may be,
after the writing of each identification bit in the hit table in the current period is completed, segmenting a plurality of identification bits in the hit table in the current period according to a preset length, and transmitting a plurality of identification bit segments obtained by segmentation to driving software of the intelligent network card;
wherein each of said identification bit segments comprises at least one of said identification bits.
The hardware device of the intelligent network card is sent in segments when sending the hit table to the driver software.
Alternatively, the hardware device may take the step of sending the current hit table to the driver software at preset intervals in the current period when sending the hit table to the driver software.
In a specific implementation, the preset time may be less than a period, or may be equal to a period, which is set based on actual application requirements, and is not limited herein.
For example, the preset time is set to be m, and in the current period, the hardware device continues to write the hit table from the time point of starting to write the hit table to the time point m until reaching the time point m, and then sends a plurality of target identification bits written in the time point m to the driving software. Transmitting a plurality of target identification bits written from the time point m to the time point 2m to the driving software until the next time point 2 m; or, by the next time point 2m, the plurality of target identification bits written from the time point 0 to the time point 2m are sent to the driving software.
It is to be understood that the examples herein are for the purpose of better illustrating the embodiments and are not to be construed as the only limitation of the present invention.
Optionally, when sending the hit table to the driver software, the hardware device may segment a plurality of identification bits in the hit table in the current period according to a preset length after writing of each identification bit in the hit table in the current period is completed, and send the segments of the plurality of identification bits obtained by segmentation to the driver software of the intelligent network card.
The preset length may be set based on practical application requirements, and is not limited herein. In one embodiment, each identification bit segment includes at least one identification bit.
For example, after all the identification bits of the hit table in the current period are written into, that is, after all the hit condition records of the stream table in which the hit condition is required to be recorded are completed, the hardware device segments the hit table in which the record is completed according to the length of 2k identification bits as one segment, so as to obtain a plurality of hit table segments consisting of 2k identification bits, and then sequentially sends the hit table segments to the driving software, or sends the hit table segments to the driving software in batches.
According to the embodiment of the invention, hit records of a plurality of stream tables are recorded periodically, and hit tables of the stream tables are generated; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not; transmitting the hit table in the current period to driving software of the intelligent network card so that the driving software determines a target flow table to be aged; and deleting the target flow table in response to the aging instruction sent by the driving software.
Because the hardware device records hit tables of a plurality of flow tables and sends the hit tables to the driving software, the driving software and the hardware device can acquire hit records of the flow tables with little interaction times (the number of the hit tables is far smaller than that of the flow tables), so that ageing judgment of each flow table is carried out, and the interaction times and time consumption between the driving software and the hardware device are greatly reduced.
Example two
Referring to fig. 3, fig. 3 shows a step flow chart of a software flow table aging method according to a second embodiment of the present invention, where the method is applied to driving software of an intelligent network card, as shown in fig. 3, and includes:
step S301: receiving a hit table in the current period sent by hardware equipment of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table hits or not.
The driving software of the intelligent network card receives hit tables recorded in each flow table hit in the current period sent by the hardware equipment, and the ageing judgment of each flow table is carried out based on the hit tables.
In an alternative embodiment, the hit table may be in the form of a bit table.
The bit is the smallest unit of data within the current computer system. One data structure in which specific data is stored by an array of bits may be referred to as a bit table.
The value of a bit is typically 0 or 1.
A value of 0 for a bit indicates that the corresponding stream table is not hit and may need to be aged, and a value of 1 for a bit indicates that the corresponding stream table is hit and does not need to be aged.
In one specific implementation, the driver software receives the hit table sent by the hardware device through the data plane development suite module.
The data plane development suite module refers to a collection of libraries and drivers configured by the virtual switch for rapid processing of messages.
The data plane development suite module comprises an aging thread and an unloading thread, wherein the aging thread is used for receiving the hit table and performing aging judgment, and the unloading thread is used for deleting a target flow table to be aged in the driving software.
When receiving an hit table sent by hardware equipment, the driving software firstly drives an aging thread, and the aging thread polls a system and calls a corresponding interface to receive the hit table.
Step S302 is then performed.
Step S302: and determining a target flow table to be aged based on the values of a plurality of identification bits of the hit table in the current period.
After receiving the hit table, the driving software of the intelligent network card acquires the values of all the identification bits in the hit table, determines the target flow table, for example, determines the flow table corresponding to the identification bit value of 0 as the target flow table.
In other embodiments, the target flow table may also be determined from the flow table corresponding to the identification bit with a value of 1.
The last use time of the corresponding flow table can be updated based on the value of each identification bit, the difference value between the last use time of each flow table and the current time is calculated, and the flow table with the difference value exceeding the aging threshold value is determined as the target flow table to be aged.
It will be appreciated that the target flow table to be aged may be one or more.
In one implementation, after the aging thread determines the target flow table to be aged, the number of the target flow table may be sent to the offload thread to perform the aging operation.
Step S303 is then performed.
Step S303: sending an aging instruction to hardware equipment of the intelligent network card; the aging instruction is used for indicating the hardware equipment to age the target flow table.
After the driving software determines the target flow table to be aged, an aging instruction is sent to the hardware device, the aging instruction is used for indicating the hardware device to age the target flow table to be aged, and the aging instruction at least comprises the number of the target flow table to be aged.
In one implementation, an offload thread sends an aging instruction to a hardware device.
After the hardware equipment receives the aging instruction, the serial number of the target flow table to be aged contained in the aging instruction is obtained, and the target flow table is called out based on the serial number to be deleted.
Referring to fig. 4, fig. 4 is a flowchart showing a step of determining a target flow table to be aged according to a software flow table aging method according to still another embodiment of the present invention, as shown in fig. 4, including:
step S401: and determining a flow table corresponding to the identification bit with the second preset value as a candidate flow table, and determining the last use time of the candidate flow table.
In one specific implementation, the second preset value is 0.
After receiving hit tables of all flow tables in the current period, the driving software of the intelligent network card acquires a plurality of identification bits in the hit tables, and determines candidate flow tables based on the values of the corresponding identification bits. The candidate flow table refers to a candidate flow table to be subjected to aging judgment.
And determining the flow table with the value of the corresponding identification bit being 0 as a candidate flow table. If the value of the corresponding identification bit of the flow table is 0, the flow table is not hit in the current period, so that the aging judgment is needed.
Step S402 is then performed.
Step S402: and determining the target flow table based on the difference value between the last use time and the current time of the candidate flow table.
After the candidate flow tables are determined, the last use time of each candidate flow table is obtained, and the difference value between the last use time of each candidate flow table and the current time is calculated.
And determining the candidate flow table as a target flow table to be aged under the condition that the difference value between the last use time and the current time of the candidate flow table exceeds the aging threshold value.
And determining that the candidate flow table is not the target flow table under the condition that the difference value between the last use time and the current time of the candidate flow table does not exceed the aging threshold value.
By the difference between the last use time and the current time, some flow tables which are needed to be aged but still possibly needed can be operated for a period of time again so as to meet the forwarding and sending of the data packet, and some flow tables which are not needed can be aged.
In an alternative embodiment, the last time of use of each of said flow tables is determined by: updating the last use time of the flow table under the condition that the value of the corresponding identification bit of the flow table is a first preset value; under the condition that the value of the corresponding identification bit of the flow table is the second preset value, the last use time of the last update of the flow table is taken as the last use time; wherein the first preset value is different from the second preset value.
In one specific implementation, the first preset value may be 1 and the second preset value may be 0.
And under the condition that the value of the corresponding identification bit of the flow table is 1, the flow table is hit in the current period, and the last use time of the flow table is updated.
And under the condition that the value of the corresponding identification bit of the flow table is 0, indicating that the flow table is not hit in the current period, directly taking the last use time of the last update of the flow table as the last use time of the flow table so as to carry out aging judgment.
In an alternative embodiment, said updating the last usage time of said flow table comprises:
inquiring the receiving moment when the hit table of the flow table is received;
and updating the last use time of the flow table to the receiving moment.
And under the condition that the value of the identification bit corresponding to the flow table is a first preset value, the driving software updates the last use time of the target flow table.
The driver software first queries the reception time when the hit table of the stream table is received, and then updates the reception time to the last use time of the stream table. For example, when the received hit table contains the identification bit to which the stream table G is written, the stream table G is set to G, and the reception time s is recorded as the last use time of the stream table G.
In an alternative embodiment, the determining the target flow table based on a difference between a last usage time of the candidate flow table and a current time includes:
and determining the candidate flow table with the difference exceeding an aging threshold as the target flow table.
And determining the candidate flow table as a target flow table to be aged under the condition that the difference value between the last use time and the current time of the candidate flow table exceeds the aging threshold value. And aging the target flow table to be aged.
In an alternative embodiment, the flow table aging method further includes: adding a target flow table to an aging list, wherein the aging list is used for storing the serial numbers of flow tables to be aged in the driving software;
and deleting the target flow table in the driving software.
The hardware device and the driving software of the intelligent network card both store a plurality of flow tables.
It will be appreciated that the driver software may store not only the same flow table as the hardware device, but also a flow table not stored by the hardware device.
After the aging thread of the driving software determines the target flow table to be aged, the number of the target flow table is added to the aging list.
The aging list may store the number of one or more target flow tables to be aged.
The aging thread sends the aging list to the unloading thread, and the unloading thread calls out the target flow table to be aged contained in the aging list from all flow tables stored in the driving software and deletes the target flow table to be aged.
In an alternative embodiment, the flow table aging method further includes: and updating the flow table associated with the target flow table.
After deleting the target flow table to be aged in the software, the unloading thread of the driving software updates the flow table associated with the deleted target flow table.
The updating of the flow table associated with the deleted target flow table may be to release the association relationship with the target flow table, or may be to delete the content corresponding to the target flow table existing in the associated flow table.
The embodiment of the invention receives the hit list in the current period sent by the hardware equipment of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table hits or not; determining a target flow table to be aged based on the values of a plurality of the identification bits of the hit table in the current period; sending an aging instruction to hardware equipment of the intelligent network card; the aging instruction is used for indicating the hardware equipment to age the target flow table.
Because the driving software determines whether the target flow table hits or not through the value of the corresponding identification bit, the last use time of the target flow table is updated, and the target flow table to be aged is determined based on the difference value between the last use time and the current time, the driving software and the hardware equipment interact once to obtain the use condition of all flow tables, and further ageing judgment is made, and the interaction times of the driving software and the hardware equipment and the time consumption of the ageing judgment are greatly reduced.
The implementation flow of the flow table aging method of the present invention is specifically described below with an example:
referring to fig. 5, fig. 5 shows an exemplary flowchart of a software flow table aging method according to another embodiment of the present invention, as shown in fig. 5, when data transmission occurs to the intelligent network card, first, a data packet arrives at a hardware device to match with a flow table, the hardware device records hit records of each flow table, records the value of a bit corresponding to the flow table as 1 if the flow table is matched, and records the value of a bit corresponding to the flow table as 0 if the flow table is not matched.
After the hit records of all the stream tables in the current period are completed, a hit table is generated, wherein the hit table comprises a plurality of bits, and each bit corresponds to one stream table. And sends the hit table to the data plane development suite module of the driver software.
And after the driver software data plane development kit module receives the hit table, driving the aging thread.
The aging thread determines a last time of use for each flow table based on the values of the plurality of bits of the hit table within the current cycle.
Wherein, for the first flow table corresponding to the value of the identification bit being 1, updating the last use time of the first flow table; and regarding the second flow table corresponding to the value of the identification bit of 0, taking the last use time of the last update of the second flow table as the last use time of the second flow table.
And for the first flow table, the aging thread inquires the receiving time corresponding to the first flow table in the hit table received in the current period, and then updates the last use time of the first flow table to the receiving time.
And for the second flow table, the second flow table is a candidate flow table to be subjected to aging judgment, the last use time of the second flow table is inquired, and the difference value between the last use time of the second flow table and the current time is calculated.
In the case where the difference between the last use time of the second flow table and the current time exceeds the aging threshold, it is determined that the second flow table is a target flow table that needs to be aged, and the number of the target flow table is added to the aging list.
The burn-in thread then sends the burn-in list to the offload thread to cause the offload thread to perform the burn-in operation.
And the unloading thread sends an aging instruction to the hardware equipment, wherein the aging instruction is used for indicating the hardware equipment to age the target flow table to be aged.
And after the hardware equipment receives the aging instruction, deleting the target flow table to be aged.
And simultaneously, the unloading thread calls out the target flow table to be aged from all flow tables stored in the driving software, deletes the target flow table, and then updates the flow table associated with the deleted target flow table.
Example III
Referring to fig. 6, fig. 6 shows a schematic structural diagram of a hardware flow table aging device according to a third embodiment of the present invention, where the device is applied to a hardware device of an intelligent network card, and includes:
a generating module 601, configured to periodically record hit records of a plurality of flow tables, and generate hit tables of the flow tables; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table hits or not;
the hit table sending module 602 is configured to send the hit table in the current period to the driving software of the intelligent network card, so as to drive the driving software to determine a target flow table to be aged;
and the deleting module 603 is configured to delete the target flow table in response to an aging instruction sent by the driver software.
In an alternative embodiment, the deleting module 603 includes:
the target processing module is used for carrying out target processing on the hit table generated in the current period so as to record the hit conditions of a plurality of flow tables in the next period; wherein the target processing includes deletion of a hit table in the current period, or initialization of an identification bit in a hit table in the current period.
In an alternative embodiment, the generating module 601 includes:
and the writing module is used for sequentially recording the hit condition of each flow table in the current period, and writing the hit condition of each flow table into the corresponding identification bit of the hit table in the current period so that the value of the identification bit represents the hit condition of the flow table.
In an alternative embodiment, the hit table sending module 602 includes:
the first sending submodule is used for sending the current hit table to the driving software of the intelligent network card every interval preset time in the current period;
the second sending submodule is used for segmenting a plurality of identification bits in the hit table in the current period according to a preset length after the writing of the identification bits in the hit table in the current period is completed, and sending a plurality of identification bit segments obtained by segmentation to driving software of the intelligent network card; wherein each of said identification bit segments comprises at least one of said identification bits.
Example IV
Referring to fig. 7, fig. 7 shows a schematic structural diagram of a software flow table aging device according to a fourth embodiment of the present invention, where the device is applied to driving software of an intelligent network card, and includes:
a receiving module 701, configured to receive a hit table in a current period sent by a hardware device of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table hits or not;
a determining module 702, configured to determine a target flow table to be aged based on values of a plurality of the identification bits of the hit table in the current period;
the instruction sending module 703 is configured to send an aging instruction to a hardware device of the intelligent network card; the aging instruction is used for indicating the hardware equipment to age the target flow table.
In an alternative embodiment, the apparatus further comprises:
the adding module is used for adding the target flow table to an aging list, and the aging list is used for storing the serial numbers of the flow tables to be aged in the driving software;
the first deleting submodule is used for deleting the target flow table in the driving software;
In an alternative embodiment, the apparatus further comprises:
and the updating module is used for updating the flow table associated with the target flow table.
In an alternative embodiment, the determining module 702 includes
A first determining submodule, configured to determine a flow table corresponding to the value of the identification bit being a preset value as a candidate flow table, and determine a last use time of the candidate flow table;
a second determining sub-module, configured to determine the target flow table based on a difference between a last usage time of the candidate flow table and a current time;
in an alternative embodiment, the first determining sub-module comprises:
a first updating sub-module, configured to update a last usage time of the flow table when a value of the corresponding identification bit of the flow table is a first preset value;
the second updating sub-module is used for taking the last use time of the last update of the flow table as the last use time under the condition that the value of the corresponding identification bit of the flow table is a second preset value; wherein the first preset value is different from the second preset value.
In an alternative embodiment, the first update sub-module includes:
A query sub-module, configured to query a receiving time when a hit table of the flow table is received;
and the last use time updating sub-module is used for updating the last use time of the flow table to the receiving moment.
In an alternative embodiment, the second determining sub-module comprises:
and the target flow table determining submodule is used for determining the candidate flow table with the difference exceeding an aging threshold as the target flow table.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, including:
the device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the hardware flow table aging method in any one of the above embodiments or realizes the software flow table aging method in any one of the above embodiments when executing the program.
Based on the same inventive concept, an embodiment of the present invention also provides a computer-readable storage medium including: the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the hardware flow table aging method of any one of the above embodiments, or to perform the software flow table aging method of any one of the above embodiments.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.
For the purposes of simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will recognize that the present invention is not limited by the order of acts described, as some acts may, in accordance with the present invention, occur in other orders and concurrently. Further, those skilled in the art will recognize that the embodiments described in the specification are all of the preferred embodiments, and that the acts and components referred to are not necessarily required by the present invention.
The above description is provided for a hardware flow table aging method, a software flow table aging method, a device and an electronic apparatus, and specific examples are applied to describe the principles and embodiments of the present invention, and the description of the above examples is only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (15)

1. A hardware flow table aging method, characterized by being applied to a hardware device of an intelligent network card, the method comprising:
periodically recording hit records of a plurality of stream tables in the hardware equipment, and generating hit tables of the stream tables based on the hit records; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table is hit in the current period; when the hardware equipment generates a hit table in the current period, updating the corresponding identification bit of the hit table obtained in the previous period;
transmitting a hit table generated in a current period to driving software of the intelligent network card so as to drive the driving software to update the last use time of a corresponding flow table based on the value of each identification bit, and determining the flow table with the difference exceeding an aging threshold value as the target flow table to be aged according to the difference between the last use time of the flow table and the current time, so that the flow table which is not hit in the current period and the difference does not exceed the aging threshold value continues to work;
deleting the target flow table in response to an aging instruction sent by the driving software; wherein the aging instruction includes a number of the target flow table.
2. The method of claim 1, wherein after the sending the hit table generated in the current cycle to the driver software of the intelligent network card, the method further comprises:
performing target processing on the hit table generated in the current period to record hit conditions of a plurality of stream tables in the next period; wherein the target processing includes deletion of a hit table in the current period, or initialization of an identification bit in a hit table in the current period.
3. The method of claim 1, wherein the identification bits are bits.
4. The method of claim 1, wherein the periodically recording hit records for a plurality of flow tables in the hardware device comprises:
in the current period, sequentially recording the hit condition of each flow table, and writing the hit condition of each flow table into a corresponding identification bit of the hit table in the current period so that the value of the identification bit represents the hit condition of the flow table;
the driving software for sending the hit table generated in the current period to the intelligent network card comprises the following steps:
in the current period, every interval preset time, transmitting a current hit table to driving software of the intelligent network card;
Or alternatively, the first and second heat exchangers may be,
after the writing of each identification bit in the hit table in the current period is completed, segmenting a plurality of identification bits in the hit table in the current period according to a preset length, and transmitting a plurality of identification bit segments obtained by segmentation to driving software of the intelligent network card;
wherein each of said identification bit segments comprises at least one of said identification bits.
5. A software flow table aging method, characterized by being applied to driving software of an intelligent network card, the method comprising:
receiving a hit table in the current period sent by hardware equipment of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table is hit in the current period; when the hardware equipment generates a hit table in the current period, updating the corresponding identification bit of the hit table obtained in the previous period;
determining a target flow table to be aged based on values of a plurality of the identification bits of the hit table in the current period, including: updating the last use time of the corresponding flow table based on the value of each identification bit, and determining the flow table with the difference exceeding an aging threshold as the target flow table to be aged according to the difference between the last use time of the flow table and the current time, so that the flow table which is not hit in the current period and the difference does not exceed the aging threshold continues to work;
Sending an aging instruction to hardware equipment of the intelligent network card, wherein the aging instruction is used for instructing the hardware equipment to age the target flow table; wherein the aging instruction includes a number of the target flow table.
6. The method of claim 5, wherein the method further comprises:
adding the target flow table to an aging list, wherein the aging list is used for storing the serial numbers of flow tables to be aged in the driving software;
and deleting the target flow table in the driving software.
7. The method of claim 6, wherein the method further comprises:
and updating the flow table associated with the target flow table.
8. The method of claim 5, wherein the determining the target flow table to be aged based on the values of the plurality of the identification bits of the hit table in the current period comprises:
determining a flow table corresponding to the identification bit with a second preset value as a candidate flow table, and determining the last use time of the candidate flow table;
and determining the target flow table based on the difference value between the last use time and the current time of the candidate flow table.
9. The method of claim 8, wherein the last time of use of each of the flow tables is determined by comprising:
updating the last use time of the flow table under the condition that the value of the corresponding identification bit of the flow table is a first preset value;
under the condition that the value of the corresponding identification bit of the flow table is the second preset value, the last use time of the last update of the flow table is taken as the last use time;
wherein the first preset value is different from the second preset value.
10. The method of claim 9, wherein the updating the last usage time of the flow table comprises:
inquiring the receiving moment when the hit table of the flow table is received;
and updating the last use time of the flow table to the receiving moment.
11. The method of claim 8, wherein the determining the target flow table based on the difference between the last time of use of the candidate flow table and the current time comprises:
and determining the candidate flow table with the difference exceeding an aging threshold as the target flow table.
12. A hardware flow table aging device, characterized by being applied to a hardware device of an intelligent network card, the device comprising:
The generation module is used for periodically recording hit records of a plurality of stream tables and generating hit tables of the stream tables; the hit table comprises a plurality of identification bits, each identification bit corresponds to one flow table, and the value of each identification bit is used for representing whether the corresponding flow table is hit in the current period; when the hardware equipment generates a hit table in the current period, updating the corresponding identification bit of the hit table obtained in the previous period;
the hit table sending module is used for sending the hit table generated in the current period to the driving software of the intelligent network card so as to drive the driving software to update the last use time of the corresponding flow table based on the value of each identification bit, and determining the flow table with the difference exceeding the aging threshold value as the target flow table to be aged according to the difference between the last use time of the flow table and the current time, so that the flow table which is not hit in the current period and the difference does not exceed the aging threshold value continues to work;
the deleting module is used for deleting the target flow table in response to the aging instruction sent by the driving software; wherein the aging instruction includes a number of the target flow table.
13. A software flow table aging device, characterized by driver software applied to an intelligent network card, said device comprising:
the receiving module is used for receiving a hit table in the current period sent by the hardware equipment of the intelligent network card; the hit table comprises a plurality of identification bits, each identification bit corresponds to one stream table, and the value of each identification bit is used for representing whether the corresponding stream table is hit in the current period; when the hardware equipment generates a hit table in the current period, updating the corresponding identification bit of the hit table obtained in the previous period;
a determining module, configured to determine a target flow table to be aged based on values of a plurality of the identification bits of the hit table in the current period, including: updating the last use time of the corresponding flow table based on the value of each identification bit, and determining the flow table with the difference exceeding an aging threshold as the target flow table to be aged according to the difference between the last use time of the flow table and the current time, so that the flow table which is not hit in the current period and the difference does not exceed the aging threshold continues to work;
the instruction sending module is used for sending an aging instruction to the hardware equipment of the intelligent network card, wherein the aging instruction is used for indicating the hardware equipment to age the target flow table; wherein the aging instruction includes a number of the target flow table.
14. An electronic device, comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the hardware flow table burn-in method of any one of claims 1 to 4 or the software flow table burn-in method of any one of claims 5 to 11 when the program is executed.
15. A computer readable storage medium, characterized in that instructions in said storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the hardware flow table aging method of any one of claims 1 to 4, or to perform the software flow table aging method of any one of claims 5 to 11.
CN202310205465.XA 2023-03-06 2023-03-06 Hardware flow table aging method, software flow table aging method, device and electronic equipment Active CN116074247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310205465.XA CN116074247B (en) 2023-03-06 2023-03-06 Hardware flow table aging method, software flow table aging method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310205465.XA CN116074247B (en) 2023-03-06 2023-03-06 Hardware flow table aging method, software flow table aging method, device and electronic equipment

Publications (2)

Publication Number Publication Date
CN116074247A CN116074247A (en) 2023-05-05
CN116074247B true CN116074247B (en) 2023-06-23

Family

ID=86171630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310205465.XA Active CN116074247B (en) 2023-03-06 2023-03-06 Hardware flow table aging method, software flow table aging method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116074247B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116723162B (en) * 2023-08-10 2023-11-03 浪潮电子信息产业股份有限公司 Network first packet processing method, system, device, medium and heterogeneous equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005109592A (en) * 2003-09-29 2005-04-21 Nec Engineering Ltd Aging processing apparatus and aging processing method
CN109617779A (en) * 2018-12-19 2019-04-12 锐捷网络股份有限公司 Routing table maintenance method and device based on VTEP
CN112134806A (en) * 2020-09-30 2020-12-25 新华三大数据技术有限公司 Flow table aging time adjusting method and device and storage medium
CN114915587A (en) * 2022-05-10 2022-08-16 深圳星云智联科技有限公司 Flow table aging management method and related equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10263809B2 (en) * 2014-06-25 2019-04-16 Hewlett Packard Enterprise Development Lp Selecting an optimal network device for reporting flow table misses upon expiry of a flow in a software defined network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005109592A (en) * 2003-09-29 2005-04-21 Nec Engineering Ltd Aging processing apparatus and aging processing method
CN109617779A (en) * 2018-12-19 2019-04-12 锐捷网络股份有限公司 Routing table maintenance method and device based on VTEP
CN112134806A (en) * 2020-09-30 2020-12-25 新华三大数据技术有限公司 Flow table aging time adjusting method and device and storage medium
CN114915587A (en) * 2022-05-10 2022-08-16 深圳星云智联科技有限公司 Flow table aging management method and related equipment

Also Published As

Publication number Publication date
CN116074247A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US10305783B2 (en) Packet control method, switch, and controller
CN116074247B (en) Hardware flow table aging method, software flow table aging method, device and electronic equipment
US11616738B2 (en) Packet processing method and related device
US20060280194A1 (en) Apparatus and method for configuring buffer descriptor suitable for packet aggregation
US10523576B1 (en) High-performance garbage collection in a network device
CN101789905A (en) Method and equipment for preventing unknown multicast from attacking CPU (Central Processing Unit)
CN110113197A (en) The method and SDN controller of SDN controller Configuration network equipment
WO2014098114A1 (en) Packet processing device, flow entry arrangement method and program
US10999223B1 (en) Instantaneous garbage collection of network data units
CN107094085B (en) Signaling transmission method and device
EP2916503A1 (en) Queue scheduling method, apparatus and system
US6240065B1 (en) Bit clearing mechanism for an empty list
CN111770027B (en) Differentiated transmission method based on in-network cache
CN111522650A (en) Service request processing method and device of distributed system and electronic equipment
CN107070797B (en) Method and system for forwarding message
CN104737505A (en) Routing method based on cache and route node
US5913042A (en) Method and apparatus for managing packet memory
EP1780976A1 (en) Methods and system to offload data processing tasks
CN101572668A (en) Method for deleting MAC addresses and device therefor
CN113992609B (en) Method and system for processing multilink service data disorder
CN114884878A (en) MAC address synchronization method for multi-switch chip stacking in hardware learning mode
CN106878176B (en) message forwarding method and device
CN113518046A (en) Message forwarding method and frame type switching equipment
CN116185598A (en) Address processing method, address processing device, electronic equipment and readable storage medium
CN111556447A (en) Information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 100007 room 205-32, floor 2, building 2, No. 1 and No. 3, qinglonghutong a, Dongcheng District, Beijing

Patentee after: Tianyiyun Technology Co.,Ltd.

Address before: 100093 Floor 4, Block E, Xishan Yingfu Business Center, Haidian District, Beijing

Patentee before: Tianyiyun Technology Co.,Ltd.