Missing pieces + Putting the pieces together

Size: px
Start display at page:

Download "Missing pieces + Putting the pieces together"

Transcription

1 Missing pieces + Putting the pieces together EE 122, Fall 2013 Sylvia Ratnasamy Material thanks to Ion Stoica, Scott Shenker, Jennifer Rexford, Nick McKeown, and many other colleagues

2 Today Missing pieces DHCP ARP Pu6ng the pieces together What happens when I click on a link? More missing pieces

3 Naming ApplicaDon layer: URLs and domain names names resources - - hosts, content, program (recall: mixes the what and where of an object) Network layer: IP addresses host s network locadon Link layer: MAC addresses host idendfier Use all three for end- to- end communicadon!

4 Discovery A host is born knowing only its MAC address Must discover lots of informadon before it can communicate with a remote host B what is my IP address? what is B s IP address? (remote) what is B s MAC address? (if B is local) what is my first- hop router s address? (if B is not local)

5 ARP and DHCP Link layer discovery protocols Address ResoluDon Protocol, Dynamic Host ConfiguraDon Protocol confined to a single local- area network (LAN) rely on broadcast capability of a LAN Hosts Router

6 ARP and DHCP Link layer discovery protocols Serve two funcdons Discovery of local end- hosts for communicadon between hosts on the same LAN

7 ARP and DHCP Link layer discovery protocols Serve two funcdons Discovery of local end- hosts Bootstrap communicadon with remote hosts what s my IP address? who/where is my local DNS server? who/where is my first hop router?

8 DHCP Dynamic Host ConfiguraDon Protocol defined in RFC 2131 A host uses DHCP to discover its own IP address its netmask IP address(es) for its DNS name server(s) IP address(es) for its first- hop default router(s)

9 DHCP: operadon 1. One or more local DHCP servers maintain required informadon IP address pool, netmask, DNS servers, etc. applicadon that listens on UDP port 67

10 DHCP: operadon 1. One or more local DHCP servers maintain required informadon 2. Client broadcasts a DHCP discovery message L2 broadcast, to MAC address FF:FF:FF:FF:FF:FF

11 DHCP: operadon 1. One or more local DHCP servers maintain required informadon 2. Client broadcasts a DHCP discovery message 3. One or more DHCP servers responds with a DHCP offer message proposed IP address for client, lease Dme other parameters

12 DHCP: operadon 1. One or more local DHCP servers maintain required informadon 2. Client broadcasts a DHCP discovery message 3. One or more DHCP servers responds with a DHCP offer message 4. Client broadcasts a DHCP request message specifies which offer it wants echoes accepted parameters other DHCP servers learn they were not chosen

13 DHCP: operadon 1. One or more local DHCP servers maintain required informadon 2. Client broadcasts a DHCP discovery message 3. One or more DHCP servers responds with a DHCP offer message 4. Client broadcasts a DHCP request message 5. Selected DHCP server responds with an ACK (DHCP relay agents used when the DHCP server isn t on the same broadcast domain - - see text)

14 DHCP uses sob state Sob state: if not refreshed, state is forgocen hard state: allocadon is deliberately returned/withdrawn used to track address allocadon in DHCP ImplementaDon address allocadons are associated with a lease period server: sets a Dmer associated with the record of allocadon client: must request a refresh before lease period expires server: resets Dmer when a refresh arrives; sends ACK server: reclaims allocated address when Dmer expires Simple, yet robust under failure state always fixes itself in (small constant of) lease Dme

15 Sob state under failure a.b.c.d is XYZ s from (now, now+c.lease) DHCP Server a.b.c.d is mine from (now, now +lease) XYZ Router What happens when host XYZ fails? refreshes from XYZ stop server reclaims a.b.c.d aber O(lease period)

16 Router What happens when server fails? ACKs from server stop XYZ releases address aber O(lease period); send new request A new DHCP server can come up from a `cold start and we re back on track in ~lease Dme Sob state under failure a.b.c.d is XYZ s from (now, now+c.lease) DHCP Server a.b.c.d is mine from (now, now+lease) XYZ

17 Sob state under failure a.b.c.d is XYZ s from (now, now+c.lease) DHCP Server a.b.c.d is mine from (now, now+lease) XYZ Router What happens if the network fails? refreshes and ACKs don t get through XYZ release address; DHCP server reclaims it

18 Are we there yet? What I learnt from DHCP my IP: netmask: /24 ( ) DNS: router: DHCP Server Host Host Host Host DNS Server Router

19 Sending Packets Over Link- Layer IP packet Host Host Host Host DNS 90- E2- A B D7- FA- 20- B0 Router Link layer only understands MAC addresses Translate the desdnadon IP address to MAC address Encapsulate the IP packet inside a link- level frame

20 ARP: Address ResoluDon Protocol Every host maintains an ARP table list of (IP address à MAC address) pairs Consult the table when sending a packet Map desdnadon IP address to desdnadon MAC address Encapsulate the (IP) data packet with MAC header; transmit But: what if IP address not in the table? Sender broadcasts: Who has IP address ? Receiver responds: MAC address D7- FA- 20- B0 Sender caches result in its ARP table

21 What if the desdnadon is remote? Look up the MAC address of the first hop router uses ARP to find MAC address for first- hop router rather than uldmate desdnadon IP address How does the red host know the desdnadon is not local? Uses netmask (discovered via DHCP) How does the red host know about ? Also DHCP /24 ( ) host host... DNS /24 host host... host router router router

22 Security Analysis of ARP ImpersonaDon Any node that hears request can answer and can say whatever they want Actual legit receiver never sees a problem Because even though later packets carry its IP address, its NIC doesn t capture them since not its MAC address

23 Steps in Sending a Packet" What do hosts need to know? And how do they find out?

24 Steps in reaching a Host" First look up destination s IP address Need to know where local DNS server is DHCP Also needs to know its own IP address DHCP

25 Sending a Packet" On same subnet: Use MAC address of destination. ARP On some other subnet: Use MAC address of first-hop router. DHCP + ARP And how can a host tell whether destination is on same or other subnet? Use the netmask DHCP

26 Example: A Sending a Packet to B" A R B How does host A send an IP packet to host B?

27 Example: A Sending a Packet to B" A R B 1. A sends packet to R. 2. R sends packet to B."

28 Host A Decides to Send Through R" Host A constructs an IP packet to send to B Source , destination Host A has a gateway router R Used to reach destinations outside of /24 Address for R learned via DHCP A 28 R B

29 Host A Sends Packet Through R" Host A learns the MAC address of R s interface ARP request: broadcast request for ARP response: R responds with E6-E BB-4B Host A encapsulates the packet and sends to R A 29 R B

30 Two points: RouDng table points to this port DesDnaDon address is within mask of port s address (i.e., local) R Decides how to Forward Packet" Router R s adapter receives the packet R extracts the IP packet from the Ethernet frame R sees the IP packet is destined to Router R consults its forwarding table Packet matches /24 via other adapter (port) A 30 R B

31 R Sends Packet to B" Router R s learns the MAC address of host B ARP request: broadcast request for ARP response: B responds with 49-BD-D2-C7-56-2A Router R encapsulates the packet and sends to B A 31 R B

32 Key Ideas in Both ARP and DHCP" Broadcasting: used for initial bootstrap Caching: remember the past for a while Store the information you learn to reduce overhead Remember your own address & other host s addresses Key optimization for performance Soft state: eventually forget the past Associate a time-to-live field with the information and either refresh or discard the information Key for robustness

33 Discovery mechanisms We ve seen two broad approaches Broadcast (ARP, DHCP) flooding doesn t scale no centralized point of failure zero configuradon Directory service (DNS) no flooding root of the directory is vulnerable (caching is key) needs configuradon to bootstrap (local, root servers, etc.) Can we get the best of both? Internet- scale yet zero config?

34 Are we there yet? Yes!

35 Pu6ng the pieces together Walk through the steps required to download from your laptop yourdns yourdhcp Google s datacenter You R router UCB Count the number of protocols that come into play! Dorm Assume: `cold start - - nothing cached anywhere Assume: yourdns on a different subnet from yourdhcp Ignore intra- and interdomain roudng protocols

36 Step 1: Self discovery You use DHCP to discover bootstrap parameters your IP addr (u.u.u.u) your DNS server s IP (u.dns.ip.addr) R s IP address (r.r.r.r).. Exchange between you and yourdhcp yourdhcp You R router Ethernet IP UDP DHCP Protocol count = 4 Dorm

37 Next You are ready to contact à need an IP address for à need to ask google s DNS server à need to ask my DNS server to ask google s DNS à I know my DNS server s IP addr is u.dns.ip.addr à create a packet to send source: u.u.u..u dst: u.dns.ip.addr Ethernet IP UDP DNS desdnadon MAC?

38 Step 2: Ge6ng out the door You use ARP to discover the MAC address of R Exchange between you and R yourdhcp dst MAC? Ethernet ARP You R router Protocol count = 5 Dorm

39 Step 3: Send a DNS request Exchange between you and yourdns Now ready to send that packet yourdns Ethernet IP UDP DNS R s MAC source: u.u.u..u dst: u.dns.ip.addr You R router UCB Protocol count = 6

40 Step 4: yourdns does its thing yourdns resolves You yourdns root name server top- level name server s IP address is g.g.g.g google s name server Protocol count = 6

41 Step 5: Ge6ng the content (at last) You R UCB Google s datacenter Exchange between you and google s server at g.g.g.g R s MAC Protocol count = 8 Ethernet IP TCP HTTP source: u.u.u..u dst: g.g.g.g

42 Recap: Name discovery/resoludon MAC addresses? my own: hardcoded others: ARP (given IP address) IP addresses? my own: DHCP others: DNS (given domain name) how do I bootstrap DNS communicadon? (DHCP) Domain names? search engines

43 Switched Ethernet"

44 Why Switched Ethernet?" B" A" C" switch D" Enables concurrent communication Host A can talk to C, while B talks to D No collisions à no need for CSMA, CD No constraints on link lengths, etc.

45 Switched Ethernet " Constraints (for backward compatibility) same framing (MAC address structure, headers) maintain plug-n-play aspect (Old) Ethernet achieved plug-n-play by leveraging a broadcast medium how do we do this in a switched topology? Natural first thought: flood (to mimic broadcast)

46 Problem: Flooding can lead to loops Example: A wants to broadcast a message - A sends packet to 1-1 Floods to 2 and 4-2 Floods to B and 3-4 Floods to D and 3-3 Floods packet from 2 to C and 4-3 Floods packet from 4 to C and 2-4 Floods packet from 3 to D and 1-2 Floods packet from 3 to B and 1-1 Floods packet from 2 to A and 4-1 Floods packet from 4 to B and 2 -. B A C D - A broadcast storm if the network contains a cycle of switches

47 Easiest Way to Avoid Loops Use a topology where loops are impossible! Take arbitrary topology Build spanning tree (algorithm covered later) Sub-graph that covers all vertices but contains no cycles Ignore all links not on the spanning tree Only one path to desdnadons on spanning trees So don t have to worry about loops!

48 Consider graph

49 49 A Spanning Tree

50 50 Another Spanning Tree

51 Flooding on a Spanning Tree Switches flood using the following rule: (Ignoring all ports not on spanning tree!) OriginaDng switch sends flood packet out all ports When a flood packet arrives on one incoming port, send it out all other ports

52 Flooding on Spanning Tree

53 Flooding on Spanning Tree

54 But isn t flooding wasteful? Yes, but we can use it to bootstrap more efficient forwarding Idea: watch the packets going by, and learn from that There is a single path between any two nodes If node A sees a packet from node B come in on a pardcular port, it knows what port to use to reach B!

55 Nodes can learn roudng tables Switch can learn how to reach nodes by remembering where flooding packets came from! If flood packet from Node A entered switch from port 4, then switch uses port 4 to reach Node A 55

56 Learning from Flood Packets Node B Node A can be reached through this port Node A can be reached through this port Node A 56 Once a node has sent a flood message, all other switches know how to reach it.

57 Node B Responds Node B can be reached through this port Node B Node A 57 When a node responds, some of the switches learn where it is

58 General Approach Flood first packet to node you are trying to reach All switches learn where you are When desdnadon responds, some switches learn where it is Only some switches, because packet to you follows direct path, and is not flooded

59 Self-Learning Switch" When a packet arrives Inspect source MAC address, associate with incoming port Store mapping in the switch table Use time-to-live field to eventually forget mapping Packet tells switch how to reach A." B" A" C" D"

60 Self Learning: Handling Misses" When packet arrives with unfamiliar destination Forward packet out all other ports Response will teach switch about that destination B" A" C" D"

61 Summary of Learning Approach Avoids loop by restricdng to spanning tree This makes flooding possible Flooding allows packet to reach desdnadon And in the process switches learn how to reach source of flood No route computadon

Missing pieces + Putting the pieces together

Missing pieces + Putting the pieces together Missing pieces + Putting the pieces together CS 168, Fall 2014 Sylvia Ratnasamy Material thanks to Ion Stoica, Scott Shenker, Jennifer Rexford, Nick McKeown, and many other colleagues Today Switched Ethernet

More information

CS 457 Lecture 11 More IP Networking. Fall 2011

CS 457 Lecture 11 More IP Networking. Fall 2011 CS 457 Lecture 11 More IP Networking Fall 2011 IP datagram format IP protocol version number header length (bytes) type of data max number remaining hops (decremented at each router) upper layer protocol

More information

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

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal 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

More information

Addressing and Switching in the Link Layer

Addressing and Switching in the Link Layer Addressing and Switching in the Link Layer Stefano Vissicchio UCL Computer Science COMP00 Recap: We have done a full pass on the stack email WWW phone...! SMTP HTTP RTP...! TCP UDP!! IP! When and how to

More information

Agenda. Forwarding (after a little more addressing) Follow-up from last time. Dealing with Address Scarcity. Sharing a Block of Addresses

Agenda. Forwarding (after a little more addressing) Follow-up from last time. Dealing with Address Scarcity. Sharing a Block of Addresses Agenda Forwarding (after a little more addressing) EE22 Fall 20 Scott Shenker http://inst.eecs.berkeley.edu/~ee22/ Materials with thanks to Jennifer Rexford, Ion Stoica, Vern Paxson and other colleagues

More information

ECE 4450:427/527 - Computer Networks Spring 2017

ECE 4450:427/527 - Computer Networks Spring 2017 ECE 4450:427/527 - Computer Networks Spring 2017 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.2: IP Dr. Nghi Tran (ECE-University of Akron) ECE 4450:427/527 Computer Networks

More information

Address and Switching in the Link Layer

Address and Switching in the Link Layer Address and Switching in the Link Layer Brad Karp (slides contributed by Kyle Jamieson, Scott Shenker, and adapted from Kurose and Ross) UCL Computer Science CS 05/GZ01 18 th November 014 1 The link layer:

More information

IP/MAC Address Translation

IP/MAC Address Translation IP/MAC Address Translation -Go over quiz answers -ARP -DHCP -NAT Today Transition from Network to Datalink How do we get datagrams to the right physical host? Tricky part comes when a router is forwarding

More information

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

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. **Slides are attributed to J. F. Kurose CSEN 503 Introduction to Communication Networks Mervat AbuElkheir Hana Medhat Ayman Dayf **Slides are attributed to J. F. Kurose 1-2 Link Layer Link Layer: Introduction Some terminology: hosts and routers

More information

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

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing Last time Network layer Introduction forwarding vs. routing Virtual circuit vs. datagram details connection setup, teardown VC# switching forwarding tables, longest prefix matching IP: the Internet Protocol

More information

Project 3a is out! Goal: implement a basic network firewall. l We give you the VM & framework. l You implement the firewall logic.

Project 3a is out! Goal: implement a basic network firewall. l We give you the VM & framework. l You implement the firewall logic. Project 3a is out! Goal: implement a basic network firewall We give you the VM & framework. You implement the firewall logic. 1 Get started early What Is Firewall? Blocks malicious traffic Blocks unauthorized

More information

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

Outline. SC/CSE 3213 Winter Sebastian Magierowski York University. ICMP ARP DHCP NAT (not a control protocol) L9: Control Protocols SC/CSE 3213 Winter 2013 L9: Control Protocols Sebastian Magierowski York University 1 Outline ICMP ARP DHCP NAT (not a control protocol) 2 1 Control Protocols IP is used to transfer data Network layer

More information

Operation Manual DHCP. Table of Contents

Operation Manual DHCP. Table of Contents Table of Contents Table of Contents Chapter 1 DHCP Overview... 1-1 1.1 DHCP Principles... 1-1 1.1.1 BOOTP Relay Agent... 1-3 1.1.2 DHCP and BOOTP Relay Agent... 1-4 1.2 General DHCP Configuration... 1-4

More information

Link layer: introduction

Link layer: introduction Link layer: introduction terminology: hosts and routers: nodes communication channels that connect adjacent nodes along communication path: links wired links wireless links LANs layer-2 packet: frame,

More information

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction

Subnets. IP datagram format. The Internet Network layer. IP Fragmentation and Reassembly. IP Fragmentation & Reassembly. IP Addressing: introduction The Network layer Host, network layer functions: Network layer Routing protocols path selection R, OSPF, BGP Transport layer: TCP, forwarding table Link layer physical layer protocol addressing conventions

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Network Layer IPv4, Format and Addressing,, IPv6 Prof. Lina Battestilli Fall 2017 Chapter 4 Outline Network Layer: Data Plane 4.1 Overview of Network layer

More information

Link Layer and LANs. CMPS 4750/6750: Computer Networks

Link Layer and LANs. CMPS 4750/6750: Computer Networks Link Layer and LANs CMPS 4750/6750: Computer Networks 1 Outline overview (6.1) multiple access (6.3) link addressing: ARP (6.4.1) a day in the life of a web request (6.7) 2 Link layer: introduction terminology:

More information

Missing Pieces of the Puzzle

Missing Pieces of the Puzzle Missing Pieces of the Puzzle EE122 Fall 2011 Scott Shenker http://inst.eecs.berkeley.edu/~ee122/ Materials with thanks to Jennifer Rexford, Ion Stoica, Vern Paxson and other colleagues at Princeton and

More information

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

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner Communication Networks (0368-3030) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University Allon Wagner Kurose & Ross, Chapter 4 (5 th ed.) Many slides adapted from: J. Kurose & K. Ross

More information

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

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

More information

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

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols Guide to Networking Essentials, 6 th Edition Chapter 5: Network Protocols Objectives Describe the purpose of a network protocol, the layers in the TCP/IP architecture, and the protocols in each TCP/IP

More information

CSC 4900 Computer Networks: Network Layer

CSC 4900 Computer Networks: Network Layer CSC 4900 Computer Networks: Network Layer Professor Henry Carter Fall 2017 Chapter 4: Network Layer 4. 1 Introduction 4.2 What s inside a router 4.3 IP: Internet Protocol Datagram format 4.4 Generalized

More information

Computer Networking Introduction

Computer Networking Introduction Computer Networking Introduction Halgurd S. Maghdid Software Engineering Department Koya University-Koya, Kurdistan-Iraq Lecture No.13 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram

More information

Cisco Interconnecting Cisco Networking Devices Part 1.

Cisco Interconnecting Cisco Networking Devices Part 1. Cisco 100-105 Interconnecting Cisco Networking Devices Part 1 http://killexams.com/pass4sure/exam-detail/100-105 Question: 323 Refer to the exhibit. SwitchA receives the frame with the addressing shown.

More information

Ethernet. EE 122: Intro to Communication Networks. Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz

Ethernet. EE 122: Intro to Communication Networks. Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz Ethernet EE 122: Intro to Communication Networks Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz http://inst.eecs.berkeley.edu/~ee122/ Materials with thanks

More information

cs/ee 143 Communication Networks

cs/ee 143 Communication Networks cs/ee 143 Communication Networks Chapter 4 Internetworking Text: Walrand & Parekh, 2010 Steven Low CMS, EE, Caltech Warning These notes are not self-contained, probably not understandable, unless you also

More information

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

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017 CS 43: Computer Networks Switches and LANs Kevin Webb Swarthmore College December 5, 2017 Ethernet Metcalfe s Ethernet sketch Dominant wired LAN technology: cheap $20 for NIC first widely used LAN technology

More information

Lecture 20: Link Layer

Lecture 20: Link Layer Lecture 20: Link Layer COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F Kurose and K.W. Ross, All Rights

More information

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1 Chapter 3 Part 2 Switching and Bridging Networking CS 3470, Section 1 Refresher We can use switching technologies to interconnect links to form a large network What is a hub? What is a switch? What is

More information

ICS 451: Today's plan

ICS 451: Today's plan ICS 451: Today's plan ICMP ping traceroute ARP DHCP summary of IP processing ICMP Internet Control Message Protocol, 2 functions: error reporting (never sent in response to ICMP error packets) network

More information

CSC 401 Data and Computer Communications Networks

CSC 401 Data and Computer Communications Networks CSC 401 Data and Computer Communications Networks Link Layer, Switches, VLANS, MPLS, Data Centers Sec 6.4 to 6.7 Prof. Lina Battestilli Fall 2017 Chapter 6 Outline Link layer and LANs: 6.1 introduction,

More information

DHCP Technology White Paper

DHCP Technology White Paper DHCP Technology White Paper Keywords: DHCP, DHCP server, DHCP relay agent, DHCP client, BOOTP client. Abstract: This document describes DHCP basic concepts and applications, as well as the main functions

More information

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer 1 CPSC 826 Intering The Network Layer: Routing & Addressing Outline The Network Layer Michele Weigle Department of Computer Science Clemson University mweigle@cs.clemson.edu November 10, 2004 Network layer

More information

Principles behind data link layer services

Principles behind data link layer services Data link layer Goals: Principles behind data link layer services Error detection, correction Sharing a broadcast channel: Multiple access Link layer addressing Reliable data transfer, flow control: Done!

More information

Switching & ARP Week 3

Switching & ARP Week 3 Switching & ARP Week 3 Module : Computer Networks Lecturer: Lucy White lbwhite@wit.ie Office : 324 Many Slides courtesy of Tony Chen 1 Ethernet Using Switches In the last few years, switches have quickly

More information

Network Protocols - Revision

Network Protocols - Revision Network Protocols - Revision Luke Anderson luke@lukeanderson.com.au 18 th May 2018 University Of Sydney Overview 1. The Layers 1.1 OSI Model 1.2 Layer 1: Physical 1.3 Layer 2: Data Link MAC Addresses 1.4

More information

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. CS118 Discussion 1A, Week 9 Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. 1 Outline Wireless: 802.11 Mobile IP Cellular Networks: LTE Sample final 2 Wireless and Mobile Network Wireless access: WIFI

More information

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

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model Lecture 8 Basic Internetworking (IP) Reminder: Homework 3, Programming Project 2 due on Tuesday. An example internet is shown at right. Routers or gateways are used to connect different physical networks.

More information

Wireshark Lab: DHCP SOLUTION

Wireshark Lab: DHCP SOLUTION Wireshark Lab: DHCP SOLUTION Supplement to Computer Networking: A Top-Down Approach, 6 th ed., J.F. Kurose and K.W. Ross 2005-21012, J.F Kurose and K.W. Ross, All Rights Reserved Here is a screen shot

More information

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

Question Score 1 / 19 2 / 19 3 / 16 4 / 29 5 / 17 Total / 100 NAME: Login name: Computer Science 461 Midterm Exam March 10, 2010 3:00-4:20pm This test has five (5) questions. Put your name on every page, and write out and sign the Honor Code pledge before turning

More information

Announcements. IP Forwarding & Transport Protocols. Goals of Today s Lecture. Are 32-bit Addresses Enough? Summary of IP Addressing.

Announcements. IP Forwarding & Transport Protocols. Goals of Today s Lecture. Are 32-bit Addresses Enough? Summary of IP Addressing. IP Forwarding & Transport Protocols EE 122: Intro to Communication Networks Fall 2007 (WF 4-5:30 in Cory 277) Vern Paxson TAs: Lisa Fowler, Daniel Killebrew & Jorge Ortiz http://inst.eecs.berkeley.edu/~ee122/

More information

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

Addressing protocols. TELE3118 lecture notes Copyright by Tim Moors Aug-09. Copyright Aug-09, Tim Moors Addressing protocols TELE3118 lecture notes Copyright by Tim Moors Aug-09 2 Which address(es) to use? How does source determine addresses when sending to www.example.com? o Source has its MAC address o

More information

How the Internet Works

How the Internet Works How the Internet Works For the Ham DMR FUSION IRLP DSTAR ECHOLINK APRS WINLINK WSPR Origin of the Internet Began in 1960 when AT&T figured out a way to transfer data over the telephone line Mark and Space

More information

Putting it all together

Putting it all together Putting it all together What happens when a user shows up to a new network and wants to access a web site? (These are new slides. Please stop and ask questions if anything is unclear!) Scenario Scenario

More information

Business Data Communications and Networking

Business Data Communications and Networking Business Data Communications and Networking 10th Edition Jerry Fitzgerald and Alan Dennis John Wiley & Sons, Inc http://alainmaterials.webs.com/ Copyright 2010 John Wiley & Sons, Inc 5-1 Chapter 5 TCP/IP

More information

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

Homework 2: IP Due: 11:59 PM, Oct 20, 2016 C68 Computer Networks Fonseca Contents Homework : IP Due: :59 PM, Oct 0, 06 IP Forwarding Spanning Tree BGP IP Forwarding Consider this diagram and answer the following questions: H H 00... 00... 00...

More information

Transport and TCP. EE122 Fall 2011 Scott Shenker

Transport and TCP. EE122 Fall 2011 Scott Shenker Transport and TCP EE122 Fall 2011 Scott Shenker http://inst.eecs.berkeley.edu/~ee122/ Materials with thanks to Jennifer Rexford, Ion Stoica, Vern Paxson and other colleagues at Princeton and UC Berkeley

More information

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

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1 Lecture 8 Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1 Outline Chapter 3 - Internetworking 3.1 Switching and Bridging 3.2

More information

Introduction to the Packet Tracer Interface using a Hub Topology

Introduction to the Packet Tracer Interface using a Hub Topology Introduction to Packet Tracer What is Packet Tracer? Packet Tracer is a protocol simulator developed by Dennis Frezzo and his team at Cisco Systems. Packet Tracer (PT) is a powerful and dynamic tool that

More information

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

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols Auxiliary Protocols IP serves only for sending packets with well-known addresses. Some questions however remain open, which are handled by auxiliary protocols: Address Resolution Protocol (ARP) Reverse

More information

6 Chapter 6. Figure 1 Required Unique Addresses

6 Chapter 6. Figure 1 Required Unique Addresses 6 Chapter 6 6.1 Public and Private IP Addresses The stability of the Internet depends directly on the uniqueness of publicly used network addresses. In Figure 1 Required Unique Addresses, there is an issue

More information

Introduction to DHCP. DHCP Overview

Introduction to DHCP. DHCP Overview Table of Contents Introduction to DHCP 1 DHCP Overview 1 DHCP Address Allocation 2 Allocation Mechanisms 2 Dynamic IP Address Allocation Process 2 DHCP Message Format 3 Protocols and Standards 4 DHCP Server

More information

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

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition ECPE / COMP 177 Fall 2016 Some slides from Kurose and Ross, Computer Networking, 5 th Edition Course Organization Top-Down! Starting with Applications / App programming Then Transport Layer (TCP/UDP) Then

More information

EE 122: IP Forwarding and Transport Protocols

EE 122: IP Forwarding and Transport Protocols EE 1: IP Forwarding and Transport Protocols Ion Stoica (and Brighten Godfrey) TAs: Lucian Popa, David Zats and Ganesh Ananthanarayanan http://inst.eecs.berkeley.edu/~ee1/ (Materials with thanks to Vern

More information

Address Management in IP Networks

Address Management in IP Networks Address Management in IP Networks - Address Resolution Protocol (ARP) - Reverse Address Resolution Protocol (RARP) - Dynamic Host Configuration Protocol () IP Addresses and Physical Addresses o The Forwarding

More information

Chapter 4 Network Layer: The Data Plane

Chapter 4 Network Layer: The Data Plane Chapter 4 Network Layer: The Data Plane A note on the use of these Powerpoint slides: We re making these slides freely available to all (faculty, students, readers). They re in PowerPoint form so you see

More information

Computer Networks. Randomized Multiple Access

Computer Networks. Randomized Multiple Access Computer Networks Randomized Multiple Access Topic How do nodes share a single link? Who sends when, e.g., in WiFI? Explore with a simple model Assume no-one is in charge; this is a distributed system

More information

Introduction to Internetworking

Introduction to Internetworking Introduction to Internetworking Stefano Vissicchio UCL Computer Science COMP0023 Internetworking Goal: Connect many networks together into one Internet. Any computer can send to any other computer on any

More information

COMS3200/7201 Computer Networks 1 (Version 1.0)

COMS3200/7201 Computer Networks 1 (Version 1.0) COMS3200/7201 Computer Networks 1 (Version 1.0) Assignment 3 Due 8pm Monday 29 th May 2017. V1 draft (hopefully final) Note that the assignment has three parts Part A, B & C, each worth 50 marks. Total

More information

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

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12 1 Chapter 4: outline 4.1 introduction 4.2 virtual circuit and datagram networks 4.3 what

More information

Principles behind data link layer services:

Principles behind data link layer services: Data link layer Goals: Principles behind data link layer services: Error detection, correction Sharing a broadcast channel: Multiple access Link layer addressing Reliable data transfer, flow control Example

More information

Principles behind data link layer services:

Principles behind data link layer services: Data link layer Goals: Principles behind data link layer services: Error detection, correction Sharing a broadcast channel: Multiple access Link layer addressing Reliable data transfer, flow control Example

More information

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks Welcome to CS 3516: Advanced Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: Fuller 320 Fall 2017 A-term 1 Some slides are originally from the course materials of the textbook

More information

19: Networking. Networking Hardware. Mark Handley

19: Networking. Networking Hardware. Mark Handley 19: Networking Mark Handley Networking Hardware Lots of different hardware: Modem byte at a time, FDDI, SONET packet at a time ATM (including some DSL) 53-byte cell at a time Reality is that most networking

More information

CISCO SYSTEM ADMINISTRATION (41)

CISCO SYSTEM ADMINISTRATION (41) CISCO SYSTEM ADMININSTRATION PAGE 1 OF 11 CONTESTANT ID# Time Rank CISCO SYSTEM ADMINISTRATION (41) Regional 2012 TOTAL POINTS (500) Failure to adhere to any of the following rules will result in disqualification:

More information

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

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

CS 3516: Advanced Computer Networks

CS 3516: Advanced Computer Networks Welcome to CS 3516: Advanced Computer Networks Prof. Yanhua Li Time: 9:00am 9:50am M, T, R, and F Location: Fuller 320 Fall 2017 A-term 1 Some slides are originally from the course materials of the textbook

More information

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting Quiz v 10/30/2013 (Wednesday), 20 mins v Midterm question (available on website) v TCP basics Segment structure and fields Flow control (rwnd) Timeout interval v TCP Congestion control Phases transition

More information

Network layer: Overview. Network Layer Functions

Network layer: Overview. Network Layer Functions Network layer: Overview Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing 1 Network Layer Functions Transport packet from sending to receiving hosts Network layer protocols in every

More information

Transla'ng Addresses. Goals of Today s Lecture

Transla'ng Addresses. Goals of Today s Lecture Transla'ng ddresses 1 Goals of Today s Lecture Three different kinds of addresses Host names (e.g., www.cnn.com) IP addresses (e.g., 64.236.16.20) MC addresses (e.g., 00-15- C5-49- 04-9) Protocols for

More information

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

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi). Assignments Reading for Lecture 9: Section 3.3 3.2 Basic Internetworking (IP) Bridges and LAN switches from last section have limited ability CS475 Networks Lecture 8 Chapter 3 Internetworking is a logical

More information

1 Connectionless Routing

1 Connectionless Routing UCSD DEPARTMENT OF COMPUTER SCIENCE CS123a Computer Networking, IP Addressing and Neighbor Routing In these we quickly give an overview of IP addressing and Neighbor Routing. Routing consists of: IP addressing

More information

The trace is here: https://kevincurran.org/com320/labs/wireshark/trace-dhcp.pcap

The trace is here: https://kevincurran.org/com320/labs/wireshark/trace-dhcp.pcap Lab Exercise DHCP Objective To see how DHCP (Dynamic Host Configuration Protocol) works. The trace is here: https://kevincurran.org/com320/labs/wireshark/trace-dhcp.pcap Network Setup Recall that DHCP

More information

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen Lecture 4 - Network Layer Networks and Security Jacob Aae Mikkelsen IMADA September 23, 2013 September 23, 2013 1 / 67 Transport Layer Goals understand principles behind network layer services: network

More information

Floodless in SEATTLE: A Scalable Ethernet Architecture for Large Enterprises

Floodless in SEATTLE: A Scalable Ethernet Architecture for Large Enterprises Floodless in SEATTLE: A Scalable Ethernet Architecture for Large Enterprises Full paper available at http://www.cs.princeton.edu/~chkim Changhoon Kim, Matthew Caesar, and Jennifer Rexford Outline of Today

More information

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

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition ECPE / COMP 177 Fall 2012 Some slides from Kurose and Ross, Computer Networking, 5 th Edition Application Layer Transport Layer Network Layer Link Layer Physical Layer 2 Application Layer HTTP DNS IMAP

More information

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

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS 1. General (5p) a) The so-called hourglass model (sometimes referred to as a wine-glass ) has been used

More information

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

Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15 ECE374: Homework 4 1 Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15 Note: In all written assignments, please show as much of your work as you can. Even if you get a wrong answer, you can

More information

Communication Networks

Communication Networks Communication Networks Spring 2018 Laurent Vanbever nsg.ee.ethz.ch ETH Zürich (D-ITET) March 19 2018 Materials inspired from Scott Shenker & Jennifer Rexford Last week on Communication Networks Reliable

More information

The Netwok Layer IPv4 and IPv6 Part 2

The Netwok Layer IPv4 and IPv6 Part 2 ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE The Netwok Layer IPv4 and IPv6 Part 2 Jean Yves Le Boudec 2014 1 Contents 6. ARP 7. Host configuration 8. IP packet format Textbook Chapter 5: The Network Layer

More information

SYSTEMS ADMINISTRATION USING CISCO (315)

SYSTEMS ADMINISTRATION USING CISCO (315) Page 1 of 10 Contestant Number: Time: Rank: SYSTEMS ADMINISTRATION USING CISCO (315) REGIONAL 2014 TOTAL POINTS (500) Failure to adhere to any of the following rules will result in disqualification: 1.

More information

ECE 158A: Lecture 13. Fall 2015

ECE 158A: Lecture 13. Fall 2015 ECE 158A: Lecture 13 Fall 2015 Random Access and Ethernet! Random Access! Basic idea: Exploit statistical multiplexing Do not avoid collisions, just recover from them When a node has packet to send Transmit

More information

Lab - Using Wireshark to Examine a UDP DNS Capture

Lab - Using Wireshark to Examine a UDP DNS Capture Topology Objectives Part 1: Record a PC s IP Configuration Information Part 2: Use Wireshark to Capture DNS Queries and Responses Part 3: Analyze Captured DNS or UDP Packets Background / Scenario If you

More information

Internet Protocols (chapter 18)

Internet Protocols (chapter 18) Internet Protocols (chapter 18) CSE 3213 Fall 2011 Internetworking Terms 1 TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Introduction (forwarding and routing) Review of queueing theory Routing algorithms Link state, Distance Vector Router design and operation IP: Internet Protocol IPv4 (datagram format, addressing,

More information

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

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask 1 2 3 4 5 6 7 8 9 10 Unit C - Network Addressing Objectives Describe the purpose of an IP address and Subnet Mask and how they are used on the Internet. Describe the types of IP Addresses available. Describe

More information

Lab - Using Wireshark to Examine a UDP DNS Capture

Lab - Using Wireshark to Examine a UDP DNS Capture Topology Objectives Part 1: Record a PC s IP Configuration Information Part 2: Use Wireshark to Capture DNS Queries and Responses Part 3: Analyze Captured DNS or UDP Packets Background / Scenario If you

More information

DHCP Overview. Introduction to DHCP

DHCP Overview. Introduction to DHCP Table of Contents DHCP Overview 1 Introduction to DHCP 1 DHCP Address Allocation 2 Allocation Mechanisms 2 Dynamic IP Address Allocation Process 2 IP Address Lease Extension 3 DHCP Message Format 3 DHCP

More information

Network Layer: Router Architecture, IP Addressing

Network Layer: Router Architecture, IP Addressing Network Layer: Router Architecture, IP Addressing UG3 Computer Communications & Networks (COMN) Mahesh Marina mahesh@ed.ac.uk Slides thanks to Myungjin Lee and copyright of Kurose and Ross Router Architecture

More information

CMPE 150 Winter 2009

CMPE 150 Winter 2009 CMPE 150 Winter 2009 Lecture 9 February 3, 2009 P.E. Mantey CMPE 150 -- Introduction to Computer Networks Instructor: Patrick Mantey mantey@soe.ucsc.edu http://www.soe.ucsc.edu/~mantey/ / t / Office: Engr.

More information

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

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018 CS 43: Computer Networks 21: The Network Layer & IP November 7, 2018 The Network Layer! Application: the application (e.g., the Web, Email) Transport: end-to-end connections, reliability Network: routing

More information

CNBK Communications and Networks Lab Book: Purpose of Hardware and Protocols Associated with Networking Computer Systems

CNBK Communications and Networks Lab Book: Purpose of Hardware and Protocols Associated with Networking Computer Systems Lab Book: Purpose of Hardware and Protocols Associated with Networking Computer Systems Contents Purpose of Hardware and Protocols Associated with Computer Networks... 3 Lab Objectives... 3 Lab Resources...

More information

Internet Protocol Addressing and Routing. Redes TCP/IP

Internet Protocol Addressing and Routing. Redes TCP/IP Internet Protocol Addressing and Routing Redes TCP/IP Internet Topology Internet - WAN Gateway or router Physical Network (LAN) internet LAN LAN LAN Dotted Decimal Notation 2 7 2 6 2 5 2 4 2 3 2 2 2 1

More information

EEC-684/584 Computer Networks

EEC-684/584 Computer Networks EEC-684/584 Computer Networks Lecture 14 wenbing@ieee.org (Lecture nodes are based on materials supplied by Dr. Louise Moser at UCSB and Prentice-Hall) Outline 2 Review of last lecture Internetworking

More information

Cisco Cisco Certified Network Associate (CCNA)

Cisco Cisco Certified Network Associate (CCNA) Cisco 200-125 Cisco Certified Network Associate (CCNA) http://killexams.com/pass4sure/exam-detail/200-125 Question: 769 Refer to exhibit: Which destination addresses will be used by Host A to send data

More information

Cisco.BrainDump v by.MuTe

Cisco.BrainDump v by.MuTe Cisco.BrainDump.100-101.v2013-06-25.by.MuTe Number: 100-101 Passing Score: 804 Time Limit: 120 min File Version: 1.0 http://www.gratisexam.com/ ICND1 100-101 Practice Exam QUESTION 1 Which three statements

More information

Address Resolution APPLIED SECURITY BASICS. Alberto Caponi

Address Resolution APPLIED SECURITY BASICS. Alberto Caponi Address Resolution APPLIED SECURITY BASICS Alberto Caponi alberto.caponi@uniroma2.it What does it happen really on Internet? Internet Client (your devices) Server (google, facebook, etc.) What a web page

More information

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

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18 CMPE 150/L : Introduction to Computer Networks Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18 1 Final project demo Please do the demo THIS week to the TAs. Or you are allowed to use

More information

DHCP Configuration. Page 1 of 14

DHCP Configuration. Page 1 of 14 DHCP Configuration Page 1 of 14 Content Chapter 1 DHCP Configuration...1 1.1 DHCP Overview...1 1.2 DHCP IP Address Assignment... 1 1.2.1 IP Address Assignment Policy...1 1.2.2 Obtaining IP Addresses Dynamically...2

More information

IT220 Network Standards & Protocols. Unit 8: Chapter 8 The Internet Protocol (IP)

IT220 Network Standards & Protocols. Unit 8: Chapter 8 The Internet Protocol (IP) IT220 Network Standards & Protocols Unit 8: Chapter 8 The Internet Protocol (IP) IT220 Network Standards & Protocols REMINDER Student Evaluations 4 Objectives Identify the major needs and stakeholders

More information