Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srsUE can not attach to eNB #727

Closed
fancyshirt opened this issue Sep 21, 2021 · 14 comments
Closed

srsUE can not attach to eNB #727

fancyshirt opened this issue Sep 21, 2021 · 14 comments

Comments

@fancyshirt
Copy link

Issue Description

[srsUE keeps searching eNB but can not attach to eNB]

Setup Details

[Specify details of the test setup. This would help us reproduce the problem reliably]
Machine-1:
Ubuntu 18.04
Running srsepc amd srsenb
UHD 3.15 installed
Connects to a USRP N310 with UHD 3.15

Machine-2:
Ubuntu 18.04
Running srsue
UHD 3.15 installed
Connects to a USRP N310 with UHD 3.15

Expected Behavior

After EPC and eNB are already running, UE can attach to eNB.

Actual Behaviour

srsUE keeps searching for attaching.
root@machine2:~# srsue --rf.device_args=send_frame_size=1476,recv_frame_size=1476 --rat.eutra.dl_freq=2560e6 --rat.eu tra.ul_freq=2680e6
Reading configuration file /root/.config/srsran/ue.conf...

Built in Release mode using commit 89f16ee on branch master.

Opening 1 channels in RF device=UHD with args=send_frame_size=1476,recv_frame_size=1476
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
[INFO] [LOGGING] Fastpath logging disabled at runtime.
Opening USRP channels=1, args: send_frame_size=1476,recv_frame_size=1476,type=n3xx,master_clock_rate=122.88e6
[INFO] [UHD RF] RF UHD Generic instance constructed
[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=192.168.11.2,type=n3xx,product=n310,seria l=3205558,claimed=False,addr=192.168.11.2,send_frame_size=1476,recv_frame_size=1476,master_clock_rate=122.88e6
[INFO] [MPM.PeriphManager] init() called with device args `send_frame_size=1476,master_clock_rate=122.88e6,time_s ource=internal,recv_frame_size=1476,product=n310,mgmt_addr=192.168.11.2,clock_source=internal'.
[INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004)
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312)
[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000002)
[INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_2] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_3] Initializing block control (NOC ID: 0xF1F0000000000000)
Waiting PHY to initialize ... done!
Attaching UE...
.................................................................
....................................................
..................
.........................................................................................................
...........................................
........................
................................................................................................................. ..............................................................................................................
................................................................................................
..................................................................
...............
.......................................................
................................................................................................................. .........
...........................................
................................................................................................................. ............................................................................................................
.............................................
.
................................................................................................................. ..........................
................................................................................................................. ....
................................................................................................................. ................................................................................................................. ............
................................................................................................................. ................................................................................................................. ................................................................................................................. ......................................................................Stopping ..
.....--- exiting ---
root@machine2:~#

Steps to reproduce the problem

[Tell us how to reproduce this issue e.g. RF setup, application config files]
=== epc.conf
[mme]
mme_code = 0x1a
mme_group = 0x0001
tac = 0x0007
mcc = 001
mnc = 01
mme_bind_addr = 127.0.1.100
apn = srsapn
dns_addr = 8.8.8.8
encryption_algo = EEA0
integrity_algo = EIA1
paging_timer = 2

[hss]
db_file = user_db.csv

[spgw]
gtpu_bind_addr = 127.0.1.100
sgi_if_addr = 172.16.0.1
sgi_if_name = srs_spgw_sgi
max_paging_queue = 100

[pcap]
enable = false
filename = /tmp/epc.pcap

[log]
all_level = info
all_hex_limit = 32
filename = /tmp/epc.log

=== enb.conf
[enb]
enb_id = 0x19B
mcc = 001
mnc = 01
mme_addr = 127.0.1.100
gtp_bind_addr = 127.0.1.1
s1c_bind_addr = 127.0.1.1
n_prb = 50

[enb_files]
sib_config = sib.conf
rr_config = rr.conf
drb_config = drb.conf

[rf]
dl_earfcn = 3350
tx_gain = 80
rx_gain = 40
device_name = UHD
device_args = type=n3xx
srate = 15.36e6

[pcap]
enable = false
filename = /tmp/enb.pcap
s1ap_enable = false
s1ap_filename = /tmp/enb_s1ap.pcap

mac_net_enable = false
bind_ip = 0.0.0.0
bind_port = 5687
client_ip = 127.0.0.1
client_port = 5847

[log]
all_level = warning
all_hex_limit = 32
filename = /tmp/enb.log
file_max_size = -1

[gui]
enable = false

=== ue.conf
[rf]
freq_offset = 0
tx_gain = 80
device_name = UHD
device_args = type=n3xx
#srate = 15.36e6
rx_gain = 40

[rat.eutra]
dl_earfcn = 3350

[pcap]
enable = none
mac_filename = /tmp/ue_mac.pcap
mac_nr_filename = /tmp/ue_mac_nr.pcap
nas_filename = /tmp/ue_nas.pcap

[log]
all_level = warning
phy_lib_level = none
all_hex_limit = 32
filename = /tmp/ue.log
file_max_size = -1

[usim]
mode = soft
algo = xor
#opc = 63BFA50EE6523365FF14C1F45F88737D
k = 00112233445566778899aabbccddeeff
imsi = 001010123456789
imei = 353490069873319

[gw]
#netns =
ip_devname = tun_srsue
ip_netmask = 255.255.255.0

[gui]
enable = false

I used the following command:

  1. (on machine 1)
    ~# sudo srsepc
  2. (on machine 1)
    ~# sudo srsenb --rf.device_args=send_frame_size=1476,recv_frame_size=1476
  3. (on machine 2)
    ~# sudo srsue --rf.device_args=send_frame_size=1476,recv_frame_size=1476 --rat.eutra.dl_freq=2560e6 --rat.eutra.ul_freq=2680e6

Additional Information

[Any additional information, configuration or data that might be necessary to reproduce the issue]
enb.log
epc.log
ue.log

@andrepuschmann
Copy link
Collaborator

The N310, or the UHD drivers, are a bit picky and so there are still issues with it. We're trying to address them and also flagged them with Ettus, see (though this is with UHD 4.1):

This is a bit better on the eNB with UHD 3.15 and the N310, but the UE, as far I as I can tell also there requires special parameters to avoid retuning. Check the NSA appnote here and try the srate= param.

@fancyshirt
Copy link
Author

Thank you @andrepuschmann .
I will go through the NSA appnote you gave and see if any of those solve the issue.

@fancyshirt
Copy link
Author

@andrepuschmann I'm connecting USRP N310 to my host over a 1GigE cable. Is it required to connect them over 10GigE or 1GigE should able to work as well?

@andrepuschmann
Copy link
Collaborator

@andrepuschmann I'm connecting USRP N310 to my host over a 1GigE cable. Is it required to connect them over 10GigE or 1GigE should able to work as well?

Depends on your particular cell configuration. Check the bandwidth requirments, but for a typical 10Mhz cell in SISO the 1GigE should be enough.

@fancyshirt
Copy link
Author

@andrepuschmann I'm trying to figure everything out, so I read through the log file from enb.log. The log is shown as follow
enb.log

It keeps saying Underflow or Late. Also my terminal shows the following message:

(base) root@oai1:~# srsenb
--- Software Radio Systems LTE eNodeB ---

Reading configuration file /root/.config/srsran/enb.conf...

Built in Release mode using commit 89f16ee on branch master.

Opening 1 channels in RF device=UHD with args=type=n3xx
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
[INFO] [LOGGING] Fastpath logging disabled at runtime.
Opening USRP channels=1, args: type=n3xx,master_clock_rate=122.88e6
[INFO] [UHD RF] RF UHD Generic instance constructed
[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=192.168.12.2,type=n3xx,product=n310,serial=3205558,claimed=False,addr=192.168.12.2,master_clock_rate=122.88e6
[WARNING] [MPM.RPCServer] A timeout event occured!
[INFO] [MPM.PeriphManager] init() called with device args `master_clock_rate=122.88e6,product=n310,mgmt_addr=192.168.12.2,clock_source=internal,time_source=internal'.
[INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004)
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312)
[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000002)
[INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_2] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_3] Initializing block control (NOC ID: 0xF1F0000000000000)
Setting frequency: DL=2680.0 Mhz, UL=2560.0 MHz for cc_idx=0 nof_prb=25

==== eNodeB started ===
Type to view trace
[INFO] [UHD RF] Tx while waiting for EOB, timed out... 2.07184 >= 0. Starting new burst...
/root/srsRAN/lib/src/phy/rf/rf_uhd_imp.cc.1353: Error timed out while receiving samples from UHD.

I'm using the same configuration file as I attached in the beginning of this thread.
Does my configuration seem wrong to you?

@fancyshirt
Copy link
Author

@andrepuschmann
My eNB runs fine, but I still stuck at attaching my ue to enb. It keeps saying there is no cell in the environment.
ue.log
enb.log
epc.log
epc.conf.txt
ue.conf.txt
enb.conf.txt

Can you help me with this?

@fancyshirt
Copy link
Author

@andrepuschmann Also, while following the NSA appnote and setting srate to 11.52e6, I got the following error:

root@oai2:~/srsRAN/build/srsue/src# ./srsue
Reading configuration file /root/.config/srsran/ue.conf...

Built in Release mode using commit eccf106 on branch master.

Opening 2 channels in RF device=uhd with args=type=n3xx,sampling_rate=11.52e6,lo_freq_offset_hz=11.52e6
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
[INFO] [LOGGING] Fastpath logging disabled at runtime.
Opening USRP channels=2, args: type=n3xx,lo_freq_offset_hz=11.52e6,master_clock_rate=122.88e6
[INFO] [UHD RF] RF UHD Generic instance constructed
[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=192.168.13.2,type=n3xx,product=n310,serial=320A4E3,claimed=False,addr=192.168.13.2,master_clock_rate=122.88e6
[INFO] [MPM.PeriphManager] init() called with device args `clock_source=internal,product=n310,master_clock_rate=122.88e6,time_source=internal,mgmt_addr=192.168.13.2'.
[INFO] [0/Replay_0] Initializing block control (NOC ID: 0x4E91A00000000004)
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000011312)
[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000011312)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000002)
[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000002)
[INFO] [0/FIFO_0] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_1] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_2] Initializing block control (NOC ID: 0xF1F0000000000000)
[INFO] [0/FIFO_3] Initializing block control (NOC ID: 0xF1F0000000000000)
[WARNING] [RFNOC] The requested decimation is odd; the user should expect passband CIC rolloff.
Select an even decimation to ensure that a halfband filter is enabled.
Decimations factorable by 4 will enable 2 halfbands, those factorable by 8 will enable 3 halfbands.
decimation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [RFNOC] The requested decimation is odd; the user should expect passband CIC rolloff.
Select an even decimation to ensure that a halfband filter is enabled.
Decimations factorable by 4 will enable 2 halfbands, those factorable by 8 will enable 3 halfbands.
decimation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [RFNOC] The requested decimation is odd; the user should expect passband CIC rolloff.
Select an even decimation to ensure that a halfband filter is enabled.
Decimations factorable by 4 will enable 2 halfbands, those factorable by 8 will enable 3 halfbands.
decimation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [RFNOC] The requested decimation is odd; the user should expect passband CIC rolloff.
Select an even decimation to ensure that a halfband filter is enabled.
Decimations factorable by 4 will enable 2 halfbands, those factorable by 8 will enable 3 halfbands.
decimation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [MULTI_USRP] The hardware does not support the requested RX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [MULTI_USRP] The hardware does not support the requested RX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [MULTI_USRP] The hardware does not support the requested RX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [MULTI_USRP] The hardware does not support the requested RX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [RFNOC] The requested interpolation is odd; the user should expect passband CIC rolloff.
Select an even interpolation to ensure that a halfband filter is enabled.
interpolation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [RFNOC] The requested interpolation is odd; the user should expect passband CIC rolloff.
Select an even interpolation to ensure that a halfband filter is enabled.
interpolation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [RFNOC] The requested interpolation is odd; the user should expect passband CIC rolloff.
Select an even interpolation to ensure that a halfband filter is enabled.
interpolation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [RFNOC] The requested interpolation is odd; the user should expect passband CIC rolloff.
Select an even interpolation to ensure that a halfband filter is enabled.
interpolation = dsp_rate/samp_rate -> 11 = (122.880000 MHz)/(11.520000 MHz)

[WARNING] [MULTI_USRP] The hardware does not support the requested TX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [MULTI_USRP] The hardware does not support the requested TX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [MULTI_USRP] The hardware does not support the requested TX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[WARNING] [MULTI_USRP] The hardware does not support the requested TX sample rate:
Target sample rate: 11.520000 MSps
Actual sample rate: 11.170909 MSps

[INFO] [MULTI_USRP] 1) catch time transition at pps edge
[INFO] [MULTI_USRP] 2) set times next pps (synchronously)
Waiting PHY to initialize ... done!
Attaching UE...
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
Stopping ..
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
./root/srsRAN/lib/src/phy/ue/ue_sync.c.765: Error receiving samples
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.312: Error calling srsran_ue_sync_work()
/root/srsRAN/lib/src/phy/ue/ue_cell_search.c.272: Error searching cell
--- exiting ---

@andrepuschmann
Copy link
Collaborator

On the N310 you have to use the LTE sample rates. E.g. --exper.lte_sample_rates=true or similar.

@bondadakumarsai
Copy link

bondadakumarsai commented Nov 11, 2021

Ran the srsRAN (release_20_10) with UHD 4.1.0.4 version installed. Initially, the srsENB & srsUE were able to recognize the N310s but srsUE. couldn't attach to srsENB. The steps I followed to make it work

  1. Set CPU to Performance mode
  2. Change LTE sample rates to ON in the CMakeLists.txt file
  3. What I found in the srsUE code (main.cc) was use_standard_lte_rates was set to false permanently, cannot be configured in ue.conf file. Changed the state to true. Added lte_sample_rates=true in enb.conf file
  4. Then built the srsRAN code and ran srsEPC, srsENB & srsUE. I was able to see UE being attached to Cell and was able to ping traffic.

@andrepuschmann
Copy link
Collaborator

Thanks for the feedback.

What I found in the srsUE code (main.cc) was use_standard_lte_rates was set to false permanently, cannot be configured in ue.conf file. Changed the state to true. Added lte_sample_rates=true in enb.conf file

That is only the default. You can overwrite it with --expert.lte_sample_rates=true

Anyway, closing the issue as I think it's solved. Also no feedback from the original author.

@Aniket621
Copy link

Hii all any update regarding below error
vagrant@ubuntu-focal:/vagrant$ docker logs srsue -f
Active RF plugins: libsrsran_rf_zmq.so
Inactive RF plugins:
Couldn't open , trying /root/.config/srsran/ue.conf
Couldn't open /root/.config/srsran/ue.conf either, trying /etc/srsran/ue.conf
Reading configuration file /etc/srsran/ue.conf...

Built in Release mode using 22.04.0.

Opening 1 channels in RF device=zmq with args=tx_port=tcp://:2001,rx_port=tcp://localhost:2000,id=ue,base_srate=23.04e6
Supported RF device list: zmq file
CHx base_srate=23.04e6
CHx id=ue
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
CH0 rx_port=tcp://localhost:2000
CH0 tx_port=tcp://
:2001
Waiting PHY to initialize ... done!
Attaching UE...
Closing stdin thread.
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.
Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Found PLMN: Id=00101, TAC=7
Random Access Transmission: seq=12, tti=661, ra-rnti=0x2
Received ConnectionReject. Wait time: 10
Random Access Complete. c-rnti=0x46, ta=0
Attach failed (attempt 1/5)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.
Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Found PLMN: Id=00101, TAC=7
Random Access Transmission: seq=17, tti=5461, ra-rnti=0x2
Received ConnectionReject. Wait time: 10
Random Access Complete. c-rnti=0x47, ta=0
Attach failed (attempt 2/5)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.
Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Found PLMN: Id=00101, TAC=7
Random Access Transmission: seq=44, tti=10101, ra-rnti=0x2
Received ConnectionReject. Wait time: 10
Random Access Complete. c-rnti=0x48, ta=0
Attach failed (attempt 3/5)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.
Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Found PLMN: Id=00101, TA

@MD-star-cloud33
Copy link

Issue Description

I've 2 VM, in 1st VM Aether-in-a=Box 4G Core Running as a CNF & in 2nd VM srsRAN running with eNB & UE with ZMQ.
Changed ~/.config/srsran/enb.conf
[enb]
enb_id = 0x19B
mcc = 208
mnc = 01
mme_addr = X.X.X.X (My Node Pvt IP Address where Core component Running )
gtp_bind_addr = X.X.X.X (srsRAN VM own IP)
s1c_bind_addr = X.X.X.X (srsRAN VM own IP)
s1c_bind_port = 36412 (port for SCTP)
n_prb = 50

Changed ~/.config/srsran/ue.conf

[usim]
mode = soft
algo = milenage
opc = d4416644f6154936193433dd20a0ace0 (As per HSS)
k = 465b5ce8b199b49faa5f0a2ee238a6bc (As per HSS)
imsi = 208010167891201 (As per HSS)
imei = 353490069873319
#reader =
#pin = 1234

[nas]
apn = internet
apn_protocol = ipv4

Setup Details

[Specify details of the test setup. This would help us reproduce the problem reliably]
e.g. Network configuration, Operation System, Hardware, RF front-end, library and driver versions

Expected Behavior

[UE should be attached with eNB, as from core side IP been allocating from SPGW after

Actual Behaviour UE

ubuntu@ip-172-31-3-99:~/srsRAN_4G/build$ sudo ./srsue/src/srsue /home/ubuntu/.config/srsran/ue.conf --rf.device_name=zmq --rf.devigs="tx_port=tcp://*:2001,rx_port=tcp://localhost:2000,id=ue,base_srate=23.04e6" --gw.netns=ue1
Active RF plugins: libsrsran_rf_zmq.so
Inactive RF plugins:
Reading configuration file /home/ubuntu/.config/srsran/ue.conf...

Built in Release mode using commit 5a4eb5d on branch master.

Opening 1 channels in RF device=zmq with args=tx_port=tcp://:2001,rx_port=tcp://localhost:2000,id=ue,base_srate=23.04e6
Supported RF device list: zmq file
CHx base_srate=23.04e6
CHx id=ue
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
CH0 rx_port=tcp://localhost:2000
CH0 tx_port=tcp://
:2001
Waiting PHY to initialize ... done!
Attaching UE...
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.
Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Found PLMN: Id=20801, TAC=1
Random Access Transmission: seq=9, tti=341, ra-rnti=0x2
RRC Connected
Random Access Complete. c-rnti=0x46, ta=0
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.
Found Cell: Mode=FDD, PCI=1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Found PLMN: Id=20801, TAC=1
Attach failed (attempt 1/5)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
.

Actual Behaviour eNB

ubuntu@ip-172-31-3-99:~/srsRAN_4G/build$ sudo ./srsenb/src/srsenb /home/ubuntu/.config/srsran/enb.conf --rf.device_name=zmq --rf.d_args="failn_disconnect=true,tx_port=tcp://*:2000,rx_port=tcp://localhost:2001,id=enb,base_srate=23.04e6"
Active RF plugins: libsrsran_rf_zmq.so
Inactive RF plugins:
--- Software Radio Systems LTE eNodeB ---

Reading configuration file /home/ubuntu/.config/srsran/enb.conf...

Built in Release mode using commit 5a4eb5d on branch master.

Opening 1 channels in RF device=zmq with args=failn_disconnect=true,tx_port=tcp://:2000,rx_port=tcp://localhost:2001,id=enb,base_=23.04e6
Supported RF device list: zmq file
CHx base_srate=23.04e6
CHx id=enb
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
CH0 rx_port=tcp://localhost:2001
CH0 tx_port=tcp://
:2000

==== eNodeB started ===
Type to view trace
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Setting frequency: DL=2680.0 Mhz, UL=2560.0 MHz for cc_idx=0 nof_prb=50
t
Enter t to stop trace.
RACH: tti=341, cc=0, pci=1, preamble=9, offset=0, temp_crnti=0x46

           -----------------DL----------------|-------------------------UL-------------------------

rat pci rnti cqi ri mcs brate ok nok (%) | pusch pucch phr mcs brate ok nok (%) bsr
lte 1 46 n/a 0 6 5.8k 1 0 0% | 99.9 99.9 0 0 1.3k 1 0 0% 0.0
lte 1 46 15 0 8 4.4k 15 8 34% | 99.9 99.9 30 18 30k 7 0 0% 0.0
lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0
lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0
lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0
lte 1 46 15 0 0 0 0 0 0% | n/a 99.9 0 0 0 0 0 0% 0.0
Disconnecting rnti=0x46.

Steps to reproduce the problem

MME log-
NAS_ATTACH_REQUEST recvd ID: GUTI. mme group id = 1, MME code 26 mtmsi = 2094140477
send_identity_request_to_ue
NAS_IDENTITY_RESPONSE recvd
Executing actions for event: AIA_FROM_HSS and State
Encoding Authentication Request NAS message in mme-app
NAS_AUTH_RESP recvd len 8, auth response = 5295240759226719112
Auth response validation success. Proceeding to Sec mode Command
AUTH_RESP_SUCCESS and State: attach_wf_auth_resp_validate
NAS_SEC_MODE_COMPLETE recvd

Additional Information

[Any additional information, configuration or data that might be necessary to reproduce the issue]

@MD-star-cloud33
Copy link

image
ue.log.zip
enb.log.zip

@MD-star-cloud33
Copy link

Getting error ->
Cause #16 – MSC temporarily not reachable

  This EMM cause is sent to the UE if it requests a combined EPS attach or tracking area updating in a PLMN where the MSC is temporarily not reachable via the EPS part of the network.

Cause #17 – Network failure

  This EMM cause is sent to the UE if the MME cannot service an UE generated request because of PLMN failures.

Cause #66 – Requested APN not supported in current RAT and PLMN combination

  This ESM cause is used by the network to indicate that the procedure requested by the UE was rejected as the requested APN is not supported in the current RAT and PLMN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants