BGP Understanding Part-7
BGP Understanding Part-7
Through BGP
Buffer Frame IP
header header IP packet
header
IP precedence or DSCP
QoS group (information is lost once the
packet leaves the router)
ISP2
ISP2
EDGE:
classification is
simple – based on
source interface
Service
Service
EDGE (and CORE): Provider
Provider
queuing and
scheduling based on
the marking (IP
precedence or DSCP)
Customer
Customer
ISP2
ISP2
Customer
Customer
Queuing
• Weighted Fair Queuing (WFQ) influenced by IP
precedence
• Class-based WFQ (very fast custom queuing
based on IP precedence or QoS group)
Congestion management
• Weighted Random Early Detection (WRED)
influenced by IP precedence
ARP cache
IP address Layer 2 header IP address MAC address
Adjacency
1.5.4.1 MAC header 1.5.4.1 0c.00.11.22.33.44
Table
... ... ... ...
ARP cache
IP address Layer 2 header IP address MAC address
Adjacency
1.5.4.1 MAC header 1.5.4.1 0c.00.11.22.33.44
Table
... ... ... ...
table-map route-map-name
• Specifies the route map used to set additional
routing table attributes
Router(config)#
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
CEF-based marking
Packets for AS73
marked with
precedence flash
Inbound CAR filter on interface
Packets from serial
interface marked with
precedence flash
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS Set
12 FIB table(AS 73) on
based
BGP community
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
router bgp 12
neighbor 1.2.3.4 remote-as 73
neighbor 1.2.3.4 route-map Premium in
!
route-map Premium permit 10
set community 12:17 additive
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
router bgp 12
neighbor 2.3.4.5 remote-as 12
neighbor 2.3.4.5 send-community
WAN Core
NAP Router NAP Router POP Router
Customer
router bgp 12
AS 24 AS 12
table-map PremiumCheck (AS 73)
!
route-map PremiumCheck permit 10
match community 17
set ip precedence flash
!
route-map PremiumCheck permit 20
set ip precedence 0
!
ip community-list 17 permit 12:17
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
ip cef switch
!
interface hssi 0/0
bgp-policy destination ip-prec-map
ip route-cache cef
Redirect
http://acme.com
c om
e.
http://acme.com cm
.a
w
w
Web w
www.acme.com
W
W W
W W
W
Server
Web Cache
Redirect
ht t
p:/
/a cm
e.c
om
Web W
W W
W W
W
www.acme.com
Server The web cache device Web Cache
only needs to validate
the web page
Service
Service
Not enough Provider
Provider
bandwidth to
accomodate all
requests
ISP2
ISP2 A service provider
may deploy a large
number of caching Customers
WW
WWW
WW W
WW devices on ingress may use their
points (POPs) own caching
A service provider Service
Service devices or
may deploy a small Provider proxies
number of caching
Provider
devices on egress WW
WWW
WW W
WW
points (close to WW
WWW
WW W
10/8 12:10 10/8 12:10
WW
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
BGP community 12:10 Customers network
is translated into carries BGP
internal WCCP tag 1 community 12:10
WW W
10/8 12:10 10/8
WW
WAN Core
NAP Router NAP Router POP Router
Customer
AS 24 AS 12 (AS 73)
BGP community 12:10 A service provider assigns
is translated into a customer to a class
internal WCCP tag 1 according to an SLA
Router(config-router)#
table-map name
ip wccp version 2
• WCCP policy redirection works if WCCP version 2
is used
Router(config)#
WCCP Policy
ISP2
ISP2 Redirection based Premium
on BGP customer is
communities marked with
387:1020 if not
AS
AS387
387 already marked
W
W W
W W
W W
W W
W W
W W
W W
W W
W
with 387:1030
387:1000 PSTN
PSTN/ /Best-effort
ISDN Best-
Best-
ISDN customer is effort
effort
marked with Customer
Customer
387:1010
Premium
Premium
Customer
Customer
PSTN
PSTN/ /
ISDN Best-
Best-
ISDN effort
effort
Customer
Customer
Premium
Premium
Customer
Customer
PSTN
PSTN/ /
ISDN Best-
Best-
ISDN effort
effort
Customer
Customer
Premium
Premium
Customer
Customer
PSTN
PSTN/ /
ISDN Best-
Best-
ISDN effort
effort
Customer
Customer