D-Link DGS-3324SR Product Manual - Page 219

PIM Protocol, PIM-SM, Discovering and Joining the Multicast Group, Distribution Trees

Page 219 highlights

xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch User Manual PIM Protocol PIM or Protocol Independent Multicast is a method of forwarding traffic to multicast groups over the network using any pre-existing unicast routing protocol, such as RIP or OSPF, set on routers within a multicast network. The xStack DGS/DXS-3300 Series supports two types of PIM, Dense Mode (PIM-DM) and Sparse Mode (PIM-SM). PIM-SM PIM-SM or Protocol Independent Multicast - Sparse Mode is a method of forwarding multicast traffic over the network only to multicast routers who actually request this information. Unlike most multicast routing protocols which flood the network with multicast packets, PIM-SM will forward traffic to routers who are explicitly a part of the multicast group through the use of a Rendezvous Point (RP). This RP will take all requests from PIM-SM enabled routers, analyze the information and then returns multicast information it receives from the source, to requesting routers within its configured network. Through this method, a distribution tree is created, with the RP as the root. This distribution tree holds all PIMSM enabled routers within which information collected from these router is stored by the RP. Two other types of routers also exist with the PIM-SM configuration. When many routers are a part of a multiple access network, a Designated Router (DR) will be elected. The DR's primary function is to send Join/Prune messages to the RP. The router with the highest priority on the LAN will be selected as the DR. If there is a tie for the highest priority, the router with the higher IP address will be chosen. The third type of router created in the PIM-SM configuration is the Boot Strap Router (BSR). The goal of the Boot Strap Router is to collect and relay RP information to PIM-SM enabled routers on the LAN. Although the RP can be statically set, the BSR mechanism can also determine the RP. Multiple Candidate BSRs (C-BSR) can be set on the network but only one BSR will be elected to process RP information. If it is not explicitly apparent which C-BSR is to be the BSR, all CBSRs will emit Boot Strap Messages (BSM) out on the PIM-SM enabled network to determine which C-BSR has the higher priority and once determined, will be elected as the BSR. Once determined, the BSR will collect RP data emanating from candidate RPs on the PIM-SM network, compile it and then send it out on the land using periodic Boot Strap Messages (BSM). All PIM-SM Routers will get the RP information from the Boot Stap Mechanism and then store it in their database. Discovering and Joining the Multicast Group Although Hello packets discover PIM-SM routers, these routers can only join or be "pruned" from a multicast group through the use of Join/Prune Messages exchanged between the DR and RP. Join/Prune Messages are packets relayed between routers that effectively state which interfaces are, or are not to be receiving multicast data. These messages can be configured for their frequency to be sent out on the network and are only valid to routers if a Hello packet has first been received. A Hello packet will simply state that the router is present and ready to become a part of the RP's distribution tree. Once a router has accepted a member of the IGMP group and it is PIM-SM enabled, the interested router will then send an explicit Join/Prune message to the RP, which will in turn route multicast data from the source to the interested router, resulting in a unidirectional distribution tree for the group. Multicast packets are then sent out to all nodes on this tree. Once a prune message has been received for a router that is a member of the RP's distribution tree, the router will drop the interface from its distribution tree. Distribution Trees Two types of distribution trees can exist within the PIM-SM protocol, a Rendezvous-Point Tree (RPT) and a Shortest Path Tree (SPT). The RP will send out specific multicast data that it receives from the source to all outgoing interfaces enabled to receive multicast data. Yet, once a router has determined the location of its source, an SPT can be created, eliminating hops between the source and the destination, such as the RP. This can be configured by the switch administrator by setting the multicast data rate threshold. Once the threshold has been passed, the data path will switch to the SPT. Therefore, a closer link can be created between the source and destination, eliminating hops previously used and shortening the time a multicast packet is sent from the source to its final destination. Register and Register Suppression Messages Multicast sources do not always join the intended receiver group. The first hop router (DR) can send multicast data without being the member of a group or having a designated source, which essentially means it has no information about how to relay this information to the RP distribution tree. This problem is alleviated through Register and Register-Stop messages. The first multicast packet received by the DR is encapsulated and sent on to the RP which in turn removes the encapsulation and sends the packet on down the RP distribution tree. When the route has been established, a SPT can be created to directly connect routers to the source, or the multicast traffic flow can begin, traveling from the DR to the RP. 204

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268
  • 269
  • 270
  • 271
  • 272
  • 273
  • 274
  • 275
  • 276
  • 277
  • 278
  • 279
  • 280
  • 281
  • 282
  • 283
  • 284
  • 285
  • 286
  • 287
  • 288
  • 289
  • 290
  • 291
  • 292
  • 293
  • 294
  • 295
  • 296
  • 297
  • 298
  • 299
  • 300
  • 301
  • 302
  • 303
  • 304
  • 305
  • 306
  • 307
  • 308
  • 309
  • 310
  • 311
  • 312
  • 313
  • 314
  • 315
  • 316
  • 317
  • 318
  • 319
  • 320
  • 321
  • 322
  • 323
  • 324
  • 325
  • 326
  • 327
  • 328
  • 329
  • 330
  • 331
  • 332
  • 333
  • 334
  • 335
  • 336
  • 337
  • 338
  • 339
  • 340
  • 341
  • 342
  • 343
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
  • 353
  • 354
  • 355
  • 356
  • 357
  • 358
  • 359
  • 360
  • 361
  • 362
  • 363
  • 364
  • 365
  • 366
  • 367
  • 368
  • 369
  • 370
  • 371
  • 372
  • 373
  • 374
  • 375
  • 376
  • 377
  • 378
  • 379
  • 380
  • 381
  • 382
  • 383
  • 384
  • 385
  • 386
  • 387
  • 388
  • 389
  • 390
  • 391
  • 392

xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch User Manual
204
PIM Protocol
PIM or
Protocol Independent Multicast
is a method of forwarding traffic to multicast groups over the network using any
pre-existing unicast routing protocol, such as RIP or OSPF, set on routers within a multicast network. The xStack
DGS/DXS-3300 Series supports two types of PIM, Dense Mode (PIM-DM) and Sparse Mode (PIM-SM).
PIM-SM
PIM-SM or
Protocol Independent Multicast – Sparse Mode
is a method of forwarding multicast traffic over the network
only to multicast routers who actually request this information. Unlike most multicast routing protocols which flood the
network with multicast packets, PIM-SM will forward traffic to routers who are explicitly a part of the multicast group
through the use of a Rendezvous Point (RP). This RP will take all requests from PIM-SM enabled routers, analyze the
information and then returns multicast information it receives from the source, to requesting routers within its configured
network. Through this method, a distribution tree is created, with the RP as the root. This distribution tree holds all PIM-
SM enabled routers within which information collected from these router is stored by the RP.
Two other types of routers also exist with the PIM-SM configuration. When many routers are a part of a multiple access
network, a Designated Router (DR) will be elected. The DR’s primary function is to send Join/Prune messages to the RP.
The router with the highest priority on the LAN will be selected as the DR. If there is a tie for the highest priority, the
router with the higher IP address will be chosen.
The third type of router created in the PIM-SM configuration is the Boot Strap Router (BSR). The goal of the Boot Strap
Router is to collect and relay RP information to PIM-SM enabled routers on the LAN. Although the RP can be statically
set, the BSR mechanism can also determine the RP. Multiple Candidate BSRs (C-BSR) can be set on the network but only
one BSR will be elected to process RP information. If it is not explicitly apparent which C-BSR is to be the BSR, all C-
BSRs will emit Boot Strap Messages (BSM) out on the PIM-SM enabled network to determine which C-BSR has the
higher priority and once determined, will be elected as the BSR. Once determined, the BSR will collect RP data emanating
from candidate RPs on the PIM-SM network, compile it and then send it out on the land using periodic Boot Strap
Messages (BSM). All PIM-SM Routers will get the RP information from the Boot Stap Mechanism and then store it in
their database.
Discovering and Joining the Multicast Group
Although Hello packets discover PIM-SM routers, these routers can only join or be “pruned” from a multicast group
through the use of Join/Prune Messages exchanged between the DR and RP. Join/Prune Messages are packets relayed
between routers that effectively state which interfaces are, or are not to be receiving multicast data. These messages can be
configured for their frequency to be sent out on the network and are only valid to routers if a Hello packet has first been
received. A Hello packet will simply state that the router is present and ready to become a part of the RP’s distribution tree.
Once a router has accepted a member of the IGMP group and it is PIM-SM enabled, the interested router will then send an
explicit Join/Prune message to the RP, which will in turn route multicast data from the source to the interested router,
resulting in a unidirectional distribution tree for the group. Multicast packets are then sent out to all nodes on this tree.
Once a prune message has been received for a router that is a member of the RP’s distribution tree, the router will drop the
interface from its distribution tree.
Distribution Trees
Two types of distribution trees can exist within the PIM-SM protocol, a Rendezvous-Point Tree (RPT) and a Shortest Path
Tree (SPT). The RP will send out specific multicast data that it receives from the source to all outgoing interfaces enabled
to receive multicast data. Yet, once a router has determined the location of its source, an SPT can be created, eliminating
hops between the source and the destination, such as the RP. This can be configured by the switch administrator by setting
the multicast data rate threshold. Once the threshold has been passed, the data path will switch to the SPT. Therefore, a
closer link can be created between the source and destination, eliminating hops previously used and shortening the time a
multicast packet is sent from the source to its final destination.
Register and Register Suppression Messages
Multicast sources do not always join the intended receiver group. The first hop router (DR) can send multicast data without
being the member of a group or having a designated source, which essentially means it has no information about how to
relay this information to the RP distribution tree. This problem is alleviated through Register and Register-Stop messages.
The first multicast packet received by the DR is encapsulated and sent on to the RP which in turn removes the
encapsulation and sends the packet on down the RP distribution tree. When the route has been established, a SPT can be
created to directly connect routers to the source, or the multicast traffic flow can begin, traveling from the DR to the RP.