4. Protocol Description for Multicast Listeners
This section describes the part of MLDv2 that applies to multicast listeners (hosts or routers). The protocol described in this section is performed over each interface on which multicast reception is supported.
Questa sezione descrive la parte di MLDv2 che si applica agli ascoltatori multicast (host o router). Il protocollo descritto in questa sezione viene eseguito su ogni interfaccia su cui è supportata la ricezione multicast.
4.1. Multicast Listener State
A multicast listener maintains a per-interface state for each multicast address. This state consists of a filter mode and a list of source addresses.
Un ascoltatore multicast mantiene uno stato per interfaccia per ogni indirizzo multicast. Questo stato consiste in una modalità di filtro e un elenco di indirizzi sorgente.
-
Filter Mode: Can be either INCLUDE or EXCLUDE.
Modalità Filtro (Filter Mode): Può essere INCLUDE o EXCLUDE.
-
Source List: A set of unicast IP addresses from which multicast packets are accepted (if mode is INCLUDE) or rejected (if mode is EXCLUDE).
Elenco Sorgenti (Source List): Un insieme di indirizzi IP unicast da cui i pacchetti multicast vengono accettati (se la modalità è INCLUDE) o rifiutati (se la modalità è EXCLUDE).
4.2. Action on Change of Interface State
When the multicast reception state on an interface changes (e.g., an application joins a group or changes its source filters), the listener immediately transmits a State Change Report.
Quando lo stato di ricezione multicast su un'interfaccia cambia (ad esempio, un'applicazione si unisce a un gruppo o modifica i suoi filtri sorgente), l'ascoltatore trasmette immediatamente un rapporto di cambio stato (State Change Report).
The State Change Report contains a Multicast Address Record for the affected multicast address. The Record Type and content depend on the change:
Il rapporto di cambio stato contiene un record di indirizzo multicast per l'indirizzo multicast interessato. Il tipo di record e il contenuto dipendono dal cambiamento:
| Old State | New State | Record Type | Content |
|---|---|---|---|
| INCLUDE (A) | INCLUDE (B) | ALLOW | B - A |
| INCLUDE (A) | INCLUDE (B) | BLOCK | A - B |
| EXCLUDE (A) | EXCLUDE (B) | ALLOW | A - B |
| EXCLUDE (A) | EXCLUDE (B) | BLOCK | B - A |
| INCLUDE (A) | EXCLUDE (B) | TO_EX | B |
| EXCLUDE (A) | INCLUDE (B) | TO_IN | B |
4.3. Action on Reception of a Query
When a listener receives a Query, it performs the following actions:
Quando un ascoltatore riceve un'interrogazione, esegue le seguenti azioni:
-
If the Query is a General Query, the listener sends a Current State Report for all multicast addresses for which it has state.
Se l'interrogazione è un'interrogazione generale, l'ascoltatore invia un rapporto sullo stato corrente (Current State Report) per tutti gli indirizzi multicast per i quali ha uno stato.
-
If the Query is a Multicast-Address-Specific Query, the listener sends a Current State Report for the specified multicast address (if it has state for it).
Se l'interrogazione è un'interrogazione specifica per indirizzo multicast, l'ascoltatore invia un rapporto sullo stato corrente per l'indirizzo multicast specificato (se ha uno stato per esso).
-
If the Query is a Multicast-Address-and-Source-Specific Query, the listener sends a Current State Report for the specified multicast address if the specified sources are of interest.
Se l'interrogazione è un'interrogazione specifica per indirizzo multicast e sorgente, l'ascoltatore invia un rapporto sullo stato corrente per l'indirizzo multicast specificato se le sorgenti specificate sono di interesse.
The Current State Report contains Multicast Address Records with the following Record Types:
Il rapporto sullo stato corrente contiene record di indirizzo multicast con i seguenti tipi di record:
-
MODE_IS_INCLUDE: Indicates that the interface has a filter mode of INCLUDE for the specified multicast address. The Source List contains the specific sources of interest.
MODE_IS_INCLUDE: Indica che l'interfaccia ha una modalità di filtro INCLUDE per l'indirizzo multicast specificato. L'elenco sorgenti contiene le specifiche sorgenti di interesse.
-
MODE_IS_EXCLUDE: Indicates that the interface has a filter mode of EXCLUDE for the specified multicast address. The Source List contains the specific sources to be excluded.
MODE_IS_EXCLUDE: Indica che l'interfaccia ha una modalità di filtro EXCLUDE per l'indirizzo multicast specificato. L'elenco sorgenti contiene le specifiche sorgenti da escludere.
The Report is sent after a random delay (up to the Maximum Response Delay specified in the Query) to avoid synchronization of Reports from multiple listeners.
Il rapporto viene inviato dopo un ritardo casuale (fino al ritardo massimo di risposta specificato nell'interrogazione) per evitare la sincronizzazione dei rapporti da più ascoltatori.