CS 856 Latency in Communication Systems

Similar documents
15: OS Scheduling and Buffering

Module objectives. Integrated services. Support for real-time applications. Real-time flows and the current Internet protocols

Multimedia Systems 2011/2012

Cell Switching (ATM) Commonly transmitted over SONET other physical layers possible. Variable vs Fixed-Length Packets

Chapter 13 TRANSPORT. Mobile Computing Winter 2005 / Overview. TCP Overview. TCP slow-start. Motivation Simple analysis Various TCP mechanisms

CSE398: Network Systems Design

EECS 122: Introduction to Computer Networks Switch and Router Architectures. Today s Lecture

Chapter 4 Communication

Master Course Computer Networks IN2097

EC EMBEDDED AND REAL TIME SYSTEMS

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

Introduction to Network Technologies & Layered Architecture BUPT/QMUL

Multimedia. Sape J. Mullender. Huygens Systems Research Laboratory Universiteit Twente Enschede

6.9. Communicating to the Outside World: Cluster Networking

Applied Networks & Security

CS 428/528 Computer Networks Lecture 01. Yan Wang

Introduction to Ethernet Latency

Networks and distributed computing

CSE 473 Introduction to Computer Networks. Final Exam. Your name here: 12/17/2012

Mobile Communications Chapter 9: Mobile Transport Layer

Predictable Interrupt Management and Scheduling in the Composite Component-based System

Generic Architecture. EECS 122: Introduction to Computer Networks Switch and Router Architectures. Shared Memory (1 st Generation) Today s Lecture

Reminder: Datalink Functions Computer Networking. Datalink Architectures

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

Advanced Network Design

Distributed Information Processing

Mobile Transport Layer

Distributed Systems. Pre-Exam 1 Review. Paul Krzyzanowski. Rutgers University. Fall 2015

CMPE150 Midterm Solutions

Department of Computer Science Institute for System Architecture, Operating Systems Group REAL-TIME MICHAEL ROITZSCH OVERVIEW

Last Class: RPCs and RMI. Today: Communication Issues

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

An FPGA-Based Optical IOH Architecture for Embedded System

Introduction to Real-Time Communications. Real-Time and Embedded Systems (M) Lecture 15

Asynchronous Transfer Mode

Teletraffic theory (for beginners)

Outline 9.2. TCP for 2.5G/3G wireless

ETSF10 Internet Protocols Transport Layer Protocols

COT 4600 Operating Systems Fall Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 3:00-4:00 PM

Systems I: Programming Abstractions

CMSC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. October 11, 2018

Communication in Distributed Systems

Chapter 1. Introduction

MAC Protocol Proposal for Fixed BWA Networks Based on DOCSIS. Re: Medium Access Control Task Group Call for Contributions Session #4

CS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University

4 Multiplexer. Y Fig Keyboard Scan Matrix

Sri Vidya College of Engineering and Technology. EC6703 Embedded and Real Time Systems Unit IV Page 1.

CS 344/444 Computer Network Fundamentals Final Exam Solutions Spring 2007

SE300 SWE Practices. Lecture 10 Introduction to Event- Driven Architectures. Tuesday, March 17, Sam Siewert

Networks and distributed computing

Parameter Equipment Motivation Monitoring method. Smooth play-out Test stream

Administrivia. CMSC 411 Computer Systems Architecture Lecture 19 Storage Systems, cont. Disks (cont.) Disks - review

Hands-On Wide Area Storage & Network Design WAN: Design - Deployment - Performance - Troubleshooting

Today. Last Time. Motivation. CAN Bus. More about CAN. What is CAN?

CS 571 Operating Systems. Midterm Review. Angelos Stavrou, George Mason University

Network Superhighway CSCD 330. Network Programming Winter Lecture 13 Network Layer. Reading: Chapter 4

Network management and QoS provisioning - revise. When someone have to share the same resources is possible to consider two particular problems:

The Tofu Interconnect 2

CEC 450 Real-Time Systems

Communication (III) Kai Huang

Outline. Operating Systems: Devices and I/O p. 1/18

Cisco Series Internet Router Architecture: Packet Switching

Learning Outcomes. Scheduling. Is scheduling important? What is Scheduling? Application Behaviour. Is scheduling important?

Communication Problems. Flow Control

QUIZ Ch.6. The EAT for a two-level memory is given by:

Using Time Division Multiplexing to support Real-time Networking on Ethernet

Implementing High-Speed Search Applications with APEX CAM

Implementing Ultra Low Latency Data Center Services with Programmable Logic

Views of Memory. Real machines have limited amounts of memory. Programmer doesn t want to be bothered. 640KB? A few GB? (This laptop = 2GB)

CS510 Operating System Foundations. Jonathan Walpole

CS457 Transport Protocols. CS 457 Fall 2014

Overview: Shared Memory Hardware. Shared Address Space Systems. Shared Address Space and Shared Memory Computers. Shared Memory Hardware

Overview: Shared Memory Hardware

Interconnection Structures. Patrick Happ Raul Queiroz Feitosa

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

Multilevel Memories. Joel Emer Computer Science and Artificial Intelligence Laboratory Massachusetts Institute of Technology

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

Replacement Policy: Which block to replace from the set?

CS 557 Congestion and Complexity

Performance Tuning on the Blackfin Processor

Last Time. Internet in a Day Day 2 of 1. Today: TCP and Apps

CS370 Operating Systems

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

QUESTION BANK UNIT I

Flash: an efficient and portable web server

xkcd.com End To End Protocols End to End Protocols This section is about Process to Process communications.

Developing deterministic networking technology for railway applications using TTEthernet software-based end systems

Lecture 3: Modulation & Layering"

ECE 485/585 Microprocessor System Design

Basics DRAM ORGANIZATION. Storage element (capacitor) Data In/Out Buffers. Word Line. Bit Line. Switching element HIGH-SPEED MEMORY SYSTEMS

NDN-RTC. Peter Gusev UCLA REMAP 9/5/2014

Congestion Control in TCP

ECE 650 Systems Programming & Engineering. Spring 2018

AVB in Automotive Infotainment Networks

3. Quality of Service

Disruptor Using High Performance, Low Latency Technology in the CERN Control System

Embedded Systems. 8. Communication

COMP 249 Advanced Distributed Systems Multimedia Networking. Performance of Multimedia Delivery on the Internet Today

Routers Technologies & Evolution for High-Speed Networks

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

Transcription:

CS 856 Latency in Communication Systems Winter 2010 Latency Challenges CS 856, Winter 2010, Latency Challenges 1

Overview Sources of Latency low-level mechanisms services Application Requirements Latency Measurement Summary & Classification CS 856, Winter 2010, Latency Challenges 2

Low-level Mechanisms Memory Access (Hierarchy) Bus Contention Disk Access Asynchronous Processing CPU Scheduling Network Transmission packetization, processing, queueing, propagation CS 856, Winter 2010, Latency Challenges 3

Services System Calls Transport Messaging Remote Service Invocation Encryption CS 856, Winter 2010, Latency Challenges 4

Application Requirements Web Surfing Telecommunication Interactive Games Streaming User Interfaces Algorithmic Trading Monitoring & Control High-performance Computing CS 856, Winter 2010, Latency Challenges 5

Low-level Mechanisms CS 856, Winter 2010, Latency Challenges 6

Memory Access memory hierarchy registers O(1) cycles cache O(10) cycles RAM O(100) cycles relevant for effective CPU throughput e.g. routers: per-packet processing budget very small! CS 856, Winter 2010, Latency Challenges 7

Bus Contention multiple access & arbitration similar to link layer medium access control (later) CS 856, Winter 2010, Latency Challenges 8

Disk Access physical characteristics head movement, speedup/slowdown disk rotation I/O transfer via bus CS 856, Winter 2010, Latency Challenges 9

Asynchronous Processing cost of context-switching (and/or preemption) e.g. network stack socket queue network queue interface multi-threading send side: multiplexing with other traffic receive side: traditional interrupt levels OS and application programming CS 856, Winter 2010, Latency Challenges 10

CPU Scheduling control of asynchronous processing priorities & deadlines, real-time waiting time on ready queue -> latency CS 856, Winter 2010, Latency Challenges 11

Network Transmission transmission serialization of data: (file size / link speed) packetization: discrete units of data cost at each node vs. cut-through processing medium access control & back-off processing cf. memory latency cf. asynchronous processing CS 856, Winter 2010, Latency Challenges 12

Network Transmission (2) queueing well-studied queueing theory packet scheduling: average vs. worst-case propagation determined by fundamental physics e.g. global communication: Toronto Sydney ~10msec propagation (linear distance only) e.g. inter-planetary communication... CS 856, Winter 2010, Latency Challenges 13

Synchronous Networks e.g. SONET, CDMA no medium access control no queueing but: fixed upper bound rate cf. transmission delay CS 856, Winter 2010, Latency Challenges 14

Services CS 856, Winter 2010, Latency Challenges 15

System Calls blocking system calls typically I/O operations cf. asynchronous processing CS 856, Winter 2010, Latency Challenges 16

Transport network transmission signalling reliability timeout retransmission CS 856, Winter 2010, Latency Challenges 17

Messaging transport signalling encoding / decoding might include segmentation & reassembly network stack process interaction (system calls) CS 856, Winter 2010, Latency Challenges 18

Remote Service Invocation messaging and transport 2-way request / reply interaction e.g. name lookup e.g. web services (aka RPC) CS 856, Winter 2010, Latency Challenges 19

Transcoding e.g. encryption, video transcoding computational overhead offloading (e.g. special-purpose chip) throughput vs. latency gains? CS 856, Winter 2010, Latency Challenges 20

Application Requirements CS 856, Winter 2010, Latency Challenges 21

Web Surfing browsing - user expectations responsiveness: a few seconds 8- resp. 4-second rules commercial web services (B2B) retail: shopping, banking, payments avoid duplicate transaction do not hit reload! messages... online auctions, brokering, etc. -> much faster? CS 856, Winter 2010, Latency Challenges 22

Telecommunication telephony call setup and control authentication & authorisation e.g. cell phone roaming data human perception of interactivity good: one-way 150-300 msec, end-to-end! e.g. packetization: 64 kbit in 40x 200-byte packets/sec 25 msec packetization vs. header overhead (cf. ATM) CS 856, Winter 2010, Latency Challenges 23

Telecommunication (2) videoconferencing similar delay bound than audio (also: lip-sync) need ~25 frames/sec for continuous presentation => upper bound on packetization collaborative work e.g. document editing instantaneous interaction locking and event ordering important CS 856, Winter 2010, Latency Challenges 24

Interactive Games event distribution / roundtrip FPS, Car Racing similar to video/telephony simulate continuous action trick human brain RT Strategy seconds ok? event order relevant ignore/overwrite old events CS 856, Winter 2010, Latency Challenges 25

Streaming startup delay several seconds ok cf. VCR, DVD live vs. stored content? no difference? latency variation => playout buffer CS 856, Winter 2010, Latency Challenges 26

User Interfaces asynchronous: multi-threaded or event-based need instantaneous response show at least brief immediate effect (button click) and/or drive continuous presentation e.g. video presentation + interactivity CS 856, Winter 2010, Latency Challenges 27

Algorithmic Trading receive electronic market data compute price quotes feed back into the market everybody else does the same speed matters, i.e., fast reaction to market data... at high volumes CS 856, Winter 2010, Latency Challenges 28

Monitoring & Control examples monitor factory automation monitor nuclear power plant control anti-lock brake system (ABS) reaction speed matters tight control loop CS 856, Winter 2010, Latency Challenges 29

High-Performance Computing distributed computation compete with integrated systems price/performance trade-off remote memory access communication and synchronization overhead CS 856, Winter 2010, Latency Challenges 30

Wrap-Up CS 856, Winter 2010, Latency Challenges 31

Latency Measurement round-trip latency easy to measure with local clock accuracy, statistics? one-way latency difficult requires synchronized clocks derive from round-trip? symmetry? CS 856, Winter 2010, Latency Challenges 32

Summary & Classification fundamental physical limitations propagation speed and latency contention: bus, MAC, router, etc. latency vs. throughput synchronous better for latency asynchronous better for throughput average vs. worst-case considerations CS 856, Winter 2010, Latency Challenges 33

Summary & Classification performance modelling memory and communication latencies chip, board, chassis, cluster, data center latency classes? machine (ns) computation human subconscious (ms) interactive human conscious (s) response time asynchronous (m) backup human asynchronous (h) email CS 856, Winter 2010, Latency Challenges 34