feat(pipelined): Router Advertisement issue fix for 5G UE IPv6#13020
feat(pipelined): Router Advertisement issue fix for 5G UE IPv6#13020pshelar merged 13 commits intomagma:masterfrom
Conversation
|
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
|
Oops! Looks like you failed the Howto
♻️ Updated: ✅ The check is passing the Python Format Check after the last commit. |
| ipv6_src=ipv6_src, | ||
| ll_addr=config_dict['virtual_mac'], | ||
| prefix_len=self.DEFAULT_PREFIX_LEN, | ||
| ng_service_enabled=ng_service, |
There was a problem hiding this comment.
ng_service_enabled True is not tested in test_ipv6_solicitation. Does a test make sense here? What is expected if it is True, but classifier_controller_id is not set?
There was a problem hiding this comment.
The classifier_controller_id value set to 5 in pipelined.yml.
This value used for 5G RYU controller set value for packetIN events.
4bbb4df to
dc9aa5f
Compare
| self.uplink_port_name, | ||
| ) | ||
| else: | ||
| self._uplink_port = OFPP_LOCAL |
There was a problem hiding this comment.
This PR is trying to implement two different functionality.
- Non-NAT
- Add support for IPv6.
Please separate it in two separate PRs with its own unit tests.
There was a problem hiding this comment.
@pshelar , we have fixed it as per your suggestion.
- Created PR Support for Non-NAT mode in 5G-SA feat(pipelined): Support for Non-NAT mode in 5G-SA #13288 and merged into master.
- Rebased with master and added UT for ipv6 solicitation
python/magma/pipelined/tests/test_ipv6_solicitation_5g.py
We have verified with UERANSIM for below functionality and along with end-to-end traffic flows:
Router Solicitation
Router Advertisement
IPv6 traffic with TCP.
Attached logs and pcap file for same.
dc9aa5f to
b83e8aa
Compare
3d680bb to
1f6795d
Compare
| far_rule = FARRuleEntry( | ||
| far_entry.far_action_to_apply[0], | ||
| o_teid, fwd_gnb_ip_addr, | ||
| fwd_gnb_ip_addr, |
There was a problem hiding this comment.
🚫 [mypy] reported by reviewdog 🐶
Argument 2 to "FARRuleEntry" has incompatible type "Optional[Any]"; expected "str" [arg-type]
|
please rebase and fix |
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
Signed-off-by: prabina pattnaik <[email protected]>
8657480 to
9be14cb
Compare
GANESH-WAVELABS
left a comment
There was a problem hiding this comment.
Sessiond Changes LGTM
* feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> Signed-off-by: prabina pattnaik <[email protected]> (cherry picked from commit 02aa0bb)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
… (#13632) * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> * feat(pipelined): Router Advertisement issue fix for 5G UE IPv6 Signed-off-by: prabina pattnaik <[email protected]> Signed-off-by: prabina pattnaik <[email protected]> (cherry picked from commit 02aa0bb) Co-authored-by: prabinakpattnaik <[email protected]>
Signed-off-by: prabina pattnaik [email protected]
Summary
Router Advertisement not getting generated for 5G UE IPv6 [Issue ID #12871 ]
Below are functionality supported in this PR:
For 4g and 5g controller ID is different value used.
So, ipv6 solicitation flows are inserted into table 3 with Action value different based on cotroller ID
For 5g, output of table=3:
Need to add GNB IP address in "/etc/network/interfaces.d/gtp" at port gtp0 for sending the Router adverstisemnt message to target device:
Test Plan
Using UERANSIM simulator, we have verified this functionality.
Additional Information
Logs:
IP Address Allocated for IPv6:
IPV6SolicitationController logs when received Router Solicitation from UE: