Lecture Topics: 11/27 Networks Layered Model Ethernet IP.

Slides:



Advertisements
Similar presentations
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Advertisements

Networks and Stuff Networks and wiring ‘em. Networks n Connecting things together n Can be: –Computers –Embedded devices –Telephones –Radios –TV’s –Anything!
© 2002 JW Ryder CS 428 Computer Networks 1 Ethernet Properties 10Mbps/100Mbps broadcast bus technology –Bus: all stations share single channel –Broadcast:
IP: The Internet Protocol
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
Department of Computer Engineering University of California at Santa Cruz Networking Systems (1) Hai Tao.
Internet -- network of networks –network delivers packets (& locates nodes) –router (gateway) moves packets between networks –IP interoperability on top.
Networking Theory (Part 1). Introduction Overview of the basic concepts of networking Also discusses essential topics of networking theory.
1 Computer Networks Local Area Networks. 2 A LAN is a network: –provides Connectivity of computers, mainframes, storage devices, etc. –spans limited geographical.
Spring 2002CS 4611 Shared Access Networks Outline Bus (Ethernet) Token ring (FDDI) Wireless (802.11)
EEC-484/584 Computer Networks Lecture 13 Wenbing Zhao
5-1 Data Link Layer r Today, we will study the data link layer… r This is the last layer in the network protocol stack we will study in this class…
EEC-484/584 Computer Networks Lecture 14 Wenbing Zhao
CS335 Networking & Network Administration Tuesday, April 20, 2010.
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
COMPUTER NETWORKS.
1 Computer Networks Course: CIS 3003 Fundamental of Information Technology.
SIMS-201 LAN Basics, MANs, WANs.
Network Topologies An introduction to Network Topologies and the Link Layer.
Chapter 4: Managing LAN Traffic
Chapter 2 The Infrastructure. Copyright © 2003, Addison Wesley Understand the structure & elements As a business student, it is important that you understand.
5: DataLink Layer5-1 LAN technologies Data link layer so far: m services, error detection/correction, multiple access Next: LAN technologies m addressing.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 17.
Introduction1-1 Data Communications and Computer Networks Chapter 5 CS 3830 Lecture 27 Omar Meqdadi Department of Computer Science and Software Engineering.
Section 4 : The OSI Network Layer CSIS 479R Fall 1999 “Network +” George D. Hickman, CNI, CNE.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Introduction network Protocol
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Network Technologies Chapter 2. Approaches to Network Communication Connection-Oriented –Circuit-switched –A dedicated connection (circuit) is formed.
1 Next Few Classes Networking basics Protection & Security.
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
Lecture 3 Overview. Protocol An agreed upon convention for communication both endpoints need to understand the protocol. Protocols must be formally defined.
Review the key networking concepts –TCP/IP reference model –Ethernet –Switched Ethernet –IP, ARP –TCP –DNS.
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
Data Link Layer Moving Frames. Link Layer Protocols: ethernet, wireless, Token Ring and PPP Has node-to-node job of moving network layer.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 21.
ECE453 – Introduction to Computer Networks Lecture 17 – Top – Down Approach (A Review)
Network Protocols n ISO OSI 7-layer model n TCP/IP suite l TCP/UDP l IP l Ethernet/Token Ring l ICMP.
William Stallings Data and Computer Communications
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.
Networks and Distributed Systems Mark Stanovich Operating Systems COP 4610.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
Networks. Ethernet  Invented by Dr. Robert Metcalfe in 1970 at Xerox Palo Alto Research Center  Allows group of computers to communicate in a Local.
Review of key networking techniques: –Reliable communication over unreliable channels –Error detection and correction –Medium access control –routing –Congestion.
Review. Layers Physical layer – sending bits from one place to another, ensuring an okay BER Data link layer – encapsulate information bits into frames,
CTC 228 – Computer Networks Fall 2015 Instructor: Robert Spengler.
Networks and Distributed Systems Sarah Diesburg Operating Systems COP 4610.
1 Multiple Access: Ethernet Section Point-to-Point vs. Broadcast Media Point-to-point –PPP for dial-up access –Point-to-point link between Ethernet.
Lecture Topics: 11/29 IP UDP TCP DNS. Homework 9 Write a simple web server –not as hard as it sounds Specification out tonight Skeleton code out by tomorrow.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
COMPUTER NETWORKS Lecture-8 Husnain Sherazi. Review Lecture 7  Shared Communication Channel  Locality of Reference Principle  LAN Topologies – Star.
CS 457 – Lecture 3 Link Layer Protocols Fall 2011.
Instructor & Todd Lammle
Data Link Layer Lower Layers Local Area Network Standards
Link Layer 5.1 Introduction and services
Chapter 16 – Networking Outline 16.1 Introduction
A quick intro to networking
Getting Connected (Chapter 2 Part 3)
Distributed Systems CS
Local Area Networks: Topologies
CS 457 – Lecture 6 Ethernet Spring 2012.
Topic 5: Communication and the Internet
Getting Connected (Chapter 2 Part 3)
ECE453 – Introduction to Computer Networks
CS4470 Computer Networking Protocols
Protocol layering and data
Computer Network Overview
Network Architecture for Cyberspace
Protocol layering and data
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Presentation transcript:

Lecture Topics: 11/27 Networks Layered Model Ethernet IP

What is a network? A network allows computers to communicate There are lots of different views of a network System Area Network (computers in the same room) Local Area Network (computers in the same building) Wide Area Network (computers on the same planet) All basically the same idea: one computer sends another computer a message

What is a protocol? A protocol is a common standard that determines how two machines communicate Many different types of protocols low level (transfer bits between two connected machines, e.g. Ethernet) middle level (transfer bits between two unconnected machines, e.g. IP) high level (do something useful, e.g. HTTP get a web page)

OSI Layered Network Model Layering of protocols is good enforces modularity (easier to make changes) layers don’t need to know details of higher or lower layers Physical layer getting raw bits from one node to another coaxial, fiber optics, wireless Data link layer groups bits together to transmit between nodes on a network Ethernet, PPP, SLIP Network layer transmits packets between networks (IP) Transport layer sequencing and acknowledgment of received data (UPD,TCP) Application layer telnet, Internet Explorer

Protocol Stack These layers comprise the protocol stack Each layer of the stack adds extra info to the packet Application layer Application Data IP Header TCP Header Ethernet Header Checksum Ethernet Frame IP Datagram TCP Segment Transport layer Network layer Data link layer

Ethernet Packets Ethernet header includes the network address of the source and destination hardwired and globally unique the type of the packet (e.g. IP or ARP) Ethernet checksum used to detect errors is a hash of the entire packet when a packet is received the hash is checked with the CRC 6 bytes Destination Address Source Address Type 4 bytes CRC Ethernet Header IP Header Application Data TCP Header Ethernet Checksum Ethernet Frame

Ethernet Protocol defining how to send packets within a LAN (local area network) Developed at Xerox PARC in early ’70s Packet based, distributed administration A broken node does not affect the network CSMA/CD (Carrier Sense, Multiple Access, Collision Detection) Basic idea: Wait for line to become quiet While transmitting, check if someone else was transmitting If someone else was transmitting, stop and wait before retransmitting

Multiple Access All nodes are connected to the same shared wire All nodes receive all packets A destination address distinguishes addresses are 48 bits and are globally unique Example: If A sends a packet, it is received by both B and C A B C

Carrier Sense Nodes can sense when the wire is being used A node waits to send if someone else is sending A B C B wants to send, but can’t b/c A is sending A B C A finishes sending A B C B can send after A is finished What’s the problem?

Collision Detection Nodes detect if there are multiple senders A B C B and C want to send, but can’t b/c A is sending A finishes sending B and C both send at the same time B and C detect that there was a collision

After Collision Detection B and C jam the Ethernet to make sure all nodes see the collision A B C B and C wait a random amount of time before sending again A B C C happens to wait less time and sends first A B C B waits for C to finish and then sends A B C

Multiple Collisions B and C detect a collision and jam Ethernet B and C wait a random amount of time Random[0,WaitTime] A B C B and C happen to collide again A B C B and C double the amount of time to wait Random[0,2*WaitTime] A B C A B C B happens to send first A B C C waits for B to finish and then sends A B C

Minimum Packet Size Sender cannot sense a collision if packets are too small A B A and B send small packets at the same time A and B stop sending before detecting a collision A B The packets are corrupted, but neither sender knows A B Min packet must be twice the max propagation delay A B A B A can send for one propagation delay without B sensing it A must send for another propagation delay before sensing that B caused a collision

Determining Minimum Size The minimum packet size depends on length of the Ethernet (1 km) speed of the signal (km/sec) bits sent per second (Mbits/sec) For 10Mbit Ethernet, the minimum packet size is 64 bytes

Maximum Packet Size Ethernet uses a maximum packet size of 1500 only for fairness, so nodes don’t have to wait indefinitely to send a packet

Ethernet Evaluation Ethernet had many key ideas that have spread to other layers of the protocol decentralized control exponential backoff best effort—no guarantees that a packet would be delivered There are other data link protocols, why did Ethernet win? biggest competitor was token rings, allowed bandwidth to be shared fairly one machine’s failure caused the entire network to fail

Internet History Goal: effective use of existing networks Other goals: minimal support from underlying networks packet switching routers connecting networks Other goals: survive hardware failure support multiple types of apps run on wide variety of networks distributed management of resources cost-effective low cost host attachment Internet hugely successful because of it can run on anything

Survivability Internet approach Telephone approach Cheap, failable components Stateless routers + self-healing Keep routing simple (non-adaptive) End to end recovery Telephone approach Ultra reliable switches Self-healing

IP Ethernet allows packets to be sent between nodes on the same network Internet Protocol (IP) allows packets to be sent between nodes on different networks Key idea: some machines (i.e. routers) are on multiple networks Ethernet is still used to send packets between routers

Routers send packet to next closest point IP Routers Routers send packet to next closest point H R H R H H R R R R R H R H: Hosts R: Routers H

IP Addresses IP addresses are 4 bytes (e.g. 128.95.8.137) part of the address designates the network (e.g. 128.95) the rest of the address designates the machine on the network (e.g. 8.137) A router sends the packet to the correct network, and the network sends the packet to the correct node this greatly reduces the information a router must store

How do routers know where to send packets? Forwarding tables at each router Network == 128.95, then send to router X Original Internet: manual update Now: automatic update based on “cost” exchange tables with neighbors use neighbor with smallest hop count what if node says zero cost to everywhere?

Setting up Routing Tables Graph theory to compute “shortest path” routers = nodes links = edges delay, hops = cost Need dynamic computation to adapt to changes in topology if a router goes down, might need to find another path

IP Routing Protocols There are two basic kinds of routing protocols Distance Vector exchange routing tables with neighbors no one knows complete topology now used between admin domains (i.e. AT&T and MCI Link state tell everyone who your neighbors are everyone computes shortest path now used within admin domains (within AT&T)