Internet II. CS10 : Beauty and Joy of Computing. cs10.berkeley.edu. !!Senior Lecturer SOE Dan Garcia!!! Garcia UCB!

Similar documents
CS61C : Machine Structures

CS61C : Machine Structures

CS61C : Machine Structures

CS61C : Machine Structures

Review 1/2 Operating System started as shared I/O library. CS61C Anatomy of I/O Devices: Networks. Lecture 14

CS 61C: Great Ideas in Computer Architecture (Machine Structures) Lecture 38: IO and Networking

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring Lecture 21: Network Protocols (and 2 Phase Commit)

precise rules that govern communication between two parties TCP/IP: the basic Internet protocols IP: Internet protocol (bottom level)

CMSC 611: Advanced. Interconnection Networks

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Data Link Control Protocols

OSI Transport Layer. Network Fundamentals Chapter 4. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

UNIT IV -- TRANSPORT LAYER

NWEN 243. Networked Applications. Layer 4 TCP and UDP

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

CSE 123A Computer Networks

STEVEN R. BAGLEY PACKETS

Introduction to TCP/IP networking

internet technologies and standards

Lecture 3. The Network Layer (cont d) Network Layer 1-1

6.033 Lecture 12 3/16/09. Last time: network layer -- how to deliver a packet across a network of multiple links

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Basics of datacommunication

Lecture 28: Networks & Interconnect Architectural Issues Professor Randy H. Katz Computer Science 252 Spring 1996

CSCI-GA Operating Systems. Networking. Hubertus Franke

CS 43: Computer Networks. 15: Transport Layer & UDP October 5, 2018

User Datagram Protocol

EEC-484/584 Computer Networks

Lecture 8. Network Layer (cont d) Network Layer 1-1

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP

Position of IP and other network-layer protocols in TCP/IP protocol suite

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

Networking and Internetworking 1

Lecture 16: Network Layer Overview, Internet Protocol

ECE 650 Systems Programming & Engineering. Spring 2018

CCNA Exploration1 Chapter 7: OSI Data Link Layer

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

Connectionless and Connection-Oriented Protocols OSI Layer 4 Common feature: Multiplexing Using. The Transmission Control Protocol (TCP)

COMP211 Chapter 4 Network Layer: The Data Plane

Network Layer: Control/data plane, addressing, routers

TDT Appendix E Interconnection Networks

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

QUIZ: Longest Matching Prefix

Chapter 23 Process-to-Process Delivery: UDP, TCP, and SCTP 23.1

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Networks and Distributed Systems. Sarah Diesburg Operating Systems CS 3430

Network Layer: Router Architecture, IP Addressing

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

CS 640: Introduction to Computer Networks. Today s Lecture. Page 1

Chapter 4: network layer

Networking Link Layer

Lecture (11) OSI layer 4 protocols TCP/UDP protocols

Networks. Distributed Systems. Philipp Kupferschmied. Universität Karlsruhe, System Architecture Group. May 6th, 2009

Outline: Connecting Many Computers

Network Models. Behrouz A. Forouzan Data communication and Networking Fourth edition

UDP, TCP, IP multicast

CS3600 SYSTEMS AND NETWORKS

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Introduction to Networking. Operating Systems In Depth XXVII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

CSC 401 Data and Computer Communications Networks

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

Networking Technologies and Applications

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Computer Networks Principles

Data & Computer Communication

Network Layer: Internet Protocol

Chapter 4 Network Layer: The Data Plane

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Introduction to computer networking

CS 428/528 Computer Networks Lecture 01. Yan Wang

Lecture 2: Links and Signaling

internet technologies and standards

CS 4390 Computer Networks. Transport Services and Protocols

Network.... communication system for connecting end- systems. End-systems a.k.a. hosts PCs, workstations dedicated computers network components

Network Reference Models

Tutorial 2 : Networking

A closer look at network structure:

Announcement. Homework 1 due last night, how is that? Will discuss some problems in the lecture next week

416 Distributed Systems. Networks review; Day 1 of 2 Jan 5 + 8, 2018

CPEG514 Advanced Computer Networks. Atef Abu Salim University of Nizwa Spring 2013/2014

TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Network Layer. IP Protocol Stack: Key AbstracHons. Best- Effort Global Packet Delivery. Circuit Switching (e.g., Phone Network)

Introduction to Protocols

CS162 Operating Systems and Systems Programming Lecture 22. Networking II

CS457 Transport Protocols. CS 457 Fall 2014

Lecture 3 Protocol Stacks and Layering

Lecture 10: Internetworking"

ETSF10 Internet Protocols Transport Layer Protocols

Problem 7. Problem 8. Problem 9

Chapter 2 Communicating Over the Network

Homework 1. Question 1 - Layering. CSCI 1680 Computer Networks Fonseca

cs144 Midterm Review Fall 2010

Recap of Networking Intro. Lecture #28 Networking & Disks Protocol Family Concept. Protocol for Networks of Networks?

TCP/IP THE TCP/IP ARCHITECTURE

NT1210 Introduction to Networking. Unit 10

Transcription:

cs10.berkeley.edu CS10 : Beauty and Joy of Computing Internet II!!Senior Lecturer SOE Dan Garcia!!!www.cs.berkeley.edu/~ddgarcia CS10 L17 Internet II (1)!

Why Networks?! Originally sharing I/O devices between computers #ex: printers# Then communicating between computers #ex: file transfer protocol# Then communicating between people #ex: e-mail# Then communicating between networks of computers ex: file sharing, www, # CS10 L17 Internet II (2)!

The Sprint U.S. Topology (2001)! CS10 L17 Internet II (3)!

Bandwidth vs Latency! The bandwidth of a system is a measure of bit rate the amount of data (measured in bits) that can be sent in a fixed amount of time. The latency of a system is the time elapsed between the transmission and the receipt of a request.! CS10 L17 Internet II (4)!

Shared vs. Switched Based Networks! Shared vs. Switched:! Switched: pairs ( point-topoint connections) communicate at same time# Shared: 1 at a time (CSMA/ CD) http://www.youtube.com/ watch?v=rkkxkg5usaw# Aggregate bandwidth (BW) in switched network is many times shared:! Node# point-to-point faster since no arbitration, simpler interface# Shared# Node# Node# Node# Node# Crossbar! Switch# Node# Node# CS10 L17 Internet II (5)!

What makes networks work?! links connecting switches to each other and to computers or devices! Computer# switch# switch# network# interface# switch# ability to name the components and to route packets of information - messages - from a source to a destination! Layering, redundancy, protocols, and encapsulation as means of!abstraction (CS10 big idea)! CS10 L17 Internet II (6)!

Typical Types of Networks! Local Area Network (Ethernet)! Inside a building: Up to 1 km! (peak) Data Rate: 10 Mbits/sec, 100 Mbits /sec, 1000 Mbits/sec (1.25, 12.5, 125 MBytes/s)! Run, installed by network administrators! Wide Area Network! Across a continent (10km to 10000 km)! (peak) Data Rate: 1.5 Mb/s to 10000 Mb/s! Run, installed by telecommunications companies (Sprint, UUNet[MCI], AT&T)! Wireless Networks (LAN),...! CS10 L17 Internet II (7)!

ABCs of Networks: 2 Computers! Starting Point: Send bits between 2 computers! app# app# network# interface# device# OS# OS# Queue (First In First Out) on each end! Can send both ways ( Full Duplex )! One-way information is called Half Duplex! Information sent called a message! Note: Messages also called packets! CS10 L17 Internet II (8)!

A Simple Example: 2 Computers! What is Message Format?! Fixed size? Number bits?! Length# Data 8 bit 32 x Length bits Header (Trailer): information to deliver message Payload: data in message What can be in the data? anything that you can represent as bits values, chars, commands, addresses... CS10 L17 Internet II (9)!

Questions About Simple Example! What if more than 2 computers want to communicate?! Need computer address field in packet to know:! - which computer should receive it (destination) - which computer to reply to (source)! Just like envelopes!! Dest. Source Len Net ID Net ID CMD/ Address /Data 8 bits 8 bits 8 bits 32*n bits Header Payload CS10 L17 Internet II (10)!

ABCs: many computers! application# application# network# interface# device# OS# OS# switches and routers interpret the header in order to deliver the packet! source encodes and destination decodes content of the payload! CS10 L17 Internet II (11)!

Questions About Simple Example! What if message is garbled in transit?! Add redundant information that is checked when message arrives to be sure it is OK! 8-bit sum of other bytes: called Check sum ; upon arrival compare check sum to sum of rest of information in message. xor also popular.! Net ID Net ID Len Header Checksum CMD/ Address /Data Payload Trailer Learn about Checksums in CS 70! CS10 L17 Internet II (12)!

Questions About Simple Example! What if message never arrives?! Receiver tells sender when it arrives! Send an ACK (ACKnowledgement) [like registered mail]! Sender retries if waits too long! Don t discard message until it is ACK ed! If check sum fails, don t send ACK! Checksum Net ID Net ID Len ACK# INFO# CMD/ Address /Data Header Payload Trailer CS10 L17 Internet II (13)!

Observations About Simple Example! Simple questions (like those on the previous slides) lead to:! more complex procedures to send/receive message! more complex message formats! Protocol: algorithm for properly sending and receiving messages (packets)! an agreement on how to communicate# CS10 L17 Internet II (14)!

Software Protocol to Send and Receive! SW Send steps! 1: Application copies data to OS buffer! 2: OS calculates checksum, starts timer! 3: OS sends data to network interface HW and says start! SW Receive steps! 3: OS copies data from network interface HW to OS buffer! 2: OS calculates checksum, if OK, send ACK; if not, delete message (sender resends when timer expires)! 1: If OK, OS copies data to user address space,! & signals application to continue! CS10 L17 Internet II (15)!

Protocol for Networks of Networks?! Abstraction to cope with complexity of communication (compare to Abstraction for complexity of computation)! Networks are like onions! Hierarchy of layers:! - Application (chat client, game, etc.)! - Transport (TCP, UDP)! - Network (IP)! - Physical Link (wired, wireless, etc.)! Networks are like onions. They stink? Yes. No! Oh, they make you cry. No! Layers. Onions have layers. Networks have layers. # CS10 L17 Internet II (16)!

Protocol Family Concept! Message# Logical! Message# Actual! Actual! Logical! H! Message# T! H! Message# T! Actual! Actual! H! H! Message# T! T! H! H! Message# T! T! Physical! CS10 L17 Internet II (17)!

OSI Open Systems Interconnections! http://www.petri.co.il/images/osi_model.jpg CS10 L17 Internet II (18)!

OSI Model! http://wiki.go6.net/images/2/2b/osi-model.png CS10 L17 Internet II (19)!

Protocol Family Concept! Key to protocol families is that communication occurs logically at the same level of the protocol, called peer-topeer but is implemented via services at the next lower level! Encapsulation: carry higher level information within lower level envelope! Fragmentation: break packet into multiple smaller packets and reassemble! CS10 L17 Internet II (20)!

Protocol for Network of Networks! Transmission Control Protocol/Internet Protocol (TCP/IP) (TCP :: a Transport Layer)! This protocol family is the basis of the Internet, a WAN protocol! IP makes best effort to deliver! - Packets can be lost, corrupted! TCP guarantees delivery! TCP/IP so popular it is used even when communicating locally: even across homogeneous LAN! CS10 L17 Internet II (21)!

TCP/IP packet, Ethernet packet, protocols! Application sends message! TCP breaks into 64KiB segments, adds 20B header! IP adds 20B header, sends to network! If Ethernet, broken into 1500B packets with headers, trailers (24B)! All Headers, trailers have length field, destination,...! Ethernet Hdr IP Header TCP Header EH IP Data TCP data Message! Ethernet Hdr CS10 L17 Internet II (22)!

Overhead vs. Bandwidth! Networks are typically advertised using peak bandwidth of network link: e.g., 100 Mbits/ sec Ethernet ( 100 base T )! Software overhead to put message into network or get message out of network often limits useful bandwidth! Assume overhead to send and receive = 320 microseconds (µs), want to send 1000 Bytes over 100 Mbit/s Ethernet! Network transmission time: 1000Bx8b/B /100Mb/s = 8000b / (100b/µs) = 80 µs! Effective bandwidth: 8000b/(320+80)µs = 20 Mb/s! CS10 L17 Internet II (23)!

And in conclusion! Protocol suites allow networking of heterogeneous components! Another form of principle of abstraction! Protocols operation in presence of failures! Standardization key for LAN, WAN! Integrated circuit ( Moore s Law ) revolutionizing network switches as well as processors! Switch just a specialized computer! Trend from shared to switched networks to get faster links and scalable bandwidth! CS10 L17 Internet II (24)!