Improving the Accuracy of Software-based Clock Synchronization and Encountering Interrupt Coalescence

Similar documents
Precision Time Protocol (PTP/IEEE-1588)

The Role of Precise Timing in High-Speed, Low-Latency Trading

Precision Time Protocol on Linux ~ Introduction to linuxptp

Performance Measurement of Wireless LAN Using Open Source

Synchronizace a stabilita. Měření SyncE a 1588v2 PTP s přístroji VeEX nové vlastnosti

Precision Clock Synchronization

Application Note. EtherCAT Master Architecture. Applicable Products: Yaskawa Servodrives with CANopen over EtherCAT

Analysis of Open Source Drivers for IEEE WLANs

MultiNet: Connecting to Multiple IEEE Networks Using a Single Wireless Card

The new frontier of the DATA acquisition using 1 and 10 Gb/s Ethernet links. Filippo Costa on behalf of the ALICE DAQ group

Collecting Packet Traces at High Speed

How To Monitor And Test An Ethernet Network On A Computer Or Network Card

RF Monitor and its Uses

How To Analyze The Security On An Ipa Wireless Sensor Network

High-Density Network Flow Monitoring

Redes de Comunicação em Ambientes Industriais Aula 7

Networking Virtualization Using FPGAs

Gigabit Ethernet Packet Capture. User s Guide

How to design and implement firmware for embedded systems

ROGUE ACCESS POINT DETECTION USING TIME STAMP Sushama Shirke, S. B. Vanjale B.V.D.U, Pune

EtherCAT Cutting Costs with High-speed Ethernet

Wave Relay System and General Project Details

TCP/IP Jumbo Frames Network Performance Evaluation on A Testbed Infrastructure

Avoiding pitfalls in PROFINET RT and IRT Node Implementation

Performance Analysis of Time-Triggered Ether-Networks Using Off-The-Shelf-Components

TI GPS PPS Timing Application Note

Configuring Your Computer and Network Adapters for Best Performance

Laptop 2.0. Timo Hönig, Holger Macht, Helmut Schaa. 31. May Laptop 2.0

PRESTA 10G Platform for High-accuracy 10-Gb/s Network Monitoring

AGIPD Interface Electronic Prototyping

MEASURING WIRELESS NETWORK CONNECTION QUALITY

PCI Express High Speed Networks. Complete Solution for High Speed Networking

Synchronization and precise timing in packet networks

From Fieldbus to toreal Time Ethernet

Figure 1.Block diagram of inventory management system using Proximity sensors.

Wire-speed Packet Capture and Transmission

Embedded Ethernet Interface Using Arm Processor

CT LANforge WiFIRE Chromebook a/b/g/n WiFi Traffic Generator with 128 Virtual STA Interfaces

Securing GNSS with PTP & SyncE Adam Wertheimer Microsemi Adam.Wertheimer@microsemi.com. Power Matters

Analysis of Industrial PROFINET in the Task of Controlling a Dynamic System**

Performance Evaluation of Linux Bridge

Introduction to SFC91xx ASIC Family

AW-NE785. IEEE b/g/n PCIE Mini-Card Wireless Module. Datasheet. Version draft 0.9. PID,VID, SVID, SSID, Antonio. FW version.

WaveInsite Mobile WLAN Client Interoperability and Performance Testing

Versions. Q.station Q.station T. Q.station D. Q.station DT x x

Wide Area Monitoring, Control, and Protection

PE310G4BPi40-T Quad port Copper 10 Gigabit Ethernet PCI Express Bypass Server Intel based

C-GEP 100 Monitoring application user manual

I/O. Input/Output. Types of devices. Interface. Computer hardware

Datacenter Operating Systems

Sockets vs. RDMA Interface over 10-Gigabit Networks: An In-depth Analysis of the Memory Traffic Bottleneck

Clock Synchronization: Overview and Outlook

Clocks/timers, Time, and GPS

estadium Project Lab 8: Wireless Mesh Network Setup with DD WRT

HANIC 100G: Hardware accelerator for 100 Gbps network traffic monitoring

Implementation and Performance Evaluation of M-VIA on AceNIC Gigabit Ethernet Card

PeerBooster: Enhancing Throughput in Wi-Fi Networks Through Network Virtualization

ptp++: A Precision Time Protocol Simulation Model for OMNeT++ / INET

Multicast (Group) Addresses for Layer 2 (Ethernet) Transport of IEEE 1588 PTP Messages, with Application to AVB

Network Performance Evaluation of Latest Windows Operating Systems

Software Stacks for Mixed-critical Applications: Consolidating IEEE AVB and Time-triggered Ethernet in Next-generation Automotive Electronics

D1.2 Network Load Balancing

Chapter 7 Low-Speed Wireless Local Area Networks

Introduction to MPIO, MCS, Trunking, and LACP

Distributed Monitoring Pervasive Visibility & Monitoring, Selective Drill-Down

Performance of Software Switching

AN NTP STRATUM-ONE SERVER FARM FED BY IEEE-1588

DE4 NetFPGA Packet Generator Design User Guide

54M/150M/300Mbps USB WIRELESS ADAPTER. User s Manual Version 2.0

Mediatrix Gateways and ISDN Clock Synchronization June 22, 2011

Design Issues in a Bare PC Web Server

SYNCHRONIZATION IN PACKET NETWORKS: TIMING METRICS AND MONITORING

Network Performance Optimisation and Load Balancing. Wulf Thannhaeuser

Analysis of QoS parameters of VOIP calls over Wireless Local Area Networks

Wireless g CF Card User Manual

Output Power (without antenna) 5GHz 2.4GHz

Enabling Open-Source High Speed Network Monitoring on NetFPGA

PCI Express High Speed Networking. A complete solution for demanding Network Applications

Welcome. People Power Partnership PROFIdag 2013 Peter Van Passen Sales & Business Development Manager HARTING Electric 1/44

A Scalable Large Format Display Based on Zero Client Processor

An Embedded Based Web Server Using ARM 9 with SMS Alert System

Infrastructure for active and passive measurements at 10Gbps and beyond

Broadcom NetXtreme Gigabit Ethernet Adapters IBM Redbooks Product Guide

PHYSICAL LAYER ETHERNET CLOCK SYNCHRONIZATION

Automotive Ethernet Compliance Testing

Access Point Configuration

WiLink 8 Solutions. Coexistence Solution Highlights. Oct 2013

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

Ten top problems network techs encounter

UAVNet: Prototype of a Highly Adaptive and Mobile Wireless Mesh Network using Unmanned Aerial Vehicles (UAVs) Simon Morgenthaler University of Bern

Implementation of Wireless Gateway for Smart Home

802.11n a/b/g wifi 3x3 mini-pci module, MB82/AR9160+AR9106. Model: DNMA-83

54M/150M/300Mbps USB WIRELESS ADAPTER. User s Manual Version 1.8

Agenda. Context. System Power Management Issues. Power Capping Overview. Power capping participants. Recommendations

The Bus (PCI and PCI-Express)

A Calibration Methodology for Networked Cybersecurity Testbed Environments

A Low Latency Library in FPGA Hardware for High Frequency Trading (HFT)

Effects of Interrupt Coalescence on Network Measurements

short introduction to linux high availability description of problem and solution possibilities linux tools

Wireshark in a Multi-Core Environment Using Hardware Acceleration Presenter: Pete Sanders, Napatech Inc. Sharkfest 2009 Stanford University

Transcription:

Improving the Accuracy of Software-based Clock Synchronization and Encountering Interrupt Coalescence Danube University Krems. The University for Continuing Education. by Aneeq Mahmood Authors: Aneeq Mahmood, Thilo Sauter 1

Outline Motivation and introduction to problem Setup of the proposed solution Experimental validation Impact of interrupt coalescence Concluding remarks 2

Motivation Improving the timing accuracy and precision - Stable oscillators and timers - Timestamping techniques - Control techniques Software timestamping based networks - Accuracy limited to microsecond range - Transition to hardware timestamping - No proper guidelines to implement accurate timestamping Goal: Interrupt-driven sofwtare timestamping for synchronization - A setup including an external timestamper - Setup can also be used for calibrating system delays - Improved precision by providing pseudo-hardware timestamping 3

Proposed Setup 4

Modeling of error sources-software timestamping Measurement-based approach to model error from software timestamps www.donau-uni.ac.at PCIe card Timestamping the hardware interrupt itself CPU Timestamping error=t b -t a North / South bridge PCI bus WLAN card PCIe link XO t b Counter t a PCI interrupt line PCIe card 5

Modeling of error sources-software timestamping (2) Measurement of timestamping error - 2.4 GHz Axiomtek industrial PC - Atheros WLM54G chipsets - Syn1588 PCIe card from Oregano Systems as clock source 450 700 400 600 350 300 500 Frequency 250 200 Frequency 400 300 150 200 100 50 100 0 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 0 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 SW delays for the transmission side (us) SW delay for reception (us) 6

Measurement setup for PTP synchronization A wireless setup is created to avoid impact of line delays - Atheros chipset - Ath5k driver for Linux Trial run carried out using a sync1588 PCIe NIC from Oregano Built-in HW timestamper inside with timestamp jitter = 12 ns 1 PPS signal to determine synchronization performance 7

HARDWARE KERNEL SPACE Sync Packet Sync Packet USER SPACE Measurement setup for PTP synchronization(2) www.donau-uni.ac.at AP PTP St ack Timestamp Collector PTP Stack Clock Servo Node Timestamps UDP/ IP UDP/ IP Timestamps Clock Update PCIe NIC Driver WLAN Driver WLAN Driver PCIe NIC Driver Hardware Clock MAC (Firmware) MAC (Firmware) Hardware Clock 1 PPS Interrupt PHY PHY Interrupt 1 PPS Oscilloscope 8

1 PPS comparison 100 90 80 70 60 Mean 7 ns Frequency 50 40 σ 78 ns 30 20 10 0-300 -200-100 0 100 200 300 Clock o, set (ns) 9

1 PPS comparison (2) Clock o, set (7s) 2.5 2 1.5 1 0.5 0 Software Only Current Approach Mean 400 ns 7 ns σ 910 ns 78 ns -0.5-1 -1.5 Software only Cur rent approach 10

1 PPS comparison (3) Clock o, set (ns) 200 150 100 50 0-50 -100 Current Approach HW Solution Mean 7 ns 8.3 ns σ 78 ns 15 ns -150-200 Current approach With Hardware support 11

Limitations of the solution Role of the timestamping platform - Low cost - Low energy consumption Matching timestamp to the interrupt signal - maximum number of interrupts (which can be handled by the CPU) per second) > maximum packet arrival or departure rate - For 2 Ghz industrial computers, interrupt handling delay are 4µs and 7µs - System capable of dealing with 100BASE-TX Ethernet or IEEE802.11n Dead end for high speed networks - Not feasible for 1000BASE-X Ethernet or optical network - Interrupt coalescence (IC) limits the number of interrupts after packet arrivals or departures to reduce the CPU load 12

Dealing with IC IC helps CPUs but affects one-way delay measurements Information about IC from vendors - Maximum interrupt rate - Maximum buffered packets before raising interrupt - Time between receiving a packet and subsequent raise of the interrupt (rx-usecs) Differences at master and slave side - Using ethtool at the slave side, rx-usecs = 0 - Master side unknown Adding information in the Announce messages 13

One-way delay estimate 150 rx-usecs = 0 rx-usecs = 50 rx-usecs = 100 100 Frequency 50 0 80 90 100 110 120 130 140 150 160 170 180 190 One way delay estimate (7s) 14

Concluding remarks A solution proposed to improve the performance for systems using software timestamping Design can also be used to calibrate interrupt handling delays of the systems Accuracy similar to hardware timestamping based solutions Precision depends upon delay between the I/O interface and CPU Biggest limitation is high speed networks and IC Adding information in the PTP meesages can help dealing with IC related uncertainities 15

Danube University Krems. The University for Continuing Education. Thank You Zentrum für Integrierte Sensorsysteme Donau-Universität Krems www.donau-uni.ac.at/ziss Aneeq.mahmood@donau-uni.ac.at