Title: IP: Addresses and Forwarding
1?????
????????????? ???
2??? ??????
31 ?????
- ???????????????????????????????????
- ?????????????????????????????????????
- ????????????????????????????????
41 ?????
Src
Src
??????????????????
52 ?????
- ????????(one-to-many)?????
- ??
- ??/????/????/?????????
- ????(Distance learning)
- ????????(routing updates)
- ????(Teleconferencing ,audio, video, shared
whiteboard, text editor) - ???????????(Distributed interactive gaming or
simulations) - ????(Content distribution) ????(Software
distribution) - Web????(Web-cache updates )
- ?????(Database replication)
63 ???????????
- ??(Broadcast)
- ??????????????????
- ????(Simple), ??????(inefficient)
- ??????????????????
- ????????CPU??
- ???????broadcast storms
- ???????(Replicated Unicast)
- ??????????????????
- ??????????????????
- ???????????,
- ?????(Reliability gt per-receiver state, separate
sessions/processes at sender)
74 IP???????
???? Service model
Hosts
??????????(IGMP)
Routers
?????? Multicast routing protocols
85 IP ???? RFC 1112
- ???(?)?????????
- ?????group address??????
- ?IP??????????????????
- ??????????????(any size)
- ???????????????
- ????(Group membership)???????(not explicitly
known) - ?????????????????????(Receivers can join/leave
at will)
95 IP ???? RFC 1112
- ?????????(Distribution tree,????? )???????
- ??????,??????????????????
- ?????????????(?????????????????????,??????????????
???(multicast delivery tree changes dynamically)
106 IP ????
- IP????D?IP??(Class D IP addresses)
- 224.0.0.0 239.255.255.255
- ??????(Address allocation)
- IANA????????? (Well-known 224.0.0.x and
224.0.1.x )???????????(Transient multicast
addresses),?????? - ??????????????(host group)
- IP?????????(flat address space)
1
1
1
0
Group ID
11 IP???????????
- ??????
- ?????? Join-IP-Multicast-Group(group-address,
interface) - ????Leave-IP-Multicast-Group(group-address,
interface) - ?????,??????IP????( normal IP-receive
operation)???????
127 IP??????????????
- ???(Ethernet)??????802??
- ??????(Direct mapping! ?unicast??! ??ARP???.)
LAN multicast address
13IP Multicast Architecture
Service model
Hosts
Host-to-router protocol(IGMP)
Routers
Multicast routing protocols(various)
148 ????????(Internet Group Management Protocol)
- IGMP ???????????????????signaling protocol?
- ?? ???????????????????(keep router up-to-date
with group membership of entire LAN) - ??,???????????????,???????????????
15IGMP???????
Q
Routers
Hosts
- ????????????????querier
- ????????????????IGMP (Membership Query message)
???????(all-systems group ,224.0.0.1) - ???????????,?????????(random timers,010 ?)
16IGMP???????(cont.)
Q
Routers
G
G
G
G
Hosts
- ?????????,??????????????(Membership Report)??G
- ???????????,????????
- ????????????????,???????????(??),???????????????
17IP Multicast Architecture
Service model
Hosts
Host-to-router protocol(IGMP)
Routers
Multicast routing protocols
189 ????(Multicast Routing)
- ?????????????????????????????
- ????????????????????? (detected by IGMP)
- ??????????????(Multicast service model makes it
hard) - ??????
- ???????(Dynamic join/leave)
19??????????
- ????????????
- ??????????????
- ???????????????
- ????????? DVMRP, PIM-DM
- ?????????????
- ?????????????????,??????????????
- ?????????????,????Dijkstra??????????????,???????
- ???? MOSPF
20???????????
G
G
S
G
21??(Flooding)
G
G
S
G
22??(Pruning)
G
G
Prune (s,g)
Prune (s,g)
S
G
23??(Grafting)
G
G
G
Report (g)
Graft (s,g)
Graft (s,g)
S
G
24?????
G
G
G
S
G
25????????(Distance-Vector Multicast Routing)
- DVMRP ??????
- ???????? (like RIP)
- ?????????
- DVMRP ??????? if
- The packet arrived from the link used to reach
the source of the packet - ??????? RPF
- ?????????????
- ????????????,???????
26DVMRP ?????
- ??????????????, ?????(count-to-infinity)?????(tran
sient looping) - ??????RIP?????. ???????????(scaling limitations)
- ????(S,G) ??,???????????!
- ??????????.
27Multicast Backbone (MBone)
- An overlay network of IP multicast-capable
routers using DVMRP - Tools sdr (session directory), vic, vat, wb
R
Host/router
MBone router
H
Physical link
Tunnel
Part of MBone
28Multicast OSPF (MOSPF)
- MOSPF?OSPF???,??????
- ???(Multicast-capable routers)????????( link
state routing advertisements) - ??????????????(Link-state packets include
multicast group addresses to which local members
have joined) - ????????????????(??Dijkstra??)?????????????????
29MOSPF Example
Source 1
Z
W
Q
T
Receiver 1
Receiver 2
30Link Failure/Topology Change
Source 1
Z
X
W
Q
T
Receiver 1
Receiver 2
31Group Membership Change
Source 1
Z
Receiver 3
W
Q
T
Receiver 1
Receiver 2
32??? vs. ???
- ???(Source-based trees)
- ?????????????
- ???????(S,G) ??(state)??????
- Eg DVMRP, MOSPF, PIM-DM, PIM-SM
- ???(Shared trees)
- ???????????
- ???????????????????
- ????????(,G) ??( (,G) state at intermediate
routers) - Eg CBT, PIM-SM
33???(Source-based Trees)
Router
Source
S
Receiver
R
R
R
R
S
S
R
34???(Shared Tree)
Router
Source
S
Receiver
R
R
R
RP
R
S
S
R
35Shared vs. Source-Based Trees
- Source-based trees
- Shortest path trees low delay, better load
distribution - More state at routers (per-source state)
- ???????????????(Efficient in dense-area
multicast) - Shared trees
- Higher delay (bounded by factor of 2), traffic
concentration - Choice of core affects efficiency
- Per-group state at routers
- ?????????????(Efficient for sparse-area multicast)
36Core-based Routing Protocols
- Specify meeting place aka core or rendezvous
point (RP) - Sources send initial packets to core
- Receivers join group at core
- Requires mapping between multicast group address
and meeting place - Examples CBT, PIM-SM
37??????????Protocol Independent Multicast (PIM)
- Support for both shared and per-source trees
- Dense mode (per-source tree)
- Similar to DVMRP
- Sparse mode (shared tree)
- Core rendezvous point (RP)
- Independent of unicast routing protocol
- Just uses unicast forwarding table
38PIM Protocol Overview
- Basic protocol steps
- Routers with local members Join toward Rendezvous
Point (RP) to join shared tree - Routers with local sources encapsulate data in
Register messages to RP - Routers with local members may initiate
data-driven switch to source-specific shortest
path trees - PIM v.2 Specification (RFC2362)
39PIM Example Build Shared Tree
Shared tree after R1,R2 join
Source 1
Join messagetoward RP
(,G)
(,G)
RP
(,G)
(,G)
(,G)
(,G)
Receiver 1
Receiver 3
Receiver 2
40Data Encapsulated in Register
Unicast encapsulated data packet to RP in Register
Source 1
(,G)
(,G)
RP
(,G)
(,G)
(,G)
(,G)
Receiver 1
Receiver 3
Receiver 2
RP de-capsulates, forwards down shared tree
41RP Send Join to High Rate Source
Shared tree
Source 1
Join messagetoward S1
(S1,G)
RP
Receiver 1
Receiver 3
Receiver 2
42Build Source-Specific Distribution Tree
Shared Tree
Source 1
Join messages
(S1, G)
(S1,G),(,G)
RP
(S1,G),(,G)
(S1,G),(,G)
Receiver 1
Receiver 3
Receiver 2
Build source-specific tree for high data rate
source
43Thank you !