CN111641530B - Method, device, terminal and storage medium for realizing accelerated forwarding - Google Patents
Method, device, terminal and storage medium for realizing accelerated forwarding Download PDFInfo
- Publication number
- CN111641530B CN111641530B CN202010268466.5A CN202010268466A CN111641530B CN 111641530 B CN111641530 B CN 111641530B CN 202010268466 A CN202010268466 A CN 202010268466A CN 111641530 B CN111641530 B CN 111641530B
- Authority
- CN
- China
- Prior art keywords
- tracking information
- connection tracking
- connection
- forwarding
- hardware
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/02—Capturing of monitoring data
- H04L43/026—Capturing of monitoring data using flow identification
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/18—Protocol analysers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/24—Traffic characterised by specific attributes, e.g. priority or QoS
- H04L47/2441—Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
Abstract
The invention discloses a method for realizing accelerated forwarding, which comprises the following steps: reading all connection tracking information; screening the connection tracking information according to a preset flow screening condition; determining the number of required connection tracking information according to a preset acceleration condition of the communication equipment; and selecting the screened connection tracking information according to the number of the connection tracking information, and filling the selected connection tracking information into hardware of the communication equipment. The embodiment of the invention also provides a device, a terminal and a storage medium for realizing accelerated forwarding, which can effectively solve the problems of the waste of accelerated resources and the waste of calculation resources during filling in the prior art.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for implementing accelerated forwarding.
Background
Currently, in order to forward data quickly and increase throughput, a communication device (e.g., a router) provides a function of accelerating packet forwarding by using hardware characteristics. Software is often required to assist in the coordination to achieve fast forwarding of the hardware. The prior art generally adopts one of the following schemes in software:
1. and modifying a native protocol stack of the Linux OS, and adding a large amount of private codes specially serving certain hardware chips into codes of the protocol stack so as to realize quick forwarding by matching with hardware. But this method has poor scalability.
2. The native protocol stack codes of the Linux OS are not modified greatly, the connection tracking information provided by a connection tracking mechanism of the Linux is directly utilized, and is filled into hardware immediately after no screening or rough screening, and the hardware is matched to realize quick forwarding. However, this method often causes waste of hardware acceleration resources, or when information is filled into hardware, a large amount of small-flow connection trace information that is frequently created and deleted exists each time one piece of trace connection information is read and judged. Once the current system connection trace information is too much, the trace connection information of small flow is frequently filled into hardware, which causes waste of computing resources and is easy to generate delay when forwarding the trace connection information of large flow at high speed.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a terminal, and a storage medium for implementing accelerated forwarding, which can effectively solve the problems of the prior art, such as the waste of accelerated resources and the waste of computing resources during filling.
An embodiment of the present invention provides a method for implementing accelerated forwarding, including:
reading all connection tracking information;
screening the connection tracking information according to a preset flow screening condition;
determining the number of required connection tracking information according to a preset acceleration condition of the communication equipment;
and selecting the screened connection tracking information according to the number of the connection tracking information, and filling the selected connection tracking information into hardware of the communication equipment.
As an improvement of the above scheme, the screening the tracking information according to a preset flow screening condition specifically includes:
and screening the connection tracking information according to the flow per second and the forwarding pressure of the connection tracking information.
As an improvement of the above scheme, the screening the connection trace information according to the flow per second and the forwarding pressure of the connection trace information specifically includes:
determining a first threshold value of flow per second according to the current communication equipment;
when the forwarding pressure does not exceed a preset pressure threshold, screening the connection tracking information of which the flow per second is greater than the first threshold;
and when the forwarding pressure exceeds a preset pressure threshold, correspondingly increasing the first threshold to a second threshold, and screening the connection tracking information of which the flow per second is greater than the second threshold.
As an improvement of the above solution, the determining the number of the required connection tracking information according to the preset acceleration condition of the communication device includes:
and determining the number of the required connection tracking information according to the computing power of a processor of the communication equipment, the time consumption when the connection tracking information is filled into hardware, the size of hardware acceleration resources and the current acceleration requirement.
As an improvement of the above solution, after the selecting the connection trace information after the screening according to the number of the connection trace information and filling the selected connection trace information into hardware of the communication device, the method further includes:
when the hardware needs to perform accelerated forwarding processing next time, judging whether new connection tracking information is read or not;
and in response to that no new connection tracking information is read, selecting connection tracking information from the rest screened connection tracking information according to the number of the connection tracking information and filling the connection tracking information into hardware of the communication equipment.
As an improvement of the above scheme, the reading all connection tracking information specifically includes:
reading all connection tracking information; wherein the connection tracking information comprises: source address, source port, destination address, destination port, and protocol number.
Another embodiment of the present invention provides a device for implementing accelerated forwarding, including:
and the reading module is used for reading all the connection tracking information.
And the flow screening module is used for screening the connection tracking information according to preset flow screening conditions.
And the number screening module is used for determining the number of the required connection tracking information according to the preset acceleration condition of the communication equipment.
And the processing module is used for selecting the screened connection tracking information according to the number of the connection tracking information and filling the selected connection tracking information into hardware of the communication equipment.
As an improvement of the above scheme, the apparatus further includes:
the judging module is used for judging whether a new connection exists in the current state when the hardware needs to carry out accelerated forwarding processing next time;
and the first response module is used for selecting connection tracking information from the rest screened connection tracking information according to the number of the connection tracking information and filling the connection tracking information into hardware of the communication equipment in response to that no new connection exists.
Another embodiment of the present invention provides an apparatus for implementing accelerated forwarding, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the method for implementing accelerated forwarding described in the above embodiment of the present invention when executing the computer program.
Another embodiment of the present invention provides a storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, a device in which the computer-readable storage medium is located is controlled to execute the method for implementing accelerated forwarding described in the foregoing embodiment of the present invention.
Compared with the prior art, the method, the device, the terminal and the storage medium for realizing accelerated forwarding disclosed by the embodiment of the invention have the advantages that all connection tracking information is read, the connection tracking information is screened according to the preset flow screening condition, the connection tracking information with proper flow is selected, the number of the required connection tracking information is determined according to the preset acceleration condition of the communication equipment, the tracking connection information with the number is selected from the screened tracking connection information and is filled into the hardware of the communication equipment, and the accelerated forwarding of the hardware is completed. From the above analysis, since all the connection trace information is acquired at one time and the connection trace information is screened through the traffic, the waste of acceleration resources is avoided, and the waste of calculation resources during filling is also avoided. And because the number of the required trace connection information is judged, the trace connection information with the required number and proper flow can be filled into hardware, thereby maximally utilizing the hardware acceleration function and not influencing the expansibility of a protocol stack.
Drawings
Fig. 1 is a flowchart illustrating a method for implementing accelerated forwarding according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for implementing accelerated forwarding according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for implementing accelerated forwarding according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flowchart of a method for implementing accelerated forwarding according to an embodiment of the present invention.
The embodiment of the invention provides a method for realizing accelerated forwarding, which comprises the following steps:
and S10, reading all connection tracking information. Wherein the connection tracking information comprises: source address, source port, destination address, destination port, and protocol number. The connection tracking information may further include: extension information, private information of each protocol.
It should be noted that, the connection tracking mechanism generates a new connection record (connectioncontrontrack) for the data packet passing through the network stack by Linux. Thereafter, all packets belonging to the connection are uniquely assigned to the connection and identify the status of the connection. Connection tracking is the basis of state detection of a firewall module and is also the premise for realizing SNAT and DNAT in address conversion. Hardware accelerated forwarding functionality requires software to assist in the implementation of the hardware. And the software reads the connection tracking information from the operating system, fills the information into the hardware according to the requirement of the hardware, and finishes the acceleration of the network flow. In the embodiment, all the connection tracking information is acquired, analyzed and screened at one time, and the tracking connection information does not need to be read, judged and refilled into hardware one by one, so that the waste of calculation resources during filling is avoided. And the problem that the connection trace information with large flow is filled into hardware after the connection trace information with small flow is avoided. In this embodiment, the communication device is described by taking a router as an example, and may be another communication device.
And S20, screening the connection tracking information according to a preset flow screening condition.
In a preferred embodiment, the screening the connection tracking information according to a preset traffic screening condition in step S20 specifically includes:
and screening the connection tracking information according to the flow per second and the forwarding pressure of the connection tracking information. It should be noted that the preset traffic screening condition may also be set according to the hardware configuration of the router itself.
In this embodiment, in the process of reading the connection trace information or after all the connection trace information is read, the connection trace information is screened (the screening may be performed by sorting the connection trace information according to the flow rate or by stacking, which is not limited herein), so that the connection trace information with a large flow rate is conveniently selected and filled into hardware, thereby avoiding waste of acceleration resources. And the problem of delay caused by the fact that the connection tracking information with small flow is accelerated first and the connection tracking information with large flow can be accelerated only after a long time is solved.
It can be understood that the connection trace information may be arranged according to the flow rate, or may be arranged from small to large, or may be arranged from large to small, or may be arranged after being screened, which may achieve the effect of facilitating the selection of the required connection trace information, and the arrangement order is not limited herein.
And S30, determining the number of required connection tracking information according to the preset acceleration condition of the communication equipment.
Specifically, since the number of required trace connection information is judged, the required number of trace connection information of appropriate traffic can be filled into hardware, thereby maximally utilizing a hardware acceleration function.
S40, selecting the screened connection tracking information according to the number of the connection tracking information, and filling the selected connection tracking information into hardware of the communication equipment.
Specifically, after the required connection trace information is screened (i.e., n connection trace information are screened), if the number of the required connection trace information is large (i.e., x connection trace information is required), if the flow rate is sorted from large to small, the first x connection trace information are selected and filled in the hardware.
In summary, since all the connection trace information is acquired at one time and the connection trace information is screened through the traffic, the waste of acceleration resources is avoided, and the waste of calculation resources during filling is also avoided. And because the number of the required trace connection information is judged, the trace connection information with the required number and proper flow can be filled into hardware, thereby maximally utilizing the hardware acceleration function and not influencing the expansibility of a protocol stack.
As an improvement of the above scheme, the screening the connection trace information according to the flow per second and the forwarding pressure of the connection trace information specifically includes:
a first threshold of traffic per second is determined based on the current communication device.
In this embodiment, the first threshold is set to 2M if the router is a gigabit router, and 500K if the router is a hundred mega router.
And when the forwarding pressure does not exceed a preset pressure threshold value, screening the connection tracking information of which the flow per second is greater than the first threshold value.
In the present embodiment, the preset pressure threshold is set according to the pressure condition of data forwarding, and is not limited herein. When the forwarding pressure does not exceed a preset pressure threshold (that is, the forwarding pressure at this time is considered to be not large), only screening is performed according to the first threshold, that is, the connection tracking information of the gigabit router with the flow rate per second greater than 2M is screened out. And the flow rate of hundreds of megaroads per second is greater than 500K and is screened out.
And when the forwarding pressure exceeds a preset pressure threshold, correspondingly increasing the first threshold to a second threshold, and screening the connection tracking information of which the flow per second is greater than the second threshold.
In this embodiment, when the forwarding pressure exceeds the preset pressure threshold, that is, the data forwarding pressure at this time may be considered to be larger, and at this time, the second threshold may be set to 4M, that is, connection trace information that can be dynamically adjusted to have a flow rate per second larger than 4M is screened out for the gigabit router.
As an improvement of the above solution, the determining the number of the required connection tracking information according to the preset acceleration condition of the communication device includes:
and determining the number of the required connection tracking information according to the computing power of a processor of the communication equipment, the time consumption when the connection tracking information is filled into hardware, the size of hardware acceleration resources and the current acceleration requirement. It should be noted that the number of connection trace information required may also be determined in combination with CPU consumption when filling the connection trace information into the hardware.
It should be noted that if the time consumption level of the padding is small, the number of connection trace information can be increased; otherwise, the number of connection trace information is reduced. If padding takes too much time while a larger number needs to be padded to the hardware, the speed of current data processing and forwarding is affected.
Specifically, the hardware acceleration resource size is the acceleration resource of the collocated hardware accelerator. Current acceleration requirements are related to user actions such as watching video, browsing web pages, playing games, listening to songs, etc. The number of connection trace information can be determined based on a large number of statistics and experience after acquiring the acceleration condition.
Illustratively, if the processor of the router a has multiple cores and a high main frequency, 10000 acceleration resources of the collocated hardware accelerator are provided, and the user frequently uses the speed measurement software to measure the speed for a very short time (such as several seconds). Then, the connection trace information screened each time can be set to 10, the connection trace information with the flow rate larger than 200K is screened, and then 10 connection trace information with the flow rate larger than 200K can be added to the hardware at one time, so as to complete acceleration.
In contrast, the processor of the router B is a single core and has a low dominant frequency, the number of acceleration resources of the collocated hardware accelerator is only 1000, and the user basically only watches video and does not have data needing burst large-flow forwarding. Then, the connection trace information screened each time may be set to 4, and the connection trace information with a flow rate greater than 500K is screened, so that only 4 connection trace information with a flow rate greater than 500K may be added to the hardware at a time to complete acceleration, it should be noted that, because the hardware resources are limited and the configuration is low, a stricter screening condition (that is, the flow rate is greater than 500K) needs to be set.
For example, if a user is playing a large amount of online games at the same time, downloading, listening to songs, refreshing web pages, etc. The connection tracking mechanism will instantly establish N pieces of connection tracking information. If only the n pieces of connection trace information corresponding to the network game have the largest flow, after traversing all the newly-created connection trace information, some pieces of the n pieces of connection trace information (depending on the screening number, if the screening number is greater than n, all) are preferably filled into hardware, and acceleration is completed. The method avoids randomly filling the connection tracking information (such as webpage refreshing) with small flow into the hardware randomly or according to the time sequence established by the connection tracking information, thereby delaying the acceleration of the online game with large flow by the hardware.
As an improvement of the above solution, after the selecting the connection tracing information after the screening according to the number of the connection tracing information, and filling the selected connection tracing information into hardware of a communication device, the method further includes:
and when the hardware needs to perform accelerated forwarding processing next time, judging whether new connection tracking information is read or not.
And in response to that no new connection tracking information is read, selecting connection tracking information from the rest screened connection tracking information according to the number of the connection tracking information and filling the connection tracking information into hardware of the communication equipment.
It should be noted that the new connection trace information is not read, and it can be understood that there is no new traffic demand, which is the same as the previous traffic demand. And if new connection tracking information is read, recalculating the number of the connection tracking information.
Illustratively, if there are ten pieces of connection trace information, the traffic ratios are 10,9 … and 2,1 in turn. Then the connection trace information with a traffic of 10 is most worth populating the hardware. If the number of current settings is limited to 2, then only two connection trace messages of 10 and 9 are populated into the hardware, completing the acceleration. And when the next processing is carried out, if no new connection tracking information is established and the old connection tracking information maintains the original flow, the connection tracking information with the flow of 8 and 7 is filled into hardware when the next processing is carried out, and the acceleration is completed.
Fig. 2 is a schematic structural diagram of an apparatus for implementing accelerated forwarding according to an embodiment of the present invention.
Another embodiment of the present invention provides a device for implementing accelerated forwarding, including:
and a reading module 10 for reading all the connection tracking information.
And the traffic screening module 20 is configured to screen the connection tracking information according to a preset traffic screening condition.
The number screening module 30 is configured to determine the number of required connection tracking information according to a preset acceleration condition of the communication device.
And the processing module 40 is configured to select the screened connection trace information according to the number of the connection trace information, and fill the selected connection trace information into hardware of the communication device.
The embodiment of the invention also provides a device for realizing accelerated forwarding, and all the connection tracking information is acquired at one time and is screened through the flow, so that the waste of accelerated resources is avoided, and the waste of calculation resources during filling is avoided. And because the number of the required trace connection information is judged, the trace connection information with the required number and proper flow can be filled into hardware, thereby maximally utilizing the hardware acceleration function and not influencing the expansibility of a protocol stack.
As an improvement of the above scheme, the apparatus further includes:
the judging module is used for judging whether a new connection exists in the current state when the hardware needs to carry out accelerated forwarding processing next time;
and the first response module is used for selecting connection tracking information from the rest screened connection tracking information according to the number of the connection tracking information and filling the connection tracking information into hardware of the communication equipment in response to that no new connection exists.
As an improvement of the above solution, the traffic screening module 20 includes:
and the first screening module is used for screening the connection tracking information according to the flow per second and the forwarding pressure of the connection tracking information.
As an improvement of the above scheme, the first screening module includes:
the determining module is used for determining a first threshold value of the flow per second according to the current communication equipment.
And the second screening module is used for screening the connection tracking information of which the flow per second is greater than the first threshold when the forwarding pressure does not exceed a preset pressure threshold.
And the third screening module is used for correspondingly increasing the first threshold value to a second threshold value when the forwarding pressure exceeds a preset pressure threshold value, and screening the connection tracking information of which the flow per second is greater than the second threshold value.
As an improvement of the above scheme, the number screening module 30 includes:
and the fourth screening module is used for determining the number of the required connection tracking information according to the computing power of the processor of the communication equipment, the time consumption when the connection tracking information is filled into the hardware, the size of hardware acceleration resources and the current acceleration requirement.
Fig. 3 is a schematic diagram of an apparatus for implementing accelerated forwarding according to an embodiment of the present invention. The device for realizing the accelerated forwarding of the embodiment comprises: a processor, a memory, and a computer program stored in the memory and executable on the processor. The processor implements the steps in the above-described method embodiments for implementing expedited forwarding when executing the computer program. Alternatively, the processor implements the functions of the modules/units in the above device embodiments when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the device for realizing accelerated forwarding.
The device for realizing accelerated forwarding can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing devices. The device for realizing the accelerated forwarding can comprise, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a device implementing accelerated forwarding and does not constitute a limitation on a device implementing accelerated forwarding, and may include more or fewer components than those shown, or combine some components, or different components, for example, the device implementing accelerated forwarding may also include input output devices, network access devices, buses, etc.
The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is a control center of the device for implementing accelerated forwarding, and various interfaces and lines are used for connecting various parts of the whole device for implementing accelerated forwarding.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the apparatus for accelerated forwarding by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card (FlashCard), at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
Wherein, the device integrated module/unit for realizing the accelerated forwarding can be stored in a computer readable storage medium if being realized in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a Read-only memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, etc.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (8)
1. A method for implementing accelerated forwarding, comprising:
reading all connection tracking information;
screening the connection tracking information according to a preset flow screening condition;
determining the number of required connection tracking information according to a preset communication equipment acceleration condition;
selecting the screened connection tracking information according to the number of the connection tracking information, and filling the selected connection tracking information into hardware of communication equipment;
wherein, after selecting the screened connection trace information according to the number of the connection trace information and filling the selected connection trace information into hardware of the communication device, the method further comprises:
when the hardware needs to perform accelerated forwarding processing next time, judging whether new connection tracking information is read or not;
and in response to that no new connection tracking information is read, selecting connection tracking information from the rest screened connection tracking information according to the number of the connection tracking information and filling the connection tracking information into hardware of the communication equipment.
2. The method according to claim 1, wherein the screening the connection tracking information according to a preset traffic screening condition specifically includes:
and screening the connection tracking information according to the flow per second and the forwarding pressure of the connection tracking information.
3. The method according to claim 2, wherein the filtering the connection trace information according to the flow per second and the forwarding pressure of the connection trace information specifically includes:
determining a first threshold value of flow per second according to the current communication equipment;
when the forwarding pressure does not exceed a preset pressure threshold, screening the connection tracking information of which the flow per second is greater than the first threshold;
and when the forwarding pressure exceeds a preset pressure threshold, correspondingly increasing the first threshold to a second threshold, and screening the connection tracking information of which the flow per second is greater than the second threshold.
4. The method for implementing expedited forwarding according to claim 1, wherein the determining the number of connection tracking information needed based on the predetermined communications device acceleration condition includes:
and determining the number of the required connection tracking information according to the computing power of a processor of the communication equipment, the time consumption when the connection tracking information is filled into hardware, the size of hardware acceleration resources and the current acceleration requirement.
5. The method for implementing expedited forwarding according to claim 1, wherein reading all connection tracking information comprises:
reading all connection tracking information; wherein the connection tracking information comprises: source address, source port, destination address, destination port, and protocol number.
6. An apparatus for implementing accelerated forwarding, comprising:
the reading module is used for reading all the connection tracking information;
the flow screening module is used for screening the connection tracking information according to preset flow screening conditions;
the number screening module is used for determining the number of the required connection tracking information according to the preset acceleration condition of the communication equipment;
the processing module is used for selecting the screened connection tracking information according to the number of the connection tracking information and filling the selected connection tracking information into hardware of the communication equipment;
the judging module is used for judging whether a new connection exists in the current state when the hardware needs to carry out accelerated forwarding processing next time;
and the first response module is used for selecting connection tracking information from the rest screened connection tracking information according to the number of the connection tracking information and filling the connection tracking information into hardware of the communication equipment in response to the fact that no new connection exists.
7. An apparatus for implementing accelerated forwarding, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is configured to be executed by the processor, and the processor implements the method for implementing accelerated forwarding according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein when the computer program is executed by an apparatus, the apparatus implements the method for implementing accelerated forwarding according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010268466.5A CN111641530B (en) | 2020-04-08 | 2020-04-08 | Method, device, terminal and storage medium for realizing accelerated forwarding |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010268466.5A CN111641530B (en) | 2020-04-08 | 2020-04-08 | Method, device, terminal and storage medium for realizing accelerated forwarding |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111641530A CN111641530A (en) | 2020-09-08 |
CN111641530B true CN111641530B (en) | 2022-11-11 |
Family
ID=72330606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010268466.5A Active CN111641530B (en) | 2020-04-08 | 2020-04-08 | Method, device, terminal and storage medium for realizing accelerated forwarding |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111641530B (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6937560B2 (en) * | 2001-05-22 | 2005-08-30 | Comtech Ef Data, Inc. | Method and apparatus for selectively accelerating network communications |
US7594002B1 (en) * | 2003-02-14 | 2009-09-22 | Istor Networks, Inc. | Hardware-accelerated high availability integrated networked storage system |
EP1871046B1 (en) * | 2006-06-19 | 2010-09-15 | PacketFront Systems AB | Hyper-cube flow forwarding in packet networks |
CN102946347B (en) * | 2012-12-07 | 2015-07-01 | 烽火通信科技股份有限公司 | Method and device for accelerating to process local data packet by using Linux system |
CN107196776A (en) * | 2016-03-14 | 2017-09-22 | 中兴通讯股份有限公司 | A kind of method and apparatus of message forwarding |
CN109639488B (en) * | 2018-12-18 | 2020-02-28 | 无锡华云数据技术服务有限公司 | Multi-extranet shunt acceleration method and system |
-
2020
- 2020-04-08 CN CN202010268466.5A patent/CN111641530B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111641530A (en) | 2020-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11206209B2 (en) | Method for link aggregation and related products | |
CN108075934B (en) | Network quality monitoring method, device and system | |
CN108306832B (en) | Network traffic shunting method and device | |
KR101528367B1 (en) | Sound control system and method as the same | |
CN108023829B (en) | Message processing method and device, storage medium and electronic equipment | |
WO2020177383A1 (en) | Data stream processing method and related device | |
US20190306065A1 (en) | Distribution of network traffic to software defined network based probes | |
CN113132257B (en) | Message processing method and device | |
CN113179295B (en) | Message processing method and device | |
CN107896196B (en) | Method and device for distributing messages | |
US20150163131A1 (en) | Online application testing of grown application capacity | |
CN111641530B (en) | Method, device, terminal and storage medium for realizing accelerated forwarding | |
CN103685062A (en) | Cache management method and device | |
CN107277640A (en) | Interactive approach, device and storage medium based on live platform | |
CN109327392B (en) | Path selection method and device in multi-path transmission | |
CN107124353B (en) | Message processing method and device, computer device and storage medium | |
CN114979236A (en) | Data transmission method, data transmission device, storage medium and electronic equipment | |
US9774515B2 (en) | Router and resource assignment method thereof | |
CN109768897B (en) | Server deployment method and device | |
WO2017088382A1 (en) | Data processing method and device | |
CN110445578B (en) | SPI data transmission method and device | |
CN110572330A (en) | method, device and medium for realizing compatibility of forwarding acceleration function and protocol stack function | |
CN106230748A (en) | A kind of packet sending, receiving method and equipment | |
CN111479140A (en) | Data acquisition method, data acquisition device, computer device and storage medium | |
CN115348231B (en) | Message processing method, device, server side and storage medium |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20221027 Address after: 201700 floor 5, No. 1 and 5, Lane 168, Xumin Road, Qingpu District, Shanghai Applicant after: Shanghai LianHong Technology Co.,Ltd. Address before: 518000 the 1st and 3rd floors of the south section of building 24 and the 1st-4th floor of the north section of building 28, Shennan Road Science and Technology Park, Nanshan District, Shenzhen City, Guangdong Province Applicant before: TP-LINK TECHNOLOGIES Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |