COS 461 Fall 1997 Routing COS 461 Fall 1997 Typical Structure.

Slides:



Advertisements
Similar presentations
CPSC Network Layer4-1 IP addresses: how to get one? Q: How does a host get IP address? r hard-coded by system admin in a file m Windows: control-panel->network->configuration-
Advertisements

TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Computer Networks20-1 Chapter 20. Network Layer: Internet Protocol 20.1 Internetworking 20.2 IPv IPv6.
IPv6. Major goals 1.support billions of hosts, even with inefficient address space allocation. 2.reduce the size of the routing tables. 3.simplify the.
CS 457 – Lecture 16 Global Internet - BGP Spring 2012.
1 Internet Protocol Version 6 (IPv6) What the caterpillar calls the end of the world, nature calls a butterfly. - Anonymous.
Network Layer IPv6 Slides were original prepared by Dr. Tatsuya Suda.
1 o Two issues in practice – Scale – Administrative autonomy o Autonomous system (AS) or region o Intra autonomous system routing protocol o Gateway routers.
Copyright © 2011, Dr. Dharma P. Agrawal and Dr. Qing-An Zeng. All rights reserved. 1 Chapter 09 Network Protocols.
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
CSE331: Introduction to Networks and Security Lecture 9 Fall 2002.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 22 Introduction to Computer Networks.
CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
MULTICASTING Network Security.
Announcement r Project 2 Extension ? m Previous grade allocation: Projects 40% –Web client/server7% –TCP stack21% –IP routing12% Midterm 20% Final 20%
CS 6401 IPv6 Outline Background Structure Deployment.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
NETWORK LAYER (2) T.Najah AlSubaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET331.
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
Transport Layer 3-1 Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012  CPSC.
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking BGP, Flooding, Multicast routing.
WAN technologies and routing Packet switches and store and forward Hierarchical addresses, routing and routing tables Routing table computation Example.
1 Chapter 27 Internetwork Routing (Static and automatic routing; route propagation; BGP, RIP, OSPF; multicast routing)
1 Routing. 2 Routing is the act of deciding how each individual datagram finds its way through the multiple different paths to its destination. Routing.
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
UNIT IP Datagram Fragmentation Figure 20.7 IP datagram.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
The Network Layer Introduction  functionality and service models Theory  link state and distance vector algorithms  broadcast algorithms  hierarchical.
1 Routing Table  The seven fields Mask: for finding (sub)network address of the destination l Host-specific routing: (/32) l Default routing:
1 Internet Routing. 2 Terminology Forwarding –Refers to datagram transfer –Performed by host or router –Uses routing table Routing –Refers to propagation.
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
Network Layer4-1 The Internet Network layer forwarding table Host, router network layer functions: Routing protocols path selection RIP, OSPF, BGP IP protocol.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 20 Network Layer: Internet Protocol
EEC-484/584 Computer Networks Lecture 10 Wenbing Zhao (Part of the slides are based on Drs. Kurose & Ross ’ s slides for their Computer.
Network Layer4-1 Datagram networks r no call setup at network layer r routers: no state about end-to-end connections m no network-level concept of “connection”
Routing protocols. Static Routing Routes to destinations are set up manually Route may be up or down but static routes will remain in the routing tables.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 20 Omar Meqdadi Department of Computer Science and Software Engineering University.
Internet Protocols. ICMP ICMP – Internet Control Message Protocol Each ICMP message is encapsulated in an IP packet – Treated like any other datagram,
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
1 IEX8175 RF Electronics Avo Ots telekommunikatsiooni õppetool, TTÜ raadio- ja sidetehnika inst.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
Chapter 25 Internet Routing. Static Routing manually configured routes that do not change Used by hosts whose routing table contains one static route.
ITP 457 Network Security Networking Technologies III IP, Subnets & NAT.
Computer Networks 0110-IP Gergely Windisch
1 COMP 431 Internet Services & Protocols The IP Internet Protocol Jasleen Kaur April 21, 2016.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
4: Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Homework 4 Out: Fri 2/24/2017 In: Fri 3/10/2017.
TRANSPORT LAYER BY, Parthasarathy.g.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CPSC 335 Data Communication.
Dynamic Routing Protocols II OSPF
Routing BY, P.B.SHANMATHI.
(How the routers’ tables are filled in)
21-2 ICMP(Internet control message protocol)
ICMP ICMP – Internet Control Message Protocol
Chapter 5 The Network Layer.
What’s “Inside” a Router?
EEC-484/584 Computer Networks
Overview The Internet (IP) Protocol Datagram format IP fragmentation
Chapter 4: outline 4.1 Overview of Network layer data plane
Presentation transcript:

COS 461 Fall 1997 Routing

COS 461 Fall 1997 Typical Structure

COS 461 Fall 1997 Routing: Goals u avoid long paths u avoid congested paths u adapt to changes in topology u avoid centralized computation u keep memory requirements low

COS 461 Fall 1997 Routing Tables u each host has a routing table u table says where to forward packets destined for each network –forward only to directly connected hosts u Where do routing tables come from?

COS 461 Fall 1997 Simple Gateways outside u ordinary hosts send all packets destined for outside to the gateway machine u only gateway participates in the routing protocols gateway

COS 461 Fall 1997 Routing as a Graph Problem u each router becomes a vertex u each LAN link between routers becomes an edge u can label edges with “cost” of transmitting along that link

COS 461 Fall 1997 Hierarchical Routing u if part of graph is “tree-like” –each router needs to know only about the subtree below it –all traffic in or out of the tree is sent through the root –rest of network sees tree as collapsed to a single node u can make graph tree-link by deciding to ignore some links

COS 461 Fall 1997 Link-State Routing u three stages: –estimate “cost” for each link »based on bandwidth, congestion, reliability –communicate graph structure to all routers –each router solves shortest-path problem on graph u good: simple, gets the right answer u bad: scales poorly as routers are added

COS 461 Fall 1997 Distance-Vector Routing u iterative, distributed algorithm u nodes communicate with their neighbors, advertising available routing options u useful information diffuses through the graph destinationcostnext hop A13A B19A C3D D1D Einf-

COS 461 Fall 1997 Distance-Vector Algorithm u start with cost and next-hop for direct links –all other costs set to infinity u periodically, (dest, cost) pairs to neighbors u on receiving (dest, cost) from a neighbor, check whether it is a better path than the current one –it’s better if (cost to neighbor)+(neighbor’s cost to dest) < (my cost to dest)

COS 461 Fall 1997 Behavior of Distance-Vector u if network never changes, algorithm converges to optimum –time goes as O(longest path in hops) u if costs change or nodes are added, algorithm re-converges to new optimum u if nodes or links fail, bad things can happen –“count to infinity”

COS 461 Fall 1997 Count-to-Infinity Problem A C B 1 1 distance to C: 1 via C distance to C: 2 via A infinity3 via B4 via B5 via B6 via B solution: detect back-and-forth pattern misses cycles with 3 or more links

COS 461 Fall 1997 Routing in the Real Internet u two-level approach u divide Net into Autonomous Systems (AS) –each AS within one organization u routing within AS done locally –any algorithm is OK u routing between ASes uses BGP protocol

COS 461 Fall 1997 Routing within an AS u many approaches are viable –static routing tables –RIP (Routing Information Protocol) uses distance-vector approach –OPSF (Open Shortest Path First) uses link-state approach, with some optimizations

COS 461 Fall 1997 Inter-AS Routing u use Boundary Gateway Protocol (BGP) –each AS designates a single “BGP speaker” to represent it in the protocol –speakers advertise which ASes they can reach »also include path –like distance vector, but everybody knows the paths »each AS can choose paths by its own criteria »routing cycles avoided

COS 461 Fall 1997 Classless Routing u Inter-AS routing requires state for each network –uses too much space as more networks added u solution: aggregate routing information u example: if all nets whose numbers are xx use the same route, store only one record

COS 461 Fall 1997 Classless Routing u generalization: treat network number as having a variable number of bits u saves space in routing tables u allows variable number of hosts in a network, so uses network numbers more efficiently u but we’ll still run out of IP addresses before too long

COS 461 Fall 1997 IPv6 u upcoming version of IP u features –128-bit addresses –better control over routing offered to end hosts –security (crypto) –clean up mistakes in IPv4 –extensible (can add options) –can coexist with IPv4 »expect ten-year transition period

COS 461 Fall 1997 IPv6 Addressing u 128-bit host addresses u allocation of possible addresses –72% reserved for later use –provider-allocated range –geographically-allocated range –local-use-only addresses –wrapped IPv4 addresses –multicast addresses

COS 461 Fall 1997 IPv6 Header Format versionpriorityflow label payload lengthnext headerhop limit destination address next header or data 32 bits source address

COS 461 Fall 1997 IPv6 Header Fields u version: set to 6 u priority: 0-15 –higher priority gets preferential service –7 or lower means endpoints can slow down u flow label –experimental feature allows different treatment of different data flows between a pair of hosts

COS 461 Fall 1997 IPv6 Header Fields u payload length: excludes header u hop limit: decremented when packet is forwarded; packet dropped if this reaches 0 u next header: either –which of the defined extension headers comes next, or –which higher-level protocol should get this packet

COS 461 Fall 1997 Header Extensions u six currently defined (hop-by-hop options, routing, fragmentation, authentication, encrypted security payload, destination options) –more will be defined later (probably) u must appear in a fixed order u each has its own format

COS 461 Fall 1997 Differences with IPv4 u fragmentation done by sender only –too-large fragment causes ICMP error message back to sender; sender can refragment and try again u no checksum –higher level protocol should have one u support for crypto and authentication

COS 461 Fall 1997 Transition: From IPv4 to IPv6 u people will switch little by little –might take ten years u during transition, the two protocols will coexist –hosts and routers can run two-headed IP software –IPv6 packets can “tunnel” through IPv4 regions