09/06/11 CMS Trigger and Readout Upgrades: The IPbus Protocol & The IPbus Suite TIPP 2011 Robert Frazier Greg Iles, Dave Newbold, Andrew Rose Robert Frazier.

Slides:



Advertisements
Similar presentations
Current methods for negotiating firewalls for the Condor ® system Bruce Beckles (University of Cambridge Computing Service) Se-Chang Son (University of.
Advertisements

COM vs. CORBA.
TCP-IP Primer David Cozens. Targets Have a basic understanding of Ethernet network technology Be aware of how this technology is applied on the 5000 series.
Snejina Lazarova Senior QA Engineer, Team Lead CRMTeam Dimo Mitev Senior QA Engineer, Team Lead SystemIntegrationTeam Telerik QA Academy SOAP-based Web.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 3: Input/output and co-processors dr.ir. A.C. Verschueren.
9 Mar 2011CMS Calorimeter Trigger Upgrade1 Sridhara Dasu (a), Rob Frazier (b), Tom Gorski (a), Geoff Hall (c), Greg IIes (c), Pam Klabbers (a), Dave Newbold.
Technical Architectures
Notes to the presenter. I would like to thank Jim Waldo, Jon Bostrom, and Dennis Govoni. They helped me put this presentation together for the field.
BEEKeeper Remote Management and Debugging of Large FPGA Clusters Terry Filiba Navtej Sadhal.
Introducing Longhorn. What is it? Longhorn is Microsoft’s “most important software release since Windows 95” – due for release 2006 What this talk covers.
1 Network Packet Generator Characterization presentation Supervisor: Mony Orbach Presenting: Eugeney Ryzhyk, Igor Brevdo.
CS-3013 & CS-502, Summer 2006 Network Input & Output1 CS-3013 & CS-502, Summer 2006.
SM3121 Software Technology Mark Green School of Creative Media.
Lecture 7 Lecture 7: Hardware/Software Systems on the XUP Board ECE 412: Microcomputer Laboratory.
Microsoft ® Application Virtualization 4.5 Infrastructure Planning and Design Series.
System Architecture A Reconfigurable and Programmable Gigabit Network Interface Card Jeff Shafer, Hyong-Youb Kim, Paul Willmann, Dr. Scott Rixner Rice.
National Manager Database Services
File Systems (2). Readings r Silbershatz et al: 11.8.
First test results with the Gigabit Link Interface Board (GLIB) Paschalis VICHOUDIS CERN PH-ESE-BE on behalf of the GLIB team (M. Barros Marin,
Interconnection Protocol Mustafa Kara Term Work.
Students: Oleg Korenev Eugene Reznik Supervisor: Rolf Hilgendorf
SiTCP and possibility of collaboration for Accelerator Control and Data Acquisition T. Obina, KEK 16/Jun/2011 EPICS Collaboration Meeting, NSRRC, Hsinchu,
1 The SpaceWire Internet Tunnel and the Advantages It Provides For Spacecraft Integration Stuart Mills, Steve Parkes Space Technology Centre University.
Engineering & Instrumentation Department, ESDG, Rob Halsall, 24th February 2005CFI/Confidential CFI - Opto DAQ - Status 24th February 2005.
Boosting Event Building Performance Using Infiniband FDR for CMS Upgrade Andrew Forrest – CERN (PH/CMD) Technology and Instrumentation in Particle Physics.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
ETRAX CRIS architecture and Xilinx FPGA Peter Zumbruch Experiment control systems group GSI (KS/EE)
Robert Frazier, Bristol University Controlling μ TCA Hardware Robert Frazier Greg Iles, Marc Magrans, Dave Newbold, Andrew Rose, Dave Sankey, Tom Williams.
LECC2003 AmsterdamMatthias Müller A RobIn Prototype for a PCI-Bus based Atlas Readout-System B. Gorini, M. Joos, J. Petersen (CERN, Geneva) A. Kugel, R.
Developments in networked embedded system technologies and programmable logic are making it possible to develop new, highly flexible data acquisition system.
Tony McGregor RIPE NCC Visiting Researcher The University of Waikato DAR Active measurement in the large.
Inter-process communication: Socket. socket Internet socket From Wikipedia, the free encyclopedia Jump to: navigation,
Network Architecture for the LHCb DAQ Upgrade Guoming Liu CERN, Switzerland Upgrade DAQ Miniworkshop May 27, 2013.
4061 Session 25 (4/17). Today Briefly: Select and Poll Layered Protocols and the Internets Intro to Network Programming.
An Architecture and Prototype Implementation for TCP/IP Hardware Support Mirko Benz Dresden University of Technology, Germany TERENA 2001.
MicroHAL - Powered by Redwood Hardware Access Library for TCP/IP or UDP/IP Greg Iles on behalf of Andy Rose & Rob Frazier 7 March 2011.
Chapter2 Networking Fundamentals
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Connecting to the Network Introduction to Networking Concepts.
CERN Control Standards Front-End Computer Layer Stéphane Deghaye BE/CO/FE
23 May 2001LSCCW A.Manabe1 System installation & updates A.Manabe (KEK)
Lecture 4 Page 1 CS 111 Online Modularity and Virtualization CS 111 On-Line MS Program Operating Systems Peter Reiher.
DDRIII BASED GENERAL PURPOSE FIFO ON VIRTEX-6 FPGA ML605 BOARD PART B PRESENTATION STUDENTS: OLEG KORENEV EUGENE REZNIK SUPERVISOR: ROLF HILGENDORF 1 Semester:
LIGO-G9900XX-00-M LIGO II1 Why are we here and what are we trying to accomplish? The existing system of cross connects based on terminal blocks and discrete.
IPbus A method to communicate with cards over Ethernet 1.
Cluster Computers. Introduction Cluster computing –Standard PCs or workstations connected by a fast network –Good price/performance ratio –Exploit existing.
ROM. ROM functionalities. ROM boards has to provide data format conversion. – Event fragments, from the FE electronics, enter the ROM as serial data stream;
A demonstration of a Time Multiplexed Trigger for CMS Rob Frazier, Simon Fayer, Rob Frazier, Geoff Hall, Christopher Hunt, Greg Iles, Dave Newbold, Andrew.
Wrapping up subnetting, mapping IPs to physical ports BSAD 146 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
ALICE trigger control technologies run2 vs run3 layout IPbus introduction 1 Anton Jusko 27/01/20166CTP/LTU review.
UHAL API Status and Plans , CMS Electronics Week Marc Magrans de Abril Dave Newbold Rob Frazier Andrew Rose Jeremiah Mans Paolo Rumerio Christoph.
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
Monitoring Dynamic IOC Installations Using the alive Record Dohn Arms Beamline Controls & Data Acquisition Group Advanced Photon Source.
E. Hazen1 MicroTCA for HCAL and CMS Review / Status E. Hazen - Boston University for the CMS Collaboration.
E. Hazen -- HCAL Upgrade Workshop1 MicroTCA Common Platform For CMS Working Group E. Hazen - Boston University for the CMS Collaboration.
Maj Jeffrey Falkinburg Room 2E46E
Build and Test system for FairRoot
Chapter 9: Transport Layer
AMC13 Project Status E. Hazen - Boston University
Architectures of Digital Information Systems Part 1: Interrupts and DMA dr.ir. A.C. Verschueren Eindhoven University of Technology Section of Digital.
Instructor Materials Chapter 9: Transport Layer
Wireless Communication and Networks
Communication Models for Run Control with ATCA-based Systems
Erno DAVID, Tivadar KISS Wigner Research Center for Physics (HU)
MicroTCA Common Platform For CMS Working Group
Wired Networks CIT 1100 Chapter4.
Serial Data Hub (Proj Dec13-13).
Software Defined Networking (SDN)
DEBROS: A UNIX-like OS for 8-bit microcontrollers
Co-designed Virtual Machines for Reliable Computer Systems
NetFPGA - an open network development platform
Presentation transcript:

09/06/11 CMS Trigger and Readout Upgrades: The IPbus Protocol & The IPbus Suite TIPP 2011 Robert Frazier Greg Iles, Dave Newbold, Andrew Rose Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 1

09/06/11 Summary  What is the IPbus Protocol?  And what do we need from it?  Introduction to the IPbus suite  Firmware  Software: Redwood, Control Hub, PyChips  IPbus Testing  Reliability  Throughput  Scaling  What’s Next?  Conclusions Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 2

09/06/11 What is IPbus?  IPbus is a simple, IP-based control protocol  Originally created by Jeremy Mans, et al in 2009/2010  Now all s/w and f/w development is being done by a UK collaboration  University of Bristol and Imperial College London  Designed for controlling future CMS trigger and readout h/w  Control “standard” for μTCA or TCA-based hardware over Gigabit Ethernet  Protocol describes basic transactions needed to control h/w  Read/write, non-incrementing read/write, etc, etc.  UDP is the recommended transport implementation  Easiest to implement in firmware  Uses relatively few FPGA resources Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 3

09/06/11 What is IPbus? Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 4

09/06/11 What is IPbus? Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 5

09/06/11 What do we need from IPbus?  Reliability  Nothing worse than a flaky system you don’t trust  Scalability  The current L1 alone is ~4000 boards  It needs to be fast  Local DAQ? A tedious process with current VME-based systems  It needs to be usable and well documented  Drop-in firmware modules already exist  Examples for a variety of Xilinx demo-boards are available!  Two software suites (C++ or Python) already available  Both of these are already very mature  It needs to have strong future support & development  UK is committed to this project  Current team already has extensive experience in this area. Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 6

09/06/11 The IPbus Suite Overview 1  IPbus Firmware  Implemented in VHDL  Multiple implementation examples  More on this later!  Redwood (a.k.a “MicroHAL”)  C++ user-facing Hardware Access Library  Highly scalable and fast  Designed to mimic the recursive modularity of firmware blocks  Extensively documented and mature software.  Control Hub  Analogous to a VME crate controller  Necessary for large-scale systems – one control hub per many boards  Enables system scalability  Enables multiple Redwood clients to access the same boards safely Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 7

09/06/11 IPbus Suite Overview 2  PyChips  Python-based user-facing Hardware Access Library  Simple & easy interface  Great for very small or single-board projects  Cross-platform: Windows, Linux, OS X, etc  No dependencies except the Python interpreter itself Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 8

09/06/11 IPbus Firmware 1  Original firmware by Jeremy Mans, et al  Extensively re-worked by Dave Newbold and Andrew Rose  Implemented in VHDL  Includes fully working simulation test-bench  Simulation responds to IPbus transaction packets over UDP  Software tests can be run against the firmware simulation!  Ensures complete software/firmware compatibility  Working implementation examples exist for:  Xilinx SP601 (Spartan 6) demo board  Xilinx SP605 (Spartan 6) demo board  Xilinx ML605 (Virtex 6) demo board  Avnet AES-V5FXT-EV30 (Virtex 5) demo board Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 9

09/06/11 IPbus Firmware 2  Firmware overview   Well modularised  Dave Newbold can provide more details…  Can be tailored to many different solutions depending on…  Available block RAM  Performance requirements, etc  Matter of ~hours to port to new platform Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 10

09/06/11 IPbus Firmware 3  IPbus firmware resource usage:  Baseline system is the Xilinx SP601 Demo board  Costs £200/$350  One of the smallest Spartan 6 FPGAs (XC6LX16-CS324)  Uses 7% of registers, 18% of LUTs and 25% BRAM  Block RAM usage may increase slightly for v2.0 protocol  Additional features:  Firmware also includes interface to Wisconsin IPMI controller  Allow setup/spy via IPbus  Can also share Ethernet or IPbus with a soft/hard CPU core Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 11

09/06/11 Redwood/MicroHAL 1  C++ Hardware Access Library for the IPbus protocol  Designed to reflect the structure of your firmware  Firmware is intrinsically hierarchical  Redwood allows to write software to mirror this structure  Strongly promotes code reuse and modularity  Fast and scalable in conjunction with Control Hubs  Can be used in a standalone manner…  Redwood Application  Device(s)  …Or with Control Hubs  Redwood Application(s)  Control Hub(s)  Devices Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 12

09/06/11 Redwood/MicroHAL 2 Project website HepForge repository Redwood & co. The Software User Manual, Instant Start Tutorials and Developers Guide er_manual/Redwood.pdf?rev=head&format=txt Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 13 Andrew Rose

09/06/11 Control Hub 1  Largely analogous to a VME crate controller  Except can control more than a single crate if desired  In short: the crate controller is now a rack PC + software  Single point of contact with hardware  Allows multiple applications/clients to access a single board  Reliability and scalability are crucial!  Solution: Erlang  Concurrent programming language developed for the telecoms industry  Joe Armstrong, et al, at Ericsson  Designed for robustness, concurrency, scalability and reliability  Scales transparently across multiple CPU cores  Ericsson have achieved Erlang systems with percent reliability  31 milliseconds of downtime in a year! Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 14

09/06/11 Control Hub 2 Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 15

09/06/11 Scalability with Redwood and the Control Hub Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 16

09/06/11 PyChips  Simple Python API for creating IPbus applications  Use to create short control scripts…  … or something more complex!  Absolutely perfect for most single-board projects  Particularly if that single board is an inexpensive Xilinx demo board!  We already have several such projects running at Bristol  E.g. CMS Binary Chip Test Platform project.  Cross platform  Anywhere you can install a Python interpreter!  Shortcomings:  Not at all scalable  Certainly not fast for DAQ purposes (max ~1 MB second read) Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 17

09/06/11 Testing the IPbus Suite  We wanted a fully representative test system  Wanted to test many things:  Throughput  Single board throughput  Multiple board throughput  Full chain throughput: Redwood  Control Hub  Board(s)  Reliability  Find protocol problems  Find interface problems  Long soak tests  Scalability  CPU usage of Control Hub  How many boards can the Control Hub serve?  Number of possible Redwood clients, etc. Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 18

09/06/11 IPbus Test System 1 Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 19  3 user-level (Redwood) rack PCs  1 Control Hub rack PC  Connecting to H/W via two switches (using fibre)  Final fan-out to boards using Cat 5e  20 IPbus clients  Running on 6 development boards:  3 x Xilinx SP601 (Spartan 6)  2 x Xilinx SP605 (Spartan 6)  1 x Avnet AES-V5FXT-EV30 (Virtex 5)

09/06/11 IPbus Test System 2 Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 20

09/06/11 IPbus Testing – Reliability 1  Clearly UDP is not a reliable transport protocol  Current v1.2 protocol does not provide an error/retry mechanism  Version 2.0 protocol remedies this  Software/Firmware suite undergoing transition to Version 2.0  Many potential forms of error: 1.Outbound packet loss 2.Return packet loss 3.Multi-transaction packets that fail part-way through 4.Packet duplication 5.Out of order packets  Why not use a reliable transport protocol, such as TCP?  Very complex to implement at firmware level  Slow when using embedded processors with TCP stack  Not excluded by the protocol, but doesn’t solve everything Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 21

09/06/11 IPbus Testing – Reliability 2  How reliable is the IPbus v1.2 protocol currently?  I.e. without the error/retry mechanism v2.0 protocol will bring  Answer: actually pretty good  On a private network just for hardware, with…  Simple network topology  Good cables/fibre  All unnecessary network protocols switched off (spanning tree, etc)  Testing involved sending 5 billion block read requests  10 billion packets total, 53 went missing.  350 * 32-bit block read  7 Terabytes IPbus payload data received  19 IPbus clients used in test  Packet loss averages at 1 in 189 million UDP packets Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 22

09/06/11 Throughput Tests  Single-board throughput actually limited by firmware  Currently 60 Mbit/s Tx or Rx for a single board  Limitation caused by moving IPbus data around internally  5 copy stages currently  Being reduced to 3  Other performance tweaks also being done  Aim to improve to >100 Mbit/s  Multi-board throughput  600 Mbit/s receive achieved to 19 IPbus instances  Not clear why this is ~half the single-board throughput yet  Possibly to do with hosting multiple IPbus instances on single board  In summary – more than good enough for now  Plenty of low-hanging fruit for improvement. Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 23

09/06/11 Scalability Tests  Still more work to do on this…  600 Mbit/s to 19 boards uses less than 3 logical cores  Twin-socket, 2.4 GHz Nehalem server (8 physical/16 logical cores)  Lack of CPU resources not an issue currently  Doesn’t yet included data being received from Redwood clients and being repackaged + routed.  Didn’t quite finish my tests in time for this talk  Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 24

09/06/11 What’s Next?  Final release of v1.2 compatible software/firmware  All development moves to v2.0 protocol  Improve single-board throughput  Lots more testing  In particular, the as yet incomplete scalability testing.  Gain users, gain feedback! Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 25

09/06/11 Summary/Conclusions  The IPbus Protocol Suite aims to provide a standard control interface for Ethernet-attached hardware (xTCA, etc).  For small- and large-scale projects  Mature software and firmware already available  Although many improvements still to come with v2.0 protocol  Large system scalability testing still needs to be completed  Firmware queries, contact Dave Newbold:  Software queries, contact me:  Project home: Robert Frazier -- University of Bristol -- TIPP The IPbus Protocol Suite 26