Emir Halepovic, Jeffrey Pang, Oliver Spatscheck AT&T Labs - Research

Slides:



Advertisements
Similar presentations
Measuring IP Performance Geoff Huston Telstra. What are you trying to measure? User experience –Responsiveness –Sustained Throughput –Application performance.
Advertisements

An Improved TCP for transaction communications on Sensor Networks Tao Yu Tsinghua University 2/8/
Performance Testing - Kanwalpreet Singh.
Ningning HuCarnegie Mellon University1 Optimizing Network Performance In Replicated Hosting Peter Steenkiste (CMU) with Ningning Hu (CMU), Oliver Spatscheck.
1 Transport Protocols & TCP CSE 3213 Fall April 2015.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
University of Michigan Electrical Engineering and Computer Science Anatomizing Application Performance Differences on Smartphones Junxian Huang, Qiang.
Estimating TCP Latency Approximately with Passive Measurements Sriharsha Gangam, Jaideep Chandrashekar, Ítalo Cunha, Jim Kurose.
Doc.: IEEE /0604r1 Submission May 2014 Slide 1 Modeling and Evaluating Variable Bit rate Video Steaming for ax Date: Authors:
Obtaining In-Context Measurements of Cellular Network Performance Aaron Gember, Aditya Akella University of Wisconsin-Madison Jeffrey Pang, Alexander Varshavsky,
Fast Pattern-Based Throughput Prediction for TCP Bulk Transfers Tsung-i (Mark) Huang Jaspal Subhlok University of Houston GAN ’ 05 / May 10, 2005.
1 LAN Traffic Measurements Carey Williamson Department of Computer Science University of Calgary.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
Web Caching Schemes1 A Survey of Web Caching Schemes for the Internet Jia Wang.
An Analysis of Internet Content Delivery Systems Stefan Saroiu, Krishna P. Gommadi, Richard J. Dunn, Steven D. Gribble, and Henry M. Levy Proceedings of.
EEC-484/584 Computer Networks Discussion Session for HTTP and DNS Wenbing Zhao
Reduced TCP Window Size for Legacy LAN QoS II Niko Färber Sept. 20, 2000.
Network Traffic Measurement and Modeling CSCI 780, Fall 2005.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 TCP (Part III: Miscl) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Differentiated Multimedia Web Services Using Quality Aware Transcoding S. Chandra, C.Schlatter Ellis and A.Vahdat InfoCom 2000, IEEE Journal on Selected.
Copyright © 2005 Department of Computer Science CPSC 641 Winter LAN Traffic Measurements Some of the first network traffic measurement papers were.
Microsoft Research Shujaat Hussain. Cloud Faster! Low latency web transactions …. especially important to our key online properties.
Performance Comparison of Congested HTTP/2 Links Brian Card, CS /7/
Junxian Huang 1 Feng Qian 2 Yihua Guo 1 Yuanyuan Zhou 1 Qiang Xu 1 Z. Morley Mao 1 Subhabrata Sen 2 Oliver Spatscheck 2 1 University of Michigan 2 AT&T.
Timecard: Controlling User-Perceived Delays in Server-Based Mobile Applications Lenin Ravindranath, Jitu Padhye, Ratul Mahajan, Hari Balakrishnan.
1 Physical Clocks need for time in distributed systems physical clocks and their problems synchronizing physical clocks u coordinated universal time (UTC)
A User Experience-based Cloud Service Redeployment Mechanism KANG Yu.
Qi Alfred Chen University of Michigan
 Zhichun Li  The Robust and Secure Systems group at NEC Research Labs  Northwestern University  Tsinghua University 2.
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 8 – Denial of Service.
Characterizing and Modeling the Impact of Wireless Signal Strength on Smartphone Battery Drain Ning Ding Xiaomeng Chen Abhinav Pathak Y. Charlie Hu 1 Daniel.
SAINT ‘01 Proactive DNS Caching: Addressing a Performance Bottleneck Edith Cohen AT&T Labs-Research Haim Kaplan Tel-Aviv University.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
Maintaining Performance while Saving Energy on Wireless LANs Ronny Krashinsky Term Project
Protocol(TCP/IP, HTTP) 송준화 조경민 2001/03/13. Network Computing Lab.2 Layering of TCP/IP-based protocols.
Web Cache Replacement Policies: Properties, Limitations and Implications Fabrício Benevenuto, Fernando Duarte, Virgílio Almeida, Jussara Almeida Computer.
Network Instruments VoIP Analysis. VoIP Basics  What is VoIP?  Packetized voice traffic sent over an IP network  Competes with other traffic on the.
Who Is Peeping at Your Passwords at Starbucks? To Catch an Evil Twin Access Point DSN 2010 Yimin Song, Texas A&M University Chao Yang, Texas A&M University.
3: Transport Layer3-1 Where we are in chapter 3 Last time: r TCP m Reliable transfer m Flow control m Connection management r principles of congestion.
Timecard: Controlling User-Perceived Delays in Server-Based Mobile Applications Lenin Ravindranath, Jitu Padhye, Ratul Mahajan, Hari Balakrishnan.
Transport Layer3-1 Announcements r Collect homework r New homework: m Ch3#3,4,7,10,12,16,18-20,25,26,31,33,37 m Due Wed Sep 24 r Reminder: m Project #1.
ICOM 6115: Computer Systems Performance Measurement and Evaluation August 11, 2006.
Scanning & Enumeration Lab 3 Once attacker knows who to attack, and knows some of what is there (e.g. DNS servers, mail servers, etc.) the next step is.
1 Evaluation of Cooperative Web Caching with Web Polygraph Ping Du and Jaspal Subhlok Department of Computer Science University of Houston presented at.
Transport Layer3-1 TCP throughput r What’s the average throughout of TCP as a function of window size and RTT? m Ignore slow start r Let W be the window.
End-to-End Performance Analytics For Mobile Apps Lenin Ravindranath, Jitu Padhye, Ratul Mahajan Microsoft Research 1.
Time This powerpoint presentation has been adapted from: 1) sApr20.ppt.
Multihoming Performance Benefits: An Experimental Evaluation of Practical Enterprise Strategies Aditya Akella, CMU Srinivasan Seshan, CMU Anees Shaikh,
TCP: Transmission Control Protocol Part II : Protocol Mechanisms Computer Network System Sirak Kaewjamnong Semester 1st, 2004.
Measuring the Capacity of a Web Server USENIX Sympo. on Internet Tech. and Sys. ‘ Koo-Min Ahn.
Networks Part 2: Infrastructure + Protocols NYU-Poly: HSWP Instructor: Mandy Galante.
Network Computing Laboratory 1 Vivaldi: A Decentralized Network Coordinate System Authors: Frank Dabek, Russ Cox, Frans Kaashoek, Robert Morris MIT Published.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
1 Exploiting Nonstationarity for Performance Prediction Christopher Stewart (University of Rochester) Terence Kelly and Alex Zhang (HP Labs)
Development of a QoE Model Himadeepa Karlapudi 03/07/03.
#16 Application Measurement Presentation by Bobin John.
Introduction Web analysis includes the study of users’ behavior on the web Traffic analysis – Usage analysis Behavior at particular website or across.
1 Evaluation of Cooperative Web Caching with Web Polygraph Ping Du and Jaspal Subhlok Department of Computer Science University of Houston presented at.
John S. Otto Mario A. Sánchez John P. Rula Fabián E. Bustamante Northwestern, EECS.
Web page – Html –base file – Objects (first DNS) First get html file Then browser reads the html and gets the objects.
COMP2322 Lab 6 TCP Steven Lee Mar 29, 2017.
Fast Pattern-Based Throughput Prediction for TCP Bulk Transfers
Network Performance and Quality of Service
ECF: an MPTCP Scheduler to Manage Heterogeneous Paths
CPSC 641: LAN Measurement Carey Williamson
Monkey See, Monkey Do A Tool for TCP Tracing and Replaying
PredictRemainingTime
Evaluating Transaction System Performance
Carey Williamson Department of Computer Science University of Calgary
Presentation transcript:

Emir Halepovic, Jeffrey Pang, Oliver Spatscheck AT&T Labs - Research Can you GET me now? Estimating the Time-to-First-Byte of HTTP Transactions with Passive Measurements Emir Halepovic, Jeffrey Pang, Oliver Spatscheck AT&T Labs - Research

Motivation Click! Request web object First byte of web object Delays of 250 milliseconds or more in web page load time will cause users to visit less often [Google, Microsoft 2012] A significant component of web page load time is the time-to-first-byte (TTFB), and TTFB is mostly comprised of network latencies MyApp Click! Request web object First byte of web object Time to first byte www.webpagetest.org Nexus S Android 2.3 on WiFi connection (3G, 4G would be slower)

Current State-of-the-Art Network operators have compelling interest to monitor TTFB since changes in their network can directly affect it Current approach: Modest number of active probes in different locations measure TTFB directly, using custom or web-based tools [e.g., keynote.com, webpagetest.com] Problem: Not practical to scale active probes to cover entire cellular network and probes may not represent real user workloads (different devices, different webpages, etc.) Question: Can we estimate TTFB of real traffic using passive traffic analysis? Probe

Goals Estimate latency passively from inside network core Distinguish connections with Radio Resource Control (RRC) State Transition Representative of user experience Scalable CPU cost – simplicity Memory footprint – minimal state Robust Tolerant to some level of packet loss and delay Correctly measure many different devices Correct even when RRC state machine changes

Typical packet exchange for a new HTTP flow TTFB Overview Goal: Estimate TTFB of HTTP transactions at probe Method: Analyze TCP packets comprising HTTP traffic We define TTFB as: elapsed time between TCP SYN departure from device operating system and first byte of HTTP data arrival Other definitions may include DNS and/or HTTP redirects - service providers have other tools to quantify the delay of these aspects SYN SYN-ACK ACK HTTP-GET HTTP-DATA GET-ACK DATA-ACK TTFB PROBE DNS Request DNS Response … Optional: if domain name is not cached (30-39% requests) Object can start rendering at this time Click! Typical packet exchange for a new HTTP flow

Common metric: Round-Trip-Time (RTT) SYN SYN-ACK ACK HTTP-GET HTTP-DATA GET-ACK DATA-ACK RTT PROBE Estimate r0 r1 RTT is typically estimated as inter-arrival between corresponding packets during TCP hand-shake: RTT = r1 – r0 Can we compute TTFB as a function of RTT?

Why not use RTT? Is TTFB a simple function of RTT? Estimate PROBE r0 r1 SYN SYN-ACK ACK HTTP-GET HTTP-DATA GET-ACK DATA-ACK OS TTFB Radio STT HTTP-TT Is TTFB a simple function of RTT? Not in cellular network! Important delay components are not captured by RTT: STT: State Transition Time, i.e., time that packet is waiting for radio connection It will not always occur, but lasts ~2 seconds in 3G Server Delay: Time that web server takes to respond HTTP-TT: HTTP Transmission Time, which is higher than RTT because HTTP packets are larger than TCP SYN/SYN-ACK Server Delay

A New Approach to Estimate TTFB PROBE SYN SYN-ACK ACK HTTP-GET HTTP-DATA GET-ACK DATA-ACK OS RTT TTFB Server Delay Radio STT HTTP-TT TS0 TS1 TS2 Approach: Instead of arrival times at probe, we can use timestamps in TCP segments inserted by device OS Benefit: Add device’s view of delay Most TCP connections use Timestamps (85%) Main Challenge: Units of timestamps TSi are not known and differ across devices. How do we convert them to standard units?

Developing Our Estimate of TTFB PROBE SYN SYN-ACK ACK HTTP-GET HTTP-DATA GET-ACK DATA-ACK OS RTT TTFB Server Delay Radio STT HTTP-TT TS0 TS1 TS2 r0 r1 r2 Timestamp granularity: Assuming that device-to-probe delay for ACK packets is fixed, we can estimate timestamp granularity G as: We thus estimate TTFB as:

Estimating Components of TTFB OS Radio PROBE TTFB STT RTT HTTPTT Server Delay G t0 TS0 STT t11 SYN r0 RTT SYN-ACK t1 TS1 ACK TTFB r1 HTTP-GET Server Delay HTTP-TT GET-ACK By recording timestamps and packet arrival times at the probe, we can estimate all the components of the TTFB HTTP-DATA t2 TS2 DATA-ACK r2

Evaluation Summary of results: Estimation is accurate, scalable, and simple to implement TTFB illustrates high variation for different devices, applications, domains etc. whereas RTT does not Experimental setup Packet trace collection from devices and network elements covering large geographic area Probe UE Traces Validate G and TTFB RNC Traces Validate ST Network Traces Estimate TTFB

TTFB Validation Estimated TTFB distribution is very close to the actual (a) Browsing without STT (b) Browsing with STT [Results for UE with G=1 ms shown, results for UE with G=100ms are similar] Latencies are normalized by same constant

Results: Composition of TTFB STT makes up an average 68% of TTFB, when present HTTP-TT is higher than RTT (excluding server delay) Server delay is not negligible PROBE SYN SYN-ACK ACK HTTP-GET HTTP-DATA GET-ACK DATA-ACK OS RTT TTFB Server Delay Radio STT HTTP-TT STT RTT HTTPTT-Q Q=Server Delay No ST 0% 32% 50% 18% With ST 68% 7% 12% 13%

Results: TTFB vs. RTT for Devices Newer HSPA devices show improved TTFB and RTT, but same TTFB with STT (HSUPA/HSPA+ vs. HSDPA) Reason: All HSPA devices subject to same radio signaling, transitions LTE shows major improvement over newer HSPA in STT, but minor improvement in TTFB and RTT Averages with 95% confidence intervals

Results: TTFB vs. RTT for Domains TTFB can show large difference across domains while RTT barely changes

Results: TTFB vs. RTT for Domains TTFB can show large difference across domains while RTT barely changes

Results: TTFB vs. RTT for Applications Applications under the same domain can have identical RTT but different TTFB (e.g., domains B and C)

Summary and Future Work We presented an accurate passive estimate for TTFB We showed RTT does not fully reflect the TTFB Missing important latency components (STT, server delay, etc.) TTFB offers better performance estimate than RTT Future work Explore ways to include DNS and HTTP redirect delays into TTFB definition, as these impact the user experience also