SRP Fairness Algorithm (SRP-fa)
Each node on the SRP ring executes a distributed transmission control algorithm called the SRP fairness algorithm. Every node on the ring gets a fair share of the ring bandwidth by balancing the rates at which packets are forwarded on the ring from upstream or downstream sources with the rate at which packets are sourced onto the rings by the node.
Several parameters that control the behavior of the fairness algorithm are configurable through model attributes. Internally, each SRP MAC process maintains two counters and two threshold variables for assisting packet forwarding decisions.
The two counters are MY_USAGE and FWD_RATE:
- MY_USAGE counts the number of low-priority packets sourced by the surrounding node on the ring.
- FWD_RATE counts the number of packets forwarded onto the ring.
The two threshold variables are ALLOWED_USAGE and MAX_USAGE.
- ALLOWED_USAGE acts as a threshold to control the current maximum transmit usage (that is, MY_USAGE) for the node.
- MAX_USAGE is a per-node parameter that places an upper bound on locally sourced low-priority packets regardless of the availability of ring bandwidth as communicated by the SRP fairness algorithm.
The transmit-side packet handler uses these four parameters and the priority information to decide which packet to transmit. The counter and threshold values are updated every “decay interval” and changes to the advertised bandwidth usage information are propagated to the upstream nodes. The decay interval is computed based on the speed of the physical link (OC-12 or OC-48). For OC-12, it is set to 0.00010288 seconds. This means that every node will generate over 9700 control messages per second per ring to advertise the correct bandwidth usage value—even when there are idle periods in the simulation execution with respect to data transfer.
Because the overhead needed to generate and handle keep-alive control packets can result in longer simulation durations, the SRP model suite has a simulation attribute, SRP Decay Interval Processing Mode, which allows you to disable the explicit modeling of decay intervals.