[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] SYN in TCP/Reno



Use

Trace set show_tcphdr_ 1

to see the ACK numbers you are expecting. Remember that you have two seqno sequences
in two-way TCP, so the common tracing format is not enough. Change to extended
tracing with the previous OTcl command and you will be able to see both sequences.

Anders Nilsson wrote:

> Hi again,
>
> Whats bothering me is that the sequence numbers for ACKs in Agent/FullTcp
> doesn't seem to be working correctly.
>
> This is how I use FullTcp:
>
> set ttcp0 [new Agent/TCP/FullTcp]
> set sink [new Agent/TCP/FullTcp]
> $ns attach-agent $n0 $ttcp0
> $ns attach-agent $n2 $sink
> $ttcp0 set fid_ 2
> $sink set fid_ 1
> $ns connect $ttcp0 $sink
> $sink listen
>
> and then I use trace-all:
>
> set trace_all [open out.all w]
> $ns trace-all $trace_all
>
> here is a bit of my out.all file:
> r 0.28872 2 1 ack 40 ------- 1 2.0 0.0 1 4
> + 0.28872 1 0 ack 40 ------- 1 2.0 0.0 1 4

-- Felix Hernandez