CN100372317C - Flow receiving taking and statistic circuit assembly for 10G network performance tester - Google Patents

Flow receiving taking and statistic circuit assembly for 10G network performance tester Download PDF

Info

Publication number
CN100372317C
CN100372317C CNB200510011711XA CN200510011711A CN100372317C CN 100372317 C CN100372317 C CN 100372317C CN B200510011711X A CNB200510011711X A CN B200510011711XA CN 200510011711 A CN200510011711 A CN 200510011711A CN 100372317 C CN100372317 C CN 100372317C
Authority
CN
China
Prior art keywords
circuit
mentioned
data
register
input
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.)
Expired - Fee Related
Application number
CNB200510011711XA
Other languages
Chinese (zh)
Other versions
CN1688135A (en
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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNB200510011711XA priority Critical patent/CN100372317C/en
Publication of CN1688135A publication Critical patent/CN1688135A/en
Application granted granted Critical
Publication of CN100372317C publication Critical patent/CN100372317C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a flow receiving, taking and counting circuit assembly for a 10G network performance tester, which belongs to the technical field of testing performance of a high-speed network. The present invention is characterized in that the present invention is realized on the basis of FPGA; after frame data is received by a PL4IPCore receiver from a frame controller, the data is divided into two parts by a branch circuit; part of the data is read through a protocol frame sending circuit and a related memory by CPU via a CPU interface circuit, and then, the data is transmitted to an application program of an upper level; after the other part of the data passes through a data analyzing and preprocessing circuit, the statistics of flow and ping packets is carried out, and then, the data is transmitted to the CPU through the corresponding interface circuit; meanwhile, the data is also transmitted to a data packet taking circuit, whether the data needs to be transmitted into external SRAM or not is determined according to a taking scheme which is set, and a writing request signal is generated to be transmitted to an arbitration circuit; then, the data is arbitrated and selected from reading and writing commands which are sent out from the CPU. The present invention has the advantages of real-time high-speed acquisition, good extensibility and easy upgrade.

Description

The reception of 10G network performance tester flow, extracting and statistical circuit assembly
Technical field
The invention belongs to applied in network performance test technical field in express network and the network device performance test thereof.
Background technology
Applied in network performance test is meant the performance of the test network system and the network equipment, and the performance of the network system and the network equipment is estimated.The specific performance index of measurand is paid close attention in performance test, as throughput, delay, Loss Rate etc., is a kind of important means of estimating the performance of under the heterogeneous networks load tested network or the network equipment exactly.Test macro is finished the test function to tested network or equipment under test, is made up of equipment under test (DUT:Device Under Test), test executing device (being also referred to as " tester ") and this three part of test monitoring device (being also referred to as " monitoring equipment ").Tester is realized test port, finishes the basic function of test, comprises the generation of measurement, route message of the generation of test traffic and reception, test statistics and message intercepting etc.In the express network performance test, generally use PC as the test monitoring device, the test monitoring device is also referred to as " monitoring equipment ", and User Interface is provided, and comprises the analysis of setting, test result of test parameter and demonstration etc.;
In applied in network performance test, adopt initiatively method of measurement, tester generates and sends test traffic on one's own initiative, and transmit through equipment under test and get back to tester, tester analytical test flow, thus draw the performance index of the network or the network equipment.Flow reception, extracting and statistical circuit assembly are the important component parts of tester, finish reception, extracting and the statistical function of test traffic, realize the test of dependence test object performance index.
At home and abroad, test traffic reception, the realization of grasping and adding up have two kinds of methods of hardware and software.Realize that with software test traffic receives, grasps and statistics merely, speed is lower and real-time is too poor, can't satisfy the performance test demand of the express network or the network equipment, under the 10G network condition, have the performance test requirement of adopting hardware approach to realize just reaching rfc1242, rfc2544 regulation only.And hardware approach is realized also adopting application-specific integrated circuit (ASIC) (ASIC) device to realize, just in a single day the ASIC device designs moulding, and internal logic and function just can't change, and upgradability and extensibility are relatively poor.Therefore, we adopt the FPGA technology to realize reception, extracting and the statistics of test traffic.Yet there are no any report in these all kinds of at present documents at home and abroad.
Summary of the invention
But the object of the present invention is to provide a real time high-speed ground to realize test traffic reception, extracting and statistics and upgradability and extensibility 10G network performance tester flow reception preferably, extracting and statistical circuit assembly.
The invention is characterized in: it is made up of following each circuit part:
High speed serial-parallel conversion circuit, its data input pin and the frame controller of outside are that the corresponding output end of Framer links to each other;
The data shunt circuit, its data input pin links to each other with the corresponding output end of above-mentioned high speed serial-parallel conversion circuit;
Protocol frame is submitted circuit, and its packet input links to each other with the corresponding output of above-mentioned data shunt circuit;
The data analysis pre-process circuit, its packet input links to each other with the corresponding output end of above-mentioned data shunt circuit, so that the packet that is received is made pretreatment operation;
Packet grasps circuit, and its packet input links to each other with the corresponding output end of above-mentioned data analysis pre-process circuit, so that packet is grasped; Its SRAM FPDP and external SRAM corresponding port interconnection simultaneously;
Internet information search packet protocol package is the statistical circuit of ping bag, its packet input links to each other with the corresponding output end of above-mentioned data analysis pre-process circuit, so that finish the statistical work of ping bag, comprising the statistics of overall budget number, total delay and current delay;
The stream statistical circuit, its data flow input links to each other with the corresponding output end of above-mentioned data analysis pre-process circuit, so that realize the statistics to the performance condition of data flow;
The protocol frame memory, its protocol frame input links to each other with the corresponding output end that above-mentioned protocol frame is submitted circuit;
Totally 5 of stream statistics memories, its FPDP respectively with the corresponding port interconnection of above-mentioned stream statistical circuit;
Cpu interface circuit, its each output grasp circuit, data analysis pre-process circuit, protocol frame with above-mentioned packet respectively and submit the corresponding output end of circuit, stream statistical circuit and link to each other; Each input of cpu interface circuit links to each other with the corresponding output end that above-mentioned packet grasps circuit, ping bag statistical circuit, stream statistical circuit, each stream statistics memory, protocol frame memory; Simultaneously, to also have a PORTX be communication interface transmitting-receiving and port external interconnect to above-mentioned cpu interface circuit;
Wherein, the data shunt circuit comprises:
Input register, its packet input links to each other with the corresponding output end of above-mentioned high speed serial-parallel conversion circuit;
First, second output register, promptly output register 1,2, and their packet input links to each other with the corresponding output end of above-mentioned input register respectively;
Wherein protocol frame is submitted circuit and is comprised:
Protocol frame screening circuit comprises:
Frame type is differentiated logical circuit, and its packet input links to each other with the corresponding output end of the 2nd output register in the above-mentioned data shunt circuit;
Data latches, its enable signal input, frame data input link to each other with the corresponding output end of above-mentioned frame type differentiation logical circuit respectively;
Valid data detect logical circuit, and its frame data input links to each other with the corresponding output end that above-mentioned protocol frame screens the data latches in the circuit;
Data register, its data input pin links to each other with the output that above-mentioned valid data detect logical circuit;
The count enable signal that memory space counter, above-mentioned valid data detect logical circuit output is useful signal is sent to above-mentioned memory space counter after adding 1 counter a respective input, and the value that adds after 1 is sent to above-mentioned 1 counter that adds;
The spatial threshold value register, its Configuration Values input links to each other with the corresponding output end of above-mentioned cpu interface circuit;
The time threshold register, its Configuration Values input links to each other with the corresponding output end of above-mentioned cpu interface circuit;
The internal clocking counter, each clock cycle counter adds 1;
First comparator, its two inputs link to each other with the corresponding output end of above-mentioned spatial threshold value register, memory space counter respectively;
Second comparator, its two inputs link to each other with two outputs of above-mentioned time threshold register, internal clocking counter respectively;
Interrupt clear register, its interrupt clear signal input part links to each other with the corresponding output end of above-mentioned cpu interface circuit; Its two reset signal outputs link to each other with the respective input of above-mentioned memory space counter, internal clocking counter respectively;
The interrupt control logic circuit, its two interruptions generate signal input part and link to each other with the corresponding output end of above-mentioned first, second comparator respectively, and its interrupt clear signal input part links to each other with the corresponding output end of above-mentioned interrupt clear register;
10 circuit that above-mentioned protocol frame is submitted in the circuit except that protocol frame screening circuit are formed interrupt circuit jointly, the protocol frame of sending here from above-mentioned protocol frame screening circuit is stored in above-mentioned protocol frame memory by above-mentioned data register, submits to upper layer software (applications) by the interrupt requests mode of above-mentioned interrupt control logic circuit by the PORTX output of above-mentioned cpu interface circuit then and handle;
Wherein, above-mentioned data analysis pre-process circuit comprises:
The port count circuit is finished port statistics and forwarding of data operation, and it comprises:
Frame number and byte number counting logical circuit, an input links to each other with the corresponding output end of the 1st output register in the above-mentioned data shunt circuit;
The frame number counter, above-mentioned frame number links to each other with the input of this frame number counter behind one adder with the frame number value output of byte number counting logical circuit, add 1 back frame number count value and send above-mentioned frame number and byte number counting logical circuit again back to, be sent to above-mentioned cpu interface circuit simultaneously again;
Byte number counter, the byte number output of above-mentioned frame number and byte number counting logical circuit link to each other with the input of this byte number counter after through one+α adder, and the byte number the behind+α is sent to above-mentioned frame number again and byte number is counted logical circuit; Simultaneously, be sent to above-mentioned cpu interface circuit again; The α value is a set point; The protocol frame filtering circuit, it filters out all protocol frames in the frame that receives, and it comprises:
Frame type is differentiated logical circuit, and its input links to each other with the corresponding output end of byte number counting logical circuit with frame number in the above-mentioned port count circuit;
Data latches, its data input pin links to each other with the corresponding output end of above-mentioned frame type differentiation logical circuit respectively with the enable signal input;
The frame head stripper circuit, it removes the PPP information frame of higher level's circuit output or mac frame frame head, comprising:
Data buffer one, its input connect the output of data latches in the above-mentioned protocol frame filtering circuit;
Data buffer two, its input connects the output of above-mentioned data buffer one;
Data word splicing control state machine, its two inputs connect the corresponding output end of above-mentioned data buffer one, two respectively;
Stream and ping data markers circuit, it checks whether each packet has stream label, makes respective markers again on side information, and promptly flow label signal str and ping wrap marking signal png, and it comprises:
Stream and ping discriminating data logical circuit, its input connect the corresponding output end of data word splicing control state machine in the above-mentioned frame head stripper circuit;
4 clap delay time register, and its input connects the output of above-mentioned stream and ping discriminating data logical circuit;
Background flows through the filter circuit, and the background stream with the option field mark in its convection tags filters, and comprising: background stream is differentiated logical circuit, and its input links to each other with 4 outputs of clapping delay time register in the ping data markers circuit with above-mentioned stream; Simultaneously, also have two inputs and above-mentioned stream to link to each other with flow label signal str, ping bag marking signal png in the ping discriminating data logical circuit;
Data latches, its data input pin, str signal input part, png signal input part link to each other with the corresponding output end that enable signal input and above-mentioned background stream are differentiated logical circuit;
The erroneous packets marking circuit, it carries out a verification and calculating and according to verification and whether wrong, adds respective markers at this packet side information place each IPv4 bag that receives, being verification and mark chk, correctly is 0, and mistake is 1, and carry out the statistics of the bag number of bad checksum, it comprises:
Verification and inspection logical circuit, its data, str signal, png signal input part flow through the corresponding output end of filtering data latches in the circuit with above-mentioned background respectively and link to each other;
The erroneous packets counter, above-mentioned verification links to each other with the input of this erroneous packets counter behind an one adder with the output of checking logical circuit, and the erroneous packets number that adds after 1 is sent verification back to and is checked logical circuit, is sent to above-mentioned cpu interface circuit simultaneously;
The routing error counting circuit, it is differentiated each packet that receives whether routing error takes place, and adds that corresponding side information is routing error mark mis, the counting of walking along the street by erroneous packets of going forward side by side; Divide data three the road to transmit simultaneously, the data that added side information are sent to next packet respectively grasp circuit, stream statistical circuit and ping bag statistical circuit; Described routing error statistical circuit comprises:
Destination interface is checked logical circuit, its data input pin, str signal input part, png signal input part and chk signal input part respectively with above-mentioned erroneous packets counting circuit in verification and check that the corresponding output end of logical circuit links to each other, and the local port number input of packet links to each other with the corresponding output end of above-mentioned cpu interface circuit;
The wrong counter of route, an output of above-mentioned purpose port test logical circuit link to each other with the respective input of this erroneous packets counter after through an one adder, again the routing error bag number that adds after 1 are returned above-mentioned purpose port test logical circuit;
4 clap delay time register, and its data input pin, str signal input part, png signal input part, chk signal input part link to each other with the corresponding output end of above-mentioned purpose port test logical circuit respectively;
Output latch one, its packet input, enable signal str signal input part link to each other with above-mentioned 4 corresponding output end of clapping delay time register respectively; The output of this latch one links to each other with the respective input of above-mentioned stream statistical circuit;
Output latch two, its data input pin, enable signal png signal link to each other with above-mentioned 4 corresponding output end of clapping delay time register respectively; The output of this latch two links to each other with the input of above-mentioned ping bag statistical circuit;
Wherein, above-mentioned packet grasps the data execution packet grasping manipulation that circuit is sent here the data analysis pre-process circuit, and it comprises:
The IP address matcher circuit, it carries out the matching inspection of source, destination address to the input packet, and is transmitted to subordinate's circuit adding on the side information after respective markers is source address matches signal sip, matching destination address signal dip, and it comprises:
IP matching addresses logical circuit, its data input pin, verification and mark chk input link to each other with 4 corresponding output end of clapping delay time registers in the above-mentioned routing error counting circuit respectively, and its routing error mark mis signal input part links to each other with the corresponding output end of above-mentioned purpose port test logical circuit; The purpose IP address of this IP matching addresses logical circuit and matched rule, source IP address and matched rule input link to each other with the corresponding output end of above-mentioned cpu interface circuit respectively;
3 clap delay time register, and its data input pin, chk signal input part, mis signal input part link to each other with the corresponding output end of above-mentioned IP matching addresses logical circuit respectively;
Packet header agreement and length field match circuit, it carries out the matching inspection of protocol number, length to the packet that receives, and be transmitted to the next stage circuit adding on the side information of packet after respective markers is protocol number matched signal pro, length 1 matched signal len1, length 2 matched signal len2, it comprises:
Packet header agreement and length field match logic circuitry, its data input pin, verification and mark chk input, routing error mark mis input link to each other with 3 corresponding output end of clapping delay time registers in the above-mentioned IP address matcher circuit respectively, and its source address matches signal sip input, matching destination address signal dip input link to each other with the corresponding output end of above-mentioned IP matching addresses logical circuit respectively; Its length 1 and matched rule, length 2 and matched rule, protocol number and matched rule input link to each other with the corresponding output end of above-mentioned cpu interface circuit respectively; So-called protocol number is meant the protocol fields of IPv4 and IPv6 heading; So-called length 1, length 2 are given message length values;
1 claps delay time register, and its data input pin, chk signal input part, mis signal input part, sip signal input part, dip signal input part link to each other with the corresponding output end of length field match logic circuitry with above-mentioned packet header agreement respectively;
The trigger match circuit, it is the trigger coupling that the partial content that it is chosen the packet that receives from higher level's circuit carries out trigger message, and be transmitted to the next stage circuit adding on the side information of packet after respective markers is trigger match signal trig1, trig2, trig3, trig4, it comprises:
The trigger match logical circuit, its data input pin, verification and mark chk input, routing error mark mis input, source address matches mark sip input, matching destination address mark dip input link to each other with 1 corresponding output end of clapping delay time register in above-mentioned packet header agreement and the length field match circuit respectively, and its other 3 side information pro, len1, len2 input link to each other with the corresponding output end of length field match logic circuitry with above-mentioned packet header agreement respectively; Its 4 trigger messages be trigger1,2,3,4 and 4 inputs of corresponding matched rule link to each other with the corresponding output end of above-mentioned cpu interface circuit; Wherein, described len1, len2 are the side informations of expression length field, and pro is meant the side information of the next header field of the protocol field of IPv4 or IPv6, i.e. protocol number matched signal; Trig1~trig4 is 4 match information that are used for the trigger rule of expression, and wherein any trigger is one group of matched rule, finishes the inspection of particular value in an IP Bao one zone is compared;
5 clap delay time register, and its data input pin, each side information chk, mis, sip, dip, pro, len1, len2 input link to each other with the corresponding output end of above-mentioned trigger match logical circuit respectively;
Data grasp control circuit, and whether it determines a packet should write in the external SRAM according to each the sideband mark in the extracting scheme contrasting data bag of configuration and remove generation SRAM written request signal; It comprises:
Grasp control logic circuit, 5 clap delay time registers and link to each other in its each side information chk, mis, sip, dip, pro, len1, len2 input and the above-mentioned trigger match circuit, and other 4 side information trig1~trig4 link to each other with trigger match logical circuit in the above-mentioned trigger match circuit;
Data latches, its data input pin, enable signal link to each other with above-mentioned 5 corresponding output end of clapping delay time register, extracting control logic circuit respectively;
The SRAM arbitration circuit, receive simultaneously from the write request of above-mentioned extracting control circuit with from the read request of cpu interface circuit, generate the read-write control signal that meets the outer SRAM sequential of sheet, wherein, read request from above-mentioned cpu interface circuit has higher priority, and it comprises:
The read-write arbitraling logic circuit, it and above-mentioned cpu interface circuit interconnect, and its another input links to each other with the corresponding output end of above-mentioned data latches, this read-write arbitraling logic circuit interconnects with the outer SRAM of sheet again;
Wherein, the statistics of the delay of overall budget number, total delay and last bag of the statistical circuit realization ping packet of ping bag, it comprises:
Packet detects logical circuit;
Postpone the extraction logic circuit;
The input of these two circuit respectively with above-mentioned data analysis pre-process circuit in the routing error counting circuit two outputs of output register two link to each other;
Ping bag number register, its input links to each other with the output that above-mentioned packet detects logical circuit;
The total delay register, the result of its storage total delay statistics;
Adder, its two inputs connect the corresponding output end that postpones extraction logic circuit and total delay register respectively, and the output of this adder links to each other with the input of total delay register;
Current delay time register, its input links to each other with the output of above-mentioned delay extraction logic circuit;
Wherein, the stream statistical circuit, it comprises:
Every flow delay statistical circuit, it adds up and gives record to the every stream packets transmission delay that comprises maximum delay, minimum delay and total delay, reads for cpu interface circuit, and it comprises:
In the stream numbering extraction logic circuit, its data input pin and above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Postpone the extraction logic circuit, the input of its input and above-mentioned stream numbering extraction logic circuit is and connects;
The total delay register;
Adder, its two inputs link to each other with the output of above-mentioned delay extraction logic circuit and total delay register respectively;
The maximum delay register;
Comparator one, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned maximum delay register respectively;
The minimum delay register;
Comparator two, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned minimum delay register respectively;
2 circuit-switched data selectors one, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned maximum delay register respectively;
2 circuit-switched data selectors two, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned minimum delay register respectively;
Write data register, its three inputs link to each other with the output of above-mentioned adder with two data selectors one, two respectively;
Read data register, its data-out port links to each other with the input of above-mentioned total delay register, maximum delay register, minimum delay register;
The read/write address register, its data input pin links to each other with the output of above-mentioned stream numbering extraction logic circuit;
The out of order statistical circuit of every stream, it adds up the number of dropped packets of every stream, out of order and retransmission count information, and the storage statistics, reads for cpu interface circuit, and it comprises:
In the stream numbering extraction logic circuit, its data input pin and above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Bag sequence number extraction logic circuit, the input of its data input pin and above-mentioned stream numbering extraction logic circuit also connects; Lost package number register;
Retransmission packet number register;
Out of order bag number register;
RFC1242 windowing mechanism controller, its 4 inputs link to each other with the output of above-mentioned bag sequence number extraction logic circuit and lost package, retransmission packet, each number register of out of order bag respectively;
Write data register, its input links to each other with the output of above-mentioned RFC1242 windowing mechanism controller;
Read data register, its data output end links to each other with the input of above-mentioned lost package, retransmission packet, each number register of out of order bag;
The read/write address register, its data input pin links to each other with the output of above-mentioned stream numbering extraction logic circuit;
The real time delay statistical circuit, it decides according to option territory in the stream label which bar stream is carried out the real time delay statistics, and stores corresponding statistics, reads for cpu interface circuit, and it comprises:
Postpone the extraction logic circuit, in its data input pin and the above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Delay time register, its input links to each other with the output of above-mentioned delay extraction logic circuit;
Write data register, its input links to each other with the output of above-mentioned delay time register;
The next address register;
Writing address register, its input links to each other with the output of above-mentioned next address register, and its output links to each other with the input of above-mentioned next address register after through an one adder, the value that adds after 1 is returned this writing address register;
Postpone the distribution statistics circuit, it does the delay distribution statistics according to option territory decision in the stream label to which bar stream, and the statistics storage also supplies cpu interface circuit to read, and it comprises:
Postpone the extraction logic circuit, in its data input pin and the above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Data comparison circuit, its two inputs link to each other with 15 outputs that postpone the interval endpoint register of above-mentioned delay extraction logic circuit, cpu interface circuit respectively;
The read/write address register, its input links to each other with the output of above-mentioned data comparison circuit;
Postpone a number register in interval;
Read data register, its data output end links to each other with the input of a delay number register in the above-mentioned interval;
Write data register, its data input pin links to each other with the output of a delay number register in the above-mentioned interval;
Every stream statistical circuit, the data that comprise every stream byte number, overall budget number that its statistics receives, and store for cpu interface circuit and read, it comprises:
In the stream numbering extraction logic circuit, its data input pin and above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
The byte number register;
Bag number register;
Read data register, its two data outputs link to each other with the input of above-mentioned byte number register, bag number register respectively;
Write data register, the output valve of above-mentioned bag number register adds the input that is sent to this write data register after 1, and the output valve of above-mentioned byte number register adds the input that is sent to this write data register behind the α;
The read/write address register, its input links to each other with the output of above-mentioned stream numbering extraction logic circuit;
Wherein, 5 stream statistics memory I, it respectively with above-mentioned every flow delay statistical circuit in, in the out of order statistical circuit of every stream, postpone in the distribution statistics circuit and in every stream statistical circuit the input of read data register link to each other, and link to each other with their write data register, each output of read/write address register; The input of these 5 stream statistics memories also links to each other with each output of write data register, writing address register in the above-mentioned real time delay statistical circuit;
Wherein, cpu interface circuit instructs according to outer CPU and finishes the configuration of each configuration register and the submission of each statistics, and it comprises:
The cpu address register;
CPU control signal register;
The ternary scheduling logic circuit of cpu data bus, its input links to each other with the output of above-mentioned CPU control signal register;
The ternary scheduling logic circuit of above-mentioned cpu address register, CPU control signal register and cpu data bus links to each other with the outer CPU corresponding output end respectively;
Address decoder, its input links to each other with the output of above-mentioned cpu address register;
The status register group, its input links to each other with each output of the wrong counter of frame number counter, byte counter, erroneous packets counter, route in the above-mentioned data analysis pre-process circuit respectively, and its input also links to each other with ping each output of wrapping number register, total delay register, current delay time register in the above-mentioned ping bag statistical circuit;
Groups of configuration registers, its each output are connected respectively to above-mentioned packet and grasp each continuous input that circuit, data analysis pre-process circuit, protocol frame are submitted circuit, stream statistical circuit;
The external SRAM data register, its input links to each other with the SRAM arbitration circuit that packet grasps circuit;
Stream statistics memory data register group, its each input link to each other with each output of above-mentioned 5 stream statistics memories respectively;
The protocol frame memory data register, its each input links to each other with the output of above-mentioned protocol frame memory; Each output of above-mentioned address decoder links to each other with the input of above-mentioned status register group, groups of configuration registers, external SRAM data register, stream statistics memory data register group and 5 circuit of protocol frame memory data register respectively; Each input of the ternary scheduling logic circuit of above-mentioned cpu data bus links to each other with each output of above-mentioned status register group, external SRAM data register and protocol frame memory data register respectively; Simultaneously, interconnect with above-mentioned stream statistics memory data register group again; Its output then links to each other with the input of above-mentioned groups of configuration registers.
This high speed test flow performance analytical equipment is supported two kinds of patterns: the pattern of 10G POS and 10G Ethernet LAN/WAN.It has realized carrying out real-time statistics and extracting from a 0C192 or 10G Ethernet interface acceptance test packet, thus obtain various performance index and will grasp after data deposit the outer SRAM confession of sheet CPU in and read.This equipment is supported the performance test of IPv4 and IPv6 simultaneously, can realize that the linear velocity of minimum 20 byte data bags is handled, and support that CPU reads various performance index in real time.
Description of drawings
Fig. 1 stream label structure chart;
Fig. 2 test macro totally constitutes;
Fig. 3 tester backboard, mainboard are connected situation with master control borad;
Fig. 4 tester mainboard structure block diagram;
Fig. 5 tester mainboard receives the FPGA cut-away view;
Fig. 6 data shunt circuit;
Fig. 7 protocol frame is submitted circuit;
Fig. 8 data analysis pre-process circuit;
Fig. 9 packet grasps circuit;
Figure 10 ping wraps statistical circuit;
Figure 11 flows statistical circuit;
Figure 12 cpu interface circuit.
Embodiment
This high speed test flow performance analytical equipment realizes for being sent by this tester transmit port and through equipment under test (DeviceUnder Test, DUT) the high speed test flow of Zhuan Faing receives and analyzes, thereby from test traffic, add up (Stat.) various performance index, and various satisfactory packets are grasped (Capture) according to customer requirements.This device interior employing 128bit data wire adds the form of some side informations, so the internal work clock adopts 100MHz can satisfy the requirement of the 10Gbps data being carried out real-time analysis.This equipment can comprise by the performance index that statistics obtains: port count, bag error count, routing error counting, every flow accounting, delay distribution statistics, real time delay statistics, every flow delay counting, packet loss counting, out of order bag counting, retransmission packet are counted, these performance index of utilizing this hardware circuit to obtain, upper layer software (applications) can further obtain throughput, Loss Rate, performance index such as characteristic back-to-back through handling; In addition, this equipment also can mate packet and grasps according to following user's request: IP source address and destination address, packet header protocol fields, packet length, partial data bag content.
In this equipment, for the test data fluidity can index statistics and be based on for the extracting of packet that stream label carries out.Stream label (signature) is the mark of being inserted by tester transmit leg circuit relevant with various performance index that is positioned at IP grouped data part.Its structure as shown in Figure 1.
The mentality of designing of the most of circuit module of this equipment is such: when receiving a data grouping, find respective field in stream label or the IP header according to the operation purpose, obtain some performance index in view of the above or further operate.
Whole tester system is made up of three parts: monitoring equipment (monitor), tester (tester) and equipment under test (DUT), the connection situation as shown in Figure 2.Tester is finished the basic function of test, comprises the generation of measurement, route message of the generation of test traffic and reception, test statistics and message intercepting etc.Monitoring equipment is finished control to tester by message mechanism, and be responsible for the user alternately, comprise the analysis of setting, test result of test parameter and demonstration etc.In test macro, each test interface of tester directly links to each other with each interface of test router, links to each other by the 100M Ethernet between tester and the monitoring equipment.When many testers participated in test, each tester simultaneous monitoring equipment used 100M Hub to connect, and finished co-ordination between each tester by monitoring equipment.
Tester (tester) has comprised the hardware circuit design in the whole test system, and its each integrated circuit board connection layout as shown in Figure 3.Mainboard is used to realize the generation and the analysis of test traffic; Master control borad be used to realize between each mainboard synchronously and the cascade between the tester; Backboard is responsible for the mutual of control information between each tester mainboard and the master control borad.
The tester mainboard is a most important parts in the tester, and its external interface and internal circuit configuration are as shown in Figure 4.It comprises the CPU control module, cascade circuit module, ethernet communication module (not drawing among the figure), FPGA flow generate and statistics receiver module and 10G optical interface module synchronously.
The present invention has obtained realization on the FPGA device of the Stratix of altera corp GX EP1SGX40DF1020C6 model.Be distributed in around this device and mainly be frame controller Framer chip and static memory sram chip with its peripheral chip that directly links to each other, its operational environment as shown in Figure 4.During real work, FPGA passes through the SPI4.2 interface from Framer acceptance test data traffic; Then, the test data flow in FPGA inside through analyzing step by step, thereby obtain various performance index and be stored in inner register or the inner RAM that hews out in, meet the user simultaneously and mate a part of data of requirement and be stored among the SRAM of FPGA outside after crawled.The data width of FPGA inside adopts 128bit, and the inter-process clock adopts the 100MHz clock.
Introduce data flow of the present invention in detail below in conjunction with accompanying drawing.
At first, as shown in Figure 5, the 16bit differential data of the 622MHz that meets the SPI4.2 interface specification that comes from the framer chip is received by the high speed serial-parallel conversion circuit.Through the processing of high speed serial-parallel conversion circuit, the differential data of these 16bit is converted to the single-ended data-signal of 128bit, and to meet the signal form output of Atlantic interface specification.
The data shunt circuit receives data by the Atlantic interface from the high speed serial-parallel conversion circuit, it is copied into two-way with data then, and one the tunnel is sent to the data analysis pre-process circuit, is used for adding up and grasping, another road is sent to protocol frame and is submitted circuit, is used for mutual between the upper-layer protocol software.The formation of this two paths of data all comprises protocol frame and Frame at first, and wherein the Frame of the existing band stream label of Frame also has the Frame of not being with stream label, and what have some encapsulation in the frame of stream label is the ping bag.
For a circuit-switched data that is sent to the data analysis pre-process circuit, as shown in Figure 8, successively the circuit structure and the corresponding process operations of process are as described below successively for these data.
Port count circuit: carry out the frame number counting and receive the byte number counting.The end mark that frame number and byte number counting logic whenever detect a frame just adds 1 with the frame number counter; Simultaneously when it whenever detects an active data word, if this data word is not the end of a frame, then byte counter is added 16 (128bit=16 bytes), otherwise byte counter is added effective word joint number in this data word.Simultaneously, data are input to the next stage circuit without change.
The protocol frame filtering circuit: this circuit-switched data is used for adding up and grasping, and therefore here protocol frame is filtered out.Frame type is differentiated the value of the protocol fields of logical foundation frame head and is judged that the frame of handling is IP Frame or protocol frame, if the IP Frame is then opened data latches and made it pass through, otherwise will not pass through.Will an only remaining IP Frame through the data after this filtering circuit processing.
Frame head stripper circuit:, the frame head of IP Frame is peeled off for further facilitating the processing of data.Two data words that will receive in succession earlier are stored in two buffers, are responsible for respectively getting two partial datas in the buffer by data word splicing control state machine then and are spliced into a new 128bit word, deliver to the next stage circuit.Form by the IP bag fully through the data after the processing of frame head stripper circuit.
Stream and Ping data markers circuit: just arrived the existing IP bag that has stream label of IP bag here, the IP bag that does not have stream label is also arranged, wherein some is the ping bag, does not have diacritics each other.Because subsequent conditioning circuit is wanted stream data (the IP bag that promptly has stream label) and the special processing of ping bag, therefore with side information they is distinguished here.Stream passes through to detect stream label and IP packet header protocol field (or next header field) with Ping discriminating data logic, screens out flow data and ping bag, and comes mark with side information str and png respectively.
Background flows through the filter circuit: background stream is differentiated logic by checking the Option field in the stream label judges whether the current IP bag belongs to background stream, if background stream then will not pass through.
The erroneous packets counting circuit: recomputate the stream label verification and with the verification of IPv4 packet header and, check whether wrong generation, if find mistake, then the erroneous packets counter adds 1; Whether simultaneously add 1bit side information chk again, being used for writing down the current IP bag is wrong bag.
The wrong counting circuit of route: the value and the local port number in DstPort territory in the stream label are compared, if do not wait, then the wrong counter of route adds 1; Add simultaneously 1bit side information mis again and export to packet extracting circuit synchronously, be used for writing down the current IP bag whether routing error takes place with the data that postpone 4 timeticks.In addition, the wrong counting circuit of this route also flows to stream statistical circuit and Ping bag statistical circuit respectively with flow data and ping bag, and the identification of flow data and ping bag decides according to the value of side information str and png respectively.
IP bag is divided into three the tunnel: the one tunnel after the wrong counting circuit output of route and is sent to packet and grasps circuit, is used for grasping according to user's request; One the tunnel is sent to the stream statistical circuit, is used for obtaining the various performance index relevant with stream; Ping bag statistical circuit is sent on another road, is used for the bag number of ping bag and delay etc. are added up.
The following introduction earlier is sent to the situation that packet grasps the IP bag of circuit, as shown in Figure 9.
At first, data are passed the IP address matcher circuit, carry out the coupling of IP address field.According to source IP address and matched rule, purpose IP address and matched rule by the CPU configuration, check source IP address and purpose IP address field in the IP packet header, on side information sip and dip, stamp respective markers respectively for the IP bag that meets matched rule.Then, data are passed packet header agreement and length field match circuit again, this circuit is checked protocol field (IPv4) or the next header field (IPv6) and the length field in IP packet header according to the matched rule of CPU configuration, wherein the length coupling is supported the coupling of two rules, therefore this process common property is given birth to 3bit side information (pro, len1 and len2).Next, data are finished the coupling of 4 user trigger rules when passing the trigger match circuit, produce 4bit side information (trig1, trig2, trig3 and trig4).A trigger is one group of matched rule, can finish the inspection of certain bits in an IP Bao one zone is compared.
Next step, data and side information thereof are input to data and grasp control circuit, and whether extracting control logic wherein grasps according to the value determination data of each side information, if decision is grasped, then allows data pass through this circuit, sends into the SRAM arbitration circuit.At last, the read request of writing SRAM request and cpu interface circuit of SRAM arbitration circuit deal with data extracting simultaneously control circuit produces correct SRAM read-write control signal.
Next introduce a circuit-switched data that is sent to the stream statistical circuit from the wrong counting circuit of route more in detail, as shown in figure 11.
In the stream statistical circuit, all IP bags all are flow datas, and these flow datas are inputed to the real time delay statistical circuit simultaneously concurrently, postpone distribution statistics circuit, every stream statistical circuit, every flow delay statistical circuit and the out of order statistical circuit of every stream.
In the real time delay statistical circuit, the timestamp in the stream label of each IP bag is extracted, and deducts timestamp with the value of local clock counter then and just obtains delay.In this circuit, whenever obtain a delay and just it is written in the 1st the stream statistics memory.
In postponing the distribution statistics circuit, the still similar foregoing length of delay that obtains, 15 that then this length of delay and CPU are configured postpone interval endpoints and compare, and draw it and belong to 0---and 15 which interval, this interval number is address, corresponding statistics memory location.This memory location from the 2nd stream statistics memory is read this interval and is postponed number then, writes back this address again after adding 1.
In every stream statistical circuit, the DstNo territory in the stream label of each IP bag is extracted, as address, corresponding statistics memory location.According to this address, IP bag number and byte number, the original position of restoring after the renewal are read in this memory location from the 3rd stream statistics memory.
In every flow delay statistical circuit, the similar foregoing length of delay that obtains, and the DstNo territory in the stream label of IP bag as address, statistics memory location accordingly.According to this address, minimum delay, maximum delay and total delay are read, the original position of restoring after the renewal in this memory location from the 4th stream statistics memory.Concrete more new approach is the minimum value of getting initial value and new length of delay the minimum delay, and maximum delay is got the maximum of initial value and new length of delay, total delay get initial value and new length of delay and.
In the out of order statistical circuit of every stream, be used as address, corresponding statistics memory location under still the DstNo territory in the stream label of IP bag being extracted, also need to extract the bag sequence number sequence territory in the stream label simultaneously.Use the windowing mechanism described in the RFC 1242,, constantly revise the 5th lost package number, retransmission packet number and the out of order bag number in the stream statistics memory in conjunction with the bag sequence number that receives bag and the window value of maintenance.
In addition, one road IP data of exporting from the wrong counting circuit of route that also have have been sent to Ping bag statistical circuit, and bag number, total delay and current delay that the ping that receives wraps are added up.
At last, at first crotch of data flow, promptly data shunt circuit place also has a circuit-switched data to be sent to protocol frame and submits circuit.As shown in Figure 7, submit circuit inside at protocol frame, data filter out the IP Frame only remaining protocol frame through protocol frame screening circuit earlier.Then, protocol frame arrives interrupt circuit, is at first deposited in the protocol frame memory, produces according to certain condition and interrupts, and request CPU handles the protocol frame of all buffer memorys.The condition that generation is interrupted is in the protocol frame memory data are arranged, and the space hold of protocol frame memory to have surpassed space threshold value or the free time since a last interrupt requests above a time threshold, just once interruption of generation.

Claims (1)

1.10G the reception of network performance tester flow, extracting and statistical circuit device is characterized in that, it is to be the extensive programmable digital integrated circuit (IC)-components that FPGA realizes with field programmable gate array, and it is made up of following each circuit part:
High speed serial-parallel conversion circuit, its data input pin and the frame controller of outside are that the corresponding output end of Framer links to each other;
The data shunt circuit, its data input pin links to each other with the corresponding output end of above-mentioned high speed serial-parallel conversion circuit;
Protocol frame is submitted circuit, and its packet input links to each other with the corresponding output of above-mentioned data shunt circuit;
The data analysis pre-process circuit, its packet input links to each other with the corresponding output end of above-mentioned data shunt circuit, so that the packet that is received is made pretreatment operation;
Packet grasps circuit, and its packet input links to each other with the corresponding output end of above-mentioned data analysis pre-process circuit, so that packet is grasped; Its SRAM FPDP and external SRAM corresponding port interconnection simultaneously;
Internet information search packet protocol package is the statistical circuit of ping bag, its packet input links to each other with the corresponding output end of above-mentioned data analysis pre-process circuit, so that finish the statistical work of ping bag, comprising the statistics of overall budget number, total delay and current delay;
The stream statistical circuit, its data flow input links to each other with the corresponding output end of above-mentioned data analysis pre-process circuit, so that realize the statistics to the performance condition of data flow;
The protocol frame memory, its protocol frame input links to each other with the corresponding output end that above-mentioned protocol frame is submitted circuit;
Totally 5 of stream statistics memories, its FPDP respectively with the corresponding port interconnection of above-mentioned stream statistical circuit;
Cpu interface circuit, its each output grasp circuit, data analysis pre-process circuit, protocol frame with above-mentioned packet respectively and submit the corresponding output end of circuit, stream statistical circuit and link to each other; Each input of cpu interface circuit links to each other with the corresponding output end that above-mentioned packet grasps circuit, ping bag statistical circuit, stream statistical circuit, each stream statistics memory, protocol frame memory; Simultaneously, to also have a PORTX be communication interface transmitting-receiving and port external interconnect to above-mentioned cpu interface circuit;
Wherein, the data shunt circuit comprises:
Input register, its packet input links to each other with the corresponding output end of above-mentioned high speed serial-parallel conversion circuit;
First, second output register, promptly output register 1,2, and their packet input is deposited with above-mentioned input respectively
The corresponding output end of device links to each other;
Wherein protocol frame is submitted circuit and is comprised:
Protocol frame screening circuit comprises:
Frame type is differentiated logical circuit, and its packet input links to each other with the corresponding output end of the 2nd output register in the above-mentioned data shunt circuit;
Data latches, its enable signal input, frame data input link to each other with the corresponding output end of above-mentioned frame type differentiation logical circuit respectively;
Valid data detect logical circuit, and its frame data input links to each other with the corresponding output end that above-mentioned protocol frame screens the data latches in the circuit;
Data register, its data input pin links to each other with the output that above-mentioned valid data detect logical circuit;
The count enable signal that memory space counter, above-mentioned valid data detect logical circuit output is useful signal is sent to above-mentioned memory space counter after adding 1 counter a respective input, and the value that adds after 1 is sent to above-mentioned 1 counter that adds;
The spatial threshold value register, its Configuration Values input links to each other with the corresponding output end of above-mentioned cpu interface circuit;
The time threshold register, its Configuration Values input links to each other with the corresponding output end of above-mentioned cpu interface circuit;
The internal clocking counter, each clock cycle counter adds 1;
First comparator, its two inputs link to each other with the corresponding output end of above-mentioned spatial threshold value register, memory space counter respectively;
Second comparator, its two inputs link to each other with two outputs of above-mentioned time threshold register, internal clocking counter respectively;
Interrupt clear register, its interrupt clear signal input part links to each other with the corresponding output end of above-mentioned cpu interface circuit; Its two reset signal outputs link to each other with the respective input of above-mentioned memory space counter, internal clocking counter respectively;
The interrupt control logic circuit, its two interruptions generate signal input part and link to each other with the corresponding output end of above-mentioned first, second comparator respectively, and its interrupt clear signal input part links to each other with the corresponding output end of above-mentioned interrupt clear register;
10 circuit that above-mentioned protocol frame is submitted in the circuit except that protocol frame screening circuit are formed interrupt circuit jointly, the protocol frame of sending here from above-mentioned protocol frame screening circuit is stored in above-mentioned protocol frame memory by above-mentioned data register, submits to upper layer software (applications) by the interrupt requests mode of above-mentioned interrupt control logic circuit by the PORTX output of above-mentioned cpu interface circuit then and handle;
Wherein, above-mentioned data analysis pre-process circuit comprises:
The port count circuit is finished port statistics and forwarding of data operation, and it comprises:
Frame number and byte number counting logical circuit, an input links to each other with the corresponding output end of the 1st output register in the above-mentioned data shunt circuit;
The frame number counter, above-mentioned frame number links to each other with the input of this frame number counter behind one adder with the frame number value output of byte number counting logical circuit, add 1 back frame number count value and send above-mentioned frame number and byte number counting logical circuit again back to, be sent to above-mentioned cpu interface circuit simultaneously again;
Byte number counter, the byte number output of above-mentioned frame number and byte number counting logical circuit link to each other with the input of this byte number counter after through one+α adder, and the byte number the behind+α is sent to above-mentioned frame number again and byte number is counted logical circuit; Simultaneously, be sent to above-mentioned cpu interface circuit again; The α value is a set point;
The protocol frame filtering circuit, it filters out all protocol frames in the frame that receives, and it comprises:
Frame type is differentiated logical circuit, and its input links to each other with the corresponding output end of byte number counting logical circuit with frame number in the above-mentioned port count circuit;
Data latches, its data input pin links to each other with the corresponding output end of above-mentioned frame type differentiation logical circuit respectively with the enable signal input;
The frame head stripper circuit, it removes the PPP information frame of higher level's circuit output or mac frame frame head, comprising:
Data buffer one, its input connect the output of data latches in the above-mentioned protocol frame filtering circuit;
Data buffer two, its input connects the output of above-mentioned data buffer one;
Data word splicing control state machine, its two inputs connect the corresponding output end of above-mentioned data buffer one, two respectively;
Stream and ping data markers circuit, it checks whether each packet has stream label, makes respective markers again on side information, and promptly flow label signal str and ping wrap marking signal png, and it comprises:
Stream and ping discriminating data logical circuit, its input connect the corresponding output end of data word splicing control state machine in the above-mentioned frame head stripper circuit;
4 clap delay time register, and its input connects the output of above-mentioned stream and ping discriminating data logical circuit; Background flows through the filter circuit, and the background stream with the option field mark in its convection tags filters, and comprising:
Background stream is differentiated logical circuit, and its input links to each other with 4 outputs of clapping delay time register in the ping data markers circuit with above-mentioned stream; Simultaneously, also have two inputs and above-mentioned stream to link to each other with flow label signal str, ping bag marking signal png in the ping discriminating data logical circuit;
Data latches, its data input pin, str signal input part, png signal input part link to each other with the corresponding output end that enable signal input and above-mentioned background stream are differentiated logical circuit;
The erroneous packets marking circuit, it carries out a verification and calculating and according to verification and whether wrong, adds respective markers at this packet side information place each IPv4 bag that receives, being verification and mark chk, correctly is 0, and mistake is 1, and carry out the statistics of the bag number of bad checksum, it comprises:
Verification and inspection logical circuit, its data, str signal, png signal input part flow through the corresponding output end of filtering data latches in the circuit with above-mentioned background respectively and link to each other;
Erroneous packets counter, above-mentioned verification and the output of checking logical circuit behind an one adder with this erroneous packets meter
The input of number device links to each other, and the erroneous packets number that adds after 1 is sent verification back to and checked logical circuit, is sent to above-mentioned cpu interface circuit simultaneously;
The routing error counting circuit, it is differentiated each packet that receives whether routing error takes place, and adds that corresponding side information is routing error mark mis, the counting of walking along the street by erroneous packets of going forward side by side; Divide data three the road to transmit simultaneously, the data that added side information are sent to next packet respectively grasp circuit, stream statistical circuit and ping bag statistical circuit; Described routing error statistical circuit comprises:
Destination interface is checked logical circuit, its data input pin, str signal input part, png signal input part and chk signal input part respectively with above-mentioned erroneous packets counting circuit in verification and check that the corresponding output end of logical circuit links to each other, and the local port number input of packet links to each other with the corresponding output end of above-mentioned cpu interface circuit;
The wrong counter of route, an output of above-mentioned purpose port test logical circuit link to each other with the respective input of this erroneous packets counter after through an one adder, again the routing error bag number that adds after 1 are returned above-mentioned purpose port test logical circuit;
4 clap delay time register, and its data input pin, str signal input part, png signal input part, chk signal input part link to each other with the corresponding output end of above-mentioned purpose port test logical circuit respectively;
Output latch one, its packet input, enable signal str signal input part link to each other with above-mentioned 4 corresponding output end of clapping delay time register respectively; The output of this latch one links to each other with the respective input of above-mentioned stream statistical circuit; Output latch two, its data input pin, enable signal png signal link to each other with above-mentioned 4 corresponding output end of clapping delay time register respectively; The output of this latch two links to each other with the input of above-mentioned ping bag statistical circuit;
Wherein, above-mentioned packet grasps the data execution packet grasping manipulation that circuit is sent here the data analysis pre-process circuit, and it comprises:
The IP address matcher circuit, it carries out the matching inspection of source, destination address to the input packet, and is transmitted to subordinate's circuit adding on the side information after respective markers is source address matches signal sip, matching destination address signal dip, and it comprises:
IP matching addresses logical circuit, its data input pin, verification and mark chk input link to each other with 4 corresponding output end of clapping delay time registers in the above-mentioned routing error counting circuit respectively, and its routing error mark mis signal input part links to each other with the corresponding output end of above-mentioned purpose port test logical circuit; The purpose IP address of this IP matching addresses logical circuit and matched rule, source IP address and matched rule input link to each other with the corresponding output end of above-mentioned cpu interface circuit respectively;
3 clap delay time register, and its data input pin, chk signal input part, mis signal input part link to each other with the corresponding output end of above-mentioned IP matching addresses logical circuit respectively;
Packet header agreement and length field match circuit, it carries out the matching inspection of protocol number, length to the packet that receives, and be transmitted to the next stage circuit adding on the side information of packet after respective markers is protocol number matched signal pro, length 1 matched signal len1, length 2 matched signal len2, it comprises:
Packet header agreement and length field match logic circuitry, its data input pin, verification and mark chk input, routing error mark mis input link to each other with 3 corresponding output end of clapping delay time registers in the above-mentioned IP address matcher circuit respectively, and its source address matches signal sip input, matching destination address signal dip input link to each other with the corresponding output end of above-mentioned IP matching addresses logical circuit respectively; Its length 1 and matched rule, length 2 and matched rule, protocol number and matched rule input link to each other with the corresponding output end of above-mentioned cpu interface circuit respectively; So-called protocol number is meant the protocol fields of IPv4 and IPv6 heading; So-called length 1, length 2 are given message length values; 1 claps delay time register, and its data input pin, chk signal input part, mis signal input part, sip signal input part, dip signal input part link to each other with the corresponding output end of length field match logic circuitry with above-mentioned packet header agreement respectively; The trigger match circuit, it is the trigger coupling that the partial content that it is chosen the packet that receives from higher level's circuit carries out trigger message, and be transmitted to the next stage circuit adding on the side information of packet after respective markers is trigger match signal trig1, trig2, trig3, trig4, it comprises:
The trigger match logical circuit, its data input pin, verification and mark chk input, routing error mark mis input, source address matches mark sip input, matching destination address mark dip input link to each other with 1 corresponding output end of clapping delay time register in above-mentioned packet header agreement and the length field match circuit respectively, and its other 3 side information pro, len1, len2 input link to each other with the corresponding output end of length field match logic circuitry with above-mentioned packet header agreement respectively; Its 4 trigger messages be trigger1,2,3,4 and 4 inputs of corresponding matched rule link to each other with the corresponding output end of above-mentioned cpu interface circuit; Wherein, described len1, len2 are the side informations of expression length field, and pro is meant the side information of the next header field of the protocol field of IPv4 or IPv6, i.e. protocol number matched signal; Trig1~trig4 is 4 match information that are used for the trigger rule of expression, and wherein any trigger is one group of matched rule, finishes the inspection of particular value in an IP Bao one zone is compared;
5 clap delay time register, and its data input pin, each side information chk, mis, sip, dip, pro, len1, len2 input link to each other with the corresponding output end of above-mentioned trigger match logical circuit respectively;
Data grasp control circuit, and whether it determines a packet should write in the external SRAM according to each the sideband mark in the extracting scheme contrasting data bag of configuration and remove generation SRAM written request signal; It comprises:
Grasp control logic circuit, 5 clap delay time registers and link to each other in its each side information chk, mis, sip, dip, pro, len1, len2 input and the above-mentioned trigger match circuit, and other 4 side information trig1~trig4 link to each other with trigger match logical circuit in the above-mentioned trigger match circuit;
Data latches, its data input pin, enable signal link to each other with above-mentioned 5 corresponding output end of clapping delay time register, extracting control logic circuit respectively;
The SRAM arbitration circuit, receive simultaneously from the write request of above-mentioned extracting control circuit with from the read request of cpu interface circuit, generate the read-write control signal that meets the outer SRAM sequential of sheet, wherein, read request from above-mentioned cpu interface circuit has higher priority, and it comprises:
The read-write arbitraling logic circuit, it and above-mentioned cpu interface circuit interconnect, and its another input links to each other with the corresponding output end of above-mentioned data latches, this read-write arbitraling logic circuit interconnects with the outer SRAM of sheet again;
Wherein, the statistics of the delay of overall budget number, total delay and last bag of the statistical circuit realization ping packet of ping bag, it comprises:
Packet detects logical circuit;
Postpone the extraction logic circuit;
The input of these two circuit respectively with above-mentioned data analysis pre-process circuit in the routing error counting circuit two outputs of output register two link to each other;
Ping bag number register, its input links to each other with the output that above-mentioned packet detects logical circuit;
The total delay register, the result of its storage total delay statistics;
Adder, its two inputs connect the corresponding output end that postpones extraction logic circuit and total delay register respectively, and the output of this adder links to each other with the input of total delay register;
Current delay time register, its input links to each other with the output of above-mentioned delay extraction logic circuit;
Wherein, the stream statistical circuit, it comprises:
Every flow delay statistical circuit, it adds up and gives record to the every stream packets transmission delay that comprises maximum delay, minimum delay and total delay, reads for cpu interface circuit, and it comprises:
In the stream numbering extraction logic circuit, its data input pin and above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Postpone the extraction logic circuit, the input of its input and above-mentioned stream numbering extraction logic circuit is and connects; The total delay register;
Adder, its two inputs link to each other with the output of above-mentioned delay extraction logic circuit and total delay register respectively;
The maximum delay register;
Comparator one, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned maximum delay register respectively;
The minimum delay register;
Comparator two, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned minimum delay register respectively;
2 circuit-switched data selectors one, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned maximum delay register respectively;
2 circuit-switched data selectors two, its two inputs link to each other with each output that postpones the extraction logic circuit with above-mentioned minimum delay register respectively;
Write data register, its three inputs link to each other with the output of above-mentioned adder with two data selectors one, two respectively;
Read data register, its data-out port links to each other with the input of above-mentioned total delay register, maximum delay register, minimum delay register;
The read/write address register, its data input pin links to each other with the output of above-mentioned stream numbering extraction logic circuit;
The out of order statistical circuit of every stream, it adds up the number of dropped packets of every stream, out of order and retransmission count information, and the storage statistics, reads for cpu interface circuit, and it comprises:
In the stream numbering extraction logic circuit, its data input pin and above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Bag sequence number extraction logic circuit, the input of its data input pin and above-mentioned stream numbering extraction logic circuit also connects; Lost package number register;
Retransmission packet number register;
Out of order bag number register;
RFC1242 windowing mechanism controller, its 4 inputs link to each other with the output of above-mentioned bag sequence number extraction logic circuit and lost package, retransmission packet, each number register of out of order bag respectively, and wherein RFC1242 1242 the suggestion of being numbered of representing to submit to the Internet engineering duty group IETF is solicited book RFC;
Write data register, its input links to each other with the output of above-mentioned RFC1242 windowing mechanism controller;
Read data register, its data output end links to each other with the input of above-mentioned lost package, retransmission packet, each number register of out of order bag;
The read/write address register, its data input pin links to each other with the output of above-mentioned stream numbering extraction logic circuit;
The real time delay statistical circuit, it decides according to option territory in the stream label which bar stream is carried out the real time delay statistics, and stores corresponding statistics, reads for cpu interface circuit, and it comprises:
Postpone the extraction logic circuit, in its data input pin and the above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Delay time register, its input links to each other with the output of above-mentioned delay extraction logic circuit;
Write data register, its input links to each other with the output of above-mentioned delay time register;
The next address register;
Writing address register, its input links to each other with the output of above-mentioned next address register, and its output links to each other with the input of above-mentioned next address register after through an one adder, the value that adds after 1 is returned this writing address register;
Postpone the distribution statistics circuit, it does the delay distribution statistics according to option territory decision in the stream label to which bar stream, and the statistics storage also supplies cpu interface circuit to read, and it comprises:
Postpone the extraction logic circuit, in its data input pin and the above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
Data comparison circuit, its two inputs link to each other with 15 outputs that postpone the interval endpoint register of above-mentioned delay extraction logic circuit, cpu interface circuit respectively;
The read/write address register, its input links to each other with the output of above-mentioned data comparison circuit;
Postpone a number register in interval;
Read data register, its data output end links to each other with the input of a delay number register in the above-mentioned interval;
Write data register, its data input pin links to each other with the output of a delay number register in the above-mentioned interval;
Every stream statistical circuit, the data that comprise every stream byte number, overall budget number that its statistics receives, and store for cpu interface circuit and read, it comprises:
In the stream numbering extraction logic circuit, its data input pin and above-mentioned data analysis pre-process circuit in the routing error counting circuit output of output register one link to each other;
The byte number register;
Bag number register;
Read data register, its two data outputs link to each other with the input of above-mentioned byte number register, bag number register respectively;
Write data register, the output valve of above-mentioned bag number register adds the input that is sent to this write data register after 1, and the output valve of above-mentioned byte number register adds the input that is sent to this write data register behind the α;
The read/write address register, its input links to each other with the output of above-mentioned stream numbering extraction logic circuit;
Wherein, 5 stream statistics memory I, it respectively with above-mentioned every flow delay statistical circuit in, in the out of order statistical circuit of every stream, postpone in the distribution statistics circuit and in every stream statistical circuit the input of read data register link to each other, and link to each other with their write data register, each output of read/write address register; The input of these 5 stream statistics memories also links to each other with each output of write data register, writing address register in the above-mentioned real time delay statistical circuit;
Wherein, cpu interface circuit instructs according to outer CPU and finishes the configuration of each configuration register and the submission of each statistics, and it comprises:
The cpu address register;
CPU control signal register;
The ternary scheduling logic circuit of cpu data bus, its input links to each other with the output of above-mentioned CPU control signal register;
The ternary scheduling logic circuit of above-mentioned cpu address register, CPU control signal register and cpu data bus links to each other with the outer CPU corresponding output end respectively;
Address decoder, its input links to each other with the output of above-mentioned cpu address register;
The status register group, its input links to each other with each output of the wrong counter of frame number counter, byte counter, erroneous packets counter, route in the above-mentioned data analysis pre-process circuit respectively, and its input also links to each other with ping each output of wrapping number register, total delay register, current delay time register in the above-mentioned ping bag statistical circuit;
Groups of configuration registers, its each output are connected respectively to above-mentioned packet and grasp each continuous input that circuit, data analysis pre-process circuit, protocol frame are submitted circuit, stream statistical circuit;
The external SRAM data register, its input links to each other with the SRAM arbitration circuit that packet grasps circuit;
Stream statistics memory data register group, its each input link to each other with each output of above-mentioned 5 stream statistics memories respectively;
The protocol frame memory data register, its each input links to each other with the output of above-mentioned protocol frame memory;
Each output of above-mentioned address decoder links to each other with the input of above-mentioned status register group, groups of configuration registers, external SRAM data register, stream statistics memory data register group and 5 circuit of protocol frame memory data register respectively; Each input of the ternary scheduling logic circuit of above-mentioned cpu data bus links to each other with each output of above-mentioned status register group, external SRAM data register and protocol frame memory data register respectively; Simultaneously, interconnect with above-mentioned stream statistics memory data register group again; Its output then links to each other with the input of above-mentioned groups of configuration registers.
CNB200510011711XA 2005-05-13 2005-05-13 Flow receiving taking and statistic circuit assembly for 10G network performance tester Expired - Fee Related CN100372317C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510011711XA CN100372317C (en) 2005-05-13 2005-05-13 Flow receiving taking and statistic circuit assembly for 10G network performance tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510011711XA CN100372317C (en) 2005-05-13 2005-05-13 Flow receiving taking and statistic circuit assembly for 10G network performance tester

Publications (2)

Publication Number Publication Date
CN1688135A CN1688135A (en) 2005-10-26
CN100372317C true CN100372317C (en) 2008-02-27

Family

ID=35306175

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510011711XA Expired - Fee Related CN100372317C (en) 2005-05-13 2005-05-13 Flow receiving taking and statistic circuit assembly for 10G network performance tester

Country Status (1)

Country Link
CN (1) CN100372317C (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1927949A1 (en) * 2006-12-01 2008-06-04 Thomson Licensing Array of processing elements with local registers
CN101304362B (en) * 2007-05-11 2011-05-11 中芯国际集成电路制造(上海)有限公司 Retransmission buffering apparatus and data transmission method
CN101271484B (en) * 2008-01-11 2010-09-29 国际商业机器公司 Method and system for calculating delayed statistics variation caused by coupling event between two adjacent networks in integrated circuit design
CN101217422B (en) * 2008-01-15 2012-01-11 中兴通讯股份有限公司 A method to test the performance of net mouth
CN104393942A (en) * 2014-12-05 2015-03-04 成都思邦力克科技有限公司 Effective detection network testing device
CN104363147A (en) * 2014-12-05 2015-02-18 成都思邦力克科技有限公司 Testing device for filter network
CN104394035A (en) * 2014-12-05 2015-03-04 成都思邦力克科技有限公司 Network test device
CN104518929B (en) * 2014-12-26 2017-11-03 北京航天测控技术有限公司 A kind of IPv6 protocol synthesises Auto-Test System
CN104965676B (en) 2015-06-17 2018-10-16 深圳市中兴微电子技术有限公司 A kind of access method of random access memory, device and control chip
CN105721226B (en) * 2016-04-07 2019-04-02 烽火通信科技股份有限公司 A kind of QoS automatic test device and test method
CN110650064B (en) * 2019-09-09 2022-05-03 电子科技大学 Universal and configurable network flow measurement system
CN114301820A (en) * 2021-12-25 2022-04-08 江苏信而泰智能装备有限公司 Test port reservation method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040106400A1 (en) * 2002-04-18 2004-06-03 Willtek Corporation System for monitoring mobile communication performance
CN1507223A (en) * 2002-12-09 2004-06-23 华为技术有限公司 High-speed cell flow receiving and transmitting test device and method
CN1512717A (en) * 2002-12-28 2004-07-14 鸿富锦精密工业(深圳)有限公司 Network test equipment system and method
CN1549531A (en) * 2003-05-21 2004-11-24 华为技术有限公司 Apparatus for testing network equipment transmission performance and method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040106400A1 (en) * 2002-04-18 2004-06-03 Willtek Corporation System for monitoring mobile communication performance
CN1507223A (en) * 2002-12-09 2004-06-23 华为技术有限公司 High-speed cell flow receiving and transmitting test device and method
CN1512717A (en) * 2002-12-28 2004-07-14 鸿富锦精密工业(深圳)有限公司 Network test equipment system and method
CN1549531A (en) * 2003-05-21 2004-11-24 华为技术有限公司 Apparatus for testing network equipment transmission performance and method thereof

Also Published As

Publication number Publication date
CN1688135A (en) 2005-10-26

Similar Documents

Publication Publication Date Title
CN100372317C (en) Flow receiving taking and statistic circuit assembly for 10G network performance tester
CN1874313B (en) Method of processing packet and metwork device
US7903555B2 (en) Packet tracing
CN102413018B (en) FPGA (field programmable gate array) based software-hardware coordinated network test system and method
CN106257434B (en) A kind of data transmission method and device based on enhanced peripheral interconnection protocol bus
CN102495920B (en) Integrated logic analysis module based on PCIe (peripheral component interconnection express) for FPGA (field programmable gate array)
CN1319332C (en) Linux kernel based high-speed network flow measuring unit and flow measuring method
CN104168162B (en) A kind of software-hardware synergism realizes the traffic generator for interchanger validation test
CN104917628B (en) A kind of ethernet router/interchanger packet loss automatic fault diagnosis method
CN101299685B (en) Method and system for testing switching network as well as test initiation module
CN103117900A (en) Configurable industrial Ethernet data parsing system and parsing method
CN108259208A (en) A kind of method and apparatus of detection messages dyeing bit swiping
CN110493147A (en) A kind of parallel redundancy ethernet communication controller and its control method
CN104135548A (en) Static NAT realization method and device based on FPGA
US7516364B2 (en) Method for testing network devices using breakpointing
CN100375466C (en) Data packet forwarding controller and method
CN100499516C (en) Packet-switcher flow monitoring and inquiry method and line card picker
CN100387027C (en) Bag-preprocessing circuit assembly of interface card for high-speed network diversion equipment
CN110533848A (en) Interception parallel port cash register print data and the method and system for pursuing and attacking additional information
CN114338444A (en) TTE switch testing method, system, storage medium and computer equipment
CN113141279A (en) Switch mesh test system and method
CN106059927B (en) A kind of automatic reconstructed network routing device of the limited cascade of hub-and-spoke configuration and its network
CN102510383A (en) Middleware system with network traffic shaping function for aircraft electronic communication
CN116405420A (en) Network tester, network testing system and network testing method
CN100589444C (en) A broadband network access device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080227

Termination date: 20150513

EXPY Termination of patent right or utility model