CN110912714A - Network message fast forwarding method based on improved network card driving software - Google Patents

Network message fast forwarding method based on improved network card driving software Download PDF

Info

Publication number
CN110912714A
CN110912714A CN201911044923.6A CN201911044923A CN110912714A CN 110912714 A CN110912714 A CN 110912714A CN 201911044923 A CN201911044923 A CN 201911044923A CN 110912714 A CN110912714 A CN 110912714A
Authority
CN
China
Prior art keywords
message
network card
forwarding
network
forwarded
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.)
Pending
Application number
CN201911044923.6A
Other languages
Chinese (zh)
Inventor
王维兴
李庆
尹加豹
赵曰昶
王文俊
朱涛
崔凯华
张萌
李轶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
716th Research Institute of CSIC
Original Assignee
716th Research Institute of CSIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 716th Research Institute of CSIC filed Critical 716th Research Institute of CSIC
Priority to CN201911044923.6A priority Critical patent/CN110912714A/en
Publication of CN110912714A publication Critical patent/CN110912714A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

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 network message fast forwarding method based on improved network card driving software, belonging to the field of industrial computing network communication, and the method comprises the following steps: constructing network card driving software supporting a standard TCP/IP protocol stack to support a standard message forwarding and processing function; collecting message characteristic information, determining whether a message corresponding to the information needs to be forwarded according to the message characteristic information, and recording the message needing to be forwarded as a characteristic message; modifying the network card driving software and forwarding the feature message. The invention can meet the forwarding delay of less than or equal to 1ms under the condition of sending mass data, can effectively improve the rapid processing capability of the mass data messages in the industrial computing system, and better meets the high-performance requirements of the industrial computing system in various fields.

Description

Network message fast forwarding method based on improved network card driving software
Technical Field
The invention relates to the field of industrial computing network communication, in particular to a network message fast forwarding method based on improved network card driving software.
Background
At present, an intelligent dual-redundancy ethernet module (hereinafter referred to as an intelligent network card) is commonly used in an industrial computer system, and a main function of the intelligent dual-redundancy ethernet module is to implement data conversion between a large-system dual-redundancy ethernet and a common gigabit ethernet, and a functional schematic diagram is shown in fig. 1.
Because the number of network nodes on the large-system dual redundant network is large and the data transmission time cannot be specified, the intelligent network card bears large data forwarding pressure, and the intelligent network card is required to meet the forwarding delay of less than or equal to 1ms under the condition of transmitting mass data. A test environment is set up in a laboratory, mass data are sent to a dual-redundancy network interface of an intelligent network card through a large system network, then the intelligent network card forwards the data to an internal network through an Ethernet interface, the delay of the data forwarded by a large number of tested intelligent network cards is over 6ms, the requirement of forwarding delay of less than or equal to 1ms cannot be met, and the conventional methods adopted at present for increasing a cache pool, improving the priority of network tasks, reducing receiving interruption and the like do not solve the delay problem.
Disclosure of Invention
The invention aims to provide a network message fast forwarding method based on improved network card driving software, which aims to solve the problem of overlarge network message forwarding delay when data conversion is carried out between a large-system dual-redundancy Ethernet and a common Ethernet, effectively improve the fast processing capacity of large-data-volume messages in an industrial computing system and better meet the high-performance requirements of the industrial computing system in various fields.
The technical solution for realizing the purpose of the invention is as follows: a network message fast forwarding method based on improved network card driving software comprises the following steps:
step 1, constructing network card driving software supporting a standard TCP/IP protocol stack to support a standard message forwarding and processing function;
step 2, collecting message characteristic information, determining whether a message corresponding to the information needs to be forwarded according to the message characteristic information, and marking the message needing to be forwarded as a characteristic message;
and 3, modifying the network card driving software and forwarding the feature message.
Further, the step 2 of determining whether the message corresponding to the information needs to be forwarded according to the message feature information, and recording the message needing to be forwarded as the feature message specifically includes:
a user self-defines and constructs a feature message library required to be forwarded, wherein the library comprises a destination IP address and a source IP address corresponding to a message required to be forwarded;
judging whether the collected message characteristic information exists in the characteristic report library, if so, forwarding a message corresponding to the message characteristic information, wherein the message is a characteristic message; otherwise no forwarding is required.
Further, the modifying the network card driving software in step 3, and forwarding the feature packet specifically includes:
modifying a message receiving function in the network card driving software to realize the following steps: and uploading the data packet of the characteristic message to a buffer area, sending a data forwarding requirement notice, and then uploading the data packet to an application program by a forwarding data uploading interface function.
Compared with the prior art, the invention has the following remarkable advantages: 1) the invention can meet the forwarding delay less than or equal to 1ms under the condition of sending mass data; 2) the modified driving software can support standard TCP/IP communication, can support quick forwarding and ensures that the network communication rate is not reduced; 3) the secondary development calling interface is provided, so that a secondary development user can set a destination IP and a source IP address of a message to be forwarded, the secondary development user can conveniently and rapidly forward the message according to actual requirements, the flexibility is high, meanwhile, the message to be rapidly forwarded can still be obtained by the user without passing through a protocol stack, and the secondary development of the user is facilitated to carry out data processing; 4) the invention can effectively improve the rapid processing capability of the industrial computing system for large-data-volume messages, and better meet the high-performance requirements of the industrial computing system in various fields.
The present invention is described in further detail below with reference to the attached drawing figures.
Drawings
Fig. 1 is a functional schematic diagram of an intelligent dual redundant ethernet module.
Fig. 2 is a flow chart of forwarding data of the intranet and extranet data packets before the network card driving software is modified.
Fig. 3 is a flow chart of data forwarding of the intranet and extranet data packets after the network card driver software is modified according to the present invention.
FIG. 4 is a logic flow diagram of a modified receive processing function of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
A general internal and external network data forwarding flow is shown in fig. 2, and in this process, forwarding of one data packet needs to be performed by two protocol stack processes, two driver processes, and two network card hardware transceiving. Because the hardware of the network card is independent, the network card can be processed in parallel, and the influence on the forwarding delay time is not large; the data processing of the driver is interrupt driven, can be processed in parallel, and has little influence on the forwarding delay time. The network protocol stack of Vxworks is single-task, and two times of protocol stack processing need to be executed in series, so that the forwarding delay time is long.
In order to solve the problem of long delay time, the work flow of network message forwarding is analyzed, the operation time is determined in sections, the root cause of the problem is searched, and after testing, the longest time is occupied when the network protocol stack receives and processes, the forwarding efficiency of the protocol stack is too low, this is the major bottleneck for excessive network forwarding delay, but considering that not all network packets need to be forwarded in actual use, but a part of the data packets are processed in the intelligent network card, and some specific messages need to be forwarded, so in order to reduce the forwarding delay time, the simplest method is to bypass the receiving processing of the network protocol stack, directly submit the data packets to the application program by the driver program, and then forward the data by the application program, while other data packets which do not need to be forwarded still go through the whole flow, so as to solve the delay problem.
Based on the above analysis, with reference to fig. 3, the present invention provides a network message fast forwarding method based on improved network card driver software, which includes the following steps:
step 1, constructing network card driving software supporting a standard TCP/IP protocol stack to support a standard message forwarding and processing function;
step 2, collecting message characteristic information, determining whether a message corresponding to the information needs to be forwarded according to the message characteristic information, and marking the message needing to be forwarded as a characteristic message;
and 3, modifying the network card driving software and forwarding the feature message.
Further, in one embodiment, the message characteristic information in step 2 includes a destination IP address and a source IP address of the message.
Further, in one embodiment, in step 2, it is determined whether the packet corresponding to the information needs to be forwarded according to the packet feature information, and the packet that needs to be forwarded is recorded as a feature packet, which specifically includes:
a user self-defines and constructs a feature message library required to be forwarded, wherein the library comprises a destination IP address and a source IP address corresponding to a message required to be forwarded;
judging whether the collected message characteristic information exists in the characteristic report library, if so, forwarding a message corresponding to the message characteristic information, wherein the message is a characteristic message; otherwise no forwarding is required.
Further, in one embodiment, the collected message feature information is specifically implemented by using a newly added collected message feature information interface function on a dual redundant network card driver or a gigabit network card driver.
Further, in one embodiment, step 3 modifies the network card driver software, and forwards the feature packet, which specifically includes:
modifying a message receiving function in the network card driving software to realize the following steps: the data packet of the feature packet is uploaded to the buffer, a data forwarding requirement notification is sent, and then the data packet is uploaded to the application program by the forwarding data uploading interface function, where the specific logic is shown in fig. 4.
Further, in one embodiment, the forwarding data upload interface function is a newly added interface function on a dual redundant network card driver or a gigabit network card driver.
The invention can meet the forwarding delay of less than or equal to 1ms under the condition of sending mass data, can effectively improve the rapid processing capability of the mass data messages in the industrial computing system, and better meets the high-performance requirements of the industrial computing system in various fields.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (6)

1. A network message fast forwarding method based on improved network card driving software is characterized by comprising the following steps:
step 1, constructing network card driving software supporting a standard TCP/IP protocol stack to support a standard message forwarding and processing function;
step 2, collecting message characteristic information, determining whether a message corresponding to the information needs to be forwarded according to the message characteristic information, and marking the message needing to be forwarded as a characteristic message;
and 3, modifying the network card driving software and forwarding the feature message.
2. The network message fast forwarding method based on the improved network card driver software according to claim 1, wherein the message characteristic information in step 2 includes a destination IP address and a source IP address of the message.
3. The method according to claim 1 or 2, wherein the step 2 of determining whether the message corresponding to the information needs to be forwarded according to the message feature information, and marking the message that needs to be forwarded as a feature message specifically includes:
a user self-defines and constructs a feature message library required to be forwarded, wherein the library comprises a destination IP address and a source IP address corresponding to a message required to be forwarded;
judging whether the collected message characteristic information exists in the characteristic report library, if so, forwarding a message corresponding to the message characteristic information, wherein the message is a characteristic message; otherwise no forwarding is required.
4. The network message fast forwarding method based on the improved network card driver software according to claim 3, wherein the collected message feature information is specifically realized by a newly added collected message feature information interface function on a dual-redundancy network card driver or a gigabit network card driver.
5. The method for fast forwarding network messages based on the improved network card driver software according to claim 1, wherein the step 3 of modifying the network card driver software to forward the feature messages specifically comprises:
modifying a message receiving function in the network card driving software to realize the following steps: and uploading the data packet of the characteristic message to a buffer area, sending a data forwarding requirement notice, and then uploading the data packet to an application program by a forwarding data uploading interface function.
6. The method for rapidly forwarding network messages based on the improved network card driver software according to claim 5, wherein the forwarding data uploading interface function is a newly added interface function on a dual redundant network card driver or a gigabit network card driver.
CN201911044923.6A 2019-10-30 2019-10-30 Network message fast forwarding method based on improved network card driving software Pending CN110912714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911044923.6A CN110912714A (en) 2019-10-30 2019-10-30 Network message fast forwarding method based on improved network card driving software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911044923.6A CN110912714A (en) 2019-10-30 2019-10-30 Network message fast forwarding method based on improved network card driving software

Publications (1)

Publication Number Publication Date
CN110912714A true CN110912714A (en) 2020-03-24

Family

ID=69815982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911044923.6A Pending CN110912714A (en) 2019-10-30 2019-10-30 Network message fast forwarding method based on improved network card driving software

Country Status (1)

Country Link
CN (1) CN110912714A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195868A (en) * 2010-12-17 2011-09-21 曙光信息产业(北京)有限公司 Method and device for dynamically classifying network messages at high efficiency
EP2566130A1 (en) * 2011-08-29 2013-03-06 Kaspersky Lab Zao Automatic analysis of security related incidents in computer networks
CN108111422A (en) * 2017-12-29 2018-06-01 北京明朝万达科技股份有限公司 A kind of data high-speed multichannel retransmission method and device based on DPDK

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195868A (en) * 2010-12-17 2011-09-21 曙光信息产业(北京)有限公司 Method and device for dynamically classifying network messages at high efficiency
EP2566130A1 (en) * 2011-08-29 2013-03-06 Kaspersky Lab Zao Automatic analysis of security related incidents in computer networks
CN108111422A (en) * 2017-12-29 2018-06-01 北京明朝万达科技股份有限公司 A kind of data high-speed multichannel retransmission method and device based on DPDK

Similar Documents

Publication Publication Date Title
US9148819B2 (en) In-place A-MSDU aggregation for wireless systems
US20230042747A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device
CN109525518B (en) IP message network address conversion method and device based on FPGA
CN110851371A (en) Message processing method and related equipment
CN104023408A (en) Dispatcher and data dispatching method based on network multi-path parallel transmission
CN103986585A (en) Message preprocessing method and device
CN107995130A (en) A kind of fast shifting method of fragment message
CN104135548A (en) Static NAT realization method and device based on FPGA
EP3896964A1 (en) Data processing method, apparatus and device, and storage medium
CN107925652A (en) A kind of transport protocol fixed conversion method and device based on message protocol identification
CN110912714A (en) Network message fast forwarding method based on improved network card driving software
US20170257323A1 (en) Mail Obtaining Method, Terminal, and System
CN113973091A (en) Message processing method, network equipment and related equipment
WO2023035722A1 (en) Rdma data transmission system, rdma data transmission method, and network device
CN115344522A (en) Message conversion channel, message conversion device, electronic equipment and switching equipment
CN112491620B (en) Multi-channel data transmission controller based on SRIO and adjusting method
CN114615355A (en) Message processing method and message analysis module
CN104040951A (en) Method and apparatus for transmitting alarm-related information
CN110874334B (en) USB transmission system, USB device and host supporting USB transmission
CN107707492B (en) Method and device for reporting and issuing message
CN108173699B (en) CPU high-efficiency processing method based on Marvell exchange chip when obtaining message source port
CN112685619A (en) Universal capture method for webpage table data
CN115297070B (en) Multi-metadata-excited ARINC664 switch cache overflow test method
CN117278505B (en) Message transmission method, system, equipment and medium between RAID card nodes
CN116133159B (en) GTP data packet processing method, device, computer equipment 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 222001 No.18 Shenghu Road, Lianyungang City, Jiangsu Province

Applicant after: The 716th Research Institute of China Shipbuilding Corp.

Address before: 222001 No.18 Shenghu Road, Lianyungang City, Jiangsu Province

Applicant before: 716TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200324