When an active link is switched to a backup link, there should be a way for the application to know those switches are happening.
For example, a switch counter for the group.
Suppose we have Link A (main link) and Link B (backup link).
The initial value of the switch counter for a group is 0.
If Link A becomes (is detected as) unstable, Link B is activated, and the switch counter is incremented by 1.
If after some time Link A becomes stable again, and the transmission continues over this link, while Link B is back to idle, the switch counter is incremented. The condition is in force even if both links were used for transmission for the described period of instability.
TODO
When an active link is switched to a backup link, there should be a way for the application to know those switches are happening.
For example, a switch counter for the group.
Suppose we have Link A (main link) and Link B (backup link).
The initial value of the switch counter for a group is 0.
If Link A becomes (is detected as) unstable, Link B is activated, and the switch counter is incremented by 1.
If after some time Link A becomes stable again, and the transmission continues over this link, while Link B is back to idle, the switch counter is incremented. The condition is in force even if both links were used for transmission for the described period of instability.
TODO
srt_group_data(..)function, but an additional argument would be required (GROUP_STATUS).SRTO_SWITCH_COUNT.