24 Mart 2020 Salı

Internet Group Management Protocol - IGMP

IGMP - Internet Group Management Protocol
IGMP bilgisayarın bir çoklu dağıtım  (multicast) grubuna üye olması için kullanılır. Böylece Switch/Router kendisine gelen multicast paketleri hangi bilgisayarlar göndereceğini bilir.

IGMP IP üzerinden çalışır. TTL = 1 değerini kullandığı için internet üzerinde kullanılamaz. Herkesin aynı subnet üzerinde olması gerekir.

Kullandığı header ICMP'ye çok benzer. Açıklaması şöyle
IGMP is a protocol that has messages that are the payload of a layer-3 IPv4 packet, that is in turn the payload of an ethernet frame.
Internete multicast için tünel açmak gerekir.

İşletim Sistemi ve IGMP
Linux'ta en fazla 20 tane multicast adresine katılmak mümkün. Bu değiştirilebilir. Değeri görmek için şuraya bakarız.
/proc/sys/net/ipv4/igmp_max_memberships

IGMP Snooping
Hangi portta multicast olduğunu öğrenmek amacıyla, IGMP mesajlarının dinlenmesidir. Açıklaması şöyle
Multicast is a version of broadcast, which sends the frames to all switch interfaces.

Having said that, there is something called IGMP snooping that allows switches that support this to listen in on the IGMP conversations between hosts and a multicast router to see which switch interfaces want traffic from specific multicast groups. Switches that support this will only send traffic destined for a multicast group to those interfaces that have a destination interested in the traffic destined to that multicast group.

Not all switches support IGMP snooping. It is not something that is required, and pure layer-2 switches will send multicast frames to all switch interfaces.
Açıklaması şöyle
Multicast, at layer-2, where switches operate, is a form of broadcast, and multicast frames are treated like broadcasts. This has been mitigated by IGMP snooping in many new switches. This allows a switch to snoop on the IGMP requests by hosts to a multicast router. A switch with IGMP snooping enabled will learn and build a table of which interfaces have requested to join which IGMP groups, and it will only send traffic to those interfaces for that multicast group.
IGMP V2
Max Response Time
Açıklaması şöyle. Genellikle en fazla 10 saniyedir.
In IGMPv2, the Max response time is an 8-bit value each unit encoding 0.1 seconds. The typical max response time is 100 resulting in a 10 second max response time.

IGMP V3
IGMPV3 isteği 244.0.0.22 adresine gönderilir.

Multicast için 226.x ile başlayan IP numarasını seçmek doğru değildir çünkü bu adres rezerve edilmiştir.

Hiç yorum yok:

Yorum Gönder