Commit 97ad2a51 authored by Joanne Hugé's avatar Joanne Hugé

Update Release Candidate

parents 7e4eb099 94bf8492
...@@ -16,39 +16,47 @@ ...@@ -16,39 +16,47 @@
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = 9d5f4fc9ed3664140d33dd7c447dbd63 md5sum = 06331958afaaeb200e4d7f48b417cde8
[template-lte-enb-epc] [template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg _update_hash_filename_ = instance-enb-epc.jinja2.cfg
md5sum = 2dce6e5aa97ffb331bae8fc95b9f8cf0 md5sum = 946c70155a691e508e934a7ef2e442ba
[template-lte-enb] [template-lte-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg _update_hash_filename_ = instance-enb.jinja2.cfg
md5sum = 79f3c30ab08efbb22b0cbcbbc45a66cb md5sum = 2b0ba32fb176fead6fb32779fa4d88be
[template-lte-gnb-epc] [template-lte-gnb-epc]
_update_hash_filename_ = instance-gnb-epc.jinja2.cfg _update_hash_filename_ = instance-gnb-epc.jinja2.cfg
md5sum = c43e4233ec44abdc87aa3068ebb8640b md5sum = 4a258326fe571790e07a0e903d94fde0
[template-lte-epc]
_update_hash_filename_ = instance-epc.jinja2.cfg
md5sum = 1039c60e2dcb8ef144a8c56e34acce9b
[template-lte-gnb] [template-lte-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg _update_hash_filename_ = instance-gnb.jinja2.cfg
md5sum = 7d25976008c3aa588527db2b461ad72c md5sum = 7d25976008c3aa588527db2b461ad72c
[template-lte-epc] [template-lte-mme]
_update_hash_filename_ = instance-epc.jinja2.cfg _update_hash_filename_ = instance-mme.jinja2.cfg
md5sum = 5e7a832ca1be147948ae562f3b45c88b md5sum = e95761b8670ec8b90694e119a818e684
[ue_db.jinja2.cfg] [ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg filename = config/ue_db.jinja2.cfg
md5sum = d33163012d6c98efc59161974c649557 md5sum = dcaac06553a3222b14c0013a13f4a149
[enb.jinja2.cfg] [enb.jinja2.cfg]
filename = config/enb.jinja2.cfg filename = config/enb.jinja2.cfg
md5sum = b78082a9c5d6af79f11a1c79d6d25a86 md5sum = 18a8f16240881dbb87ecb5183d9872e0
[sib23.asn]
filename = config/sib23.asn
md5sum = b377dac7f1fcf94fb9ce9ebed617f36a
[gnb.jinja2.cfg] [gnb.jinja2.cfg]
filename = config/gnb.jinja2.cfg filename = config/gnb.jinja2.cfg
md5sum = 944e342d426d5a7c4c16bdcb01398ba3 md5sum = c0d3d042960f5704dd2e3fa7714a4a5f
[ltelogs.jinja2.sh] [ltelogs.jinja2.sh]
filename = ltelogs.jinja2.sh filename = ltelogs.jinja2.sh
...@@ -56,11 +64,11 @@ md5sum = 1ba2e065bdf14a6411e95e80db17dcfd ...@@ -56,11 +64,11 @@ md5sum = 1ba2e065bdf14a6411e95e80db17dcfd
[mme.jinja2.cfg] [mme.jinja2.cfg]
filename = config/mme.jinja2.cfg filename = config/mme.jinja2.cfg
md5sum = 13ce0230f06e1089c10924b17f80e49b md5sum = fc073eb6450da95955009a127a333396
[ims.jinja2.cfg] [ims.jinja2.cfg]
filename = config/ims.jinja2.cfg filename = config/ims.jinja2.cfg
md5sum = e561ec26a70943c61557def1781cf65f md5sum = 36281b03597252cf75169417d02fc28c
[sdr-busy-promise] [sdr-busy-promise]
_update_hash_filename_ = promise/check_sdr_busy.py _update_hash_filename_ = promise/check_sdr_busy.py
......
/* lteenb configuration file version 2021-09-18 #define TDD 1
* Copyright (C) 2015-2021 Amarisoft #define N_RB_DL {{ slapparameter_dict.get('n_rb_dl', slap_configuration['configuration.default_lte_n_rb_dl']) }}
*/ #define N_ANTENNA_DL 2
#define N_ANTENNA_UL 2
#define TDD 1 // Values: 0 (FDD), 1(TDD)
#define N_RB_DL {{ slapparameter_dict.get('n_rb_dl', slap_configuration['configuration.default_lte_n_rb_dl']) }} // Values: 6 (1.4 MHz), 15 (3MHz), 25 (5MHz), 50 (10MHz), 75 (15MHz), 100 (20MHz)
#define N_ANTENNA_DL 2 // Values: 1 (SISO), 2 (MIMO 2x2)
#define N_ANTENNA_UL 2 // Values: 1, 2
#define CHANNEL_SIM 0 // Values: 0 (channel simulator disabled), 1 (channel simulator enabled)
{ {
/* Log filter: syntax: layer.field=value[,...]
Possible layers are phy, mac, rlc, pdcp, rrc, nas, s1ap, x2ap, gtpu and
all. The 'all' layer is used to address all the layers at the
same time.
field values:
- 'level': the log level of each layer can be set to 'none',
'error', 'info' or 'debug'. Use 'debug' to log all the messages.
- 'max_size': set the maximum size of the hex dump. 0 means no
hex dump. -1 means no limit.
*/
log_options: "all.level=debug,all.max_size=32,file.rotate=1G,file.path={{ directory['tmp'] }}", log_options: "all.level=debug,all.max_size=32,file.rotate=1G,file.path={{ directory['tmp'] }}",
log_filename: "{{ directory['log'] }}/enb.log", log_filename: "{{ directory['log'] }}/enb.log",
/* RF driver configuration */
rf_driver: { rf_driver: {
name: "sdr", name: "sdr",
/* list of devices. 'dev0' is always the master. */
args: "dev0=/dev/sdr0", args: "dev0=/dev/sdr0",
/* synchronisation source: none, internal, gps, external (default = none) */
// sync: "gps",
rx_antenna:"tx_rx", rx_antenna:"tx_rx",
}, },
tx_gain: {{ slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_lte_tx_gain']) }}, /* TX gain (in dB) */ tx_gain: {{ slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_lte_tx_gain']) }},
rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_lte_rx_gain']) }}, /* RX gain (in dB) */ rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_lte_rx_gain']) }},
#if CHANNEL_SIM == 1
rf_ports: [
{
channel_dl: {
type: "awgn",
noise_level: -30,
},
}
],
#endif
mme_list: [ mme_list: [
{% if slapparameter_dict.get('mme_list', '') %} {% if slapparameter_dict.get('mme_list', '') %}
...@@ -66,21 +32,16 @@ ...@@ -66,21 +32,16 @@
}, },
{% endif %} {% endif %}
], ],
/* GTP bind address (=address of the ethernet interface connected to
the MME). Must be modified if the MME runs on a different host. */
{% if slapparameter_dict.get('mme_list', '') %} {% if slapparameter_dict.get('mme_list', '') %}
gtp_addr: "{{ gtp_addr }}", gtp_addr: "{{ gtp_addr }}",
{% else %} {% else %}
gtp_addr: "127.0.1.1", gtp_addr: "127.0.1.1",
{% endif %} {% endif %}
/* high 20 bits of SIB1.cellIdentifier */
enb_id: {{ slapparameter_dict.get('enb_id', '0x1A2D0') }}, enb_id: {{ slapparameter_dict.get('enb_id', '0x1A2D0') }},
/* list of cells */
cell_list: [ cell_list: [
{ {
/* Broadcasted PLMN identities */
plmn_list: [ plmn_list: [
{%- if slapparameter_dict.get('plmn_list', '') %} {%- if slapparameter_dict.get('plmn_list', '') %}
{%- for i, k in enumerate(slapparameter_dict['plmn_list']) %} {%- for i, k in enumerate(slapparameter_dict['plmn_list']) %}
...@@ -106,51 +67,45 @@ ...@@ -106,51 +67,45 @@
n_id_cell: 1, n_id_cell: 1,
cell_id: 0x01, cell_id: 0x01,
tac: 0x0001, tac: 0x0001,
root_sequence_index: 204, /* PRACH root sequence index */ root_sequence_index: 204,
}, },
], /* cell_list */ ],
/* default cell parameters */
cell_default: { cell_default: {
n_antenna_dl: N_ANTENNA_DL, /* number of DL antennas */ n_antenna_dl: N_ANTENNA_DL,
n_antenna_ul: N_ANTENNA_UL, /* number of UL antennas */ n_antenna_ul: N_ANTENNA_UL,
#if TDD == 1 uldl_config: 2,
uldl_config: 2, /* TDD only */ sp_config: 7,
sp_config: 7, /* TDD only */
#endif
n_rb_dl: N_RB_DL, /* Bandwidth: 25: 5 MHz, 50: 10 MHz, 75: 15 MHz, 100: 20 MHz */ n_rb_dl: N_RB_DL,
cyclic_prefix: "normal", cyclic_prefix: "normal",
phich_duration: "normal", phich_duration: "normal",
phich_resource: "1", /* ratio of NG */ phich_resource: "1",
/* SIB1 */ si_value_tag: 0,
si_value_tag: 0, /* increment modulo 32 if SI is modified */ cell_barred: false,
cell_barred: false, /* SIB1.cellBarred-r13 */ intra_freq_reselection: true,
intra_freq_reselection: true, /* SIB1.intraFreqReselection */ q_rx_lev_min: -70,
q_rx_lev_min: -70, /* SIB1.q-RxLevMin */ p_max: 10,
p_max: 10, /* maximum power allowed for the UE (dBm) */ si_window_length: 40,
si_window_length: 40, /* ms */
sib_sched_list: [ sib_sched_list: [
{ {
filename: "{{ directory['software'] }}/enb/config/sib23.asn", filename: "{{ sib23 }}",
si_periodicity: 16, /* frames */ si_periodicity: 16,
}, },
], ],
#if N_RB_DL == 6 #if N_RB_DL == 6
si_coderate: 0.30, /* maximum code rate for SI/RA/P-RNTI messages */ si_coderate: 0.30,
#else #else
si_coderate: 0.20, /* maximum code rate for SI/RA/P-RNTI messages */ si_coderate: 0.20,
#endif #endif
si_pdcch_format: 2, /* 2 or 3. Log2 of the number of CCEs for PDCCH si_pdcch_format: 2,
for SI/RA/P-RNTI */
n_symb_cch: 0, /* number of symbols for CCH (0 = auto) */ n_symb_cch: 0,
/* PDSCH dedicated config (currently same for all UEs) */
pdsch_dedicated: { pdsch_dedicated: {
#if N_ANTENNA_DL == 4 #if N_ANTENNA_DL == 4
p_a: -6, p_a: -6,
...@@ -159,82 +114,56 @@ ...@@ -159,82 +114,56 @@
#else #else
p_a: 0, p_a: 0,
#endif #endif
p_b: -1, /* -1 means automatic */ p_b: -1,
}, },
/* If defined, force for number of CCEs for UE specific PDCCH to
2^pdcch_format. Otherwise it is computed from the reported
CQI. Range: 0 to 3. */
#if N_RB_DL == 6 #if N_RB_DL == 6
pdcch_format: 1, pdcch_format: 1,
#else #else
pdcch_format: 2, pdcch_format: 2,
#endif #endif
/* if defined, force the PDSCH MCS for all UEs. Otherwise it is
computed from the reported CQI */
/* pdsch_mcs: 12, */
#if N_RB_DL == 6 #if N_RB_DL == 6
prach_config_index: 15, /* subframe 9 every 20 ms */ prach_config_index: 15,
#else #else
prach_config_index: 4, /* subframe 4 every 10 ms */ prach_config_index: 4,
#endif #endif
prach_freq_offset: -1, /* -1 means automatic */ prach_freq_offset: -1,
/* PUCCH dedicated config (currently same for all UEs) */
pucch_dedicated: { pucch_dedicated: {
n1_pucch_sr_count: 11, /* increase if more UEs are needed */ n1_pucch_sr_count: 11,
cqi_pucch_n_rb: 1, /* increase if more UEs are needed */ cqi_pucch_n_rb: 1,
#if TDD == 1 tdd_ack_nack_feedback_mode: "multiplexing",
//tdd_ack_nack_feedback_mode: "bundling", /* TDD only */
tdd_ack_nack_feedback_mode: "multiplexing", /* TDD only */
#endif
}, },
/* PUSCH dedicated config (currently same for all UEs) */
pusch_dedicated: { pusch_dedicated: {
beta_offset_ack_index: 9, beta_offset_ack_index: 9,
beta_offset_ri_index: 6, beta_offset_ri_index: 6,
beta_offset_cqi_index: 6, beta_offset_cqi_index: 6,
}, },
pusch_hopping_offset: -1, /* -1 means automatic */ pusch_hopping_offset: -1,
/* MCS for Msg3 (=CCCH RRC Connection Request) */
pusch_msg3_mcs: 0, pusch_msg3_mcs: 0,
/* this CQI value is assumed when none is received from the UE */
#if N_RB_DL == 6 #if N_RB_DL == 6
initial_cqi: 5, initial_cqi: 5,
#else #else
initial_cqi: 3, initial_cqi: 3,
#endif #endif
/* if defined, force the PUSCH MCS for all UEs. Otherwise it is
computed from the last received SRS/PUSCH. */
// pusch_mcs: 18,
dl_256qam: true, dl_256qam: true,
ul_64qam: true, ul_64qam: true,
/* Scheduling request period (ms). Must be >= 40 for HD-FDD */
sr_period: 20, sr_period: 20,
/* CQI report config */ cqi_period: 40,
cqi_period: 40, /* period (ms). Must be >= 32 for HD-FDD */
#if N_ANTENNA_DL >= 2 #if N_ANTENNA_DL >= 2
/* RI reporting is done with a period of m_ri * cqi_period.
m_ri = 0 (default) disables RI reporting. */
m_ri: 8, m_ri: 8,
/* transmission mode */
transmission_mode: 3, transmission_mode: 3,
#endif #endif
/* SRS dedicated config. All UEs share these
parameters. srs_config_index and freq_domain_position are
allocated for each UE) */
srs_dedicated: { srs_dedicated: {
#if N_RB_DL == 6 #if N_RB_DL == 6
srs_bandwidth_config: 7, srs_bandwidth_config: 7,
...@@ -255,35 +184,27 @@ ...@@ -255,35 +184,27 @@
srs_bandwidth_config: 2, srs_bandwidth_config: 2,
srs_bandwidth: 3, srs_bandwidth: 3,
#endif #endif
srs_subframe_config: 3, /* 0 - 15 */ srs_subframe_config: 3,
srs_period: 40, /* period (ms). Must be >= 40 for HD-FDD */ srs_period: 40,
srs_hopping_bandwidth: 0, srs_hopping_bandwidth: 0,
}, },
/* MAC configuration (same for all UEs) */
mac_config: { mac_config: {
ul_max_harq_tx: 5, /* max number of HARQ transmissions for uplink */ ul_max_harq_tx: 5,
dl_max_harq_tx: 5, /* max number of HARQ transmissions for downlink */ dl_max_harq_tx: 5,
}, },
/* CPU load limitation */ pusch_max_its: 6,
pusch_max_its: 6, /* max number of turbo decoder iterations */
/* dynamic power control */
dpc: true, dpc: true,
dpc_pusch_snr_target: 25, dpc_pusch_snr_target: 25,
dpc_pucch_snr_target: 20, dpc_pucch_snr_target: 20,
/* RRC/UP ciphering algorithm preference. EEA0 is always the last. */
cipher_algo_pref: [], cipher_algo_pref: [],
/* RRC integrity algorithm preference. EIA0 is always the last. */
integ_algo_pref: [2, 1], integ_algo_pref: [2, 1],
/* (in ms) send RRC connection release after this time of network
inactivity */
inactivity_timer: 10000, inactivity_timer: 10000,
/* SRB configuration */
srb_config: [ srb_config: [
{ {
id: 1, id: 1,
...@@ -299,7 +220,505 @@ ...@@ -299,7 +220,505 @@
} }
], ],
/* DRB configuration */ #define T_REORDERING 65
drb_config: "{{ directory['software'] }}/enb/config/drb.cfg", drb_config: [
{
qci: 1,
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 100,
pdcp_SN_Size: 7,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 12,
pdcp_SN_SizeDL: 12,
statusReportRequired: false,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 5,
},
dl_um: {
sn_FieldLength: 5,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 7,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 2,
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 150,
pdcp_SN_Size: 12,
},
nr_pdcp_config: {
discardTimer: 150,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 10,
},
dl_um: {
sn_FieldLength: 10,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 9,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 3,
pdcp_config: {
discardTimer: 100,
pdcp_SN_Size: 12,
},
nr_pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 10,
},
dl_um: {
sn_FieldLength: 10,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 8,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 4,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 10,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 65,
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 100,
pdcp_SN_Size: 7,
},
nr_pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 12,
pdcp_SN_SizeDL: 12,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 5,
},
dl_um: {
sn_FieldLength: 5,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 5,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 66,
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 150,
pdcp_SN_Size: 12,
},
nr_pdcp_config: {
discardTimer: 150,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 10,
},
dl_um: {
sn_FieldLength: 10,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 7,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 67,
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 100,
pdcp_SN_Size: 12,
},
nr_pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 10,
},
dl_um: {
sn_FieldLength: 10,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 6,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 5,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 6,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 6,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 12,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 2,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 7,
pdcp_config: {
discardTimer: 100,
pdcp_SN_Size: 12,
},
nr_pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_um: {
sn_FieldLength: 10,
},
dl_um: {
sn_FieldLength: 10,
t_Reordering: T_REORDERING,
},
},
logical_channel_config: {
priority: 13,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 2,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 8,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 14,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 2,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 9,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
en_dc_split: {
type: "scg",
ul_data_threshold: 0
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 15,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 3,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 69,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 4,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
{
qci: 70,
pdcp_config: {
discardTimer: 0,
statusReportRequired: true,
},
nr_pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
restrict_to_ng_enb: true,
},
rlc_config: {
ul_am: {
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 32,
},
dl_am: {
t_Reordering: T_REORDERING,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 11,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 2,
logicalChannelSR_Mask: false,
logicalChannelSR_Prohibit: false,
},
},
]
}, },
} }
/* lteenb configuration file version 2021-09-18
* Copyright (C) 2019-2021 Amarisoft
* NR SA FDD or TDD cell */
#define NR_TDD 1 // Values: 0 (NR FDD), 1(NR TDD)
#define FR2 0 // Values: 0 (FR1), 1 (FR2) #define FR2 0 // Values: 0 (FR1), 1 (FR2)
#define NR_TDD_CONFIG 2 // Values: FR1: 1, 2, 3, 4 (compatible with LTE TDD config 2) FR2: 10 #define NR_TDD_CONFIG 2 // Values: FR1: 1, 2, 3, 4 (compatible with LTE TDD config 2) FR2: 10
#define N_ANTENNA_DL 2 // Values: 1 (SISO), 2 (MIMO 2x2), 4 (MIMO 4x4) #define N_ANTENNA_DL 2 // Values: 1 (SISO), 2 (MIMO 2x2), 4 (MIMO 4x4)
...@@ -11,25 +5,20 @@ ...@@ -11,25 +5,20 @@
#define NR_BANDWIDTH {{ slapparameter_dict.get('nr_bandwidth', slap_configuration['configuration.default_nr_bandwidth']) }} // NR cell bandwidth #define NR_BANDWIDTH {{ slapparameter_dict.get('nr_bandwidth', slap_configuration['configuration.default_nr_bandwidth']) }} // NR cell bandwidth
#define NR_LONG_PUCCH_FORMAT 2 // Values: 2, 3, 4 #define NR_LONG_PUCCH_FORMAT 2 // Values: 2, 3, 4
/* define to 1 to enable periodic SRS with N_ANTENNA_UL ports. Uplink
SU-MIMO is also enabled if N_ANTENNA_UL >= 2. Not all UEs support
uplink SU-MIMO. */
#define USE_SRS 0
{ {
log_options: "all.level=debug,all.max_size=32,file.rotate=1G,file.path={{ directory['tmp'] }}", log_options: "all.level=debug,all.max_size=32,file.rotate=1G,file.path={{ directory['tmp'] }}",
log_filename: "{{ directory['log'] }}/gnb.log", log_filename: "{{ directory['log'] }}/gnb.log",
rf_driver: { rf_driver: {
name: "sdr", name: "sdr",
/* list of devices. 'dev0' is always the master. */
args: "dev0=/dev/sdr0", args: "dev0=/dev/sdr0",
/* synchronisation source: none, internal, gps, external (default = none) */
// sync: "gps", // sync: "gps",
rx_antenna: "tx_rx", rx_antenna: "tx_rx",
}, },
tx_gain: {{ slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_nr_tx_gain']) }}, /* TX gain (in dB) */ tx_gain: {{ slapparameter_dict.get('tx_gain', slap_configuration['configuration.default_nr_tx_gain']) }},
rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_nr_rx_gain']) }}, /* RX gain (in dB) */ rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.default_nr_rx_gain']) }},
amf_list: [ amf_list: [
{% if slapparameter_dict.get('amf_list', '') %} {% if slapparameter_dict.get('amf_list', '') %}
...@@ -48,8 +37,7 @@ ...@@ -48,8 +37,7 @@
}, },
{% endif %} {% endif %}
], ],
/* GTP bind address (=address of the ethernet interface connected to
the AMF). Must be modified if the AMF runs on a different host. */
{% if slapparameter_dict.get('amf_list', '') %} {% if slapparameter_dict.get('amf_list', '') %}
gtp_addr: "{{ gtp_addr }}", gtp_addr: "{{ gtp_addr }}",
{% else %} {% else %}
...@@ -64,70 +52,48 @@ ...@@ -64,70 +52,48 @@
rf_ports: [ rf_ports: [
{ {
#if FR2 #if FR2
/* an external frequency translator must be used for FR2 */
rf_dl_freq: 3500, /* MHz */ rf_dl_freq: 3500,
rf_ul_freq: 3500, /* MHz */ rf_ul_freq: 3500,
/* uncomment to have a higher per-UE bitrate at the expense of
higher gNB real time constraints. The default value is 4 // rx_to_tx_latency: 1,
ms. 1 ms gives the maximum per-UE bitrate. */
// rx_to_tx_latency: 1, /* ms */
#endif #endif
}, },
], ],
/* list of cells */
cell_list: [], cell_list: [],
nr_cell_list: [ nr_cell_list: [
{ {
rf_port: 0, rf_port: 0,
cell_id: 0x01, cell_id: 0x01,
#if NR_TDD == 1
#if FR2
band: 257,
dl_nr_arfcn: 2079167, /* 28000.08 MHz */
subcarrier_spacing: 120, /* kHz */
ssb_pos_bitmap: "0100000000000000000000000000000000000000000000000000000000000000",
#else
band: {{ slapparameter_dict.get('nr_band', slap_configuration['configuration.default_nr_band']) }}, band: {{ slapparameter_dict.get('nr_band', slap_configuration['configuration.default_nr_band']) }},
dl_nr_arfcn: {{ slapparameter_dict.get('dl_nr_arfcn', slap_configuration['configuration.default_dl_nr_arfcn']) }}, dl_nr_arfcn: {{ slapparameter_dict.get('dl_nr_arfcn', slap_configuration['configuration.default_dl_nr_arfcn']) }},
subcarrier_spacing: 30, /* kHz */ subcarrier_spacing: 30,
ssb_pos_bitmap: "{{ slapparameter_dict.get('ssb_pos_bitmap', slap_configuration['configuration.default_nr_ssb_pos_bitmap']) }}", ssb_pos_bitmap: "{{ slapparameter_dict.get('ssb_pos_bitmap', slap_configuration['configuration.default_nr_ssb_pos_bitmap']) }}",
#endif
#else
band: 7,
dl_nr_arfcn: 536020, /* 2680 MHz */
ssb_subcarrier_spacing: 15,
subcarrier_spacing: 30, /* kHz */
ssb_pos_bitmap: "1000",
#endif
}, },
], /* nr_cell_list */ ],
nr_cell_default: { nr_cell_default: {
bandwidth: NR_BANDWIDTH, /* MHz */ bandwidth: NR_BANDWIDTH,
n_antenna_dl: N_ANTENNA_DL, n_antenna_dl: N_ANTENNA_DL,
n_antenna_ul: N_ANTENNA_UL, n_antenna_ul: N_ANTENNA_UL,
/* force the timing TA offset (optional) */
// n_timing_advance_offset: 39936,
/* subframe offset to align with the LTE TDD pattern (optional) */
// subframe_offset: 2,
#if NR_TDD == 1
tdd_ul_dl_config: { tdd_ul_dl_config: {
#if NR_TDD_CONFIG == 1 #if NR_TDD_CONFIG == 1
pattern1: { pattern1: {
period: 5, /* in ms */ period: 5,
dl_slots: 7, dl_slots: 7,
dl_symbols: /* 6 */ 2, dl_symbols: 2,
ul_slots: 2, ul_slots: 2,
ul_symbols: 2, ul_symbols: 2,
}, },
#elif NR_TDD_CONFIG == 2 #elif NR_TDD_CONFIG == 2
pattern1: { pattern1: {
period: 5, /* in ms */ period: 5,
dl_slots: 7, dl_slots: 7,
dl_symbols: 6, dl_symbols: 6,
ul_slots: 2, ul_slots: 2,
...@@ -135,7 +101,7 @@ ...@@ -135,7 +101,7 @@
}, },
#elif NR_TDD_CONFIG == 3 #elif NR_TDD_CONFIG == 3
pattern1: { pattern1: {
period: 5, /* in ms */ period: 5,
dl_slots: 6, dl_slots: 6,
dl_symbols: 2, dl_symbols: 2,
ul_slots: 3, ul_slots: 3,
...@@ -143,23 +109,23 @@ ...@@ -143,23 +109,23 @@
}, },
#elif NR_TDD_CONFIG == 4 #elif NR_TDD_CONFIG == 4
pattern1: { pattern1: {
period: 3, /* in ms */ period: 3,
dl_slots: 3, dl_slots: 3,
dl_symbols: 6, dl_symbols: 6,
ul_symbols: 4, ul_symbols: 4,
ul_slots: 2, ul_slots: 2,
}, },
pattern2: { pattern2: {
period: 2, /* in ms */ period: 2,
dl_slots: 4, dl_slots: 4,
dl_symbols: 0, dl_symbols: 0,
ul_symbols: 0, ul_symbols: 0,
ul_slots: 0, ul_slots: 0,
}, },
#elif NR_TDD_CONFIG == 10 #elif NR_TDD_CONFIG == 10
/* only for FR2 */
pattern1: { pattern1: {
period: 0.625, /* in ms */ period: 0.625,
dl_slots: 3, dl_slots: 3,
dl_symbols: 10, dl_symbols: 10,
ul_slots: 1, ul_slots: 1,
...@@ -167,8 +133,7 @@ ...@@ -167,8 +133,7 @@
}, },
#endif #endif
}, },
#endif ssb_period: 20,
ssb_period: 20, /* in ms */
n_id_cell: 500, n_id_cell: 500,
plmn_list: [ plmn_list: [
...@@ -236,71 +201,41 @@ ...@@ -236,71 +201,41 @@
{%- endif %} {%- endif %}
], ],
/*sib_sched_list: [
{
filename: "{{ directory['software'] }}/enb/config/sib2_nr.asn",
si_periodicity: 16,
},
{
filename: "{{ directory['software'] }}/enb/config/sib3_nr.asn",
si_periodicity: 16,
},
{
filename: "{{ directory['software'] }}/enb/config/sib4_nr.asn",
si_periodicity: 32,
},
],
sib9: {
si_periodicity: 32
},*/
si_window_length: 40, si_window_length: 40,
cell_barred: false, cell_barred: false,
intra_freq_reselection: true, intra_freq_reselection: true,
q_rx_lev_min: -70, q_rx_lev_min: -70,
q_qual_min: -20, q_qual_min: -20,
p_max: 10, /* dBm */ p_max: 10,
root_sequence_index: 1,
root_sequence_index: 1, /* PRACH root sequence index */
/* Scheduling request period (slots). */
sr_period: 40, sr_period: 40,
dmrs_type_a_pos: 2, dmrs_type_a_pos: 2,
/* to limit the number of HARQ feedback in UL, use pdsch_harq_ack_max;
allows to workaround issues with SM-G977N for example */
//pdsch_harq_ack_max: 2, //pdsch_harq_ack_max: 2,
prach: { prach: {
#if NR_TDD == 1
#if FR2
prach_config_index: 149, /* format C0, every 4 frames */
msg1_subcarrier_spacing: 120, /* kHz */
#else
#if NR_TDD_CONFIG == 4 #if NR_TDD_CONFIG == 4
prach_config_index: 156, /* format B4, subframe 2 */ prach_config_index: 156,
#else #else
prach_config_index: 160, /* format B4, subframe 9 */ prach_config_index: 160,
#endif
msg1_subcarrier_spacing: 30, /* kHz */
#endif
#else
prach_config_index: 16, /* subframe 1 every frame */
#endif #endif
msg1_subcarrier_spacing: 30,
msg1_fdm: 1, msg1_fdm: 1,
msg1_frequency_start: -1, msg1_frequency_start: -1,
zero_correlation_zone_config: 15, zero_correlation_zone_config: 15,
preamble_received_target_power: -110, /* in dBm */ preamble_received_target_power: -110,
preamble_trans_max: 7, preamble_trans_max: 7,
power_ramping_step: 4, /* in dB */ power_ramping_step: 4,
#if FR2 ra_response_window: 20,
ra_response_window: 40, /* in slots */
#else
ra_response_window: 20, /* in slots */
#endif
restricted_set_config: "unrestricted_set", restricted_set_config: "unrestricted_set",
ra_contention_resolution_timer: 64, /* in ms */ ra_contention_resolution_timer: 64,
ssb_per_prach_occasion: 1, ssb_per_prach_occasion: 1,
cb_preambles_per_ssb: 8, cb_preambles_per_ssb: 8,
}, },
...@@ -309,9 +244,9 @@ ...@@ -309,9 +244,9 @@
search_space0_index: 0, search_space0_index: 0,
dedicated_coreset: { dedicated_coreset: {
rb_start: -1, /* -1 to have the maximum bandwidth */ rb_start: -1,
l_crb: -1, /* -1 means all the bandwidth */ l_crb: -1,
duration: 0, /* 0 means to automatically set it from the coreset bandwidth */ duration: 0,
precoder_granularity: "sameAsREG_bundle", precoder_granularity: "sameAsREG_bundle",
}, },
...@@ -333,14 +268,13 @@ ...@@ -333,14 +268,13 @@
dmrs_add_pos: 1, dmrs_add_pos: 1,
dmrs_type: 1, dmrs_type: 1,
dmrs_max_len: 1, dmrs_max_len: 1,
/* k0 delay in slots from DCI to PDSCH: automatic setting */
/* k1 delay in slots from PDSCH to PUCCH/PUSCH ACK/NACK: automatic setting */
mcs_table: "qam256", mcs_table: "qam256",
rar_mcs: 2, rar_mcs: 2,
si_mcs: 6, si_mcs: 6,
/* If defined, force the PDSCH MCS for all UEs. Otherwise it is computed
* based on DL channel quality estimation */
/* mcs: 24, */
}, },
csi_rs: { csi_rs: {
...@@ -373,18 +307,18 @@ ...@@ -373,18 +307,18 @@
density: 1, density: 1,
first_symb: 4, first_symb: 4,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
power_control_offset: 0, /* dB */ power_control_offset: 0,
power_control_offset_ss: 0, /* dB */ power_control_offset_ss: 0,
period: 80, period: 80,
offset: 1, /* != 0 to avoid collision with SSB */ offset: 1,
qcl_info_periodic_csi_rs: 0, qcl_info_periodic_csi_rs: 0,
}, },
#if FR2 == 0 #if FR2 == 0
#define USE_TRS #define USE_TRS
#endif #endif
#ifdef USE_TRS #ifdef USE_TRS
/* TRS : period of 40 ms, slots 1 & 2, symbols 4 and 8 */
{ {
csi_rs_id: 1, csi_rs_id: 1,
n_ports: 1, n_ports: 1,
...@@ -394,9 +328,9 @@ ...@@ -394,9 +328,9 @@
density: 3, density: 3,
first_symb: 4, first_symb: 4,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
power_control_offset: 0, /* dB */ power_control_offset: 0,
power_control_offset_ss: 0, /* dB */ power_control_offset_ss: 0,
period: 40, period: 40,
offset: 11, offset: 11,
qcl_info_periodic_csi_rs: 0, qcl_info_periodic_csi_rs: 0,
...@@ -410,9 +344,9 @@ ...@@ -410,9 +344,9 @@
density: 3, density: 3,
first_symb: 8, first_symb: 8,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
power_control_offset: 0, /* dB */ power_control_offset: 0,
power_control_offset_ss: 0, /* dB */ power_control_offset_ss: 0,
period: 40, period: 40,
offset: 11, offset: 11,
qcl_info_periodic_csi_rs: 0, qcl_info_periodic_csi_rs: 0,
...@@ -426,9 +360,9 @@ ...@@ -426,9 +360,9 @@
density: 3, density: 3,
first_symb: 4, first_symb: 4,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
power_control_offset: 0, /* dB */ power_control_offset: 0,
power_control_offset_ss: 0, /* dB */ power_control_offset_ss: 0,
period: 40, period: 40,
offset: 12, offset: 12,
qcl_info_periodic_csi_rs: 0, qcl_info_periodic_csi_rs: 0,
...@@ -442,9 +376,9 @@ ...@@ -442,9 +376,9 @@
density: 3, density: 3,
first_symb: 8, first_symb: 8,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
power_control_offset: 0, /* dB */ power_control_offset: 0,
power_control_offset_ss: 0, /* dB */ power_control_offset_ss: 0,
period: 40, period: 40,
offset: 12, offset: 12,
qcl_info_periodic_csi_rs: 0, qcl_info_periodic_csi_rs: 0,
...@@ -474,9 +408,9 @@ ...@@ -474,9 +408,9 @@
subcarrier_location: 8, subcarrier_location: 8,
symbol_location: 8, symbol_location: 8,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
period: 80, period: 80,
offset: 1, /* != 0 to avoid collision with SSB */ offset: 1,
}, },
], ],
csi_im_resource_set: [ csi_im_resource_set: [
...@@ -485,7 +419,7 @@ ...@@ -485,7 +419,7 @@
csi_im_resources: [ 0 ], csi_im_resources: [ 0 ],
} }
], ],
/* ZP CSI-RS to set the CSI-IM REs to zero */
zp_csi_rs_resource: [ zp_csi_rs_resource: [
{ {
csi_rs_id: 0, csi_rs_id: 0,
...@@ -496,7 +430,7 @@ ...@@ -496,7 +430,7 @@
first_symb: 8, first_symb: 8,
density: 1, density: 1,
rb_start: 0, rb_start: 0,
l_crb: -1, /* -1 means from rb_start to the end of the bandwidth */ l_crb: -1,
period: 80, period: 80,
offset: 1, offset: 1,
}, },
...@@ -557,7 +491,7 @@ ...@@ -557,7 +491,7 @@
pucch: { pucch: {
pucch_group_hopping: "neither", pucch_group_hopping: "neither",
hopping_id: -1, /* -1 = n_cell_id */ hopping_id: -1,
p0_nominal: -90, p0_nominal: -90,
#if 0 #if 0
pucch0: { pucch0: {
...@@ -569,9 +503,6 @@ ...@@ -569,9 +503,6 @@
n_cs: 3, n_cs: 3,
n_occ: 3, n_occ: 3,
freq_hopping: true, freq_hopping: true,
#if USE_SRS && NR_TDD == 0
n_symb: 13,
#endif
}, },
#endif #endif
#if NR_LONG_PUCCH_FORMAT == 2 #if NR_LONG_PUCCH_FORMAT == 2
...@@ -603,37 +534,6 @@ ...@@ -603,37 +534,6 @@
#endif #endif
}, },
#if USE_SRS
srs: {
#if NR_TDD
#if NR_TDD_CONFIG == 1 || NR_TDD_CONFIG == 2
srs_symbols: [ 0, 0, 0, 0, 0, 0, 0, 2, 0, 0 ],
#elif NR_TDD_CONFIG == 3
srs_symbols: [ 0, 0, 0, 0, 0, 0, 2, 0, 0, 0 ],
#elif NR_TDD_CONFIG == 4
srs_symbols: [ 0, 0, 0, 4, 0, 0, 0, 0, 0, 0 ],
#elif NR_TDD_CONFIG == 10
srs_symbols: [ 0, 0, 0, 2, 0 ],
#endif
#else
srs_symbols: [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0 ],
#endif
srs_resource: [
{
srs_resource_id: 0,
n_ports: N_ANTENNA_UL,
resource_type: "periodic",
period: 80, /* in slots */
}
],
srs_resource_set: [
{
srs_resource_id_list: [ 0 ],
},
],
},
#endif
pusch: { pusch: {
mapping_type: "typeA", mapping_type: "typeA",
n_symb: 14, n_symb: 14,
...@@ -641,33 +541,32 @@ ...@@ -641,33 +541,32 @@
dmrs_type: 1, dmrs_type: 1,
dmrs_max_len: 1, dmrs_max_len: 1,
tf_precoding: false, tf_precoding: false,
mcs_table: "qam256", /* without transform precoding */ mcs_table: "qam256",
mcs_table_tp: "qam256", /* with transform precoding */ mcs_table_tp: "qam256",
ldpc_max_its: 5, ldpc_max_its: 5,
/* k2, msg3_k2 delay in slots from DCI to PUSCH: automatic setting */
p0_nominal_with_grant: -76, p0_nominal_with_grant: -76,
msg3_mcs: 4, msg3_mcs: 4,
msg3_delta_power: 0, /* in dB */ msg3_delta_power: 0,
beta_offset_ack_index: 9, beta_offset_ack_index: 9,
/* if defined, force the PUSCH MCS for all UEs. Otherwise it is
computed from the last received PUSCH. */
/* mcs: 16, */
}, },
/* MAC configuration */
mac_config: { mac_config: {
msg3_max_harq_tx: 5, msg3_max_harq_tx: 5,
ul_max_harq_tx: 5, /* max number of HARQ transmissions for uplink */ ul_max_harq_tx: 5,
dl_max_harq_tx: 5, /* max number of HARQ transmissions for downlink */ dl_max_harq_tx: 5,
ul_max_consecutive_retx: 30, /* disconnect UE if reached */ ul_max_consecutive_retx: 30,
dl_max_consecutive_retx: 30, /* disconnect UE if reached */ dl_max_consecutive_retx: 30,
periodic_bsr_timer: 20, periodic_bsr_timer: 20,
retx_bsr_timer: 320, retx_bsr_timer: 320,
periodic_phr_timer: 500, periodic_phr_timer: 500,
prohibit_phr_timer: 200, prohibit_phr_timer: 200,
phr_tx_power_factor_change: "dB3", phr_tx_power_factor_change: "dB3",
sr_prohibit_timer: 0, /* in ms, 0 to disable the timer */ sr_prohibit_timer: 0,
sr_trans_max: 64, sr_trans_max: 64,
}, },
...@@ -676,7 +575,439 @@ ...@@ -676,7 +575,439 @@
inactivity_timer: 10000, inactivity_timer: 10000,
drb_config: "{{ directory['software'] }}/enb/config/drb_nr.cfg", #ifndef EPS_FALLBACK
#define EPS_FALLBACK 0
#endif
drb_config: [
{
qci: 1,
use_for_en_dc: false,
#if EPS_FALLBACK > 0
trigger_eps_fallback: true,
#endif
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 12,
pdcp_SN_SizeDL: 12,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 6,
},
dl_um: {
sn_FieldLength: 6,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 7,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
},
},
{
qci: 2,
use_for_en_dc: false,
#if EPS_FALLBACK > 0
trigger_eps_fallback: true,
#endif
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 150,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 12,
},
dl_um: {
sn_FieldLength: 12,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 8,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 1,
},
},
{
qci: 3,
pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 12,
},
dl_um: {
sn_FieldLength: 12,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 7,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 2,
},
},
{
qci: 4,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 9,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 3,
},
},
{
qci: 65,
use_for_en_dc: false,
#if EPS_FALLBACK > 0
trigger_eps_fallback: true,
#endif
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 12,
pdcp_SN_SizeDL: 12,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 6,
},
dl_um: {
sn_FieldLength: 6,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 5,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 4,
},
},
{
qci: 66,
use_for_en_dc: false,
#if EPS_FALLBACK > 0
trigger_eps_fallback: true,
#endif
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 150,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 12,
},
dl_um: {
sn_FieldLength: 12,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 7,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 4,
},
},
{
qci: 67,
use_for_en_dc: false,
#if EPS_FALLBACK > 0
trigger_eps_fallback: true,
#endif
ims_dedicated_bearer: true,
pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 12,
},
dl_um: {
sn_FieldLength: 12,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 6,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 5,
},
},
{
qci: 5,
use_for_en_dc: false,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 6,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 4,
},
},
{
qci: 6,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 10,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 5,
},
},
{
qci: 7,
pdcp_config: {
discardTimer: 100,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: false,
outOfOrderDelivery: false,
t_Reordering: 0,
},
rlc_config: {
ul_um: {
sn_FieldLength: 12,
},
dl_um: {
sn_FieldLength: 12,
t_Reassembly: 50,
},
},
logical_channel_config: {
priority: 11,
prioritisedBitRate: 0,
bucketSizeDuration: 100,
logicalChannelGroup: 6,
},
},
{
qci: 8,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 12,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 7,
},
},
{
qci: 9,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 13,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 7,
},
},
{
qci: 69,
use_for_en_dc: false,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 4,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 4,
},
},
{
qci: 70,
pdcp_config: {
discardTimer: 0,
pdcp_SN_SizeUL: 18,
pdcp_SN_SizeDL: 18,
statusReportRequired: true,
outOfOrderDelivery: false,
},
rlc_config: {
ul_am: {
sn_FieldLength: 18,
t_PollRetransmit: 80,
pollPDU: 64,
pollByte: 125,
maxRetxThreshold: 4,
},
dl_am: {
sn_FieldLength: 18,
t_Reassembly: 80,
t_StatusProhibit: 10,
},
},
logical_channel_config: {
priority: 11,
prioritisedBitRate: 8,
bucketSizeDuration: 100,
logicalChannelGroup: 5,
},
},
],
}, },
} }
/* lteims configuration file
* version 2021-09-18
* Copyright (C) 2015-2021 Amarisoft
*/
{ {
log_options: "all.level=debug,all.max_size=32", log_options: "all.level=debug,all.max_size=32",
log_filename: "{{ directory['log'] }}/ims.log", log_filename: "{{ directory['log'] }}/ims.log",
/* SIP bind address */
//sip_addr: [
// {addr: "192.168.4.1", bind_addr: "192.168.4.1", port_min: 10000, port_max: 20000},
// "2001:468:3000:1::",
// {addr: "192.168.5.1", bind_addr: "192.168.5.1", port_min: 10000, port_max: 20000},
// "2001:468:4000:1::"
//],
/* SIP bind address */
sip_addr: [ sip_addr: [
{addr: "{{ slap_configuration['tun-ipv4-addr'] }}", bind_addr: "0.0.0.0", port_min: 10000, port_max: 20000}, {addr: "{{ slap_configuration['tun-ipv4-addr'] }}", bind_addr: "0.0.0.0", port_min: 10000, port_max: 20000},
{#" slap_configuration['tun-ipv6-addr'] ",#} {#" slap_configuration['tun-ipv6-addr'] ",#}
], ],
mms_server_bind_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration['tun-ipv4-network']).first) + 1 }}:1111", mms_server_bind_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration['tun-ipv4-network']).first) + 1 }}:1111",
/* MME connection for SMS over SG */
sctp_addr: "{{ slap_configuration['configuration.ims_addr'] }}", sctp_addr: "{{ slap_configuration['configuration.ims_addr'] }}",
/* Cx connection */
cx_server_addr: "127.0.1.100", cx_server_addr: "127.0.1.100",
cx_bind_addr: "{{ slap_configuration['configuration.ims_addr'] }}", cx_bind_addr: "{{ slap_configuration['configuration.ims_addr'] }}",
/* Rx connection */
rx_server_addr: "127.0.1.100", rx_server_addr: "127.0.1.100",
rx_bind_addr: "{{ slap_configuration['configuration.ims_addr'] }}", rx_bind_addr: "{{ slap_configuration['configuration.ims_addr'] }}",
/* Remote API */
com_addr: "[{{ slap_configuration['ipv6-random'] }}]:{{ slap_configuration['configuration.ims_ws_port'] }}",
/* Global domain name (May be overriden for each user) */
domain: "{{ slap_configuration['configuration.domain'] }}", domain: "{{ slap_configuration['configuration.domain'] }}",
include "{{ slap_configuration['ue_db_path'] }}", include "{{ slap_configuration['ue_db_path'] }}",
...@@ -48,27 +30,17 @@ ...@@ -48,27 +30,17 @@
{# origin_host: "", #} {# origin_host: "", #}
{# }, #} {# }, #}
/* Echo phone number */
echo: [ echo: [
"tel:666", "tel:666",
"tel:+666", "tel:+666",
{impu: "tel:404", code: 404}, /* 404 test */ {impu: "tel:404", code: 404},
{impu: "urn:service:sos", anonymous: true, authentication: false}, /* Emergency call */ {impu: "urn:service:sos", anonymous: true, authentication: false},
{impu: "urn:service:sos.police", anonymous: true, authentication: false}, /* Emergency call */ {impu: "urn:service:sos.police", anonymous: true, authentication: false},
], ],
/* Delay */
//sms_expires: 86400,
//binding_expires: 3600,
/* on: 3GPP mode allowed
* silent: 3GPP mode forced
* off: IETF mode
*/
precondition: "on", precondition: "on",
"100rel": true, "100rel": true,
/* IPsec */
ipsec_aalg_list: ["hmac-md5-96", "hmac-sha-1-96"], ipsec_aalg_list: ["hmac-md5-96", "hmac-sha-1-96"],
ipsec_ealg_list: ["null", "aes-cbc", "des-cbc", "des-ede3-cbc"], ipsec_ealg_list: ["null", "aes-cbc", "des-cbc", "des-ede3-cbc"],
......
/* ltemme configuration file for ims
* version 2021-09-18
* Copyright (C) 2015-2021 Amarisoft
*/
{ {
/* Log filter: syntax: layer.field=value[,...] log_options: "all.level=debug,all.max_size=32,file.rotate=1G,file.path={{ directory['tmp'] }}",
Possible layers are nas, ip, s1ap, gtpu and all. The 'all' layer
is used to address all the layers at the same time.
field values:
- 'level': the log level of each layer can be set to 'none',
'error', 'info' or 'debug'. Use 'debug' to log all the messages.
- 'max_size': set the maximum size of the hex dump. 0 means no
hex dump. -1 means no limit.
*/
log_options: "all.level=debug,all.max_size=32",
log_filename: "{{ directory['log'] }}/mme.log", log_filename: "{{ directory['log'] }}/mme.log",
/* bind address for GTP-U. Normally = address of the PC, here bound
on local interface to be able to run ltemme on the same PC as
lteenb. By default, the S1AP SCTP connection is bound on the same
address. */
{% if slapparameter_dict.get('external_enb_gnb', '') %} {% if slapparameter_dict.get('external_enb_gnb', '') %}
gtp_addr: "{{ gtp_addr }}", gtp_addr: "{{ gtp_addr }}",
{% else %} {% else %}
...@@ -33,20 +12,11 @@ ...@@ -33,20 +12,11 @@
mme_group_id: 32769, mme_group_id: 32769,
mme_code: 1, mme_code: 1,
ims_vops_eps: true, /* IMS supported */ ims_vops_eps: true,
ims_vops_5gs_3gpp: true, /* IMS supported */ ims_vops_5gs_3gpp: true,
ims_vops_5gs_n3gpp: true, /* IMS supported */ ims_vops_5gs_n3gpp: true,
//emc_bs: true, /* emergency calls supported */
//emc: 3, /* NR/E-UTRA connected to 5GCN emergency calls supported */
//emc_n3gpp: true, /* non-3GPP emergency calls supported */
emergency_number_list: [ emergency_number_list: [
/* Category bits: (Table 10.5.135d/3GPP TS 24.008)
Bit 1 Police
Bit 2 Ambulance
Bit 3 Fire Brigade
Bit 4 Marine Guard
Bit 5 Mountain Rescue
*/
{ category: 0x1f, digits: "911" }, { category: 0x1f, digits: "911" },
{ category: 0x1f, digits: "112" }, { category: 0x1f, digits: "112" },
], ],
...@@ -55,21 +25,16 @@ ...@@ -55,21 +25,16 @@
qci: {audio: 1, video: 2}, qci: {audio: 1, video: 2},
}, },
/* network name and network short name sent in the EMM information
message to the UE */
network_name: "{{ slap_configuration['configuration.network_name'] }}", network_name: "{{ slap_configuration['configuration.network_name'] }}",
network_short_name: "{{ slap_configuration['configuration.network_name'] }}", network_short_name: "{{ slap_configuration['configuration.network_name'] }}",
/* Control Plane Cellular IoT EPS optimization support */
cp_ciot_opt: true, cp_ciot_opt: true,
/* DCNR support */
nr_support: true, nr_support: true,
eps_5gs_interworking: "with_n26", eps_5gs_interworking: "with_n26",
/* 15 bearers support */
fifteen_bearers: false, fifteen_bearers: false,
ims_list: [ ims_list: [
...@@ -79,30 +44,6 @@ ...@@ -79,30 +44,6 @@
} }
], ],
/* AMF slices configuration */
/*nssai: [
{
sst: 1,
},
{
sst: 2,
},
{
sst: 3,
sd: 50,
}
],*/
/* ePDG configuration */
//epdg: {
// bind_addr: "127.0.1.100:500",
// esp_duration: 900,
// certificate: "epdg.pem",
// /* required for some buggy Mediatek phones */
// //omit_auth_in_first_auth_rsp: true
//},
/* Public Data Networks. The first one is the default. */
pdn_list: [ pdn_list: [
{ {
pdn_type: "ipv4", pdn_type: "ipv4",
...@@ -110,8 +51,8 @@ ...@@ -110,8 +51,8 @@
access_point_name: ["default", "internet", "ims", "sos"], access_point_name: ["default", "internet", "ims", "sos"],
first_ip_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration['tun-ipv4-network']).first) + 2 }}", first_ip_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration['tun-ipv4-network']).first) + 2 }}",
last_ip_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration['tun-ipv4-network']).last) - 1 }}", last_ip_addr: "{{ netaddr.IPAddress(netaddr.IPNetwork(slap_configuration['tun-ipv4-network']).last) - 1 }}",
ip_addr_shift: 2, /* difference between allocated IP addresses is 4 */ ip_addr_shift: 2,
dns_addr: "8.8.8.8", /* Google DNS address */ dns_addr: "8.8.8.8",
// TODO: enable this instead of Google's DNS above // TODO: enable this instead of Google's DNS above
// dns_addr: "{{ slap_configuration['tun-ipv4-addr'] }}", // dns_addr: "{{ slap_configuration['tun-ipv4-addr'] }}",
p_cscf_addr: ["{{ slap_configuration['tun-ipv4-addr'] }}"], p_cscf_addr: ["{{ slap_configuration['tun-ipv4-addr'] }}"],
...@@ -127,34 +68,10 @@ ...@@ -127,34 +68,10 @@
}, },
], ],
/* Setup script for the network interface.
If no script is given, no network interface is created.
Script is called for each PDN with following parameters:
1) Interface name
2) PDN index
3) Access Point Name
4) IP version: 'ipv4' or 'ipv6'
5) IP address: first IP address for ipv4 and link local address for IPv6
6) First IP address
7) Last IP address
SlapOS: We suplement the script by preparing the TUN interface in slapos format phase.
Gotcha: The script has to be presented
*/
tun_setup_script: "{{ ifup_empty }}", tun_setup_script: "{{ ifup_empty }}",
/* If true, inter-UE routing is done inside the MME (hence no IP
packet is output to the virtual network interface in case of
inter-UE communication). Otherwise, it is done by the Linux IP
layer. */
ue_to_ue_forwarding: false, ue_to_ue_forwarding: false,
/* NAS ciphering algorithm preference. EEA0 is always the last. */
nas_cipher_algo_pref: [ ], nas_cipher_algo_pref: [ ],
/* NAS integrity algorithm preference. EIA0 is always the last. */
nas_integ_algo_pref: [ 2, 1 ], nas_integ_algo_pref: [ 2, 1 ],
include "{{ slap_configuration['ue_db_path'] }}", include "{{ slap_configuration['ue_db_path'] }}",
/* persistent user database */
ue_db_filename: "{{ directory['var'] }}/lte_ue.db" ue_db_filename: "{{ directory['var'] }}/lte_ue.db"
} }
{
message c1: systemInformation: {
criticalExtensions systemInformation-r8: {
sib-TypeAndInfo {
sib2: {
radioResourceConfigCommon {
rach-ConfigCommon {
preambleInfo {
numberOfRA-Preambles n52
},
powerRampingParameters {
powerRampingStep dB2,
preambleInitialReceivedTargetPower dBm-104
},
ra-SupervisionInfo {
preambleTransMax n10,
ra-ResponseWindowSize sf10,
mac-ContentionResolutionTimer sf40
},
maxHARQ-Msg3Tx 5
},
bcch-Config {
modificationPeriodCoeff n4
},
pcch-Config {
defaultPagingCycle rf128,
nB oneT
},
prach-Config {
rootSequenceIndex 0, /* patched by eNB */
prach-ConfigInfo {
prach-ConfigIndex 4, /* patched by eNB */
highSpeedFlag FALSE,
zeroCorrelationZoneConfig 11,
prach-FreqOffset 4 /* patched by eNB */
}
},
pdsch-ConfigCommon {
referenceSignalPower -8, /* patched by eNB */
p-b 1 /* patched by eNB */
},
pusch-ConfigCommon {
pusch-ConfigBasic {
n-SB 1,
hoppingMode interSubFrame,
pusch-HoppingOffset 8, /* patched by eNB */
enable64QAM FALSE /* patched by eNB */
},
ul-ReferenceSignalsPUSCH {
groupHoppingEnabled FALSE,
groupAssignmentPUSCH 0,
sequenceHoppingEnabled FALSE,
cyclicShift 0
}
},
pucch-ConfigCommon {
deltaPUCCH-Shift ds2,
nRB-CQI 4, /* patched by eNB */
nCS-AN 0,
n1PUCCH-AN 12 /* patched by eNB */
},
soundingRS-UL-ConfigCommon setup: {
srs-BandwidthConfig bw2, /* patched by eNB */
srs-SubframeConfig sc3, /* patched by eNB */
ackNackSRS-SimultaneousTransmission TRUE
},
uplinkPowerControlCommon {
p0-NominalPUSCH -85,
alpha al1,
p0-NominalPUCCH -117,
deltaFList-PUCCH {
deltaF-PUCCH-Format1 deltaF0,
deltaF-PUCCH-Format1b deltaF3,
deltaF-PUCCH-Format2 deltaF1,
deltaF-PUCCH-Format2a deltaF2,
deltaF-PUCCH-Format2b deltaF2
},
deltaPreambleMsg3 4
},
ul-CyclicPrefixLength len1
},
ue-TimersAndConstants {
t300 ms200,
t301 ms200,
t310 ms200,
n310 n6,
t311 ms10000,
n311 n5
},
freqInfo {
additionalSpectrumEmission 1
},
timeAlignmentTimerCommon infinity
},
sib3: {
cellReselectionInfoCommon {
q-Hyst dB2
},
cellReselectionServingFreqInfo {
s-NonIntraSearch 3,
threshServingLow 2,
cellReselectionPriority 6
},
intraFreqCellReselectionInfo {
q-RxLevMin -61,
p-Max 23,
s-IntraSearch 5,
presenceAntennaPort1 TRUE,
neighCellConfig '01'B,
t-ReselectionEUTRA 1
}
}
}
}
}
}
{%- set filtered_slave_instance_list = [] %} {%- set filtered_slave_instance_list = [] %}
{%- for slave_instance in slave_instance_list %} {%- for slave_instance in slave_instance_list %}
{%- if slave_instance.get('imsi', '') != '' %} {%- if slave_instance.get('_', '') != '' %}
{%- do filtered_slave_instance_list.append(slave_instance) %} {%- set slave = json_module.loads(slave_instance.pop('_')) %}
{%- else %}
{%- set slave = slave_instance %}
{%- endif %}
{%- if slave.get('imsi', '') != '' %}
{%- do filtered_slave_instance_list.append(slave) %}
{%- endif %} {%- endif %}
{%- endfor -%} {%- endfor -%}
ue_db: [ ue_db: [
{%- for i, slave_instance in enumerate(filtered_slave_instance_list) %} {%- for i, slave in enumerate(filtered_slave_instance_list) %}
{%- if i == 0 -%} {%- if i == 0 -%}
{ {
{%- else -%} {%- else -%}
, { , {
{%- endif %} {%- endif %}
sim_algo: "{{ slave_instance.get('sim_algo', 'milenage') }}", sim_algo: "{{ slave.get('sim_algo', 'milenage') }}",
imsi: "{{ slave_instance.get('imsi', '') }}", imsi: "{{ slave.get('imsi', '') }}",
opc: "{{ slave_instance.get('opc', '') }}", opc: "{{ slave.get('opc', '') }}",
amf: {{ slave_instance.get('amf', '0x9001') }}, amf: {{ slave.get('amf', '0x9001') }},
sqn: "{{ slave_instance.get('sqn', '000000000000') }}", sqn: "{{ slave.get('sqn', '000000000000') }}",
K: "{{ slave_instance.get('k', '') }}", K: "{{ slave.get('k', '') }}",
impu: "{{ slave_instance.get('impu', '') }}", impu: "{{ slave.get('impu', '') }}",
impi: "{{ slave_instance.get('impi', '') }}", impi: "{{ slave.get('impi', '') }}",
} }
{%- endfor -%} {%- endfor -%}
] ]
......
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"title": "SIM Card Parameters",
"required": [
"sim_algo",
"imsi",
"opc",
"amf",
"sqn",
"k",
"impu",
"impi"
],
"properties": {
"sim_algo": {
"title": "Sim Algorithm",
"description": "xor, milenage or tuak. Set the USIM authentication algorithm.",
"type": "string",
"default": "milenage"
},
"imsi": {
"title": "IMSI",
"description": "IMSI",
"type": "string",
"default": ""
},
"opc": {
"title": "OPC",
"description": "Operator key preprocessed with the user secret key (as a 16 byte hexadecimal string). When the Milenage authentication algorithm is used, opc must be set.",
"type": "string",
"default": ""
},
"amf": {
"title": "AMF",
"description": "Range: 0 to 65535. Set the Authentication Management Field.",
"type": "string",
"default": "0x9001"
},
"sqn": {
"title": "SQN",
"description": "Optional String (6 byte hexadecimal string). Set the initial sequence number. For the XOR algorithm, the actual value does not matter. For the Milenage or TUAK algorithm, a sequence number resynchronization is initiated if the sequence number does not match the one stored in the USIM.",
"type": "string",
"default": "000000000000"
},
"k": {
"title": "K",
"description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "string",
"default": ""
},
"impu": {
"title": "IMPU",
"description": "sip URI or a telephone number. Note that sip URI must not include hostname. If IMPU does not start by a scheme, it is assumed to be a sip URI.",
"type": "string",
"default": ""
},
"impi": {
"title": "IMPI",
"description": "Defines user IMPI. Must be fully filled with hostname if necessary.",
"type": "string",
"default": ""
}
}
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
parts = parts =
directory directory
lte-enb-request lte-enb-request
lte-epc-request lte-mme-request
publish-connection-information publish-connection-information
extends = {{ monitor_template }} extends = {{ monitor_template }}
...@@ -45,16 +45,17 @@ cert-file = {{ slap_connection['cert-file'] }} ...@@ -45,16 +45,17 @@ cert-file = {{ slap_connection['cert-file'] }}
sla-computer_guid = {{ slap_connection['computer-id'] }} sla-computer_guid = {{ slap_connection['computer-id'] }}
config-monitor-password = ${monitor-htpasswd:passwd} config-monitor-password = ${monitor-htpasswd:passwd}
return = monitor-base-url
[lte-epc-request] [lte-mme-request]
<= request-common-base <= request-common-base
name = EPC name = MME
software-type = epc software-type = mme
config-name = epc config-name = mme
{%- for key, value in slapparameter_dict.iteritems() %} {%- for key, value in slapparameter_dict.iteritems() %}
config-{{ key }} = {{ dumps(value) }} config-{{ key }} = {{ dumps(value) }}
{% endfor -%} {% endfor -%}
config-slave-list = {{ dumps(slave_instance_list) }}
return = monitor-base-url epc-ip
[lte-enb-request] [lte-enb-request]
<= request-common-base <= request-common-base
...@@ -64,11 +65,13 @@ config-name = enb ...@@ -64,11 +65,13 @@ config-name = enb
{%- for key, value in slapparameter_dict.iteritems() %} {%- for key, value in slapparameter_dict.iteritems() %}
config-{{ key }} = {{ dumps(value) }} config-{{ key }} = {{ dumps(value) }}
{% endfor -%} {% endfor -%}
return = monitor-base-url
[monitor-base-url-dict] [monitor-base-url-dict]
lte-epc-request = ${lte-epc-request:connection-monitor-base-url} lte-mme-request = ${lte-mme-request:connection-monitor-base-url}
lte-enb-request = ${lte-enb-request:connection-monitor-base-url} lte-enb-request = ${lte-enb-request:connection-monitor-base-url}
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish.serialised recipe = slapos.cookbook:publish.serialised
<= monitor-publish <= monitor-publish
epc-ip = ${lte-mme-request:connection-epc-ip}
...@@ -41,12 +41,6 @@ ...@@ -41,12 +41,6 @@
"type": "number", "type": "number",
"default": {{ default_lte_n_rb_dl }} "default": {{ default_lte_n_rb_dl }}
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -106,6 +106,7 @@ context = ...@@ -106,6 +106,7 @@ context =
section slap_configuration slap-configuration section slap_configuration slap-configuration
key slapparameter_dict slap-configuration:configuration key slapparameter_dict slap-configuration:configuration
key gtp_addr slap-configuration:ipv6-random key gtp_addr slap-configuration:ipv6-random
raw sib23 {{ sib23 }}
import netaddr netaddr import netaddr netaddr
[lte-enb-config] [lte-enb-config]
......
{ {
"type": "object", "type": "object",
"$schema": "http://json-schema.org/draft-04/schema", "$schema": "http://json-schema.org/draft-04/schema",
"title": "EPC SIM Card Parameters", "title": "SIM Card Parameters",
"required": [ "required": [
"sim_algo", "sim_algo",
"imsi", "imsi",
......
[buildout] [buildout]
parts = parts =
directory directory
ltelogs lte-mme-request
lte-mme-config
lte-mme-service
tun-up-promise
monitor-base
publish-connection-information publish-connection-information
extends = {{ monitor_template }} extends = {{ monitor_template }}
...@@ -22,19 +18,6 @@ url = {{ slap_connection['server-url'] }} ...@@ -22,19 +18,6 @@ url = {{ slap_connection['server-url'] }}
key = {{ slap_connection['key-file'] }} key = {{ slap_connection['key-file'] }}
cert = {{ slap_connection['cert-file'] }} cert = {{ slap_connection['cert-file'] }}
configuration.network_name = RAPIDSPACE
configuration.domain = rapid.space
configuration.log_size = 50M
configuration.mme_ws_port = 9000
configuration.enb_ws_port = 9002
configuration.ims_ws_port = 9003
configuration.mme_addr = 127.0.1.100
configuration.ims_addr = 127.0.0.1
configuration.ims_bind = 127.0.0.2
configuration.enb_addr = 127.0.1.1
ue_db_path = {{ ue_db_path }}
[directory] [directory]
recipe = slapos.cookbook:mkdirectory recipe = slapos.cookbook:mkdirectory
software = {{ buildout_directory }} software = {{ buildout_directory }}
...@@ -49,110 +32,34 @@ service = ${:etc}/service ...@@ -49,110 +32,34 @@ service = ${:etc}/service
promise = ${:etc}/promise promise = ${:etc}/promise
log = ${:var}/log log = ${:var}/log
[ltelogs] [request-common-base]
recipe = slapos.recipe.template:jinja2 recipe = slapos.cookbook:request.serialised
url = {{ ltelogs_template }} software-url = {{ slap_connection['software-release-url'] }}
output = ${directory:home}/ltelogs.sh server-url = {{ slap_connection['server-url'] }}
extensions = jinja2.ext.do computer-id = {{ slap_connection['computer-id'] }}
context = partition-id = {{ slap_connection['partition-id'] }}
section directory directory key-file = {{ slap_connection['key-file'] }}
cert-file = {{ slap_connection['cert-file'] }}
{% if slapparameter_dict.get("mme_config_link", None) %}
[mme-config-dl] sla-computer_guid = {{ slap_connection['computer-id'] }}
recipe = slapos.recipe.build:download
url = {{ slapparameter_dict.get("mme_config_link") }} config-monitor-password = ${monitor-htpasswd:passwd}
version = {{ slapparameter_dict.get("mme_config_version") }} return = monitor-base-url epc-ip
offline = false
{% endif %} [lte-mme-request]
<= request-common-base
### IMS name = MME
[lte-ims-service] software-type = mme
recipe = slapos.cookbook:wrapper config-name = mme
init = ${ltelogs:output} ${directory:log}/ims.log; sleep 1 {%- for key, value in slapparameter_dict.iteritems() %}
command-line = {{ mme }}/lteims ${directory:etc}/ims.cfg config-{{ key }} = {{ dumps(value) }}
wrapper-path = ${directory:service}/lte-ims {% endfor -%}
mode = 0775 config-slave-list = {{ dumps(slave_instance_list) }}
pidfile = ${directory:run}/ims.pid
hash-files = [monitor-base-url-dict]
${lte-ims-config:output} lte-mme-request = ${lte-mme-request:connection-monitor-base-url}
{{ ue_db_path }}
environment = AMARISOFT_PATH=/opt/amarisoft/.amarisoft
[lte-mme-sh-wrapper]
recipe = slapos.recipe.template
output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
rm -f ${directory:var}/lte_ue.db;
{{ mme }}/ltemme ${directory:etc}/mme.cfg >> ${directory:log}/mme-output.log 2>> ${directory:log}/mme-output.log
### MME
[lte-mme-service]
recipe = slapos.cookbook:wrapper
# When the machine shutdowns abruptly, lte_ue is not cleaned up which causes
# amarisoft ltemme to fail. TODO: find a cleaner way to handle this
init = ${ltelogs:output} ${directory:log}/mme.log
command-line = ${lte-mme-sh-wrapper:output}
wrapper-path = ${directory:service}/lte-mme
mode = 0775
pidfile = ${directory:run}/mme.pid
hash-files =
${lte-mme-config:output}
{{ ue_db_path }}
${lte-mme-sh-wrapper:output}
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib:{{ nghttp2_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
### EMPTY mme-ifup script
[lte-mme-ifup-empty]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:bin}/mme-ifup-empty
command-line = echo Using interface
mode = 775
[config-base]
recipe = slapos.recipe.template:jinja2
extensions = jinja2.ext.do
context =
section directory directory
section slap_configuration slap-configuration
key slapparameter_dict slap-configuration:configuration
key gtp_addr slap-configuration:ipv6-random
import netaddr netaddr
key ifup_empty lte-mme-ifup-empty:wrapper-path
[lte-ims-config]
<= config-base
url = {{ ims_template }}
output = ${directory:etc}/ims.cfg
[lte-mme-config]
<= config-base
{% if slapparameter_dict.get("mme_config_link", None) %}
url = ${mme-config-dl:target}
{% else %}
url = {{ mme_template }}
{% endif %}
output = ${directory:etc}/mme.cfg
[monitor-instance-parameter]
{% if slapparameter_dict.get("name", None) %}
monitor-title = {{ slapparameter_dict['name'] | string }}
{% endif %}
{% if slapparameter_dict.get("monitor-password", None) %}
password = {{ slapparameter_dict['monitor-password'] | string }}
{% endif %}
[publish-connection-information] [publish-connection-information]
<= monitor-publish
recipe = slapos.cookbook:publish.serialised recipe = slapos.cookbook:publish.serialised
epc-ip = ${slap-configuration:ipv6-random} <= monitor-publish
epc-ip = ${lte-mme-request:connection-epc-ip}
# Add custom promise to check if /dev/sdr0 is busy
[tun-up-promise]
recipe = slapos.cookbook:promise.plugin
eggs = slapos.core
file = {{ interface_up_promise }}
output = ${directory:plugins}/check-tun-up.py
config-ifname = ${slap-configuration:tun-name}
{
"type": "object",
"$schema": "http://json-schema.org/draft-04/schema",
"title": "SIM Card Parameters",
"required": [
"sim_algo",
"imsi",
"opc",
"amf",
"sqn",
"k",
"impu",
"impi"
],
"properties": {
"sim_algo": {
"title": "Sim Algorithm",
"description": "xor, milenage or tuak. Set the USIM authentication algorithm.",
"type": "string",
"default": "milenage"
},
"imsi": {
"title": "IMSI",
"description": "IMSI",
"type": "string",
"default": ""
},
"opc": {
"title": "OPC",
"description": "Operator key preprocessed with the user secret key (as a 16 byte hexadecimal string). When the Milenage authentication algorithm is used, opc must be set.",
"type": "string",
"default": ""
},
"amf": {
"title": "AMF",
"description": "Range: 0 to 65535. Set the Authentication Management Field.",
"type": "string",
"default": "0x9001"
},
"sqn": {
"title": "SQN",
"description": "Optional String (6 byte hexadecimal string). Set the initial sequence number. For the XOR algorithm, the actual value does not matter. For the Milenage or TUAK algorithm, a sequence number resynchronization is initiated if the sequence number does not match the one stored in the USIM.",
"type": "string",
"default": "000000000000"
},
"k": {
"title": "K",
"description": "Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK).",
"type": "string",
"default": ""
},
"impu": {
"title": "IMPU",
"description": "sip URI or a telephone number. Note that sip URI must not include hostname. If IMPU does not start by a scheme, it is assumed to be a sip URI.",
"type": "string",
"default": ""
},
"impi": {
"title": "IMPI",
"description": "Defines user IMPI. Must be fully filled with hostname if necessary.",
"type": "string",
"default": ""
}
}
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
parts = parts =
directory directory
lte-gnb-request lte-gnb-request
lte-epc-request lte-mme-request
publish-connection-information publish-connection-information
extends = {{ monitor_template }} extends = {{ monitor_template }}
...@@ -45,16 +45,17 @@ cert-file = {{ slap_connection['cert-file'] }} ...@@ -45,16 +45,17 @@ cert-file = {{ slap_connection['cert-file'] }}
sla-computer_guid = {{ slap_connection['computer-id'] }} sla-computer_guid = {{ slap_connection['computer-id'] }}
config-monitor-password = ${monitor-htpasswd:passwd} config-monitor-password = ${monitor-htpasswd:passwd}
return = monitor-base-url
[lte-epc-request] [lte-mme-request]
<= request-common-base <= request-common-base
name = EPC name = MME
software-type = epc software-type = mme
config-name = epc config-name = mme
{%- for key, value in slapparameter_dict.iteritems() %} {%- for key, value in slapparameter_dict.iteritems() %}
config-{{ key }} = {{ dumps(value) }} config-{{ key }} = {{ dumps(value) }}
{% endfor -%} {% endfor -%}
config-slave-list = {{ dumps(slave_instance_list) }}
return = monitor-base-url epc-ip
[lte-gnb-request] [lte-gnb-request]
<= request-common-base <= request-common-base
...@@ -64,11 +65,13 @@ config-name = gnb ...@@ -64,11 +65,13 @@ config-name = gnb
{%- for key, value in slapparameter_dict.iteritems() %} {%- for key, value in slapparameter_dict.iteritems() %}
config-{{ key }} = {{ dumps(value) }} config-{{ key }} = {{ dumps(value) }}
{% endfor -%} {% endfor -%}
return = monitor-base-url
[monitor-base-url-dict] [monitor-base-url-dict]
lte-epc-request = ${lte-epc-request:connection-monitor-base-url} lte-mme-request = ${lte-mme-request:connection-monitor-base-url}
lte-gnb-request = ${lte-gnb-request:connection-monitor-base-url} lte-gnb-request = ${lte-gnb-request:connection-monitor-base-url}
[publish-connection-information] [publish-connection-information]
recipe = slapos.cookbook:publish.serialised recipe = slapos.cookbook:publish.serialised
<= monitor-publish <= monitor-publish
epc-ip = ${lte-mme-request:connection-epc-ip}
[buildout]
parts =
directory
ltelogs
lte-mme-config
lte-mme-service
tun-up-promise
monitor-base
publish-connection-information
extends = {{ monitor_template }}
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
computer = {{ slap_connection['computer-id'] }}
partition = {{ slap_connection['partition-id'] }}
url = {{ slap_connection['server-url'] }}
key = {{ slap_connection['key-file'] }}
cert = {{ slap_connection['cert-file'] }}
configuration.network_name = RAPIDSPACE
configuration.domain = rapid.space
configuration.log_size = 50M
configuration.mme_ws_port = 9000
configuration.enb_ws_port = 9002
configuration.ims_ws_port = 9003
configuration.mme_addr = 127.0.1.100
configuration.ims_addr = 127.0.0.1
configuration.ims_bind = 127.0.0.2
configuration.enb_addr = 127.0.1.1
ue_db_path = {{ ue_db_path }}
[directory]
recipe = slapos.cookbook:mkdirectory
software = {{ buildout_directory }}
home = ${buildout:directory}
etc = ${:home}/etc
var = ${:home}/var
etc = ${:home}/etc
bin = ${:home}/bin
tmp = ${:home}/tmp
run = ${:var}/run
script = ${:etc}/run
service = ${:etc}/service
promise = ${:etc}/promise
log = ${:var}/log
[ltelogs]
recipe = slapos.recipe.template:jinja2
url = {{ ltelogs_template }}
output = ${directory:home}/ltelogs.sh
extensions = jinja2.ext.do
context =
section directory directory
{% if slapparameter_dict.get("mme_config_link", None) %}
[mme-config-dl]
recipe = slapos.recipe.build:download
url = {{ slapparameter_dict.get("mme_config_link") }}
version = {{ slapparameter_dict.get("mme_config_version") }}
offline = false
{% endif %}
### IMS
[lte-ims-service]
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/ims.log; sleep 1
command-line = {{ mme }}/lteims ${directory:etc}/ims.cfg
wrapper-path = ${directory:service}/lte-ims
mode = 0775
pidfile = ${directory:run}/ims.pid
hash-files =
${lte-ims-config:output}
{{ ue_db_path }}
environment = AMARISOFT_PATH=/opt/amarisoft/.amarisoft
[lte-mme-sh-wrapper]
recipe = slapos.recipe.template
output = ${directory:bin}/${:_buildout_section_name_}
inline =
#!/bin/sh
rm -f ${directory:var}/lte_ue.db;
{{ mme }}/ltemme ${directory:etc}/mme.cfg >> ${directory:log}/mme-output.log 2>> ${directory:log}/mme-output.log
### MME
[lte-mme-service]
recipe = slapos.cookbook:wrapper
# When the machine shutdowns abruptly, lte_ue is not cleaned up which causes
# amarisoft ltemme to fail. TODO: find a cleaner way to handle this
init = ${ltelogs:output} ${directory:log}/mme.log
command-line = ${lte-mme-sh-wrapper:output}
wrapper-path = ${directory:service}/lte-mme
mode = 0775
pidfile = ${directory:run}/mme.pid
hash-files =
${lte-mme-config:output}
{{ ue_db_path }}
${lte-mme-sh-wrapper:output}
environment =
LD_LIBRARY_PATH={{ openssl_location }}/lib:{{ nghttp2_location }}/lib
AMARISOFT_PATH=/opt/amarisoft/.amarisoft
### EMPTY mme-ifup script
[lte-mme-ifup-empty]
recipe = slapos.cookbook:wrapper
wrapper-path = ${directory:bin}/mme-ifup-empty
command-line = echo Using interface
mode = 775
[config-base]
recipe = slapos.recipe.template:jinja2
extensions = jinja2.ext.do
context =
section directory directory
section slap_configuration slap-configuration
key slapparameter_dict slap-configuration:configuration
key gtp_addr slap-configuration:ipv6-random
import netaddr netaddr
key ifup_empty lte-mme-ifup-empty:wrapper-path
[lte-ims-config]
<= config-base
url = {{ ims_template }}
output = ${directory:etc}/ims.cfg
[lte-mme-config]
<= config-base
{% if slapparameter_dict.get("mme_config_link", None) %}
url = ${mme-config-dl:target}
{% else %}
url = {{ mme_template }}
{% endif %}
output = ${directory:etc}/mme.cfg
[monitor-instance-parameter]
{% if slapparameter_dict.get("name", None) %}
monitor-title = {{ slapparameter_dict['name'] | string }}
{% endif %}
{% if slapparameter_dict.get("monitor-password", None) %}
password = {{ slapparameter_dict['monitor-password'] | string }}
{% endif %}
[publish-connection-information]
<= monitor-publish
recipe = slapos.cookbook:publish.serialised
epc-ip = ${slap-configuration:ipv6-random}
# Add custom promise to check if /dev/sdr0 is busy
[tun-up-promise]
recipe = slapos.cookbook:promise.plugin
eggs = slapos.core
file = {{ interface_up_promise }}
output = ${directory:plugins}/check-tun-up.py
config-ifname = ${slap-configuration:tun-name}
...@@ -39,12 +39,6 @@ ...@@ -39,12 +39,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -39,12 +39,6 @@ ...@@ -39,12 +39,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -39,12 +39,6 @@ ...@@ -39,12 +39,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -39,12 +39,6 @@ ...@@ -39,12 +39,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -27,12 +27,6 @@ ...@@ -27,12 +27,6 @@
"type": "number", "type": "number",
"default": 100 "default": 100
}, },
"mme_addr": {
"title": "MME Address",
"description": "IPv4 of the core network",
"type": "string",
"default": "127.0.0.100"
},
"mme_list": { "mme_list": {
"title": "MME list", "title": "MME list",
"description": "Optionnal. List of MME to which the gNodeB is connected", "description": "Optionnal. List of MME to which the gNodeB is connected",
......
...@@ -27,13 +27,26 @@ context = ...@@ -27,13 +27,26 @@ context =
key slapparameter_dict slap-configuration:configuration key slapparameter_dict slap-configuration:configuration
$${:extra-context} $${:extra-context}
[amarisoft]
recipe = slapos.recipe.build
init =
import os
lte_version = "2021-09-18"
path = "/opt/amarisoft/v" + lte_version
options['lte-version'] = lte_version
options['path'] = path
options['enb'] = path + "/enb"
options['mme'] = path + "/mme"
options['ims'] = path + "/ims"
[switch-softwaretype] [switch-softwaretype]
recipe = slapos.cookbook:switch-softwaretype recipe = slapos.cookbook:switch-softwaretype
enb-epc = dynamic-template-lte-enb-epc:output enb-epc = dynamic-template-lte-enb-epc:output
gnb-epc = dynamic-template-lte-gnb-epc:output gnb-epc = dynamic-template-lte-gnb-epc:output
epc = dynamic-template-lte-epc:output
enb = dynamic-template-lte-enb:output enb = dynamic-template-lte-enb:output
gnb = dynamic-template-lte-gnb:output gnb = dynamic-template-lte-gnb:output
epc = dynamic-template-lte-epc:output mme = dynamic-template-lte-mme:output
RootSoftwareInstance = $${:enb-epc} RootSoftwareInstance = $${:enb-epc}
[dynamic-template-lte-enb-epc] [dynamic-template-lte-enb-epc]
...@@ -43,6 +56,7 @@ filename = instance-lte-enb-epc.cfg ...@@ -43,6 +56,7 @@ filename = instance-lte-enb-epc.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
extra-context = extra-context =
raw monitor_template ${monitor2-template:output} raw monitor_template ${monitor2-template:output}
key slave_instance_list slap-configuration:slave-instance-list
[dynamic-template-lte-gnb-epc] [dynamic-template-lte-gnb-epc]
< = jinja2-template-base < = jinja2-template-base
...@@ -51,6 +65,16 @@ filename = instance-lte-gnb-epc.cfg ...@@ -51,6 +65,16 @@ filename = instance-lte-gnb-epc.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
extra-context = extra-context =
raw monitor_template ${monitor2-template:output} raw monitor_template ${monitor2-template:output}
key slave_instance_list slap-configuration:slave-instance-list
[dynamic-template-lte-epc]
< = jinja2-template-base
url = ${template-lte-epc:target}
filename = instance-lte-epc.cfg
extensions = jinja2.ext.do
extra-context =
raw monitor_template ${monitor2-template:output}
key slave_instance_list slap-configuration:slave-instance-list
[dynamic-template-lte-enb] [dynamic-template-lte-enb]
< = jinja2-template-base < = jinja2-template-base
...@@ -59,8 +83,9 @@ filename = instance-lte-enb.cfg ...@@ -59,8 +83,9 @@ filename = instance-lte-enb.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
extra-context = extra-context =
raw monitor_template ${monitor2-template:output} raw monitor_template ${monitor2-template:output}
raw enb ${enb:destination} key enb amarisoft:enb
raw enb_template ${enb.jinja2.cfg:target} raw enb_template ${enb.jinja2.cfg:target}
raw sib23 ${sib23.asn:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target} raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw sdr_busy_promise ${sdr-busy-promise:target} raw sdr_busy_promise ${sdr-busy-promise:target}
raw openssl_location ${openssl:location} raw openssl_location ${openssl:location}
...@@ -80,7 +105,7 @@ filename = instance-lte-gnb.cfg ...@@ -80,7 +105,7 @@ filename = instance-lte-gnb.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
extra-context = extra-context =
raw monitor_template ${monitor2-template:output} raw monitor_template ${monitor2-template:output}
raw enb ${enb:destination} key enb amarisoft:enb
raw gnb_template ${gnb.jinja2.cfg:target} raw gnb_template ${gnb.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target} raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw sdr_busy_promise ${sdr-busy-promise:target} raw sdr_busy_promise ${sdr-busy-promise:target}
...@@ -95,15 +120,15 @@ extra-context = ...@@ -95,15 +120,15 @@ extra-context =
raw min_frequency ${enb:min-frequency} raw min_frequency ${enb:min-frequency}
raw max_frequency ${enb:max-frequency} raw max_frequency ${enb:max-frequency}
[dynamic-template-lte-epc] [dynamic-template-lte-mme]
< = jinja2-template-base < = jinja2-template-base
url = ${template-lte-epc:target} url = ${template-lte-mme:target}
filename = instance-lte-epc.cfg filename = instance-lte-mme.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
extra-context = extra-context =
raw monitor_template ${monitor2-template:output} raw monitor_template ${monitor2-template:output}
raw interface_up_promise ${interface-up-promise:target} raw interface_up_promise ${interface-up-promise:target}
raw mme ${mme:destination} key mme amarisoft:mme
raw mme_template ${mme.jinja2.cfg:target} raw mme_template ${mme.jinja2.cfg:target}
raw ims_template ${ims.jinja2.cfg:target} raw ims_template ${ims.jinja2.cfg:target}
raw ltelogs_template ${ltelogs.jinja2.sh:target} raw ltelogs_template ${ltelogs.jinja2.sh:target}
...@@ -118,4 +143,5 @@ filename = ue_db.cfg ...@@ -118,4 +143,5 @@ filename = ue_db.cfg
extensions = jinja2.ext.do extensions = jinja2.ext.do
output = $${buildout:directory}/$${:filename} output = $${buildout:directory}/$${:filename}
context = context =
key slave_instance_list slap-configuration:slave-instance-list import json_module json
key slave_instance_list slap-configuration:configuration.slave-list
...@@ -43,14 +43,32 @@ ...@@ -43,14 +43,32 @@
"response": "instance-epc-schema.json", "response": "instance-epc-schema.json",
"index": 4 "index": 4
}, },
"gnb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json",
"shared": true,
"index": 5
},
"enb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json",
"shared": true,
"index": 6
},
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "Sim Card",
"description": "EPC Configuration", "description": "Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
"shared": true, "shared": true,
"index": 5 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -43,14 +43,32 @@ ...@@ -43,14 +43,32 @@
"response": "instance-epc-schema.json", "response": "instance-epc-schema.json",
"index": 4 "index": 4
}, },
"gnb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json",
"shared": true,
"index": 5
},
"enb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json",
"shared": true,
"index": 6
},
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "Sim Card",
"description": "EPC Configuration", "description": "Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
"shared": true, "shared": true,
"index": 5 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -43,14 +43,32 @@ ...@@ -43,14 +43,32 @@
"response": "instance-epc-schema.json", "response": "instance-epc-schema.json",
"index": 4 "index": 4
}, },
"gnb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json",
"shared": true,
"index": 5
},
"enb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json",
"shared": true,
"index": 6
},
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "Sim Card",
"description": "EPC Configuration", "description": "Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
"shared": true, "shared": true,
"index": 5 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -43,14 +43,32 @@ ...@@ -43,14 +43,32 @@
"response": "instance-epc-schema.json", "response": "instance-epc-schema.json",
"index": 4 "index": 4
}, },
"gnb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json",
"shared": true,
"index": 5
},
"enb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json",
"shared": true,
"index": 6
},
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "Sim Card",
"description": "EPC Configuration", "description": "Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
"shared": true, "shared": true,
"index": 5 "index": 7
} }
} }
} }
\ No newline at end of file
...@@ -16,10 +16,7 @@ parts += ...@@ -16,10 +16,7 @@ parts +=
enb.jinja2.cfg enb.jinja2.cfg
gnb.jinja2.cfg gnb.jinja2.cfg
ue_db.jinja2.cfg ue_db.jinja2.cfg
# sdr driver is dependent on ENB thus should be added explicitely by software.cfg sib23.asn
sdr-driver
lteenb-cap-sys-nice
lteenb-avx2-cap-sys-nice
# unimplemented parts - the http monitor and better log handling using logrotate # unimplemented parts - the http monitor and better log handling using logrotate
# apache-php # apache-php
# logrotate # logrotate
...@@ -39,13 +36,16 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_} ...@@ -39,13 +36,16 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_}
[template-lte-gnb-epc] [template-lte-gnb-epc]
<= download-base <= download-base
[template-lte-epc]
<= download-base
[template-lte-enb] [template-lte-enb]
<= download-base <= download-base
[template-lte-gnb] [template-lte-gnb]
<= download-base <= download-base
[template-lte-epc] [template-lte-mme]
<= download-base <= download-base
[sdr-busy-promise] [sdr-busy-promise]
...@@ -54,13 +54,6 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_} ...@@ -54,13 +54,6 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_}
[interface-up-promise] [interface-up-promise]
<= download-base <= download-base
[amarisoft]
recipe = slapos.recipe.build
path = /opt/amarisoft/lte
init =
import os
options['lte-version'] = os.readlink(options["path"])[:-1]
[copy-to-instance] [copy-to-instance]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_buildout_section_name_} url = ${:_profile_base_location_}/${:_buildout_section_name_}
...@@ -69,15 +62,12 @@ url = ${:_profile_base_location_}/${:_buildout_section_name_} ...@@ -69,15 +62,12 @@ url = ${:_profile_base_location_}/${:_buildout_section_name_}
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/config/${:_buildout_section_name_} url = ${:_profile_base_location_}/config/${:_buildout_section_name_}
[unpack-to-instance]
recipe = slapos.recipe.build:download-unpacked
url = ${amarisoft:path}/lte${:_buildout_section_name_}-linux-${amarisoft:lte-version}.tar.gz
destination = ${buildout:directory}/${:_buildout_section_name_}
strip-top-level-dir = true
[enb.jinja2.cfg] [enb.jinja2.cfg]
<= copy-config-to-instance <= copy-config-to-instance
filename = enb.jinja2.cfg filename = enb.jinja2.cfg
[sib23.asn]
<= copy-config-to-instance
filename = sib23.asn
[gnb.jinja2.cfg] [gnb.jinja2.cfg]
<= copy-config-to-instance <= copy-config-to-instance
filename = gnb.jinja2.cfg filename = gnb.jinja2.cfg
...@@ -93,55 +83,3 @@ filename = mme.jinja2.cfg ...@@ -93,55 +83,3 @@ filename = mme.jinja2.cfg
[ims.jinja2.cfg] [ims.jinja2.cfg]
<= copy-config-to-instance <= copy-config-to-instance
filename = ims.jinja2.cfg filename = ims.jinja2.cfg
[sdr]
<= unpack-to-instance
url = ${amarisoft:path}/trx_${:_buildout_section_name_}-linux-${amarisoft:lte-version}.tar.gz
destination = ${enb:destination}/x86_64
md5sum = ${trx_sdr-linux:md5sum}
[sdr-driver]
# move trx_sdr.so next to lteenb binary
recipe = plone.recipe.command
command = cp -p ${sdr:destination}/trx_sdr.so ${enb:destination}
[enb]
<= unpack-to-instance
md5sum = ${lteenb-linux:md5sum}
[mme]
<= unpack-to-instance
md5sum = ${ltemme-linux:md5sum}
[lteenb-linux]
filename = ${amarisoft:lte-version}/lteenb-linux-${amarisoft:lte-version}.tar.gz
md5sum = 842b1526073472a30cb0b286d3b1528c
[ltemme-linux]
filename = ${amarisoft:lte-version}/ltemme-linux-${amarisoft:lte-version}.tar.gz
md5sum = 9d7917f90c7c7b2a8ba624d874595351
[ltewww-linux]
filename = ${amarisoft:lte-version}/ltewww-linux-${amarisoft:lte-version}.tar.gz
md5sum = 416b6167f70b12910fbbb9293038554c
[trx_sdr-linux]
filename = ${amarisoft:lte-version}/trx_sdr-linux-${amarisoft:lte-version}.tar.gz
md5sum = e6960e3460f1a32c2436f36b2082995d
[base-lteenb-cap-sys-nice]
recipe = plone.recipe.command
command =
getcap ${amarisoft:path}/${:binary} | grep cap_sys_nice+ep && exit 0;
# Make a copy or restore the copy, as patchelf will irreversibly change the md5sum
stat ${enb:destination}/${:binary}-unpriviledged ||
cp ${enb:destination}/${:binary} ${enb:destination}/${:binary}-unpriviledged &&
cp ${enb:destination}/${:binary}-unpriviledged ${enb:destination}/${:binary}
# ORS are pre-configured to have sudo allow slapsoft to run give-cap-sys-nice-lteenb script
# with root permissions
sudo -n ${amarisoft:path}/../give-cap-sys-nice-lteenb ${enb:destination}/${:binary} || true;
update-command = ${:command}
[lteenb-avx2-cap-sys-nice]
<= base-lteenb-cap-sys-nice
binary=lteenb
[lteenb-cap-sys-nice]
<= base-lteenb-cap-sys-nice
binary=lteenb-avx2
...@@ -43,14 +43,32 @@ ...@@ -43,14 +43,32 @@
"response": "instance-epc-schema.json", "response": "instance-epc-schema.json",
"index": 4 "index": 4
}, },
"gnb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "gnb-epc",
"request": "instance-gnb-epc-slave-input-schema.json",
"response": "instance-gnb-epc-slave-schema.json",
"shared": true,
"index": 5
},
"enb-epc-slave": {
"title": "Sim Card",
"description": "Sim Card Configuration",
"software-type": "enb-epc",
"request": "instance-enb-epc-slave-input-schema.json",
"response": "instance-enb-epc-slave-schema.json",
"shared": true,
"index": 6
},
"epc-slave": { "epc-slave": {
"title": "Sim Card", "title": "Sim Card",
"description": "EPC Configuration", "description": "Sim Card Configuration",
"software-type": "epc", "software-type": "epc",
"request": "instance-epc-slave-input-schema.json", "request": "instance-epc-slave-input-schema.json",
"response": "instance-epc-slave-schema.json", "response": "instance-epc-slave-schema.json",
"shared": true, "shared": true,
"index": 5 "index": 7
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment