Académique Documents
Professionnel Documents
Culture Documents
Dirk Grunwald Assoc. Professor Dept. of Computer Science University of Colorado, Boulder
Using Broadcast
u UDP
l
u Only
applicable to UDP!
Broadcast Addresses
u Limited
l
u Net-directed
l
A router must forward a net-directed broadcast, but must have an option to disable this.
u Subnet-directed
Multicast
u Class
l
uA
u Two
special network groups l 224.0.0.xxx is never routed l 224.0.0.1 - all hosts group l 224.0.0.2 - all routers group
mreq.imr_interface.s_addr = htonl(INADDR_ANY); mreq.imr_interface.s_addr htonl(INADDR_ANY); ret = setsockopt(sockfd, IPPROTO_IP, IP_ADD_MEMBERSHIP, setsockopt(sockfd, &mreq, sizeof(mreq)); &mreq, sizeof(mreq)); check_and_exit(ret, "setsockopt"); check_and_exit(ret, "setsockopt"); }
0 - node local - doesnt leave machine 1 - link local - doesnt get routed <32 - site local - .But whats a site? <255 - global - The world
Administrative Scoping
u 239.xxx.yyy.zzz
space
l
Addresses assigned locally to an organization, but not unique across organizations Border routers must not forward
u link-local
-- 224.0.0.0 to 224.0.0.255 u site-local -- 239.255.0.0 to 239.255.255.255 u organization-local - 239.192.0.0 to 239.195.255.255 u global -- 224.0.1.0 to 238.255.255.255
How does the ethernet card know which messages to receive? Takes the same amount of network bandwidth as selective multicast, but.. Disturbs all machines
u Can
l
cards can usually receive on multiple MAC addresses u Multicast router enters a virtual MAC address, clients receive on that virtual MAC
1110 0000
alias_address[/bitmask]
Establishes an additional network address for this interface. Eample: ifconfig eth0 alias 128.138.241.79/26
command adds network addresses 40 through 50, inclusive, to subnets 18.240.32, 18.240.64, and 18.240.96
ifconfig aliaslist 18.240.32,64,96.40-50
u Doesnt
u Type
l l
u Group
l l
On query, its zero On response, its the group address being reported
Host sends a report when it joins a group Doesnt report when it leaves the group, but doesnt respond to next query
IGMP report, TTL =1 IGMP group addr = group address dest IP addr = group address src IP addr = hosts IP address
Host
Router
Router sends query at regular intervals to see if anyone still belongs to any groups. Queries sent out each interface. Host responds by sending one response IGMP query, TTL =1 for each group to which it belongs
IGMP group addr = 0.0.0.0 dest IP addr = 224.0.0.1 src IP addr = routers IP address
Host
Router
Multicast Routes