CN113099490A - Data packet transmission method and system based on 5G communication - Google Patents
Data packet transmission method and system based on 5G communication Download PDFInfo
- Publication number
- CN113099490A CN113099490A CN202110254061.0A CN202110254061A CN113099490A CN 113099490 A CN113099490 A CN 113099490A CN 202110254061 A CN202110254061 A CN 202110254061A CN 113099490 A CN113099490 A CN 113099490A
- Authority
- CN
- China
- Prior art keywords
- data packet
- cache
- cpu
- network card
- communication
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data packet transmission method and a system based on 5G communication, wherein the method comprises the following steps: the network card equipment acquires a data packet from a network link; the network card equipment stores the acquired data packet into a cache; the CPU forwards and processes the data packet in the cache; the network card device reads the data packet which is forwarded and processed by the CPU in the cache; and the network card equipment sends out the data packet which is read from the cache and forwarded and processed by the CPU. The network card equipment is arranged to directly read and write data from the high-speed cache, so that the reading and writing of the memory in the receiving, forwarding and sending processes of the data packet are avoided, the data packet is temporarily stored by using the memory with large capacity when the high-speed cache is insufficient, the normal operation of the system under the complex condition is ensured, the delay time of the forwarding of the data packet is greatly reduced, and the overall forwarding capability of the system is improved.
Description
Technical Field
The present invention relates to the field of 5G communication technologies, and in particular, to a data packet transmission method and system based on 5G communication, and a computer-readable storage medium.
Background
The fifth Generation mobile communication technology (5th Generation mobile networks or 5th Generation with less systems, 5th-Generation, 5G or 5G technology for short) is the latest Generation cellular mobile communication technology, and is also an extension following 4G (LTE-A, WiMax), 3G (UMTS, LTE) and 2G (gsm) systems. The performance goals of 5G are high data rates, reduced latency, energy savings, reduced cost, increased system capacity, and large-scale device connectivity.
The forwarding of the 5G communication user plane refers to forwarding of data packets of the user plane of the 5G communication system, as shown in fig. 1, the forwarding process of the data packets includes the following steps:
step 1: the network card equipment receives a data packet from a network link;
step 2: the network card stores the data packet into the memory;
and step 3: copying the data packet in the memory into a high-speed cache so as to improve the speed of reading and writing the data packet by the CPU;
and 4, step 4: the CPU forwards and processes the data packet in the cache, wherein the forwarding process comprises the operations of reading and rewriting the data packet from the cache for many times;
and 5: writing the data packet in the cache back to the memory;
step 6: the network card equipment reads a data packet in the memory;
and 7: and the network card equipment sends out the data packet read in the memory.
The forwarding process of the data packet mainly comprises the transmission and processing of the data packet among the four devices of the network card equipment, the memory, the cache and the CPU, wherein the working speed of the memory is the lowest, so the time consumed by the steps 2, 3, 5 and 6 for transmitting the data packet from the memory is longer. Although the cache is introduced, the problem that the CPU repeatedly reads and writes the memory with lower working speed in the step 4 is avoided, each forwarded data packet still needs to be processed by the memory reading and writing device twice, the delay time of data packet forwarding is obviously prolonged, and the overall forwarding capability of the system is reduced.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a data packet transmission method and a data packet transmission system based on 5G communication, and aims to solve the problems that in the prior art, each forwarded data packet needs to be processed by a read-write memory device twice, the delay time of data packet forwarding is obviously prolonged, and the overall forwarding capability of the system is reduced.
In order to achieve the above object, the present invention provides a data packet transmission method based on 5G communication, where the data packet transmission method based on 5G communication includes the following steps:
the network card equipment acquires a data packet from a network link;
the network card equipment stores the acquired data packet into a cache;
the CPU forwards and processes the data packet in the cache;
the network card device reads the data packet which is forwarded and processed by the CPU in the cache;
and the network card equipment sends out the data packet which is read from the cache and forwarded and processed by the CPU.
Optionally, the data packet transmission method based on 5G communication includes:
and when the usage amount of the cache reaches an upper limit capacity value, the CPU stores the data packet in the cache into a memory for processing.
Optionally, the method for transmitting a data packet based on 5G communication, where the forwarding processing of the data packet in the cache by the CPU specifically includes:
the CPU reads and overwrites the packet from the cache a plurality of times.
Optionally, in the data packet transmission method based on 5G communication, the network card device stores the acquired data packet in a cache, so as to improve the speed of the CPU reading and writing the data packet.
In addition, to achieve the above object, the present invention further provides a data packet transmission system based on 5G communication, wherein the data packet transmission system based on 5G communication includes:
network card equipment, a cache and a CPU; the network card equipment, the cache and the CPU are connected in sequence;
the network card equipment is used for acquiring a data packet from a network link;
the network card device is used for storing the acquired data packet into the cache;
the CPU is used for forwarding and processing the data packet in the cache;
the network card device is used for reading the data packet which is forwarded and processed by the CPU in the cache;
and the network card equipment is used for sending the data packet which is read from the cache and forwarded and processed by the CPU.
Optionally, the data packet transmission system based on 5G communication further includes a memory, and the memory is connected to the cache.
Optionally, in the packet transmission system based on 5G communication, when the usage amount of the cache reaches an upper limit capacity value, the CPU stores the packet in the cache in the memory for processing.
Optionally, in the data packet transmission system based on 5G communication, the CPU is configured to read and rewrite the data packet from the cache multiple times.
Optionally, in the 5G communication-based data packet transmission system, the network card device stores the acquired data packet in a cache, so as to improve the speed of the CPU reading and writing the data packet.
In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a 5G communication-based packet transmission program, and the 5G communication-based packet transmission program, when executed by a processor, implements the steps of the 5G communication-based packet transmission method as described above.
The invention obtains a data packet from a network link through network card equipment; the network card equipment stores the acquired data packet into a cache; the CPU forwards and processes the data packet in the cache; the network card device reads the data packet which is forwarded and processed by the CPU in the cache; and the network card equipment sends out the data packet which is read from the cache and forwarded and processed by the CPU. The invention avoids reading and writing the memory in the receiving, forwarding and sending processes of the data packet by setting the network card device to directly read and write the data from the high-speed cache, simultaneously considers the characteristic that the capacity of the high-speed cache is limited due to the IC production process, and temporarily stores the data packet by using the memory with large capacity when the high-speed cache is insufficient due to the complex conditions of sudden overlarge flow and the like, thereby ensuring the normal operation of the system under the complex conditions, greatly reducing the delay time of the forwarding of the data packet and improving the overall forwarding capability of the system.
Drawings
Fig. 1 is a schematic diagram of packet forwarding in the user plane of a 5G communication system in the prior art;
FIG. 2 is a flow chart of a preferred embodiment of a method for transmitting data packets based on 5G communication according to the present invention;
fig. 3 is a schematic diagram of a packet transmission system based on 5G communication according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 2 and 3, the data packet transmission method based on 5G communication according to the preferred embodiment of the present invention includes the following steps:
step S10, the network card device acquires a data packet from the network link;
step S20, the network card device stores the acquired data packet in a cache;
step S30, the CPU forwards and processes the data packet in the cache;
step S40, the network card device reads the data packet that has been forwarded and processed by the CPU in the cache;
and step S50, the network card device sends the data packet which is read from the cache and has been forwarded and processed by the CPU.
Specifically, the network card device receives a data packet from a network link, the network card device stores the data packet in the cache (so that the network card device stores the acquired data packet in the cache to increase the speed of reading and writing the data packet by the CPU), the CPU forwards and processes the data packet in the cache, the forwarding process includes multiple operations of reading and rewriting the data packet from the cache (that is, the CPU reads and rewrites the data packet from the cache multiple times), the network card device reads the data packet in the cache, the network card device sends the data packet read from the cache, a data packet forwarding method that needs not to be read and written by a memory device is not needed, and the time of memory read and write operations is prevented from being introduced into a forwarding time delay.
Further, when the usage amount of the cache reaches an upper limit capacity value, the CPU stores the packet in the cache in a memory for processing. Due to the limited cache capacity (currently, the cache capacity is usually not more than 64Mbyte), when the complex situation such as sudden over-large flow occurs, the cache shortage may occur when the step 20 is executed; at this point, the program will transfer the packet in the portion of the cache that is performing step 30 to memory for processing, so as to release the corresponding cache for receiving the packet in step 20.
The invention sets the network card device to directly read and write data from the high-speed cache, and avoids reading and writing the memory in the receiving, forwarding processing and sending processes of the data packet; meanwhile, the characteristic that the capacity of the cache is limited due to the IC production process is considered, and when the cache is insufficient due to the complex conditions of sudden overlarge flow and the like, the data packet is temporarily stored by using the memory with large capacity, so that the normal operation of the system under the complex conditions is ensured.
When the method provided by the invention operates under a stable condition, each forwarded data packet does not need to read and write the memory; even if the operation is considered under the complex condition of short time, the average time of reading and writing the memory is only 0.1 time for each forwarded data packet (including under the stable condition and under the complex condition), thereby greatly reducing the delay time of data packet forwarding and improving the overall forwarding capability of the system.
Further, as shown in fig. 3, based on the above data packet transmission method based on 5G communication, the present invention also provides a data packet transmission system based on 5G communication, where the data packet transmission system based on 5G communication includes:
network card equipment, a cache and a CPU; the network card equipment, the cache and the CPU are connected in sequence; the network card equipment is used for acquiring a data packet from a network link; the network card device is used for storing the acquired data packet into the cache; the CPU is used for forwarding and processing the data packet in the cache; the network card device is used for reading the data packet which is forwarded and processed by the CPU in the cache; and the network card equipment is used for sending the data packet which is read from the cache and forwarded and processed by the CPU.
Wherein the CPU is configured to read and rewrite the packet from the cache a plurality of times. And the network card equipment stores the acquired data packet into a high-speed cache and is used for improving the speed of reading and writing the data packet by the CPU.
Further, the data packet transmission system based on 5G communication also comprises a memory, and the memory is connected with the cache. And when the usage amount of the cache reaches an upper limit capacity value, the CPU stores the data packet in the cache into the memory for processing.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a 5G communication-based packet transmission program, and the 5G communication-based packet transmission program, when executed by a processor, implements the steps of the 5G communication-based packet transmission method as described above.
In summary, the present invention provides a data packet transmission method and system based on 5G communication, where the method includes: the network card equipment acquires a data packet from a network link; the network card equipment stores the acquired data packet into a cache; the CPU forwards and processes the data packet in the cache; the network card device reads the data packet which is forwarded and processed by the CPU in the cache; and the network card equipment sends out the data packet which is read from the cache and forwarded and processed by the CPU. The invention avoids reading and writing the memory in the receiving, forwarding and sending processes of the data packet by setting the network card device to directly read and write the data from the high-speed cache, simultaneously considers the characteristic that the capacity of the high-speed cache is limited due to the IC production process, and temporarily stores the data packet by using the memory with large capacity when the high-speed cache is insufficient due to the complex conditions of sudden overlarge flow and the like, thereby ensuring the normal operation of the system under the complex conditions, greatly reducing the delay time of the forwarding of the data packet and improving the overall forwarding capability of the system.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (10)
1. A data packet transmission method based on 5G communication is characterized in that the data packet transmission method based on 5G communication comprises the following steps:
the network card equipment acquires a data packet from a network link;
the network card equipment stores the acquired data packet into a cache;
the CPU forwards and processes the data packet in the cache;
the network card device reads the data packet which is forwarded and processed by the CPU in the cache;
and the network card equipment sends out the data packet which is read from the cache and forwarded and processed by the CPU.
2. The data packet transmission method based on 5G communication according to claim 1, wherein the data packet transmission method based on 5G communication further comprises:
and when the usage amount of the cache reaches an upper limit capacity value, the CPU stores the data packet in the cache into a memory for processing.
3. The data packet transmission method according to claim 1, wherein the forwarding processing of the data packet in the cache by the CPU specifically includes:
the CPU reads and overwrites the packet from the cache a plurality of times.
4. The data packet transmission method according to claim 1, wherein the network card device stores the acquired data packet in a cache for increasing the speed of the CPU reading and writing the data packet.
5. A data packet transmission system based on 5G communication is characterized in that the data packet transmission system based on 5G communication comprises:
network card equipment, a cache and a CPU; the network card equipment, the cache and the CPU are connected in sequence;
the network card equipment is used for acquiring a data packet from a network link;
the network card device is used for storing the acquired data packet into the cache;
the CPU is used for forwarding and processing the data packet in the cache;
the network card device is used for reading the data packet which is forwarded and processed by the CPU in the cache;
and the network card equipment is used for sending the data packet which is read from the cache and forwarded and processed by the CPU.
6. The 5G communication-based data packet transmission system according to claim 5, wherein the 5G communication-based data packet transmission system further comprises a memory, and the memory is connected with the cache.
7. The 5G communication-based data packet transmission system according to claim 6, wherein when the usage amount of the cache reaches an upper limit capacity value, the CPU stores the data packet in the cache into the memory for processing.
8. The 5G communication-based data packet transmission system according to claim 5, wherein the CPU is configured to read and rewrite the data packet from the cache a plurality of times.
9. The 5G communication-based data packet transmission system according to claim 5, wherein the network card device stores the acquired data packet in a cache for increasing the speed of the CPU reading and writing the data packet.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a 5G communication-based packet transmission program, and the 5G communication-based packet transmission program, when executed by a processor, implements the steps of the 5G communication-based packet transmission method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110254061.0A CN113099490B (en) | 2021-03-09 | 2021-03-09 | Data packet transmission method and system based on 5G communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110254061.0A CN113099490B (en) | 2021-03-09 | 2021-03-09 | Data packet transmission method and system based on 5G communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113099490A true CN113099490A (en) | 2021-07-09 |
CN113099490B CN113099490B (en) | 2023-03-21 |
Family
ID=76666570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110254061.0A Active CN113099490B (en) | 2021-03-09 | 2021-03-09 | Data packet transmission method and system based on 5G communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113099490B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174673A (en) * | 2022-06-29 | 2022-10-11 | 北京奕斯伟计算技术股份有限公司 | Data processing device with low-delay processor, data processing method and equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848795A (en) * | 2005-04-15 | 2006-10-18 | 上海艾泰科技有限公司 | Method for realizing large data packet quick retransmission in real-time communication system |
US20070073928A1 (en) * | 2005-09-26 | 2007-03-29 | John Bruno | High-speed input/output signaling mechanism using a polling CPU and cache coherency signaling |
CN102497322A (en) * | 2011-12-19 | 2012-06-13 | 曙光信息产业(北京)有限公司 | High-speed packet filtering device and method realized based on shunting network card and multi-core CPU (Central Processing Unit) |
CN104050091A (en) * | 2012-12-28 | 2014-09-17 | 华耀(中国)科技有限公司 | Network equipment based on NUMA (Non Uniform Memory Access) system and setting method thereof |
WO2018102968A1 (en) * | 2016-12-05 | 2018-06-14 | 华为技术有限公司 | Control method for data read/write command in nvme over fabric framework, device and system |
CN110896406A (en) * | 2018-09-13 | 2020-03-20 | 华为技术有限公司 | Data storage method and device and server |
CN112306693A (en) * | 2020-11-18 | 2021-02-02 | 支付宝(杭州)信息技术有限公司 | Data packet processing method and device |
-
2021
- 2021-03-09 CN CN202110254061.0A patent/CN113099490B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1848795A (en) * | 2005-04-15 | 2006-10-18 | 上海艾泰科技有限公司 | Method for realizing large data packet quick retransmission in real-time communication system |
US20070073928A1 (en) * | 2005-09-26 | 2007-03-29 | John Bruno | High-speed input/output signaling mechanism using a polling CPU and cache coherency signaling |
CN102497322A (en) * | 2011-12-19 | 2012-06-13 | 曙光信息产业(北京)有限公司 | High-speed packet filtering device and method realized based on shunting network card and multi-core CPU (Central Processing Unit) |
CN104050091A (en) * | 2012-12-28 | 2014-09-17 | 华耀(中国)科技有限公司 | Network equipment based on NUMA (Non Uniform Memory Access) system and setting method thereof |
WO2018102968A1 (en) * | 2016-12-05 | 2018-06-14 | 华为技术有限公司 | Control method for data read/write command in nvme over fabric framework, device and system |
CN110896406A (en) * | 2018-09-13 | 2020-03-20 | 华为技术有限公司 | Data storage method and device and server |
CN112306693A (en) * | 2020-11-18 | 2021-02-02 | 支付宝(杭州)信息技术有限公司 | Data packet processing method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174673A (en) * | 2022-06-29 | 2022-10-11 | 北京奕斯伟计算技术股份有限公司 | Data processing device with low-delay processor, data processing method and equipment |
CN115174673B (en) * | 2022-06-29 | 2023-11-03 | 北京奕斯伟计算技术股份有限公司 | Data processing device, data processing method and apparatus having low-latency processor |
Also Published As
Publication number | Publication date |
---|---|
CN113099490B (en) | 2023-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11176068B2 (en) | Methods and apparatus for synchronizing uplink and downlink transactions on an inter-device communication link | |
US20080320243A1 (en) | Memory-sharing system device | |
US10275163B2 (en) | Methods for controlling data transfer speed of a data storage device and a host device utilizing the same | |
CN110309088B (en) | ZYNQ FPGA chip, data processing method thereof and storage medium | |
CN108600053B (en) | Wireless network data packet capturing method based on zero copy technology | |
CN108170370B (en) | Data storage device and data transmission rate control method | |
US11650744B2 (en) | Virtual elastic queue | |
CN113535633A (en) | On-chip cache device and read-write method | |
US20220360650A1 (en) | Apparatus and method for descriptor handling and computer-readable medium | |
CN110781120B (en) | Method for realizing cross-4 KB transmission of AXI bus host equipment | |
CN113099490B (en) | Data packet transmission method and system based on 5G communication | |
CN113572582B (en) | Data transmission and retransmission control method and system, storage medium and electronic device | |
CN110059024B (en) | Memory space data caching method and device | |
CN115066844A (en) | Dynamic uplink end-to-end data transmission scheme with optimized memory path | |
US8832407B2 (en) | Communication device with storage function | |
CN108287793B (en) | Response message buffering method and server | |
CN114706531A (en) | Data processing method, device, chip, equipment and medium | |
CN112948287A (en) | SD card read-write method and system based on Hashmap caching mechanism | |
CN104394099A (en) | Packet transmission method and device | |
CN105323729B (en) | A kind of note transmission method and device | |
CN114401072A (en) | Dynamic cache control method and system for frame splitting and reordering queue based on HINOC protocol | |
CN116828436B (en) | WiFi communication system based on FPGA | |
CN204256731U (en) | A kind of FPGA reads USB device data set at a high speed | |
CN118157824A (en) | HARQ-based data cache management method, device and storage medium | |
CN109039392B (en) | Bluetooth 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 |