Todays topic Broadcast and multicast Send/receive broadcast and

 Todays topic  Broadcast and multicast  Send/receive broadcast and

Todays topic Broadcast and multicast Send/receive broadcast and multicast packets Types of IP addresses Unicast Identify one host Anycast Identify one host in a set of hosts Broadcast

Identify all hosts Multicast Identify a set of hosts Broadcasting and Multicasting An area that is not well standardized systems from different vendors may behave differently when dealing with broadcast and multicast packets. May not work on WAN (some equipment along the path may not support broadcasting/multicasting).

Usually work on LAN (e.g. Ethernet) no router in between. Broadcasting IP broadcast address: IP address can logically be viewed as three components: , e.g. When the hostid contains all one bits 111111111 111, it is a broadcast address, let us denote the all one bits as 1. two kinds of broadcast addresses: Subnet-directed broadcast address:

Limited broadcast address < -1, -1> or, broadcast to all machines in the local network. Router typically does not forward subnet-directed broadcast address Router should not forward limited broadcast address Broadcasting Ethernet broadcast address: Ff:ff:ff:ff:ff:ff All Ethernet cards recognize this address What happens when a broadcast packet is sent

in a LAN? The packet will go up all the way to the IP layer on ALL machines!! Implication? Ethernet switches must support broadcast Many applications are built on top of it. ARP, BOOTP ATM LAN must emulate this capability. Sending a broadcast message:

Set the SO_BROADCAST option. Set destination ip address to Different system may behavior differently. See example1.c Receiving a broadcast message: Nothing extra Be very careful when using broadcast, you might affect other people on the same

network without knowing it. Multicasting (send to many): In between unicast (send to one) and broadcast (send to all). IP Multicast address 1110 xxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx ( to These addresses are associated with a group of interfaces. A host must explicitly join and leave a group. Ethernet multicast address:

1110 xxxx.x xxxxxxx.xxxxxxxx.xxxxxxxx ------------------------------- 23bits 01. 00. 5e. 0 xxxxxxx.xxxxxxxx.xxxxxxxx Imperfect filtering Some special multicast addresses: -- all hosts group all routers group are reserved.

Sending multicast messages: Use sendto, just treat a multicast address as a regular IP address. Can control the number of hops for multicast packets by setting IP_MULTICAST_TTL Can avoid loopback by turning off IP_MULTICAST_LOOP. See example2.c Receiving multicast message: After binding a socket to a port, the socket must join the group (setsockopt,IP_ADD_MEMBERSHIP).

The value is of type struct ip_mreq (netinet/in.h) Struct ip_mreq { struct in_addr imr_multiaddr; struct in_addr imr_interface; } See example3.c To stop receiving multicast message setsockopt IP_DROP_MEMBERSHIP. Multicast over the Internet: Not available in the general Internet the IP

multicast feature tuned off. Some experimental systems: Mbone Internet2 -- FSU is on Internet2

Recently Viewed Presentations

  • Supporting All Students: LGBTQIA Resources and Supports

    Supporting All Students: LGBTQIA Resources and Supports

    Supporting All Students:LGBTQIA Resources and supports. Tobin Bakkedahl. Professional School Counselor. October 2013. School counselors and their programs are designed to support all students and their vast needs.
  • Chapter 2

    Chapter 2

    In the MARIE RTL, we use the notation M[X] to indicate the actual data value stored in memory location X, and to indicate the transfer of bytes to a register or memory location. 4.8 MARIE The RTL for the LOAD...
  • Chapter 1 Section 3 - PC&#92;|MAC

    Chapter 1 Section 3 - PC\|MAC

    Ecotourism helps save the environment and provides jobs for local farmers. ... Belize, El Salvador, Nicaragua, Costa Rica, Panama, Cuba, Jamaica, Haiti, Dominican Republic, Puerto Rico, Montserrat, Panama Canal, Port au Prince, Trinidad and Tobago ... Geo Chapter 5 Lesson...
  • Heat and Energy -

    Heat and Energy -

    Using the Heat Equation. Calculations Using Specific Heat. Guide to Calculations Using Specific Heat. What is the specific heat if 24.8 g of a metal absorbs 275 J of energy and the temperature rises from 20.2 °C to 24.5 °C?...
  • Genome to Vaccinome: Reverse vaccinology workbench for viruses

    Genome to Vaccinome: Reverse vaccinology workbench for viruses

    Times New Roman Arial AdvPAC3D AdvPSTim-I Comic Sans MS Wingdings Symbol Courier New Default Design Bitmap Image Microsoft Word Picture Genome to Vaccinome: Immunoinformatics & Vaccine design case studies Outline The Immune System The adaptive immune response Antigen presentation and...
  • The Great Chemistry Escape!! Name this piece of

    The Great Chemistry Escape!! Name this piece of

    Which column(s) is/are accurate? Which column(s) is/are precise? Which column(s) is neither precise or accurate? Consider the first row only. What is the percent yield for trial #2?
  • DOC/721R Presentation Template (change to reflect ...

    DOC/721R Presentation Template (change to reflect ...

    Problem Statement This quantitative study will determine if casual dining restaurants can attract more users by age group, with electronic coupons delivered to a cell phone than traditional printed direct mail (Liljandler, Polsa, & Forsberg, 2007).
  • ControlEdge PLC Microsite Planned - Honeywell

    ControlEdge PLC Microsite Planned - Honeywell

    Honeywell's new PLC is part of the ControlEdge™ family, a next generation family of controllers providing unprecedented connectivity through all levels of process and business operations. The result is optimized operations and maintenance efficiencies that liberate personnel from manual processes.