Subject: RARE user and assistance email list
List archive
Re: [RARE-users] Support to generate traffic from Linux Apps to FreeRtr dataplane on a Wedge switch
Chronological Thread
- From: mc36 <>
- To: , Marcos Felipe Schwarz <>
- Subject: Re: [RARE-users] Support to generate traffic from Linux Apps to FreeRtr dataplane on a Wedge switch
- Date: Thu, 11 Aug 2022 11:06:02 +0200
hi,
the short answer is yes, normally you should have an interface between the
local linux and freerouter, but it have some huge limitations:
AMS0001#show running-config interface ethernet2
interface ethernet2
description linux tuntap management interface
vrf forwarding lin
ipv4 address 10.255.255.254 255.255.255.0
no shutdown
no log-link-change
exit
!
AMS0001#ping 10.255.255.1 vrf lin
pinging 10.255.255.1, src=null, vrf=lin, cnt=5, len=64, df=false, tim=1000,
gap=0, ttl=255, tos=0, sgt=0, flow=0, fill=0, alrt=-1, sweep=false,
multi=false
.!!!!
result=80.0%, recv/sent/lost/err=4/5/1/0, took 1017, min/avg/max/dev
rtt=0/0.5/1/0.2, ttl 64/64.0/64/0.0, tos 0/0.0/0/0.0
AMS0001#
first of all, it's _not_ connected to the tofino asic in any way, so the
packets passing through it will always be software switched...
then, you'll have to deal with the linux routing table to do the right stuff
that may interfere with your normal oob traffic...
so instead of performing the ping periodically from the linux, please take a
look what freerouter's tracker can provide you:
http://wwwin.nop.hu/trackMap.tcl is the list of my publicly available
trackers... lemme pick myself and show you the stuff on through that example:
services>show tracker | include cs
2022-08-11 10:56:48
cs-600-50 | normal | icmp | 10.1.252.49 | up | 3 |
16:42:51
services>
the configuration is quite straightforward:
services>show running-config track cs
2022-08-11 10:57:51
tracker cs-600-50
mode icmp
target 10.1.252.49
vrf inet
source loopback0
random-interval 1000
interval 2000
timeout 2000
delay-down 3
start
exit
services>
and at least you can set all the properties you want,
and even it can measure not just icmp but twamp :)
(if you missing a config option, feel free to ask here,
we're more than happy to add more options)
services(cfg)#tracker cs-600-50
services(cfg-trck)#?
chat-script - specify script to use
delay-down - number of failures before down
delay-start - time before start
delay-up - number of successes before up
description - specify description
do - execute one exec command
editor - edit the current section
end - close this config session
exec-down - exec command to execute on down
exec-up - exec command to execute on up
exit - go back to previous mode
force - specify result of runs
hidden - hide exec commands
interval - specify time between runs
log - log actions
mode - specify mode of runs
no - negate a command
pubkey - specify public key
random-initial - specify random time before run
random-interval - specify random time between runs
range - specify time range
rename - rename this tracker
runnow - run one round now
script - modify result with script
security - select security protocol
sgt - specify sgt
show - running system information
size - size of payload
source - specify source of test
start - start working
stop - stop working
target - specify address of test
timeout - specify timeout value
tos - specify tos
ttl - specify ttl
vrf - specify vrf of test
wake-vrf - wake vrf on state change
services(cfg-trck)#
services(cfg-trck)#mode ?
bfd - bidirectional forwarding detection
check - local check
icmp - icmp echo request
interface - interface state
nrpe - nrpe remote check
other - other tracker
prefix - exact route table entry for prefix
route - any route table entry for address
script - tcl script
tcp - tcp connection
twamp - twamp connection
udp - udp connection
services(cfg-trck)#mode
it provides some statistics as soon as the tracker started:
services>show tracker cs-600-50
2022-08-11 10:59:23
category | value
name | cs-600-50
type | normal icmp
target | 10.1.252.49
reported | true
since | 2022-08-10 18:13:56
for | 16:45:26
changes | 3
measures | 28667
ups | 28464
downs | 203
current | true
count | 10069
since | 2022-08-11 03:46:59
for | 07:12:24
clients |
services>
and it quite easily can integrate to anything... one can export the trackers
through
streaming telemetry (influxdb), prometheus (grafana), nrpe (icinga) or simple
rest api:
mc36@noti:~$ curl lg.mchome.nop.hu/.api./exec/show+track+cs-600-50
#show tracker cs-600-50
category;value
name;cs-600-50
type;normal icmp
target;10.1.252.49
reported;true
since;2022-08-10 18:13:56
for;16:49:07
changes;3
measures;28752
ups;28549
downs;203
current;true
count;10154
since;2022-08-11 03:46:59
for;07:16:05
clients;
mc36@noti:~$
and one you decided with the monitoring framework you use, the
promise is that all the show commands could be exported the same way...
br,
cs
On 8/10/22 22:02, Marcos Felipe Schwarz wrote:
Hi all,
We are working on designing the Management Network for the joint GNA-G/RARE P4 Testbed [1]. We are used to running perfSONAR on our endpoints to schedule recurrent ping and tracerout tests.
On a FreeRtr running on a Wedge P4 switch, can we generate traffic on the
dataplane from a Linux app? For instance, from a ping, traceroute or other
tool running directly on debian.
PS: I know that ping and traceroute are available on the freertr CLI. But it
will be more complicated to integrate it for us.
[1]
https://www.google.com/maps/d/u/0/edit?mid=18nal1cRwDPm6jlXjXuyhUXFhpDUOo56W&usp=sharing
<https://www.google.com/maps/d/u/0/edit?mid=18nal1cRwDPm6jlXjXuyhUXFhpDUOo56W&usp=sharing>
Regards,
Marcos Schwarz
*Gerente de P&D | /R&D Manager/*
Ger ncia de Execu o de P&D em Ciberinfraestrutura | /Management of R&D
Execution in Cyberinfrastructure/
Diretoria de Pesquisa e Desenvolvimento | /Board of Research and Development/
RNP - Rede Nacional de Ensino e Pesquisa | /Brazilian National Research and
Educational Network/
Promovendo o uso inovador de redes avan adas | /Promoting the innovative use
of advanced networks/
http://www.rnp.br <http://www.rnp.br/> | +55 (19) 3787-3386 | Skype ID:
marcos.f.sch**
Campinas - SP - Brasil | E-mail:
<>
- [RARE-users] Support to generate traffic from Linux Apps to FreeRtr dataplane on a Wedge switch, Marcos Felipe Schwarz, 08/10/2022
- Re: [RARE-users] Support to generate traffic from Linux Apps to FreeRtr dataplane on a Wedge switch, mc36, 08/11/2022
- Message not available
Archive powered by MHonArc 2.6.19.