Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2008 23:04:40 -0300
From:      Agus <agus.262@gmail.com>
To:        "Olivier Nicole" <on@cs.ait.ac.th>
Cc:        freebsd-questions@freebsd.org, zhangsc@neusoft.com
Subject:   Re: tcpdump question
Message-ID:  <fda61bb50808291904m15e1c928w3a5c73cd075f04a3@mail.gmail.com>
In-Reply-To: <200808290932.m7T9WaBQ038904@banyan.cs.ait.ac.th>
References:  <043901c909b9$3016f360$3f83a8c0@neusofteaf5839> <200808290932.m7T9WaBQ038904@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
2008/8/29 Olivier Nicole <on@cs.ait.ac.th>:
> Edward,
>
>> I want to know what's meaning of 'S','.','P','F'?
>
> You should learn a bit about TCP protocol.
>
> S is for SYN (synchronize)
> P is for PUSH
> F is for FIN
> . is for nothing
>
> Pakets are:
>
> 3 way hand shake initiate TCP connection
> client > server SYN
> sever > client SYN ACK
> client > server ACK
>
> client > server send data
> server > client ACK and send data
> client > server ACK
>
> tTermination
> client > server FIN
> server > client ACK
> server > cient FIN
> client > server ACK
>
> ACk means acknowledge.
>
> Olivier
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>

Hi,

Not too much to add...exept that yes..you need to have a look at
TCP/IP to understand what those flags and packets mean....

The SYN flag is used to initiate a "conversation"...like they
put..synchronize, is also the first part of the three way handshacke
which is the complete negotation for the transmission to begin...you
will see sequence and acck numbers also...

Then the PUSH flag is to push data..so it probably means that that
packet is for the app layer..or something similar...

Then the FIN which is the polite way to finish the conversation....see
taht it usses 4 ways instead of the three to establish...that is cause
FIN probably consumes ACKs while SYN and ACKs doesnt.
Theres also another flag to end the communication that is the R -
RESET- Usually sent back to app trying to talk to other's box with
close port..

Very highly recommende the TCP Illustrated Vol 1 by Richard Stevens...

Sorry if i missed or probably have something wrong...

Cheers,
Agustin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fda61bb50808291904m15e1c928w3a5c73cd075f04a3>