netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Bad TCP timestamps on non-PC platforms
@ 2011-01-10  3:41 Alex Dubov
  2011-01-10  3:57 ` Stephen Hemminger
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Dubov @ 2011-01-10  3:41 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: netdev, David Miller

> > 
> > You dont give new informations ;)
> > 

Some additional information (my wireshark was not validating checksums, so
I missed the real culprit).

It so appears, that when timestamps are enabled on my dev board, TCP
checksum in SYN packet turns out to be incorrect. That's why those packets
are dropped by the remote side. When TCP timestamps are disabled, checksums
are correct.

Any ideas where this particular problem may originate?



      

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Bad TCP timestamps on non-PC platforms
@ 2011-01-06  6:55 Alex Dubov
  2011-01-06  8:09 ` Eric Dumazet
  2011-01-06 16:44 ` David Miller
  0 siblings, 2 replies; 11+ messages in thread
From: Alex Dubov @ 2011-01-06  6:55 UTC (permalink / raw)
  To: netdev

Greetings.
I'm dealing with 2.6.37-rc7 kernel on MPC8548 platform.

It so appears, that recent kernels have sysctl_tcp_timestamps set to "1"
by default.

On embedded platforms, where real time clock is initialized lately or
absent outright, this causes TSval field of outgoing TCP packets to be
set to some garbage value, in my case in the vicinity of 0xffffffff. As a
result, other Linux machines silently drop such packets, preventing normal
completion of network boot or any other TCP dependent operation.

Therefore, I feel, two changes are necessary (I can send in a patch):
1. Make sysctl_tcp_timestamps value config-time selectable (it must be
disabled by default on machines without RTC).
2. When re-enabling tcp_timestamps through sysctl, reset the timestamp
counter to the current system clock value.

And an optional, tricky one:
3. Postpone TCP timestamp counter initialization until RTC is actually
available (if RTC is connected to i2c bus, TCP is initialized well ahead
of it).



      

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-10  7:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10  3:41 Bad TCP timestamps on non-PC platforms Alex Dubov
2011-01-10  3:57 ` Stephen Hemminger
2011-01-10  6:33   ` Alex Dubov
2011-01-10  7:07     ` Eric Dumazet
2011-01-10  7:19       ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2011-01-06  6:55 Alex Dubov
2011-01-06  8:09 ` Eric Dumazet
2011-01-07  1:55   ` Alex Dubov
2011-01-07  2:11     ` Eric Dumazet
2011-01-07  6:39       ` Alex Dubov
2011-01-06 16:44 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).