[srsran-users] ZMQ Address Already in Use Error
J Giovatto
jgiovatto at adjacentlink.com
Fri Dec 31 17:18:53 UTC 2021
Hi again,
Here is an example when starting the enb first and no ue or epc started yet.
You can see here that the enb binds to port 2000 and tries to connect to
the ue on port 2001 and the epc on port 36412
My guess is that you have a conflict with ports 200X.
Also using 127.0.0.1 is always preferred to using localhost since the
later depends on your /etc/hosts and possibly resolve.conf.
Joe
$ strace -f -e trace=network ./srsenb ./enb.conf.zmq
Reading configuration file ./enb.conf.zmq...
--- Software Radio Systems LTE eNodeB ---
Reading configuration file ./enb.conf.zmq...
strace: Process 1029173 attached
Failed to `mlockall`: {}
Built in Release mode using commit e335bb968 on branch faux_rf.
strace: Process 1029174 attached
strace: Process 1029175 attached
strace: Process 1029176 attached
[pid 1029172] socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP) = 6
[pid 1029172] setsockopt(6, SOL_SCTP, SCTP_EVENTS,
"\1\0\1\0\0\1\0\0\0\0\0\0\0\0", 14) = 0
[pid 1029172] getsockopt(6, SOL_SCTP, SCTP_RTOINFO,
"\0\0\0\0\270\v\0\0`\352\0\0\350\3\0\0", [16]) = 0
[pid 1029172] setsockopt(6, SOL_SCTP, SCTP_RTOINFO,
"\0\0\0\0\270\v\0\0p\27\0\0\350\3\0\0", 16) = 0
[pid 1029172] getsockopt(6, SOL_SCTP, SCTP_INITMSG,
"\n\0\377\377\10\0`\352", [8]) = 0
[pid 1029172] setsockopt(6, SOL_SCTP, SCTP_INITMSG,
"\n\0\377\377\3\0\210\23", 8) = 0
[pid 1029172] bind(6, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("127.0.1.1")}, 16) = 0
[pid 1029172] connect(6, {sa_family=AF_INET, sin_port=htons(36412),
sin_addr=inet_addr("127.0.1.100")}, 16) = -1 ECONNREFUSED (Connection
refused)
connect(): Connection refused This is the enb attempting to connect ot
the epc
Failed to initiate S1 connection. Attempting reconnection in 10 seconds
[pid 1029172] socket(AF_INET, SOCK_DGRAM, IPPROTO_IP) = 6
[pid 1029172] setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 1029172] setsockopt(6, SOL_SOCKET, SO_REUSEPORT, [1], 4) = 0
[pid 1029172] bind(6, {sa_family=AF_INET, sin_port=htons(2152),
sin_addr=inet_addr("127.0.1.1")}, 16) = 0
strace: Process 1029177 attached
Opening 1 channels in RF device=zmq with
args=id=enb,tx_port0=tcp://*:2000,rx_port0=tcp://localhost:2001
Available RF device list: zmq shmem
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
strace: Process 1029178 attached
strace: Process 1029179 attached
[pid 1029172] socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 13
[pid 1029172] setsockopt(13, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
[pid 1029172] bind(13, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
[pid 1029172] listen(13, 100) = 0
[pid 1029172] getsockname(13, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("0.0.0.0")}, [128 => 16]) = 0
[pid 1029172] getsockname(13, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("0.0.0.0")}, [128 => 16]) = 0
[pid 1029179] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0)
= 15
[pid 1029179] connect(15, {sa_family=AF_UNIX,
sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or
directory)
[pid 1029179] socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0)
= 15
[pid 1029179] connect(15, {sa_family=AF_UNIX,
sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or
directory)
[pid 1029179] socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 15
[pid 1029179] connect(15, {sa_family=AF_INET, sin_port=htons(2001),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in
progress)
strace: Process 1029180 attached
[pid 1029179] getsockopt(15, SOL_SOCKET, SO_ERROR, [ECONNREFUSED], [4]) = 0
[pid 1029179] socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 15
[pid 1029179] connect(15, {sa_family=AF_INET, sin_port=htons(2001),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in
progress)
[pid 1029179] getsockopt(15, SOL_SOCKET, SO_ERROR, [ECONNREFUSED], [4]) = 0
[pid 1029179] socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 15
[pid 1029179] connect(15, {sa_family=AF_INET, sin_port=htons(2001),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EINPROGRESS (Operation now in
progress)
On 12/30/21 22:05, Dan Dole-Muinos wrote:
>
> Hello,
>
> I have been following this
> <https://docs.srsran.com/en/latest/app_notes/source/zeromq/source/index.html> guide,
> attempting to get ZMQ virtual radios working within GNU Radio (as is
> described in the last section on that guide).
>
> It seems as though when I specify the ports used for the UE and eNB in
> the ZMQ sources/sinks in GR, I get an "address already used" error
> message. If I try running the flowchart first, I see the same message
> in the console output of the UE and eNB. I have ensured ZMQ is indeed
> installed and seen by the srsRAN cmake file, and have reinstalled both
> and tried the ZMQ on GR steps after a reboot. What am I missing?
>
> GR ZMQ also throws a "no such device" error when setting the address
> as localhost, instead, I needed to use 127.0.0.1 as the IP in order to
> progress. I am using GR 3.8.3.1, and the latest srsRAN version 21.10.0.
>
> Thanks,
> Dan
>
>
> _______________________________________________
> srsran-users mailing list
> srsran-users at lists.srsran.com
> https://lists.srsran.com/mailman/listinfo/srsran-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20211231/4ce36dc6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20211231/4ce36dc6/attachment-0001.sig>
More information about the srsran-users
mailing list