Skip to contentSkip to conversation

How to generate PAUSE frame

DISCUSSION bill 2 participants 3 messages Jul 21, 2011 – Jul 22, 2011

lore
Share & tools
lore

bill

author
#0 lore raw

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

#1 lore raw
Quoted 11 lines

-----Original Message-----
From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies- bounces at 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

Quoted 11 lines

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

Quoted 10 lines

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

author
#2 lore raw
Quoted 53 lines · At 2011-07-22 01:27:14,"Jeff Haran" <[email protected]> wrote:
Quoted 11 lines

-----Original Message-----
From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies- bounces at 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

Quoted 11 lines

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

Quoted 10 lines

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.

Quoted 2 lines

Jeff Haran

Thanks Jeff
I'll try to use two 10NIC cross connected to each other, see whether this way could generate PAUSE frame.

bill

Quoted 7 lines

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110722/177f0204/attachment.html