/* lteenb configuration file version 2025-01-21 * Copyright (C) 2019-2025 Amarisoft * NR SA NTN cell */ #define NTN_FR2 0 #define NTN_MODE 2 // 0: GEO, 1: MEO, 2: LEO #if NTN_FR2 #define NR_BANDWIDTH 100 // NR cell bandwidth #else #define NR_BANDWIDTH 10 // NR cell bandwidth, limited to 20 MHz in NTN bands 255 or 256 #endif #define N_ANTENNA_DL 1 // Values: 1 (SISO), 2 (MIMO 2x2), 4 (MIMO 4x4) #define N_ANTENNA_UL 1 // Values: 1, 2, 4 #define CHANNEL_SIM 1 // Enable satellite link emulation within eNB DL channel simulator #if NTN_MODE == 0 #define CSI_SRS_PERIOD 320 #define MAX_HARQ 2 #define T3XX_TIMER 2000 #define SRB_T_POLL_RETX 800 #elif NTN_MODE == 1 #define CSI_SRS_PERIOD 80 #define MAX_HARQ 5 #define T3XX_TIMER 1000 #define SRB_T_POLL_RETX 150 #else #define CSI_SRS_PERIOD 40 #define MAX_HARQ 5 #define T3XX_TIMER 1000 #define SRB_T_POLL_RETX 80 #endif #ifndef SAT_ALTITUDE #define SAT_ALTITUDE 650e3 #endif { log_options: "all.level=debug,all.max_size=1,phy.ntn=1", //log_options: "all.level=error,all.max_size=0,nas.level=debug,nas.max_size=1,ngap.level=debug,ngap.max_size=1,xnap.level=debug,xnap.max_size=1,rrc.level=debug,rrc.max_size=1", log_filename: "/tmp/gnb0.log", /* Enable remote API and Web interface */ com_addr: "[::]:9001", rf_driver: { name: "sdr", /* list of devices. 'dev0' is always the master. */ #if N_ANTENNA_DL >= 4 args: "dev0=/dev/sdr0,dev1=/dev/sdr1", #else args: "dev0=/dev/sdr0", #endif /* TDD: force the RX antenna on the RX connector */ rx_antenna: "rx", /* synchronisation source: none, internal, gps, external (default = none) */ // sync: "gps", }, tx_gain: 70.0, /* TX gain (in dB) */ rx_gain: 50.0, /* RX gain (in dB) */ amf_list: [ { /* address of AMF for NGAP connection. Must be modified if the AMF runs on a different host. */ amf_addr: "127.0.1.100", }, ], /* GTP bind address (=address of the ethernet interface connected to the AMF). Must be modified if the AMF runs on a different host. */ gtp_addr: "127.0.1.1", #ifdef GTP_U_BUNDLING gtp_use_packet_bundling: true, #endif gnb_id_bits: 28, gnb_id: 0x12345, #if CHANNEL_SIM rf_ports: [ { channel_dl: { type: "awgn", noise_level: -50 } }, ], #endif rx_ta_offset: 180, /* Add a safety margin in UL reception window in case the UE overcompensates the TA */ /* list of cells */ cell_list: [], nr_cell_list: [ { rf_port: 0, cell_id: 0x01, #if NTN_FR2 band: 510, dl_nr_arfcn: 1734048, ul_nr_arfcn: 2080000, subcarrier_spacing: 120, ssb_pos_bitmap: "0100000000000000000000000000000000000000000000000000000000000000", #else band: 7, dl_nr_arfcn: 536000, ssb_subcarrier_spacing: 15, subcarrier_spacing: 15, ssb_pos_bitmap: "1010", force_full_bsr: true, force_dl_schedule: true, pdsch_mcs: 2, #endif #if NTN_MODE == 0 ssb_period: 20, #else ssb_period: 5, /* Close SSBs allow for better timing estimation on UE side */ #endif n_id_cell: 500, }, ], /* nr_cell_list */ nr_cell_default: { bandwidth: NR_BANDWIDTH, /* MHz */ n_antenna_dl: N_ANTENNA_DL, n_antenna_ul: N_ANTENNA_UL, plmn_list: [ { tac: 100, plmn: "00101", reserved: false, nssai: [ { sst: 1, }, ], }, ], sib_sched_list: [ { filename: "sib2_nr.asn", si_periodicity: 16, } ], si_window_length: 40, cell_barred: false, intra_freq_reselection: true, q_rx_lev_min: -70, q_qual_min: -20, root_sequence_index: 12, /* PRACH root sequence index */ /* Scheduling request period (slots). */ sr_period: 40, dmrs_type_a_pos: 2, prach: { prach_config_index: 32, msg1_fdm: 1, msg1_frequency_start: -1, zero_correlation_zone_config: 0, preamble_received_target_power: -110, /* in dBm */ preamble_trans_max: 7, power_ramping_step: 4, /* in dB */ ra_response_window: 10, //sp /* in slots */ restricted_set_config: "unrestricted_set", ra_contention_resolution_timer: 64, /* in ms */ ssb_per_prach_occasion: 4, cb_preambles_per_ssb: 1, }, pdcch: { search_space0_index: 0, dedicated_coreset: { rb_start: -1, /* -1 to have the maximum bandwidth */ l_crb: -1, /* -1 means all the bandwidth */ duration: 0, /* 0 means to automatically set it from the coreset bandwidth */ precoder_granularity: "sameAsREG_bundle", }, css: { n_candidates: [ 0, 0, 4, 0, 0 ], }, rar_al_index: 2, si_al_index: 2, uss: { n_candidates: [ 8, 0, 0, 0, 0 ], dci_0_1_and_1_1: true, }, al_index: 0, }, pdsch: { mapping_type: "typeA", dmrs_add_pos: 1, dmrs_type: 1, dmrs_max_len: 1, mcs_table: "qam256", rar_mcs: 2, si_mcs: 6, }, csi_rs: { resource_auto: { nzp_csi_rs_period: 80 }, csi_report_config: [ { report_config_type: "periodic", period: 80, }, ], }, srs: { resource_auto: { codebook: { resource_type: "periodic", period: 80, wideband: true } } }, pucch: { p0_nominal: -90, resource_auto: {}, }, pusch: { tf_precoding: false, mcs_table: "qam256", /* without transform precoding */ mcs_table_tp: "qam256", /* with transform precoding */ ldpc_max_its: 5, p0_nominal_with_grant: -90, msg3_mcs: 4, msg3_delta_power: 0, /* in dB */ beta_offset_ack_index: 9, max_rank: N_ANTENNA_UL, ta_upd_snr_threshold: 3.0, /* Allow TA updates in msot cases */ /* if defined, force the PUSCH MCS for all UEs. Otherwise it is computed from the last received PUSCH. */ mcs: 7, #if NTN_FR2 n_harq_process: 32, #endif }, /* MAC configuration */ mac_config: { msg3_max_harq_tx: 5, ul_max_harq_tx: 5, /* max number of HARQ transmissions for uplink */ dl_max_harq_tx: 5, /* max number of HARQ transmissions for downlink */ ul_max_consecutive_retx: 30, /* disconnect UE if reached */ dl_max_consecutive_retx: 30, /* disconnect UE if reached */ periodic_bsr_timer: 20, retx_bsr_timer: 320, periodic_phr_timer: 0, prohibit_phr_timer: 200, phr_tx_power_factor_change: "dB3", time_alignment_tx_timer: 40, sr_prohibit_timer: 16, sr_trans_max: 64, }, ntn: { default_ephemeris: "leo", default_sma: 6378e3 + SAT_ALTITUDE, default_elevation_offset: -40, min_expected_elevation: 45, ground_position: { latitude: 45, longitude: 0, altitude: 0 }, feeder_doppler_compensation: true, direct_to_cell: { cell_center: { latitude: 43, longitude: 1, altitude: 5000, }, }, large_freq_shift: { prach_range_sc: 24, prach_n_acc: 1, ta_tolerance: 8, }, channel_sim_control: { type: "auto_feeder_service_link", ue_position: { latitude: 43.02, longitude: 1.2, altitude: 0, }, ue_doppler_shift: true, ue_dl_attenuation: false, ue_dl_gain_offset: 65, } }, compute_freq_shift: true, timers_and_constants: { t310: 6000, t300: 2000, }, inactivity_timer: 100000, srb_config: [ { id: 1, t_PollRetransmit: 500, }, { id: 2, t_PollRetransmit: 500, } ], cipher_algo_pref: [], integ_algo_pref: [2, 1], drb_config: "drb_nr.cfg", }, }