1 / 20

Multicast networking

Multicast networking. Multicast Broadcast Class MulticastSocket Using multicast A peer-to-peer multicast chat system A client/server multicast chat system Wrapping up Conclusion. Multicast networking. Multicast and broadcast are datagram network protocols.

shasta
Télécharger la présentation

Multicast networking

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Multicast networking • Multicast • Broadcast • Class MulticastSocket • Using multicast • A peer-to-peer multicast chat system • A client/server multicast chat system • Wrapping up • Conclusion

  2. Multicast networking • Multicast and broadcast are datagram network protocols. • Broadcast packets can not get across a router, while multicast packets can. • Multicast, thus, requires a router to be multicast aware: both the hosts and routers must support IGMP.

  3. Multicast networking • Internet Group Management Protocol (IGMP) • Hosts willing to receive multicast messages (packets) need to inform their immediately-neighboring routers that they are interested in receiving multicast messages sent to certain multicast groups. • This way, each node can become a member of one or more multicast groups and receive the multicast packets sent to those groups. • The protocol through which hosts communicate this information with their local routers is called Internet Group Management Protocol (IGMP).

  4. Multicast • A packet is sent to a multicast group. • All the interested recipients in the group will receive the packet. • As with UDP, multicast is packet-based and does not guarantee reliability. • Successful delivery may be different for different recipients in packet lost, duplication, and order.

  5. Multicast groups • A multicast group is simply an IP address that falls into IP class D (224.0.0.0~239.255.255.255). • Recipients express an interest in receiving packets addressed to a particular multicast group. • The underlying network protocols announcing this interest to relevant routers on the network.

  6. Multicast groups • To multicast is to simply insert a packet into the network with the appropriate target address. • A sender need not even be a member of the group. • The packet will also be picked up by routers that will forward it as appropriate to adjacent networks that are interested.

  7. Multicast groups • The significant complexity of multicast is how routers will know what adjacent networks are interested.

  8. The MBone • The largest deployment of multicast on the Internet is perhaps the Mbone. • A multicast packet is transported as usual within a island, but is also picked up by router hosts that transmit the data through TCP tunnels to other router hosts on other islands.

  9. TTL-Time To Live • Multicast packets use a TTL field to limit how far a packet will propagated. • The definition of the TTL field depends on the routing protocol.

  10. Reliability • There are other reliable multicast protocols such as MTP, RAMP, RMP, RMTP, RTP, TMTP, or XTP.

  11. Broadcast • Similar at a local level to multicast: every broadcast-based network has a broadcast address. • Clients must choose a UDP port number on which to operate.

  12. Multicast vs. broadcast • Multicast is preferable. • Multicast is often supported correctly, but broadcast results in a permission error. • Multicast and broadcast result in almost the same traffic. • From java, only a single client can listen to broadcast to a particular port on a single machine, while many clients can engage in the same multicast conversation from a single machine.

  13. Class MulticastSocket • The MulticastSocket class extents the DatagramSocket class by adding support for IP multicast. • The additional methods are: • Methods to control group membership. • A send() method that allows the TTL of a multicast packet to be specified. • Java does not support querying the destination address of a received packet, so it is up to every application to manually determine whether or not any received packet is addressed to itself.

  14. Security • Applets are restricted to receiving multicast packets from a single host, from which they came from. • They are usually not allowed to transmit multicast packets. IGMP must be used

  15. Using multicast • Using multicast is similar to using UDP except that a TTL can be specified when a packet is sent through a MulticastSocket.

  16. Using multicast • Receiving a multicast packet involves one more step. • The receiver must join a multicast group before waiting for packets to arrive. • An code fragment.

  17. A peer-to-peer multicast chat system • Multicast and broadcast allow the development of true peer-to-peer applications - there is no central server. • This example shows how clients in a multicast-based chat system communicate among each other.

  18. A client/server multicast chat system • This implementation combines unicast and multicast to overcome the Java applet security limitation. • Each client unicasts its message to a central server, which then multicast it back to all the client. • This requires that the server must reside at the Web server’s location to comply with Java applet security limitation.

  19. A client/server multicast chat system • This system consists of two classes –MixedcastChatand MixedcastServer.

  20. A client/server multicast chat system • To deployed as a web-based chat system, the server must run on the same machine as the web server. • Client can only connect if they are multicast-connected to the server.

More Related