Hands-On Workshop on Science DMZ and P4-DPDK Lab

 
1
 
Hands-on Workshop on Science DMZ and P4-DPDK
Lab 1: Hot potato routing and BGP
local preferences
 
Ali AlSabeh, Jorge Crichigno
University of South Carolina (USC)
 
 
University of South Carolina (USC)
The Engagement and Performance Operations Center (EPOC)
Minority Serving - Cyberinfrastructure Consortium (MS-CC)
 
 
Tuesday, August 6, 2024.
 
2
 
Overview of BGP Attributes
 
BGP – Best Path
 
3
 
B
G
P
 
U
p
d
a
t
e
 
B
G
P
 
T
a
b
l
e
 
R
o
u
t
i
n
g
T
a
b
l
e
 
N
e
t
w
o
r
k
Is this the best path? Does
it meet the path selection
criteria? If so, add to
routing table.
 
N
e
t
w
o
r
k
 
Rick Graziani, “Implementing Cisco IP Routing,” Cisco Press, 2015
 
The main goal is to provide interdomain routing
BGP selects one path as the best path
It places the selected path in its routing table and propagates the path to its neighbors
 
BGP – Best Path
 
4
 
1.
Prefer the path with 
highest weight 
(configured locally; set to 0 (default) for routes not originated by the router)
2.
If weights are the same, prefer the path with 
highest local preference 
(set to 100 by default)
3.
If the local preferences are the same, prefer the 
path that was originated by BGP running on the router or
redistributed from an Interior Gateway Protocol (IGP)
4.
If no route was originated, prefer the path with the 
shortest AS_PATH
5.
If the paths have the same AS_PATH length, prefer the path with the 
lowest origin type
 (IGP is lower than Exterior
Gateway Protocol (EGP), and EGP is lower than Incomplete)
6.
If the origin codes are the same, prefer the path with the 
lowest MED attribute 
(set to 0 by default)
7.
If the paths have the same MED, prefer the 
External path (EBGP) over the Internal path (IBGP)
8.
If the paths are still the same, prefer the path through the 
closest IGP neighbor (lowest IGP metric)
9.
If both paths are external, prefer the path that was 
received first (oldest one)
10.
If the paths are still the same, prefer the path from the 
BGP router with the lowest router ID
11.
If the router ID is the same for multiple paths, prefer the path with the 
lowest IP address
 
Rick Graziani, “Implementing Cisco IP Routing,” Cisco Press, 2015
 
5
 
Without route manipulation, the most common reason for path selection is Step 4
Prefer the path with the 
shortest AS_PATH
 
BGP – Best Path
 
6
 
Without route manipulation, the most common reason for path selection is Step 4
Prefer the path with the 
shortest AS_PATH
If multiple paths have the same length, the second most common decision point is Step 7
If the paths have the same MED, prefer 
EBGP over (internal) IBGP
We sometimes refer to this as “hot potato” routing (i.e., asymmetric routing)
 
BGP – Best Path
 
7
 
BGP – Best Path
 
Hot potato routing is not always desirable for a number of reasons
Different paths might have different network throughput
Some network devices might not handle asymmetric traffic properly, causing network security and
filtering issues
The network administrator can manipulate some attributes to modify the path
Weight and Local Preference modify the outbound path
MED modifies the inbound path
 
8
 
A well-known discretionary attribute
Indicates to routers in the AS which path is preferred to exit the AS (higher is better)
Configured on a router
Exchanged only among routers within the same AS (passed only via IBGP, not via EBGP)
Default value on a Cisco/FRR router is 100
Local Preference takes precedence over AS_PATH
This is very frequently used in provider networks
 
Rick Graziani, “Implementing Cisco IP Routing,” Cisco Press, 2015
 
Local Preference Attribute – For “Outbound Route”
 
9
 
A well-known discretionary attribute
Indicates to routers in the AS which path is preferred to exit the AS (higher is better)
Configured on a router
Exchanged only among routers within the same AS (passed only via IBGP, not via EBGP)
Default value on a Cisco/FRR router is 100
Local Preference takes precedence over AS_PATH
This is very frequently used in provider networks
All traffic in AS 64520 to 172.16.0.0 is sent
   via router A
 
Rick Graziani, “Implementing Cisco IP Routing,” Cisco Press, 2015
 
Local Preference Attribute – For “Outbound Route”
 
10
 
Lab 1: Hot potato routing and BGP local preferences
 
Lab activities are described in Lab 12, Introduction to BGP lab series
 
Lab Topology
 
11
 
 
Nework-1 and Network-4 are in ISP-1 (AS
100) and ISP-2 (AS 200), respectively
Traffic sent from Network-1 to Network-4
follows the route h1-r1-r3-r4-h4
Traffic from Network-4 to Network-1
follows the route h4-r4-r2-r1
Route h1-r1-r3-r4-h2 should not be used
as it suffers from 0.1% packet loss
 
Lab Configuration
 
12
 
 
Verify hot-potato routing
 
Test throughout
 
Lab Configuration
 
13
 
 
Configure LOCAL_PREF attribute on r1 and r2
 
Platform Information
 
14
 
 
We will use NETLAB virtual platform for the hands-on activities
URL: 
https://netlab.cec.sc.edu/
Username: 
<Email address used for registration>
Temporary Password: 
nsf2024 (note, you will set a new password after the first login)
 
For a step-by-step on how to schedule a lab, follow the guide:
https://research.cec.sc.edu/files/cyberinfra/files/Cyberinfrastructure_Training_User_Guide.pdf
 
For any issues in accessing your NETLAB account, feel free to contact: 
choueiri@email.sc.edu
 
 
Slide Note
Embed
Share

Join the workshop at the University of South Carolina to learn about hot potato routing, BGP local preferences, and hands-on lab activities focusing on network topologies and configurations. Explore the Lab Topology, Lab Configuration, and Platform Information for an interactive learning experience using the NETLAB virtual platform.

  • Workshop
  • Science DMZ
  • P4-DPDK
  • Network Topology
  • BGP

Uploaded on Sep 27, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Hands-on Workshop on Science DMZ and P4-DPDK Lab 1: Hot potato routing and BGP local preferences Ali AlSabeh, Jorge Crichigno University of South Carolina (USC) https://research.cec.sc.edu/cyberinfra University of South Carolina (USC) The Engagement and Performance Operations Center (EPOC) Minority Serving - Cyberinfrastructure Consortium (MS-CC) Tuesday, August 6, 2024. 1

  2. Lab 1: Hot potato routing and BGP local preferences Lab activities are described in Lab 12, Introduction to BGP lab series 10

  3. Lab Topology Nework-1 and Network-4 are in ISP-1 (AS 100) and ISP-2 (AS 200), respectively Traffic sent from Network-1 to Network-4 follows the route h1-r1-r3-r4-h4 Traffic from Network-4 to Network-1 follows the route h4-r4-r2-r1 Route h1-r1-r3-r4-h2 should not be used as it suffers from 0.1% packet loss ISP-2 AS 200 Network-4 192.168.34.0/30 192.168.4.0/24 r3 r4 s4 h4 .1 .2 .1 .10 r3-eth1 r4-eth2 .2 h4-eth0 s4-eth1 s4-eth2 r4-eth0 .2 r3-eth0 r4-eth1 192.168.13.0/30 192.168.24.0/30 0.1% Network-1 packet loss 192.168.1.0/24 .1 r1-eth2 r2-eth1 .1 .10 .1 r1-eth1 .1 r2-eth0 .2 r1-eth0 s1-eth2 s1-eth1 h1-eth0 h1 s4 r1 r2 192.168.12.0/30 ISP-1 AS 100 11

  4. Lab Configuration Verify hot-potato routing ISP-2 AS 200 Network-4 192.168.34.0/30 192.168.4.0/24 r3 r4 s4 h4 .1 .2 .1 .10 r3-eth1 r4-eth2 .2 h4-eth0 s4-eth1 s4-eth2 r4-eth0 .2 r3-eth0 r4-eth1 192.168.13.0/30 192.168.24.0/30 0.1% Network-1 packet loss 192.168.1.0/24 .1 r1-eth2 r2-eth1 .1 .10 .1 r1-eth1 .1 r2-eth0 .2 r1-eth0 s1-eth2 s1-eth1 h1-eth0 h1 s4 r1 r2 192.168.12.0/30 ISP-1 AS 100 Test throughout 12

  5. Lab Configuration Configure LOCAL_PREF attribute on r1 and r2 ISP-2 AS 200 Network-4 192.168.34.0/30 192.168.4.0/24 r3 r4 s4 h4 .1 .2 .1 .10 r3-eth1 r4-eth2 .2 h4-eth0 s4-eth1 s4-eth2 r4-eth0 .2 r3-eth0 r4-eth1 192.168.13.0/30 192.168.24.0/30 0.1% Network-1 packet loss 192.168.1.0/24 .1 r1-eth2 r2-eth1 .1 .10 .1 r1-eth1 .1 r2-eth0 .2 r1-eth0 s1-eth2 s1-eth1 h1-eth0 h1 s4 r1 r2 192.168.12.0/30 ISP-1 AS 100 13

  6. Platform Information We will use NETLAB virtual platform for the hands-on activities URL: https://netlab.cec.sc.edu/ Username: <Email address used for registration> Temporary Password: nsf2024 (note, you will set a new password after the first login) For https://research.cec.sc.edu/files/cyberinfra/files/Cyberinfrastructure_Training_User_Guide.pdf a step-by-step on how to schedule a lab, follow the guide: For any issues in accessing your NETLAB account, feel free to contact: choueiri@email.sc.edu 14

Related


More Related Content

giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#giItT1WQy@!-/#