An Improved TCP for transaction communications on Sensor Networks Tao Yu Tsinghua University 2/8/2010 1.

Slides:



Advertisements
Similar presentations
Computer Networks TCP/IP Protocol Suite.
Advertisements

1 The Leader in Industrial Data Communication Solutions Training: AB Application Interfacing.
The Transmission Control Protocol (TCP) carries most Internet traffic, so performance of the Internet depends to a great extent on how well TCP works.
Reconsidering Reliable Transport Protocol in Heterogeneous Wireless Networks Wang Yang Tsinghua University 1.
Congestion Control and Fairness Models Nick Feamster CS 4251 Computer Networking II Spring 2008.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
0 - 0.
1 Improving TCP/IP Performance Over Wireless Networks Authors: Hari Balakrishnan, Srinivasan Seshan, Elan Amir and Randy H. Katz Presented by Sampoorani.
CS144 Review Session 4 April 25, 2008 Ben Nham
Streaming Video over the Internet
Countering DoS Attacks with Stateless Multipath Overlays Presented by Yan Zhang.
1 Chapter 11: Data Centre Administration Objectives Data Centre Structure Data Centre Structure Data Centre Administration Data Centre Administration Data.
Addition 1’s to 20.
Test B, 100 Subtraction Facts
1 Transport Protocols & TCP CSE 3213 Fall April 2015.
CSCI 4550/8556 Computer Networks
NET0183 Networks and Communications Lecture 28 TCP: a transport layer protocol... the story continues... Sagan halda áfram 8/25/20091 NET0183 Networks.
Transportation Layer. Very similar to the data link layer. – two hosts connected by a link or two hosts connected by a network differences: – When two.
Fundamentals of Computer Networks ECE 478/578 Lecture #20: Transmission Control Protocol Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
1 TCP - Part I Relates to Lab 5. First module on TCP which covers packet format, data transfer, and connection management.
1 CS 4396 Computer Networks Lab Transmission Control Protocol (TCP) Part I.
BZUPAGES.COM 1 User Datagram Protocol - UDP RFC 768, Protocol 17 Provides unreliable, connectionless on top of IP Minimal overhead, high performance –No.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-4690: Experimental Networking Informal Quiz: TCP Shiv Kalyanaraman:
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 ECSE-6600: Internet Protocols Informal Quiz #07 Shivkumar Kalyanaraman: GOOGLE: “Shiv RPI”
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Internet Networking Spring 2002 Tutorial 11 T/TCP (TCP extension for Transactions)
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 TCP (Part III: Miscl) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute
1 Experiment And Analysis of Dynamic TCP Acknowledgement Daeseob Lim Sam Lai Wing-Ho Gordon Wong.
1 University of Freiburg Computer Networks and Telematics Prof. Christian Schindelhauer Wireless Sensor Networks 13th Lecture Christian Schindelhauer.
Computer Networks Transport Layer. Topics F Introduction  F Connection Issues F TCP.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Transport Protocols Slide 1 Transport Protocols.
TCP. Learning objectives Reliable Transport in TCP TCP flow and Congestion Control.
A User Experience-based Cloud Service Redeployment Mechanism KANG Yu.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
CS448 Computer Networking Chapter 1 Introduction to Computer Networks Instructor: Li Ma Office: NBC 126 Phone: (713)
IP and Errors IP Best Effort Datagrams can be: –Lost –Delayed –Duplicated –Delivered out of order –Corrupted.
Protocol(TCP/IP, HTTP) 송준화 조경민 2001/03/13. Network Computing Lab.2 Layering of TCP/IP-based protocols.
3: Transport Layer3b-1 TCP: Overview RFCs: 793, 1122, 1323, 2018, 2581 r full duplex data: m bi-directional data flow in same connection m MSS: maximum.
TCP : Transmission Control Protocol Computer Network System Sirak Kaewjamnong.
CS332, Ch. 26: TCP Victor Norman Calvin College 1.
SMUCSE 4344 transport layer. SMUCSE 4344 transport layer end-to-end protocols –transport code runs only on endpoint hosts encapsulates network communications.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
The Transmission Control Protocol (TCP) Application Services (Telnet, FTP, , WWW) Reliable Stream Transport (TCP) Connectionless Packet Delivery.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
Chapter 12 Transmission Control Protocol (TCP)
1 TCP: Reliable Transport Service. 2 Transmission Control Protocol (TCP) Major transport protocol used in Internet Heavily used Completely reliable transfer.
Transportation Layer (1). Transportation Layer Very similar to the data link layer. – two hosts connected by a link or two hosts connected by a network.
Chapter 24 Transport Control Protocol (TCP) Layer 4 protocol Responsible for reliable end-to-end transmission Provides illusion of reliable network to.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
Transmission Control Protocol (TCP) BSAD 146 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
TCP Congestion Control 컴퓨터공학과 인공지능 연구실 서 영우. TCP congestion control2 Contents 1. Introduction 2. Slow-start 3. Congestion avoidance 4. Fast retransmit.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Transmission Control Protocol (TCP) connection-oriented stream data transfer data sent as an unstructured stream of bytes reliability acknowledgements.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
Chapter 5 Peer-to-Peer Protocols and Data Link Layer Timing Recovery.
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
5. End-to-end protocols (part 1)
Module 1 UDP & TCP.
PART 5 Transport Layer Computer Networks.
Chapter 6: Transport Layer (Part I)
Transport Layer Unit 5.
TCP Overview Connection-oriented Byte-stream Full duplex
SPEAKER: Yu-Shan Chou ADVISOR: DR. Kai-Wei Ke
Lecture 18 – More TCP & Congestion Control
Transportation Layer.
The Transmission Control Protocol (TCP)
Transport Layer 9/22/2019.
Presentation transcript:

An Improved TCP for transaction communications on Sensor Networks Tao Yu Tsinghua University 2/8/2010 1

Why do we use IP based TCP for wireless communication? Enable wireless sensor networks connect to the external networks to let monitoring and controlling entities communicate with the sensors Seamlessly integrate wireless sensor networks or Internet of things into the current and future Internet Force the current Internet to evolve rapidly by considering the demanding requirement of emerging network infrastructure and new applications based on it 2

Whats transaction communication? The transaction communications have the following characters: first the fundamental interaction is a request followed by a response; Second explicit open and close phases in traditional TCP impose excessive overhead in terms of the effective packet number, minimal response time and lowest power consumption per communication task; Third at-most-once semantics is required, which means a transaction must not be "replayed" as the result of a duplicate request packet; Fourth the minimum transaction latency will be RTT+SPT where RTT is the round-trip time and SPT is the server processing time, which is important to real-time applications 3

Working process of traditional TCP for transaction communications There must be ten segments (packets) exchanged in 5 round trips three for the 3-way handshake opening the connection(in 1.5 round trips) four to send and acknowledge the request and response data(in 2 round trips) and three for TCP's full-duplex data-conserving close sequence(in 1.5 round trips) 4

Working process of current TCP for transaction communications There are still 5 segments (packets) exchanged in 2.5 round trips under the new rules of TCP which allow data segment with SYN and FIN bit set 5

Drawback of regular TCP for transaction communications There are relative high overhead compared with the minimum requirements: At least 5 segment vs. 2 segment At least 2.5 round trips vs. 1 round trip Minimum response latency 2*RTT + SPT vs. RTT + SPT 6

Application paradigm for wireless sensor networks or Internet of things sensors or objects usually only need to contact the pre-determined server/controller, and they need not exchange data between each other directly both the request and the response data is small enough to be loaded in one or two packets where T/TCP could be utilized to achieve great communication benefit in extremely constrained circumstance with demanding requirements. 7

Optimization Method Compress the connection setup and teardown processes Truncate the TIME-WAIT state in TCP 8

Bypassing the Three-way Handshake using TCP Accelerated Open(TAO) Validate the initial SYN segment immediately upon receiving it, which is called as the TCP Accelerated Open (TAO) the timestamp of last connection request from remote peer is used as the cached state 9

The Minimum sequences using TAO for transaction communications 10

The communication process if TAO test fails 11

Truncate the TIME-WAIT state using time synchronization two functions of TIME-WAIT state: (1) supporting the full- duplex reliable close of TCP, and (2) allowing old duplicate segments from an earlier connection incarnation to expire before they can cause an error formula for the TIME-WAIT delay TIME-WAIT_Delay = max( K*RTO, U ) By estimating the one-way delay accurately, we can truncate the TIME-WAIT state 12

The difficulties of RRT measurement in transactions With the minimal 3-segment exchange, there can be exactly one RTT measurement in each direction for each transaction. dynamic estimation of RTT must take place across successive transactions. So additional cache for the measured RTT and RTT variance values is essential for transaction processing. Whats more, the inference of new RTT from old ones is not accurate especially in dynamic wireless environment 13

The thought of time synchronization Lets suppose that the clock counter values for host A and host B are T(A) 1, T(B) 1 separately at some absolute time T1, T(A) 2, T(B) 2 at some absolute time T2, then we get: T A *(T(A) 2 -T(A) 1 )=T B *(T(B) 2 -T(B) 1 ) Where T A and T B are the periods of tick of host A and host B. Then we can get the following formula: (T(A) 2 -T(A) 1 )/ (T(B) 2 -T(B) 1 ) = (T(A) 3 -T(A) 2 )/ (T(B) 3 -T(B) 2 ) Where T(A) 3 and T(B) 3 are the clock counter values for host A and host B at some absolute time T3. For host A, the formula means that if it has the value of T(A) 1, T(B) 1, T(A) 2, T(B) 2, at any time T3 it can figure out the clock counter value of host B. For host B, it is the same. 14

The problems for the improved TCP with incomplete information The cached states may be incomplete or non- existence The machine time of server or controller may be adjusted manually Solution: Our improved T/TCP is compatible with the traditional TCP and after at least one interval of Threshold and two transactions, it will resume normal that the TIME-WAIT delay will be truncated. 15

Our contributions in this paper Explicitly propose to use timestamp for the connection count(CC) and analyze its feasibility for sensor application There is only one CC for each connection in both directions, which is simpler than the original T/TCP Develop a new method for T/TCP to measure the RTT accurately and truncate the TIME- WAIT state more effectively 16

Summary The benefit of the improved T/TCP for transaction communication Lower overhead in terms of segment number Improved response latency Decreased computational resource expenditure Reduced power consumption 17

Thanks 18