<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><br><pre>At 2011-07-22 01:27:14,"Jeff Haran" <jharan@bytemobile.com> wrote:
>> -----Original Message-----
>> From: kernelnewbies-bounces@kernelnewbies.org [mailto:kernelnewbies-
>> bounces@kernelnewbies.org] On Behalf Of bill
>> Sent: Wednesday, July 20, 2011 11:11 PM
>> To: kernelnewbies
>> Subject: How to generate PAUSE frame
>>
>> Hi, all
>>
>>
>> I have a 10G NIC card with fiber interface, this NIC is drived by a
>private os
>> with l2 rxonly forwarding function,
>> and I want to test this NIC could sent out PAUSE frame.
>>
>> host client
>> +--------+ +------------+
>> | | fiber | 10G NIC |
>> | NIC | <===> | l2fwd |
>> | | | rxonly |
>> +--------+ +------------+
>>
>> If host send packet faster than client could receive, client 10G NIC
>should
>> send out PAUSE frame,
>> and use "ethtool -a eth0" on host to show any PAUSE frame received.
>>
>> How could I do this without any faster NIC card than 10G?
>>
>>
>>
>> thanks
>>
>> bill
>
>I think you are going to have a hard time finding any host in the form
>of a general purpose computer that can saturate a 10G link.
>
>You probably want to look into commercial frame generators from
>companies like Smartbits or Ixia. They have special hardware for doing
>this kind of thing. These solutions aren't cheap though.
>
>You *MIGHT* be able to do this if you replaced host with the right 10G
>switch. I am thinking if you turned off spanning tree and then looped a
>fiber from one of the switch ports back to another one, and then caused
>a broadcast frame (say an ARP request) to be injected into a third
>switch port, you might be able to cause a broadcast storm which would
>hit client's interface and that might be a high enough packet rate to
>make it generate a pause. The question then would be if the switch has
>the right software to report whether it received a pause from client.
>And I really don't know if this solution would be cheaper than getting
>one of the frame generators.
>
>Jeff Haran
>
<br>Thanks Jeff<br> I'll try to use two 10NIC cross connected to each other, see whether this way could generate PAUSE frame.<br><br>bill<br><br><br>>
>
>
>_______________________________________________
>Kernelnewbies mailing list
>Kernelnewbies@kernelnewbies.org
>http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>