"TCP/IP Detailed Volume 1: Protocol" 12th chapter broadcast and multicast---reading notes

Source: Internet
Author: User

"TCP/IP Detailed Volume 1: Protocol" 12th chapter broadcast and multicast---reading notes

1. Introduction

Broadcast and multicast are used only for UDP, and they are important for applications that need to transmit messages to multiple recipients simultaneously.

Sometimes, a host sends frames to all other hosts on the web, which is the broadcast.

Multicast (multicast) is between unicast and broadcast: frames are routed only to multiple hosts that belong to a multicast group.


2. Broadcasting

2.1. Restricted broadcasts

The restricted broadcast address is 255.255.255.255. This address is used for the destination address of the IP datagram during host configuration, at which point the host may not know the network mask of its network or even its IP address.

In any case, the router does not forward datagrams with the destination address being a restricted broadcast address, and such data only appears on the local network.

2.2, the broadcast to the network

The broadcast address that points to the network is the address with the host number 1.

The Class A network broadcast address is netid.255.255.255, where NetID is the network number of the Class A network.

A router must forward a broadcast that points to a network, but it must also have a choice not to forward.

2.3. Broadcast to Subnet

The broadcast address to the subnet is an address with a host number of 1 and a specific subnet number.

The IP address that is the subnet's direct broadcast address requires an understanding of the subnet's mask.

2.4. Broadcast to all subnets

Broadcasts that point to all subnets also need to know the subnet mask of the destination network so that it is separate from the broadcast address that points to the network. The subnet number and the host number of the broadcast address pointing to all subnets are all 1.


3. Examples of broadcasting

4. Multicast

IP multicasting provides two types of services:

A. Transfer data to multiple destination addresses.

B. Customer requests to the server.

4.1. Multicast group Address

Figure 12-2 shows the format of the Class D IP address.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/8C/13/wKioL1hhRYzRhomcAAAwyY5e9o4837.png "title=" 12-2. PNG "alt=" Wkiol1hhryzrhomcaaawyy5e9o4837.png "/>

Unlike other three-class IP addresses (A, B, and C), the assigned 28bit is used as a multicast number and no longer represents the other.

The multicast group address includes a maximum of 4bit and a multicast group number of 1110. They can usually represent dotted decimal numbers, ranging from 224.0.0.0 to 239.255.255.255.

A collection of hosts that can receive data destined for a specific multicast group address is called a host group.

A host group can span multiple networks.

A member of a host group can join or leave a cluster at any time.

There is no limit to the number of hosts in the host group, and hosts that are not part of a host group can send messages to the groups.

4.2. Conversion of multicast group address to Ethernet address

The IANA has an Ethernet address block, that is, the high 24bit is 00:00:5e (hexadecimal), which means that the address block has a range of addresses from00:00:5e:00:00:00 To00:00:5e:ff:ff:ff 。 The IANA assigns the generic as a multicast address. In order to indicate a multicast address, the first byte of any Ethernet address must be 01, which means that the Ethernet address range that corresponds to the IP multicast on: 00:5e:00:00:00 To on: 00:5e:7f:ff:ff 。

This address assignment will allow the 23bit in the Ethernet multicast address to correspond to the IP multicast group number, as shown in procedure 12-3, by mapping the low 23bit in the multicast group number to the lower 23bit implementation in the Ethernet address.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8C/13/wKioL1hhSJjDu7rHAADF9QAbNTU071.png "title=" 12-3. PNG "alt=" Wkiol1hhsjjdu7rhaadf9qabntu071.png "/> because the maximum 5bit in the multicast group number is ignored in the mapping, so the multicast group corresponding to each Ethernet multicast address is not unique. 32 different multicast group numbers are mapped to an Ethernet address.

Since address mapping is not unique, the device driver or IP layer must filter the data. Because the NIC may receive multicast data frames that the host does not want to receive. In addition, if the NIC does not provide enough multicast data filtering, the device driver must receive all multicast data frames and then filter them.


Recently in the graduation design, just use the knowledge of multicast. Good reading!


This article is from the "Do Your best" blog, so be sure to keep this source http://qiaopeng688.blog.51cto.com/3572484/1886377

"TCP/IP Detailed Volume 1: Protocol" 12th chapter broadcast and multicast---reading notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.