CS 416: Operating Systems Design April 11, 2011

Similar documents
Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License. Page 2. Page 3.

Distributed Systems. 02. Networking. Paul Krzyzanowski. Rutgers University. Fall 2017

ROYAL INSTITUTE OF INFORMATION & MANAGEMENT

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

cs144 Midterm Review Fall 2010

ECE 650 Systems Programming & Engineering. Spring 2018

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

Network and Security: Introduction

Data & Computer Communication

More on LANS. LAN Wiring, Interface

FINAL EXAM REVIEW PLEASE NOTE THE MATERIAL FROM LECTURE #16 at the end. Exam 1 Review Material

ELC 537 Communication Networks

Introduction to LAN Topologies Cabling. 2000, Cisco Systems, Inc. 3-1

NETWORK SECURITY ITEC 435

Introduction to TCP/IP networking

Computer Network. Chapter #1. Computer Network: A large number of separate but interconnected computers to share the resources. Goals.

Chapter 10: Local Area Networks

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

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

Outline: Connecting Many Computers

IEEE 802 LANs SECTION C

Typical Network Uses

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Defining Networks with the OSI Model. Module 2

Networking Background

Chapter 6: DataLink Layer - Ethernet Olivier Bonaventure (2010)

Raj Jain. The Ohio State University Columbus, OH

Chapter 9. Ethernet. Part II

Computer Networks (Introduction to TCP/IP Protocols)

Introduction to Computer Science 2017 Networking. Sören Schwertfeger

Introduction to Networking

COMPONENTS OF DATA COMMUNICATION

Chapter -4 OSI Reference Model

STEVEN R. BAGLEY PACKETS

ECE 4450:427/527 - Computer Networks Spring 2017

Networking interview questions

Section 1.1: Networking Overview

Review: Networking Fall Final

Summary of MAC protocols

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

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

Need For Protocol Architecture

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

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

Link Layer and Ethernet

THE OSI MODEL. Application Presentation Session Transport Network Data-Link Physical. OSI Model. Chapter 1 Review.

ITP 140 Mobile Applications Technologies. Networks

Data Link Layer, Part 3 Medium Access Control. Preface

ก ก Information Technology II

Principles behind data link layer services:

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

Network Architecture

IT 4504 Section 4.0. Network Architectures. 2008, University of Colombo School of Computing 1

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

Lecture 11: Networks & Networking

Unit 10. Networks. Copyright 2005 Heathkit Company, Inc. All rights reserved.

Need For Protocol Architecture

OSI Model. Teran Subasinghe MBCS, Bsc.(Hons) in Computer Science - University of Greenwich, UK

Campus Network Design

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

Principles behind data link layer services:

Local Area Networks. Aloha Slotted Aloha CSMA (non-persistent, 1-persistent, p-persistent) CSMA/CD Ethernet Token Ring

Principles behind data link layer services:

Medium Access Protocols

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

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

Chapter 4: Network Access

Link Layer and Ethernet

Ethernet Basics. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

A LAN is a high-speed data network that covers a relatively small geographic area. It typically connects workstations, personal computers, printers,

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

ECE4110 Internetwork Programming. Introduction and Overview

Principles behind data link layer services

M242 COMPUTER NETWORS AND SECURITY

Special expressions, phrases, abbreviations and terms of Computer Networks

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 10 Networking Essentials

Networks 15.2 Multiplexing Technologies Access Networks 15.5 Common Peripheral Interfaces

A+ Guide to Managing & Maintaining Your PC, 8th Edition. Chapter 16 Networking Types, Devices, and Cabling

Network Architecture. TOC Architecture

Local Area Network Overview

The Internet Protocol (IP)

Part3. Local Area Networks (LAN)

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 10 Networking Essentials

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

Chapter Seven. Local Area Networks: Part 1. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Guide to Networking Essentials, 6 th Edition. Chapter 6: Network Reference Models and Standards

1: Review Of Semester Provide an overview of encapsulation.

EECS Introduction to Computer Networking. Local Area Networks / Ethernet. Hub

Ch 7. Network Interface

Cisco Cisco Certified Network Associate (CCNA)

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

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

2. LAN Topologies Gilbert Ndjatou Page 1

Direct Link Communication II: Wired Media. Multi-Access Communication

Internetworking Concepts Overview. 2000, Cisco Systems, Inc. 2-1

Essential Elements of Medical Networks. D. J. McMahon rev cewood

OSI Reference Model. Computer Networks lab ECOM Prepared By : Eng. Motaz Murtaja Eng. Ola Abd Elatief

Lecture 8: Switched Ethernet and Collision Domains

Lecture Outline. Lecture 2. OSI model and networking. The OSI model and networking. The OSI model and networking. The OSI model and networking

Transcription:

Modes of connection Operating Systems Design 3. Client-Server Networking Paul Krzyzanowski pxk@cs.rutgers.edu Circuit-switched dedicated path guaranteed (fixed) bandwidth [almost] constant latency Packet-switched shared connection data is broken into chunks called packets each packet contains destination address available bandwidth channel capacity variable latency What s in the data? Protocols For effective communication same language, same conventions For computers: electrical encoding of data where is the start of the packet? which bits contain the length? is there a checksum? where is it? how is it computed? what is the format of an address? byte ordering These instructions and conventions are known as protocols Protocols Exist at different levels understand format of address and how to compute a checksum versus humans vs. whales different wavelengths Layering To ease software development and maximize flexibility: Network protocols are generally organized in layers Replace one layer without replacing surrounding layers Higher-level software does not have to know how to format an Ethernet packet request web page French vs. Hungarian or even know that Ethernet is being used 0 Paul Krzyzanowski

Layering OSI Reference Model: Layer Most popular model of guiding (not specifying) protocol layers is OSI reference model Transmits and receives raw data to communication medium Does not care about contents voltage levels, speed, connectors Adopted and created by ISO 7 layers of protocols Examples: RS-3, 0BaseT OSI Reference Model: Layer Detects and corrects errors Organizes data into packets before passing it down. Sequences packets (if necessary) Accepts acknowledgements from receiver OSI Reference Model: Layer 3 Relay and route information to destination Manage journey of packets and figure out intermediate hops (if needed) 3 Network Examples: Ethernet MAC, PPP Examples: IP, X.5 OSI Reference Model: Layer Transport Provides a consistent interface for end-to-end (application-toapplication) communication. Manages flow control Network interface is similar to a mailbox OSI Reference Model: Layer 5 5 Session Transport Services to coordinate dialogue and manage data exchange Software implemented switch Manage multiple logical connections Keep track of who is talking: establish & end communications 3 Network 3 Network Examples: TCP, UDP Examples: HTTP., SSL, NetBIOS 0 Paul Krzyzanowski

OSI Reference Model: Layer 6 OSI Reference Model: Layer 7 6 Presentation Data representation Concerned with the meaning of data bits 7 6 Application Presentation Collection of application-specific protocols 5 Session Convert between machine representations 5 Session Transport Transport 3 Network 3 Network Examples: XDR, ASN., MIME Examples: email (SMTP, POP, IMAP) file transfer (FTP) directory services (LDAP) Local Area Network (LAN) Some networking terminology Communications network small area (building, set of buildings) same, sometimes shared, transmission medium high data rate (often): Mbps Gbps Low latency devices are peers any device can initiate a data transfer with any other device Most elements on a LAN are workstations endpoints on a LAN are called nodes Connecting nodes to LANs Connecting nodes to LANs network computer network computer? Adapter expansion slot (PCI, PC Card, USB dongle) usually integrated onto main board Network adapters are referred to as Network Interface Cards (NICs) or adapters or Network Interface Component 0 Paul Krzyzanowski 3

6 MHz CS 6: Operating Systems Design April, 0 Media Wires (or RF, IR) connecting together the devices that make up a LAN Twisted pair Most common: STP: shielded twisted pair UTP: unshielded twisted pair (e.g. Telephone cable, Ethernet 0BaseT) Coaxial cable Thin (similar to TV cable) Thick (e.g., 0Base5, ThickNet) Fiber Wireless Hubs, routers, bridges Hub Device that acts as a central point for LAN cables Take incoming data from one port & send to all other ports Switch Moves data from input to output port. Analyzes packet to determine destination port and makes a virtual connection between the ports. Concentrator or repeater Regenerates data passing through it Bridge Connects two LANs or two segments of a LAN Connection at data link layer (layer ) Router Determines the next network point to which a packet should be forwarded Connects different types of local and wide area networks at network layer (layer 3) Transmission networks Broadband: RF broadcasts Baseband All nodes share access to network media on an equal basis Data uses entire bandwidth of media Broadband Data takes segment of media by dividing media into channels (frequency bands) http://www.ntia.doc.gov/osmhome/allochrt.pdf Broadband/Baseband: Cable TV DOCSIS Modem Broadband 55-55 MHz: analog channels -78 553-865 MHz: digital channels 79-36 Baseband within Broadband audio video +5.75 MHz +.5 MHz cable tuner demodulator modulator MAC DOCSIS: Data Over Cable Service Interface Specification (approved by ITU in 998; DOCSIS.0 in 00; DOCSIS 3.0 in 006) Downstream: 50-750 MHz range, 6 MHz bandwidth - up to 38 Mbps - received by all modems Upstream: 5- MHz range - 30.7 Mbps (0 Mbps in DOCSIS.0,.) - data delivered in timeslots (TDM) DOCSIS 3.0 features channel bonding for greater bandwidth network interface ethernet interface (to PC) Restrictions on upload/download rates set by transferring a configuration file to the modem via TFTP when it connects to the provider. CPU 0 Paul Krzyzanowski

Baseband: Ethernet Standardized by IEEE as 80.3 standard Speeds: 00 Mbps - Gbps typical today Ethernet: 0 Mbps Fast Ethernet: 00 Mbps Gigabit Ethernet: Gbps 0 Gbps, 00 Gbps Network access method is Carrier Sense Multiple Access with Collision Detection (CSMA/CD) Node first listens to network to see if busy Send Sense if collision occurred Retransmit if collision Ethernet media Bus topology (original design) originally thick coax (max 500m): 0Base5 then thin coax (<00m): 0Base BNC connector Star topology (central hub or switch) 8 pin RJ-5 connector, UTP cable, 00 meters range 0BaseT for 0 Mbps 00BaseT for 00 Mbps 000BaseT for Gbps Cables CAT-5: unshielded twisted pair CAT-5e: designed for Gbps CAT-6: 3 gauge conductor + separator for handling crosstalk better Wireless Ethernet media Wireless (star topology) 80. (- Mbps) 80.b ( Mbps - -5 Mbps realized) 80.a (5 Mbps - -8 Mbps realized) 80.g (5 Mbps - 3 Mbps realized) 80.n (08 Mbps - 30-7 Mbps realized) Client Server Communication ethernet Access Point Clients and Servers Send messages to applications not just machines Client must get data to the desired process server process must get data back to client process Machine address versus Transport address To offer a service, a server must get a transport address for a particular service well-defined location 0 Paul Krzyzanowski 5

Transport provider Connection-oriented Protocols Layer of software that accepts a network message and sends it to a remote machine Two categories: connection-oriented protocols. establish connection. [negotiate protocol] 3. exchange data. terminate connection connectionless protocols Connection-oriented Protocols Connectionless Protocols. establish connection. [negotiate protocol] 3. exchange data. terminate connection analogous to phone call dial phone number [decide on a language] speak hang up - no call setup - send/receive data (each packet addressed) - no termination virtual circuit service provides illusion of having a dedicated circuit messages guaranteed to arrive in-order application does not have to address each message vs. circuit-switched service Connectionless Protocols - no call setup - send/receive data (each packet addressed) - no termination datagram service analogous to mailbox drop letter in mailbox (each letter addressed) client is not positive whether message arrived at destination no state has to be maintained at client or server cheaper but less reliable than virtual circuit service Ethernet Layers & of OSI model () Cables: 0Base-T, 00Base-T, 000Base-T, etc. () Ethernet bridging (via bridges) Data frame parsing Data frame transmission Error detection Unreliable, connectionless communication 0 Paul Krzyzanowski 6

Ethernet IP Internet Protocol 8-bit ethernet address Variable-length packet 58-byte MTU 8-byte, 500 bytes data Jumbo packets for Gigabit ethernet 9000-byte MTU dest addr src addr frame type Maximum transmission unit data (payload) CRC Born in 969 as a research network of machines Funded by DoD s ARPA Goal: Build an efficient fault-tolerant network that could connect heterogeneous machines and link separately connected networks. 6 bytes 6 bytes 6-500 bytes 8 bytes + data Internet Protocol Connectionless protocol designed to handle the interconnection of a large number of local and wide-area networks that comprise the internet IP Addressing Each machine on an IP network is assigned a unique 3-bit number for each network interface: IP address, not machine address IP can route from one physical network to another A machine connected to several physical networks will have several IP addresses One for each network IP Address space IP Addressing: networks & hosts 3-bit addresses > billion addresses! Routers would need a table of billion entries cs.rutgers.edu 8.6.. 80 06 0 0 remus.rutgers.edu 8.6.3.3 80 06 0D 03 Design routing tables so one entry can match multiple addresses hierarchy: addresses physically close will share a common prefix network # host # first 6 bits identify Rutgers external routers need only one entry route 8.6.*.* to Rutgers 0 Paul Krzyzanowski 7

IP Addressing: networks & hosts IP Addressing IP address network #: identifies network machine belongs to host #: identifies host on the network use network number to route packet to correct network use host number to identify specific machine Expectation: a few big networks and many small ones create different classes of networks use leading bits to identify network class leading bits bits for net # bits for host A 0 7 (8) (6M) B 0 (6K) 6 (6K) C 0 (M) 8 (56) To allow additional networks within an organization: use high bits of host number for a network within a network subnet IP Addressing IBM: 9.0.0.0 9.55.55.55 000000 xxxxxxxx xxxxxxxx xxxxxxxxx network # 8 bits Subnet within IBM (internal routers only) host # bits 000000 0000 xxxxxx xxxxxxxxx network # 8 bits host # bits Running out of addresses Huge growth Wasteful allocation of networks Lots of unused addresses: Does IBM need 6.7M IP addresses? Every machine connected to the internet needed a worldwide-unique IP address Solutions: CIDR, NAT, IPv6 IPv6 vs. IPv IPv byte (3 bit) addresses IPv6: 6-byte (8 bit) addresses 3.6 x 0 38 possible addresses 8 x 0 8 times more addresses than IPv -bit priority field Flow label (-bits) IP Transport Layer Protocols 0 Paul Krzyzanowski 8

0 bytes 0 bytes Transport-layer protocols over IP TCP Transmission Control Protocol IP sends packets to machine No mechanism for identifying sending or receiving application Transport layer uses a port number to identify the application TCP Transmission Control Protocol UDP User Datagram Protocol Virtual circuit service (connection-oriented) Send acknowledgement for each received packet Checksum to validate data Data may be transmitted simultaneously in both directions UDP User Datagram Protocol IP Datagram service (connectionless) Data may be lost device IP TCP/UDP IP data Data may arrive out of sequence payload Checksum for data but no retransmission Bad packets dropped vers hlen svc type (TOS) total length fragment identification flags fragment offset TTL protocol checksum source IP address destination IP address options and pad Headers: TCP & UDP Device (Ethernet II) device IP TCP/UDP IP data device IP TCP/UDP IP data payload payload TCP UDP hdr len src port seq number ack number dest port - flags window src port dest port seg length checksum 8 bytes dest addr src addr frame type 6 bytes 6 bytes 8 bytes + data data 6-500 bytes CRC checksum urgent ptr options and pad 0 Paul Krzyzanowski 9

The End 0 Paul Krzyzanowski 0