7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide - Data Server – L3 Routing Mar, 2006 OfficeServ Lab. Samsung Electronics Co., Ltd.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -1/35- Contents Static Route Configuration RIP Configuration OSPF Configuration L3 Routing Overview
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -2/35- Overview Static routing is fine if the network is small, there is a single connection point to other networks, and there are no redundant routes. If any of these conditions is false, dynamic routing is normally used. Look at the dynamic routing protocols used by routers to communicate with each other. 1. Introduction
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -3/35- Overview 2. IGP 와 EGP -. IGP (Interior Gateway Protocol). Routing protocol to communicate between the routers in each AS.. RIP (Routing Information Protocol). OSPF (Open Shortest Path First) -. EGP (Exterior Gateway Protocol). Routing protocols that are used between the routers in different ASs.. BGP (Border Gateway Protocol) ASAS IGP IGP EGP
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -4/35- Overview -. Popular routing protocols
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -5/35- Overview -. Autonomous systems Interior routing Exterior routing
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -6/35- Overview R [120/2] via , 00:00:23, eth0 R -- How the route was learned (RIP) Destination logical network or subnet Administrative distance /2 -- Metric Value 00:00:23 -- Age of entry eth0 -- outgoing interface 3. Routing information -. Example -. Metric If there are multiple paths within the AS from a router to a network, the router selects the path with the smallest hop count. -. RIP : Hop Counts -. OSPF : Bandwidth, Cost, ….
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -7/35- Overview -. Administrative distance
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -8/35- Overview 4. Static Route (example) / / / / / / / / /24 B A C D E e1 e0 s0 e0 e1 Router B ip route ip route ip route
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -9/35- Overview 5. RIP Use UDP datagram UDP datagram Format 20 bytes 8bytes IP headerUDP headerRIP message Metric: Hop Counts Hop Count’s limit : 15
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -10/35- Overview 5. RIP is based on distance vector routing, which uses the Bellman-Ford algorithm for calculating the routing tables. Distance Vector Routing – each router periodically shares its knowledge about the entire internet with neighbors –the operational principles of this algorithm 1.Sharing knowledge about the entire autonomous system 2.Sharing only with neighbors 3.Sharing at regular intervals (ex, every 30 seconds) Distance Vector Routing Table
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -11/35- Overview 5. RIP Command(1-6) Version(1)(must be zero) Address family(2)(must be zero) 32-bit IP address (must be zero) Metric(1-16) (up to 24 more routes, with same format as previous 20 bytes) -. RIPv1 message format Command : request (1) or response (2) Version of RIPv1 : 1 Address : destination network address Distance : defining the hop count from the advertising router to the destination network
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -12/35- Overview 5. RIP -. RIPv2 message format command(1-6) Version(2)routing domain address family(2)Routing tag 32-bit IP address 32-bit subnet mask 32-bit next-hop IP address metric(1-16) (up to 24 more roues, with same format as previous 20 bytes) 20bytes Route Tag : carrying information such as the autonomous system number Subnet mask : carrying the subnet mask Next-hop address : showing the next hop
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -13/35- Overview 5. RIP Timers in RIP – Periodic timer : controlling the advertisements of regular update messages – expiration timer : governing the validity of a route – the garbage collection timer : advertising the failure of a route Periodic timer – controlling the advertising of regular update messages – using random number between 25 to 35 seconds
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -14/35- Overview 5. RIP Expiration timer – In normal situation, the new update for a route occurs every 30 seconds – But, if there is a problem on an Internet and no update is received within the allotted 180 seconds, the route is considered expired and the hop count of the route is set to 16. – Each router has its own expiration timer. Garbage Collection Timer – When the information about a route becomes invalid, the router continues to advertise the route with a metric value of 16 and the garbage collection timer is set to 120 sec for that route – When the count reaches zero, the route is purged from the table.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -15/35- Overview 5. RIP Timer Example A routing table has 20 entries. It does not receive information about five routes for 200 seconds. How many timers are running at this time? The timers are listed below: Periodic timer: 1 Expiration timer: = 15 Garbage collection timer: 5
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -16/35- Overview 5. RIP RIPv1(Broadcast) RIPv2(Multicast) -. Routing update
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -17/35- Overview 5. RIP -. Routing update
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -18/35- Overview 5. RIP (Example) / / / / / / / / /24 B A C D E e1 e0 s0 e0 e1 Router A router rip network /24 network /24 Router B router rip network /24 network /24 Router D router rip network /24 network /24 Router E router rip network /24 Router C router rip network /24 network /24
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -19/35- Overview 6. OSPF Area 0 Area 1Area n Backbone router Area border router Internal router In a distance-vector protocol, each router sends and receives the messages which contain a vector of distances.(hop counts) In a link-state protocol, each router actively tests the status of its link to each of its neighbors, sends this info. to its other neighbors, which then propagate it throughout the AS. From a practical perspective, the important difference is that a link-state protocol will always converge faster than a distance vector protocol.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -20/35- Overview 6. OSPF Features that make OSPF superior to RIP –OSPF can calculate a separate set of routes for each IP type-of-service. –Each interface is assigned a dimensionless cost.(throughput, RTT, etc.) –Load balancing: When several equal-cost routes to a destination, OSPF distributes traffic equally among the routes. –OSPF supports subnets. –Point-to-point links bet’n routers do not need an IP addr. at each end. –A simple authentication scheme can be used. –OSPF uses multicasting instead of broadcasting.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -21/35- Overview 6. OSPF Function/FeatureRIPv1RIPv2OSPF Standard numberRFC 1058RFC 1723RFC 2178 Link-state protocolNo Yes Large range of metricsHop count(16 = infinity) Yes, based on 1-65,535 Update policy Routing table every 30 seconds Routing table every 30 seconds When link state change Or every 30 minutes Update addressBroadcastBroadcast, multicastmulticast Dead interval300 seconds total Variable settings Supports authenticationNoYes Convergence time Media delay + Dead interval Variable(based on Number of routers * DI) Variable(based on Number of router * DI) Variable-length subnetsNOYes Type of service(TOS)NO Yes Network diameter15 hops 65,355 possible RIP via OSPF
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -22/35- Overview 6. OSPF OSPF Message Format
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -23/35- Overview 6. OSPF Hierarchical Routing Consists of areas and autonomous systems Minimize routing update traffic Area 0 Area 1Area 2 Autonomous System
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -24/35- Overview 6. OSPF The Backbone and Virtual Links Backbone center of communication Virtual link provide path to backbone Avoid configuring virtual link if possible Area 0 Area 1 Area 2 Area 3
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -25/35- Overview 6. OSPF Link-State DB & Advertisement Link-State DB –represents the network topology –shared with OSPF routers in same area LSA (Link-State Advertisement) –sourced by router connected to link –flooded by all other routers in area –transmitted at each link-state change LSA
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -26/35- Overview 6. OSPF Link-State Advertisement Operation LSA LSA received Is entry in topological database reset timer for entry add to database flood LSA run SPF to caculate new table Y N
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -27/35- Overview 6. OSPF Type of Link-State Packets router network summary external ABRASBR external AS O - OSPF derived intra-area (router) IA - inter-area (summary) E1 - type 1 external E2 - type 2 external OSPF routing table
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -28/35- Overview 6. OSPF / / / / / / / / /24 B A C D E e1 e0 s0 e0 e1 Router B router ospf network /24 area0 network /24 area1 Router C router ospf network /24 area0 network /24 area2 Router D router ospf network /24 area2 network /24 area2 Area 1 Area 0 Area 2 Configuration Example
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -29/35- Overview 6. OSPF Virtual Link Example / / / / / / / / /24 B A C D E e1 e0 s0 e0 e1 Area 1 Area 0 Area 2 Area 3 Router C router ospf 100 network area 0 network area 2 area 2 virtual-link Router D router ospf 100 network area 2 network area 3 area 2 virtual-link
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -30/ Configuration -. Configure routing entry using static route. -. We can use Default GW option of Interface Static Route Network ip route or ip route /
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -31/35- Static Route 2. Static Route command & status -. For static route using Input Configuration Command -. Current Configuration Status add static route
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -32/ Configuration RIP Configuration PC # /24 OS7400 # /24 OS7400 # / /24 PC # OS7400 #3 OS7400 #1 configuration router rip version 2 (or version 1) network /24 redistribute connected OS7400 #2 configuration router rip version 2 (or version 1) network /24 network /24 redistribute connected OS7400 #3 configuration router rip version 2 (or version 1) network /24 redistribute connected OS7400 #1 configuration router rip version 2 (or version 1) network /24 redistribute connected OS7400 #2 configuration router rip version 2 (or version 1) network /24 network /24 redistribute connected OS7400 #3 configuration router rip version 2 (or version 1) network /24 redistribute connected OS7400 #2 Routing Table R>* /8 [120/2] via , eth0, 00:01:23 R>* /8 [120/2] via , eth1, 00:02:02 C>* /8 is directly connected, lo C>* /24 is directly connected, eth1 C>* /24 is directly connected, eth0 OS7400 #3 Routing Table R>* /8 [120/3] via , eth0, 00:03:09 C>* /24 is directly connected, eth1 C>* /8 is directly connected, lo C>* /24 is directly connected, eth0 R>* /24 [120/2] via , eth0, 00:01:08 OS7400 #2 Routing Table R>* /8 [120/2] via , eth0, 00:01:23 R>* /8 [120/2] via , eth1, 00:02:02 C>* /8 is directly connected, lo C>* /24 is directly connected, eth1 C>* /24 is directly connected, eth0 OS7400 #3 Routing Table R>* /8 [120/3] via , eth0, 00:03:09 C>* /24 is directly connected, eth1 C>* /8 is directly connected, lo C>* /24 is directly connected, eth0 R>* /24 [120/2] via , eth0, 00:01:08
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -33/ RIP command and status RIP Configuration Example) Configuration of OS7400 #3 -. RIP version 2 -. Redistribute Connected route (address of Network Interface)
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -34/ Configuration OSPF Configuration PC # /24 OS7400 # /24OS7400 # / /24 PC # OS7400 #3 OS7400 #1 configuration router ospf network /24 area 0 redistribute connected OS7400 #2 configuration router ospf network /24 area 0 network /24 area 0 redistribute connected OS7400 #3 configuration router ospf network /24 area 0 redistribute connected OS7400 #1 configuration router ospf network /24 area 0 redistribute connected OS7400 #2 configuration router ospf network /24 area 0 network /24 area 0 redistribute connected OS7400 #3 configuration router ospf network /24 area 0 redistribute connected OS7400 #2 Routing Table O>* /24 [110/20] via , eth0, 00:04:21 O>* /24 [110/20] via , eth1, 00:02:22 C>* /8 is directly connected, lo O /24 [110/10] is directly connected, eth1, 00:04:22 C>* /24 is directly connected, eth1 O /24 [110/10] is directly connected, eth0, 00:04:22 C>* /24 is directly connected, eth0 OS7400 #3Routing Table O>* /24 [110/20] via , eth0, 00:02:31 C>* /24 is directly connected, eth1 C>* /8 is directly connected, lo O /24 [110/10] is directly connected, eth0, 00:03:10 C>* /24 is directly connected, eth0 O>* /24 [110/74] via , eth0, 00:02:32 OS7400 #2 Routing Table O>* /24 [110/20] via , eth0, 00:04:21 O>* /24 [110/20] via , eth1, 00:02:22 C>* /8 is directly connected, lo O /24 [110/10] is directly connected, eth1, 00:04:22 C>* /24 is directly connected, eth1 O /24 [110/10] is directly connected, eth0, 00:04:22 C>* /24 is directly connected, eth0 OS7400 #3Routing Table O>* /24 [110/20] via , eth0, 00:02:31 C>* /24 is directly connected, eth1 C>* /8 is directly connected, lo O /24 [110/10] is directly connected, eth0, 00:03:10 C>* /24 is directly connected, eth0 O>* /24 [110/74] via , eth0, 00:02:32
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -35/ OSPF command and status OSPF Configuration Example) Configuration of OS7400 #3 -. OSPF area 0 -. Redistribute connected route (address of Network Interface)