Hi there,
I did few performance comparison tests between two cross connected machines using Ipv4 and Ipv6 on linux.I used netperf as an analysis tool. Here is the configuration commands that I executed to set up Ipv6 stacks
modprobe ipv6
ifconfig lo down
ifconfig eth0 down
ifconfig lo 127.0.0.1 up
route add 127.0.0.1 lo
ifconfig eth0 192.168.100.1 up
route add 192.168.100.0 eth0
ifconfig eth0 add 3ffe:305:1002:8010::1/64
route -A inet6 add 3ffe:305:1002:8010::0/64 eth0
while for other machine
modprobe ipv6
ifconfig lo down
ifconfig eth0 down
ifconfig lo 127.0.0.1 up
route add 127.0.0.1 lo
ifconfig eth0 192.168.100.2 up
route add 192.168.100.0 eth0
ifconfig eth0 add 3ffe:305:1002:8010::2/64
route -A inet6 add 3ffe:305:1002:8010::0/64 eth0
I used netperf to measure round trip times for TCPIPv4/IPv6 and UDP IPv4/IPv6 and throughputs. Now I am getting low latency in IPv6 as compared to IPv4 for both UDP and TCP. Can some body please explain me why it is happening like this. As we were expecting high latency in case of IPv6.
I am pasting three values out of my results for packet size 64, 768, 1408
packet size= 64
RTT(microsecond)TCPIPv4 =154 ;
RTT TCPIPV6 = 129 ;
packet size= 768
RTT(microsecond)TCPIPv4 =302 ;
RTT TCPIPV6 = 278;
packet size= 1408
RTT(microsecond)TCPIPv4 = 439;
RTT TCPIPV6 = 409 ;
I did check the results without loading IPv6 stack as well. I would appreciate any help or comments