EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address
From: William Kirstaedter via Tech-talk <tech-talk at aps.anl.gov>
To: Heinz Junkes <junkes at fhi-berlin.mpg.de>, Han Lee <jeonglee at lbl.gov>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 25 Apr 2022 15:56:47 +0200

TL;DR: it now works with Heinz' suggestion:

longer explanation:

we have multiple small labs with own, dedicated networks, that NAT outgoing traffic.
but, all of them utilize the same private network: 10.0.0.0/23, since I set them up via script.

so routing is not an option.

next idea was to translate the recceivers broadcast signal into the private lab network, via iptables, kind of a reverse NAT if you will.

but as it turned out, iptables doesnt handle broadcast packets so I switched to socat which does.

since the reccasters in the IOCs only respond to the address in the 16byte message, the response never got through...

but now, with the correct and dedicated IP of the channelfinder server in it, it works perfectly. :)

by the way: FF FF FF FF as an IP address doesnt make sense to me anyways.
in my eyes, the reccaster should either broadcast its first IP address or a configured one?

 - William

William Kirstaedter (PP&B) Fritz-Haber-Institut der MPG
Faradayweg 4-6 14195 Berlin
Tel: 030 8413 5405 Mail: kirstaedter at fhi-berlin.mpg.de
Am 25.04.2022 um 13:01 schrieb Heinz Junkes via Tech-talk:
Hallo Han,
thanks for the hint. But this only works if the computer system also has a “leg” (network connection)  into the respective networks?

We also have something like this for the FEL network, for example. But otherwise there are always gateway computers between the individual experiment networks und the main-net.
However, since we are routing out of the experiment machines into our main-net, I'll try my hand at modifying announce.py.

tcpaddr='\xff\xff\xff\xff’ -> tcpaddr='\x8d\x0e\x8c\x62’  (141.14.140.98)

Heinz


On 24. Apr 2022, at 02:43, Han Lee <jeonglee at lbl.gov> wrote:

Hi Heinz,

Could you try to add your IOC address subnets into the recceiver server configuration as addr_list? 

https://github.com/jeonghanlee/RecSync-env/blob/7b9fbc794ec8e4ae36349593780f9dcd00d142a0/site-template/recsync.conf.in#L16

Multiple IOCs just see the resync server (Not CF - elasticsearch - server) without issues. 

For example, you can add each subnet where your IOCs are running, such as

10.10.11.255:5049, 10.10.48.255:5049, ..................................

I hope this is what you are looking for. Or I completely misunderstand your description.

Best,
Han


On Fri, Apr 22, 2022 at 11:52 AM Heinz Junkes via Tech-talk <tech-talk at aps.anl.gov> wrote:
Hi,

we need to route the announcements from our central Channelfinder server to a subnet so that the
recasters on the IOCs in the subnet can send their PV information to the server.

Unfortunately, the announcement package does not contain the IP of the server but FF:FF:FF:FF.

root@priscilla:~# socat -ls -u -v -x UDP4-RECVFROM:5049,broadcast,fork,bind=141.14.143.255 UDP4-SENDTO:10.0.1.255:5049,broadcast
2022/04/22 17:22:18.879313  length=16 from=0 to=15
52 43 00 00 ff ff ff ff 84 81 00 00 61 bf c1 23  RC..........a..#

Gruss Heinz




-- 
Jeong Han Lee, Dr.rer.nat
Staff Scientist and Engineer
Lawrence Berkeley National Laboratory
1 Cyclotron Road Mailstop 46R0161
Berkeley, CA 94720, United States
Tel :+1-510-486-6163
Cell:+1-510-384-3868

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Replies:
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Michael Davidsaver via Tech-talk
References:
Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Han Lee via Tech-talk
Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk

Navigate by Date:
Prev: Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
Next: Re: pyDevSup and PyDevice: Virtual Environment Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Heinz Junkes via Tech-talk
Next: Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·