wip change ledbat and start cubic

This commit is contained in:
2023-08-24 18:04:25 +02:00
parent 475a99054f
commit f460d7b4a5
7 changed files with 157 additions and 6 deletions

View File

@@ -4,6 +4,16 @@
#include <cstdint>
#include <cstddef>
// TODO: refactor, more state tracking in ccai and seperate into flow and congestion algos
inline bool isSkipSeqID(const std::pair<uint8_t, uint16_t>& a, const std::pair<uint8_t, uint16_t>& b) {
// this is not perfect, would need more ft id based history
if (a.first != b.first) {
return false; // we dont know
} else {
return a.second+1 != b.second;
}
}
struct CCAI {
public: // config
using SeqIDType = std::pair<uint8_t, uint16_t>; // tf_id, seq_id