Fabric OS Administrator's Guide v7.0.0 (53-1002148-02, June 2011)

452 Fabric OS Administrator’s Guide
53-1002148-02
Buffer credit management
22
Optimal buffer credit allocation
The optimal number of buffer credits is determined by the distance (frame delivery time), the
processing time at the receiving port, link signaling rate, and size of the frames being transmitted.
As the link speed increases, the frame transmission time is reduced and the number of buffer
credits must be increased to obtain full link utilization, even in a short-distance environment.
For each frame that is transferred, the hardware at the other end must acknowledge that the frame
has been received before a successful transmission occurs. This requires enough capacity in the
hardware to allow continuous transmission of frames on the link, while waiting for the
acknowledgement to be sent by the receiver at the other end.
As the distance between switches and the link speed increases, additional buffer credits are
required for the ports used for long-distance connections. Distance levels define how buffer credits
are allocated and managed for extended ISLs. Buffer credits are managed from a common pool
available to a group of ports on a switch. The buffer credit can be changed for specific applications
or operating environments, but it must be in agreement among all switches to allow formation of
the fabric.
To maintain 100 percent utilization of a 1 Gbps link for 100 km, the sending hardware must have
enough resources (BB credits) to keep 106,250 bytes on the link and the receiving hardware must
have enough resources to allow the sender to transmit continuously. To theoretically achieve 100
percent utilization of a 2 Gbps link for 100 km, the required number of BB credits ranges from 98
to 2310 depending on the average frame size. When the link speed is increased to 4 Gbps, the
required number of BB credits ranges from 196 to 4620. It is not possible for the switch to
determine what the frame size is going to be.
Considerations for calculating buffer credits
Following are the considerations for calculating how many ports can be configured for long
distance on all Fabric OS v7.x-capable switch modules:
Each port is part of a port group that includes a pool of buffer credits that can be utilized. This
is not the same as the port groups used for ISL Trunking.
Each user port reserves eight buffer credits when online or offline.
Any remaining buffers can be reserved by any port in the port group.
When QoS is enabled and the port is online, an additional 20 buffers are allocated to that port.
The FR4-18i blade has a limitation of 255 buffers maximum that can be allocated to a port,
which corresponds to a distance of ~500 km at 1 Gbps.
Fibre Channel gigabit values reference definition
Before you can calculate the buffer requirement, note the following Fibre Channel gigabit values
reference definition:
1.0625 for 1 Gbps
2.125 for 2 Gbps
4.25 for 4 Gbps
8.5 for 8 Gbps
10.625 for 10 Gbps
17 for 16 Gbps