Skip to content

Commit

Permalink
Use a smaller MTU, which should not impact throughput since 2800+over…
Browse files Browse the repository at this point in the history
…head/2 still fits in two of these.
  • Loading branch information
adamierymenko committed Mar 8, 2019
1 parent 270debb commit 6fbf21b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/ZeroTierOne.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ extern "C" {
/**
* Default UDP payload size (physical path MTU) not including UDP and IP overhead
*
* This is 1500 - IPv6 UDP overhead - PPPoE overhead and is safe for 99.9% of
* all Internet links.
* This is small enough for PPPoE and for Google Cloud's bizarrely tiny MTUs.
* A 2800 byte payload still fits into two packets, so this should not impact
* real world throughput at all vs the previous default of 1444.
*/
#define ZT_DEFAULT_PHYSMTU 1444
#define ZT_DEFAULT_PHYSMTU 1432

/**
* Maximum physical UDP payload
Expand Down

0 comments on commit 6fbf21b

Please sign in to comment.