Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch.

Similar presentations


Presentation on theme: "Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch."— Presentation transcript:

1 Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch May, 2013

2 EPICS Gateway redux Content -Basic introduction to the CA protocol through (our) gateway -Why a rewrite -Concept -Configuration -Current status -Roadmap -Live demo / Conclusion

3 Base introduction CA Protocol EPICS Gateway redux How it works with the new gateway In green => Usually UDP broadcast messages In black => TCP messages (using a single TCP connection per IOC)

4 Why a rewrite EPICS Gateway redux Current official CA Gateway: Written in C++ using CAS and the usual CA library (features limited by the underlining CAS and CA library) - Hard to debug - No real maintainer (bug report may or may not be fixed) - Waits for a complete CA message to be sent before starting to passing it - Requires more memory as each channel need to allocate the max possible memory pro channel (an issue while dealing large arrays) - Severe performance problem (down to frozen channels) when dealing with arrays. - Currently not stable with known and reported bugs - Usually requires 2 process (imp / exp) pro network

5 Concept of the new gateway EPICS Gateway redux What we need: - More stability. - A code easier to debug. - A lower latency while transferring large arrays. - A single process for the imp / exp (re-use same ports, simpler config). Our solution: - A “pass through” (as defined by Cosylab) design which doesn’t wait a full message before handling it. Act like a firewall more than a proxy. - A cleaner code (which doesn’t use 3rd parties libraries) - More debug information (activity logs) -.NET 4 / C# implementation

6 Configuration EPICS Gateway redux Currently: configured via special files, each gateway have its own set (up to 4 files) stored in CVS and then copied locally. New gateway: Configuration handled by our inventory database XML file locally stored (for security in case of DB issues or manual configuration) Generates an XML file. (gateway is not dependent of the inventory)

7 Current status EPICS Gateway redux - All CA messages implemented (search, get, put, monitor, …) - Optional log on console, file, XML (with different levels of debug info) - Fully implemented as standalone and service - Integrated with our inventory database (the database generates the config). - 1 in production, a couple of gateways in test -Tested and running stable with standard EPICS tools, MEDM, QTDisplays, Archiver, capv-view (Java), setpoint.tcl (TCL/TK)

8 Roadmap EPICS Gateway redux Slowly replace old gateways with the new one, while keeping the old VM for quick failover in case of issues. Planned full replacement: End 2014

9 Conclusion EPICS Gateway redux - The gateway concept works, and works well. - React differently than the old gateway, as there is no caching, and whatever the IOC sends the clients will get it.


Download ppt "Wir schaffen Wissen – heute für morgen Gateway (Redux) PSI - GFA Controls IT Alain Bertrand Renata Krempaska, Hubert Lutz, Matteo Provenzano, Dirk Zimoch."

Similar presentations


Ads by Google