[netperf-talk] Running Netperf using IPv6
Ashenafi D
bashenafi at gmail.com
Tue Jul 17 12:15:05 PDT 2007
Thank you Rick for your input.
Here is what I found from Qt:
QHostAddress isn't enough to hold proper addresses, meaning IPv6 addresses
require more information than a simple 128-bit
address. Link-local addresses in stream connections require the
sin6_scope_id field of sockaddr_in6 to be set when connect call is used,
In some Linux distros, when using a link-local or site-local address for
IPv6 connections, you must specify the scope ID. The scope ID for a
link-local address is usually the same as the interface name (e.g., "eth0",
"en1") or number ( e.g., "1", "2").
http://doc.trolltech.com/4.3/qhostaddress.html#scopeId
[machine1 ~]$ netperf241 -6 -H fe80::209:3dff:fe00:8c6%eth0
TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to
fe80::209:3dff:fe00:8c6%eth0 (fe80::209:3dff:fe00:8c6) port 0 AF_INET6 :
histogram : demo
Recv Send Send
Socket Socket Message Elapsed
Size Size Size Time Throughput
bytes bytes bytes secs. 10^6bits/sec
87380 16384 16384 10.00 2498.64
[releng at svbu-qa-opteron-1 ~]$
Regards,
Ashenafi
On 4/10/07, Rick Jones <rick.jones2 at hp.com> wrote:
>
>
> Adding to the "must be the OS" argument is this, where a link-scope IP
> works under HP-UX 11iv2 ( 11.23)
>
> # ifconfig lan0
> lan0: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
> inet 15.4.89.212 netmask fffff800 broadcast 15.4.95.255
> lan0: flags=4800841<UP,RUNNING,MULTICAST,PRIVATE,ONLINK>
> inet6 fe80::230:6eff:fe4c:2778 prefix 10
> # netserver -6
> Starting netserver at port 12865
> Starting netserver at hostname ::0 port 12865 and family AF_INET6
> # netperf -6
> TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to ::1 (::1) port 0 AF_INET6
> Recv Send Send
> Socket Socket Message Elapsed
> Size Size Size Time Throughput
> bytes bytes bytes secs. 10^6bits/sec
>
> 32768 32768 32768 10.01 7006.90
> # netperf -H ::1 -6
> TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to ::1 (::1) port 0 AF_INET6
> Recv Send Send
> Socket Socket Message Elapsed
> Size Size Size Time Throughput
> bytes bytes bytes secs. 10^6bits/sec
>
> 32768 32768 32768 10.01 6969.30
> # netperf -H fe80::230:6eff:fe4c:2778 -6
> TCP STREAM TEST from ::0 (::) port 0 AF_INET6 to
> fe80::230:6eff:fe4c:2778 (fe80::230:6eff:fe4c:2778) port 0 AF_INET6
> Recv Send Send
> Socket Socket Message Elapsed
> Size Size Size Time Throughput
> bytes bytes bytes secs. 10^6bits/sec
>
> 32768 32768 32768 10.00 7063.79
> # uname -a
> HP-UX linger B.11.23 U ia64 4203217935 unlimited-user license
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.netperf.org/pipermail/netperf-talk/attachments/20070717/0fea44e8/attachment.htm
More information about the netperf-talk
mailing list