
Fabric OS Administrator’s Guide
459
53-1002446-01
Buffer credit management
23
Example
Consider the Brocade 300, which has a single 24-port port group and a total of 676 buffer credits
for that port group. The maximum remaining number of buffer credits for the port group, after each
port reserves its eight buffer credits, is:
676 – (24 * 8) = 484 unreserved buffer credits
Where:
24 = the number of user ports in a port group retrieved from
Table 79
on page 461.
8 = the number of reserved credits for each user port.
676 = the number of buffer credits available in the port group.
If you allocate the entire 484 + 8 (8 for the reserved buffers already allocated to that user port)
= 492 buffers to a single port, you can calculate the maximum single port extended distance
supported:
[
Maximum Distance X in km
] = (
BufferC 6
) * 2 / LinkSpeed
498 km = (492 + 6 buffers for Fabric Services) * 2 / 2 Gbps
How many 50 km ports can you configure?
If you have a distance of 50 km at 8 Gbps then, 484 / (206 – 8) = 2 ports
The numbers used are: 484, which equals the total number of unreserved buffer credits, 206,
which equals buffer credits needed for 50 km @ 8 Gbps (calculated previously), and 8, which
equals number of reserved buffer credits already allocated to that port. The floor of the
resulting number is taken because fractions of a port are not allowed.
If you have a distance of 50 km at 1 Gbps then, 484 / (31 – 8) = 21 ports
Allocating buffer credits based on average-size frames
In cases where the frame size is average, for example 1024 bytes, you must allocate twice the
buffer credits or give twice the distance in the long-distance LS configuration mode. Refer to
“Fibre
Channel gigabit values reference definition”
on page 457 to get an approximation of the calculated
number of buffer credits.
1. Use the following formula to calculate value for the
desired_distance
needed for Fabric OS to
determine the number of BB credits to allocate:
desired_distance = roundup [(real_estimated_distance * 2112) / average_payload_size]
Where
average_payload_size
= 1024 bytes
This example uses 100 km for the real estimated distance.
desired_distance
=
roundup
[(100 * 2112) / 1024] = 207
When configuring the LS mode with the portCfgLongDistance command, enter a
desired_distance
value of 207 for an actual 100 km link connected to an 8 Gbps E_Port. This
causes Fabric OS to allocate the correct number of BB credits.
2. Determine the speed you will use for the long-distance connection. This example uses 8 Gbps.
3. Look up the data_rate value for the speed of the connection. See
“Fibre Channel gigabit values
reference definition”
on page 457 to determine the
data_rate
value.
For 8 Gbps, the
data_rate
is 8.5
Summary of Contents for Fabric OS v7.0.1
Page 1: ...53 1002446 01 15 December 2011 Fabric OS Administrator s Guide Supporting Fabric OS v7 0 1 ...
Page 22: ...xxii Fabric OS Administrator s Guide 53 1002446 01 ...
Page 26: ...xxvi Fabric OS Administrator s Guide 53 1002446 01 ...
Page 30: ...xxx Fabric OS Administrator s Guide 53 1002446 01 ...
Page 38: ...xl Fabric OS Administrator s Guide 53 1002446 01 ...
Page 40: ...2 Fabric OS Administrator s Guide 53 1002446 01 ...
Page 214: ...176 Fabric OS Administrator s Guide 53 1002446 01 Management interface security 7 ...
Page 228: ...190 Fabric OS Administrator s Guide 53 1002446 01 Brocade configuration form 8 ...
Page 248: ...210 Fabric OS Administrator s Guide 53 1002446 01 Validating a firmware download 9 ...
Page 334: ...296 Fabric OS Administrator s Guide 53 1002446 01 Setting up TI over FCR sample procedure 12 ...
Page 360: ...322 Fabric OS Administrator s Guide 53 1002446 01 Encryption and compression example 14 ...
Page 404: ...366 Fabric OS Administrator s Guide 53 1002446 01 ...
Page 430: ...392 Fabric OS Administrator s Guide 53 1002446 01 Ports on Demand 18 ...
Page 502: ...464 Fabric OS Administrator s Guide 53 1002446 01 Buffer credit recovery 23 ...
Page 572: ...534 Fabric OS Administrator s Guide 53 1002446 01 Hexadecimal overview D ...
Page 584: ...546 Fabric OS Administrator s Guide 53 1002446 01 ...