Skip to content
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

feat(pipelined): Support extended bitrates for 5g #15171

Merged
merged 3 commits into from
May 2, 2023

Conversation

mehul-jindal
Copy link
Contributor

Summary

In order to support extended bit rates for 5g (feature defined here #5676), we are introducing a flag on Qos to set units of the bitrates (either bps or kbps)
Pipelined needs to check the value of units to apply the right value for Qos
Pipelined will receive a new field called br_units on apn_ambr (as you can see below). That field is the multiplier for the values.

Test Plan

Tested with sessiond stub CLI magma/lte/gateway/python/scripts/smf_upf_integration_cli.py

Additional Information

Refer subsequent comments for logs

Signed-off-by: mehul-jindal-wavelabs <mehul.jindal@wavelabs.ai>
@mehul-jindal mehul-jindal requested a review from a team as a code owner April 4, 2023 15:45
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines. label Apr 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: agw Access gateway-related issue label Apr 4, 2023
}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

FeG Lint & Test

    2 files  203 suites   40s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit 5728413.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

DP Lint & Test

14 tests   14 ✔️  2m 26s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 5728413.

♻️ This comment has been updated with latest results.

@mehul-jindal
Copy link
Contributor Author

mehul-jindal commented Apr 4, 2023

Logs

  • Test Python AGW services
vagrant@magma-dev:~/magma/lte/gateway$ bazel test //lte/gateway/python/... //orc8r/gateway/python/...
2023/04/04 16:56:18 Downloading https://releases.bazel.build/5.2.0/release/bazel-5.2.0-linux-x86_64...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
.
.
.
//lte/gateway/python/dhcp_helper_cli/tests:test_dhcp_helper_cli          PASSED in 4.8s
//lte/gateway/python/magma/enodebd/tests:baicells_old_tests              PASSED in 1.8s
//lte/gateway/python/magma/enodebd/tests:baicells_qafb_tests             PASSED in 1.7s
//lte/gateway/python/magma/enodebd/tests:baicells_qrtb_tests             PASSED in 2.8s
//lte/gateway/python/magma/enodebd/tests:baicells_tests                  PASSED in 1.9s
//lte/gateway/python/magma/enodebd/tests:cavium_tests                    PASSED in 1.5s
//lte/gateway/python/magma/enodebd/tests:configuration_init_tests        PASSED in 1.7s
//lte/gateway/python/magma/enodebd/tests:data_model_tests                PASSED in 1.4s
//lte/gateway/python/magma/enodebd/tests:device_utils_tests              PASSED in 0.7s
//lte/gateway/python/magma/enodebd/tests:enb_acs_manager_tests           PASSED in 1.6s
//lte/gateway/python/magma/enodebd/tests:enodeb_acs_states_tests         PASSED in 1.3s
//lte/gateway/python/magma/enodebd/tests:enodeb_configuration_tests      PASSED in 1.4s
//lte/gateway/python/magma/enodebd/tests:enodeb_status_tests             PASSED in 1.7s
//lte/gateway/python/magma/enodebd/tests:freedomfi_one_tests             PASSED in 1.8s
//lte/gateway/python/magma/enodebd/tests:get_params_tests                PASSED in 1.6s
//lte/gateway/python/magma/enodebd/tests:spyne_mods_tests                PASSED in 0.9s
//lte/gateway/python/magma/enodebd/tests:stats_manager_tests             PASSED in 1.6s
//lte/gateway/python/magma/enodebd/tests:timer_tests                     PASSED in 1.0s
//lte/gateway/python/magma/enodebd/tests:tr069_tests                     PASSED in 1.6s
//lte/gateway/python/magma/enodebd/tests:transform_for_enb_tests         PASSED in 0.6s
//lte/gateway/python/magma/enodebd/tests:transform_for_magma_tests       PASSED in 0.6s
//lte/gateway/python/magma/enodebd/tr069/tests:models_tests              PASSED in 1.3s
//lte/gateway/python/magma/health/tests:test_state_recovery              PASSED in 1.2s
//lte/gateway/python/magma/kernsnoopd/tests:byte_counter_tests           PASSED in 1.0s
//lte/gateway/python/magma/mobilityd/tests:ip_allocator_dhcp_mac_addr_test PASSED in 0.7s
//lte/gateway/python/magma/mobilityd/tests:ip_allocator_tests            PASSED in 10.5s
//lte/gateway/python/magma/mobilityd/tests:rpc_servicer_tests            PASSED in 2.3s
//lte/gateway/python/magma/mobilityd/tests:test_ip_allocator_dhcp        PASSED in 2.0s
//lte/gateway/python/magma/mobilityd/tests:test_ipv6_allocator           PASSED in 1.3s
//lte/gateway/python/magma/mobilityd/tests:test_multi_apn_ip_alloc       PASSED in 1.3s
//lte/gateway/python/magma/mobilityd/tests:test_static_ip_alloc          PASSED in 5.1s
//lte/gateway/python/magma/mobilityd/tests:test_static_ipv6_alloc        PASSED in 3.4s
//lte/gateway/python/magma/mobilityd/tests:test_uplink_gw                PASSED in 0.9s
//lte/gateway/python/magma/monitord/tests:test_icmp_monitor              PASSED in 5.3s
//lte/gateway/python/magma/pipelined/openflow/tests:test_msg_hub         PASSED in 2.7s
//lte/gateway/python/magma/pipelined/tests:test_encoding                 PASSED in 0.9s
//lte/gateway/python/magma/pipelined/tests:test_gtp_stats_collector      PASSED in 0.8s
//lte/gateway/python/magma/pipelined/tests:test_ifaces                   PASSED in 0.7s
//lte/gateway/python/magma/pipelined/tests:test_imsi_encoding            PASSED in 0.9s
//lte/gateway/python/magma/pipelined/tests:test_ipv6_prefix_mapper       PASSED in 1.3s
//lte/gateway/python/magma/pipelined/tests:test_rpc_servicer             PASSED in 3.1s
//lte/gateway/python/magma/pipelined/tests:test_rule_mappers             PASSED in 1.4s
//lte/gateway/python/magma/pipelined/tests:test_service_manager          PASSED in 4.0s
//lte/gateway/python/magma/pipelined/tests:test_tunnel_id_mapper         PASSED in 1.7s
//lte/gateway/python/magma/policydb/tests:test_policy_servicer           PASSED in 1.4s
//lte/gateway/python/magma/policydb/tests:test_reauth_handler            PASSED in 1.2s
//lte/gateway/python/magma/policydb/tests:test_session_servicer          PASSED in 1.2s
//lte/gateway/python/magma/policydb/tests:test_streamer_callback         PASSED in 1.8s
//lte/gateway/python/magma/redirectd/tests:test_redirect                 PASSED in 1.3s
//lte/gateway/python/magma/subscriberdb/tests:client_tests               PASSED in 2.2s
//lte/gateway/python/magma/subscriberdb/tests:processor_tests            PASSED in 4.1s
//lte/gateway/python/magma/subscriberdb/tests:rpc_tests                  PASSED in 2.0s
//lte/gateway/python/magma/subscriberdb/tests:sid_utils_tests            PASSED in 0.9s
//lte/gateway/python/magma/subscriberdb/tests/crypto:crypto_tests        PASSED in 0.7s
//lte/gateway/python/magma/subscriberdb/tests/crypto:milenage_tests      PASSED in 0.9s
//lte/gateway/python/magma/subscriberdb/tests/crypto:test_ECIES          PASSED in 0.7s
//lte/gateway/python/magma/subscriberdb/tests/protocols/diameter:avp_tests PASSED in 0.7s
//lte/gateway/python/magma/subscriberdb/tests/protocols/diameter:base_application_tests PASSED in 1.0s
//lte/gateway/python/magma/subscriberdb/tests/protocols/diameter:message_tests PASSED in 1.3s
//lte/gateway/python/magma/subscriberdb/tests/protocols/diameter:s6a_application_tests PASSED in 1.3s
//lte/gateway/python/magma/subscriberdb/tests/protocols/diameter:s6a_relay_tests PASSED in 1.2s
//lte/gateway/python/magma/subscriberdb/tests/protocols/diameter:server_tests PASSED in 0.7s
//lte/gateway/python/magma/subscriberdb/tests/store:onready_test         PASSED in 2.0s
//lte/gateway/python/magma/subscriberdb/tests/store:store_tests          PASSED in 3.3s
//orc8r/gateway/python/magma/common/redis/tests:dict_tests               PASSED in 1.1s
//orc8r/gateway/python/magma/common/tests:cert_utils_tests               PASSED in 0.9s
//orc8r/gateway/python/magma/common/tests:cert_validity_tests            PASSED in 0.8s
//orc8r/gateway/python/magma/common/tests:metrics_tests                  PASSED in 0.9s
//orc8r/gateway/python/magma/common/tests:sentry_tests                   PASSED in 1.1s
//orc8r/gateway/python/magma/common/tests:service303_tests               PASSED in 1.3s
//orc8r/gateway/python/magma/configuration/tests:mconfig_manager_impl_tests PASSED in 0.9s
//orc8r/gateway/python/magma/configuration/tests:mconfigs_tests          PASSED in 0.7s
//orc8r/gateway/python/magma/directoryd/tests:rpc_servicer_tests         PASSED in 1.7s
//orc8r/gateway/python/magma/eventd/tests:event_validation_tests         PASSED in 1.8s
//orc8r/gateway/python/magma/magmad/check/kernel_check/tests:kernel_versions_tests PASSED in 0.6s
//orc8r/gateway/python/magma/magmad/check/machine_check/tests:cpu_info_tests PASSED in 0.6s
//orc8r/gateway/python/magma/magmad/check/network_check/tests:ping_tests PASSED in 0.7s
//orc8r/gateway/python/magma/magmad/check/network_check/tests:routing_table_tests PASSED in 0.6s
//orc8r/gateway/python/magma/magmad/check/network_check/tests:traceroute_tests PASSED in 0.7s
//orc8r/gateway/python/magma/magmad/check/tests:subprocess_workflow_tests PASSED in 0.7s
//orc8r/gateway/python/magma/magmad/generic_command/tests:command_executor_test PASSED in 1.2s
//orc8r/gateway/python/magma/magmad/generic_command/tests:shell_command_executor_test PASSED in 0.7s
//orc8r/gateway/python/magma/magmad/tests:bootstrap_manager_tests        PASSED in 6.3s
//orc8r/gateway/python/magma/magmad/tests:collector_tests                PASSED in 1.9s
//orc8r/gateway/python/magma/magmad/tests:config_manager_tests           PASSED in 1.5s
//orc8r/gateway/python/magma/magmad/tests:proxy_client_tests             PASSED in 1.2s
//orc8r/gateway/python/magma/magmad/tests:service_poller_tests           PASSED in 1.9s
//orc8r/gateway/python/magma/magmad/tests:state_reporter_test            PASSED in 1.9s
//orc8r/gateway/python/magma/magmad/tests:sync_rpc_client_tests          PASSED in 22.9s
//orc8r/gateway/python/magma/magmad/upgrade/tests:magma_upgrader_tests   PASSED in 0.8s
//orc8r/gateway/python/magma/magmad/upgrade/tests:upgrader2_test         PASSED in 1.1s
//orc8r/gateway/python/magma/state/tests:garbage_collector_test          PASSED in 2.2s
//orc8r/gateway/python/magma/state/tests:state_replicator_test           PASSED in 2.3s

Executed 93 out of 93 tests: 93 tests pass.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option toINFO: Build completed successfully, 3563 total actions
  • Sessiond stub CLI to trigger PDU session establishment request from AMF to sessiond with bit rate units as KBPS:
(python) vagrant@magma-dev:~/magma/lte/gateway/python/scripts$ ./smf_upf_integration_cli.py amf_context set_amf_session_tc1
=========TEST CASE-1 PDU SESSION ESTABLISHMENT===========
common_context {
  sid {
    id: "IMSI12345"
  }
  ue_ipv4: "192.168.128.11"
  apn: "BLR"
  rat_type: TGPP_NR
}
rat_specific_context {
  m5gsm_session_context {
    pdu_session_id: 1
    ssc_mode: SSC_MODE_3
    gnode_endpoint {
      teid: 10000
      end_ipv4_addr: "192.168.60.141"
    }
    subscribed_qos {
      apn_ambr_dl: 1000000
      apn_ambr_ul: 750000
      priority_level: 1
      preemption_capability: MAY_TRIGGER_PRE_EMPTION
      preemption_vulnerability: PRE_EMPTABLE
      qos_class_id: QCI_9
      br_unit: KBPS
    }
  }
}
  • Sessiond to pipelined GRPC message during PDU session establishment with br_unit : KBPS as part of apn_ambr listed below:
Apr  4 17:26:49 magma-dev sessiond[65552]:   magma.lte.SessionSet {
Apr  4 17:26:49 magma-dev sessiond[65552]:       subscriber_id: "IMSI12345"
Apr  4 17:26:49 magma-dev sessiond[65552]:       local_f_teid: 2147483647
Apr  4 17:26:49 magma-dev sessiond[65552]:       session_version: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:       node_id {
Apr  4 17:26:49 magma-dev sessiond[65552]:         node_id: "192.168.200.1"
Apr  4 17:26:49 magma-dev sessiond[65552]:       }
Apr  4 17:26:49 magma-dev sessiond[65552]:       state {
Apr  4 17:26:49 magma-dev sessiond[65552]:         state: CREATED
Apr  4 17:26:49 magma-dev sessiond[65552]:       }
Apr  4 17:26:49 magma-dev sessiond[65552]:       set_gr_pdr {
Apr  4 17:26:49 magma-dev sessiond[65552]:         pdr_id: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:         pdr_version: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:         precedence: 32
Apr  4 17:26:49 magma-dev sessiond[65552]:         gnb_teid: 10000
Apr  4 17:26:49 magma-dev sessiond[65552]:         pdi {
Apr  4 17:26:49 magma-dev sessiond[65552]:           local_f_teid: 2147483647
Apr  4 17:26:49 magma-dev sessiond[65552]:           net_instance: "uplink"
Apr  4 17:26:49 magma-dev sessiond[65552]:           ue_ipv4: "192.168.128.11"
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         set_gr_far {
Apr  4 17:26:49 magma-dev sessiond[65552]:           far_action_to_apply: FORW
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         deactivate_flow_req {
Apr  4 17:26:49 magma-dev sessiond[65552]:           sid {
Apr  4 17:26:49 magma-dev sessiond[65552]:             id: "IMSI12345"
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev sessiond[65552]:           uplink_tunnel: 2147483647
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         activate_flow_req {
Apr  4 17:26:49 magma-dev sessiond[65552]:           sid {
Apr  4 17:26:49 magma-dev sessiond[65552]:             id: "IMSI12345"
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev sessiond[65552]:           request_origin {
Apr  4 17:26:49 magma-dev sessiond[65552]:             type: N4
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           apn_ambr {
Apr  4 17:26:49 magma-dev sessiond[65552]:             max_bandwidth_ul: 750000
Apr  4 17:26:49 magma-dev sessiond[65552]:             max_bandwidth_dl: 1000000
Apr  4 17:26:49 magma-dev sessiond[65552]:             br_unit: KBPS
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           uplink_tunnel: 2147483647
Apr  4 17:26:49 magma-dev sessiond[65552]:           policies {
Apr  4 17:26:49 magma-dev sessiond[65552]:             rule {
Apr  4 17:26:49 magma-dev sessiond[65552]:               id: "allowlist_sid-IMSI12345-BLR"
Apr  4 17:26:49 magma-dev sessiond[65552]:               priority: 65530
Apr  4 17:26:49 magma-dev sessiond[65552]:               flow_list {
Apr  4 17:26:49 magma-dev sessiond[65552]:                 match {
Apr  4 17:26:49 magma-dev sessiond[65552]:                 }
Apr  4 17:26:49 magma-dev sessiond[65552]:               }
Apr  4 17:26:49 magma-dev sessiond[65552]:               qos {
Apr  4 17:26:49 magma-dev sessiond[65552]:               }
Apr  4 17:26:49 magma-dev sessiond[65552]:               tracking_type: NO_TRACKING
Apr  4 17:26:49 magma-dev sessiond[65552]:             }
Apr  4 17:26:49 magma-dev sessiond[65552]:             version: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         session_qfi: QCI_9
Apr  4 17:26:49 magma-dev sessiond[65552]:       }
Apr  4 17:26:49 magma-dev sessiond[65552]:       set_gr_pdr {
Apr  4 17:26:49 magma-dev sessiond[65552]:         pdr_id: 2
Apr  4 17:26:49 magma-dev sessiond[65552]:         pdr_version: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:         precedence: 32
Apr  4 17:26:49 magma-dev sessiond[65552]:         gnb_teid: 10000
Apr  4 17:26:49 magma-dev sessiond[65552]:         pdi {
Apr  4 17:26:49 magma-dev sessiond[65552]:           src_interface: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:           net_instance: "downlink"
Apr  4 17:26:49 magma-dev sessiond[65552]:           ue_ipv4: "192.168.128.11"
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         set_gr_far {
Apr  4 17:26:49 magma-dev sessiond[65552]:           far_action_to_apply: FORW
Apr  4 17:26:49 magma-dev sessiond[65552]:           fwd_parm {
Apr  4 17:26:49 magma-dev sessiond[65552]:             outr_head_cr {
Apr  4 17:26:49 magma-dev sessiond[65552]:               o_teid: 10000
Apr  4 17:26:49 magma-dev sessiond[65552]:               gnb_ipv4_adr: "192.168.60.141"
Apr  4 17:26:49 magma-dev sessiond[65552]:             }
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         deactivate_flow_req {
Apr  4 17:26:49 magma-dev sessiond[65552]:           sid {
Apr  4 17:26:49 magma-dev sessiond[65552]:             id: "IMSI12345"
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev sessiond[65552]:           downlink_tunnel: 10000
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         activate_flow_req {
Apr  4 17:26:49 magma-dev sessiond[65552]:           sid {
Apr  4 17:26:49 magma-dev sessiond[65552]:             id: "IMSI12345"
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev sessiond[65552]:           request_origin {
Apr  4 17:26:49 magma-dev sessiond[65552]:             type: N4
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           apn_ambr {
Apr  4 17:26:49 magma-dev sessiond[65552]:             max_bandwidth_ul: 750000
Apr  4 17:26:49 magma-dev sessiond[65552]:             max_bandwidth_dl: 1000000
Apr  4 17:26:49 magma-dev sessiond[65552]:             br_unit: KBPS
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:           downlink_tunnel: 10000
Apr  4 17:26:49 magma-dev sessiond[65552]:           policies {
Apr  4 17:26:49 magma-dev sessiond[65552]:             rule {
Apr  4 17:26:49 magma-dev sessiond[65552]:               id: "allowlist_sid-IMSI12345-BLR"
Apr  4 17:26:49 magma-dev sessiond[65552]:               priority: 65530
Apr  4 17:26:49 magma-dev sessiond[65552]:               flow_list {
Apr  4 17:26:49 magma-dev sessiond[65552]:                 match {
Apr  4 17:26:49 magma-dev sessiond[65552]:                   direction: DOWNLINK
Apr  4 17:26:49 magma-dev sessiond[65552]:                 }
Apr  4 17:26:49 magma-dev sessiond[65552]:               }
Apr  4 17:26:49 magma-dev sessiond[65552]:               qos {
Apr  4 17:26:49 magma-dev sessiond[65552]:               }
Apr  4 17:26:49 magma-dev sessiond[65552]:               tracking_type: NO_TRACKING
Apr  4 17:26:49 magma-dev sessiond[65552]:             }
Apr  4 17:26:49 magma-dev sessiond[65552]:             version: 1
Apr  4 17:26:49 magma-dev sessiond[65552]:           }
Apr  4 17:26:49 magma-dev sessiond[65552]:         }
Apr  4 17:26:49 magma-dev sessiond[65552]:         session_qfi: QCI_9
Apr  4 17:26:49 magma-dev sessiond[65552]:       }
Apr  4 17:26:49 magma-dev sessiond[65552]:   }

  • Below are pipelined DEBUG logs collected in /var/log/syslog for bit rate units as kbit:
Apr  4 17:26:49 magma-dev pipelined[65603]: INFO:root:Got RPC payload:
Apr  4 17:26:49 magma-dev pipelined[65603]:   SessionSet {
Apr  4 17:26:49 magma-dev pipelined[65603]:     subscriber_id: "IMSI12345"
Apr  4 17:26:49 magma-dev pipelined[65603]:     local_f_teid: 2147483647
Apr  4 17:26:49 magma-dev pipelined[65603]:     session_version: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:     node_id {
Apr  4 17:26:49 magma-dev pipelined[65603]:       node_id: "192.168.200.1"
Apr  4 17:26:49 magma-dev pipelined[65603]:     }
Apr  4 17:26:49 magma-dev pipelined[65603]:     state {
Apr  4 17:26:49 magma-dev pipelined[65603]:       state: CREATED
Apr  4 17:26:49 magma-dev pipelined[65603]:     }
Apr  4 17:26:49 magma-dev pipelined[65603]:     set_gr_pdr {
Apr  4 17:26:49 magma-dev pipelined[65603]:       pdr_id: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:       pdr_version: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:       precedence: 32
Apr  4 17:26:49 magma-dev pipelined[65603]:       gnb_teid: 10000
Apr  4 17:26:49 magma-dev pipelined[65603]:       pdi {
Apr  4 17:26:49 magma-dev pipelined[65603]:         local_f_teid: 2147483647
Apr  4 17:26:49 magma-dev pipelined[65603]:         net_instance: "uplink"
Apr  4 17:26:49 magma-dev pipelined[65603]:         ue_ipv4: "192.168.128.11"
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       set_gr_far {
Apr  4 17:26:49 magma-dev pipelined[65603]:         far_action_to_apply: FORW
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       deactivate_flow_req {
Apr  4 17:26:49 magma-dev pipelined[65603]:         sid {
Apr  4 17:26:49 magma-dev pipelined[65603]:           id: "IMSI12345"
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev pipelined[65603]:         uplink_tunnel: 2147483647
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       activate_flow_req {
Apr  4 17:26:49 magma-dev pipelined[65603]:         sid {
Apr  4 17:26:49 magma-dev pipelined[65603]:           id: "IMSI12345"
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev pipelined[65603]:         request_origin {
Apr  4 17:26:49 magma-dev pipelined[65603]:           type: N4
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         apn_ambr {
Apr  4 17:26:49 magma-dev pipelined[65603]:           max_bandwidth_ul: 750000
Apr  4 17:26:49 magma-dev pipelined[65603]:           max_bandwidth_dl: 1000000
Apr  4 17:26:49 magma-dev pipelined[65603]:           br_unit: KBPS
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         uplink_tunnel: 2147483647
Apr  4 17:26:49 magma-dev pipelined[65603]:         policies {
Apr  4 17:26:49 magma-dev pipelined[65603]:           rule {
Apr  4 17:26:49 magma-dev pipelined[65603]:             id: "allowlist_sid-IMSI12345-BLR"
Apr  4 17:26:49 magma-dev pipelined[65603]:             priority: 65530
Apr  4 17:26:49 magma-dev pipelined[65603]:             flow_list {
Apr  4 17:26:49 magma-dev pipelined[65603]:               match {
Apr  4 17:26:49 magma-dev pipelined[65603]:               }
Apr  4 17:26:49 magma-dev pipelined[65603]:             }
Apr  4 17:26:49 magma-dev pipelined[65603]:             qos {
Apr  4 17:26:49 magma-dev pipelined[65603]:             }
Apr  4 17:26:49 magma-dev pipelined[65603]:             tracking_type: NO_TRACKING
Apr  4 17:26:49 magma-dev pipelined[65603]:           }
Apr  4 17:26:49 magma-dev pipelined[65603]:           version: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       session_qfi: QCI_9
Apr  4 17:26:49 magma-dev pipelined[65603]:     }
Apr  4 17:26:49 magma-dev pipelined[65603]:     set_gr_pdr {
Apr  4 17:26:49 magma-dev pipelined[65603]:       pdr_id: 2
Apr  4 17:26:49 magma-dev pipelined[65603]:       pdr_version: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:       precedence: 32
Apr  4 17:26:49 magma-dev pipelined[65603]:       gnb_teid: 10000
Apr  4 17:26:49 magma-dev pipelined[65603]:       pdi {
Apr  4 17:26:49 magma-dev pipelined[65603]:         src_interface: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:         net_instance: "downlink"
Apr  4 17:26:49 magma-dev pipelined[65603]:         ue_ipv4: "192.168.128.11"
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       set_gr_far {
Apr  4 17:26:49 magma-dev pipelined[65603]:         far_action_to_apply: FORW
Apr  4 17:26:49 magma-dev pipelined[65603]:         fwd_parm {
Apr  4 17:26:49 magma-dev pipelined[65603]:           outr_head_cr {
Apr  4 17:26:49 magma-dev pipelined[65603]:             o_teid: 10000
Apr  4 17:26:49 magma-dev pipelined[65603]:             gnb_ipv4_adr: "192.168.60.141"
Apr  4 17:26:49 magma-dev pipelined[65603]:           }
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       deactivate_flow_req {
Apr  4 17:26:49 magma-dev pipelined[65603]:         sid {
Apr  4 17:26:49 magma-dev pipelined[65603]:           id: "IMSI12345"
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev pipelined[65603]:         downlink_tunnel: 10000
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       activate_flow_req {
Apr  4 17:26:49 magma-dev pipelined[65603]:         sid {
Apr  4 17:26:49 magma-dev pipelined[65603]:           id: "IMSI12345"
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         ip_addr: "192.168.128.11"
Apr  4 17:26:49 magma-dev pipelined[65603]:         request_origin {
Apr  4 17:26:49 magma-dev pipelined[65603]:           type: N4
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         apn_ambr {
Apr  4 17:26:49 magma-dev pipelined[65603]:           max_bandwidth_ul: 750000
Apr  4 17:26:49 magma-dev pipelined[65603]:           max_bandwidth_dl: 1000000
Apr  4 17:26:49 magma-dev pipelined[65603]:           br_unit: KBPS
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:         downlink_tunnel: 10000
Apr  4 17:26:49 magma-dev pipelined[65603]:         policies {
Apr  4 17:26:49 magma-dev pipelined[65603]:           rule {
Apr  4 17:26:49 magma-dev pipelined[65603]:             id: "allowlist_sid-IMSI12345-BLR"
Apr  4 17:26:49 magma-dev pipelined[65603]:             priority: 65530
Apr  4 17:26:49 magma-dev pipelined[65603]:             flow_list {
Apr  4 17:26:49 magma-dev pipelined[65603]:               match {
Apr  4 17:26:49 magma-dev pipelined[65603]:                 direction: DOWNLINK
Apr  4 17:26:49 magma-dev pipelined[65603]:               }
Apr  4 17:26:49 magma-dev pipelined[65603]:             }
Apr  4 17:26:49 magma-dev pipelined[65603]:             qos {
Apr  4 17:26:49 magma-dev pipelined[65603]:             }
Apr  4 17:26:49 magma-dev pipelined[65603]:             tracking_type: NO_TRACKING
Apr  4 17:26:49 magma-dev pipelined[65603]:           }
Apr  4 17:26:49 magma-dev pipelined[65603]:           version: 1
Apr  4 17:26:49 magma-dev pipelined[65603]:         }
Apr  4 17:26:49 magma-dev pipelined[65603]:       }
Apr  4 17:26:49 magma-dev pipelined[65603]:       session_qfi: QCI_9
Apr  4 17:26:49 magma-dev pipelined[65603]:     }
Apr  4 17:26:49 magma-dev pipelined[65603]:   }
  • Below are the traffic controller output with br_unit : KBPS:
(python) vagrant@magma-dev:~/magma/lte/gateway/python/scripts$ tc class show dev gtpu_sys_2152
class htb 1:fffe root rate 1Gbit ceil 1Gbit burst 1375b cburst 1375b 
class htb 1:1 parent 1:fffe prio 0 rate 80Kbit ceil 1Gbit burst 1600b cburst 1375b 
class htb 1:4 parent 1:fffe rate 80Kbit ceil 1Gbit burst 1600b cburst 1375b 
class htb 1:5 parent 1:4 prio 1 rate 80Kbit ceil 1Gbit burst 1600b cburst 1375b 

(python) vagrant@magma-dev:~/magma/lte/gateway/python/scripts$ tc class show dev eth0         
class htb 1:fffe root rate 1Gbit ceil 1Gbit burst 1375b cburst 1375b 
class htb 1:1 parent 1:fffe prio 0 rate 80Kbit ceil 1Gbit burst 1600b cburst 1375b 
class htb 1:2 parent 1:fffe rate 80Kbit ceil 750Mbit burst 1600b cburst 1500b 
class htb 1:3 parent 1:2 prio 1 rate 80Kbit ceil 750Mbit burst 1600b cburst 1500b 
  • Below are the OVS table=0 and table=13 output with br_unit : KBPS:
(python) vagrant@magma-dev:~/magma/lte/gateway/python/scripts$ sudo ovs-ofctl -O OpenFlow13 dump-flows gtp_br0 table=0
 cookie=0x0, duration=506.474s, table=0, n_packets=0, n_bytes=0, priority=65503,tun_id=0x7fffffff,qfi=9,in_port=gtp0 actions=set_field:02:00:00:00:00:01->eth_src,set_field:ff:ff:ff:ff:ff:ff->eth_dst,set_field:0x2710->reg9,set_field:0x181c9->metadata,resubmit(,1)
 cookie=0x0, duration=506.453s, table=0, n_packets=0, n_bytes=0, priority=65503,ip,in_port=LOCAL,nw_dst=192.168.128.11 actions=set_field:0x2710->tun_id,set_field:192.168.60.141->tun_dst,set_field:0x8000->reg8,set_field:oam->tun_flags,set_field:0x9->qfi,set_field:0x181c9->metadata,resubmit(,1)
 cookie=0x0, duration=506.453s, table=0, n_packets=0, n_bytes=0, priority=65503,ip,in_port=mtr0,nw_dst=192.168.128.11 actions=set_field:0x2710->tun_id,set_field:192.168.60.141->tun_dst,set_field:0x8000->reg8,set_field:oam->tun_flags,set_field:0x9->qfi,set_field:0x181c9->metadata,resubmit(,1)
 cookie=0x0, duration=506.453s, table=0, n_packets=0, n_bytes=0, priority=65503,arp,in_port=LOCAL,arp_tpa=192.168.128.11 actions=set_field:0x181c9->metadata,resubmit(,1)
 cookie=0x0, duration=506.453s, table=0, n_packets=0, n_bytes=0, priority=65503,arp,in_port=mtr0,arp_tpa=192.168.128.11 actions=set_field:0x181c9->metadata,resubmit(,1)
 cookie=0x0, duration=4654.801s, table=0, n_packets=10, n_bytes=700, priority=10,in_port=ipfix0 actions=goto_table:201
 cookie=0x0, duration=4654.658s, table=0, n_packets=0, n_bytes=0, priority=0,in_port=ipfix0 actions=resubmit(,201)
 cookie=0x0, duration=4654.658s, table=0, n_packets=10, n_bytes=700, priority=0,in_port="li_port" actions=resubmit(,202)
 cookie=0x0, duration=4654.658s, table=0, n_packets=36, n_bytes=2616, priority=0 actions=resubmit(,1)



(python) vagrant@magma-dev:~/magma/lte/gateway/python/scripts$ sudo ovs-ofctl -O OpenFlow13 dump-flows gtp_br0 table=13
 cookie=0x1, duration=528.321s, table=13, n_packets=0, n_bytes=0, priority=5,ip,reg1=0x1,metadata=0x181c9,nw_src=192.168.128.11 actions=note:61.6c.6c.6f.77.6c.69.73.74.5f.73.69.64.2d.49.4d.53.49.31.32.33.34.35.2d.42.4c.52.00.00.00,set_field:0x3->pkt_mark,set_field:0x1->reg2,set_field:0x1->reg4,set_field:0x7fffffff->reg11,resubmit(,14),resubmit(,20)
 cookie=0x1, duration=528.308s, table=13, n_packets=0, n_bytes=0, priority=5,ip,reg1=0x10,metadata=0x181c9,nw_dst=192.168.128.11 actions=note:61.6c.6c.6f.77.6c.69.73.74.5f.73.69.64.2d.49.4d.53.49.31.32.33.34.35.2d.42.4c.52.00.00.00,set_field:0x5->pkt_mark,set_field:0x1->reg2,set_field:0x1->reg4,set_field:0x7fffffff->reg11,resubmit(,14),resubmit(,20)
 cookie=0xfffffffffffffffe, duration=4673.150s, table=13, n_packets=18, n_bytes=1260, priority=0 actions=resubmit(,14),set_field:0->reg0,set_field:0->reg3
---

@mehul-jindal
Copy link
Contributor Author

Logs

  • s1ap sanity test summary:
$MAGMA_ROOT/bazel/scripts/run_integ_tests.sh
.
.
.
SUMMARY: 163/167 tests were successful.
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_activation_reject: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_security_algo_eea2_eia2: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_standalone_act_dflt_ber_ctxt_rej: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_x2_handover_ping_pong: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_mobile_reachability_tmr_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_eps_bearer_context_status_ded_bearer_deact: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_restricted_plmn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_security_algo_eea1_eia1: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_bearer_deactivation_invalid_imsi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_outoforder_attach_complete_ICSR: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_no_ueContext_release_comp: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_act_dflt_ber_ctxt_rej: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_maxbearers_twopdns: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_paging_after_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_enb_complete_reset: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_s1setup_failure_incorrect_plmn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_multiple_secondary_pdn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_non_nat_dhcp_multi_ue: FAILED
  //lte/gateway/python/integ_tests/s1aptests:test_eps_bearer_context_status_def_bearer_deact: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_after_ue_context_release: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_x2_handover: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_abort_after_smc: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_non_nat_dhcp: FAILED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_static_ip: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_no_disconnect: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_sctpd_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_ics_timer_expiry_ue_unregistered: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_asr: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_s1setup_failure_incorrect_tac: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_multi_enb_multi_ue_diff_plmn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_eps_bearer_context_status_multiple_ded_bearer_deact: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_service_req_ul_udp_data_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_multi_enb_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_with_dedicated_bearer_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_nw_triggered_delete_last_pdn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_dedicated_bearer_activation_idle_mode_paging_timer_expiry: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_multi_ue_looped: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_bearer_deactivation_invalid_lbi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_multi_enb_sctp_shutdown: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_ue_radio_capability: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_tau_mixed_partial_lists: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_flaky_retry_success: FAILED
  //lte/gateway/python/integ_tests/s1aptests:test_no_attach_complete: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_secondary_pdn_reject_unknown_pdn_type: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_udp_data_with_pipelined_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_he_policy: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_dl_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_s1setup_success_secondary_plmn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_nas_non_delivery_for_auth: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_with_multi_pdns_and_bearers_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_multi_enb_complete_reset: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_with_dedicated_bearer: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_nw_triggered_delete_secondary_pdn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_s1_handover: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_mobilityd_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_shutdown_after_smc: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_disconnect_default_pdn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_ps_service_not_available: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_missing_imsi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_shutdown_after_auth_req: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_imei_restriction_smc: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ue_ctxt_release_cmp_delay: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_resync: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_udp_data_with_multiple_service_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_nw_initiated_detach_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_setsessionrules_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_security_algo_eea0_eia0: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_duplicate_nas_resp_messages: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_udp_data_with_mobilityd_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_udp_data_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_ICS_Failure: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_tau_periodic_active: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_multiple_ip_blocks_mobilityd_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_auth_failure: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_multiple_dedicated: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_shutdown_after_multi_ue_attach: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_without_ips_available: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_combined_eps_imsi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_no_security_mode_complete: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_gateway_metrics_attach_detach: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_pcscf_address: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_nw_initiated_detach_fail: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_no_auth_response: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_tau_ta_updating_reject: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_idle_mode_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_dedicated_bearer_activation_idle_mode: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_with_dedicated_bearer_looped: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_abort_after_auth_req: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_ipv4v6_paging_with_dedicated_bearer: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_rar_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_dedicated_bearer_activation_idle_mode_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_guti_attach_with_zero_mtmsi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_multi_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_looped: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_bearer_deactivation_invalid_ebi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_bearer_activation_invalid_imsi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_with_multi_pdns_and_bearers_failure: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_with_dedicated_bearer_deactivate: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_non_nat_dhcp_multi_ue_looped: FAILED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_activation_timer_expiry: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_udp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_security_mode_reject: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_ics_timer_expiry_ue_registered: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_deactivation_timer_expiry: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_esm_information_wrong_apn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_multi_enb_partial_reset: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_enb_rlf_initial_ue_msg: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_rar_tcp_he: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_emergency: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_attach_ul_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_service_info: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_with_multi_pdns_and_bearers_mt_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ul_udp_data_with_sessiond_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_disconnect_dedicated_bearer: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_looped: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_qci_0: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_3485_timer_for_dedicated_bearer_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_secondary_pdn_reject_multiple_sessions_not_allowed_per_apn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_mobile_reachability_timer_expiry: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_no_initial_context_resp: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_looped: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_3485_timer_for_default_bearer_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_standalone_pdn_conn_req: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_ipv4v6_pdn_type: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_ics_timer_expiry_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_imei_restriction_no_imeisv_in_smc: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_with_multi_pdns_and_bearers_looped: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_multi_enb_multi_ue_diff_enbtype: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_dl_udp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_invalid_apn: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_tau_periodic_inactive: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_abort_after_identity_req: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_enb_partial_reset_con_dereg: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_identity_timer_3470_expiry: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_enb_partial_reset: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_via_guti: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_tau_ta_updating: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_duplicate_attach: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_different_enb_s1ap_id_same_ue: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_imei_restriction_wildcard_snr: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_service: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_dedicated_bearer_activation_invalid_lbi: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_implicit_detach_timer_expiry: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_ipv6_paging_with_dedicated_bearer: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_with_ovs: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_emm_status: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_services_are_running: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_with_pcscf_address: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_implicit_detach_timer_with_mme_restart: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_esm_information: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_secondary_pdn_disconnect_invalid_bearer: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_tau_ta_updating_connected_mode: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_service_with_multi_pdns_and_bearers: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_nas_non_delivery_for_smc: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_nas_non_delivery_for_identity_req: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_multiple_rar_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_attach_detach_attach_dl_tcp_data: PASSED
  //lte/gateway/python/integ_tests/s1aptests:test_sctp_shutdown_after_identity_req: PASSED
  • 5G PDU session tested with UERANSIM:
    image

  • OVS table 0 and 13

(python) vagrant@magma-dev:~/magma/lte/gateway$ sudo ovs-ofctl dump-flows gtp_br0 table=0
 cookie=0x0, duration=890.865s, table=0, n_packets=86508, n_bytes=3461895, priority=65503,tun_id=0x7fffffff,qfi=9,in_port=gtp0 actions=mod_dl_src:02:00:00:00:00:01,mod_dl_dst:ff:ff:ff:ff:ff:ff,set_field:0x1->reg9,load:0x19a0bb218d4009->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=890.835s, table=0, n_packets=87899, n_bytes=171628336, priority=65503,ip,in_port=LOCAL,nw_dst=192.168.128.12 actions=load:0x1->NXM_NX_TUN_ID[],load:0xc0a83c0a->NXM_NX_TUN_IPV4_DST[],set_field:0x8000->reg8,load:0x1->NXM_NX_TUN_FLAGS[],load:0x9->NXM_NX_QFI[],load:0x19a0bb218d4009->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=890.835s, table=0, n_packets=0, n_bytes=0, priority=65503,ip,in_port=mtr0,nw_dst=192.168.128.12 actions=load:0x1->NXM_NX_TUN_ID[],load:0xc0a83c0a->NXM_NX_TUN_IPV4_DST[],set_field:0x8000->reg8,load:0x1->NXM_NX_TUN_FLAGS[],load:0x9->NXM_NX_QFI[],load:0x19a0bb218d4009->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=890.834s, table=0, n_packets=20, n_bytes=840, priority=65503,arp,in_port=LOCAL,arp_tpa=192.168.128.12 actions=load:0x19a0bb218d4009->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=890.834s, table=0, n_packets=0, n_bytes=0, priority=65503,arp,in_port=mtr0,arp_tpa=192.168.128.12 actions=load:0x19a0bb218d4009->OXM_OF_METADATA[],resubmit(,1)
 cookie=0x0, duration=953.077s, table=0, n_packets=0, n_bytes=0, priority=0,in_port=ipfix0 actions=resubmit(,201)
 cookie=0x0, duration=953.077s, table=0, n_packets=8, n_bytes=560, priority=0,in_port="li_port" actions=resubmit(,202)
 cookie=0x0, duration=950.288s, table=0, n_packets=8, n_bytes=560, priority=10,in_port=ipfix0 actions=resubmit(,201)
 cookie=0x0, duration=950.288s, table=0, n_packets=59, n_bytes=4418, priority=0 actions=resubmit(,1)
(python) vagrant@magma-dev:~/magma/lte/gateway$ 
(python) vagrant@magma-dev:~/magma/lte/gateway$ 
(python) vagrant@magma-dev:~/magma/lte/gateway$ sudo ovs-ofctl dump-flows gtp_br0 table=13
 cookie=0x0, duration=897.792s, table=13, n_packets=88818, n_bytes=173315002, priority=10,ip,reg1=0x10,reg2=0x1,reg3=0,reg4=0x1,reg11=0x7fffffff,metadata=0x19a0bb218d4009,nw_dst=192.168.128.12 actions=drop
 cookie=0x0, duration=897.792s, table=13, n_packets=87454, n_bytes=3499735, priority=10,ip,reg1=0x1,reg2=0x1,reg3=0,reg4=0x1,reg11=0x7fffffff,metadata=0x19a0bb218d4009,nw_src=192.168.128.12 actions=drop
 cookie=0x0, duration=897.789s, table=13, n_packets=0, n_bytes=0, priority=1,ip,reg1=0x10,reg2=0,reg4=0,reg11=0x7fffffff,metadata=0x19a0bb218d4009,nw_dst=192.168.128.12 actions=drop
 cookie=0x0, duration=897.789s, table=13, n_packets=0, n_bytes=0, priority=1,ip,reg1=0x1,reg2=0,reg4=0,reg11=0x7fffffff,metadata=0x19a0bb218d4009,nw_src=192.168.128.12 actions=drop
 cookie=0xfffffffffffffffe, duration=2531.475s, table=13, n_packets=4, n_bytes=280, priority=0 actions=drop
(python) vagrant@magma-dev:~/magma/lte/gateway$ 

  • grafana subscriber metrics
    image

@@ -141,7 +140,7 @@ def del_filter(self, iface: str, mark: str, qid: str, proto: int = PROTOCOL) ->

def create(
self, iface: str, qid: str, max_bw: int, rate=None,
parent_qid: Optional[str] = None, proto=PROTOCOL,
parent_qid: str = None, proto=PROTOCOL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [mypy] reported by reviewdog 🐶
Incompatible default for argument "parent_qid" (default has type "None", argument has type "str") [assignment]

@@ -141,7 +140,7 @@

def create(
self, iface: str, qid: str, max_bw: int, rate=None,
parent_qid: Optional[str] = None, proto=PROTOCOL,
parent_qid: str = None, proto=PROTOCOL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [mypy] reported by reviewdog 🐶
PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True

@@ -141,7 +140,7 @@

def create(
self, iface: str, qid: str, max_bw: int, rate=None,
parent_qid: Optional[str] = None, proto=PROTOCOL,
parent_qid: str = None, proto=PROTOCOL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 [mypy] reported by reviewdog 🐶
Use https://github.com/hauntsaninja/no_implicit_optional to automatically upgrade your codebase

}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Weird number of spaces at line-start. Are you using a 2-space indent? [whitespace/indent] [3]

}
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

break;
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

Signed-off-by: mehul-jindal-wavelabs <mehul.jindal@wavelabs.ai>
Copy link
Contributor

@prabinakpattnaik prabinakpattnaik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@GANESH-WAVELABS GANESH-WAVELABS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@panyogesh panyogesh merged commit 94137dd into magma:master May 2, 2023
lucasgonze pushed a commit to lucasgonze/magma that referenced this pull request Feb 29, 2024
* feat(pipelined): Support extended bitrates for 5g

Signed-off-by: mehul-jindal-wavelabs <mehul.jindal@wavelabs.ai>

* address lint errors

Signed-off-by: mehul-jindal-wavelabs <mehul.jindal@wavelabs.ai>

---------

Signed-off-by: mehul-jindal-wavelabs <mehul.jindal@wavelabs.ai>
Co-authored-by: prabinakpattnaik <69528542+prabinakpattnaik@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants