-
Notifications
You must be signed in to change notification settings - Fork 138
Scaling Example NF Updates #321
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
Changes the source IP address in ARP reply from CPU byte ordering to BE. Commit log: * ARP endianess fixed
Release of ONVM v21.10
|
@catherinemeadows Is this right? Or does the main NF not actually have a run loop so there are |
|
@twood02 Yes, the parent NF spawns N children NFs with the same service ID and the packets are distributed across the N+1 NFs and forwarded to the destination ID. Should I add this to the documentation? |
twood02
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.
looks good to me
|
@NoahChinitzGWU can you build and run this code on one of your systems to verify it is working as expected? Post a screenshot/paste the output here |
|
They should scale once you send packets to it (you can use speed tester) |
NoahChinitz
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.
See my previous comments for screenshots of working output
|
@dennisafa - can you do a very quick review and approve this if nothing jumps out at you? |
dennisafa
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.
Changes look good to me. Unrelated to the bug itself, I think it would make sense to do the scaling differently. Right now, we spawn the child NF's as soon as we receive a packet in the packet_handler_with_scaling() function. The new NF's packet handler is then set to packet_handler_fwd(). Why not spawn all of the child NF's upon startup, rather than wait for the first packet? The current implementation would make more sense if we were spawning the child NF's based on say, the packet count/rate.
Merge branch 'develop' of https://github.com/sdnfv/openNetVM into jettjacobs-docs * 'develop' of https://github.com/sdnfv/openNetVM: Python Script Update (#325) LB Adjustments; Run without mTCP (#322) Fix incorrect comment (#323) Scaling Example NF Updates (#321) ONVM 21.10 [Bug Fix] speed_tester jumbo frames crash fix (#316) [Bug Fix] ARP endianess fixed (#317)




Modified the Scaling Example NF to assign spawned children with the same service ID as the parent and updated the README with more detail about callback and advanced rings modes.
Summary:
Usage:
Merging notes:
TODO before merging :
Test Plan: