[netperf-talk] Running Netperf using IPv6
Rick Jones
rick.jones2 at hp.com
Tue Jul 24 02:20:43 PDT 2007
> Sigh - again linux has to be different... I will try to ask in another
> forum if this difference is intentional and if it will persist.
> Meanwhile, I guess that means we need additional options to netperf to
> specify scopeids.
Then again, _maybe_ not :) I asked over in another forum, and was told that the
Linux getaddrinfo() (at least) knows how to parse a %n at the end of a numeric
IPv6 address and use the value of n to set the scope_id. So, once you know the
interface index of the interface via which the connection should be made, you
can tack that onto the end of the IPv6 address thusly:
[root at hpcpc106 ~]# netperf -H 192.168.2.107 -c -C -i 30,3 -- -s 1M -S 1M -m 64K
-H fe80::207:43ff:fe05:9d%4
TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to fe80::207:43ff:fe05:9d%4
(fe80::207:43ff:fe05:9d) port 0 AF_INET6 : +/-2.5% @ 99% conf.
which will at least get past the EINVAL's - if one doesn't pick the "right"
index then the data connection establishment (or control if you use v6 for the
control) will time-out.
Now, I've yet to get a complete run this way - not sure if I still need to
change anything in netperf or not, but it does seem to get us a step closer. It
may still be necessary to do something on the netserver end :(
happy benchmarking,
rick
More information about the netperf-talk
mailing list