CN102404151A - Network card device supporting complex flow statistics and related complex flow statistics method - Google Patents

Network card device supporting complex flow statistics and related complex flow statistics method Download PDF

Info

Publication number
CN102404151A
CN102404151A CN2011103837207A CN201110383720A CN102404151A CN 102404151 A CN102404151 A CN 102404151A CN 2011103837207 A CN2011103837207 A CN 2011103837207A CN 201110383720 A CN201110383720 A CN 201110383720A CN 102404151 A CN102404151 A CN 102404151A
Authority
CN
China
Prior art keywords
tabulation
statistical item
counter
network card
statistical
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
CN2011103837207A
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.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing Co Ltd
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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN2011103837207A priority Critical patent/CN102404151A/en
Publication of CN102404151A publication Critical patent/CN102404151A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a network card device supporting complex flow statistics, which comprises a flow statistics network card and a PCI module connected with the flow statistics network card, wherein the flow statistics network card comprises: the system comprises a statistical item list and a counter list connected with the statistical item list; the method for counting the complex flow of the network card equipment comprises the following steps: 1. initializing a flow statistics network card; 2. carrying out regular matching judgment on an input message; 3. and updating the counter corresponding to the statistical item according to the judgment result. The network card equipment supporting the complex flow statistics and the related complex flow statistics method provided by the invention can accurately count the flow of the network card, not only can count the number of received packets, the number of lost packets and the number of error packets, but also can count the flow with some specified characteristics, such as the number of fragmented packets, the number of 80-port packets, the number of tcp connection establishment packets and the like.

Description

Support the network card equipment and relevant complicated flow statistical method of complicated traffic statistics
Technical field
The present invention relates to a kind of network data processing system, specifically relate to a kind of network card equipment and relevant complicated flow statistical method of supporting complicated traffic statistics.
Background technology
The network data analysis system need carry out various statistics to network traffics, and in the existing network data analysis system, network interface card does not possess the traffic statistics function, perhaps only possesses statistical functions such as simple packet receiving, packet loss, wrong bag.
In the prior art, application software not only is responsible for the analysis of flow content, also will be responsible for the statistic of classification of flow, and software carries out the resource that these work take a lot of main frames, and systematic function is not high.
The patent No. is the device that invention that ZL200910147808.1, name are called " a kind of traffic statistics and automatically calculate the method and the device of expenses of surfing Internet " has disclosed a kind of traffic statistics; This device comprises the wireless connections administration module; Wherein, the wireless connections administration module is used to add up the up-downgoing flow behind the wireless network card access network in each cycle; It is more single that but this wireless connections administration module has function ratio, can not connect the flow of setting up some specific characteristics such as bag number to fragment packets number, 80 port bag numbers, tcp and add up, and also has the big problem of system load.
Summary of the invention
For overcoming above-mentioned defective, the present invention provides a kind of network card equipment and relevant complicated flow statistical method of supporting complicated traffic statistics, makes the traffic statistics function realized the elevator system performance by the hardware network interface card.
The objective of the invention is to; A kind of network card equipment of supporting complicated traffic statistics is provided; Said network card equipment comprises traffic statistics network interface card and connected PCI module; Its improvements are that said traffic statistics network interface card comprises: statistical item tabulation and the counter tabulation that is connected with said statistical item tabulation.
In the optimal technical scheme provided by the invention, said statistical item tabulation comprises the statistical item of number 1 to n.
In second optimal technical scheme provided by the invention, said PCI module comprises tabulation of mapping statistical item and the tabulation of mapping counter.
In the 3rd optimal technical scheme provided by the invention, that the tabulation of said counter comprises is corresponding with said statistical item, number is 1 to n counter.
In the 4th optimal technical scheme provided by the invention, each statistical item all is made up of different canonical formulas, is used to write down the different statistic project.
In the 5th optimal technical scheme provided by the invention, said statistical item comprises: packet receiving number, number of dropped packets, wrong bag number, ip fragment packets number, 80 port bag numbers, tcp connect the bag number of setting up bag number and/or visit particular web site.
In the 6th optimal technical scheme provided by the invention, the content map of said statistical item tabulation is to said mapping statistical item tabulation.
In the 7th optimal technical scheme provided by the invention, the content map of said counter tabulation is to said mapping counter tabulation.
In the 8th optimal technical scheme provided by the invention, said counter is used for writing down the packet counting of corresponding statistical item.
In the 9th optimal technical scheme provided by the invention, provide a kind of network card equipment complicated flow statistical method, its improvements are that said method comprises the steps:
(1). the traffic statistics network interface card is carried out initialization; (2). the message to input carries out canonical formula matching judgment; (3). according to the result who judges, the counter corresponding to said statistical item upgrades;
Wherein, The statistical item tabulation is set in said traffic statistics network interface card; Each statistical item in the said statistical item tabulation all is the project of adding up with the needs that the canonical formula is described; Corresponding each statistical item all is provided with a counter in said counter tabulation, and said traffic statistics network interface card is mapped to said mapping statistical item tabulation and the tabulation of said mapping counter respectively with the content of said statistical item tabulation and the content of said counter tabulation.
In the tenth optimal technical scheme provided by the invention, in said step 3,
The result who message is carried out canonical formula matching judgment is " being ", then increases the count value of the corresponding counter of this statistical item; The result who message is carried out canonical formula matching judgment is " denying ", does not then add up this message.
With the prior art ratio, the network card equipment and relevant complicated flow statistical method of the complicated traffic statistics of support provided by the invention make the traffic statistics function realized the elevator system performance by the hardware network interface card; Can add up the flow of network interface card accurately, not only can add up, and can set up the flow that wraps some specific characteristics such as number and add up fragment packets number, 80 port bag numbers, tcp connection to packet receiving number, number of dropped packets, wrong bag number; When also having avoided use software to carry out the network interface card traffic statistics; Not only to be responsible for the analysis of flow content, also will be responsible for the statistic of classification of flow, and these work meetings take the resource of a lot of main frames; Make the not high problem of systematic function; The network card equipment and the method for the complicated traffic statistics of support of the present invention realize that based on fpga chip the resource that takies system is low.
Description of drawings
Fig. 1 is the structural representation of the network card equipment of the complicated traffic statistics of support.
Embodiment
As shown in Figure 1, the present invention is based on the fpga chip, designed a kind of network card equipment of realizing complicated traffic statistics; In network card chip, be provided with a statistical item tabulation; Each list item in the table is a project that the needs of describing with the canonical formula are added up, corresponding each statistical item, and there is a counter hardware the inside; Be used for writing down the packet counting of this statistical item, all counters are 0 during initialization.Network interface card carries out canonical formula coupling to each message of input in the statistical item tabulation, if matched certain statistical item, then increase the corresponding counter of this project.The statistical item tabulation sum counter of network interface card, can and read by the software dynamic-configuration in software through the pci spatial mappings.
The present invention is based on the fpga chip that model is V6110T; Designed a kind of network card equipment and relevant complicated flow statistical method of supporting complicated traffic statistics; The network card equipment of the complicated traffic statistics of said support comprises traffic statistics network interface card and PCI module; Said network card equipment comprises the tabulation of statistical item tabulation sum counter, and the PCI module comprises tabulation of mapping statistical item and the tabulation of mapping counter; The content map of said counter tabulation is to said mapping counter tabulation; Each statistical item in the said statistical item tabulation is a project that the needs of describing with the canonical formula are added up; Be provided with the counter of corresponding each statistical item in the counter tabulation; Counter is used for writing down the packet counting of corresponding statistical item, and all counters are 0 during initialization; The content map of said statistical item tabulation is to said mapping statistical item tabulation; The content map of said counter tabulation is to said mapping counter tabulation; Statistical item in network interface card tabulation sum counter reflects tabulation of mapping statistical item and the tabulation of mapping counter in the PCI module respectively, make in the network interface card statistical item tabulation sum counter can by the software dynamic-configuration with read.
At work, support each message that the network card equipment of complicated traffic statistics will be imported, be transferred to and carry out canonical formula coupling in the statistical item tabulation,, then increase the count value of the corresponding counter of this project if matched certain statistical item; The statistical item of network interface card tabulation sum counter is mapped to the tabulation of mapping statistical item and the tabulation of mapping counter of PCI module respectively, so as the technical staff can dynamic-configuration with read the project of having added up.
The complicated flow statistical method of network card equipment is: a statistical item tabulation is set in (1) traffic statistics network interface card; Each list item is a project that the needs of describing with the canonical formula are added up; Corresponding each statistical item; A counter is set, and network interface card is tabulated the sum counter maps to statistical item in software through the pci space.(2) software is configured in the network interface card for each project that need add up structure canonical formula.(3) network interface card carries out canonical formula coupling to each message of input in the statistical item tabulation, if can not find the canonical formula of coupling, does not then add up this message.(4) if found the canonical of coupling, then increase the corresponding counter of this statistical item.When (5) software needs the statistical counting of a certain project, directly read corresponding counter through the pci space.
The complicated flow statistical method of said network card equipment comprises the steps: that 1. pairs of traffic statistics network interface cards carry out initialization; 2. the message to input carries out canonical formula matching judgment; 3. according to the result who judges, the counter corresponding to said statistical item upgrades;
Wherein, The statistical item tabulation is set in said traffic statistics network interface card; Each statistical item in the said statistical item tabulation all is the project of adding up with the needs that the canonical formula is described; Corresponding each statistical item all is provided with a counter in said counter tabulation, and said traffic statistics network interface card is mapped to said mapping statistical item tabulation and the tabulation of said mapping counter respectively with the content of said statistical item tabulation and the content of said counter tabulation.
In said step 3, the result who message is carried out canonical formula matching judgment is " being ", then increases the count value of the corresponding counter of this statistical item; The result who message is carried out canonical formula matching judgment is " denying ", does not then add up this message.
The technical staff can pass through the software arrangements statistical item, and said statistical item comprises: packet receiving number, number of dropped packets, wrong bag number, ip fragment packets number, 80 port bag numbers, tcp connect the bag number of setting up bag number, visit particular web site.
What need statement is that content of the present invention and embodiment are intended to prove the practical application of technical scheme provided by the present invention, should not be construed as the qualification to protection range of the present invention.Those skilled in the art can do various modifications, be equal to replacement or improvement under spirit of the present invention and principle inspiration.But these changes or modification are all in the protection range that application is awaited the reply.

Claims (11)

1. network card equipment of supporting complicated traffic statistics; Said network card equipment comprises traffic statistics network interface card and connected PCI module; It is characterized in that said traffic statistics network interface card comprises: statistical item tabulation and the counter tabulation that is connected with said statistical item tabulation.
2. network card equipment according to claim 1 is characterized in that, said statistical item tabulation comprises the statistical item of number 1 to n.
3. network card equipment according to claim 1 is characterized in that, said PCI module comprises tabulation of mapping statistical item and the tabulation of mapping counter.
4. network card equipment according to claim 1 is characterized in that, that the tabulation of said counter comprises is corresponding with said statistical item, number is 1 to n counter.
5. network card equipment according to claim 2 is characterized in that, each statistical item all is made up of different canonical formulas, is used to write down the different statistic project.
6. according to claim 2,5 described network card equipments, it is characterized in that said statistical item comprises: packet receiving number, number of dropped packets, wrong bag number, ip fragment packets number, 80 port bag numbers, tcp connect the bag number of setting up bag number and/or visit particular web site.
7. according to claim 1,2,3 described network card equipments, it is characterized in that the content map of said statistical item tabulation is to said mapping statistical item tabulation.
8. according to claim 1,2,3 described network card equipments, it is characterized in that the content map of said counter tabulation is to said mapping counter tabulation.
9. network card equipment according to claim 4 is characterized in that, said counter is used for writing down the packet counting of corresponding statistical item.
10. according to the complicated flow statistical method of the network card equipment of the network card equipment of the complicated traffic statistics of each described support of 1-9 item claim, it is characterized in that said method comprises the steps:
(1). the traffic statistics network interface card is carried out initialization; (2). the message to input carries out canonical formula matching judgment; (3). according to the result who judges, the counter corresponding to said statistical item upgrades;
Wherein, The statistical item tabulation is set in said traffic statistics network interface card; Each statistical item in the said statistical item tabulation all is the project of adding up with the needs that the canonical formula is described; Corresponding each statistical item all is provided with a counter in said counter tabulation, and said traffic statistics network interface card is mapped to said mapping statistical item tabulation and the tabulation of said mapping counter respectively with the content of said statistical item tabulation and the content of said counter tabulation.
11. method according to claim 10 is characterized in that, in said step 3,
The result who message is carried out canonical formula matching judgment is " being ", then increases the count value of the corresponding counter of this statistical item; The result who message is carried out canonical formula matching judgment is " denying ", does not then add up this message.
CN2011103837207A 2011-11-28 2011-11-28 Network card device supporting complex flow statistics and related complex flow statistics method Pending CN102404151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103837207A CN102404151A (en) 2011-11-28 2011-11-28 Network card device supporting complex flow statistics and related complex flow statistics method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103837207A CN102404151A (en) 2011-11-28 2011-11-28 Network card device supporting complex flow statistics and related complex flow statistics method

Publications (1)

Publication Number Publication Date
CN102404151A true CN102404151A (en) 2012-04-04

Family

ID=45885966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103837207A Pending CN102404151A (en) 2011-11-28 2011-11-28 Network card device supporting complex flow statistics and related complex flow statistics method

Country Status (1)

Country Link
CN (1) CN102404151A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301172A (en) * 2014-09-12 2015-01-21 中国电子科技集团公司第三十二研究所 Statistical counting method for network processor
CN105515885A (en) * 2014-09-30 2016-04-20 华为技术有限公司 Packet loss statistical method, control device, sheet dividing device and recombination device
CN106937322A (en) * 2015-12-29 2017-07-07 广州市动景计算机科技有限公司 Flow consumes monitoring method and device
CN108989107A (en) * 2018-07-17 2018-12-11 北京中科网威信息技术有限公司 A kind of the statistics adjustment method and device of the network interface card transmitting-receiving message based on Shen prestige framework

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697521A (en) * 2009-09-25 2010-04-21 曙光信息产业(北京)有限公司 Automated testing method and system for filter network card

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697521A (en) * 2009-09-25 2010-04-21 曙光信息产业(北京)有限公司 Automated testing method and system for filter network card

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301172A (en) * 2014-09-12 2015-01-21 中国电子科技集团公司第三十二研究所 Statistical counting method for network processor
CN105515885A (en) * 2014-09-30 2016-04-20 华为技术有限公司 Packet loss statistical method, control device, sheet dividing device and recombination device
CN105515885B (en) * 2014-09-30 2019-01-08 华为技术有限公司 Count packet discarding method, control equipment, fragment equipment and reconstitution device
CN106937322A (en) * 2015-12-29 2017-07-07 广州市动景计算机科技有限公司 Flow consumes monitoring method and device
CN108989107A (en) * 2018-07-17 2018-12-11 北京中科网威信息技术有限公司 A kind of the statistics adjustment method and device of the network interface card transmitting-receiving message based on Shen prestige framework

Similar Documents

Publication Publication Date Title
CN101656677B (en) Message diversion processing method and device
CN102752150B (en) Distributed communication equipment capable of providing remote board card debugging and remote board card debugging method
CN100369423C (en) Network simulation detection system and method
CN104378264B (en) A kind of virtual machine process flux monitoring method based on sFlow
CN104170319B (en) Distributed group construction system and its management method
CN103078871A (en) Serial port Ethernet protocol conversion method
CN102404151A (en) Network card device supporting complex flow statistics and related complex flow statistics method
CN105681125A (en) Method for counting traffic of virtual machine extranet of cloud platform
CN102104502A (en) Ethernet equipment performance test platform based on Linux system
CN109075995A (en) The device that performance measurement data for NFV performance management is subscribed to
CN103051716A (en) Method and system for redirecting network-oriented serial device
CN107612843A (en) A kind of method for preventing cloud platform IP and MAC from forging
CN203151539U (en) AFDX terminal system virtual link layer IP core
CN104168200B (en) A kind of method and system that acl feature is realized based on Open vSwitch
CN102984035A (en) Loopback test method and system of packet loss probability of network data
CN103118144B (en) A kind of Radio Access Controller and long-distance port agent method thereof
CN202535371U (en) Network card device supporting complex flow statistics
CN103078754A (en) Network data stream statistical method on basis of counting bloom filter
CN104601400B (en) Shunting device performance test methods, test client and test server
TWI472207B (en) A system for capturing multi-nodes and replaying cross-layers
CN203133718U (en) Blade server backboard
CN105430665B (en) Realize the method and system of more net mixing scale networkings
CN108768727A (en) Access method, electronic device and the readable storage medium storing program for executing of third party's service
CN206620162U (en) A kind of RapidIO and Ethernet modular converter
CN105207819B (en) High-speed narrow-band power line communication application layer protocol towards automatic demand response

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120404