[srslte-users] ZeroMQ Application in separated Machines for eNB - UE
J Giovatto
jgiovatto at adjacentlink.com
Sat Jul 4 14:22:51 UTC 2020
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 Aponte*Electronic Engineer
> jmejiaap at everis.com
> <https://link.getmailspring.com/link/6D20651C-5C49-4916-915A-7BCF6E3C4047@getmailspring.com/0?redirect=mailto%3Ajmejiaap%40everis.com&recipient=c3JzbHRlLXVzZXJzQGxpc3RzLnNvZnR3YXJlcmFkaW9zeXN0ZW1zLmNvbQ%3D%3D>
> (+57) 320 456 3662 <tel:(+57) 320 456 3662>
> Facebook
> <https://link.getmailspring.com/link/6D20651C-5C49-4916-915A-7BCF6E3C4047@getmailspring.com/1?redirect=https%3A%2F%2Fwww.facebook.com%2Fjairo.mejia.08%2F&recipient=c3JzbHRlLXVzZXJzQGxpc3RzLnNvZnR3YXJlcmFkaW9zeXN0ZW1zLmNvbQ%3D%3D>LinkedIn
> <https://link.getmailspring.com/link/6D20651C-5C49-4916-915A-7BCF6E3C4047@getmailspring.com/2?redirect=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fjairo-mejia%2F&recipient=c3JzbHRlLXVzZXJzQGxpc3RzLnNvZnR3YXJlcmFkaW9zeXN0ZW1zLmNvbQ%3D%3D>Instagram
> <https://link.getmailspring.com/link/6D20651C-5C49-4916-915A-7BCF6E3C4047@getmailspring.com/3?redirect=https%3A%2F%2Fwww.instagram.com%2Fjairor_mejia%2F&recipient=c3JzbHRlLXVzZXJzQGxpc3RzLnNvZnR3YXJlcmFkaW9zeXN0ZW1zLmNvbQ%3D%3D>
>
> Sent from Mailspring
>
> _______________________________________________
> srslte-users mailing list
> srslte-users at lists.softwareradiosystems.com
> http://www.softwareradiosystems.com/mailman/listinfo/srslte-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200704/fbeb4292/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20200704/fbeb4292/attachment.sig>
More information about the srsran-users
mailing list