-
Notifications
You must be signed in to change notification settings - Fork 2
32-way ecmp fanout. ecmp support for IPv6. #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Notes:
|
rcgoodfellow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Nils. LGTM just a few small comments. I think we'll also want to determine what the distribution looks like for the masked CRC8 so that is a known characteristic of the design.
| meta.l4_dst_port, | ||
| meta.l4_src_port | ||
| }); | ||
| }) & 0x3f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment on the bit trading taking place through this mask (and for v6 below).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Noted in the ipv6 path as well.
dpd/src/table/route_ipv6.rs
Outdated
| .map(|_| info!(s.log, "deleted ipv6 index"; "route" => %cidr)) | ||
| .map_err(|e| { | ||
| error!(s.log, "failed to delete ipv6 index"; | ||
| "route" => %cidr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something a bit wonky with the formatting here. And several spots below.
A ran a test with a billion samples. Source and destination IPs were random within the 10.x.x.x subnet, and source and destination ports were random between 1000 and 10000. With the masked crc, there were 64 possible buckets into which these samples could land. The resulting bucket sizes looked like: min: 15615310 max: 15634865 avg: 15625000 std_dev: 4071.0562 cv: 0.0002605476 |
ecmp support for IPv6
No description provided.