CS61C L36 I/O : Networks (1) Garcia © UCB Senior Lecturer SOE Dan Garcia www.cs.berkeley.edu/~ddgarcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures.

Slides:



Advertisements
Similar presentations
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
Advertisements

Data Communications System By Ajarn Preecha Pangsuban.
Chapter 7 Data Link Layer
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
CS61C L38 I/O : Networks (1) Garcia © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures.
CS61C L27 I/O & Networks (1) Beamer, Summer 2007 © UCB Scott Beamer, Instructor inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #27 I/O.
CS61C L39 I/O : Networks (1) Garcia, Fall 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine.
CS61C L36 I/O : Networks (1) Iyengar © UCB TA Sameer “The Yellow Dart” Iyengar inst.eecs/~cs61c-ti inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures.
ENGS 116 Lecture 191 Interconnection Networks Vincent H. Berk November 14, 2005 Reading for Friday: Reading for Monday:
CS 61C L40 I/O Networks (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine.
Shalini Bhavanam. Key words: Basic Definitions Classification of Networks Types of networks Network Topologies Network Models.
CS 61C L26 Disks & Networks (1) A Carle, Summer 2006 © UCB inst.eecs.berkeley.edu/~cs61c/su06 CS61C : Machine Structures Lecture #26: Disks & Networks.
CS430 Computer Architecture 1 CS430 Computer Architecture --Networks-- William J. Taffe using the slides of David Patterson.
CS61C L15 Networks © UC Regents 1 CS61C - Machine Structures Lecture 15 - Networks October 18, 2000 David Patterson
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
EE 4272Spring, 2003 Protocols & Architecture A Protocol Architecture is the layered structure of hardware & software that supports the exchange of data.
04/26/2004CSCI 315 Operating Systems Design1 Computer Networks.
CS61C L36 I/O : Networks (1) Zimmer © UCB TA Brian Zimmer inst.eecs/~cs61c-th inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 36 I/O.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
CS61C L37 I/O : Networks (1) Kronrod © UCB TA Alex Kronrod inst.eecs/~cs61c-te inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 37 I/O.
Chapter 2 Network Models.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
Laudon & Laudon: Canadian Edition
Chapter 2 The Infrastructure. Copyright © 2003, Addison Wesley Understand the structure & elements As a business student, it is important that you understand.
CS 61C: Great Ideas in Computer Architecture (Machine Structures) Lecture 38: IO and Networking Instructor: Dan Garcia
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
Module 2: Information Technology Infrastructure
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Network Services Networking for Home & Small Business.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Mukesh N. Tekwani Elphinstone College Mumbai
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
TCP1 Transmission Control Protocol (TCP). TCP2 Outline Transmission Control Protocol.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_b Protocol Layering Instructor: Dr. Li-Chuan Chen Date: 09/15/2003 Based in part upon slides of Prof.
Transport Layer Moving Segments. Transport Layer Protocols Provide a logical communication link between processes running on different hosts as if directly.
UNDERSTANDING THE HOST-TO-HOST COMMUNICATIONS MODEL - OSI LAYER & TCP/IP MODEL 1.
MODULE I NETWORKING CONCEPTS.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
Networking Basics CCNA 1 Chapter 11.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Network Technologies Definitions –Network: physical connection that allows two computers to communicate –Packet: a unit of transfer »A sequence of bits.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Networks Network Components. Learning Objectives Describe different media for transmitting data and their carrying capabilities. Explain the different.
CS10 L17 Internet II (1) Garcia © UCB Senior Lecturer SOE Dan Garcia cs10.berkeley.edu CS10 : Beauty and Joy of Computing.
IT 210: Web-based IT Fall 2012 Lecture: Network Basics, OSI, & Internet Architecture.
Transport Protocols.
Networks and the Internet Topic 3. Three Important Networking Technologies Networks, Internet, WWW.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
UDP : User Datagram Protocol 백 일 우
Data Communication Network Models
CS 457 – Lecture 3 Link Layer Protocols Fall 2011.
Chapter 5 Network and Transport Layers
IT 251 Computer Organization and Architecture
IT 251 Computer Organization and Architecture
Layered Architectures
Networking for Home and Small Businesses – Chapter 6
Networking for Home and Small Businesses – Chapter 6
Nicholas Weaver & Vladimir Stojanovic
CS61C Anatomy of I/O Devices: Networks Lecture 14
Data Link Issues Relates to Lab 2.
Process-to-Process Delivery:
Practical Issues for Commercial Networks
CPEG514 Advanced Computer Networkst
Networking for Home and Small Businesses – Chapter 6
CDA-5155 Computer Architecture Principles Fall 2000
OSI Reference Model Unit II
Process-to-Process Delivery: UDP, TCP
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Presentation transcript:

CS61C L36 I/O : Networks (1) Garcia © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture 38 I/O: Networks Drop your Cell Plan, use WiFi  ––––––––––––––––– In response to the high ––––––––––––––– cost of cellular data plans, and the near-ubiquity of WiFi availability (at home, work, campus, other places), some are dropping their cell plans, and making use of Google Voice, Skype, a FreedomPop hotspot, and a tablet for calls & texts.

CS61C L36 I/O : Networks (2) Garcia © UCB 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 OS to run and deal with the device I/O control leads to Operating Systems

CS61C L36 I/O : Networks (3) Garcia © UCB Why Networks? Originally sharing I/O devices between computers ex: printers Then communicating between computers ex: file transfer protocol Then communicating between people ex: Then communicating between networks of computers ex: file sharing, www, …

CS61C L36 I/O : Networks (4) Garcia © UCB Growth Rate Ethernet Bandwidth mb/s mb/s mb/s mb/s Gig E en.wikipedia.org/wiki/10_gigabit_ethernet ?

CS61C L36 I/O : Networks (5) Garcia © UCB Shared vs. Switched Based Networks Shared vs. Switched: Shared: 1 at a time (CSMA/CD) Switched: pairs (“point-to- point” connections) communicate at same time Aggregate bandwidth (BW) in switched network is many times shared: point-to-point faster since no arbitration, simpler interface Node Shared Crossbar Switch Node

CS61C L36 I/O : Networks (6) Garcia © UCB What makes networks work? links connecting switches to each other and to computers or devices Computer 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 (61C big idea)

CS61C L36 I/O : Networks (7) Garcia © UCB 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 km) (peak) Data Rate: 1.5 Mb/s to Mb/s Run, installed by telecommunications companies (Sprint, UUNet[MCI], AT&T) Wireless Networks (LAN),...

CS61C L36 I/O : Networks (8) Garcia © UCB Administrivia Crunch time Last Lecture and Course Surveys on Friday Review Session M 12/8 12-3pm, 155 Dwinelle Final Exam Tu 12/ pm, HERE! Do the performance competition!

CS61C L36 I/O : Networks (9) Garcia © UCB ABCs of Networks: 2 Computers Starting Point: Send bits between 2 computers 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 network interface device OS app OS app

CS61C L36 I/O : Networks (10) Garcia © UCB A Simple Example: 2 Computers What is Message Format? Similar idea to Instruction Format Fixed size? Number 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... 8 bit 32 x Length bits Data Length

CS61C L36 I/O : Networks (11) Garcia © UCB 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! 8 bits 32*n bits 8 bits HeaderPayload CMD/ Address /DataNet ID Dest.Source Len

CS61C L36 I/O : Networks (12) Garcia © UCB ABCs: many computers switches and routers interpret the header in order to deliver the packet source encodes and destination decodes content of the payload network interface device OS application OS application

CS61C L36 I/O : Networks (13) Garcia © UCB 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. HeaderPayload Checksum Trailer CMD/ Address /Data Net ID Len Learn about Checksums in Math 55/CS 70…

CS61C L36 I/O : Networks (14) Garcia © UCB 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 HeaderPayload Checksum Trailer CMD/ Address /Data Net ID Len ACK INFO

CS61C L36 I/O : Networks (15) Garcia © UCB 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

CS61C L36 I/O : Networks (16) Garcia © UCB 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

CS61C L36 I/O : Networks (17) Garcia © UCB Protocol for Networks of Networks? Networks are like onions. They stink? Yes. No! Oh, they make you cry. No!… Layers. Onions have layers. Networks have layers. 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.)

CS61C L36 I/O : Networks (18) Garcia © UCB Protocol Family Concept Message TH TH THTH Actual Physical MessageTH TH Actual Logical

CS61C L36 I/O : Networks (19) Garcia © UCB Protocol Family Concept Key to protocol families is that communication occurs logically at the same level of the protocol, called peer-to- peer… …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

CS61C L36 I/O : Networks (20) Garcia © UCB 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 en.wikipedia.org/wiki/IP_over_Avian_Carriers

CS61C L36 I/O : Networks (21) Garcia © UCB Message TCP/IP packet, Ethernet packet, protocols Application sends message TCP data TCP Header IP Header IP Data EH Ethernet Hdr 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,...

CS61C L36 I/O : Networks (22) Garcia © UCB 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

CS61C L36 I/O : Networks (23) Garcia © UCB Example: Network Media Copper, 1mm think, twisted to avoid antenna effect Twisted Pair (“Cat 5”): Light: 3 parts are cable, light source, light detector Fiber Optics Transmitter Is L.E.D or Laser Diode Receiver – Photodiode light source Silica: glass or plastic; actually < 1/10 diameter of copper Total internal reflection Air Cladding Buffer

CS61C L36 I/O : Networks (24) Garcia © UCB 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 Interested? -EE122 (CS-based in Fall, EE–based in Spring)

CS61C L36 I/O : Networks (25) Garcia © UCB [Bonus] TCP/IP in action Creating a Packet: TCP IP Header TCP Header

CS61C L36 I/O : Networks (26) Garcia © UCB OSI Model

CS61C L36 I/O : Networks (27) Garcia © UCB OSI Model