-
Notifications
You must be signed in to change notification settings - Fork 1
/
bbr_probe_rtt.h
52 lines (39 loc) · 1.1 KB
/
bbr_probe_rtt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef BBR_PORBE_RTT_H_
#define BBR_PROBE_RTT_H_
#include <cstddef>
#include <cstdint>
#include <vector>
#include <bbr_mode.h>
#include <bbr_common.h>
#include <time/timestamp.h>
namespace bbr
{
class BbrAlgorithm;
class BbrModel;
class BbrCongestionEvent;
class BbrProbeRtt
{
public:
BbrProbeRtt(BbrAlgorithm* bbr, BbrModel* model);
bool is_probing() const { return false;}
void enter(time::Timestamp now,
const BbrCongestionEvent* congestion_event);
void leave(time::Timestamp now,
const BbrCongestionEvent* congestion_event) {};
BbrMode on_congestion_event(
size_t prior_inflight,
time::Timestamp at_time,
const std::vector<AckedPacket>& acked_packets,
const std::vector<LostPacket>& lost_packets,
const BbrCongestionEvent& congestion_event);
BbrMode on_exit_quiescence(time::Timestamp quiescence_start_time,
time::Timestamp now);
size_t inflight_target() const;
size_t cwnd_upper_limit() const;
private:
BbrAlgorithm* bbr_;
BbrModel* model_;
time::Timestamp exit_time_;
};
}
#endif