A wireless intelligent network card driving system
By dynamically detecting the channel type and signal-to-noise ratio in the wireless smart network card drive system and adjusting the maximum transmission unit, the problem of poor transmission efficiency when the wireless communication signal environment changes is solved, and real-time monitoring and efficiency improvement are achieved.
Patent Information
- Application Number
- CN202211550133.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-05
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-12-05
AI Technical Summary
When the wireless communication signal environment changes, the transmission efficiency cannot be optimal because the maximum transmission unit driven by the existing network card is fixed and cannot be dynamically adjusted to adapt to changes in signal quality.
A wireless intelligent network card driver system is designed, which uses the interrupt entry function detection module, length table lookup module, maximum transmission unit interface configuration module, length judgment module, and data disassembly module through the network interface layer, device driver function layer, and physical layer. And the physical layer transmission startup module dynamically detects the channel type and signal-to-noise ratio, queries the optimal data length table, dynamically adjusts the maximum transmission unit, disassembles long packet data, and realizes dynamic adjustment of the data transmission length.
It realizes real-time monitoring and dynamic adjustment when the quality of wireless communication signals changes, improves data transmission efficiency, and ensures the best communication efficiency in different signal environments.
Smart Images

Figure CN116016367B
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a wireless intelligent network card driving system. Background Art
[0002] The efficiency of wireless communication data transmission is inevitably related to the stability and throughput of data transmission. The lower the packet error rate of the transmitted data, the higher the throughput and the higher the efficiency. The packet error rate and throughput are related to the length of the data. Assuming that the length of a packet of data is N bits, wireless communication is transmitted according to binary bits. The bit error rate is BER. The data packet error rate PER is also positively correlated with the bit error rate BER. BER will increase with the increase of the number of bits N. PER is positively correlated with the data length. The longer the length of the transmitted data, the higher the packet error rate. The throughput is positively correlated with the data length. Therefore, the efficiency of wireless transmission will increase and then decrease as the length of data transmission changes from short to long. At different packet error rates, the length of the data sent needs to be dynamically adjusted to achieve the optimal communication efficiency value.
[0003] The network card driver is located in the network layer of the 7-layer model of network communication. It adapts to the network protocol stack and processes the sending and receiving of network data. The data transmitted by the protocol stack to the network card has different types of packet lengths according to the 802.3 network protocol. The general network card driver forwards the network data packets sent by the upper protocol stack intact. When the application layer performs data services, the maximum length of the TCP&UDP (Transmission Control Protocol and User Datagram Protocol) type network packets entering the network card driver will be divided by the network protocol stack into the size of the network card driver's maximum transmission unit (mtu). The general network card mtu unit is set to 1500. The wireless module of the physical layer sends the network data packet to the air interface, and the maximum length sent is mtu. When the quality of the wireless communication signal changes, the maximum transmission unit sent by the network protocol stack will not change, and the maximum length sent by the physical layer is a fixed value, which results in the transmission efficiency of wireless communication not reaching the best when the signal environment changes. Summary of the invention
[0004] Based on this, it is necessary to provide a wireless smart network card driving system that can dynamically adjust the transmission efficiency when the wireless communication signal environment changes in response to the above technical problems.
[0005] A wireless intelligent network card driving system, the system comprising a network interface layer, a device driver function layer and a physical layer;
[0006] The network interface layer is used to receive network data and input the network data into the device driver function layer according to the entry function;
[0007] The device driver function layer includes an interrupt entry function detection module, a length table lookup module, a maximum transmission unit interface configuration module, a length judgment module, a data disassembly module and a physical layer sending start module; the interrupt entry function detection module is used to obtain the current channel type and signal-to-noise ratio value according to the interrupt entry function input by the physical layer, and the length table lookup module is used to input the current channel type and signal-to-noise ratio value into a pre-built optimal data length table for query and search, and obtain the optimal data length corresponding to the current channel; the maximum transmission unit interface configuration module is used to dynamically modify the maximum transmission unit of the network card driver according to the optimal data length and network service transmission requirements to obtain the current maximum transmission unit; the length judgment module is used to obtain the network data input by the network interface layer and judge the length of the network data when the optimal data length is less than the current maximum transmission unit; the data disassembly module is used to disassemble the network data with a length greater than the optimal data length into data packets; the physical layer sending start module is used to obtain and output all network data and data packets with a length less than or equal to the optimal data length;
[0008] The physical layer includes a channel type and signal-to-noise ratio detection module and a network physical layer sending module; the channel type and signal-to-noise ratio detection module is used to obtain the current channel type and signal-to-noise ratio value according to the interrupt trigger method, and input the current channel type and signal-to-noise ratio value into the device driver function layer through the interrupt entry function; the network physical layer sending module is used to obtain all network data and data packets with a length less than the optimal data length input by the physical layer sending start module and send them to complete data transmission.
[0009] In one of the embodiments, the process of constructing the optimal data length table includes: performing data simulation according to the channel type, signal-to-noise ratio value, data packet error rate and data length, and establishing the optimal data length table corresponding to different signal-to-noise ratio intervals under different channel types.
[0010] In one embodiment, the maximum transmission unit interface configuration module is used to dynamically modify the maximum transmission unit of the network card driver according to the optimal data length and network service transmission requirements to obtain the current maximum transmission unit, including:
[0011] The maximum transmission unit interface configuration module is used to obtain the configuration interval of the maximum transmission unit of the network card driver according to the network service transmission requirements. When the optimal data length is within the configuration interval of the maximum transmission unit, the maximum transmission unit of the network card driver is dynamically modified to obtain the current maximum transmission unit; wherein the current maximum transmission unit is within the configuration interval of the maximum transmission unit, and the current maximum transmission unit is greater than the optimal data length.
[0012] In one embodiment, the data disassembly module is used to disassemble network data having a length greater than an optimal data length into data packets, including:
[0013] The data disassembly module is used to disassemble the network data whose length is greater than the optimal data length to obtain multiple data packets whose length is the optimal data length.
[0014] In one embodiment, the physical layer transmission start module is used to obtain and output all network data and data packets whose length is less than or equal to the optimal data length, including:
[0015] The physical layer sending start module is used to obtain network data whose length is less than or equal to the optimal data length output by the length judgment module, and directly output it to the network physical layer sending module; obtain the data packet whose length is equal to the optimal data length output by the data disassembly module, and combine the data packet with the header information of the network protocol, and then output it to the network physical layer sending module.
[0016] In one of the embodiments, the detection functions of the channel type and signal-to-noise ratio detection module are implemented by an FPGA chip.
[0017] The above-mentioned wireless intelligent network card driving system, the system is composed of a network interface layer, a device driver function layer and a physical layer from top to bottom. The above-mentioned wireless intelligent network card driving system can dynamically detect the channel type and signal-to-noise ratio value of the current communication channel through the channel type and signal-to-noise ratio detection module in the physical layer, obtain the optimal data length under the current channel, and realize real-time monitoring of changes in the quality of wireless communication signals; and dynamically set the current maximum transmission unit through the device driver function layer, so as to disassemble and send the long packet network data, realize dynamic adjustment of the data transmission length when the wireless communication environment changes, and greatly improve the data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 FIG. 4 is a structural block diagram of a wireless intelligent network card driving system in an embodiment. DETAILED DESCRIPTION
[0019] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0020] In one embodiment, Figure 1 As shown, a wireless intelligent network card driving system is provided, and the system is composed of a network interface layer, a device driver function layer, and a network device and media layer from top to bottom, wherein the network device and media layer is also called a physical layer. Figure 1 The dotted arrows in the figure represent data transmission between different layers in the wireless smart network card driver system, and the solid arrows represent data transmission between the same layer.
[0021] Specifically, the network interface layer is used to receive network data (sk_buff) and input the network data into the device driver function layer according to the entry function;
[0022] The device driver function layer includes an interrupt entry function detection module, a length table lookup module, a maximum transmission unit interface configuration module, a length judgment module, a data disassembly module and a physical layer sending start module; the interrupt entry function detection module is used to obtain the current channel type and signal-to-noise ratio value (SNR) according to the interrupt entry function input by the physical layer, and the length table lookup module is used to input the current channel type and signal-to-noise ratio value into a pre-built optimal data length table for query and search, and obtain the optimal data length (LEN) corresponding to the current channel; the maximum transmission unit interface configuration module is used to dynamically modify the maximum transmission unit (mtu) of the network card driver according to the optimal data length and network service transmission requirements to obtain the current maximum transmission unit; the length judgment module is used to obtain the network data input by the network interface layer and judge the length of the network data when the optimal data length is less than the current maximum transmission unit; the data disassembly module is used to disassemble the network data with a length greater than the optimal data length into data packets; the physical layer sending start module is used to obtain and output all network data and data packets with a length less than or equal to the optimal data length;
[0023] The physical layer includes a channel type and signal-to-noise ratio detection module and a network physical layer sending module; the channel type and signal-to-noise ratio detection module is used to obtain the current channel type and signal-to-noise ratio value according to the interrupt trigger method, and input the current channel type and signal-to-noise ratio value into the device driver function layer through the interrupt entry function; the network physical layer sending module is used to obtain all network data and data packets with a length less than the optimal data length input by the physical layer sending start module and send them to complete data transmission.
[0024] In one embodiment, the process of constructing the optimal data length table includes: performing data simulation according to the channel type, signal-to-noise ratio, data packet error rate and data length, and establishing the optimal data length table corresponding to different signal-to-noise ratio intervals under different channel types.
[0025] Specifically, there are a total of 6 channel types in the wireless communication 802.11n standard, as shown in Table 1.
[0026] Table 1 Channel types
[0027]
[0028] When the physical layer detects that the signal-to-noise ratio value or channel type of the current channel has changed and an interrupt is generated, the wireless network card driver detects the change in communication signal quality through an interrupt trigger. In the interrupt entry function detection module of the device driver function layer, the current channel type and signal-to-noise ratio value are obtained according to the interrupt entry function input by the physical layer, and data simulation is performed in advance on the channel type, signal-to-noise ratio value, data packet error rate and data length to establish an optimal data length table for different signal-to-noise ratio intervals under 6 channel types. The current channel type and signal-to-noise ratio value are input into the pre-constructed optimal data length table for query and search to obtain the optimal data length corresponding to the current channel.
[0029] In one embodiment, the maximum transmission unit interface configuration module is used to dynamically modify the maximum transmission unit of the network card driver according to the optimal data length and network service transmission requirements to obtain the current maximum transmission unit, including:
[0030] The maximum transmission unit interface configuration module is used to obtain the configuration interval of the maximum transmission unit of the network card driver according to the network service transmission requirements. When the optimal data length is within the configuration interval of the maximum transmission unit, the maximum transmission unit of the network card driver is dynamically modified to obtain the current maximum transmission unit; wherein the current maximum transmission unit is within the configuration interval of the maximum transmission unit, and the current maximum transmission unit is greater than the optimal data length.
[0031] In one embodiment, the data disassembly module is used to disassemble network data having a length greater than an optimal data length into data packets, including:
[0032] The data disassembly module is used to disassemble the network data whose length is greater than the optimal data length to obtain multiple data packets whose length is the optimal data length.
[0033] In one embodiment, the physical layer transmission start module is used to obtain and output all network data and data packets whose length is less than or equal to the optimal data length, including:
[0034] The physical layer sending start module is used to obtain network data whose length is less than or equal to the optimal data length output by the length judgment module, and directly output it to the network physical layer sending module; obtain the data packet whose length is equal to the optimal data length output by the data disassembly module, and combine the data packet whose length is equal to the optimal data length with the header information of the 802.3 network protocol, and then output it to the network physical layer sending module.
[0035] In one of the embodiments, the detection functions of the channel type and signal-to-noise ratio detection module are implemented by an FPGA chip.
[0036] It should be understood that although Figure 1The steps in the structure diagram are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0037] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0038] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A wireless intelligent network card driving system, characterized in that: The system comprises: a network interface layer, a device driver function layer and a physical layer; Wherein, the network interface layer is used to receive network data and input the network data into the device driver function layer according to the entry function; The device driver function layer includes an interrupt entry function detection module, a length table lookup module, a maximum transmission unit interface configuration module, a length judgment module, a data disassembly module and a physical layer sending start module; the interrupt entry function detection module is used to obtain the current channel type and signal-to-noise ratio value according to the interrupt entry function input by the physical layer, and the length table lookup module is used to input the current channel type and signal-to-noise ratio value into a pre-constructed optimal data length table for query and search to obtain the optimal data length corresponding to the current channel; the maximum transmission unit interface configuration module is used to dynamically modify the maximum transmission unit of the network card driver according to the optimal data length and network service transmission requirements to obtain the current maximum transmission unit; the length judgment module is used to obtain the network data input by the network interface layer and judge the length of the network data when the optimal data length is less than the current maximum transmission unit; the data disassembly module is used to disassemble the network data with a length greater than the optimal data length into data packets; the physical layer sending start module is used to obtain and output all network data and data packets with a length less than or equal to the optimal data length; The physical layer includes a channel type and signal-to-noise ratio detection module and a network physical layer sending module; the channel type and signal-to-noise ratio detection module is used to obtain the current channel type and signal-to-noise ratio value according to an interrupt triggering method, and input the current channel type and signal-to-noise ratio value into the device driver function layer through an interrupt entry function; the network physical layer sending module is used to obtain all network data and data packets with a length less than the optimal data length input by the physical layer sending start module and send them to complete data transmission.
2. The system according to claim 1, characterized in that The construction process of the optimal data length table includes: Data simulation is performed according to channel type, signal-to-noise ratio, data packet error rate and data length, and an optimal data length table corresponding to different signal-to-noise ratio intervals under different channel types is established.
3. The system according to claim 1, characterized in that The maximum transmission unit interface configuration module is used to dynamically modify the maximum transmission unit of the network card driver according to the optimal data length and network service transmission requirements to obtain the current maximum transmission unit, including: The maximum transmission unit interface configuration module is used to obtain the configuration interval of the maximum transmission unit of the network card driver according to the network service transmission requirements, and when the optimal data length is within the configuration interval of the maximum transmission unit, dynamically modify the maximum transmission unit of the network card driver to obtain the current maximum transmission unit; wherein the current maximum transmission unit is within the configuration interval of the maximum transmission unit, and the current maximum transmission unit is greater than the optimal data length.
4. The system according to claim 1, characterized in that The data disassembly module is used to disassemble network data whose length is greater than the optimal data length into data packets, including: The data disassembly module is used to disassemble network data whose length is greater than the optimal data length to obtain multiple data packets whose length is the optimal data length.
5. The system according to claim 1, characterized in that The physical layer sending start module is used to obtain and output all network data and data packets whose length is less than or equal to the optimal data length, including: The physical layer sending start module is used to obtain the network data whose length is less than or equal to the optimal data length output by the length judgment module, and directly output it to the network physical layer sending module; obtain the data packet whose length is equal to the optimal data length output by the data disassembly module, and after combining the data packet with the header information of the network protocol, output it to the network physical layer sending module.
6. The system according to claim 1, characterized in that The detection functions of the channel type and signal-to-noise ratio detection module are implemented by an FPGA chip.
