From 930e3699d0e570acc60745e52660f407ec87fbe7 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 29 Jul 2021 11:59:49 +0100 Subject: [PATCH] Added max_s1_retries parameter --- lib/include/srsran/interfaces/enb_s1ap_interfaces.h | 1 + srsenb/enb.conf.example | 4 ++-- srsenb/src/main.cc | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/include/srsran/interfaces/enb_s1ap_interfaces.h b/lib/include/srsran/interfaces/enb_s1ap_interfaces.h index 5e6b11859..8ccba2f5e 100644 --- a/lib/include/srsran/interfaces/enb_s1ap_interfaces.h +++ b/lib/include/srsran/interfaces/enb_s1ap_interfaces.h @@ -32,6 +32,7 @@ struct s1ap_args_t { std::string enb_name; uint32_t ts1_reloc_prep_timeout; uint32_t ts1_reloc_overall_timeout; + uint32_t max_s1_setup_retries; }; // S1AP interface for RRC diff --git a/srsenb/enb.conf.example b/srsenb/enb.conf.example index 61f1d95f0..90f07dda2 100644 --- a/srsenb/enb.conf.example +++ b/srsenb/enb.conf.example @@ -359,8 +359,7 @@ enable = false # gtpu_tunnel_timeout: Time that GTPU takes to release indirect forwarding tunnel since the last received GTPU PDU (0 for no timer) # ts1_reloc_prep_timeout: S1AP TS 36.413 TS1RelocPrep Expiry Timeout value in milliseconds # ts1_reloc_overall_timeout: S1AP TS 36.413 TS1RelocOverall Expiry Timeout value in milliseconds -# rlf_release_timer_ms: Time taken by eNB to release UE context after it detects a RLF -# rlf_min_ul_snr_estim: SNR threshold in dB below which the enb is notified with RLF ko +# s1_setup_max_retries: Maximum amount of retries to setup the S1AP connection. If this value is exceeded, an alarm is written to the log # ##################################################################### [expert] @@ -397,3 +396,4 @@ enable = false #ts1_reloc_overall_timeout = 10000 #rlf_release_timer_ms = 4000 #rlf_min_ul_snr_estim = -2 +#s1_setup_max_retries = 12 diff --git a/srsenb/src/main.cc b/srsenb/src/main.cc index 9a8e79d24..81fc55ea5 100644 --- a/srsenb/src/main.cc +++ b/srsenb/src/main.cc @@ -247,6 +247,7 @@ void parse_args(all_args_t* args, int argc, char* argv[]) ("expert.ts1_reloc_prep_timeout", bpo::value(&args->stack.s1ap.ts1_reloc_prep_timeout)->default_value(10000), "S1AP TS 36.413 TS1RelocPrep Expiry Timeout value in milliseconds.") ("expert.ts1_reloc_overall_timeout", bpo::value(&args->stack.s1ap.ts1_reloc_overall_timeout)->default_value(10000), "S1AP TS 36.413 TS1RelocOverall Expiry Timeout value in milliseconds.") ("expert.rlf_min_ul_snr_estim", bpo::value(&args->stack.mac.rlf_min_ul_snr_estim)->default_value(-2), "SNR threshold in dB below which the eNB is notified with rlf ko.") + ("expert.max_s1_setup_retries", bpo::value(&args->stack.s1ap.max_s1_setup_retries)->default_value(12), "Max S1 setup retries") // eMBMS section ("embms.enable", bpo::value(&args->stack.embms.enable)->default_value(false), "Enables MBMS in the eNB")