IP ICMP ping on Single port

696 views
Skip to first unread message

Prasad

unread,
Aug 31, 2018, 6:58:18 PM8/31/18
to trex...@googlegroups.com
Hi,

I am TREX first timer. I had installed TREX and ping tested the individual links
in a large enough topology. (This is for IPSec, but, want TREX to just send traffic).

In an attempt to test TREX<==>Router segment with TREX, I created the cfg
file with 'port, dummy' and correct 'dmac/smac' for the connecting ports.

How does the IP ping traffic yaml file look like? I am hoping that TREX would generate
the ICMP Echo packets in the correct format and the router would respond to them
for the TREX to receive the same.

(IOW, is there some place in the TREX book, the generator fields are explained?)

--
Regards,
Devi Prasad Ivaturi

Prasad

unread,
Aug 31, 2018, 7:01:23 PM8/31/18
to trex...@googlegroups.com
Basically, most of the fields are intuitive in the examples, but how do I tell TREX that I want an IP ping packet generated out the port?

Prasad

unread,
Aug 31, 2018, 7:50:27 PM8/31/18
to trex...@googlegroups.com
Ok .. googled on the topic and realized that I may have to create an STL file to build the packet (profile).
IP/ICMP profiles have to be defined in it? Also, looks like basic knowledge of SCAPI is required.

Please do chip in if I don't have to do this.

Regards.

hanoh haim

unread,
Sep 1, 2018, 1:14:23 PM9/1/18
to Prasad, trex...@googlegroups.com
You just need to open the Console in STL mode and run “ping” command


--
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/CABoZSpoKNasQTX8HWi2x5-5QHzc3qx4_mHfYzVk31Ni76HGcAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Prasad

unread,
Sep 1, 2018, 3:04:36 PM9/1/18
to hanoh haim, trex...@googlegroups.com
Oh, thank you, Hanoh!!

Prasad

unread,
Sep 2, 2018, 3:54:21 PM9/2/18
to hanoh haim, trex...@googlegroups.com
Hi Hanoh,

STL console means:
One one console of T-REX, I did './t-rex-64 -i'
and on another I did './trex-console'

Did I do it right?

Then, I am trying the following on a connected port:

trex>ping -d 100.1.1.200
usage: ping [-h] -p PORT -d PING_IP [-s PKT_SIZE] [--vlan [VLAN [VLAN ...]]]
            [-n COUNT]

ping: error: argument -p/--port is required

trex>ping -h
usage: ping [-h] -p PORT -d PING_IP [-s PKT_SIZE] [--vlan [VLAN [VLAN ...]]]
            [-n COUNT]

Pings the server / specific IP

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  source port for the action
  -d PING_IP            which IPv4/6 to ping
  -s PKT_SIZE           packet size to use
  --vlan [VLAN [VLAN ...]], -v [VLAN [VLAN ...]]
                        single or double VLAN tags
  -n COUNT, --count COUNT
                        How many times to ping [default is 5]

What port is it asking for? For ICMP ping, I have not heard of any 'port'.

Thank you.,

-devi

Oh, thank you, Hanoh!!

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

Yaroslav Brustinov

unread,
Sep 2, 2018, 4:29:12 PM9/2/18
to Prasad, hanoh haim, TRex Traffic Generator
Hi,

TRex port - 0, 1 etc.

Oh, thank you, Hanoh!!

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



--
Regards,
Devi Prasad Ivaturi

--
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.

Matt Callaghan

unread,
Sep 4, 2018, 7:06:48 AM9/4/18
to TRex Traffic Generator

Prasad

unread,
Sep 4, 2018, 2:45:33 PM9/4/18
to Matt Callaghan, TRex Traffic Generator
Thank you all for the replies. Matt, special thanks for the link.
Surely, am a new student of TRex learning 'which is where' !!

Hanoh, wondering if it's explained somewhere the architecture of TRex, e.g.,
the role of TRex running in background + trex-console + service mode.
I had to guess/learn that I have to use 'service' mode and then  'l3' to set a src-ip for the port
for an IPV4 ping test to the connected router.

Also, I did not see an option for IPv6 ping test. I am guessing that for this I may need to create a profile
and use that for the test.

Regards,
-devi

On Tue, Sep 4, 2018 at 4:06 AM, Matt Callaghan <mcallagha...@gmail.com> wrote:

--
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+unsubscribe@googlegroups.com.

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

For more options, visit https://groups.google.com/d/optout.

Prasad

unread,
Sep 4, 2018, 3:11:52 PM9/4/18
to Matt Callaghan, TRex Traffic Generator
Spoke too soon, I guess. Matt's link does indicate a few things regarding the architecture.
Looks like TRex server handles all the client requests as RPCs.
So, please ignore my previous email.

Regards,
-devi
Reply all
Reply to author
Forward
0 new messages