Realistic ntester program (still 50% packet loss)

This commit is contained in:
Keith Winstein
2011-08-09 23:07:51 -04:00
parent 66a64f0b22
commit 4e11e33560
4 changed files with 53 additions and 14 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ namespace Network {
private:
static const int INITIAL_TIMEOUT = 1000; /* ms, same as TCP */
static const int SEND_INTERVAL = 20; /* ms between frames */
static const int HEADER_LEN = 80;
static const int ACK_INTERVAL = 1000; /* ms between empty acks */
static const int HEADER_LEN = 100;
/* helper methods for tick() */
void update_assumed_receiver_state( void );