Skip to content

[FR] Add reconnection counter for the group in main/backup mode #1522

@maxsharabayko

Description

@maxsharabayko

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

  • Define the API function to determine the switch count.
    • It should not be a group statistic.
    • It could be srt_group_data(..) function, but an additional argument would be required (GROUP_STATUS).
    • It could be a read-only socket option SRTO_SWITCH_COUNT.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions