|
1 | 1 | diff --git a/src/inet/transportlayer/tcp/Tcp.ned b/src/inet/transportlayer/tcp/Tcp.ned |
2 | | -index cb940aaec7..1a028372fc 100644 |
| 2 | +index 437f92bcbb..f16d58b861 100644 |
3 | 3 | --- a/src/inet/transportlayer/tcp/Tcp.ned |
4 | 4 | +++ b/src/inet/transportlayer/tcp/Tcp.ned |
5 | | -@@ -156,7 +156,7 @@ simple Tcp like ITcp |
| 5 | +@@ -186,7 +186,7 @@ simple Tcp like ITcp |
6 | 6 | string crcMode @enum("declared", "computed") = default("declared"); |
7 | | - int advertisedWindow = default(14 * this.mss); // In bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size) |
8 | | - bool delayedAcksEnabled = default(false); // Delayed ACK algorithm (RFC 1122) enabled/disabled |
| 7 | + int advertisedWindow = default(14*this.mss); // in bytes, corresponds with the maximal receiver buffer capacity (Note: normally, NIC queues should be at least this size) |
| 8 | + bool delayedAcksEnabled = default(false); // delayed ACK algorithm (RFC 1122) enabled/disabled |
9 | 9 | - bool nagleEnabled = default(true); // Nagle's algorithm (RFC 896) enabled/disabled |
10 | 10 | + bool nagleEnabled = default(false); // Nagle's algorithm (RFC 896) enabled/disabled |
11 | 11 | bool limitedTransmitEnabled = default(false); // Limited Transmit algorithm (RFC 3042) enabled/disabled (can be used for TcpReno/TcpTahoe/TcpNewReno/TcpNoCongestionControl) |
12 | 12 | bool increasedIWEnabled = default(false); // Increased Initial Window (RFC 3390) enabled/disabled |
13 | 13 | bool sackSupport = default(false); // Selective Acknowledgment (RFC 2018, 2883, 3517) support (header option) (SACK will be enabled for a connection if both endpoints support it) |
14 | 14 | diff --git a/src/inet/transportlayer/tcp/TcpConnectionUtil.cc b/src/inet/transportlayer/tcp/TcpConnectionUtil.cc |
15 | | -index 8c1f006965..7a0b5bdde7 100644 |
| 15 | +index a1b2b0e8d8..8e7f0dba40 100644 |
16 | 16 | --- a/src/inet/transportlayer/tcp/TcpConnectionUtil.cc |
17 | 17 | +++ b/src/inet/transportlayer/tcp/TcpConnectionUtil.cc |
18 | | -@@ -908,6 +908,7 @@ bool TcpConnection::sendData(uint32_t congestionWindow) |
| 18 | +@@ -889,6 +889,7 @@ bool TcpConnection::sendData(uint32_t congestionWindow) |
19 | 19 | // start sending 'bytesToSend' bytes |
20 | 20 | EV_INFO << "May send " << bytesToSend << " bytes (effectiveWindow " << effectiveWin << ", in buffer " << buffered << " bytes)\n"; |
21 | 21 |
|
22 | 22 | + |
23 | 23 | // send whole segments |
24 | 24 | while (bytesToSend >= effectiveMss) { |
25 | 25 | uint32_t sentBytes = sendSegment(effectiveMss); |
26 | | -@@ -923,8 +924,11 @@ bool TcpConnection::sendData(uint32_t congestionWindow) |
| 26 | +@@ -904,8 +905,11 @@ bool TcpConnection::sendData(uint32_t congestionWindow) |
27 | 27 | bool containsFin = state->send_fin && (state->snd_nxt + bytesToSend) == state->snd_fin_seq; |
28 | 28 | if (state->nagle_enabled && unacknowledgedData && !containsFin) |
29 | 29 | EV_WARN << "Cannot send (last) segment due to Nagle, not enough data for a full segment\n"; |
|
0 commit comments