CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006



Similar documents
Introduction to TCP/IP

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Transport and Network Layer

Chapter 10 Link-State Routing Protocols

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

Question 1. [7 points] Consider the following scenario and assume host H s routing table is the one given below:

Based on Computer Networking, 4 th Edition by Kurose and Ross

CS Computer Networks 1: Routing Algorithms

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

DG Forwarding Algorithm

Internetworking and Internet-1. Global Addresses

Network layer: Overview. Network layer functions IP Routing and forwarding

Routing Protocols (RIP, OSPF, BGP)

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

8.2 The Internet Protocol

6.263 Data Communication Networks

Route Discovery Protocols

IP Multicasting. Applications with multiple receivers

Lecture 8. IP Fundamentals

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

IP - The Internet Protocol

RARP: Reverse Address Resolution Protocol

Introduction to IP v6

Routing with OSPF. Introduction

Computer Networks II Master degree in Computer Engineering Exam session: 11/02/2009 Teacher: Emiliano Trevisani. Student Identification number

Link-State Routing Protocols

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

CS335 Sample Questions for Exam #2

Mobile IP. Bheemarjuna Reddy Tamma IIT Hyderabad. Source: Slides of Charlie Perkins and Geert Heijenk on Mobile IP

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

1. How many unique network IDs are there in class A addresses? # of unique hosts?

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Lecture 12: Link-state Routing"

The Internet. Internet Technologies and Applications

Exercises TCP/IP Networking. Solution. With Solutions

IP Addressing. IP Addresses. Introductory material.

Routing and Packet Forwarding

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

O /27 [110/129] via , 00:00:05, Serial0/0/1

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Future Internet Technologies

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

Chapter 9. IP Secure

Savera Tanwir. Internet Protocol

Exterior Gateway Protocols (BGP)

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

IP Addressing Introductory material.

Ethernet (LAN switching)

Assignment #3 Routing and Network Analysis. CIS3210 Computer Networks. University of Guelph

Chapter 4 Network Layer

Assignment 6: Internetworking Due October 17/18, 2012

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Computer Networks. Main Functions

Lecture Computer Networks

IP address format: Dotted decimal notation:

Cisco Configuring Commonly Used IP ACLs

Interconnecting Cisco Network Devices 1 Course, Class Outline

Internet Protocol version 4 Part I

Internet Addresses (You should read Chapter 4 in Forouzan)

Data Communication Networks and Converged Networks

GregSowell.com. Mikrotik Routing

Layer 3 Routing User s Manual

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Internet Protocol Version 6 (IPv6)

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

COURSE AGENDA. Lessons - CCNA. CCNA & CCNP - Online Course Agenda. Lesson 1: Internetworking. Lesson 2: Fundamentals of Networking

IP addressing and forwarding Network layer

WAN Wide Area Networks. Packet Switch Operation. Packet Switches. COMP476 Networked Computer Systems. WANs are made of store and forward switches.

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Configuring a Gateway of Last Resort Using IP Commands

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Lecture 13: Distance-vector Routing. Lecture 13 Overview. Bellman-Ford Algorithm. d u (z) = min{c(u,v) + d v (z), c(u,w) + d w (z)}

INTERCONNECTING CISCO NETWORK DEVICES PART 1 V2.0 (ICND 1)

Application Protocols for TCP/IP Administration

VLAN und MPLS, Firewall und NAT,

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

CS 5480/6480: Computer Networks Spring 2012 Homework 3 Due by 1:25 PM MT, Monday March 5 th 2012

The Network Layer. Raj Jain. Washington University in St. Louis

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Data Networks Project 2: Design Document for Intra-Domain Routing Protocols

IP Next Generation (IPv6)

TCP/IP Fundamentals. Edmund Lam IT Audit Manager University of California 7/25/99 1

1000 CCNA Certification Exam Preparation Questions and Answers:

Transcription:

CSE331: Introduction to Networks and Security Lecture 8 Fall 2006

Announcements Reminders: Project I is due on Monday, Sept. 25th. Homework 1 is due on Friday, Sept. 29th. CSE331 Fall 2004 2

Internet Protocol Interoperability FTP HTTP NV TFTP TCP Overlays (running at hosts) UDP IP Virtual Network Infrastructure (runs globally) Networks (run locally) Ethernet ATM FDDI CSE331 Fall 2004 3

IPv4 Packet Format 0 4 8 16 19 31 Version Hlen TOS Length Ident Flags Offset TTL Protocol Checksum SourceAddr DestinationAddr Options (variable length) Pad DATA CSE331 Fall 2004 4

Scaling Problems Not enough network numbers. Class C network with 2 nodes wastes 253 IP addresses Class B network with ~300 nodes wastes 64,000 IP addresses Only 2 14 ~ 16,500 class B networks Routing information too cumbersome. More networks means larger routing tables CSE331 Fall 2004 5

Subnetting Idea: One IP network number allocated to several physical networks. The multiple physical networks are called subnets Should be close together (why?) Useful when a large company (or university!) has many physical networks. CSE331 Fall 2004 7

IP addresses Hierarchical, not flat as in Ethernet 0 7 24 Network Host A 1 0 14 16 Network Host B 1 1 0 21 8 Network Host C Written as four decimal numbers separated by dots: 158.130.14.2 CSE331 Fall 2004 8

Subnet Numbers Subnetting All nodes are configured with subnet mask Allows definition of a subnet number All hosts on a physical subnetwork share the same subnet number Subnet Mask (255.255.255.0) 111111111111111111111111 00000000 Subnetted Address: Network number Subnet ID Host ID CSE331 Fall 2004 9

Example of Subnetting Subnet mask: 255.255.255.128 Subnet #: 128.96.34.0 H1 128.96.34.15 128.96.34.1 R1 128.96.34.130 128.96.34.129 128.96.33.1 R1 Subnet mask: 255.255.255.128 Subnet #: 128.96.34.128 H2 128.96.34.139 H3 128.96.33.14 Subnet mask: 255.255.255.0 Subnet #: 128.96.33.0 CSE331 Fall 2004 10

Subnets, continued Mask is bitwise-anded with address This is done at routers Router tables in this model: <Subnet #, Subnet Mask, NextHop> Subnetting allows a set of physical networks to look like a single logical network from elsewhere CSE331 Fall 2004 11

Forwarding Algorithm D = destination IP address for each forwarding table entry (SubnetNumber, SubnetMask, NextHop) D1 = SubnetMask & D if D1 = SubnetNumber if NextHop is an interface deliver datagram directly to destination else deliver datagram to NextHop (router) CSE331 Fall 2004 12

Intradomain Routing RIP - Routing Information Protocol Uses distance vector algorithm Limited to small nets; <15 hops OSPF - Open Shortest Path First Augmented version of link-state Augmentation includes authentication, loadbalancing, and defined areas CSE331 Fall 2004 13

Spanning Trees (Abstractly) Given a connected graph G A spanning tree is an acyclic, connected subgraph of G that contains all the nodes. CSE331 Fall 2004 14

Spanning Tree Algorithm (Abstractly) Pick a root node Compute shortest paths to root Need to break ties Root CSE331 Fall 2004 15

Distance Vector Algorithm (RIP) Similar to the Spanning Tree Algorithm Except that information about distance to ALL nodes is forwarded (not just info. about root.) Sometimes called Bellman-Ford algorithm Each node constructs a Distance Vector Contains distances (costs) to reach all other nodes Initially: Distance to neighbors = 1 Distance to others = Routing table reflects node s beliefs CSE331 Fall 2004 16

Example Network Graph B A E C D F G A s initial information Dest. Cost NextHop B 1 B C 1 C D - E 1 E F 1 F G - CSE331 Fall 2004 17

Iteration Steps Each host sends its DV to its neighbors Neighbors can update their distance vectors and routing information accordingly. As in spanning tree, the nodes ignore worse information Update any better routes If host changed its tables, send new DV to neighbors After a few iterations, routing information converges CSE331 Fall 2004 18

Example Iteration Steps B A E C D F F sends A its DV. - A discovers that G can be reached in two hops through F C sends A its DV. - A discovers that D can be reached in two hops through C G A s initial information Dest. Cost NextHop B 1 B C 1 C D X 2 X - C E 1 E F 1 F G X 2 X - F CSE331 Fall 2004 19

Details Note: No single host has all routing information. When to send update vectors? When your routing table changes (triggered) Periodically ( I m alive! ) Detecting link/node failure (1) Periodically exchange I m alive! messages. (2) Timeout mechanism CSE331 Fall 2004 20