Method for fast catching Ethernet card on Linux system

An Ethernet and network card technology, applied in the field of computer communication, can solve the problems of limited data packet cache queue length, large CPU resource consumption, and difficulty in ensuring no packet loss, so as to reduce the overhead of cache application and release, reduce scheduling overhead, The effect of reducing the number of copies
CN101227341AInactive Publication Date: 2008-07-23LANGCHAO ELECTRONIC INFORMATION IND CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
Publication Date
2008-07-23
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for utilizing an Ethernet-card to rapidly capture packet on a Linux system, the method comprises mapping an Ethernet-card DMA receiving caching area on a user area, achieving the purpose of simultaneously capturing packets for a plurality of Ethernet cads through reducing data packets to reach a user area and copying times of a user program and starting a thread packet capture with every Ethernet card, reducing dispatching cost of interrupt handling through shutting interruption to actively enquire and receive, defining cache and management thereof which are repeatedly used, reducing cache application and releasing cost, reducing the conflict of visiting cache between the packet capture thread and packet processing thread, realizing the rapid capture of Ethernet data packets and ip packets which are transferred on the Ethernet data packets.
Need to check novelty before this filing date? Find Prior Art

Description

1. Technical field

[0001] The invention relates to the field of computer communication, in particular to a method for quickly capturing packets of an Ethernet card on a Linux system. 2. Technical background

[0002] At present, LAN is widely used. Ethernet is a kind of LAN, and it is also the mainstream mode of LAN. The ip packet can be transmitted on the Ethernet to realize the connection with the tcp / ip Internet. In network management and network detection, it is necessary to capture the transmitted network data packets, and then analyze the network traffic, monitor and intrude the communication of the specified source address and destination address, etc. In order to improve performance such as monitoring speed, it is necessary to capture data packets completely or as completely as possible.

[0003] On the Linux system, the traditional Ethernet card driver and the network processing stack of the kernel are affected by the interrupt scheduling of the Ethernet card, and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More