{"id":1005,"date":"2012-08-14T11:51:07","date_gmt":"2012-08-14T03:51:07","guid":{"rendered":"http:\/\/rmohan.com\/?p=1005"},"modified":"2012-08-14T11:55:40","modified_gmt":"2012-08-14T03:55:40","slug":"multicasting","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1005","title":{"rendered":"Multicasting"},"content":{"rendered":"<p>Multicast is the protocol which allow nodes inside to a cluster to communicate without knowing each other.<\/p>\n<p>You can think of multicast of a radio or a TV channel, only those who are tuned received the information.<\/p>\n<p>Communication between nodes is provided by JGroups, which is library for multicast communication.<\/p>\n<p>&nbsp;<\/p>\n<p>What is multicasting?<br \/>\nThere are three types of communication between computers in a network:<br \/>\n<strong>Unicast &#8211; one computer talks directly to another computer<\/strong><br \/>\nBroadcast &#8211; one computer talks to all computers<br \/>\n<strong>Multicast &#8211; one computer talks to a select group of others<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>In a conventional Ethernet network, most Internet Protocol (IP) packets are sent using unicast<br \/>\n(host-to-host) transmission. Every computer in a network can transmit and receive packets,<br \/>\nwhich in unicast transmission are labelled with the address of the receiving computer. Each<br \/>\ncomputer listens to all the other packets that are sent in the network and looks for packets<br \/>\nthat are addressed to itself. When a computer encounters a packet that is addressed to itself, it<br \/>\ninterrupts the processor and hands the packet to the operating system to process.<br \/>\nUnicasting is great for communicating directly with one or a few other computers. However if<br \/>\nyou want to communicate with a number of computers, unicasting becomes inefficient because<br \/>\na copy of each packet must be sent to every receiving unicast address. Unicasting uses up<br \/>\nbandwidth fast, especially when sending large multimedia files, which already take up a lot of<\/p>\n<p>&nbsp;<\/p>\n<p>Unicast transmission sends a separate stream of data to each receiver, while multicast transmission sends<br \/>\none stream of data that is separated as it passes through the routers and sent on to the receivers<br \/>\nWhat are the benefits of multicasting?<br \/>\nMulticasting optimises the performance of your network. Because only one multicast data stream<br \/>\nis sent out, multicasting preserves bandwidth on your network and eliminates traffic redundancy. In<br \/>\ncontrast, the unicast environment sends out a separate copy of the data to each receiver.<br \/>\nMulticasting also provides enhanced efficiency by controlling the traffic on your network and<br \/>\nreducing load on network devices.The clients on your network are able to decide whether or<br \/>\nnot to listen to a multicast address, so packets are only sent to where they are required.<br \/>\nIn addition, multicasting is scalable across different sized networks, but is particularly suited to<br \/>\nWAN environments. It gives people in different locations access to streaming data files, like a<br \/>\nvideo, film or live presentation without taking up excessive bandwidth or broadcasting the data<br \/>\nto all users on the network.<\/p>\n<p>&nbsp;<\/p>\n<p>B. How do Multicast Addresses Work?<br \/>\nBecause multicast addresses identify a transmission session rather than a specific physical<br \/>\ndestination or host, all of the receivers in a multicast group are identified by a single IP address.<br \/>\nThis section outlines how multicast IP and MAC addresses are structured.<br \/>\nHow are IPv4 multicast addresses organised?<br \/>\nIPv4 multicasting uses class D addresses. A class D address starts with 1110 higher order bits in<br \/>\nthe first octet, followed by a 28-bit group address.The last 28 bits of a class D address are<br \/>\nunstructured, unlike the class A, B and C IP addresses.These 28 bits identify the multicast group<br \/>\nidentity, which is a single address in the range of 224.0.0.0 to 239.255.255.255.<br \/>\nSome IPv4 multicast addresses are reserved for particular purposes.These addresses are<br \/>\nassigned by the Internet Assigned Numbers Authority (IANA).Table 1 outlines some of the<br \/>\nwell-known IPv4 multicast addresses.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multicast is the protocol which allow nodes inside to a cluster to communicate without knowing each other.<\/p>\n<p>You can think of multicast of a radio or a TV channel, only those who are tuned received the information.<\/p>\n<p>Communication between nodes is provided by JGroups, which is library for multicast communication.<\/p>\n<p>&nbsp;<\/p>\n<p>What is multicasting? There [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1005"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1005"}],"version-history":[{"count":4,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions"}],"predecessor-version":[{"id":1008,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1005\/revisions\/1008"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}