Summary of the invention
The present invention proposes a kind ofly to realize the burst out method of damage of IP network accumulation based on FPGA and DDR3, and the simulation real network Frame accumulation situation that bursts out has solved in laboratory environment or the general local area network (LAN), the accumulation that is difficult to the to simulate real network problem of characteristic that bursts out.
Technical scheme of the present invention is achieved in that
A kind ofly realize the burst out method of damage of IP network accumulation based on FPGA and DDR3, comprising: by the FPGA circuit ethernet data frame that equipment under test sends is write the DDR3 memory bar; When from DDR3 memory bar sense data, arrange and judge the accumulation condition that bursts out according to the accumulation damage of bursting out, if satisfy the accumulation condition that bursts out, sense data then if do not satisfy the accumulation condition that bursts out, is then waited for up to satisfying accumulation and being burst out till the condition.
Alternatively, described FPGA circuit writes the DDR3 memory bar and stores by burst out Frame data that damage controller and DDR3 IP kernel controller send equipment under test of accumulation, wherein, described DDR3 IP kernel controller can generate by the MIG of Xilinx ISE.
Alternatively, the described accumulation damage of bursting out arranges and to comprise: accumulation burst out length, time-out time and the minimum accumulation of pattern, accumulation of bursting out burst out at interval.
Alternatively, the satisfied length that bursts out of accumulating of Frame number then satisfies and accumulates the condition that bursts out in the DDR3 memory bar, reads data from the DDR3 memory bar, accumulates the length that bursts out and can be 1-65536 natural number value.
Alternatively, if the time that the current time is accumulated the operation of bursting out apart from the last time is greater than or equal to the time-out time value, then satisfies and accumulate the condition that bursts out, read data from the DDR3 memory bar, time-out time can be the 0-100s value, and precision is Millisecond.
Alternatively, the Frame number satisfies burst out length or current time of accumulation and is greater than or equal to the time-out time value apart from burst out time of operation of last time accumulation in the DDR3 memory bar, then satisfies the accumulation condition that bursts out, and reads data from the DDR3 memory bar.
Alternatively, the satisfied length that bursts out of accumulating of Frame number in the DDR3 memory bar, and the current time was greater than or equal to two conditions of time-out time value and satisfies simultaneously apart from burst out time of operation of last time accumulation, just satisfied and accumulated the condition that bursts out, and read data from the DDR3 memory bar.
The invention has the beneficial effects as follows: of the present inventionly realize the burst out method of damage of IP network accumulation based on FPGA and DDR3, can simulate the real network Frame accumulation situation that bursts out, for scientific research or experiment provide good analog platform.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Fig. 1 accumulates the flow chart of the method for the damage of bursting out for the present invention is a kind of based on FPGA and DDR3 realization IP network.
As shown in Figure 1, of the present inventionly a kind ofly realize the burst out method of damage of IP network accumulation based on FPGA and DDR3, may further comprise the steps: at first, by the FPGA circuit ethernet data frame that equipment under test A sends is write the DDR3 memory bar; Then, when from DDR3 memory bar sense data, arrange and judge the accumulation condition that bursts out according to the accumulation damage of bursting out, if satisfy the condition that bursts out of accumulating, sense data and send to equipment under test B then if do not satisfy the accumulation condition that bursts out, is then waited for up to satisfying accumulation and being burst out till the condition.
As shown in Figure 2, the step that the ethernet data frame that equipment under test A is sent by the FPGA circuit writes the DDR3 memory bar is specially: the FPGA circuit writes the DDR3 memory bar and stores by burst out Frame data that damage controller and DDR3 IP kernel controller send equipment under test A of accumulation, wherein, DDR3 IP kernel controller can pass through the MIG(Memory Interface Generation of Xilinx ISE) generate.
When from DDR3 memory bar sense data, accumulate the condition judgment that bursts out, wherein, the accumulation damage of bursting out is provided with four settings, is respectively: accumulation burst out length, time-out time and the minimum accumulation of pattern, accumulation of bursting out burst out at interval.
The accumulation model that bursts out is divided into four kinds of modes: accumulation length, time-out time, accumulation burst out length and the time-out time of length or time-out time, accumulation that burst out that burst out satisfies simultaneously.
Accumulating the length model that bursts out is specially: need only the satisfied length that bursts out of accumulating of Frame number among the DDR3, then satisfy and accumulate the condition that bursts out, read data from the DDR3 memory bar, accumulate the length that bursts out and can be 1-65536 natural number value.
The time-out time model is specially: if the current time be greater than or equal to the time-out time value apart from burst out time of operation of last time accumulation, then satisfy the condition that bursts out of accumulating, read data from the DDR3 memory bar, time-out time can be the 0-100s value, and precision is Millisecond.
Burst out length or time-out time model of accumulation is specially: as long as the Frame number satisfies burst out length or current time of accumulation and is greater than or equal to the time-out time value apart from burst out time of operation of last time accumulation among the DDR3, then satisfy and accumulate the condition that bursts out, from the DDR3 memory bar, read data.
Burst out length and time-out time of accumulation satisfies model simultaneously and is specially: have only among the DDR3 Frame number to satisfy the accumulation length that bursts out, and the current time was greater than or equal to two conditions of time-out time value and satisfies simultaneously apart from burst out time of operation of last time accumulation, just satisfy and accumulate the condition that bursts out, read data from the DDR3 memory bar.
Wherein, minimum accumulation this accumulation of time interval burst out interval of operating time of operating time and last accumulation of bursting out of bursting out, the minimum accumulation unit millisecond at interval that bursts out, span can be 0-10 second.
For example, it is 5 that the Frame number that bursts out is accumulated in setting, and accumulating the time-out time that bursts out is 1ms, and accumulating the type that bursts out is that above two conditions satisfy simultaneously, minimum accumulation is burst out and is spaced apart 100ms, when reading data, at first carry out condition judgment so, the Frame number is greater than or equal to 5 if the accumulation of storing among the DDR3 is burst out, and accumulate the time-out time that bursts out and reach 1ms, read data frame from DDR3 so, and through after the 100ms is carried out next time the accumulation damage of bursting out again and is handled.
Fig. 3 realizes the burst out schematic diagram of an embodiment of method of damage of IP network accumulation for a kind of according to the present invention based on FPGA and DDR3.
As shown in Figure 3, the IP network accumulation is burst out to damage and is set to: accumulate the length model that bursts out, accumulating the length that bursts out is 4, and minimum accumulation is burst out and is spaced apart 5ms.8 Frame F1-F8 are arranged among Fig. 3, and the time of reaching is respectively 0-7ms; When the time is 3ms, 4 ethernet data frames are arranged in the DDR3 memory, reach and accumulate the condition that bursts out, at this moment, from the DDR3 memory bar, read 4 Frame F1-F4; Minimum accumulation is burst out to arrange and is spaced apart 5ms, accumulates the judgement of bursting out after the 5ms again; Burst out at interval behind the 5ms through minimum accumulation, judge at time 8ms that namely have 4 ethernet data frames in the DDR3 memory bar this moment, the satisfied accumulation condition that bursts out is accumulated the operation of bursting out, and reads 4 Frame F5-F8 from the DDR3 memory bar.
The invention provides and a kind ofly realize the burst out method of damage of IP network accumulation based on FPGA and DDR3, can simulate the real network Frame accumulation situation that bursts out, for scientific research or experiment provide good analog platform.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.