Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Ramin Alidousti <ramin@cannon.eng.us.uu.net>
To: Antony Stone <Antony@Soft-Solutions.co.uk>
Cc: netfilter@lists.samba.org
Subject: Re: detection of the third tcp packet in a tcp connection setup
Date: Thu, 27 Jun 2002 15:57:42 -0400	[thread overview]
Message-ID: <20020627195742.GA31466@cannon.eng.us.uu.net> (raw)
In-Reply-To: <20020627194405.GLHF295.mta03-svc.ntlworld.com@there>

On Thu, Jun 27, 2002 at 08:44:03PM +0100, Antony Stone wrote:

> On Thursday 27 June 2002 8:44 pm, Patrick Schaaf wrote:
> 
> > > > There are some distinguishing characteristics... it is the first packet
> > > > sent by the client that is in state ESTABLISHED.  it should have ACK
> > > > set and no other flags.  the tcp data length should be zero.
> > >
> > > Isn't that in itself a bit of a giveaway ?   I can't think of a reason
> > > why a zero-length packet should ever occur in the remainder of the data
> > > stream... ?
> >
> > How to TCP keepalive packets look like?
> 
> Hmmm.   Don't know.   Hadn't thought about those...
> 
> > Also, isn't it possible that the third packet already carries data, in the
> > general (read TCP protocol as it is written) case?
> 
> Well, I'd always thought that this was allowed, yes, but I've also been told 
> by several different people (who play with real-world networks all the time) 
> that it never happens in practice - you get:
> 

If I'm not wrong you can always send data even in SYN and SYN/ACK.
Like Patrick said the default options in the socket interface might
not do it but I thought I saw some tweaking in one of Richard Steven's
(god bless his soul) books to push traffic in SYN packets.

Ramin

> SYN (no data)
> SYN/ACK (no data)
> ACK (no data)
> ACK (data)
> ACK (data)
> etc.....


  reply	other threads:[~2002-06-27 19:57 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27 18:27 detection of the third tcp packet in a tcp connection setup Ramin Alidousti
2002-06-27 18:36 ` Antony Stone
2002-06-27 18:52 ` Antony Stone
2002-06-27 19:08   ` Ramin Alidousti
2002-06-27 18:53 ` Patrick Schaaf
2002-06-27 19:04   ` Ramin Alidousti
2002-06-27 18:57 ` Maciej Soltysiak
2002-06-27 19:10 ` Joe Patterson
2002-06-27 19:30   ` Antony Stone
2002-06-27 19:44     ` Patrick Schaaf
2002-06-27 19:39       ` Ramin Alidousti
2002-06-27 19:49         ` Maciej Soltysiak
2002-06-27 21:41           ` Matthew G. Marsh
2002-06-27 19:44       ` Antony Stone
2002-06-27 19:57         ` Ramin Alidousti [this message]
2002-06-27 20:06           ` Antony Stone
2002-06-27 20:31             ` Ramin Alidousti
2002-06-27 20:36               ` Antony Stone
2002-06-27 19:50     ` Joe Patterson
2002-06-27 20:11       ` Patrick Schaaf
2002-06-27 21:23     ` James Mello

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020627195742.GA31466@cannon.eng.us.uu.net \
    --to=ramin@cannon.eng.us.uu.net \
    --cc=Antony@Soft-Solutions.co.uk \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox