Multicast support?

632 views
Skip to first unread message

Andreas Bourges

unread,
Feb 19, 2017, 7:50:32 AM2/19/17
to TRex Traffic Generator
Hi,


disclaimer: I'm a complete newbie to TRex and did not dig too deep into the documentation, yet. I'm just trying to find out, if it's worth the effort to go deeper into TRex (...can TRex be used for all use-cases...).

I'm currently looking at TRex for replacing iperf-based tests in our customers testlab. The testlab basically consists of two datacenter environments (N7K,N5K,N2K,Cat6880) with mpls L3-VPN, OTV DCI and MVPN.

Since it's a bit uncomfortable to perform multicast tests with iperf (better: to embed iperf in our ansible test playbooks), I'd be glad to use a dedicated hardware (instead of multiple iperf VMs) to simulate customer traffic across the core network. Having an API is a great option for automated testing :) !

TRex looks very promising, but I did not find any hint on multicast support. Is there any? Can I issue a igmpV2 join on the receiving interface, before starting to send the multicast stream over the sending interface?

I found a igmp module in the contrib area of scapy - this might be the thing to use - or am I completely wrong?!

Thanks for any hints,

Andreas

P.S.: unluckily I'm not attending cisco live berlin this year - this would have been a great opportunity to have a face-to-face talk

hanoh haim

unread,
Feb 19, 2017, 9:45:18 AM2/19/17
to Andreas Bourges, TRex Traffic Generator
Hi Andreas,

Using Stateless you would be able to do this.
We are using service mode today to do IPv6 scan which includes MLD protocol.
So in this mode you can create a state-machine in low speed to join multi cast 
The exit service mode and run high rate bi-dir UDP traffic.

Stateful does not support that.

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/fa4be1ac-cea9-42ef-8a3f-239fa1c5e84f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Itay Marom

unread,
Feb 19, 2017, 10:00:30 AM2/19/17
to hanoh haim, Andreas Bourges, TRex Traffic Generator
Hi,

I'll just add a few hints...

TRex uses scapy to generate packets - so in terms of generating traffic, you are able to generate any type of traffic that scapy supports.

Recently (v2.16>)  we've added a packet capturing feature to TRex in a lower rate than in regular transmitting mode.

so when you combine those you can generate the test you like:

divide your test to two parts:

config part:

  1. move to service mode
  2.  Under service mode, generate a IGMPv2 request using scapy and send it to the DUT interface, then capture the returning response on the same interface

high speed part:
  1. disable service mode
  2. generate the packet type you want (using scapy in multicast, perhaps using the data gathered in part 1)

take a look at:



in the tutorial above, we demonstrate a functional test in how to verify a VLAN tag.
you can generate a IGMPv2 request, and use the same technique to parse the response
(with Scapy)


Further read:


Itay


On Sun, Feb 19, 2017 at 4:45 PM, hanoh haim <hhaim...@gmail.com> wrote:
Hi Andreas,

Using Stateless you would be able to do this.
We are using service mode today to do IPv6 scan which includes MLD protocol.
So in this mode you can create a state-machine in low speed to join multi cast 
The exit service mode and run high rate bi-dir UDP traffic.

Stateful does not support that.

Thanks,
Hanoh

On Sun, 19 Feb 2017 at 14:50 'Andreas Bourges' via TRex Traffic Generator <trex...@googlegroups.com> wrote:
Hi,


disclaimer: I'm a complete newbie to TRex and did not dig too deep into the documentation, yet. I'm just trying to find out, if it's worth the effort to go deeper into TRex (...can TRex be used for all use-cases...).

I'm currently looking at TRex for replacing iperf-based tests in our customers testlab. The testlab basically consists of two datacenter environments (N7K,N5K,N2K,Cat6880) with mpls L3-VPN, OTV DCI and MVPN.

Since it's a bit uncomfortable to perform multicast tests with iperf (better: to embed iperf in our ansible test playbooks), I'd be glad to use a dedicated hardware (instead of multiple iperf VMs) to simulate customer traffic across the core network. Having an API is a great option for automated testing :) !

TRex looks very promising, but I did not find any hint on multicast support. Is there any? Can I issue a igmpV2 join on the receiving interface, before starting to send the multicast stream over the sending interface?

I found a igmp module in the contrib area of scapy - this might be the thing to use - or am I completely wrong?!

Thanks for any hints,

Andreas

P.S.: unluckily I'm not attending cisco live berlin this year - this would have been a great opportunity to have a face-to-face talk

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/fa4be1ac-cea9-42ef-8a3f-239fa1c5e84f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

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



--
Itay Marom

Andreas Bourges

unread,
Feb 19, 2017, 12:00:05 PM2/19/17
to TRex Traffic Generator, hhaim...@gmail.com, andyb...@googlemail.com
Hi everybody,

thanks for your immediate responses! I'll have a deeper look into this next week I guess. One thing I'm not sure of - do I need to set the rx-interface mac-address to the multicast mac corresponding to the multicast IP being used - or does TRex recv all multicast anyway?!

Thanks for your support!

Andreas
Hanoh

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/fa4be1ac-cea9-42ef-8a3f-239fa1c5e84f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

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



--
Itay Marom

hanoh haim

unread,
Feb 19, 2017, 12:18:29 PM2/19/17
to Andreas Bourges, TRex Traffic Generator

Hi, 

Once you are in service mode and promiscuous, you will receive all packets including multicast.

you can look into scan6 utility for reference


Hanoh 

Andreas Bourges

unread,
Feb 22, 2017, 3:00:45 AM2/22/17
to TRex Traffic Generator
Hi,

...I managed to send an igmp join to the router - perfect!

But now I have several other questions regarding the complete setup we try to achieve - I'll open another thread for these.

Thanks for your assistance!

Andreas

Reply all
Reply to author
Forward
0 new messages