News for hackers. Stuff that matters.
Re:Five years of IPv6: whither the next five? by dingo_bat on Tuesday June 06, 2017 @10:06PM (#14503172)
Passing around an IP address in a single register. Today's CPUs are powerful enough to not need hardware forwarding chips to route up to 1Gbps of traffic easily, without much custom software optimisation. However that only holds true for IPv4 traffic. Throw in IPv6 traffic and suddenly each compare takes twice as much time in the CPU. Functions cannot pass addresses and masks in the registers, requiring stack juggling or worse, memory access.
Re:Five years of IPv6: whither the next five? by tveita on Wednesday June 07, 2017 @06:08AM (#14504948)
> Throw in IPv6 traffic and suddenly each compare takes twice as much time in the CPU

So an operation responsible for less than 0.1% of the total time spent routing a packet now takes twice as much time... or it would if CPUs weren't superscalar for a long time now. That's paid back in tenfold just by the omission of the header checksum.

Do you have any benchmarks showing a real-world difference? https://www.unix-experience.fr/2013/ipv4ipv6-performances-co... shows performance to be identical on modern computers.

Re:Five years of IPv6: whither the next five? by legulere on Wednesday June 07, 2017 @03:12AM (#14504287)
Compile a function that takes a 128 bit struct as an argument and look at the assembly. It is simply passed in 2 registers.
Re:Five years of IPv6: whither the next five? by DaiPlusPlus on Wednesday June 07, 2017 @04:24AM (#14504550)
Depends on the ISA and optimization level - and the OS. Win32's x86-only __stdcall convention always passes arguments on the stack instead of in registers.
Re:Five years of IPv6: whither the next five? by tyingq on Tuesday June 06, 2017 @11:43PM (#14503584)
Ask yourself who benefits from this...slower networking on commodity hardware. Then look at who had the most influence over ipv6 in the IETF, etc. No big surprises.