Hello Yamamoto,

I will try to explain my problem with the current code in Ryu:

When you parse a packet, MAC and IP fields get translated into EUI-64 and
dotted format for "no reason". This has a huge impact on performance when
you have a large number of packets (As it's obvious in the benchmark
code.). Ryu's packet library "is" slower than dpkt by a factor of 5 for
unpacking and 7 for packing because of this translation.

My proposed solution is to remove automatic translation of IP and MAC
addresses into their human readable format, and make it a "lazy"
translation wherever it is necessary. (To be honest, I do not quite
understand where a dotted notation would be more beneficial than the byte
array, beside for humans.)

Again, I can submit a code/patch if you would like to see my proposed
solution.

Best,
Omid
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to