CS61C : Machine Structures

Similar documents
CS61C : Machine Structures

CS61C : Machine Structures

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

CS61C : Machine Structures

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

CS61C : Machine Structures

CS61C Machine Structures Lecture 39 Networks. No Machine is an Island!

CMSC 611: Advanced. Interconnection Networks

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

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

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

Outline: Connecting Many Computers

Lecture #28 I/O, networks, disks

Most important topics today. I/O bus (computer bus) Polling vs interrupts Switch vs shared network Network protocol layers Various types of RAID

CS3600 SYSTEMS AND NETWORKS

Review. Lecture #25 Input / Output, Networks II, Disks ABCs of Networks: 2 Computers

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

cs144 Midterm Review Fall 2010

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

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

CCNA Exploration1 Chapter 7: OSI Data Link Layer

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

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

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

CS4700/CS5700 Fundaments of Computer Networks

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

CSE 123A Computer Networks

Digital Communication Networks

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

Lecture 15: Networks & Interconnect Interface, Switches, Routing, Examples Professor David A. Patterson Computer Science 252 Fall 1996

Principles behind data link layer services:

Principles behind data link layer services:

Principles behind data link layer services

Data Networks. Lecture 1: Introduction. September 4, 2008

Applied Networks & Security

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

Basics of datacommunication

Principles behind data link layer services:

TDT Appendix E Interconnection Networks

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

Special expressions, phrases, abbreviations and terms of Computer Networks

Introduction to computer networking

Data Link Control Protocols

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

Hands-On Network Security: Practical Tools & Methods

CS152 Computer Architecture and Engineering Lecture 21 Buses and Networks Dave Patterson (

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

CS152 Computer Architecture and Engineering Lecture 21 Buses and Networks Dave Patterson (

CS 428/528 Computer Networks Lecture 01. Yan Wang

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

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

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

Summary of MAC protocols

Tutorial 2 : Networking

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

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

Introduction and Layered Network Architecture. EEE 538 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department

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

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

Networking Link Layer

Communications Software. CSE 123b. CSE 123b. Spring Lecture 1: Introduction & Review. Stefan Savage.

Networking interview questions

Class Overview. CSE 123b Communications Software. Some hints. Some hints (2) Administrativa. Course material. Winter 2002

Announcements. TAs office hours: Mohamed Grissa: Mohamed Alkalbani:

EEC-484/584 Computer Networks

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

User Datagram Protocol

internet technologies and standards

CS162 Operating Systems and Systems Programming Lecture 22. Networking II

CS61C Machine Structures Lecture 37 Networks. No Machine is an Island!

Data & Computer Communication

Medium Access Protocols

Networking Technologies and Applications

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

CSC 401 Data and Computer Communications Networks

Lecture 2: Internet Architecture

Networking and Internetworking 1

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

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

ECE 650 Systems Programming & Engineering. Spring 2018

Network Layer: Control/data plane, addressing, routers

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

CS 268: Internet Architecture & E2E Arguments. Today s Agenda. Scott Shenker and Ion Stoica (Fall, 2010) Design goals.

CS 457 Lecture 11 More IP Networking. Fall 2011

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

Typical Network Uses

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

Announcements. IP Forwarding & Transport Protocols. Goals of Today s Lecture. Are 32-bit Addresses Enough? Summary of IP Addressing.

Page 1. CS194-3/CS16x Introduction to Systems. Lecture 21. Networking II. Review: Networking Definitions

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

UNIT IV -- TRANSPORT LAYER

CS 3516: Computer Networks

IP Packet Switching. Goals of Todayʼs Lecture. Simple Network: Nodes and a Link. Connectivity Links and nodes Circuit switching Packet switching

CS 204: Advanced Computer Networks

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

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

Goal and Outline. Computer Networking. What Do We Need? Today s Story Lecture 3: Packet Switched Networks Peter Steenkiste

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Last time. Wireless link-layer. Introduction. Characteristics of wireless links wireless LANs networking. Cellular Internet access

Transcription:

CS61C L36 I/O : Networks (1) inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 36 I/O : Networks TA Sameer The Yellow Dart Iyengar inst.eecs/~cs61c-ti Next year: Forget Elmo Get a Robot buddy New human-like robots that can recognize faces, hold simple conversations and even play hide and seek will sell for $3000 cnn.com/2006/tec/11/23/robots.tooreal.ap/ I/O Review I/O gives computers their 5 senses I/O speed range is 12.5-million to one Differences in processor and I/O speed synchronize with I/O devices before use Polling works, but expensive processor repeatedly queries devices Interrupts works, more complex device causes an exception, causing to run and deal with the device I/O control leads to Operating Systems CS61C L36 I/O : Networks (2) 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 s of computers ex: file sharing, www, CS61C L36 I/O : Networks (3) ow Big is the Network (2006)? CS61C L36 I/O : Networks (4) ~30 in 273 Soda ~525 in inst.cs.berkeley.edu ~6,400 in eecs & cs.berkeley.edu (1999) ~50,000 in berkeley.edu ~10,000,000 in.edu (2005: ~9,000,000) ~286,500,000 in US (2005: ~217,000,000) (.net.com.edu.arpa.us.mil.org.gov) ~439,000,000 in the world (2005:~317,000,000) Source: Internet Software Consortium: www.isc.org Growth Rate Ethernet Bandwidth 1983 3 mb/s 1990 10 mb/s 1997 100 mb/s 1999 1000 mb/s 2006 10 Gig E Shared vs. Switched Based Networks Shared vs. Switched: Switched: pairs ( point-topoint connections) communicate at same time Shared: 1 at a time (CSMA/CD) Aggregate bandwidth (BW) in ed is many times shared: point-to-point faster since no arbitration, simpler Shared Crossbar Switch en.wikipedia.org/wiki/10_gigabit_ethernet CS61C L36 I/O : Networks (5) CS61C L36 I/O : Networks (6)

CS61C L36 I/O : Networks (7) What makes s work? links connecting es to each other and to computers or devices Computer 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 (61C big idea) 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 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),... CS61C L36 I/O : Networks (8) The Sprint U.S. Topology (2001) Administrivia It s the final countdown <2 weeks left! Last Lecture and Course Surveys on Friday 12/08 Final Review Session on Sunday 12/10 Final Exam on Thursday 12/14 Project 3 grading this week Wednesday, Thursday, Friday Sign up for time slot online CS61C L36 I/O : Networks (9) CS61C L36 I/O : Networks (10) ABCs of Networks: 2 Computers Starting Point: Send bits between 2 computers device app Queue (First In First Out) on each end Can send both ways ( Full Duplex ) One-way information is called alf Duplex Information sent called a message Note: Messages also called packets app A Simple Example: 2 Computers What is Message Format? Similar idea to Instruction Format Fixed size? Number bits? Length Data 8 bit 32 x Length bits eader (Trailer): information to deliver message : data in message What can be in the data? anything that you can represent as bits values, chars, commands, addresses... CS61C L36 I/O : Networks (11) CS61C L36 I/O : Networks (12)

CS61C L36 I/O : Networks (13) 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 eader ABCs: many computers device application es and routers interpret the header in order to deliver the packet source encodes and destination decodes content of the payload application CS61C L36 I/O : Networks (14) 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 eader CS61C L36 I/O : Networks (15) CMD/ Address /Data Checksum Trailer Learn about Checksums in Math 55/CS 70 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 Net ID Net ID Len ACK INFO eader CS61C L36 I/O : Networks (16) CMD/ Address /Data Checksum Trailer 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) Software Protocol to Send and Receive SW Send steps 1: Application copies data to buffer 2: calculates checksum, starts timer 3: sends data to W and says start SW Receive steps 3: copies data from W to buffer 2: calculates checksum, if OK, send ACK; if not, delete message (sender resends when timer expires) 1: If OK, copies data to user address space, & signals application to continue CS61C L36 I/O : Networks (17) CS61C L36 I/O : Networks (18)

CS61C L36 I/O : Networks (19) Protocol for Networks of Networks? Protocol Family Concept Abstraction to cope with complexity of communication (compare to Abstraction for complexity of computation) Networks are like onions ierarchy 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. Message Logical Logical Message T Message T T Physical Message Message T Message T T CS61C L36 I/O : Networks (20) 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 Protocol for Network of Networks Transmission Control Protocol/Internet Protocol (TCP/IP) This protocol family is the basis of the Internet, a WAN protocol IP makes best effort to deliver TCP guarantees delivery TCP/IP so popular it is used even when communicating locally: even across homogeneous LAN CS61C L36 I/O : Networks (21) CS61C L36 I/O : Networks (22) TCP/IP packet, Ethernet packet, protocols Application sends message Ethernet dr TCP breaks into 64KiB segments, adds 20B header IP adds 20B header, sends to If Ethernet, broken into 1500B packets with headers, trailers (24B) All eaders, trailers have length field, destination,... CS61C L36 I/O : Networks (23) IP eader TCP eader EIP Data TCP data Message Ethernet dr Overhead vs. Bandwidth Networks are typically advertised using peak bandwidth of link: e.g., 100 Mbits/sec Ethernet ( 100 base T ) Software overhead to put message into or get message out of 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 CS61C L36 I/O : Networks (24)

CS61C L36 I/O : Networks (25) And in conclusion Protocol suites allow ing 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 es as well as processors Switch just a specialized computer Trend from shared to ed s to get faster links and scalable bandwidth [Bonus] Example: Network Media Twisted Pair ( Cat 5 ): Fiber Optics Transmitter Is L.E.D or Laser Diode light source Air Copper, 1mm think, twisted to avoid antenna effect Buffer Cladding Total internal reflection Receiver Photodiode Light: 3 parts are cable, light source, light detector Silica: glass or plastic; actually < 1/10 diameter of copper CS61C L36 I/O : Networks (26) [Bonus] Backbone Link App Composition File-sharing is the dominant application on many links! CS61C L36 I/O : Networks (27)