1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Định tuyến Multicast groups

20 365 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 20
Dung lượng 3,28 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Giới thiệu về multicast groups .các giao thức chạy trong định tuyến multicast

Trang 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

Trang 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

Trang 3

Multicast networking

Internet Group Management Protocol (IGMP)

(packets) need to inform their

immediately-neighboring routers that they are interested in

receiving multicast messages sent to certain

multicast groups

one or more multicast groups and receive the

multicast packets sent to those groups

this information with their local routers is called Internet Group Management Protocol (IGMP)

Trang 4

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

Trang 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

Trang 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

Trang 7

The significant complexity of multicast is how routers will know what adjacent

networks are interested

Multicast groups

Trang 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.

Trang 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

Trang 10

There are other reliable multicast

protocols such as MTP, RAMP, RMP, RMTP, RTP, TMTP, or XTP

Trang 11

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

Trang 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.

Trang 13

Class MulticastSocket

The MulticastSocket class extents the

DatagramSocket class by adding support for IP multicast.

The additional methods are:

 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

Trang 14

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

Trang 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

Trang 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 frag

ment

Trang 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

Trang 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

Trang 19

A client/server multicast

chat system

This system consists of two classes –

MixedcastChat and MixedcastServer

Trang 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.

Ngày đăng: 23/05/2014, 09:08

TỪ KHÓA LIÊN QUAN

w