Parameter |
Description |
Value |
---|---|---|
interface interface-type interface-number |
Displays information about the GVRP state machine of the specified interface.
|
- |
vlan vlan-id |
Displays information about the state machine of the specified VLAN. |
The value is an integer that ranges from 2 to 4094. |
The GVRP function has two types of state machines: Applicant state machine and Registrar state machine.
An applicant implements declaration of attributes. If no message is lost during transmission, an applicant can ensure that all registrars have registered an attribute after it sends a Join message or receives a JoinIn message. To ensure reliable transmission of messages, the applicant needs to send two Join messages or send a Join message and receive a JoinIn message to confirm that all registrars have registered an attribute. Therefore, a simple counter is used. The counter starts from 0 and increases by 1 every time the applicant sends a Join message or receives a JoinIn message. The maximum value of the counter is 2. If the applicant receives a JoinEmpty, Empty, Leave, or LeaveAll message, the counter is reset to 0. This indicates that the applicant can send PDUs only when the value of the counter is smaller than 2.
Anxious applicants
V (very anxious): The value of the counter is 0, indicating that the applicant does not send a Join message or receive a JoinIn message.
A (anxious): The value of the counter is 1, indicating that no message is lost and all the registrars have registered the attribute.
Q (quiet): The value of the counter is 2, indicating that the applicant does not need to send Join messages.
Members and observers
The preceding states are applicable to normal situations. In special cases, for example, when some terminals do not need to send registration messages and only need to retain all the GARP state machines, these terminals must be separated from other entities. Therefore, the concept of member and observer is introduced. A member refers to an entity that tries to declare or retain an attribute value or an entity that has not sent a Leave message yet. An observer refers to an entity that traces the states of attributes but does not declare attributes.
State Combination |
Very Anxious |
Anxious |
Quiet |
Leaving |
---|---|---|---|---|
Active Member |
VA |
AA |
QA |
LA |
Passive Member |
VP |
AP |
QP |
- |
Observer |
VO |
AO |
QO |
LO |
A registrar has a Leave timer and three states: IN (attribute registered), MTR (attribute deregistered), and LV (attribute being deregistered). If a registrar in LV state does not receive the declaration of an attribute within the timeout interval of the Leave timer, the registrar enters the MTR state.
When receiving a Join message, the registrar changes to the IN state.
When receiving a Leave or LeaveAll message, the registrar changes from the IN state to the LV state and starts the Leave timer. If the registrar is not in IN state, it does not change its state after receiving a Leave or LeaveAll message.
The registrar does not change its state after receiving an Empty message.
# Display information about the GVRP state machine.
<HUAWEI> display gvrp state interface gigabitethernet 0/0/1 vlan 100 GVRP state of VLAN 100 on port GigabitEthernet0/0/1 Applicant state machine : VP Registrar state machine : MTR
Item |
Description |
---|---|
Applicant state machine |
State machine of the applicant. |
Registrar state machine |
State machine of the registrar. |