Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
TCP keep-alive packets
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: TCP keep-alive packets
TCP keep-alive packets
23-01-2015 2:41 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've noticed that my connection is sending (and receiving) rather a lot of TCP keep-alive packets.
My connection stalls briefly whilst this happens.
Should I change any of the TCP timers to fix this?
My connection stalls briefly whilst this happens.
Should I change any of the TCP timers to fix this?
"In The Beginning Was The Word, And The Word Was Aardvark."
2 REPLIES 2
Re: TCP keep-alive packets
28-01-2015 9:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
You might need to provide a bit more information.
Keepalives shouldn't cause any connection issues as they are such tiny packets.
Post the current value of your timers:
These value are the interval (seconds between keepalives), probes (number of keepalives before closing the connection) and time (seconds before any keepalives are sent) respectively.
They are useful to have in order to close down any stale TCP connections. Increasing the timers would only end up delaying the issue, and reducing the number of probes could only fix the symptom rather than the cause. Of course, perhaps your figures are way off the above (which are fairly typical) in which case something might be amiss.
All that said, they shouldn't be causing you an issue as mentioned. Can you elaborate on what you mean when you say that your 'connection stalls briefly'?
Keepalives shouldn't cause any connection issues as they are such tiny packets.
Post the current value of your timers:
cat /proc/sys/net/ipv4/tcp_keep*
75
9
7200
These value are the interval (seconds between keepalives), probes (number of keepalives before closing the connection) and time (seconds before any keepalives are sent) respectively.
They are useful to have in order to close down any stale TCP connections. Increasing the timers would only end up delaying the issue, and reducing the number of probes could only fix the symptom rather than the cause. Of course, perhaps your figures are way off the above (which are fairly typical) in which case something might be amiss.
All that said, they shouldn't be causing you an issue as mentioned. Can you elaborate on what you mean when you say that your 'connection stalls briefly'?
Re: TCP keep-alive packets
29-01-2015 2:03 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Mine are the same as yours (I think they are the defaults).
At random my only wired connection sends a bunch of 6 - 10 keepalives (and receives) a similar number of ACK's in response.
Actually, I've taken a wireshark capture - with DNS lookup.
It's very instructive.
Many web sites seem to be sending back tracking information - I suspect some are issuing keepalives to send back which bit of a web page my cursor is sitting on? ? ?
In the screenshots below "hector" is my local PC.
So I'll put these down to clunky web sites - and try loading some better ad-blocking software.
At random my only wired connection sends a bunch of 6 - 10 keepalives (and receives) a similar number of ACK's in response.
Actually, I've taken a wireshark capture - with DNS lookup.
It's very instructive.
Many web sites seem to be sending back tracking information - I suspect some are issuing keepalives to send back which bit of a web page my cursor is sitting on? ? ?
In the screenshots below "hector" is my local PC.
So I'll put these down to clunky web sites - and try loading some better ad-blocking software.
"In The Beginning Was The Word, And The Word Was Aardvark."
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Re: TCP keep-alive packets