Users Guide

138 Fabric OS Administrator’s Guide
53-1002920-02
Buffer credit management
5
Table 14 describes Fibre Channel data frames.
Allocating buffer credits based on full-sized frames
You can allocate buffer credits based on distance using the portCfgLongDistance command. The
long-distance link modes allow you to select the dynamic mode (LD) or the static mode (LS) to
calculate the buffer credits.
For LD, the estimated distance in kilometers is the smaller of the distance measured during port
initialization versus the desired_distance parameter, which is required when a port is configured as
an LD or an LS mode link. A best practice is to use LS over LD. The assumption that Fibre Channel
payloads are consistently 2,112 bytes is not realistic in practice. To gain the proper number of
buffer credits with the LS mode, there must be enough buffer credits available in the pool, because
Fabric OS will check before accepting a value.
NOTE
The desired_distance parameter of the portCfgLongDistance command’s is the upper limit of the
link distance and is used to calculate buffer availability for other ports in the same port group. When
the measured distance exceeds the value of desired_distance, this value is used to allocate the
buffers. In this case, the port operates in degraded mode instead of being disabled as a result of
insufficient buffer availability. In LS mode, the actual link distance is not measured; instead, the
desired_distance value is used to allocate the buffers required for the port.
Refer to the data in Table 15 on page 143 and Table 16 on page 144 to get the total ports in a
switch or blade, the number of user ports in a port group, and the unreserved buffer credits
available per port group. The values reflect an estimate, and may differ from the supported values
in Table 16.
Calculating the number of buffers required based on full-size frames
Use the following procedure to calculate the number of buffers required for a long-distance
connection:
1. Determine the desired distance in kilometers of the switch-to-switch connection.
2. Determine the speed that you will use for the long-distance connection.
TABLE 14 Fibre Channel data frames
Fibre Channel frame fields Field size Final frame size
Start of frame
4 bytes 32 bits
Standard frame header
24 bytes 192 bits
Data (payload)
0–2,112 bytes 0–16,896 bits
CRC
4 bytes 32 bits
End of frame
4 bytes 32 bits
Total (number bits/frame)
36–2,148 bytes 288–7,184 bits