CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

Similar documents
Missing pieces + Putting the pieces together

Missing pieces + Putting the pieces together

Homework 3 Discussion

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

EEC-684/584 Computer Networks

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Putting it all together

Homework 2: IP Due: 11:59 PM, Oct 20, 2016

Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

CS519: Computer Networks. Lecture 2, part 2: Feb 4, 2004 IP (Internet Protocol)

CSCI Networking Name:

cs/ee 143 Communication Networks

CS 457 Lecture 11 More IP Networking. Fall 2011

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Cisco CCNA Basic IP Routing Part I

Routing Basics. SANOG July, 2017 Gurgaon, INDIA

Internet Routing Basics

Chapter 4: Routing Concepts. Routing & Switching

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

521262S Computer Networks 2 (fall 2007) Laboratory exercise #2: Internetworking

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols

Switching & ARP Week 3

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Lecture 20: Link Layer

The Interconnection Structure of. The Internet. EECC694 - Shaaban

Networking: Network layer

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

CS 3516: Computer Networks

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

1 Connectionless Routing

EE122 Spring 1998 Midterm #2

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Back to basics J. Addressing is the key! Application (HTTP, DNS, FTP) Application (HTTP, DNS, FTP) Transport. Transport (TCP/UDP) Internet (IPv4/IPv6)

Internet Protocols Fall Lectures Inter-domain routing, mobility support, multicast routing Andreas Terzis

Introduction to Routing and Packet Forwarding

CS519: Computer Networks

BTEC Level 3 Extended Diploma

CSE/EE 461: Introduction to Computer Communications Networks Autumn Module 9

PUCPR. Internet Protocol. Edgard Jamhour E N G L I S H S E M E S T E R

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Addressing protocols. TELE3118 lecture notes Copyright by Tim Moors Aug-09. Copyright Aug-09, Tim Moors

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

Network layer: Overview. Network Layer Functions

Internet Protocol Addressing and Routing. Redes TCP/IP

CSE 1 23: Computer Networks

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Copyright 2011 Sakun Sharma

Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

CSCI 466 Midterm Networks Fall 2011

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Connecting to the Network

Network Layer: Control/data plane, addressing, routers

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Question Score 1 / 19 2 / 19 3 / 16 4 / 29 5 / 17 Total / 100

Computer Science 461 Final Exam May 22, :30-3:30pm

Topology of the Internet. Autonomous Systems (AS) Two-Level Routing. Why are there different Protocols?

IP Protocols. ALTTC/Oct

CSCI-1680 Network Layer:

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. **Slides are attributed to J. F. Kurose

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Topic. How rou=ng protocols work with IP. The Host/Router dis=nc=on. I don t! I route. CSE 461 University of Washington 1

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Network Layer (Routing)

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

CSC458 Lecture 6. Administrivia. Inter-domain Routing IP Addressing. Midterm will Cover Following Topics (2) Midterm will Cover Following Topics

Computer Network Addressing. The TCP/IP Layers and Addresses. Topics. The Internet Communication. The TCP/IP Layers and Addresses IP Address

How the Internet Works

End-to-End Communication

CS164 Final Exam Winter 2013

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Networking By: Vince

IP: Addressing, ARP, Routing

CSCI 466 Midterm Networks Fall 2011

Routing Basics ISP/IXP Workshops

Chapter Motivation For Internetworking

CSE 123: Computer Networks

Lecture 15 Networking Fundamentals. Today s Plan

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

ECE 4450:427/527 - Computer Networks Spring 2017

Lesson 10. Circuit Boards and Devices Ethernet and Wi-Wi Connectivity with the Internet

SYSTEMS ADMINISTRATION USING CISCO (315)

A novel design for maximum use of public IP Space by ISPs one IP per customer

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

SIMPLE ROUTER PROJECT 2

Ch. 22 Bootstrap And Autoconfiguration (DHCP, NDP or IPv6-ND)

Where we are in the Course

CS 356: Computer Network Architectures. Lecture 10: IP Fragmentation, ARP, and ICMP. Xiaowei Yang

CS 458 Internet Engineering Spring First Exam

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions

Transcription:

CS4450 Computer Networks: Architecture and Protocols Lecture 20 Pu+ng ALL the Pieces Together Spring 2018 Rachit Agarwal

What is a computer network? A set of network elements connected together, that implement a set of protocols for the purpose of sharing resources at the end hosts

What does Internet actually look like? The smallest component: A Network Interface Card (NIC), or a machine, or a server Has a Link Layer MAC name/address Multiple NICs connected in a Local Area Network (LAN) via Broadcast Ethernet, Or, Switched Ethernet Switches in LAN Connected to larger routers

What does Internet actually look like?

What does Internet actually look like?

What does Internet actually look like? Autonomous System (AS) or Domain Region of a network under a single administrative entity

What does Internet actually look like? Multiple Autonomous Systems (AS) or Domains connect together using Border Routers

This entire infrastructure is a part of the INTERNET :-)

What is the other part of the Internet? Protocols!

What protocols have we learnt on LAN? Addresses Link Layer MAC names/addresses: come with the hardware CSMA/CD Protocol: For transmitting frames on broadcast Ethernet Spanning Tree Protocol: For transmitting frames on switched Ethernet

What have we learnt beyond LAN? Link-state and Distance-vector Protocols: For finding routes (and a next-hop) to an IP address within an ISP Border Gateway Protocol: For finding routes to an IP address range Forwarding at routers Store routing tables (map destination prefixes to outgoing port) Longest prefix match for destination address lookup

Suppose Host A wants to communication with Host B

Discovery Suppose I am host A I want to communicate with B (say, www.google.com) I was born knowing only my name my MAC address :-) Must discover some information before I can communicate with B What is my IP address? What is B s IP address? How do we do this? You already learnt that! Is B within my LAN? If yes, what is B s MAC address? If not, what is the address of my first-hop router to B?

DHCP and ARP Link layer discovery protocols DHCP Dynamic Host Configuration Protocol ARP Address Resolution Protocol Configured to a single LAN Rely on broadcast capability Hosts Router

DHCP and ARP Link layer discovery protocols Serve two functions 1. Discovery of local end-hosts For communication between hosts on the same LAN 2. Bootstrap communication with remote hosts What s my IP address? Who/where is my local DNS server? Who/where is my first hop router?

DHCP Dynamic Host Configuration Protocol Defined in RFC 2131 A host uses DHCP to discover Its own IP address Subnet masks allows to test whether an IP address is local or not IP address(es) for its local DNS name server(s) IP address(es) for its first-hop default router(s)

ARP: Address Resolution Protocol Every host maintains an ARP table List of (IP address MAC address) pairs For IP addresses within the same LAN Consult the table when sending a packet Map destination IP address to destination MAC address But: what if IP address not in the table? Either its not local (detected using DHCP) If its local: Sender broadcasts: Who has IP address 1.2.3.156? Caches the answer in ARP table

Taking Stock: Discovery Layer Examples Structure Configuration Resolution Service App Layer www.cs.cornell.edu Organizational hierarchy ~ manual DNS Network Layer 123.45.6.78 Topological hierarchy DHCP ARP Link Layer 45-CC-4E-12-F0-97 Vendor(flat) Hard-coded

How does the Internet work? Are you ready? (Count the number of protocols used for each packet)

How does Internet work end-to-end? Network stack receives the packet from the application (roughly speaking) What is my IP address? (using DHCP) What is the destination IP address? (using DNS) Is destination IP address within my LAN? (using DHCP) If destination IP address local: What is destination MAC address (using ARP)? Convert packet into frames with correct source/destination address Convert frames into bits Forward the bits to the wire Each switch: Forwards to destination (using STP/CSMA/CD)

How does Internet work end-to-end? Network stack receives the packet from the application (roughly speaking) What is my IP address? (using DHCP) What is the destination IP address? (using DNS) Is destination IP address within my LAN? (using DHCP) If destination IP address remote: What is my first-hop router IP address? (using DHCP) What is my first-hop router MAC address? (using ARP) Convert packet into frames with correct source/destination address Convert frames into bits Forward the bits to the wire Each router.

How does Internet work end-to-end? A router upon receiving a packet (implicit questions) Is the destination in a LAN connected to me? Forward the packet to the destination Using STP/CSMA/CD Is the destination not in my LAN but in my ISP? Forward the packet to the next-hop router towards the destination Using distance-vector routing algorithm Is the destination in a different ISP? Forward the packet to the next-hop router towards the destination Using BGP routing algorithm

Are We There Yet? Yes! How can we be sure? Lets go back to where we started.

Recall the end-to-end story from our fifth lecture :-) Application opens a socket that allows it to connect to the network stack Maps name of the web site to its address using DNS The network stack at the source embeds the address and port for both the source and the destination in packet header Each router constructs a routing table using a distributed algorithm Each router uses destination address in the packet header to look up the outgoing link in the routing table And when the link is free, forwards the packet When a packet arrives the destination: The network stack at the destination uses the port to forward the packet to the right application