2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Fwd: Wrong beacon source IP address |
From: | Ralph Lange <[email protected]> |
To: | EPICS Core-Talk <[email protected]> |
Date: | Fri, 18 Dec 2015 11:16:56 +0100 |
Update: Here's what I think describes the situation. -----snip----- While this indeed looks strange, I do not think it is relevant. Looking at the code in udpiiu.cpp, in the function udpiiu::beaconAction() that is called for an incoming beacon message ina.sin_addr.s_addr = htonl ( msg.m_available ); if ( msg.m_count != 0 ) { ina.sin_port = htons ( msg.m_count ); } the sender address of the UDP package is being overwritten with the address and the port number that is in the content of the beacon message. Background: CA has to make sure that beacons are counted properly. As any detected irregularity of beacons would cause the unresolved names to be broadcast again, measures have to be taken to avoid false positives. If a client is connected to a server via multiple networks, the "same" beacon ping will be received multiple times. The client has to make sure that these beacons are recognized as originating from the same IOC, and that they are in fact only one beacon ping, not multiple pings in a short time. Both are achieved by putting the complete CA address (IP address and CA data port number) as well as a beacon counter into the contents of the beacon message. The complete address is used to correctly identify the IOC, and the counter is used to suppress "echos" of the same beacon ping. -----snip----- On 18/12/2015 09:13, Ralph Lange wrote:
Dear colleagues, |