• Nenhum resultado encontrado

LAN E

LAN 4 LAN 3

12.10 P rocedures

The following subclauses define the protocol actions and procedures that are identified in the description of the State Machines contained in 12.8.

12.10.1 Discarding badly formed GARP PDUs

A GARP Participant that receives a GARP PDU shall discard that PDU if any of the following are true:

a) The PDU carries an unknown protocol identifier;

b) The PDU is not formatted according to the GARP PDU format defined in 12.11.

Items of information contained within a GARP PDU that are not understood by the GARP Application shall be discarded as described in 12.11.3.

12.10.2 Protocol parameters and timers 12.10.2.1 jointimer

The Join Period Timer, jointimer, controls the interval between transmitPDU! events that are applied to the Applicant State Machine. An instance of this timer is required on a per-Port, per-GARP Participant basis.

The maximum time period between transmitPDU! events is defined by JoinTime, as defined in Table 12-10.

12.10.2.2 leavetimer

The Leave Period Timer, leavetimer, controls the period of time that the Registrar State Machine will wait in the LV state before transiting to the MT state. An instance of the timer is required for each state machine that is in the LV state. The Leave Period Timer is set to the value LeaveTime when it is started or restarted;

LeaveTime is defined in Table 12-10.

12.10.2.3 leavealltimer

The Leave All Period Timer, leavealltimer, controls the frequency with which the Leave All state machine generates LeaveAll PDUs. The timer is required on a per-Port, per-GARP Participant basis. The Leave All Period Timer is set to a random value, T, in the range LeaveAllTime < T < 1.5*LeaveAllTime when it is started or restarted. LeaveAllTime is defined in Table 12-10.

12.10.3 Protocol event definitions

Unless stated otherwise in these event definitions, GARP PDU reception in a Bridge can occur through all Ports of a Bridge, and events generated as a result of such reception affect only those state machines that are associated with the Port through which the PDU was received.

12.10.3.1 ReqJoin

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the ReqJoin event is deemed to have occurred if the GID Service User issues a GID_Join.request service primitive for the Attribute instance associated with that state machine.

12.10.3.2 ReqLeave

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the ReqLeave event is deemed to have occurred if the GID Service User issues a GID_Leave.request service primitive for the Attribute instance associated with that state machine.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 12.10.3.3 rJoinIn

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the rJoinIn event is deemed to have occurred if a GARP PDU (12.11) is received, and the following conditions are true:

a) The PDU was addressed to the GARP Application address (Table 12-1) of the GARP Application associated with the state machine;

b) The PDU contains a Message (12.11.1) in which the Attribute Type is the type associated with the state machine;

c) The Message contains an Attribute in which the Attribute Event (12.11.2.4) specifies the JoinIn event, and the Attribute Value (12.11.2.6) is equal to the value associated with the state machine.

12.10.3.4 rJoinEmpty

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the rJoinEmpty event is deemed to have occurred if a GARP PDU (12.11) is received, and the following conditions are true:

a) The PDU was addressed to the GARP Application address (Table 12-1) of the GARP Application associated with the state machine;

b) The PDU contains a Message (12.11.1) in which the Attribute Type is the type associated with the state machine;

c) The Message contains an Attribute in which the Attribute Event (12.11.2.4) specifies the JoinEmpty event, and the Attribute Value (12.11.2.6) is equal to the value associated with the state machine.

12.10.3.5 rEmpty

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the rEmpty event is deemed to have occurred if a GARP PDU (12.11) is received, and the following conditions are true:

a) The PDU was addressed to the GARP Application address (Table 12-1) of the GARP Application associated with the state machine;

b) The PDU contains a Message (12.11.1) in which the Attribute Type is the type associated with the state machine;

c) The Message contains an Attribute in which the Attribute Event (12.11.2.4) specifies the Empty event, and the Attribute Value (12.11.2.6) is equal to the value associated with the state machine.

12.10.3.6 rLeaveIn

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the rLeaveIn event is deemed to have occurred if a GARP PDU (12.11) is received, and the following conditions are true:

a) The PDU was addressed to the GARP Application address (Table 12-1) of the GARP Application associated with the state machine;

b) The PDU contains a Message (12.11.1) in which the Attribute Type is the type associated with the state machine;

c) The Message contains an Attribute in which the Attribute Event (12.11.2.4) specifies the LeaveIn event, and the Attribute Value (12.11.2.6) is equal to the value associated with the state machine.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

12.10.3.7 rLeaveEmpty

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the rLeaveEmpty event is deemed to have occurred if a GARP PDU (12.11) is received, and the following conditions are true:

a) The PDU was addressed to the GARP Application address (Table 12-1) of the GARP Application associated with the state machine;

b) The PDU contains a Message (12.11.1) in which the Attribute Type is the type associated with the state machine;

c) The Message contains an Attribute in which the Attribute Event (12.11.2.4) specifies the Leave-Empty event, and the Attribute Value (12.11.2.6) is equal to the value associated with the state machine.

12.10.3.8 LeaveAll

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, the Simple Applicant state machine or the Leave All state machine, the LeaveAll event is deemed to have occurred if:

a) a GARP PDU (12.11) is received, and the following conditions are all true:

1) The PDU was addressed to the GARP Application address (Table 12-1) of the GARP Applica-tion associated with the state machine;

2) The PDU contains a Message (12.11.1) in which the Attribute Type is the type associated with the state machine;

3) The Message contains a LeaveAll Attribute in which the LeaveAll Event (12.11.2.5) is present.

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine or the Simple Applicant state machine, the LeaveAll event is deemed to have occurred if:

b) the Leave All state machine associated with that state machine performs the sLeaveAll action (12.10.4.5).

NOTE—The LeaveAll state machine operates on a per-Application (not per-Attribute Type) basis, but the LeaveAll mes-sage operates on a per-Attribute Type basis. Hence, when the LeaveAll state machine issues a LeaveAll, it must generate a LeaveAll Attribute for each Attribute Type supported by the Application concerned.

12.10.3.9 leavetimer!

For an instance of the combined Applicant/Registrar state machine, the leavetimer! event is deemed to have occurred when the leavetimer associated with that state machine expires.

12.10.3.10 leavealltimer!

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, the Simple Applicant state machine or LeaveAll state machine, the leavealltimer! event is deemed to have occurred when the leavealltimer associated with that state machine expires.

12.10.3.11 transmitPDU!

For an instance of the combined Applicant/Registrar state machine, the Applicant Only state machine, or the Simple Applicant state machine, the transmitPDU! event is deemed to have occurred when the jointimer associated with that state machine expires.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 For an instance of the LeaveAll state machine, the transmitPDU! event is deemed to have occurred when the

state machine has an opportunity to transmit a LeaveAll message.

12.10.4 Action definitions

Unless stated otherwise in these action definitions, GARP PDU transmission as a result of the operation of a state machine in a Bridge occurs only through the Port associated with that state machine, and only if that Port is in the Forwarding state.

12.10.4.1 -x-No action is taken.

12.10.4.2 sJ[E, I], sJ[I]

A GARP PDU, formatted as defined in 12.11.1, is transmitted. The PDU shall be formatted such that:

a) The PDU contains a Message (12.11.1.2) which carries an Attribute Type (12.11.2.2) that specifies the type associated with the state machine;

b) The Message contains an Attribute (12.11.1.2) which specifies an Attribute Event (12.11.2.4) equal to JoinIn (if the Registrar is in the IN state, or if no Registrar functionality is implemented) or JoinEmpty (if the Registrar is in either the LV or the MT state), and an Attribute Value equal to the value associated with the state machine.

The PDU shall be transmitted using, as the destination MAC address, the GARP Application address of the GARP Application associated with the state machine.

12.10.4.3 sE

A GARP PDU, formatted as defined in 12.11.1, is transmitted. The PDU shall be formatted such that:

a) The PDU contains a Message (12.11.1.2) which carries an Attribute Type (12.11.2.2) that specifies the type associated with the state machine;

b) The Message contains an Attribute (12.11.1.2) which specifies an Attribute Event (12.11.2.4) equal to Empty, and an Attribute Value equal to the value associated with the state machine.

The PDU shall be transmitted using, as the destination MAC address, the GARP Application address of the GARP Application associated with the state machine.

12.10.4.4 sLE

A GARP PDU, formatted as defined in 12.11.1, is transmitted. The PDU shall be formatted such that:

a) The PDU contains a Message (12.11.1.2) which carries an Attribute Type (12.11.2.2) that specifies the type associated with the state machine;

b) The Message contains an Attribute (12.11.1.2) which specifies an Attribute Event (12.11.2.4) equal to LeaveEmpty, and an Attribute Value equal to the value associated with the state machine.

The PDU shall be transmitted using, as the destination MAC address, the GARP Application address of the GARP Application associated with the state machine.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

12.10.4.5 sLeaveAll

A GARP PDU, formatted as defined in 12.11.1, is transmitted. The PDU shall be formatted such that, for each Attribute Type associated with the GARP Application:

a) The PDU contains a Message (12.11.1.2) which carries an Attribute Type (12.11.2.2) that specifies the Attribute Type concerned;

b) The Message contains a LeaveAll Attribute (12.11.1.2).

The PDU shall be transmitted using, as the destination MAC address, the GARP Application address of the GARP Application associated with the state machine.

The sLeaveAll action also gives rise to a LeaveAll event against all instances of the combined Applicant/

Registrar state machine, the Applicant Only state machine and the Simple Applicant state machine associ-ated with the GARP Application.

12.10.4.6 Start leavetimer

Causes leavetimer to be started, in accordance with the definition of the timer in 12.10.2.2.

12.10.4.7 Stop leavetimer Causes leavetimer to be stopped.

12.10.4.8 Start leavealltimer

Causes leavealltimer to be started, in accordance with the definition of the timer in 12.10.2.3.

12.10.4.9 IndJoin

When an instance of the Registrar state machine makes a transition from the LV or MT state to the IN state, the IndJoin action causes a GID_Join.indication primitive to be issued to the GID Service User, indicating the Attribute instance corresponding to the state machine concerned.

12.10.4.10 IndLeave

When an instance of the Registrar state machine makes a transition from the LV state to the MT state, the IndLeave action causes a GID_Leave.indication primitive to be issued to the GID Service User, indicating the Attribute instance corresponding to the state machine concerned.

12.10.4.11 Failure to register

Each GARP Participant maintains a count of the number of times that it has received a registration request, but has failed to register the attribute concerned due to lack of space in the Filtering Database to record the registration. The value of this count may be examined by management.

NOTE—Further action to be taken on such events is a matter for implementation choice.