ine multicast

47
INE Multicast Alp ISIK 13.11.2011

Upload: isikalp82

Post on 08-Jun-2015

638 views

Category:

Documents


3 download

DESCRIPTION

multicast

TRANSCRIPT

Page 1: Ine Multicast

INE Multicast

Alp ISIK13.11.2011

Page 2: Ine Multicast

Topology

Page 3: Ine Multicast

PIM Dense Mode

• Flooding için1 – SPT shortest path tree oluşturulur.2- Reverse path forwarding kullanılarak multicast paketleri SPT boyunca flood edilir.

• PIM, RPF kontrolunu unicast routing table uzerinden yapar.

• Downstream router’da herhangi bir kullanıcı yada router multicast paketini istemez ise PIM prune mesajı upstreame gonderilir.

• PIM Dense mode’da periodic prune ve flood mekanizması var.

Page 4: Ine Multicast

• PIM DM konuşturmak istediğimiz router’da oncelikle

• ip multicast routing // açılır.• İnterface duzeyinde // “ip pim dense-mode”

konfigure edilir.• Subscriber tarafında // “ip pim dense-mode”

ve ip igmp join-group 224.10.10.10 konfigure edilir.

Page 5: Ine Multicast

• Show ip pim neigh• Show ip pim int• Show ip mroute---------------Rack1R4#show ip mroute

(*, 224.10.10.10), 00:01:35/stopped, RP 0.0.0.0, flags: D Incoming interface: Null, RPF nbr 0.0.0.0 Outgoing interface list: Serial2/1, Forward/Dense, 00:01:35/00:00:00 Ethernet0/1, Forward/Dense, 00:01:35/00:00:00

(155.1.146.6, 224.10.10.10), 00:01:35/00:02:06, flags: T Incoming interface: Ethernet0/1, RPF nbr 155.1.146.6 Outgoing interface list: Serial2/1, Forward/Dense, 00:01:35/00:00:00

(*, 224.0.1.40), 00:09:26/00:02:24, RP 0.0.0.0, flags: DCL Incoming interface: Null, RPF nbr 0.0.0.0 Outgoing interface list: Serial2/1, Forward/Dense, 00:07:40/00:00:00 Ethernet0/1, Forward/Dense, 00:09:26/00:00:00-----------------------• RPF neighbor 0.0.0.0 means it’s connected to the source

Page 6: Ine Multicast

8.2 RPF• Config altında // “ip multicast rpf ?” komutları ile rpf timerlarla oynanabilir. • ****İnterface altında no ip mroute-cache• ****Debug ip mpacket• RPF hatası gorulen durumlarda (S,G) için incoming interface goremiyorsak. Static mroute yazabiliriz.ip mroute 0.0.0.0 0.0.0.0 155.1.0.4-----------------------------Rack1R5#show ip mroute

(*, 224.10.10.10), 00:06:26/stopped, RP 0.0.0.0, flags: D Incoming interface: Null, RPF nbr 0.0.0.0 Outgoing interface list: Ethernet0/0, Forward/Dense, 00:06:26/00:00:00 Serial2/0, Forward/Dense, 00:06:26/00:00:00

(155.1.146.6, 224.10.10.10), 00:00:05/00:02:54, flags: T Incoming interface: Serial2/0, RPF nbr 155.1.0.4, Mroute Outgoing interface list: Ethernet0/0, Forward/Dense, 00:00:05/00:00:00

(*, 224.0.1.40), 01:17:42/00:02:44, RP 0.0.0.0, flags: DCL Incoming interface: Null, RPF nbr 0.0.0.0 Outgoing interface list: Ethernet0/0, Forward/Dense, 01:16:17/00:00:00 Serial2/0, Forward/Dense, 00:19:18/00:00:00

Page 7: Ine Multicast

8.3 PIM Sparse mode

• PIM SM konuşturmak istediğimiz router’da oncelikle • ip multicast routing // açılır.• Receiver ve source’ların bildiği bir randevu point “RP” belirlenir.

• Receiver oncelikle ilgilendigi group için RP’ye multicast distribution tree oluşturur. Source belirdiğinde PIM register mesajları en kısa unicast yol ile RP’ye gonderilir. Bu yolda PIM SM açık olmalıdır.

• Registration bittiğinde RP source’a doğru SPT oluşturur (*,G) ile. Receiverlar (*,G)li trafigi aldıklarında sourca dogru (S,G)li SPT oluştururlar. Buna spt switchover denilir, receiving router RP’ye multicast trafigin iki noktadan gelmemesi için prune mesajı gonderir. SPT switchovera threshold koyabiliriz.//ip pim spt-threshold 128

• RP configurasyonu PIM SM domainindeki her routerda yapılmalı.Global configte//ip pim rp-address 150.1.5.5

Page 8: Ine Multicast

PIM Sparse-Dense Mode

• Hybrid combination of sparse nad dense mode.

• Configure edildiği interface’de both spase and dense multicast group.

• RP’si olan grouplar sparse; olmayan grouplar dense ile gonderilir.

• Sadece sparse olarak calısması için “no ip dm-fallback”.

Page 9: Ine Multicast

RP for specific groups

ip pim rp-address 150.1.5.5 <access-list>

Page 10: Ine Multicast

8.5 PIM Assert

• Eger aynı multicast route iki farklı yerden ogreniliyorsa, ilk AD, metric sonra buyuk ip’li olan yol tercih edilir.

Page 11: Ine Multicast

8.6 PIM Accept RP• As a security feature in order to routers only

accept (*,G) from a specific RP.ip pim accept-rp 150.1.5.5 ALLOWED_GROUPSip access-list standard ALLOWED_GROUPS permit 224.110.110.110 permit 224.10.10.10

Page 12: Ine Multicast

PIM DR Election

• DR multiple-access segmentte multicast source registration’dan sorumludur.

• İnterface altında // ip pim dr-priority 100

Page 13: Ine Multicast

PIM Accept register

• Tek bir source’a izin verilmesinde kullanılır.• Konfigurasyon RP’ de yapılır.• Filtreleme için RP ve DR ayrı olmalıdır.Rack1R5(config)#ip pim accept-register ? list Access list route-map Route-map

Page 14: Ine Multicast

Multicast tunneling

• Tunelde pim enable edilmeli,---------------------------interface Tunnel0 ip unnumbered Loopback0 ip pim sparse-dense-mode tunnel source Loopback0 tunnel destination 150.1.1.1--------------------------• Tunnel içinde igp mümkünse konuşulmamalı, konuşulması

gerektiği durumda loop olmamasına dikkat edilmeli (metric ayarlanır.)

• Static mroute ile multicast trafiği tunele gönderilir.

Page 15: Ine Multicast

8.10 PIM NBMA mode

• Broadcast queue’sunda gonderilir.• Full mesh olmadığı durumda kullanılır.• PIM-SM’de calısır. Sparse-dense mode’ta

tavsiye edilmez.• Interface altında // ip pim nbma-mode• Spoke-to-spoke multicast trafiğinin

gönderilmesini sağlarız.

Page 16: Ine Multicast

8.11 Auto RP• İki consept içerir candidate RP (cRP) ve Mapping Agent

(MA), bir ya da daha çok router cRP olabilir. cRP paketi 224.0.1.39 ile gonderir, MA bu adresi dinleyerek cRP bilgilerine sahip olur. Birden fazla MA varsa yuksek IP’li kazanır. MA auto-RP bilgisini 224.0.1.40 a atar, butun dinleyiciler, auto-RP’yi öğrenmiş olur.

• Global config’te //ip pim send-rp-announce lo0 scope 10 (cRP için)ip pim send-rp-discovery lo0 scope 10 (MA için)burada scope TTL ‘i belirler.

• Auto-RP için 4 yol mevcut.1- pim sparse-dense mode // RP’si olmayan butun gruplar için dense mode çalışır2- pim sparse-mode (static RP for 224.0.1.39-40)3- pim sparse-dense mode with no ip dm-fallback (sadece 224.0.1.39 ve 40 için dense-mode çalışır.)4- pimsparse-mode + autorp listener (loopback’lerde sparse-dense-mode [cRP ve MA için Lo0 kullandık]).

vl10

Pim sm-dm

Pim sm-dm

Pim sm-dm

Pim sm-dm

Pim sm-dm

E0/0.146

E1/0

S2/1

S2/1

E0/0

E0/1

vl58

E0/1

cRP

MA

R4

R6

R5

SW2SW4

M source

receiver

224.

0.1.

39

224.0.1.39

224.0.1.40

224.

0.1.

40

Page 17: Ine Multicast

8.12 Auto-rp multiple candidate RP

• Primary-backup olarak calıstırabiliriz. //highest IP will be selected.

• Aynı grup için yedeklilik saglayabiliriz. //access-listt’e wildcard maskin longest matchine dayalı olarak.

• Belli bir grubu exclude edebiliriz.• ip pim send-rp-announce lo0 scope 10 group-

list SW2_GROUPS• Show ip pim rp mapping // ile check edilir.

Page 18: Ine Multicast

8.13 auto-rp – filtering candidate RPs

ip pim rp-announce-filter rp-list RP_LIST group-list GROUP_LIST // rp-list ile RP’leri group-list ile groupları filtreleriz.

debug ip pim auto-rp

Page 19: Ine Multicast

8.14 auto-rp listener

• Auto-RP listener, auto-rp kullanılırken 224.0.1.39 ve 224.0.1.40’ın automatik dinlenilmesini sağlar.

• Global configte //ip pim autorp listener

Page 20: Ine Multicast

8.15 Auto-RP and RP/MA Placement

• Hub & Spoke da hub ve spoke u RP yapmak için.

• Spokelar arasında tunnel kurduk.--------------interface Tunnel1 ip unnumbered Loopback0 ip pim sparse-mode tunnel source Loopback0 tunnel destination 150.1.3.3----------------R3 tarafına static mroute koyduk ki autorp

discovery’leri R1den alabilsinip mroute 150.1.1.1 255.255.255.255 tunnel1

R4R6

R5

SW2SW4

M source

receiver

R3

R1tunnel1

rp

receiver

ma

ma

Page 21: Ine Multicast

8.16 Filtering Auto RP Messages

• AutoRP mesajlarını filtrelemek için scope ile TTL ayarlanabilir ya da //ip multicast boundry configure edilebilir.

• ip pim send-rp-discovery lo0 scope 2

Page 22: Ine Multicast

8.17 multicast boundry

• Multicast boundry ile multicast trafige (control plane and data plane)sınır koyabiliriz.

• Unicast pim register mesajları etkilenmez.• Interface altında //ip multicast boundary <acl

(PERMITTED_GROUPS) > filter-autorp

Page 23: Ine Multicast

8.18 PIM Bootstrap Router

• It’s the stadards-based protocol, autorp ile aynı işi yaparlar.

• Rp candidate’te priority’de düşük değerler tercih edilir.• Autorp-MA ile BSR router aynı gorevi gorur.• Bsr candidate’te priority si yuksek olan tercih edilir.

ip pim bsr-candidate Loopback0 0 //hash mask lengthip pim rp-candidate Loopback0

• NOT : BSR mesajlarının ulaşması için RPF check sağlanmalıdır.

• Debug ip pim bsr

Page 24: Ine Multicast

8.19 BSR – Multiple RP Candidates

• SW2, SW4 RP candidate; R5 is BSR-------------------• Aynı grup için yüksek ip li router secilir. • RP’lerden biri düşerse BSR bootstrap

mesajlarına dayalı olarak automatik failoverı gercekleştirir.sh ip pim rp-hash 239.1.1.1

Page 25: Ine Multicast

8.20 Filtering BSR Messages

• Not to learn any RP information via BSR• İnterface level //ip pim bsr-border

Page 26: Ine Multicast

8.21 stub multicast routing & IGMP Helper

• Dusuk kapasiteli cihazda ya da bandwith’teki cihazda PIM-DM flooding ya da PIM-SM RP announcement’tan etkilenmemesi için “ip igmp helper-address” konfigurasyonu yapılır. Boylece cihaz bütün igmp mesajlarını receivera forward eder ve grupları oluşturmaz.

• R3int e0/0

ip igmp helper-address 155.1.0.5ip pim dense-mode

int s2/0.1ip pim dense-mode

• R5access-list 33 deny 155.1.0.3access-list 33 permit anyint s2/0

ip pim sparse-modeip pim neighbor-filter 33

R5R3FRe0/0

İp igmp join –group

239.1.1.7

S2/0.1 S2/0155.1.0.5

Page 27: Ine Multicast

IGMP Filtering

• İnterface altında // ip igmp access-group <IGMP_FILTER>//ip igmp limit 10

Page 28: Ine Multicast

IGMP Timers

• İnterface altında //ip igmp querry-interval 20//ip igmp querry-max-response-time 4//ip igmp immediate-leave group-list

IMMEDIATE_LEAVE//ip igmp querrier-timeout 60

Page 29: Ine Multicast

8.24 Multicast Helper Map• R1

ip forward-protocol UDP 5000inte0/0

ip multicast helper-map broadcast 239.1.1.100 <access-list> // access-list ile port 5000 ve dns’i yakala

• R3ip forward-protocol UDP 5000ip multicast multipath // eşit rpf’lerde multicast trafiği paylaştırır. // access-list ile port 5000 ve dns’i yakalaint e0/0

ip directed-broadcastip broadcast-address 155.1.37.255

int s2/0.1ip multicast helper-map 239.1.1.100 155.1.37.255 <acl for port 5000-dns>

• R5ip mroute 155.1.146.0 255.255.255.0 155.1.0.1

• SW1int e3/1

ip igmp join-group 239.1.1.100

R6

R1SW1

R3

Broadcast udp port 5000

DR

FR R5

hub

E0/0

E0/0

e3/1

Page 30: Ine Multicast

8.25 Multicast Rate limiting

• İnterface altında //ip multicast rate-limit out group-list <access-list> 128ip multicast rate-limit out 1024

Page 31: Ine Multicast

8.26 Bidirectional PIM

• Global configte //İp pim bidir-enable//ip pim rp-candidate lo0 group-list <access-list>

bidir

Page 32: Ine Multicast

PIM SSM Source Specific Multicast

• IGMPv3 ile yalnızca SPT oluşturur. RP yok. (shared tree yok)

Global configte//ip pim ssm default|range <acl>İnterface altında //ip igmp ver 3İnterface altında //ip igmp join 232.6.6.6 source

150.1.10.10

Page 33: Ine Multicast

8.28 DVMRP Interoperability• Tunelling DVMRPint tunn 0

ip unnumbered lo0İp pim dense-mode // komsuluk kurulmasada mcast feedin MBONEda akmasını saglar

tunnel source lo0tunnel destination <IP in Mbone>Tunnel mode dvmrp

-----------------------ip dvmrp interoperability(config-if)#ip dvmrp metric 1 list 40 eigrp 100

Page 34: Ine Multicast
Page 35: Ine Multicast

8.29 Multicast BGP Extention• In general PIM-SM is used, her bir domainin kendi RP si olmalı, bsr

ve auto-rp bilgisinin domainler arası gecişi engellenmeli. “pim bsr border” komutu kullanılabilir.

• R3router bgp 100address-family ipv4 multicastneighbor 155.1.0.5 activateredistribute ospf 1neighbor 150.1.7.7 activate neighbor 150.1.7.7 next-hop-selfint s2/0.1ip pim sparse-mode

Page 36: Ine Multicast

• R4route-map PREPEND

set as-path prepend 200 200 200router bgp 200

address-family ipv4 multicastneighbor 155.1.146.6 activateredistribute eigrp 100neighbor 155.1.146.6 route-map PREPEND outneighbor 150.1.5.5 activate

int e0/1ip pim sparse-modip pim bsr-border

Page 37: Ine Multicast

• R5router bgp 200address-family ipv4 multicastneighbor 155.1.0.3 activateredistribute eigrp 100neighbor IBGP route-reflector-clientneighbor 150.1.4.4 peer-group IBGP neighbor 150.1.8.8 peer-group IBGP neighbor 150.1.10.10 peer-group IBGP neighbor IBGP next-hop-selfint s2/0ip pim sparse-modeip pim bsr-border

Page 38: Ine Multicast

• R6route-map PREPEND

set as-path prepend 100 100 100router bgp 100

address-family ipv4 multicastneighbor 155.1.146.4 activateredistribute ospf 1neighbor 155.1.146.4 route-map PREPEND outneighbor 150.1.7.7 activateneighbor 150.1.7.7 next-hop-self

int e0/0.146ip pim sparse-mode

Page 39: Ine Multicast

• SW1router bgp 100

address-family ipv4 multicastneighbor IBGP route-reflector-clientneighbor 150.1.3.3 peer-group IBGPneighbor 150.1.6.6 peer-group IBGPneighbor 150.1.9.9 peer-group IBGP

• SW2router bgp 200

address-family ipv4 multicastneighbor 150.1.5.5 activate

• SW3router bgp 100

address-family ipv4 multicastneighbor 150.1.7.7 activate

• SW4router bgp 200

address-family ipv4 multicastneighbor 150.1.5.5 activate

Page 40: Ine Multicast

MSDP

Msdp peer

Msdp peer

Page 41: Ine Multicast

8.30 MSDP multicast source discovery protocol• Interdomain multicastta her bir domainin kendi RP si vardır, farklı

domaindeki sourse-receiverların birbiri ile gorusmesi için RP’ler bilgi değişimi yaparlar.

• SW2 ve R5 AS200’un RP’leri, SW1 AS100’un RP’si

• At R5ip msdp peer 150.1.7.7 connect-source lo0 remote-as 100

• At SW 2ip msdp peer 150.1.7.7 connect-source lo0 remote-as 100

• At SW1ip msdp peer 150.1.5.5 connect-source lo0 remote-as 200ip msdp peer 150.1.8.8 connect-source lo0 remote-as 200

• At SW4ip pim bsr-candidate lo0 31 // iki grup için iki RP

Debug ip msdp de

Page 42: Ine Multicast

8.31 Anycast RP• Her iki RP yi aynı IP ile gosterip yedeklilik sağlar.• RP için yeni bir lo100 yarattık.• PIM join’ler en yakın RP den gelir, Unicast routing table’a

gore.• At R5

ip msdp peer 150.1.8.8 connect-source Loopback0ip msdp originator-id Loopback0ip pim rp-candidate lo100no ip pim rp-candidate lo0interface Loopback100

ip address 150.1.100.100 255.255.255.255ip pim sparse-mode

router erigrp 100network 150.1.100.100 0.0.0.0

Page 43: Ine Multicast

• At SW2interface Loopback100

ip address 150.1.100.100 255.255.255.255 ip pim sparse-mode

router erigrp 100network 150.1.100.100 0.0.0.0

no ip pim rp-candidate lo0ip pim rp-candidate Loopback100ip msdp peer 150.1.5.5 connect-source Loopback0ip msdp originator-id Loopback0

-------------Check etmek için//show ip msdp sa-cache

Page 44: Ine Multicast

IGMP Snooping

• Global configte //İp igmp snooping vlan 146 immediate-leave

• Check etmek için //show ip igmp snooping mrouter vlan 146show ip igmp groups

Page 45: Ine Multicast

Multicast VLAN Registrationmvrmvr vlan 146mvr group 146mvr group 239.1.1.100mvr mode dynamicint ether 0/1

mvr type sourceint type ether 0/5

mvr type receiver//show mvr//show mvr interface//show mvr members//show ip igmp groups

Page 46: Ine Multicast

IGMP Profiles

ip igmp profile 1permitrange 232.0.0.0 232.255.255.255range 239.0.0.0 239.255.255.255

int e0/4ip igmp filter 1

• It filters igmp messages according to profile.

Page 47: Ine Multicast

kısaltmalar

• OIL : outgoing interface list.• Multicast spt switchover : (*,G) to (S,G)