3. Advanced Routing Mechanisms PA159: Net-Centric Computing I. Eva Hladká Slides by: Tomáš Rebok Faculty of Informatics Masaryk University Autumn 2023 Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 1/126 Lecture Overview Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols o RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 2/126 Lecture Overview Q Traffic Engineering in IP Networks • Introduction o Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation O Multiprotocol Label Switching • MPLS o Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 3/126 Routing: Recapitulation Lecture Overview I o Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Distance Vector Routing Protocols 9 RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 4/126 Routing: Recapitulation Lecture Overview II Q Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation O Multiprotocol Label Switching • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 5/126 Routing in General • Internet on the L3 - datagram apporach to packet switching • upper layer data are encapsulated into datagrams • datagrams (their fragments) travel through the network independently on each other • the global knowledge of the network's topology is problematic A • Routing = the process of finding a path in the network between two communicating nodes o the route/path has to satisfy certain constraints • influenced by several factors: • static ones: network topology • dynamic ones: network load Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 6/126 Routing: Recapitulation A Real Network Example Core Router [P], 0SR7609 L2/L3 Aoess Switch [CE] / PIONIER AS8501 ; \ PoP ' Liberec Děčín Cheb ACONET i, AS 1853 / Jindřichův Hradec Figure: The topology of the IP/MPLS layer of the CESNET2 network. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 7/126 Routing - the goal • the main goal of routing is: • to find optimal paths • the optimality criterion is a metric - a cost assigned for passing through a network • to deliver a data packet to its receiver • the routing usually does not deal with the whole packet path • the router deals with just a single step - to whom should be the particular packet forwarded • somebody "closer" to the recipient • so-called hop-by-hop principle • the next router then decides, what to further do with the received packet Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 8/126 Routing - Mathematical View • the routing can be seen as a problem of graph theory • a network can be represented by a graph, where: • nodes represent routers (identified by their IP addresses) • edges represent routers' interconnection (a data link) • edges' value = the communication cost • based on the employer metric - hop count, links' delay, links' usage, etc. • the goal: to find paths having minimal costs between any two nodes in the network B D E O M Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 9/126 Routing - Mathematical View Graph Theory Algorithms Two very important algorithms have profound impact on data networks: Bellman-Ford algorithm and Dijkstra's algorithm 9 both allow to compute shortest paths from a single source • to a single destination - Bel I man-Ford, complexity O(LN) • to all the destinations - Dijkstra, complexity 0(A/2) (can be improved to 0(L + NlogN)) e both of them have centralized and distributed variants • variants for widest-path computation also exist • so-called widest-path routing algorithms • algorithms, that use a non-additive concave property to define distance cost between two nodes • e.g., bandwidth - the bandwidth of a path is determined by the link with the minimum available bandwidth • i.e., if m(P) = min{m(ni, A72), m(n2, m(ni, nj)} =4> concave property o further details: • PB165: Graphs and networks (prof. Matýska, doc. Hladká, doc. Rudová) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 10/126 Routing - basic approaches distributed hop-by-hop deterministic single-path dynamic path selection INTERNET vs. centralized vs. source-based vs. stochastic vs. multi-path vs. static path selection Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 11 /126 Routing: Recapitulation Distributed Routing Distributed Routing - Basic Approaches Basic approaches to distributed routing: • Distance Vector (DV) - Bel I man-Ford algorithm • the neighboring routers periodically (or when the topology changes) exchange complete copies of their routing tables • based on the content of received updates, a router updates its information and increments its distance vector number • a metric indicating the number of hops in the network • i.e., "all pieces of information about the network just to my neighbors" • Link State (LS) - Dijkstra's algorithm • the routers periodically exchange information about states of the links, to which they are directly connected • they maintain complete information about the network topology -every router is aware of all the other routers in the network • once acquired, the Dijkstra algorithm is used for shortest paths computation • i.e., "information about just my neighbors to everyone" Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 12/126 Routing: Recapitulation Distributed Routing Distributed Routing - Link State vs. Distance Vector Link State Distance Vector Complexity: • every node has to know the cost of every link in the network =>- O(nE) messages • once a link state changes, the change has to be propagated to every node Speed of convergence: • 0(n ) alg., sends O(nE) messages • sustains from oscillations Robustness: • wrongly functional/compromised router spreads wrong information just about the links it is directly connected to • every router computes routing tables on its own =>- separated from routing information propagation =>- a form of robustness Usage: O Complexity: • once a link state changes, the change has to be propagated just to the closest neighbors; it is further propagated just in cases, when the changed state leads to a change in the current shortest paths tree • Speed of convergence: • may converge more slowly than LS 9 problems with routing loops/cycles, count-to-infinity problem 9 Robustness: 9 bad computation is spread through the network =>- may lead to a "confusion" of other routers (bad routing tables) Usage: suitable just for smaller networks suitable for large networks Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 13 /126 Distributed Routing Distributed Routing - Path Vector Path Vector (PV) • a variant of DV routing • in comparison with the DV, whole paths are sent in the PV (not only the end nodes) • allows a simple detection of loops • allows a definition of rules/policies (friendly vs. non-friendly ASs) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 14 /126 Routing: Recapitulation Autonomous Systems Autonomous Systems • the goal of Internet's division into Autonomous Systems is: • a reduction of routing overhead 9 simpler routing tables, a reduction of exchanged information, etc. • a simplification of the whole network management • particular internets are managed by various institutions/organizations o autonomous systems = domains • a 16bit identifier is assigned to every AS/domain • Autonomous System Number (ASN) - RFC 1930 • assigned by ICANN (Internet Corporation For Assigned Names and Numbers) 9 correspond to administrative domains • networks and routers inside a single AS are managed by a single organization/institution • e.g., CESNET, PASNET, ... • a distinction according to the way an AS is connected to the Internet: o Stub AS • Multihomed AS • Transit AS Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 15/126 Autonomous Systems - routing o separated routing because of scalability reasons: • interior routing • routing inside an AS • under the full control of AS's administrator(s) • the primary goal is the performance • so-called Interior Gateway Protocols (IGP) (e.g., RIP, OSPF, (E)IGRP, ISIS) • exterior routing • routing among ASs • the primary goal is the support of defined policies and scalability • so-called Exterior Gateway Protocols (EGP) (e.g., BGP-4) • a cooperation of interior and exterior routing protocols is necessary Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 Autonomous Systems - routing AS 1 AS 3 AS 2 Figure: Interior (IGP) vs. Exterior (EGP) routing protocols. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 Distance Vector Routing Protocols RIP protocol Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols o RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 18/ Distance Vector Routing Protocols RIP protocol Lecture Overview II Q Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation O Multiprotocol Label Switching • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 19/126 Distance Vector Routing Protocols RIP protocol Routing Information Protocol (RIP) • the principal actor of the DV routing 9 RIPvl (RFC 1058) - the first routing protocol used in TCP/IP-based network in an intradomain environment • RIPv2 (RFC 1723) - adds several features (e.g., explicit masking and an authentication of routing information) • RIPng (RFC 2081) - RIPv2's extension to support IPv6 addresses/networks • the number of hops is used as a metric • transfer of a packet between two neighboring routers = 1 hop • the routers send the information periodically every 30 seconds • messages sent over UDP protocol • supports triggered updates when a state of a link changes • timeout 180s (detection of connection errors) • usage: • suitable for small networks and stable links • not advisable for redundant networks Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 20/126 Distance Vector Routing Protocols RIP protocol RIP protocol - version 1 Message Format I. 0 X 2 3 4 6 7 0 X 2 34 6 7 0 1 23456701234 5 67 Command (1 byte) Version (1 byte) Mil st be zero (2 bytes) Address Family of net 1 (2 bytes) Must be zero (2 bytes) IP Address of net I (4 bytes) Must be zero (4 bytes) Vtjst be zero (4 byes) Hop Distance Metric to net 1 (4 bytes) 20 bytes Address Family of nel N _(2 bytes)_ Must be zero (2 bytes) IP Address of net N (4 bytes) Must he zero (2 bytes) Must be zero (2 bytes) 1 lop Distance Metric to net N {4 bytes) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 21/126 Distance Vector Routing Protocols RIP protocol RIP protocol - version 1 Message Format II. « Command - indicates, whether the message is a request (a router is asking its neighbor for DV information) or a response • Version - RIP version • Address family identifier - identifies the address family (set to 2 for the IP address family) • IP address - the destination network (identified by a subnet or a host) • Metric - hop count to the destination (a number in the range (1..16), 16 = infinity) RIPvl messages are broadcast. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 22 /126 Distance Vector Routing Protocols RIP protocol RIP protocol - version 1 Problems Analysis RIPvl suffers from several problems: • slow convergence and problems with routing loops/cycles - imposed by DV approach • infinity = 16 =4> the RIPvl cannot be used for networks with minimal amount of hops between any two routers > 15 • has no way (no field in the messages) to indicate anything specific about the network being addressed • RIPvl assumes that an address included follows a Class A, Class B, or Class C boundary implicitly • it does NOT support variable length subnet masking Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 23 /126 Distance Vector Routing Protocols RIP protocol RIP protocol - version 2 Message Format I. 01234567 012345670123456701234567 Command (1 byte) Version (1 byle) Unused (2 bytes) Address family of net 1 (2 bytes) Koute Tag (2 bytes) IP Address of net 1 (4 bytes) Subnet Mask to net 1 (4 bytes) Next Hop (4 bytes) Hop Distance Metric to net 1 (4 bytes) 20 bytes v Address Fa mil v of net N J _(2 bytes)_ Route Tag (2 bytes) IP Address of net N (4 bytes) Subnet Mask of net K (4 bytes) Next T Top (4 bytes) Hop Distance Metric to net N (4 bytes) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 24 /126 Distance Vector Routing Protocols RIP protocol RIP protocol - version 2 Message Format II. New fields introduced by RIPv2: • Route tag - used to differentiate internal routes within a RIP routing domain from external routes (the ones obtained from an external routing protocol) • Subnet mask - allows routing based on subnet instead of doing classful routing (eliminates a major limitation of RIPvl) • Next hop - an advertising router might want to indicate a next hop that is different from itself RIPv2 messages are multicast on 224.0.0.9. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 25/126 Interior Gateway Routing Protocol (IGRP) Interior Gateway Routing Protocol (IGRP): • developed by Cisco primarily to overcome the hop count limit and hop count metric of RIPvl • differs from the RIPvl in the following ways: • DV updates include five different metrics for each route • runs directly over IP with protocol (type field set to 9) • allows multiple paths for a route for the purpose of load balancing • external routes can be advertised • does NOT support variable length subnet masking Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 26/ Distance Vector Routing Protocols IGRP protocol Interior Gateway Routing Protocol (IGRP) Message Format I. 14 bytes 012345Ě7 012 3 456701234567012 3 4567 Version (1 nibble) OPcode (1 nibble) Ľdition (1 byte) Number of Internal Routes (2 bytes) Number of Fxteriox Ron tes (2 bytes) Autonomous Svstcm Number (2 bytes) N Limber oi System Routes _(2 bytes)_ Checksum (2 bytes) Destination (3 bytes) De lav Bandwidth Load (1 byte) Delav (3 bytes) Bandwidth (3 bytes) MTU (2 by les) Hop Count (1 byte) Reliability (1 byte) Destination Destination Delay (3 bytes) Bandwidth (3 bytes) MTU (2 bytes) MTU Reliability (1 byte) Load (1 byte) Hop Count (1 byte) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 27 /126 Interior Gateway Routing Protocol (IGRP) Message Format II. • Version - set to 1 ^ Opcode - ~ Command field in RIPvl 9 Edition - counter incremented by the sender (prevents from receiving an old update) 9 Autonomous system number - ID number of an IGRP process 9 Number of interior routes - a field to indicate the number of routing entries in an update message that are subnets of a directly connected network 9 Number of system routes - a counterpart of the number of interior routes 9 Number of exterior routes - the number of route entries that are default networks w Checksum - value calculated on the entire IGRP packet (header + entries) • Destination - the destination network for which the distance vector is generated (just 3B are used!) • Delay, Bandwidth, Reliability, Load - fields for composite metric computation • Hop count - a number between 0 and 255 used to indicate the number of hops to the destination • MTU - the smallest MTU of any link along the route to the destination IGRP messages are multicast on 224.0.0.10. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 28/126 Interior Gateway Routing Protocol (IGRP) Composite Metric Computation I. The IGRP uses a composite metric to compute a link cost: • included to provide flexibility to compute better or more accurate routes from a link cost rather than just using a hop count • based on four factors: bandwidth (B), delay (D), reliability (R), and load (L) • along with five nonnegative real-number coefficients (Kl, K2, K3, K4, K5) for weighting these factors 9 set on the routers • The composite metric, C ("cost of a link"), is given as follows: R K (Kí x B + K2 x-- + K3 x D) x ( ), if K5 / 0 (1) C= < Ki x B + K2 x 256 - £ B 256 - L R+K4 + K3 x D. if K5 = 0 (2) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 29 /126 Distance Vector Routing Protocols IGRP protocol Interior Gateway Routing Protocol (IGRP) Composite Metric Computation II. a example: considers the reliability of a link • i.e., if AC5 = 0 (the above part is not included), all the links have the same level of reliability • the default, often used case: K\ — K3 = 1 and K2 — K^ — K^ — Q • the composite metric reduces: Cdefauit = 6 + D • How can we compare bandwidth (kbps, Mbps) with delay (sec, milisec)? • a transformation process is necessary to map the raw parameters to a comparable level • see the literature • further details: Medhi, D. and Ramasamy, K.: Network Routing: Algorithms, Protocols, and Architectures. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 30/126 Distance Vector Routing Protocols IGRP protocol • the protocol message includes all the different metric components rather than the composite metric • ^> the composite metric is left to a router to be computed • it is extremely important to ensure that each router is configured with the same value of the coefficients Ki, K2, K3, K4, K5 • if NOT set equally, the routers' view of the shortest paths would be different • may cause routing problems Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 31/126 Enhanced Interior Gateway Routing Protocol (EIGRP) Enhanced Interior Gateway Routing Protocol (EIGRP): • another routing protocol developed by Cisco • it enhances IGRP in many ways (e.g., it provides loop-free routing, provides reliable delivery, allows variable length subnet masking, etc.) • the composite metric remains the same as in IGRP • originally designed for IPv4 only, IPv6 version proposed afterwards Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 32 / Distance Vector Routing Protocols Comparison DV Protocols Comparison Protocol RIPvl RIPv2 IGRP EIGRP RIPng Address IPv4 IPv4 IPv4 IPv4 IPv6 Family Metric Hop Hop Composite Composite Hop Information Unreliable, unreliable, Unreliable, Reliable, Unreliable, Communica- broadcast multicast multicast multicast multicast tion Routing Bellman- Bellman- Bellman- Diffusing Bellman- Computation Ford Ford Ford computation Ford VLSM/CIDR No Yes No Yes v6-based Remark Slow conver- Slow conver- Slow conver- Fast, loop- Slow con- gence; split gence; split gence; split free conver- vergence; horizon horizon horizon gence; chatty split hori- protocol zon Figure: Comparison of protocols in the distance vector protocol family. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 33 /126 Link State Routing Protocols OSPF Protocol Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols 9 RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 34/ Link State Routing Protocols OSPF Protocol Lecture Overview II Q Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation O Multiprotocol Label Switching • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 35/126 Link State Routing Protocols OSPF Protocol Open Shortest Path First (OSPF) I. Open Shortest Path First (OSPF) • currently the mostly used LS protocol • gathers link state information from available routers and constructs a topology map of the network • metric: cost 9 NO hop-count • a number (in the range between 1 and 65535) assigned to each router's network interface • the lower the number is, the better the link/path is (i.e., will be • by default, every interface is automatically assigned a cost derived from the link's throughput • cost = 100000000/bandwidth (bw in bps) • might be manually edited preferred) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 36 /126 Link State Routing Protocols OSPF Protocol Open Shortest Path First (OSPF) II. • features: • message authentication • up to OSPFv2 • OSPFv3 (running on IPv6) no longer supports protocol-internal authentication (instead, it relies on IPv6 protocol security (IPsec)) • routing areas • next layer of hierarchy - autonomous systems can be divided into subdomains (routing areas) • to simplify administration and optimize traffic and resource utilization (lower amount of messages exchanged among same-area routers) • load-balancing • OSPF can make use of more outgoing links with the same (lowest) cost • so-called Equal-Cost MultiPath (ECMP) • CIDR/Variable Length Subnet Mask support • OSPF messages are encapsulated directly in IP datagrams (protocol number 89) • OSPF handles its own error detection and correction functions • multicast is used for OSPF messages delivery (224.0.0.5 and 224.0.0.6 for IPv4, FF02: :5 and FF02: :6 for IPv6) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 37/126 Link State Routing Protocols OSPF Protocol Open Shortest Path First (OSPF) III. Message Format I. »lZ345670I2345670l2345b7Ql2 3 4Sh7 Version (1 byte) Type 0 bvfc) Packet Length (2 bytes) Ivoutur in (4 bytes) Area ID (4 bytes) Checksum (2 bvtes) Authentication Type (2 bytes) Authentication (4 bytes) Authentication (4 bytes) Figure: OSPF packet common header. OSPF messages: • Hello Packet • Database Description Packet 9 Link State Request Packet • Link State Update Packet • Link State Acknowledgement Packet Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 38/ Link State Routing Protocols IS-IS Protocol Intermediate System To Intermediate System (IS-IS) I. • Intermediate System To Intermediate System (IS-IS) • standardized by the ISO as a mechanism for communication between network devices (termed Intermediate Systems) • developed at the same time as the OSPF • originally designed for ISO-developed OSI Network Layer service called CLNS (Connectionless Network Service) • later extended to support routing of IP datagrams - called Integrated IS-IS or Dual IS-IS • RFC 1195 • key similarities with the OSPF: 9 both protocols provide network hierarchy through two-level areas • both protocols use Hello packets to initially form adjacencies and then continue to maintain them 9 both protocols support variable length subnet masks o both protocols maintain a link state database and perform shortest path computation using the Dijkstra's algorithm Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 39/126 Link State Routing Protocols IS-IS Protocol Intermediate System To Intermediate System (IS-IS) II. • key differences with the OSPF: • while OSPF packets are encapsulated in IP datagrams, IS-IS packets are encapsulated directly in link layer frames • IS-IS's run on top of layer 2 makes it relatively safer from spoofs or attacks • IS-IS is neutral regarding the type of network addresses for which it can route • easily adapted to support IPv6 • OSPF needed a major overhaul (OSPFv3) in order to support IPv6 • IS-IS allows overload declaration - an overloaded router may not be considered in path computation • OSPF's link metric value is in the range 1 to 65,535, while IS-IS's metric value is in the range 0 to 63 (narrow metric) 9 further extended to the range 0 to 16,777,215 (wide metric) • OSPF provides a richer set of extensions and added features • IS-IS is less "chatty" and can scale to support larger networks Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 40/126 Path Vector Routing Protocols BGP Protocol Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols • RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 41/ Path Vector Routing Protocols BGP Protocol Lecture Overview II Q Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation O Multiprotocol Label Switching • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 42/126 Path Vector Routing Protocols BGP Protocol Border Gateway Protocol (BGP) I. Border Gateway Protocol (BGP) • currently version 4 (BGP-4) * RFC 1771 » proposed due to Internet's grow and demands on complex topologies • supports redundant topologies, deals with loops/cycles, etc. • used to communicate information about networks currently residing in an autonomous system to other autonomous systems • the exchange is done by setting up a communication session between bordering autonomous systems • the communication channel is set on top of the TCP protocol support • the BGP relies on a fully reliable transport protocol o allows a definition of routing rules (policies) • uses a hop count metric • uses CIDR for paths' aggregation Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 43 /126 Border Gateway Protocol (BGP) II. Figure: The BGP's view of the Internet architecture. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 44/126 Path Vector Routing Protocols BGP Protocol Border Gateway Protocol (BGP) III. Advertisements • the BGP basis upon advertisements sent among BGP peers: • sent through reliable point-to-point communication channels • TCP, port 179 • an advertisement consists of: • a destination network address (using CIDR notation) • path attributes (e.g., the ASs on the path, next-hop router, etc.) • once paths are advertised to an AS, a routing policy takes place • a routing policy defines, which ASs are allowed to transit data through the particular AS, to which ASs the data are allowed to be forwarded, etc. • peering contracts are big bussiness (no standards exist) • if a routing policy is not defined, the shortest path is chosen Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 45/126 Path Vector Routing Protocols BGP Protocol Border Gateway Protocol (BGP) III. Message Types • OPEN - initiates a BGP session between a pair of BGP routers • allows routers to introduce themselves and to announce their capabilities • includes router's authentication information 9 UPDATE • used to advertise routing information from one BGP router to another ("push model") • used to withdraw a previously announced advertisment • the advertised information is valid until being explicitly withdrawn! • KEEPALIVE 9 exchanged when there is no other traffic • allows the BGP routers to distinguish between a failed connection and a BGP peer that has nothing to say • NOTIFICATION - used to close a session or to report an error • e.g., rejecting an OPEN message or reporting a problem with UPDATE message • ROUTE-REFRESH - a specific request to re-advertise all of the routes in router's routing table using UPDATE messages • not defined in the original BGP-4 (RFC 1771), but added by RFC 2918 Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 46/126 Path Vector Routing Protocols BGP Protocol Border Gateway Protocol (BGP) IV Routing table size Prefixes announced on the Internet 350000 300000 250000 (o 200000 X s> o- 150000 100000 50000 1990 1992 1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 Date Figure: The growth of the BGP Table. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 47 /126 Path Vector Routing Protocols BGP Protocol Border Gateway Protocol (BGP) IV Number of ASs on the Internet AS announced on the Internet 40000 35000 30000 25000 Q 20000 15000 10000 5000 0 1998 2000 2002 2004 2006 2008 2010 2012 Date Figure: The number of autonomous systems on the Internet. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 48 /126 Border Gateway Protocol (BGP) V. Internal BGP (IBGP) The basic problem: How to make external destinations (ASs) reachable from all the routers within an AS? => Internal BGP (IBGP) 9 a mechanism to provide information about adjacent ASs to internal routers of a particular AS 9 all IBGP peers within a same AS are fully meshed • peer announces routes received via eBGP (external BGP) to IBGP peers • but: IBGP peers do not announce routes received via IBGP to other IBGP peers • the learned routes are further distributed via interior routing protocol (IGP) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Router Architectures Router Introduction Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems 0 Dista nee Vector Routing Protocols 9 RIP protocol • IGRP protocol • EIGRP protocol • Comparison 0 Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Router Introduction Lecture Overview II Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation Q Multiprotocol Label Switching Advanced Routing Mechanisms: Literature • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 51/126 Router Architectures Router Introduction Router Functions • a router must perform two fundamental tasks: routing and packet forwarding • the routing process constructs a view of the network topology and computes the best paths • based on the information exchanged between neighboring routers using routing protocols • the best paths are stored in a data structure called a forwarding table • the packet forwarding process moves a packet from an input interface ("ingress") to the appropriate output interface ("egress") • based on the information contained in the forwarding table • the performance of the forwarding process determines the overall performance of the router Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 52 /126 Router Architectures Router Introduction Router Functions Basic forwarding functions I IP Header Validation • every IP packet arriving at a router needs to be validated • e.g., the version number of the protocol is correct, the header length is valid, checksum is correct, etc. Packet Lifetime Control • decrementing the TTL field to prevent packets from getting caught in the routing loops forever • it the TTL is zero or negative, the packet is discarded • and an ICMP message is generated and sent to the original sender Checksum Recalculation • since the value of the TTL has been modified, the header checksum needs to be updated Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 53/126 Router Architectures Router Introduction Router Functions Basic forwarding functions II Route Lookup • packet destination address is used to search the forwarding table for determining the output port Fragmentation • the router needs to split the packet into multiple fragments when the MTU of the outgoing link is smaller than the size of the packet that needs to be transmitted Handling IP Options • a packet may indicate that it requires special processing needs at the router Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 54/126 Router Architectures Router Introduction Router Functions Complex forwarding functions Packet Classification • for distinguishing packets, a router might need to examine not only the destination IP address but also other fields • such as source address, destination port, and source port, etc. Packet Translation • a router that acts as a gateway to a NAT network needs to support network address translation Traffic Prioritization o a router might need to guarantee a certain quality of service to meet service level agreements Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 55 /126 Router Architectures Router Introduction Router Functions Routing process functions Routing Protocols • routers need to implement different routing protocols (e.g., OSPF, BGP, and RIP) for maintaining peer relationships by sending and receiving route updates from adjacent routers System Configuration e a router needs to implement various functions enabling the operators to configure various administrative tasks • configuring the interfaces, routing protocol keep alives, rules for classifying packets, etc. Router Management • in addition to the configuration tasks, the router needs to be monitored for continuous operation • e.g., SNMP support Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 56/126 Router Architectures Router Introduction Router Elements Port Card »I- Output Network Interface L2 L3 Input Network Interface L2 L3 Line Card - Ingress Packet Processing Route Processor Card CPU Route Control Processor Memory Line Card Queue Manager ■onvarding^ Jable Traffic Manager Buffer Memory I Forwarding Engine Backplane Switch Fabric Card Egress Packet Processing ---------it L2 L3 L2 L3 Output Network Interface I Input Whvnrk Interface J Port Card Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 57 /126 Router Introduction Router Elements I. Network Interfaces 9 a network interface contains many ports that provide the connectivity to physical network links • a port is specific to a particular type of network physical medium (Ethernet, Sonet, etc.) Forwarding Engines 9 responsible for deciding to which network interface the incoming packet should be forwarded • by consulting a forwarding table = Address/Route Lookup Queue Manager 9 provides buffers for temporary storage of packets when an outgoing link from a router is overbooked • when these buffer queues overflow due to congestion, the queue manager selectively drops packets Traffic Manager • responsible for prioritizing and regulating the outgoing traffic, depending on the desired level of service Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 58/126 Router Architectures Router Introduction Router Elements III. Backplane • provides connectivity for the network interfaces • packets from an incoming network interface can be transferred to the outgoing network interface Route Control Processor • responsible for implementing and executing routing protocols • maintains a routing table that is updated whenever a route change occurs • based on the contents of the routing table, the forwarding table is computed and updated • runs the software to configure and manage the router • performs complex packet-by-packet operations • e.g., handling errors during packet processing • e.g., sending an ICMP message to the origin when packet's destination address cannot be found in the forwarding table (a) Routing table (b) Forwarding table IP prefix Next hop IP prefix Interface MAC address 10.5.0.0/16 192.168.5.254 10.5.0.0/16 ethO 00:0F:1F:CC:F3:06 Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 59/126 Router Architectures IP Address Lookup Algorithms Address Lookup with Classful Addressing with the classful addressing scheme, the forwarding of packets is straightforward • routers need to examine only the network part of the destination address • ^> the forwarding table needs to store just a single entry for routing the packets destined to all the hosts attached to a given network ' -" Incoming Destination Address i Identify Address Class Class A Extract netid I > Hash ^—>■ Forwarding Table Class B Class C Hash Forwarding Table Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 60 /126 Router Architectures IP Address Lookup Algorithms Address Lookup with CIDR - Longest Prefix Matching • address lookup with CIDR is more difficult since: O a destination IP address does not explicitly carry the netmask information O the prefixes in the forwarding table against which the destination address needs to be matched can be of arbitrary lengths Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 61/126 IP Address Lookup Algorithms Address Lookup with CIDR - Longest Prefix Matching Requirements I. Lookup Speed • Internet traffic measurements show that roughly 50 % of the packets that arrive at a router are TCP-acknowledgment packets, which are typically 40-byte long • thus, the prefix lookup has to happen in the time it takes to forward such a minimum-size packet (40 bytes) • known as wire-speed forwarding • wire-speed forwarding for: • lGbps link ^> prefix lookup should not exceed 320 nanosec • lOGbps link ^> prefix lookup should not exceed 32 nanosec • 40Gbps link ^> prefix lookup should not exceed 8 nanosec 1 Gbps computed as: 40 bytes x 8 bits/byte 1 x 109 bps 320 nanosec Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 62 /126 Router Architectures IP Address Lookup Algorithms Address Lookup with CIDR - Longest Prefix Matching Requirements II. Memory Usage • i.e., the amount of memory consumed by the data structures of the algorithm 9 a memory-efficient algorithm can effectively use the fast but small cache memory Scalability • algorithms are expected to scale both in speed and memory as the size of the forwarding table increases Updatability • route changes occur fairly frequently • rates varying from a few prefixes per second to a few hundred prefixes per second • =4> the route changes require updating the forwarding table data structure in the order of milliseconds or less Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 63/126 Router Architectures IP Address Lookup Algorithms Address Lookup with CIDR - Longest Prefix Matching Algorithms I. Naive Algorithms 0 the simplest algorithm for finding the best matching prefix is a linear search of prefixes 9 time complexity is O(N) • N . .. number of prefixes in a forwarding table • useful if there are very few prefixes to search; otherwise the search time degrades as N becomes large Trie-based Algorithms • note: "trie" comes from "retrieval", not from "tree" • several variants proposed: • Binary Tries • Multibit Tries • Compressed Multibit Tries Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 64/126 Router Architectures IP Address Lookup Algorithms Address Lookup with CIDR - Longest Prefix Matching Algorithms II. p1 0* P2 P3 00001* 001* P4 1* r P5 1000* 7 V P6 P7 P8 1001* 1010* 1011* Q P9 111* 0 o o o a p, p. 8 Figure: Binary trie data structure example. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 65 /126 Router Architectures IP Address Lookup Algorithms Address Lookup with CIDR - Longest Prefix Matching Algorithms II. Other Approaches 9 Search by Length Algorithms • Search by Value Approaches • Hardware Algorithms • RAM-Based Lookup, Ternary CAM-Based Lookup, Multibit Tries in Hardware, etc. Further details: 9 Med hi, D. and Ramasamy K.: Network Routing: Algorithms, Protocols, and Architectures. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 66 /126 IP Packet Filtering and Classification IP Packet Filtering and Classification I. Importance of Packet Classification/Filtering: • Providing preferential treatment for different types of traffic • to provide different service guarantees for different types of traffic, an ISP might maintain different paths for the same source and destination addresses • Flexibility in accounting and billing 9 an ISP needs flexible accounting and billing based on the traffic type • Preventing malicious attacks • the ability to identify malicious packets and drop them at the point of entry • ^> different traffic can be charged at different prices o etc. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 67 /126 Router Architectures IP Packet Filtering and Classification IP Packet Filtering and Classification II. The criteria for classification are expressed in terms of rules or policies • using the header fields of the packets • =^> the forwarding engine needs to examine packet fields other than the destination address to identify the context of the packets • and to perform required processing/actions in order to satisfy user requirements • a collection of such rules/policies - rule/policy database, flow classifier or simply classifier • each rule specifies: • a flow to which a packet may belong (based on expressed conditions) • exact match, prefix match, range match, regular expression match, etc. • an action which has to be applied to packets belonging to the flow • like permit, deny, encrypt, etc. • a packet may match more than one rule in the classifier • a cost is associated with each rule to determine an unambiguous match • ^> the goal is to find the rule with the least cost that matches a packet's header • when the rules are placed in the order based on their cost —>> the goal is to find the earliest matching rule Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 68/126 Router Architectures IP Packet Filtering and Classification IP Packet Filtering and Classification Algorithms • Naive Algorithms • storing the rules in a linked list in the order of increasing cost • storage efficient, but seach-time inefficient (does not scale) • Two-dimensional Solutions • Hierarchical Tries, Set Pruning Tries, Grid-of-Tries • d-dimensional Solutions 9 Divide and Conquer Approaches • Lucent Bit Vector, Aggregated Bit Vector, Cross-Producting, Recursive Flow Classification • Tuple Space Approaches • Decision Tree Approaches • Hierarchical Intelligent Cuttings (HiCuts), HyperCuts, • Hardware-Based Solutions • Ternary Content Addressable Memory (TCAM) Further details: Medhi, D. and Ramasamy, K.: Network Routing: Algorithms, Protocols, and Architectures. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 69/126 Traffic Engineering in IP Networks Introduction Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols 9 RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 70/ Traffic Engineering in IP Networks Introduction Lecture Overview II Q Traffic Engineering in IP Networks • Introduction o Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation Q Multiprotocol Label Switching • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 71/126 Traffic Engineering in IP Networks Introduction I. • (interior) routing protocols used in IP networks are based on Shortest Path First (SPF) routing • in an unused network, the SPF is ideal: • datagrams are delivered expeditiously with the least use of network resources • Problem statement: once traffic increases, a link/router on the shortest path may become saturated • while longer paths remain unused/underused • Equal-Cost MultiPath (ECMP) is usable, but NOT problem-solving solution Host U Router A Router B Router D Router E Host X Traffic Engineering in IP Networks Introduction Traffic Engineering in IP Networks Introduction II. Traffic E ngineering Traffic Engineering is all about discovering what other paths and links are available in the network, what the current traffic usage is within the network, and directing traffic to routes other than the shortest so that optimal use of the resources in the network is made. • achieved by a combination of: • extensions to existing IGP protocols • traffic monitoring tools • traffic routing techniques • occurs outside the actual network o does not address issues such as traffic surge lasting a few seconds/minutes Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 73 /126 Traffic Engineering in IP Networks Introduction III. Performed steps: O traffic measurements are collected to estimate the traffic matrix O topology and configuration is obtained from the network O a link weight determination process determines link weights • the computed link weights for each link are injected into the network • i.e., each router receives a metrics for its outgoing links • once injected, using a normal OSPF/IS-IS flooding process the metrics are disseminated through link-state advertisements Question: How often should the TE system update the link weights? • up to the network provider/administrator • usually once a day or once a week • to avoid short-term traffic fluctuations 9 since traffic matrix determination is a fairly complex and time-consuming process Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 74/126 Traffic Engineering in IP Networks Introduction Traffic Engineering in IP Networks Introduction IV. Figure: IP Traffic Engineering architectural framework. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 75/126 TE - Complexity illustration I. Host U Router A Router B Router D Router E Host X Which costs should be assigned to a, b, c, and d? 9 not trivial even in such a simple network Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 76/126 TE - Complexity illustration II. Host U Router A Router B Router D Router E Host X • a=b=c = d = l^a\\ traffic tends toward the link FG • a = c = d = 1, b = 7 • U —>> X routed through B, C, D (total cost 6) • 1/1/ Z routed through J (total cost 5) • V —>> Y routed through J (total cost 5) • not ideal - some congestion is moved to router J Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 77/126 Traffic Engineering in IP Networks Introduction TE - Complexity illustration III. Router H Router J Router K • a = c = 2, b = 7, d = 10 achieves the desired result • U —>> X routed through B, C, D (cost 6), V —> Y routed through F, G (cost 9), and 1/1/ Z routed through J (cost 5) • But: imagine W -> X traffic - takes the path WHFABCDEX (cost 9) instead of the shorter path WHFGEX (cost 12) 9 we can increase a to 6 • but what about U —> Y traffic? (will prefer UABCDEGY over shorter UAFGY ©) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 78 /126 Traffic Engineering in IP Networks Discovering Network Utilization TE - Discovering Network Utilization I. • a network-wide view of resource utilization is needed • a challenging problem • several methods to collect and consolidate network usage information exist: O Simple Network Management Protocol (SNMP) 9 an application polls each router and converts the returned information into a view of usage across the network • does not determine, which flows need to be redistributed to ease any congestion (just an absolute measure of the traffic load is obtained) O NetFlow • Cisco's tool collecting the information at key points within the network • includes aggragation points (NetFlow collectors) consolidating the information from a subset of the network O sFlow, ntop, etc. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 79 /126 Traffic Engineering in IP Networks Discovering Network Utilization - Discovering Network Utilization II. network traffic is nonstationary and (usually) time-dependent • data rate is different depending on the time of the day • ^> usually, a peak of the traffic data rate (or, say 90% of the peak) over the 24-hour window is considered as a traffic volume needed for traffic engineering considerations 48 40 a £ 32 24 - CJ 5 16 8 0 (15-minute average window) zt i 6 AM 12 Noon Time 6 PM 12 Midnight Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 80/ TE - Discovering Network Topology • the application making TE decisions must have a clear view of the topology and capabilities of the links within the network • small, static networks =4> manual configuration is sufficient • large and dynamic networks =4> an automatic system has to be used • naturally, extending the IGP routing protocols to distribute additional information about the links will do the job • both OSPF and IS-IS have been extended to provide (for each link): • traffic engineering metric, maximum bandwidth, maximum reservable bandwidth, unreserved bandwidth, etc. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 81 / Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow • single-commodity - just a single node pair in the network has positive demand volume • commodity « demand for a link's capacity • let's assume the following network: Let's denote: • c ... a capacity of each link (here the same for all the links) • h . .. the demand volume for node pair 1 : 2 • *12, *132 ■ ■ ■ the amount of the demand volume to be routed over the path 1 - 2 (resp. 1-3-2) Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow Problem Constraints h 12 Then the following constraints have to be satisfied: o the demand volume h has to be carried over these two paths: Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 83 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow Problem Constraints h \ A'l32 12 Then the following constraints have to be satisfied: o the demand volume h has to be carried over these two paths: • Xl2 + *132 = h Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 83 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow Problem Constraints h \ A'l32 12 Then the following constraints have to be satisfied: o the demand volume h has to be carried over these two paths: • Xl2 + *132 = h • a path may not carry any negative demand: Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 83 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow Problem Constraints h \ A'l32 12 Then the following constraints have to be satisfied: o the demand volume h has to be carried over these two paths: • Xl2 + *132 = h • a path may not carry any negative demand: X12 > 0, X132 > 0 Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 83 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow Then the following constraints have to be satisfied: o the demand volume h has to be carried over these two paths: • Xl2 + *132 = h • a path may not carry any negative demand: • *12 > 0, x132 > 0 • any flow on the path cannot exceed the capacity on any of the links the path uses: Problem Constraints Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 83 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow Problem Constraints h \ A'l32 12 Then the following constraints have to be satisfied: o the demand volume h has to be carried over these two paths: • Xl2 + *132 = h • a path may not carry any negative demand: • *12 > 0, x132 > 0 • any flow on the path cannot exceed the capacity on any of the links the path uses: • X12 < c, X132 < c (same capacity on each link) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 83 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow The Goal - Minimize the cost of routing I. Let's assume the goal of minimizing the cost of routing flows: • let's introduce a cost per unit of flow on each path: £12 and £132, both > 0 9 ^ a price payed for data transferred over the path TotaLcost = £12*12 + £132*132 1 = the objective function (in general denoted by F) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 84/126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow The Goal - Minimize the cost of routing II. \ 'M32 12 The complete problem could be written as follows: minimize^ Xl32] F = ^12x12 + §132*132 subject to x\2 + X132 — h X12 < C, X132 < C X12 > 0, X132 > 0. The above system solves a goal of minimizing the cost (price) of routing for the above topology when a traffic demand h is given. 9 it finds proper values of X12 and X132 satisfying the given conditions Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 85 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Single-Commodity Network Flow The Goal - Load Balancing Another goals could be also considered: • load balancing - minimization of maximum link utilization • average delay - minimization of the average packet delay Example: Minimization of maximum link utilization: • utilization of the link 1 - 2: ^ c o utilization of the links 1 — 3 or 3 — 2: mi c o maximum utilization over all links: maxj^,^2} The above system solves a goal of balancing the load over paths 1 — 2 and 1 — 3 — 2 when a traffic demand h is given. minimize {x} F = max{^, subject to x\2 + X132 = h Xl2 < C, X132 < C X12 > 0, X132 > 0. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 86 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow e multicommodity - all the three demand pairs can have positive demand volumes • h12, h13, h23 • for each demand pair, the volume of demand can be accommodated using two paths: Demand. Pair IJt 0" Path: 1-2 <2> Demand Pair 1:3 (•> Path: 1-3 Path: 1-2-3 Demand Pair hi Path: 2-3 Path: 2-1-3 Path; 1-3-2 Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 87/126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow Problem Constraints Then the following constraints have to be satisfied: o the demand volume for each node pair may be carried over two paths: Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 88/ Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow Problem Constraints Then the following constraints have to be satisfied: • the demand volume for each node pair may be carried over two paths: • => X12 + X132 = hu • => X13 + X123 = hu • X23 + X213 = /?23 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow Problem Constraints Then the following constraints have to be satisfied: • the demand volume for each node pair may be carried over two paths: • X12 + X132 = hu • => X13 + X123 = /ll3 • =^ X23 + X213 = h23 • links' capacity limits must also be satisfied: 3. Advanced Routing Mechanisms Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow Problem Constraints Then the following constraints have to be satisfied: • the demand volume for each node pair may be carried over two paths: • =>• X12 + X132 = hn • =>• X13 + X123 = hi3 • X23 + X213 = h23 • links' capacity limits must also be satisfied: • =>• X12 + X123 + X213 < Cl2 • =^ X13 + X132 + X213 < C13 • =^ X23 + X132 + X123 < C23 3. Advanced Routing Mechanisms 88 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow Problem Constraints Then the following constraints have to be satisfied: • the demand volume for each node pair may be carried over two paths: X12 + X132 = hn X13 + X123 = h13 X23 + X213 = h23 • links' capacity limits must also be satisfied: • =>• X12 + X123 + X213 < Cl2 • X13 + X132 + X213 < C13 • X23 + X132 + X123 < C23 Total cost: TotaLcost = £12X12 + £132X132 + £13*13 + £123X123 + £23X23 + £213X213 Eva Hladká (TI MU) 3. Advanced Routing Mechanisms Autumn 2023 88 /126 Traffic Engineering in IP Networks Links' Weights Computation Network Flow Modeling - Multicommodity Network Flow The Goal - Minimize the cost of routing Then, the goal of minimizing the cost of routing can be formulated as follows: minimize^} F = £12*12 + £132*132 + £13*13 + £123*123 + £23*23 + £213*213 subject to x 12 + *i32 = h\2 *13 + *123=^13 *23 +*213 = ^23 *12 +*123 + *213 < C\2 *13 + *132 +*213 < 0, *132 > 0, *13 > 0, X123 > 0, ,Y23 > 0. *213 > 0. (Another goals (load balancing, average delay, etc.) can be formulated as well.) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 89/ Traffic Engineering in IP Networks Links' Weights Computation TE - Shortest Path Routing and Network Flow • in an IP network based on OSPF or IS-IS, the shortest paths are computed based on links' weights • this computation does NOT consider traffic volume or (usually) capacity of the network o the previous examples did NOT consider the links' weights • How is the shortest path routing related to network flow modeling? • link weights drive the flows • let's denote w to be an array of link weights of all links in the network • 1/1/ = (l/l/i, 1/1/2, W3, . . . ) • a dependency of a flow xn on the link weights will be denoted as xn(i/i/) Traffic Engineering in IP Networks Links' Weights Computation TE - Shortest Path Routing and Network Flow MCSPRF optimization problem I. The goal: to determine link weights for given traffic volume demand and capacity limits where a certain objective is optimized. The Multicommodity shortest path-based routing flow (MCSPRF) optimization problem having the objective to minimize the maximum link utilization (load balancing) can be formulated as follows: m in imize\WJ\ F = r Pk subject to J2xkp(w) = hk, k=l,2,..^K yt 0, p = 1,2,Pk, = 1,2,K yt >0, ^ = 1,2, ...,L r>0. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 91/ Traffic Engineering in IP Networks Links' Weights Computation TE - Shortest Path Routing and Network Flow MCSPRF optimization problem II. Where Notation Explanation K Number of demand pairs with positive demand volume L Number of links hk Demand volume of demand index k = \,2,K Capacity of link t = 1, 2, ...,L Pk Number of candidate paths for demand k, k = \,2, ...,K &kpt Link-path indicator, set to 1 if path p for demand pair k uses the link I; 0, otherwise Škp Unit cost of flow on path p for demand k Unit cost of flow on link t Link weight for link £ = 1,2,L Flow amount on path p for demand k for given link weight system w Xkp Flow amount on path p for demand k ye Link flow variable for link I r maximum link utilization variable * Use as a superscript with a variable to indicate optimal solution, e.g., x£p The weights are determined by solving a dual problem. » details: PA163: Constraint programming (dr. Rudová) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Traffic Engineering in IP Networks Links' Weights Computation TE - Shortest Path Routing and Network Flow K Pk E E SkpiXkpiW) < et, £ = l,2,.... L k=lp=\ Xkp(w)>0, p = l,2,...,Pk, k = \,2,...,K. MCSPRF - Minimum cost objective minimize^} F = E E ŠkpXkP(w) k=\p=l Pk subject to E xkp{w) — hk. 1,2, ...,K Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 93 /126 TE - Shortest Path Routing and Network Flow MCSPRF - Minimum cost AND load balancing objective ■ • mtmmtze{xr} subject to k=\p=\ i=\ K Pk k=l p=l X/cp > 0, p r > 0. = 1, 2, K = 1,2,..., L = 1,2,..., P k < Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 Multiprotocol Label Switching MPLS Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols 9 RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 95/ Multiprotocol Label Switching MPLS Lecture Overview II Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation O Multiprotocol Label Switching • MPLS o Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 96/ Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) Introduction I. Multiprotocol Label Switching (MPLS) 9 a new forwarding mechanism originally presented as a way of improving the forwarding speed of core IP routers • in MPLS network, packets are forwarded based on labels 9 a label is added in front of a packet (i.e., as another header so that routers know how to act based on this label) • assigned when packet enters the MPLS-capable network • internal MPLS routers don't inspect packet's IP address • short and fixed-length label lookup is much faster than longest-prefix match performed on every router • labels usually correspond to IP destination networks • but can also correspond to other parameters, such as QoS or source address • requires new protocols to distribute label information • or extensions to existing protocols Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 97/126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) Introduction II. Multiprotocol Label Switching (MPLS) - cont'd. • MPLS flows are connection-oriented and packets are routed along pre-configured Label Switched Paths (LSPs) • the MPLS connection (LSP) is unidirectional • two-way communication requires a pair of LSPs to be established 9 the paths for forward and reverse directions may differ • MPLS allows new forwarding paradigms not available with conventional IP routing • e.g., the ability of network operators to dictate the path that traffic takes through their network, Virtual Private Network support, etc. • for example, low-priority data may be sent on a longer path to keep the shortest path clear for higher-priority traffic • MPLS has emerged into a crucial standard technology for large-scale IP networks Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 98/126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) Basic functionality • an analysis of packets entering the network • and their classification to FEC classes (Forward Equivalence Class) • the classification may be based on more information than just on the destination address • for example, type of service, VPN, etc. 9 labels' creation for all the FEC classes • determination/creation of Label Switched Paths (LSPs) • labels' distribution • setting the forwarding information tables in the routers 9 the tables are known as Label Information Base (LIB) or Label Forwarding Information Base (LFIB) • the tables map {incoming-interface, incomingJabel} to { outgoing Jn terfa ce, outgoing Jabel} • each MPLS core router maintains a valid mapping from the label of an incoming packet ("incoming label") to a label to be attached to the packet before being sent out ("output label") • packets' forwarding (based on the label) • MPLS header (called shim header) creation Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 99/126 Multiprotocol Label Switching (MPLS) MPLS Example Figure: Label swapping and label switched paths. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 100 /126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Network Components I. Edge Label-Switched Routers (Edge-LSRs) = border routers • Ingress-LSR • analyses information in IP packet header • based on analysed information, the packet is assigned to particular FEC • depending on the assigned FEC, a proper label is inserted into MPLS header • Egress-LSR • removes MPLS header and forwards original IP packet to an egress link • decrements packet's TTL field Core Label-Switched Routers (Core-LSRs) • ensures packets' forwarding based on the assigned label • the IP header is neither modified nor analysed by the Core-LSRs • just MPLS labels are analysed and modified, if necessary Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 101/126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Network Components II. Ingress Egress Figure: Structure of the MPLS network. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 102 / Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Shim Header MPLS header 32 bits = 4 bytes Label Value TC S TTL 20 bits 3 bits 1 bit 8 bits L2 header MPLS header IP packet o Label - carries the actual value of the Label • Traffic Class field - previously named as Experimental • Stack - set to one for the last entry in the label stack, and zero for a other label stack entries • receiving router examines the top label only • TTL - used to encode a time to live value Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 103/ Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Labels usually, just a single MPLS label is assigned to a packet scenarios, that may produce more than one label: • MPLS VPNs-2 labels • the top label points to the egress router and the second label identifies the VPN • MPLS Traffic Engineering - 2 labels • the top label points to the endpoint of the traffic engineering tunnel and the second label points to the destination • MPLS TE combined with MPLS VPNs - 3 or more labels • etc. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 104 /126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Label Distribution • before an LSP can be used, the LFIBs must be populated at each LSR along the path • ^> a label distribution protocol has to be used • several protocols could be used: • BGP (Border Gateway Protocol) - its extension allowing labels' distribution • RSVP-TE (RSVP-Traffic Engineering) - a modified version of the RSVP protocol • LDP (Label Distribution Protocol) - a specialized protocol for MPLS networks • TDP (Tag Distribution Protocol) - Cisco's specialized protocol for MPLS networks • LDP/CR (Label Distribution Protocol/Constrained Routing) - LDP's extension for QoS support • etc. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 105/126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Label Distribution - Basic approaches I. Downstream-on-demand, ordered control approach • MPLS devices do not signal a FEC-to-label binding until requested to do so by an upstream device • an LSR does not advertise a label for a FEC unless it is the egress LSR for the FEC or until it has received a label for the FEC from its downstream peer 9 the same label has to be used only between adjacent LSRs! Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Label Distribution - Basic approaches II. Downstream-unsolicited, independent control approach 9 MPLS devices do not wait for a request from an upstream device before signaling FEC-to-label bindings • as soon as the LSR learns a route, it sends a binding for that route to all peer LSRs, both upstream and downstream « the LSR sending the label acts independently of its downstream peer • it does not wait for a label from the downstream LSR before it sends label to its peers 107/ Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) MPLS Label Distribution - LDP protocol Label Distribution Protocol (LDP) • a protocol defined by the IETF (RFC 5036) for the purpose of distributing labels in an MPLS environment • relies on the underlying routing information provided by an IGP in order to forward label packets • makes use of the TCP or UDP transport protocols • can operate in both Downstream-on-demand and Downstream-unsolicited modes • main protocol activities: • discovery of LDP-capable LSRs that are "adjacent" • LDP's Discovery message • establishment of a control conversation between adjacent LSRs, and negotiation of capabilities and options • LDP's Adjacency message • advertisement of labels • withdrawal of labels • both performed by LDP's Label Advertisement message • error notifications • LDP's Notification message Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 108/126 Multiprotocol Label Switching MPLS Multiprotocol Label Switching (MPLS) Traffic Engineering in MPLS I. MPLS is able to supply much of the function of the traffic engineered overlay model in an integrated manner: • MPLS has the ability to establish an LSP that follows a path other than the one offered as "preferred" by the routing protocol and forwarding algorithm • resources within the network can be dynamically reserved as LSPs are established and can be dynamically updated as the needs of the LSPs change • traffic flows can be guaranteed a level and quality of service • traffic can be groomed onto "parallel" LSPs • multiple LSPs can be established between a pair of source and destination end points • traffic can be distributed over the LSPs by a defined algorithm • recovery procedures can be defined describing how traffic can be transferred to alternate LSPs in the event of a failure • indicating how and when backup and standby LSPs should be set up and • load-sharing and traffic grooming decisions need to be made just once (at the entry point into the LSP) rather than at each node within the network routed • etc. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 109 /126 Multiprotocol Label Switching (MPLS) Traffic Engineering in MPLS II. Source 2 Source 3 Source 4 Sink Figure: Explicit path control in an MPLS network. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 110/126 Multiprotocol Label Switching Generalized MPLS Generalized MPLS (GMPLS) Generalized MPLS (GMPLS) • MPLS has been designed to switch packets using a labeling mechanism • however, there is the need for an MPLS control-type functionality for controls that is beyond just switching packets • e.g., wavelength switching, time division multiplexing, fiber (port) switching, etc. • traditionally referred to as circuit switching or circuit routing (a dedicated path and physical resources must be allocated for a service from one end to another) • GMPLS thus intended for the following switching capabilities: • Packet-Switch Capable - (i.e., GMPLS encompasses MPLS) • Time-Division Multiplexing Capable - for timeslot-based circuit switching • Lambda-Switch Capable - for wavelength switching at optical cross-connects • Fiber-Switch Capable - for fiber-level switching at optical cross-connects Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 111/126 Multiprotocol Label Switching Grid-enabled GMPLS Grid-enabled GMPLS (G2MPLS) Grid-enabled GMPLS (G2MPLS) • a network control plane solution that enhances the GMPLS and provides a single-step resource reservation, co-allocation, and maintenance of both network and Grid resources • designed by 1ST Phosphorus project o seamlessly serves Grid jobs by co-allocating and provisioning network and Grid resources in a single-step • not widely used (yet) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 112 / QoS-Based Routing Lecture Overview I Q Routing: Recapitulation • Distributed Routing • Autonomous Systems Q Distance Vector Routing Protocols • RIP protocol • IGRP protocol • EIGRP protocol • Comparison Q Link State Routing Protocols • OSPF Protocol • IS-IS Protocol Q Path Vector Routing Protocols • BGP Protocol Q Router Architectures • Router Introduction • IP Address Lookup Algorithms • IP Packet Filtering and Classification Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 113/126 QoS-Based Routing Lecture Overview II Traffic Engineering in IP Networks • Introduction • Discovering Network Utilization • Discovering Network Topology • Links' Weights Computation Q Multiprotocol Label Switching • MPLS • Generalized MPLS • Grid-enabled GMPLS Q QoS-Based Routing Q Advanced Routing Mechanisms: Literature Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 114/126 QoS-Based Routing QoS-Based Routing - Introduction I. QoS-Based Routing is defined as: 9 a routing mechanism under which paths for flows are determined based on some knowledge of resource availability in the network as well as the QoS requirement of the flows, or • a dynamic routing protocol that has expanded its path-selection criteria to include QoS parameters such as available bandwidth, link and end-to-end path utilization, node resources consumption, delay and latency, and induced jitter QoS-Based Routing - Introduction II. Objectives of QoS-based Routing: • to meet the QoS requirements of end users • QoS-based routing is supposed to dynamically find a path from source to destination which can satisfy user's requirements on bandwidth, end-to-end delay, etc. • to optimize the network resource usage • QoS-based routing is expected to direct network traffic in an efficient way that can maximize the total network throughput • to gracefully degrade network performance when things like congestion happen • when network is in heavy load, QoS-based routing is expected to give better performance (e.g., better throughput) than the best-effort routing, which can degrade the performance dramatically Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 116/126 QoS-Based Routing - Issues I. Metric and path computation • How to measure and collect network state information? • How to compute routes based on the information collected? o a suitable metric has to be chosen (e.g., available bandwidth, delay, jitter, etc.) • path computation is also closely related to resource reservation • once a feasible path is chosen, the corresponding resources (bandwidth, buffer space in routers etc.) must be reserved for the traffic flow thus are not available to other flows Knowledge propagation and maintenance • How often is the routing information exchanged between the routers? • more information has to be exchanged than in the case of best-effort routing • QoS information (available BW) has to be exchanged along with common routing information like connection topology changes • the metrics used by QoS-based routing could be changing very quickly • if the routing information is exchanged every time the values of metrics change, it will cause a great burden for the network links and routers =^> a common way is to set a threshold to distinguish significant changes from minor changes (routing information accuracy becomes lower, however) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 117/126 QoS-Based Routing - Issues II. Scaling by hierarchical aggregation o QoS-based routing is expected to be scalable • in order to keep the complexity of path computation and the amount of information need to be exchanged and maintained under control, a hierarchical aggregation is used • however, such aggregation brings inaccuracy in regard of routing information Administrative Control • different flows in the network should have different priorities 9 in the framework having multiple service classes (e.g., DiffServe), the resources should be allocated fairly among all the classes • to avoid starvation of lower priority classes Integration of QoS-based routing and Best-effort routing • for compatibility, QoS-based routing must be able to support best-effort routing • i.e., both routing schemes must be able to coexist Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 118/ QoS-Based Routing - Routing Algorithms Basic types • QoS-based routing algorithms classified according to the way how the state information is maintained and how the search of feasible paths is carried out • source-based routing algorithms 9 hop-by-hop routing algorithms (also called distributed routing algorithms) • hierarchical routing algorithms Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 119/126 QoS-Based Routing QoS-Based Routing - Routing Algorithms Basic types - Source-based routing Source-based routing algorithms 9 every router has global state information about the network, and the path is locally selected based on the state information • once the path is determined, the source router notifies the other router along that path how to forward the traffic flow • features: • simpler in the sense that it's decided solely by the source o drawbacks: • requires that each router has complete state information of the network (hard to maintain) • the computation overhead at the source routers is very high • ^> scalability problems (not suitable for large networks) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 120/126 QoS-Based Routing QoS-Based Routing - Routing Algorithms Basic types - Hop-by-hop routing Hop-by-hop routing algorithms • each router just knows the next hop towards the destination • features: 9 used by most current "best-effort" routing protocols ^> it's more natural to design and more compatible with existing routing protocols • the routing computation burden is distributed among all the routers along the path 9 drawbacks: • it has the routing loop problem (when the routing state information in different routers is not consistent) • besides, it also has the scalability problem Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 121/126 QoS-Based Routing QoS-Based Routing - Routing Algorithms Basic types - Hierarchical routing I. Hierarchical routing algorithms • the routing structure consists of multiple levels • the bottom level contains the actual routers • these routers are organized into some logical groups, which in turn form the next level • the groups can be further organized into some higher level groups • the routing information is integrated at the border nodes of each groups • every node contains the detailed information about its group and integrated information about other groups • features: 9 scalability ^> it's suitable for large networks a drawbacks: • aggregation decreases the accuracy of the routing state information Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 122/126 QoS-Based Routing QoS-Based Routing - Routing Algorithms Basic types - Hierarchical routing II. Level 2 Logic Group Lqgíc Hide A - ^ -- \ ___ Logi^Nod^"'----■ Logic Hode^Ě y i- -■ v ft \ \ ' "v \ Logic Goup A Logic Goup B Logic Goup C Figure: Hierarchical routing structure. Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 123 /126 QoS-Based Routing - Routing Protocols PNNI (Private Network-Network Interface) Private Network-Network Interface (PNNI) 9 a hierarchical, dynamic routing protocol for ATM networks o based on link-state algorithm • topology information (including information about nodes, links, addresses) is flooded through the network • network resources are defined by metrics and attributes (delay, available bandwidth, jitter, etc.) • grouped by supported traffic classes • threshold algorithms are used to determine if the change in a metric or attribute is significant enough to require propagation of updated information • hierarchical =4> • PNNI has the concepts of levels and logical nodes • supports aggregation of topology and reachability information o drawbacks: • doesn't support multicast and policy routing, and control of alternate routing • inherits the common problems with link state QoS-based routing • an issue with efficient broadcast of state information (especially for dynamic metrics) Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 124/126 QoS-Based Routing - Routing Protocols QOSPF (QoS routing extensions to OSPF) QoS routing extensions to OSPF (QOSPF) • QoS extension to OSPF • hierarchical protocol based on link-state algorithm • supposed to be working in an environment in which both QoS-based routing and best-effort routing are needed • for simplicity, link bandwidth and propagation delay are the only metrics extension added to Link State Advertisements (LSAs) 9 in order to decrease protocol overhead, LSAs are triggered only when there is a significant change in the value of the metrics since the last advertisement • a concept of QoS paths pre-computation is used: • for every possible destination, the algorithm pre-computes a "widest-shortest path" (a minimum hop count path with maximum bandwidth available) • a widest path version of the Bellman-Ford is used for pre-computations • a widest shortest path version of Dijkstra's algorithm is used for on-demand computations Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 125/126 Advanced Routing Mechanisms: Literature Advanced Routing Mechanisms: Literature • relevant RFCs • Medhi, D. and Ramasamy, K.: Network Routing: Algorithms, Protocols, and Architectures. Morgan Kaufmann Publishers (Elsevier), 2007. • Farrel, A.: The Internet and Its Protocols: A Comparative Approach. Morgan Kaufmann Publishers (Elsevier), 2004. • Beijnum, I.: BGP. O'Reilly Media, Inc., 2002. • Moy, J. T.: OSPF: anatomy of an Internet routing protocol. Addison-Wesley, 1998. 9 Zhang, R. and Bartell, M.: BGP design and implementation. Cisco Press, 2004. • Black, U.D.: IP routing protocols: RIP, OSPF, BGP, PNNI, and Cisco routing protocols. Prentice Hall PTR, 2000. • http://www.tcpipguide.com Eva Hladká (Fl MU) 3. Advanced Routing Mechanisms Autumn 2023 126/126