Use ASTF with retransmissions in PCAP

234 views
Skip to first unread message

Robert Blomberg

unread,
Nov 22, 2017, 11:21:54 AM11/22/17
to TRex Traffic Generator
Hi!

Is it possible to use any flag or something in v2.32 to execute pcaps that looks like this?
******

Exception stack (most recent call last):

#6     sim.py:202                                         - 'profile = cl.get_profile()'
#5     http_karl.py:18                                    - 'cps=2.776)])'
#4     trex_astf_client.py:1199                           - 'prog_c = ASTFProgram(file=cap_file, side="c")'
#3     trex_astf_client.py:190                            - 'cap.analyze()'
#2     cap_handling.py:242                                - 'self.obj.analyze()'
#1     cap_handling.py:203                                - '.format(pkt_num, tcp.seq, exp_s_seq))'
#0     cap_handling.py:40                                 - 'raise ASTFError('\nError for file %s: %s\n' % (self.file_name, msg))'

Summary error message:


Error for file /root/trex-core/scripts/procera/http_get_33M.pcap: TCP seq in packet 321 is 40126896. We expected 40121104. Please check that there are
                       
no packet loss or retransmission in cap file



Thanks.

/Robert

hanoh haim

unread,
Nov 22, 2017, 12:22:59 PM11/22/17
to Robert Blomberg, TRex Traffic Generator
The script try to learn the L7 data and build emulation program. In this case there might be missing L7 data.
Try to fix the TCP layer and L7 using tools like tcperwrite or write a manual L7 emulation program.
You can use WireShark that can give you the L7 in case all the data is there.

I assume you don’t want to send a wrong/out-of-order L7 data right?

Thanks,
Hanoh

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/e3e025b4-55a4-4292-8b55-399339bb1f51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Robert Blomberg

unread,
Nov 23, 2017, 4:34:25 AM11/23/17
to TRex Traffic Generator
HI!

Saw that you could do some several approaches to fix that. Will go with editcap or wireedit.

I don't mind to send wrong/out-of-order L7 data, different use-cases and negative testcases is always intresting for the DUT.

Thanks for answer.

/Robert

hanoh haim

unread,
Nov 23, 2017, 5:31:58 AM11/23/17
to Robert Blomberg, TRex Traffic Generator
understood. 
in that case you can skip the python exception and let it go 
we will try to add a flag to skip this test 

Hanoh

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.

To post to this group, send email to trex...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages