EPICS Home

Experimental Physics and Industrial Control System


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

Subject: CA connect delays under Windows
From: Mark Rivers <[email protected]>
To: "'[email protected]'" <[email protected]>
Cc: "'[email protected]'" <[email protected]>
Date: Mon, 23 Jul 2001 17:02:13 -0500
Folks,

We have discovered an interesting problem which may save others some grief
to know about.

On the BioCAT sector at the APS they found that they could connect from Unix
machines to their IOCs with no problems, there is no noticeable delay on a
"caget" for example. However, Windows clients all had a 6 second delay in
each clent application whenever a connection was made to the first PV in a
given IOC.  Subsequent PVs in the same IOC connected "instantly" in the same
invocation of the same client application (e.g. "probe").  This delay was
seen on all clients on Windows 98, Windows NT and Windows 2000.  The delay
was NOT seen when connecting from these same Windows machines to IOCs on
other subnets.

We put a sniffer on the subnet and found the following:
- Windows client broadcast a CA UDP request
- IOC answered with a UDP response within 2 msec.  
- However, the Windows machine then sent a series of 3 requests to port 137,
followed by a "Bad port" reply from the IOC.  Port 137 is a netBios port.
These requests were exactly 1.50 seconds apart.  After a final 1.50 second
delay the TCP conversation took place and the CA connection completed.  This
explains the 6 second delay seen on each invocation of any CA client.

The problem turned out to be that the IOCs did not have DNS entries.  This
did not matter to the Unix clients, but it appears that if there is not a
DNS entry for an IOC then Windows attempts to communicate on port 137 (to
determine machine's identity?), and this results in 6 second delays in CA
connections.

As soon as the DNS server was updated to include entries for the IOCs the
delays disappeared and everything worked fine.

Bottom line: make sure your IOCs have DNS entries if you are going to use
Windows!

Cheers,
Mark Rivers


Navigate by Date:
Prev: [Fwd: socket errors] Geoff Savage
Next: Re: CA connect delays under Windows Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: [Fwd: socket errors] Jeff Hill
Next: Re: CA connect delays under Windows Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  <20012002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024