Академический Документы
Профессиональный Документы
Культура Документы
Path attributes convey additional information that can be considered by BGP decision
process when selecting the best path.
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
* the best path has a different meaning for diferent ISPs but it often
means the cheapest path (cheapest for the service provider)
• When selecting ‘the best path’ BGP takes into account various
information it has about the path,
• The internal topology of transit domains is usually unknown
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
withdrawn multiproto.
AS Path NextHop MED Loc. Pref. aggregation
Origin multiproto. pref.
info.
pref.
We also show that the ISP can try to influence decisions that other ISPs
make to reach local networks.
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
We also try to influence the path over which traffic arrives into our
local domain (inbound traffic).
A B C F
D
net-pref: 10.10.1.0/24
AS path: empty
next-hop: A
net-pref: 10.10.1.0/24
AS path: 65100
next-hop: B
net-pref: 10.10.1.0/24
AS path: 65100 net-pref: 10.10.1.0/24
next-hop: B AS path: 65100, 65200
next-hop: D
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
method:
Local selection of routes can be impacted by modifying attributes of
BGP UPDATE messages received from neighbouring ASs which
advertise reachability of remote network(s).
As a result local routers select the path that the local ISP prefers
over other path(s).
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
LocPref 200
Nowoczesne Sieci IP LocPref 70
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005 AS2
Unauthorised copying or use is prohibited 11
Part I. Local preference
PC
net. Z.
e0=.1
10.10.5.0/24
Pre-configured e2=.3
R23
network topology: e0=.3
e1=.3
10 n
AS 2LocPref . 1 e t.
10. 10.2.0/24
0. D
4.
net. G
0/ LocPref
- zebra is ‘up and running’ =70
24
=200
- interfaces are up e1=.2
e1=.1
R21
net. C.
- networks are configured R22
e0=.2
e0=.1
192.168.3.0/30
e0=.2
0
19 2.16 8.2.0 /3
R12
ne t. B
Need to configure: R11 AS 1
10.10.1.0/24
-R21 and R22 e1=.1
e0=.2
e0=.1
net. A.
R31 192.168.1.0/30 Notice:
e0 = eth0
AS 3 10.10.3.0/24 e1 = eth1
Nowoczesne Sieci IP etc.
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
hostname zebra
pasword zebra
interface eth0
bandwidth 100000
log file /var/log/zebra/zebra.log
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
zebra=yes
bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
hostname bgpd
password zebra
enable password zebra
[...]
debug bgp
debug bgp events
debug bgp filters
debug bgp fsm
debug bgp keepalives
debug bgp updates
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
or
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
............
............
............
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
MED=50
AS 3 Note that MED value related to the same
prefix but received in AS2 from different
net. Autonomous Systems
will not be compared !
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
Pre-configured
network topology:
Need to configure:
-R31 and R32
Notice:
e0 = eth0
e1 = eth1
Nowoczesne Sieci IP etc.
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
............
............
............
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
or
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
............
............
............
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005
AS 2 AS 2
LocPref=70
LocPref
=200
MED=50
AS 1
AS 1 Prefix
MED=100 MED=50
MED=50 AS 3
AS 3
Review question:
a) What path will a router in AS2 select to reach AS3 ?
b) Which is the preferred path in multi-provider scenarios ?
hint: MED values from different service providers are not compared
Nowoczesne Sieci IP
Next Generation IP Networks
(C) P i o t r P a c y n a, K T A G H, 2001 - 2005