490 likes | 706 Views
ITEC4610 Network Switching and Routing. ดร. ประวิทย์ ชุมชู หัวหน้าสาขาวิชาวิศวกรรมสารสนเทศและการสื่อสาร (ICE) MUT Email: prawit@mut.ac.th ห้องทำงาน : F402 เบอร์โทรศัพท์ที่ทำงาน : (02)9883655 ต่อ 220 เบอร์โทรศัพท์เคลื่อนที่ : 065343850. Class V Routing Algorithms, RIPv1&RIPv2.
E N D
ITEC4610Network Switching and Routing ดร. ประวิทย์ ชุมชู หัวหน้าสาขาวิชาวิศวกรรมสารสนเทศและการสื่อสาร(ICE) MUT Email: prawit@mut.ac.th ห้องทำงาน: F402 เบอร์โทรศัพท์ที่ทำงาน: (02)9883655 ต่อ 220 เบอร์โทรศัพท์เคลื่อนที่: 065343850
Class VRouting Algorithms, RIPv1&RIPv2 ดร. ประวิทย์ ชุมชู หัวหน้าสาขาวิชาวิศวกรรมสารสนเทศและการสื่อสาร(ICE) MUT Email: prawit@mut.ac.th ห้องทำงาน: F402 เบอร์โทรศัพท์ที่ทำงาน: (02)9883655 ต่อ 220 เบอร์โทรศัพท์เคลื่อนที่: 065343850
หัวข้อที่จะบรรยาย • Routing Algorithm • Distance-vector routing • Link state routing • RIPv1 • RIPv2
IP components สร้างได้อย่างไร? ไว้ทำอะไร สร้างได้อย่างไร? ไว้ทำอะไร? สร้างได้อย่างไร? ไว้ทำอะไร?
Global or decentralized information? Global: all routers have complete topology, link cost info “link state” algorithms Decentralized: router knows physically-connected neighbors, link costs to neighbors iterative process of computation, exchange of info with neighbors “distance vector” algorithms Static or dynamic? Static: routes change slowly over time Dynamic: routes change more quickly periodic update in response to link cost changes Routing Algorithm classification
Unicast Routing Protocols:RIP Objectives Upon completion you will be able to: • Distinguish between intra and interdomain routing • Understand distance vector routing and RIP • Understand link state routing
INTRA- AND INTERDOMAIN ROUTING Routing inside an autonomous system is referred to as intradomain routing. Routing between autonomous systems is referred to as interdomain routing.
DISTANCE VECTOR ROUTING In distance vector routing, the least cost route between any two nodes is the route with minimum distance. In this protocol each node maintains a vector (table) of minimum distances to every node The topics discussed in this section include: Initialization Sharing Updating When to Share Two-Node Loop Instability Three-Node Instability
ขบวนการสร้าง routing table • Initialization • Sharing • Updating
Initialization • ได้มาจากที่ไหน • ICMP - Router Solicitation - Router Advertisement
Note: In distance vector routing, each node shares its routing table with its immediate neighbors periodically and when there is a change.
Trigger Updates • A cost update distributed immediately in response to a detected change in the cost estimate for a route to destination • May delay trigger updates for a short time • The trigger updates contain information about only changed routes • RIP
Holddowns • Prevent the reinstatement of old routes • When a router moves from its routing table a route to a particular destination, it invokes a holddown that disables acceptance of new routes to this detination for a specified time interval • Disadvantage • Increase the time for routers to learn the correct new routes
การแสดงในรูปแบบของเวกเตอร์Bellman-Ford algorithm on a number of hops h
ตัวอย่างการคำนวน Dij(1)
ตัวอย่างการคำนวน Dij(2)
ตัวอย่างการคำนวน Node 1’s routing Table
Problem of Split Horizon • Node A could not guess that this is due to the split horizon strategy or because B has not received any news about X recently
Loop-Free Distance Vector Routing • Distributing enough information in update messages --> quickly detect, no prevent routing loop • Controlling the order in which nodes distribute update messages and compute routes in response to an increase in link cost Prevent loop but require • A significant number of message exchanges • Slow convergence • Refs • J. J. Garcia-Luna-Aceves: A Minimum-Hop Routing Algorithm Based on Distributed Information. Computer Networks 16: 367-382 (1989) • DUALEIGRP
แบบฝึกหัดลองทำดู Node 2’s routing Table
แบบฝึกหัดลองทำดู จงแสดงการคำนวนหา node 1’ routing table ใช้ Bellman-Ford’s algorithm
LINK STATE ROUTING In link state routing, if each node in the domain has the entire topology of the domain, the node can use Dijkstra’s algorithm to build a routing table. The topics discussed in this section include: Building Routing Tables
Concept of link state routing Each router knows network topology
การแสดงในรูปแบบของเวกเตอร์การแสดงในรูปแบบของเวกเตอร์
Message complexity LS: with n nodes, E links, O(nE) msgs sent DV: exchange between neighbors only convergence time varies Speed of Convergence LS: O(n2) algorithm requires O(nE) msgs may have oscillations DV: convergence time varies may be routing loops count-to-infinity problem Robustness: what happens if router malfunctions? LS: node can advertise incorrect link cost each node computes only its own table DV: DV node can advertise incorrect path cost each node’s table used by others error propagate thru network Comparison of LS and DV algorithms