[srsran-users] srsran-users Digest, Vol 82, Issue 19
Dan Dole-Muinos
daniel.dolemuinos at bst.aero
Fri Dec 31 21:05:03 UTC 2021
Hey Joe,
Thanks for your response!
I could have been clearer on this, but I'm aware which ports are
conflicting--the ZMQ instances in GR bind to the ports 2001 (UE TX), 2000
(UE RX), 2101 (eNB TX) and 2100 (eNB RX), and when I run the commands to
start the UE and eNB (as written in the guide), we specify those same ports
as well.
Following the instructions in the guide seems to lead me astray, so now I'm
digging deeper into how ZMQ functions and trying to understand how I can
pass samples through GR using srsRAN + ZMQ, though if anyone can offer any
additional insight on why ZMQ isn't cooperating with srsRAN please let me
know!
My next steps are a full reinstall of srsRAN and all ZMQ-related libraries,
after that my path gets a little less clear.
Best,
Dan
On Fri, Dec 31, 2021 at 10:19 AM <srsran-users-request at lists.srsran.com>
wrote:
> Send srsran-users mailing list submissions to
> srsran-users at lists.srsran.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.srsran.com/mailman/listinfo/srsran-users
> or, via email, send a message with subject or body 'help' to
> srsran-users-request at lists.srsran.com
>
> You can reach the person managing the list at
> srsran-users-owner at lists.srsran.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of srsran-users digest..."
>
>
> Today's Topics:
>
> 1. ZMQ Address Already in Use Error (Dan Dole-Muinos)
> 2. Re: ZMQ Address Already in Use Error (J Giovatto)
> 3. Re: ZMQ Address Already in Use Error (J Giovatto)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 30 Dec 2021 20:05:45 -0700
> From: Dan Dole-Muinos <daniel.dolemuinos at bst.aero>
> To: srsran-users at lists.srsran.com
> Subject: [srsran-users] ZMQ Address Already in Use Error
> Message-ID:
> <CAPJ_CF0O=
> J+XoMzzuxHOe-kC18Lr-mQNfS8pw-KdMjMDBxM-hg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://lists.srsran.com/pipermail/srsran-users/attachments/20211230/31f397dc/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 31 Dec 2021 10:40:54 -0500
> From: J Giovatto <jgiovatto at adjacentlink.com>
> To: srsran-users at lists.srsran.com
> Subject: Re: [srsran-users] ZMQ Address Already in Use Error
> Message-ID: <73a41a63-8ea5-ec67-fbac-c2f523be7950 at adjacentlink.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hi
>
> you can try to run the application that is failing with:
>
> strace -f -e trace=network your_application
>
> and look for the system error in the output.
>
> then as root/sudo run:
>
> "netstat -tupan" and look for the application that is using the
> conflicting ip:port pair.
>
>
> Joe
>
>
> 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/26c49b93/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/26c49b93/attachment-0001.sig
> >
>
> ------------------------------
>
> Message: 3
> Date: Fri, 31 Dec 2021 12:18:53 -0500
> From: J Giovatto <jgiovatto at adjacentlink.com>
> To: srsran-users at lists.srsran.com
> Subject: Re: [srsran-users] ZMQ Address Already in Use Error
> Message-ID: <8ece1d5d-3457-d2a6-4c91-f17a5cb17377 at adjacentlink.com>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> 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.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.sig
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> srsran-users mailing list
> srsran-users at lists.srsran.com
> https://lists.srsran.com/mailman/listinfo/srsran-users
>
>
> ------------------------------
>
> End of srsran-users Digest, Vol 82, Issue 19
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20211231/5d4481b4/attachment-0001.htm>
More information about the srsran-users
mailing list