Lecture 15 Networking Fundamentals. Today s Plan

Similar documents
Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 24: Mobile and Wireless

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

Outline: Connecting Many Computers

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

19: Networking. Networking Hardware. Mark Handley

Chapter 16 Networking

EECS 122: Introduction to Communication Networks Final Exam Solutions

CS4700/CS5700 Fundamentals of Computer Networks

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring Lecture 20: Networks and Distributed Systems

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

CSCI Computer Networks

CS 162 Operating Systems and Systems Programming Professor: Anthony D. Joseph Spring Lecture 19: Networks and Distributed Systems

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS

CSE 461 Module 10. Introduction to the Transport Layer

15-441: Computer Networking

Links. CS125 - mylinks 1 1/22/14

CS519: Computer Networks. Lecture 5, Part 1: Mar 3, 2004 Transport: UDP/TCP demux and flow control / sequencing

Transport Layer (TCP/UDP)

c) With the selective repeat protocol, it is possible for the sender to receive an ACK for a packet that falls outside of its current window.

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

Applied Networks & Security

Lecture 2: Layering & End-to-End

ECE 653: Computer Networks Mid Term Exam all

Cisco Cisco Certified Network Associate (CCNA)

Introduction to Protocols

UDP, TCP, IP multicast

ECE 650 Systems Programming & Engineering. Spring 2018

Communications Software. CSE 123b. CSE 123b. Spring Lecture 3: Reliable Communications. Stefan Savage. Some slides couresty David Wetherall

Lecture 3: The Transport Layer: UDP and TCP

CSE 4215/5431: Mobile Communications Winter Suprakash Datta

Lecture 17: Final Review"

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

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

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

! " Lecture 5: Networking for Games (cont d) Packet headers. Packet footers. IP address. Edge router (cable modem, DSL modem)

ECE 158A: Lecture 13. Fall 2015

Computer Networks. 19 December This exam consists of 6 questions with subquestions. Every subquestion counts for 10 points.

===================================================================== Exercises =====================================================================

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

Principles behind data link layer services:

Principles behind data link layer services:

STEVEN R. BAGLEY PACKETS

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

Review is pretty much complete! Please help formatting review (indenting). - Jorden

Next Steps Spring 2011 Lecture #18. Multi-hop Networks. Network Reliability. Have: digital point-to-point. Want: many interconnected points

Basic Reliable Transport Protocols

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Networks Fall This exam consists of 10 problems on the following 13 pages.

Chapter 13 TRANSPORT. Mobile Computing Winter 2005 / Overview. TCP Overview. TCP slow-start. Motivation Simple analysis Various TCP mechanisms

Networking. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

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

15-441: Computer Networking. Lecture 24: Ad-Hoc Wireless Networks

Department of EECS - University of California at Berkeley EECS122 - Introduction to Communication Networks - Spring 2005 Final: 5/20/2005

DATA COMMUNICATION AND NETWORKS

Network Protocols and Architectures

The Transmission Control Protocol (TCP)

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

CS 4390 Computer Networks. Transport Services and Protocols

FINAL May 21, minutes

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

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Announcements. No book chapter for this topic! Slides are posted online as usual Homework: Will be posted online Due 12/6

Principles behind data link layer services

Internet Routing. Review of Networking Principles. What s the Internet: nuts and bolts view. Communication links

Internet Routing. Review of Networking Principles

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

TSIN02 - Internetworking

CSCI Spring Final Exam Solution

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

Principles behind data link layer services:

Telecommunication Protocols Laboratory Course. Lecture 3

15-441: Computer Networking. Wireless Networking

Introduction to Open System Interconnection Reference Model

Page 1. Goals for Today" What Is A Protocol?" CS162 Operating Systems and Systems Programming Lecture 10. Protocols, Layering and e2e Argument"

Different Layers Lecture 20

Network Model. Why a Layered Model? All People Seem To Need Data Processing

Link Layer and Ethernet

Lecture 4: Congestion Control

Link Layer and Ethernet

CSCI-131 Networking: the End-to-End Layer. Rodrigo Fonseca March 12 th, 2013

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

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

Computer Science 425 Distributed Systems CS 425 / ECE 428. Fall 2013

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061/1110. Lecture 8. Medium Access Control Methods & LAN

Midterm Exam CSCE 232: Computer Networks Fall Instructions:

Final Review Fall 2017 Profs Peter Steenkiste & Justine Sherry

1: Review Of Semester Provide an overview of encapsulation.

EE 122: Ethernet and

Homework 3 Discussion

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

Page 1. Goals for Today" Discussion" Example: Reliable File Transfer" CS162 Operating Systems and Systems Programming Lecture 11

CMPE 80N: Introduction to Networking and the Internet

Outline. Internet. Router. Network Model. Internet Protocol (IP) Design Principles

Student ID: CS457: Computer Networking Date: 5/8/2007 Name:

CCM 4300 Lecture 6 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

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

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

EE 122: IP Forwarding and Transport Protocols

Transcription:

Lecture 15 Networking Fundamentals Slides attributed to Neil Spring Today s Plan Talk about networking in general Layers, Routing Specifically about IP and TCP Service model, what TCP provides Work our way up to HTTP What happens when you click a link? If time, drop down to Ethernet and wireless networking problems. Networks are distributed systems: failure is expected 1

Basics Network collection of nodes and links that cooperate for communication Nodes computer systems Internal (routers, bridges, switches) Terminal (workstations) Links connections for transmitting data Protocol standards for formatting and interpreting data and control information Network = {nodes and links} 2

Nodes have addresses 4 7 1 2 6 8 3 5 9 Links have bandwidths and latencies 4 7 1 2 6 8 3 5 9 3

Wires aren t perfect Attenuation (resistance) degrades quality of signal Delay (speed of light * 2/3) speed of light: 8ms RTT coast-to-coast 8 minutes to the sun Noise (microwaves and such) Nodes aren t perfect either Unreliability is pervasive! Getting Data Across (imperfect wires) Split up big files into small pieces the pieces are called packets Each packet (~1500 bytes) is sent separately packets can be corrupted noise, bugs packets can be dropped corrupted, overloaded nodes packets can be reordered retransmission + different paths Allows packets from different flows to be multiplexed along the same link 4

Layers Each layer abstracts the services of various lower layers, providing a uniform interface to higher layers. Each layer needs to know: How to interpret a packet s payload e.g., protocol numbers How to use the services of a lower layer e.g., IP must know how to use ARP Layers OSI Reference Reality Packet Format Application Presentation Session Transport Network Data-Link Physical HTTP TCP IP Ethernet Twisted Pair App data IP Payload Ethernet Payload 5

The Internet Protocol (IP) Connects disparate networks Single (hierarchical) address space Single network header Assumes data link is unreliable Provides unreliable service Loss: A B D E Duplication: A B B C D E Corruption: A Q C D E Reordering: A C D B E IP Addresses 32 bits long, split into 4 octets: For example, 128.95.2.24 Hierarchical: First bits describe which network Last bits describe which host on the network UW subnets include: 128.95, 140.142 UW CSE subnets include: 128.95.2, 128.95.4, 128.95.219 6

Packet Forwarding Buffer incoming packets Decide which output link Buffer outgoing packets Send packet Routing How do nodes determine which output link to use to reach a destination? Distributed algorithm for converging on shortest path tree Nodes exchange reachability information: I can get to 128.95.2.x in 3 hops 7

Shortest path tree 4 7 1 3 (2) (2) 2 (1) 5 (1) 6 (1) 8 9 (x) Is the cost to get to 6. The metric (cost per link) here is 1. Simple algorithm: 6 broadcasts I m alive to neighbors. Neighbors send I can get to 6 in 1 hop, etc. Route Aggregation What hierarchical addressing is good for. UW routers can advertise 128.95.x.x instead of 128.95.2.x, 128.95.3,x, Other routers don t need forwarding table entries for each host in the network. 8

Routing Reality Routing in the Internet connects Autonomous Systems (AS s) AT&T, Sprint, UUNet, BBN Shortest path, sort of money talks. actually a horrible mess nobody really knows what s going on get high $$ job if you are a network engineer that messes with this stuff TCP Service Model Provide reliability, ordering on the unreliable, unordered IP Bytestream oriented: when you send data using TCP, you think about bytes, not about packets. 9

TCP Ports Connections are identified by the tuple: IP source address IP destination address TCP source port TCP destination port Allows multiple connections; multiple application protocols, between the same machines Well known ports for some applications: (web: 80, telnet: 23, mail:25, dns: 53) TCP s Sliding Window Simple reliability: Send one packet, wait for acknowledgment, then send the next Better performance: Keep several unacknowledged packets in the network (a window) 10

Sliding Window Example Send 1 Send 2 Send 3 Send 4 Send 5 Send 6 Send 7 Send 8 Send 9 Ack 1 Ack 2 Ack 3 Ack 4 Ack 5 Ack 6 Ack 7 Ack 8 Window size = 3 Can send up to three packets into the network at a time. Each packet has a sequence number for ordering TCP s Congestion Control How big should the window be? Performance is limited by: (window size) / round trip time Performance of bottleneck link (modem?) If window is too small, performance is wasted. If window is too big, may overflow network buffers, causing packet loss. 11

Steps for a web access Name lookup Client to local DNS server Local DNS may return a cached binding, or lookup the name for itself TCP Connection setup Client to remote IP, port 80 Send HTTP request GET /index.html Receive HTTP response blah blah blah maybe several packets TCP Connection teardown HTTP 1.1 Incremental improvements Persistent connections allow multiple requests over the same connection Web transfers are often small Avoid connection setup and teardown overhead TCP is better the longer you use it: it learns how fast to send to get best performance without overflowing buffers. 12

Ethernet CSMA/CD Carrier Sense: everyone listens until silence before speaking Multiple Access: everyone talks on the same wire Collision Detection: listen while talking to abort when two talk at the same time Wireless networking Can we apply CSMA/CD to wireless networks too? What s different about networks without wires More attenuation (fading) More noise (burst errors too) More delay (possibly) Interference (walls, mountain ranges ) 13

802.11 Wireless Hidden station problem A B C A sends to B, C might interrupt! 802.11 Wireless II Exposed station problem A B C D B could send to A and C to D at the same time (but would be inhibited if detecting collision) 14

802.11 Collision Avoidance Multiple Access Collision Avoidance A B C D Sender B sends RTS inhibits others from sending for a short time Receiver C sends CTS inhibits others from sending until packet transferred. Sender B sends the packet. 15