- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.1k
 
disco,net/tstun,wgengine/magicsock: probe and record peer MTU #9657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           I think this could probably use more (any) tests but wanted to get this out there for review while I worked on them.  | 
    
f7dd770    to
    8da0ff5      
    Compare
  
    There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
init stuff looks good to me 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, I would suggest moving out of draft after you address pending comments.
8da0ff5    to
    3ad2bb9      
    Compare
  
    3ad2bb9    to
    6f6ad10      
    Compare
  
    b72bddd    to
    8827cc3      
    Compare
  
    | 
           Update: I removed the entire concept of max probed MTU from this PR since that won't be necessary until the PTB generation PR. I removed any modification of the MTUs to probe - it's such a tiny optimization and we can add it later if necessary. And I split the current usage of default TUN MTU into "what to set the tailscale TUN to" and "what is the safe value to assume that the wire MTU is if we have no information about the path."  | 
    
Automatically probe the path MTU to a peer when peer MTU is enabled, but do not use the MTU information for anything yet. Updates #311 Signed-off-by: Val <valerie@tailscale.com>
Record the number of MTU probes sent, the total bytes sent, the number of times we got a successful return from an MTU probe of a particular size, and the max MTU recorded. Updates #311 Signed-off-by: Val <valerie@tailscale.com>
8827cc3    to
    a457f27      
    Compare
  
    | 
           Quick update to use @raggi's nice new syncs.LoadOrInit().  | 
    
disco,net/tstun,wgengine/magicsock: probe and record peer MTU
Automatically probe and record the path MTU to a peer when peer MTU is enabled,
but do not use the MTU information for anything other than metrics yet.
Updates #311