IT 251 Computer Organization and Architecture

Slides:



Advertisements
Similar presentations
IS333, Ch. 26: TCP Victor Norman Calvin College 1.
Advertisements

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.
CS 61C L40 I/O Networks (1) Garcia, Spring 2004 © UCB Lecturer PSOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine.
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
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.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
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.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
Process-to-Process Delivery:
CS61C L36 I/O : Networks (1) Garcia © UCB Senior Lecturer SOE Dan Garcia inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures.
Chapter 2 The Infrastructure. Copyright © 2003, Addison Wesley Understand the structure & elements As a business student, it is important that you understand.
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.
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.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
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.
Lecture Topics: 11/27 Networks Layered Model Ethernet IP.
S305 – Network Infrastructure Chapter 5 Network and Transport Layers.
Ethernet Overview it the IEEE standard for Ethernet.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Protocols and Architecture Slide 1 Use of Standard Protocols.
CS10 L17 Internet II (1) Garcia © UCB Senior Lecturer SOE Dan Garcia cs10.berkeley.edu CS10 : Beauty and Joy of Computing.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Instructor & Todd Lammle
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.
Chapter 5 Network and Transport Layers
Introduction to TCP/IP networking
Lecture (2).
IT 251 Computer Organization and Architecture
Chapter 5 Network and Transport Layers
Process-to-Process Delivery, TCP and UDP protocols
Layered Architectures
TCP/IP Transmission Control Protocol / Internet Protocol
Networking for Home and Small Businesses – Chapter 6
Instructor: Mr. Malik Zaib
Networking for Home and Small Businesses – Chapter 6
Nicholas Weaver & Vladimir Stojanovic
Layer 1 of the TCP/IP protocol stack: Network Access Layer (NAL)
Transport Layer Unit 5.
Transport Layer Our goals:
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
Lecture 4 Communication Network Protocols
Networks Networking has become ubiquitous (cf. WWW)
TCP/IP Protocol Suite: Review
Basic Mechanisms How Bits Move.
CPEG514 Advanced Computer Networkst
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Instructor: Mr. Malik Zaib
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
Chapter 3 Transport Layer
The TCP/IP Model.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Transport Layer 9/22/2019.
Unit – III Network Essentials
Presentation transcript:

IT 251 Computer Organization and Architecture I/O: Network Chia-Chi Teng

I/O speed ranges from one cycle to millions of cycles I/O Review I/O speed ranges from one cycle to millions of cycles 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 Without IO you have a box that generates heat Research - wetware (Brain Interfacing) Polling example - Are we there yet?

Originally sharing I/O devices between computers ex: printers 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, … Original printers were the size of bathrooms - HAD to share FTP was the first time file sharing happened Communicating between people has become dominant, pervasive, ubiquitous - Also IM Last bullet is where a lot of research is happening

How Big is the Network (2007)? ~40 100s 1,000s 100,000? ~10,700,000 ~295,305,818 ~541,677,360 in 275 CTB in it.et.byu.edu in CAEDM in byu.edu in .edu (2005: ~9,000,000) in US (05: ~217E6; 06: ~286.5E6; 07:~259E6) (.net .com .edu .arpa .us .mil .org .gov) in the world 2008: 1971396 .us 1333870 .org 190267719 .net 2193578 .mil 934284 .gov 95448209 .com 3156762 .arpa --------------------- 295,305,818 in all US (2005:~317,000,000; 2006: ~439,000,000; 2007: ~489,000,000) Source: Internet Software Consortium: www.isc.org

? Growth Rate en.wikipedia.org/wiki/10_gigabit_ethernet Ethernet Bandwidth 1983 3 mb/s 1990 10 mb/s 1997 100 mb/s 1999 1000 mb/s 2006 10 Gig E ? Decline due to Virtual Hosting and hosts being hidden behind NATs? en.wikipedia.org/wiki/10_gigabit_ethernet

Shared vs. Switched Based Networks Node Shared Shared vs. Switched: Switched: pairs (“point-to-point” connections) communicate at same time Shared: 1 at a time (CSMA/CD) Aggregate bandwidth (BW) in switched network is many times shared: point-to-point faster since no arbitration, simpler interface Crossbar Switch Node CSMA/CD = Carrier Sense Multiple Access / Collision Detection Bus: On collision, have to wait random amount of time Buses not used very much, inefficient. Switches are much more efficient Bandwidth is like throughput

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 Computer has Network Interface Card (NIC) Sends message through the series of switches, which get the message to recipient Usually draw the series of switches as the “Internet Cloud” - Represents an abstraction, “don’t know” implementation - Send the message through the network, and it will get to where it needs to go Switches use routing tables to know how to get the message to the recipient Layering, redundancy, protocols, and encapsulation as means of abstraction

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), ... LANs use copper wiring, resistance limits transmission length WANs use fiber optic, which can go much farther - Used in the trunk, or the backbone, of the Internet

Administrivia Quiz Next Monday Final 12/15

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 How? Like diagram before - App sends info through NIC - NIC sends through network - Recipient NIC picks it up and passes to app We can hook computers directly to each other using cross over cables Half Duplex example: Walkie-Talkie Note: Optical is half-duplex

A Simple Example: 2 Computers What is Message Format? Similar idea to Instruction Format Fixed size? Number bits? Data Length 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... All file formats worth their salt include header information to give information about what follows Numbers can represent anything! - Big CS61C concept Questions 1) Send 0 bits? - Hey! Hey! - What? - Nothing. 2) What if bigger than 255 words? - Break it up into multiple pieces - Include sequencing information… HALF WAY MARK!

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! CMD/ Address /Data Net ID Dest. Source Len Only allow for 256 computers, but we can grow that 8 bits 32*n bits Header Payload

source encodes and destination decodes content of the payload ABCs: many computers network interface device OS application switches and routers interpret the header in order to deliver the packet source encodes and destination decodes content of the payload Very brief description

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. Header Payload Checksum Trailer CMD/ Address /Data Net ID Len Wireless can include a lot of noise Need a balanced operation - AND? No - OR? No - XOR! XOR is magical - Do a parallel XOR on columns of data - It will count the # of 1s in that column as odd or even - If a bit changes in that column, we’ll know Tradeoff of different size checksums? - Wider is more accurate - 2 changes in a column cancel out - Less likely to have this if more, shorter columns We can tell in which column an error occured Learn about Checksums in Math 55/CS 70…

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 Header Payload Checksum Trailer CMD/ Address /Data Net ID Len ACK INFO Pony Express - What if delivery guy never delivers? Certified Mail - Get a notice on arrival of mail - What if the notice gets lost? - This is digital, bits are free - send it again! If checksum fails, we might as well have not gotten the message - Don’t send a “Bad Ack” - Saves on traffic CS70 / Math 55 have better methods

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 Protocol is like register calling conventions The examples before with the header information is a protocol in some sense

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 Timer is counting down on Time To Live (TTL) - You can see this in Pings

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. WS companies used TCP/IP even over LAN Because early Ethernet controllers were cheap, but not reliable

Protocol Family Concept Message Logical Message Message T H Actual Logical T H Message Actual Physical

OSI Model http://www.petri.co.il/images/osi_model.JPG

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

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 IP makes best effort to deliver Packets can be lost, corrupted TCP guarantees delivery WS companies used TCP/IP even over LAN Because early Ethernet controllers were cheap, but not reliable TCP and IP fundamentally different but very connected TCP hires IP guys - GO! - IP guy falls into a hole - TCP hires another IP guy -IP gus falls into a hole - Hire another!

Socket S/W Interface DMA Interrupt Handler Connection: IP address + Port number Send/Receive buffer (async) DMA Between socket buffer and NIC Interrupt Handler Network device driver Send complete, data received Check status register

TCP/IP packet, Ethernet packet, protocols Application sends message EH Ethernet Hdr IP Header IP Data TCP breaks into 64KiB segments, adds 20B header TCP data TCP Header IP adds 20B header, sends to network Message If Ethernet, broken into 1500B packets with headers, trailers (24B) Question from student: Is there a TCP & IP header in every Ethernet packet? All Headers, trailers have length field, destination, ...

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 (ms), want to send 1000 Bytes over “100 Mbit/s” Ethernet Network transmission time: 1000Bx8b/B /100Mb/s = 8000b / (100b/ms) = 80 ms Effective bandwidth: 8000b/(320+80)ms = 20 Mb/s

Protocol suites allow networking of heterogeneous components 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 A lot more in IT347