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: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows
From: Andrew Johnson via Tech-talk <tech-talk at aps.anl.gov>
To: "Kasemir, Kay" <kasemirk at ornl.gov>, EPICS Tech Talk <tech-talk at aps.anl.gov>, Ralph Lange <ralph.lange at gmx.de>
Date: Fri, 16 Sep 2022 10:28:37 -0500
On 9/16/22 7:38 AM, Kasemir, Kay via Tech-talk wrote:
If the epics clients use the broadcast address, wont that allow multiple IOCs to listen on the same host on windows?

It's the other case (unicast to a host running multiple IOCs) where we have a workaround for a Linux host and it would be interesting to have something similar for Windows hosts.
Yes, you can use broadcasts.
The options in this example include

set EPICS_CA_ADDR_LIST=ca_gateway.bessy.de 
set EPICS_CA_AUTO_ADDR_LIST=NO 
-> You get PVs from the gateway, assuming the gateway hears you because it's the only CA server on that host.

set EPICS_CA_ADDR_LIST=my_computer.bessy.de 
set EPICS_CA_AUTO_ADDR_LIST=NO 
-> You get PVs from the IOC started last, since unicasts are only received by the listener registered last (or the one first for windows hosts??).

set EPICS_CA_ADDR_LIST=broadcast_address_of_the_subnet
set EPICS_CA_AUTO_ADDR_LIST=NO 
-> All CA servers on the subnet get it, which might be both my_computer.bessy.de and ca_gateway.bessy.de. So you can't avoid the gateway. A gateway is often configured to be read-only, so depending on luck you might get a read-only PV via the gateway or a writable PV from the actual IOC. Ask me how many confused emails that has caused.

One solution to this is to run the gateway on a non-standard port like 5099, so then you can  use

set EPICS_CA_ADDR_LIST=broadcast_address_of_the_subnet
set EPICS_CA_AUTO_ADDR_LIST=NO 
-> All servers on the subnet get it, including multiple IOCs on my_computer.bessy.de, but not the gateway

set EPICS_CA_ADDR_LIST=ca_gateway.bessy.de:5099
set EPICS_CA_AUTO_ADDR_LIST=NO 
-> Only the gateway will reply

.. or you get into the IP packet rewrite tricks mentioned earlier.

Nice summary. The other solution that we haven't discussed here is that support for multicast name-searches was added to the CA libraries a couple of years back, although it might not have actually worked properly until Fermilab actually started using it. It's possible it didn't work at all before EPICS 7.0.4, I've never really tried. I don't think we have any documentation on how to configure systems to use that either — it would be really nice if someone with actual experience could contribute some (you have to pick your own multicast addresses to use, and I don't know whether network switches need to know where and how far to pass multicast packets through the site). The only documentation I know of is a couple of items in the Release Notes, the main one being here.

- Andrew
-- 
Complexity is free, it's Simplicity that takes work.

Replies:
RE: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Mark Rivers via Tech-talk
References:
EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Carsten Winkler via Tech-talk
Re: [EXTERNAL] EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Hartman, Steven via Tech-talk
Re: [EXTERNAL] EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Carsten Winkler via Tech-talk
Re: [EXTERNAL] EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Andrew Johnson via Tech-talk
RE: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Manoussakis, Adamandios via Tech-talk
Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Ralph Lange via Tech-talk
Re: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Kasemir, Kay via Tech-talk
Next: RE: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Mark Rivers 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: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Kasemir, Kay via Tech-talk
Next: RE: [EXTERNAL] Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Mark Rivers 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, 16 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·