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

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

ELEC / 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

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

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

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

Internet Protocol Addressing and Routing. Redes TCP/IP

Chapter 06 IP Address

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

Chapter Motivation For Internetworking

Basics of communication. Grundlagen der Rechnernetze Introduction 31

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

CSC 4900 Computer Networks: Network Layer

IPv4. Christian Grothoff.

Internet Protocol (IP)

IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Switching & ARP Week 3

Exercise 1 INTERNET. x.x.x.254. net /24. net /24. x.x.x.33. x.x.x.254. x.x.x.52. x.x.x.254. x.x.x.254. x.x.x.

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

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

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. IP Addressing. Jasleen Kaur. Fall 2016

Network Layer: Control/data plane, addressing, routers

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

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

IP: Addressing, ARP, Routing

The Interconnection Structure of. The Internet. EECC694 - Shaaban

CSC 401 Data and Computer Communications Networks

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

IP Addressing and Subnetting

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

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

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

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

6 Chapter 6. Figure 1 Required Unique Addresses

Lecture 10: Addressing

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

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

TSIN02 - Internetworking

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Computer Networks

Cisco CCNA Basic IP Routing Part I

Lecture 12: Addressing. CSE 123: Computer Networks Alex C. Snoeren

IP Addressing Week 6. Module : Computer Networks Lecturer: Lucy White Office : 324

TSIN02 - Internetworking

To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to join Ethernet and IP.

CS 457 Lecture 11 More IP Networking. Fall 2011

TCP/IP Protocol Suite and IP Addressing

Chapter 4 Network Layer: The Data Plane

CS 3516: Advanced Computer Networks

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

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

Network layer: Overview. Network Layer Functions

Internetworking Part 2

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

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

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Addressing and Routing

Aside: Interaction with Link Layer Computer Networking. Caching ARP Entries. ARP Cache Example

Linux System Administration

ECE 461 Internetworking Fall Quiz 1

Lecture 12: Aggregation. CSE 123: Computer Networks Alex C. Snoeren

Homework 3 Discussion

Lecture 3: Packet Forwarding

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

CSCI Computer Networks Fall 2016

CS 3516: Advanced Computer Networks

Connecting to the Network

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

Network Layer PREPARED BY AHMED ABDEL-RAOUF

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

Vorlesung Kommunikationsnetze

COMP211 Chapter 4 Network Layer: The Data Plane

RSC Part II: Network Layer 3. IP addressing (2nd part)

Wireshark Lab: DHCP SOLUTION

Chapter 4 Network Layer: The Data Plane

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

University of Toronto Faculty of Applied Science and Engineering. Final Exam, December ECE 461: Internetworking Examiner: J.

Lecture 2: Basic routing, ARP, and basic IP

Kent State University

internet technologies and standards

Understanding Basic 802.1ah Provider Backbone Bridge

ETSF10 Internet Protocols Network Layer Protocols

TCP/IP and the OSI Model

Putting it all together

Internet Protocols (chapter 18)

CS 458 Internet Engineering Spring First Exam

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

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

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Outline. IP Address. IP Address. The Internet Protocol. o Hostname & IP Address. o The Address

How the Internet Works

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

EEC-684/584 Computer Networks

Chapter 19 Network Layer: Logical Addressing

Lab Using Wireshark to Examine Ethernet Frames

Chapter 4 Network Layer

IPv6 Protocols and Networks Hadassah College Spring 2018 Wireless Dr. Martin Land

CSC 4900 Computer Networks: Link Layer (3)

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

internet technologies and standards

Troubleshooting Cisco Express Forwarding Routing Loops

Transcription:

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

Thursday, Nov 1 st Homework #4 Due Tuesday, Nov 6 th Project #2 Due 2

IPv4 addresses are usually displayed in dotted decimal notation Each byte represented by decimal value Bytes are separated by a period IP address 0x8002C2F2 = 128.2.194.242 IP addresses are hierarchical Contain information on where a host is in the world Address composed of network ID and host ID www.pacific.edu: 138.9.110.12 3

Classless InterDomain Routing Meant to provide more flexible routing Break up IP address space into prefixes Each prefix has its own routing entry All traffic to Pacific (138.9/16) within the Internet should be routed the same way, regardless of how Pacific subnets its address space 138.9/16 = 10001010 00001001 xxxxxxxx xxxxxxxx Prefix (138.9) is 16 bits long 16 bits remain to represent hosts in this prefix (aka subnet) 4

2.200.192/24 2.32.12/24 2.200/16 2/8 18/8 128.42.8/24 128.42/16 0 2 32-1 2 16 128.42.0.0 128.42.12.243 IP address space can be viewed as a number line Each segment represents an aggregated route Segments can overlap Look for smallest segment that matches the destination address 5

Allow more specific entries to supersede more general ones 128.42.8/24 Route this traffic to Hawaii 128.42/16 Route this traffic to Stockton Except for addresses that match a route with a longer prefix (i.e., 128.42.8/24) Allows significantly more route aggregation Simplifies things if companies move (physically or to another ISP) their block of IP addresses 6

7

IP routers determine next hop IP address using longest prefix match Given a destination IP address, what is the IP address of the router to which the datagram should be forwarded next? Why do they need the next hop IP address? Destination IP address remains unchanged in the datagram Actually need the next hop Ethernet address! 8

Why store next hop IP address? Why not just store next hop Ethernet address? Ethernet address Unique identifier for a piece of hardware IP address Unique identifier for a system performing a function 9

Find link layer address given a network layer address i.e., what is the Ethernet address for a given IP address? Every IP node (hosts and routers) has an ARP table Mapping from IP to Ethernet addresses on their LAN May be incomplete Can include both static and dynamic entries 10

IP address 128.42.6.32 has Ethernet address 00:E0:81:5A:71:AB Must be managed by the system administrator What if that NIC fails and is replaced? What if that system s IP address is changed? Actively managing IP Ethernet address mappings for all nodes in a LAN will get pretty tedious pretty fast 11

Systems discover IP Ethernet address mappings, as needed Each entry has an IP address, an Ethernet address, and a timeout (typically around 20 minutes) ARP packets are broadcast on the LAN to discover mappings ARP packets are encapsulated in Ethernet frames Why broadcast? 12

Bytes: 28 6 6 2 18 4 DA SA Type ARP Packet Pad CRC Ethernet destination If you knew the Ethernet address, you wouldn t need to send an ARP request! Broadcast address: ff:ff:ff:ff:ff:ff Ethernet type ARP: 0x0806 13

Hardware Type (2 bytes) Ethernet 0x0001 Protocol Type (2 bytes) IP: 0x0800 Hardware Address Length (1 byte) Ethernet: 6 Protocol Address Length (1 byte) IPv4: 4 Opcode (2 bytes) Request: 1 (Response: 2) Source address (hardware and protocol) Destination address (hardware (unknown) and protocol) 14

Destination MAC Address (ff:ff:ff:ff:ff:ff) Destination MAC Address Source MAC Address Source MAC Address Type (0x0806) HW Type (Ethernet: 0x0001) Protocol Type (IP: 0x0800) HW AddrLen (6) Prot AddrLen (4) Opcode (Request: 1) Source HW Address Source HW Address Source IP Address Destination HW Address Destination HW Address Destination IP Address Destination IP Address Padding Ethernet CRC 15

Host setup IP address Subnet what IP addresses are on the same LAN Gateway where to send traffic outside the LAN 16

Example: My IP = 183.19.205.67 My Netmask = 255.255.254.0 DestIP = 183.19.204.83 Same subnet or not? What is my subnet? MyIP= 10110011 00010011 11001101 01000011 Netm= 11111111 11111111 11111110 00000000 Is the destination on the same subnet? DestIP = 10110011 00010011 11001100 01010011 Netm = 11111111 11111111 11111110 00000000 Yes! The subnet addresses match 17

Destination on LAN Create ARP request for destination IP Broadcast to everyone on the LAN Destination should reply with its MAC address Destination not on LAN Create ARP request for gateway router IP Broadcast to everyone on the LAN Gateway should reply with its MAC address 18

Hosts learn IP Ethernet address mappings ARP responses are stored in ARP tables ARP requests are stored in ARP tables (whether the host is the target or not!) ARP entries time out Allow machines to change IP and/or MAC addresses transparently Eliminate stale entries (machines turn off, move, crash, etc.) 19

Lookup destination IP address in forwarding table Yields a next hop port and IP address What if it doesn t? Lookup next hop IP address in ARP table Yields a next hop MAC address What if it doesn t? Forward modified packet out the next hop port with the next hop MAC address 20

LAN: 128.42.5/24.3 A.8 B.9 C LAN: 128.42.7/24 R1.1 Ethernet Switch.4 D.10.20 E F S R2 R LAN: 128.42.6/24 Ethernet Switch.2 1. 2. 3. 4. 5. 6. 7. 128.42.6.9 Packet Router looks broadcasts forwards 128.42.6.9 receives responds up 128.42.6.9 packet ARP the with from packet request to MAC C 128.42.5/24 in ARP forwarding address table 128.42.6.9 LAN C table arrives at R1 Result: next no entry hop: 128.42.6.9, port: 128.42.6.1 21

LAN: 128.42.5/24.3 A.8 B.9 C LAN: 128.42.7/24 R1.1 Ethernet Switch.4 D.10.20 E F S R2 R LAN: 128.42.6/24 Ethernet Switch.2 1. 2. 3. 4. 5. 6. 7. 8. Packet 128.42.6.2 R2 Router receives forwards looks broadcasts forwards 128.42.7.18 responds the packet up packet 128.42.6.2 128.42.7.18 ARP to with from 128.42.7.18 request to MAC S in 128.42.5/24 in ARP forwarding address table 128.42.6.2 S LAN table arrives at R1 Result: next no entry hop: 128.42.6.2, port: 128.42.6.1 22