CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems The Internet in 2 Hours: The Second Hour Steve Ko Computer Sciences and Engineering University.

Slides:



Advertisements
Similar presentations
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
Advertisements

20.1 Chapter 20 Network Layer: Internet Protocol Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Prentice HallHigh Performance TCP/IP Networking, Hassan-Jain Chapter 2 TCP/IP Fundamentals.
CCNA – Network Fundamentals
Chapter 7: Transport Layer
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems The Internet in 2 Hours: The Second Hour Steve Ko Computer Sciences and Engineering University.
Fundamentals of Computer Networks ECE 478/578 Lecture #20: Transmission Control Protocol Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
CSE551: Computer Network Review r Network Layers r TCP/UDP r IP.
1 Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Chapter 5 End-to-End Protocols Copyright © 2010, Elsevier Inc. All rights.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
Transport Layer 3-1 outline r TCP m segment structure m reliable data transfer m flow control m congestion control.
Transport Layer 3-1 Outline r TCP m Congestion control m Flow control.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems The Internet in 2 Hours: The First Hour Steve Ko Computer Sciences and Engineering University.
CSCE 515: Computer Network Programming TCP Details Wenyuan Xu Department of Computer Science and Engineering.
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.
IP-UDP-RTP Computer Networking (In Chap 3, 4, 7) 건국대학교 인터넷미디어공학부 임 창 훈.
Gursharan Singh Tatla Transport Layer 16-May
OIS Model TCP/IP Model.
What Can IP Do? Deliver datagrams to hosts – The IP address in a datagram header identify a host IP treats a computer as an endpoint of communication Best.
Process-to-Process Delivery:
TRANSPORT LAYER T.Najah Al-Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
1 Chapter Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
1 Transport Layer Computer Networks. 2 Where are we?
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems The Internet in 2 Hours: The First Hour Steve Ko Computer Sciences and Engineering University.
1 Chapter 1 OSI Architecture The OSI 7-layer Model OSI – Open Systems Interconnection.
Chapter 5 Transport layer With special emphasis on Transmission Control Protocol (TCP)
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
CS332, Ch. 26: TCP Victor Norman Calvin College 1.
Fundamentals of Computer Networks ECE 478/578 Lecture #19: Transport Layer Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Transport Layer Overview (§ )
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 2.5 Internetworking Chapter 25 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Copyright 2002, S.D. Personick. All Rights Reserved.1 Telecommunications Networking II Topic 20 Transmission Control Protocol (TCP) Ref: Tanenbaum pp:
CSE679: Computer Network Review r Review of the uncounted quiz r Computer network review.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Transport Layer COM211 Communications and Networks CDA College Theodoros Christophides
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
End-To-End Arguments in System Design J.H. Saltzer, D.P. Reed, and D. Clark Presented by: Amit Mondal.
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.
Introduction to TCP/IP networking. TCP/IP protocol family IP : Internet Protocol UDP : User Datagram Protocol TCP : Transmission Control Protocol.
Transport Protocols.
4343 X2 – The Transport Layer Tanenbaum Ch.6.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
1 User Datagram Protocol. 2 Transport Protocols Provide logical communication between application processes running on different hosts Run on end hosts.
Data Communications and Networks Chapter 6 – IP, UDP and TCP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems The Internet in 2 Hours: The First Hour Steve Ko Computer Sciences and Engineering University.
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
3. END-TO-END PROTOCOLS (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 22 March
1 Chapter 24 Internetworking Part 4 (Transport Protocols, UDP and TCP, Protocol Port Numbers)
Steve Ko Computer Sciences and Engineering University at Buffalo
Introduction to TCP/IP networking
Instructor Materials Chapter 9: Transport Layer
Steve Ko Computer Sciences and Engineering University at Buffalo
Steve Ko Computer Sciences and Engineering University at Buffalo
Introduction of Transport Protocols
Chapter 20 Network Layer: Internet Protocol
Process-to-Process Delivery:
Net 323 D: Networks Protocols
Process-to-Process Delivery: UDP, TCP
Steve Ko Computer Sciences and Engineering University at Buffalo
Steve Ko Computer Sciences and Engineering University at Buffalo
Transport Layer 9/22/2019.
Presentation transcript:

CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems The Internet in 2 Hours: The Second Hour Steve Ko Computer Sciences and Engineering University at Buffalo

CSE 486/586, Spring 2012 Today Re-position ourselves from the last lecture Main focus today: making transition to transport protocols and applications Again, the design of the Internet is a great example of how to design a solid distributed system. –We’ll look at a few questions that the designers considered. Put yourself in the shoes of a distributed systems designer! –Pay attention not just to knowledge, but also to the process of making design decisions. 2

CSE 486/586, Spring 2012 What is the Internet? A (or “the”?) network of networks Challenge the original designers faced: interconnecting various physical networks. Possible approach: interconnecting networks at the physical level Solution chosen: layering 3 Link hardware Host-to-host connectivity Application-to-application channels Application

CSE 486/586, Spring 2012 Challenges in Layering What to put on top of physical networks? Basic things for enabling a conversation between remote hosts: –Packet switching (a conversation is divided into smaller units called packets). –Addressing (where do I send a msg?) –Routing (how do I reach that address?) In addition, what we want (the goals of the original Internet) Most importantly, survivability –Protection of a conversation as long as there’s a physical path between entities communicating and they are alive. What are some of the threats that disrupt a conversation? –Packet loss, out-of-order delivery, duplicate packets, etc. 4

CSE 486/586, Spring 2012 But We Must Ask Ourselves… In a conversation, there are two components involved –Hosts –Network So, one more question: where do we want to put the functionalities? Addressing and routing? –Yeah, probably in the network What about conversation protection mechanisms? –The network or hosts? 5

CSE 486/586, Spring 2012 So, How to Protect a Conversation? Think about the following scenario 6 Hey! The Internet Hey!

CSE 486/586, Spring 2012 Two Approaches to Survivability Approach 1: “stateful” network –The network keeps the state information about conversations 7 Hey! The Internet OK; Bob is sending something to Alice. I’d better keep another copy in case it gets lost…

CSE 486/586, Spring 2012 Two Approaches to Survivability Approach 2: “stateless” network –The ends keep the state information about conversations 8 Hey! (and let me know if you receive this) The Internet (OK; Alice didn’t speak to me for a while. I’ll send it again.)

CSE 486/586, Spring 2012 Two Approaches to Survivability Stateless networks’ principle: fate-sharing –The conversation shares the same fate with the “ends.” –“it is acceptable to lose the state information associated with an entity if, at the same time, the entity itself is lost.” Advantages –Fate-sharing protects against any number of intermediate network failures (what about replication?) –Fate-sharing is much easier to engineer. The result: a “best-effort” network –The IP (Internet Protocol) layer doesn’t really provide anything other than “best-effort” delivery (i.e., addressing and routing). –The end hosts provide conversation protection mechanisms. 9

CSE 486/586, Spring 2012 IPv4 Packet 10 4-bit Version 4-bit Header Length 8-bit Type of Service (TOS) 16-bit Total Length (Bytes) 16-bit Identification 3-bit Flags 13-bit Fragment Offset 8-bit Time to Live (TTL) 8-bit Protocol 16-bit Header Checksum 32-bit Source IP Address 32-bit Destination IP Address Options (if any) Payload 20-byteheader

CSE 486/586, Spring 2012 End-to-End Arguments Helps resisting the tendency to put and hide complicated things in the lower layers If a functionality must be implemented end-to-end, then don’t implement it in the network. –Exception: when there are clear performance improvements Laid out in “End-to-End Arguments in System Design” by J.H. Saltzer, D.P. Reed and D.D. Clark (optional reading) A good rule of thumb in any system design, but still not something to follow blindly 11

CSE 486/586, Spring 2012 TCP/IP IP “best-effort” network –The network knows the source and the destination. –A conversation is divided into packets. –Makes the best effort to deliver packets –Packet loss, corruption, out-of-order delivery, etc. could all happen. TCP (Transmission Control Protocol) –Handles the problems –Implemented at the end hosts 12 source destination IP network TCP

CSE 486/586, Spring 2012 OK; Let’s Think about It Together… Is this always a good thing? Is today’s Internet still stateless? 13

CSE 486/586, Spring 2012 CSE 486/586 Administrivia Recitations will begin from next Monday. –Will mainly talk about project 0 Project 0 description will be out on Wednesday. Please use Piazza; all announcements will go there. –Anonymous/private posting: generally questions are beneficial to the whole class; please consider posting it publicly first. –If you want an invite, let me know. Please come to my office during the office hours! –Give feedback about the class, ask questions, etc. 14

CSE 486/586, Spring 2012 TCP An end-to-end protocol Protects conversations –Receiver is supposed to send an ack (acknowledgement) packet. –Packet loss  retransmission –Out-of-order delivery, duplicate packets  sequence numbers –Packet corruption  checksum Controls congestion –The network might be over-utilized –Prevents the network from collapsing (which was actually a concern in the late 80’s) TCP is an abstraction: a reliable, byte-stream connection 15

CSE 486/586, Spring A (Very) Brief Overview of TCP Three-way handshake to establish connection –Host A sends a SYN (open) to the host B –Host B returns a SYN acknowledgment (SYN ACK) –Host A sends an ACK to acknowledge the SYN ACK Why 3-way instead of 2-way? –Reachability SYN SYN ACK ACK Data A B

CSE 486/586, Spring 2012 Retransmission Timeout & retransmission to handle packet loss 17 Packet Timeout Packet ACK Timeout Packet lost

CSE 486/586, Spring 2012 The Dark Side of TCP There’s overhead associated. –Connection establishment: 3-way handshake –Packet loss: retransmission timeout –Congestion control: doesn’t utilize full bandwidth More importantly, some applications do not need these. Examples? So, enter UDP (User Datagram Protocol): exposes almost exactly what IP can give you. 18

CSE 486/586, Spring Why Would Anyone Use UDP? Fine control over what data is sent and when –As soon as an application process writes –… UDP will package the data and send the packet No delay for connection establishment –UDP just blasts away without any formal preliminaries –… which avoids introducing any unnecessary delays No connection state –No allocation of buffers, parameters, sequence #s, etc. –… making it easier to handle many active clients at once Small packet header overhead –UDP header is only eight-bytes long

CSE 486/586, Spring Popular Applications That Use UDP Multimedia streaming –Retransmitting lost/corrupted packets is not worthwhile –By the time the packet is retransmitted, it’s too late –E.g., telephone calls, video conferencing, gaming Simple query protocols like Domain Name System –Overhead of connection establishment is overkill –Easier to have the application retransmit if needed –Will cover this in a separate lecture “Address for “ ”

CSE 486/586, Spring 2012 What Applications See 21 TCPUDP IP Device Drivers Network Interface OS App Socket API

CSE 486/586, Spring 2012 Summary What to put on top of physical networks? –Layers providing survivability Where to put functionalities? –Fate-sharing & end-to-end arguments –IP layer doesn’t provide much –TCP handles most of the survivability issues TCP & UDP: the two transport protocols of the Internet What interface do applications see? –Socket API Next: more on socket programming & an introduction to Android 22

CSE 486/586, Spring Acknowledgements These slides contain material developed and copyrighted by –Indranil Gupta at UIUC –Mike Freedman and Jen Rexford at Princeton