Optimal Buffer Credit Allocation - HP SN3000B Administrator's Manual

Brocade fabric os administrator's guide - supporting fabric os v7.0.1 (53-1002446-01, march 2012)
Hide thumbs Also See for SN3000B:
Table of Contents

Advertisement

23
Buffer credit management
Upon arrival at a receiver, a frame goes through several steps. It is received, deserialized, decoded,
and is stored in a receive buffer where it is processed by the receiving port. If another frame arrives
while the receiver is processing the first frame, a second receive buffer is needed to hold this new
frame. Unless the receiver is capable of processing frames as fast as the transmitter is capable of
sending them, it is possible for all of the receive buffers to fill up with received frames. At this point,
if the transmitter should send another frame, the receiver will not have a receive buffer available
and the frame is lost. Buffer-to-Buffer flow control provides consistent and reliable frame delivery of
information from sender to receiver.

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:
456
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.
Fabric OS Administrator's Guide
53-1002446-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fabric os v7.0.1

Table of Contents