Go to the source code of this file.
|
| DEFINE_string (input,"","File containing requests") |
|
| DEFINE_string (scheme,"qpack","Scheme: <qpack|qmin|hpack>") |
|
| DEFINE_int32 (rtt, 100,"Simulated RTT") |
|
| DEFINE_double (lossp, 0.0,"Loss Probability") |
|
| DEFINE_double (delayp, 0.05,"Delay Probability") |
|
| DEFINE_int32 (delay, 100,"Max extra delay") |
|
| DEFINE_int32 (ooo_thresh, 0,"First seqn to allow ooo") |
|
| DEFINE_int32 (table_size, 4096,"HPACK dynamic table size") |
|
| DEFINE_int64 (seed, 0,"RNG seed") |
|
| DEFINE_bool (blend, true,"Blend all facebook.com and fbcdn.net domains") |
|
| DEFINE_int32 (max_blocking, 100,"Maximum number of vulnerable/blocking header blocks") |
|
| DEFINE_bool (same_packet_compression, true,"Allow QPACK to compress across ""headers the same packet") |
|
int | main (int argc, char *argv[]) |
|
DEFINE_bool |
( |
blend |
, |
|
|
true |
, |
|
|
"Blend all facebook.com and fbcdn.net domains" |
|
|
) |
| |
DEFINE_bool |
( |
same_packet_compression |
, |
|
|
true |
, |
|
|
"Allow QPACK to compress across ""headers the same packet" |
|
|
) |
| |
DEFINE_double |
( |
lossp |
, |
|
|
0. |
0, |
|
|
"Loss Probability" |
|
|
) |
| |
DEFINE_double |
( |
delayp |
, |
|
|
0. |
05, |
|
|
"Delay Probability" |
|
|
) |
| |
DEFINE_int32 |
( |
rtt |
, |
|
|
100 |
, |
|
|
"Simulated RTT" |
|
|
) |
| |
DEFINE_int32 |
( |
delay |
, |
|
|
100 |
, |
|
|
"Max extra delay" |
|
|
) |
| |
DEFINE_int32 |
( |
ooo_thresh |
, |
|
|
0 |
, |
|
|
"First seqn to allow ooo" |
|
|
) |
| |
DEFINE_int32 |
( |
table_size |
, |
|
|
4096 |
, |
|
|
"HPACK dynamic table size" |
|
|
) |
| |
DEFINE_int32 |
( |
max_blocking |
, |
|
|
100 |
, |
|
|
"Maximum number of vulnerable/blocking header blocks" |
|
|
) |
| |
DEFINE_string |
( |
input |
, |
|
|
"" |
, |
|
|
"File containing requests" |
|
|
) |
| |
DEFINE_string |
( |
scheme |
, |
|
|
"qpack" |
, |
|
|
"Scheme: <qpack|qmin|hpack>" |
|
|
) |
| |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 39 of file Main.cpp.
References proxygen::compress::HPACK, folly::init(), proxygen::compress::QMIN, proxygen::compress::QPACK, folly::Random::rand64(), proxygen::compress::CompressionSimulator::readInputFromFileAndSchedule(), proxygen::compress::CompressionSimulator::run(), folly::pushmi::detail::t, uint16_t, and uint32_t.
41 if (FLAGS_same_packet_compression) {
42 LOG(WARNING) <<
"Same packet compression no longer supported";
45 if (FLAGS_input.empty()) {
46 LOG(ERROR) <<
"Must supply a filename";
51 if (FLAGS_scheme ==
"qpack") {
52 LOG(INFO) <<
"Using QPACK";
53 t = SchemeType::QPACK;
54 }
else if (FLAGS_scheme ==
"qmin") {
55 LOG(INFO) <<
"Using QMIN";
57 }
else if (FLAGS_scheme ==
"hpack") {
58 LOG(INFO) <<
"Using HPACK with table size=" << FLAGS_table_size;
59 t = SchemeType::HPACK;
61 LOG(ERROR) <<
"Unsupported scheme";
65 if (FLAGS_seed == 0) {
67 std::cout <<
"Seed: " << FLAGS_seed << std::endl;
71 std::chrono::milliseconds(FLAGS_rtt),
74 std::chrono::milliseconds(FLAGS_delay),
77 FLAGS_same_packet_compression,
81 if (sim.readInputFromFileAndSchedule(FLAGS_input)) {
void init(int *argc, char ***argv, bool removeFlags)