[srslte-users] ZeroMQ Application in separated Machines for eNB - UE

Xavier Arteaga xavier.arteaga at softwareradiosystems.com
Mon Jul 6 08:59:34 UTC 2020


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,
Many thanks for your email Joe! Very interesting tool `strace`.

@Jairo Joe is right, you only need to change the IP addresses.

On 2020-07-04 at 14:22, jgiovatto at adjacentlink.com wrote:
> Hi,
>
>
>
>
> Though I have not tried it, it looks      like the way to do it would be
change "localhost" to your machine      address(s)
>
>
>
>
> You can look at      "http://api.zeromq.org/2-1:zmq-ipc" to see how the
listen/bind and      connect endpoints are used and how they map to the
rx/tx_port      values in the config file.
>
>
>
>
>
> Then you can check the actual calls      using "strace", its a handy tool
to have in your toolbox ...
>
>
>
>
>
> strace -f -e trace=network ./srsenb      ./enb.conf.zmq 2>&1 | tee
enb.log
>
>
>
>
> strace -f -e trace=network ./srsue      ./ue.conf.zmq 2>&1 | tee ue.log
>
>
>
>
> from here you can walk thru the system      calls and return values etc.
>
>
>
>
> Here is the enb setting up the listen      socket on port 2000,
>
>
>
>
>
>
>
> [pid  5756] socket(AF_INET,      SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) =
9
>       [pid  5756] setsockopt(9, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
>       [pid  5756] bind(9, {sa_family=AF_INET, sin_port=htons(2000),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
>       [pid  5756] listen(9, 100)              = 0
>       [pid  5756] getsockname(9, {sa_family=AF_INET,
sin_port=htons(2000), sin_addr=inet_addr("127.0.0.1")},      [128->16]) = 0
>       [pid  5756] getsockname(9, {sa_family=AF_INET,
sin_port=htons(2000), sin_addr=inet_addr("127.0.0.1")},      [128->16]) = 0
>       [pid  5758] socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP)
    = 11
>       [pid  5758] connect(11, {sa_family=AF_INET, sin_port=htons(2001),
   sin_addr=inet_addr("127.0.0.1")}, 16strace: Process 5759 attached
>
>
>
> here is the ue, setting up the listen      socket and then making a
connection ...
>
>
>
>
> [pid  5771] socket(AF_INET,      SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) =
9
>       [pid  5771] setsockopt(9, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
>       [pid  5771] bind(9, {sa_family=AF_INET, sin_port=htons(2001),
sin_addr=inet_addr("127.0.0.1")}, 16) = 0
>       [pid  5771] listen(9, 100)              = 0
>       [pid  5771] getsockname(9, {sa_family=AF_INET,
sin_port=htons(2001), sin_addr=inet_addr("127.0.0.1")},      [128->16]) = 0
>       [pid  5771] getsockname(9, {sa_family=AF_INET,
sin_port=htons(2001), sin_addr=inet_addr("127.0.0.1")},      [128->16]) = 0
>       [pid  5775] accept4(9, {sa_family=AF_INET, sin_port=htons(42424),
   sin_addr=inet_addr("127.0.0.1")}, [128->16], SOCK_CLOEXEC) = 11
>       [pid  5775] setsockopt(11, SOL_TCP, TCP_NODELAY, [1], 4) = 0
>       [pid  5775] getpeername(11, {sa_family=AF_INET,
sin_port=htons(42424), sin_addr=inet_addr("127.0.0.1")},      [128->16]) =
0
>       [pid  5775] getsockname(11, {sa_family=AF_INET,
sin_port=htons(2001), sin_addr=inet_addr("127.0.0.1")},      [128->16]) = 0
>       [pid  5775] getpeername(11, {sa_family=AF_INET,
sin_port=htons(42424), sin_addr=inet_addr("127.0.0.1")},      [128->16]) =
0
>
>
>
>
>
>
> then you should see insane amounts of      data flow ..
>
>
>
>
> [pid  5758]
sendto(17,"\1\0\2\0\0\0\0\0\2\320\0\253\265\304=\344\365\17<\253\265\304=\344\365\17<\253\265\304=\344"...,
8192, 0, NULL, 0) = 8192
>       [pid  5758] recvfrom(16,
"\1\0\2\0\0\0\0\0\16\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
  8192, 0, NULL, NULL) = 8192
>       [pid  5758]
sendto(17,"\211\221=\317#\231=|\211\221=\2745\243\274\247\3313=\2745\243\274\247\3313=\2745\243\274\247"...,
176139, 0, NULL, 0) = 176139
>       [pid  5758] recvfrom(16,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
913419, 0, NULL, NULL) = 720313
>       [pid  5758] recvfrom(16,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
193106, 0, NULL, NULL) = 193106
>       [pid  5758] recvfrom(17, "\1\0\0\1\377", 8192, 0, NULL, NULL) = 5
>       [pid  5758] sendto(16, "\1\0\0\1\377", 5, 0, NULL, 0) = 5
>
>
>
>
>
>
> Joe
>
>
>
>
>
>
>
> On 7/2/20 9:58 PM, Jairo Rodrigo Mejia      Aponte wrote:
>
>
>
> Hi Community,
>
>
> I don't have any RF Equipment, therefore I want to use the        ZeroMQ
Application which fines really well in a single machine        for eNB and
the UE. However, I want to try to separate both        things because I
want to implement a more complicated machine        for the UE Equipment
but I don't have any information for this        possibility.
>
>
> I think that I have to change the arguments of tx_port        and rx_port
of the device in the        configuration but I don't know how to do it
correctly. Maybe I        am doing something wrong if someone could help
me, I really        appreciate. Both machines are connected via ethernet
with a        interface who has a /24 Mask.
>
>
> Thanks for your time,
>
>
>
>
>

> Jairo Rodrigo Mejia AponteElectronic                        Engineer
>
>
>
> jmejiaap at everis.com
>
> (+57) 320 456 3662
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________srslte-users mailing
listsrslte-users at lists.softwareradiosystems.comhttp://www.softwareradiosystems.com/mailman/listinfo/srslte-users
-----BEGIN PGP SIGNATURE-----
Version: FlowCrypt 7.7.9 Gmail Encryption
Comment: Seamlessly send and receive encrypted email

wsFcBAEBCAAGBQJfAuf2AAoJENjQzCZ+msMfElcQAKlwu9kDUoMRcZe+SqDj
4hvC2xHZBL6HGlj5x4a4bFa9ZVA6AmrmEiiJ4Oq8EzUuHpJvAOEzq1hcZXZ6
gnbIkfjve7KQVgYSP36biIKw56ZvaB6c2kUM7PJhbLmfmlbSXYUYe20QtAGs
ZPEwyVW1e0adY3Z/CFYZoS/1URL3AmjgkeNGC7COaxzSc2q3Lldn/JMx0AbC
wuJ68QZCWwWzSRjYPlZVr19ZwrY493ZpbvNm4vJN++pyym9pIiNILEyuGsL2
uVMltx8JYYPTC806GpS/oZ0qoKxoUZGIqyjx0jV+Z9ODpyXAw6TP7pf01TjV
0obuvY1z24vsVenvHYzOUfzlNI0V+emL7ObmDtisFEcBR0Wa5jbVuI5P7ggN
8gXNml/aXi294cBgsu+XMgq8WtZK7H9Q7MSjEoAJxNeuUK34EEsKIMO0Nl7s
ZOHQcG9nWxT9kHTmO22PI3NME8gbv7TnVj+G/eA0Mz18RxPAucV8qRQUHy8K
uOjfdXxj7+jdjYNzyQhI91bfHk66HrwKsQycEFAPUcaeKARyS721SS0G+Y3j
zfx7FGqMnXB1k1fMCERUaJwWhe4Foy2ujnMeIN2cEJMLN+dYu2G22UvXsjZZ
/rLcm2/wd5MkKQ5AIZN4ZQ905IPwe08BM3tSAvGYrC9I/vE55nCb+8VAoqnr
WeTZ
=cb8u
-----END PGP SIGNATURE-----



More information about the srsran-users mailing list