Skip to content

Instantly share code, notes, and snippets.

@crazyboycjr
Created March 12, 2018 06:20
Show Gist options
  • Save crazyboycjr/c2da14beef686b0549baa5fa8aead30f to your computer and use it in GitHub Desktop.
Save crazyboycjr/c2da14beef686b0549baa5fa8aead30f to your computer and use it in GitHub Desktop.
PFC_headroom_formula.md

PFC headroom formula

According to the 3th page of the reference material, the following elements need to be taken into consideration

  • Maximum transmission unit (MTU) on the transimitting end of receiver R
  • Speed of Wire W
  • Transceiver latency (negligible) < 1280bytes
  • Response time of sender S
  • MTU on the transmitting end of sender S

The headroom should be the possible total length of bits transmitted in these five stages above.

For 100GbE, 100 meter twin-ax copper cable, QSFP+

MTU[R] + 100Gb/s * 476ns * 2 + 512 * 60bits + MTU[S]

which in bytes

MTU[S] + MTU[R] + 3840bytes + 130bytes per 100 meters per GbE

Speed of wire W is the only variable element in the definition of the receiver thresholds.

Reference

Priority Flow Control: Build Reliable Layer 2 Infrastructure

@crazyboycjr
Copy link
Author

  1. What are the recommended values for xon/xoff when setting PG as lossless?
    The general equation is to set reserved headroom size minus the xoff threshold to be equal to 2 * MTU+2 * link BW * link propagation time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment