Havard Eidnes
2014-04-04 15:25:29 UTC
Hi,
I just tried to use agr(4) for the first time on NetBSD, on a
host running NetBSD 1.6.3. It's coupled to a pair of Juniper
stacked switches upstream. Ifconfig on the host does not show
flags=<COLLECTING,DISTRIBUTING> for one of the interfaces:
agr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx>
enabled=0
agrport: bnx1, flags=0x3<COLLECTING,DISTRIBUTING>
agrport: bnx0, flags=0x0>
address: 00:1a:64:94:71:ce
...
(the "address" of agr0 is the address of bnx1, bnx0's address
ends in "cc".)
The Juniper switch says:
xx-sw2> show lacp interfaces ae4
Aggregated interface: ae4
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/0 Actor No No No No No Yes Fast Active
ge-0/0/0 Partner No No No No Yes Yes Slow Active
ge-1/0/0 Actor No No Yes Yes Yes Yes Fast Active
ge-1/0/0 Partner No No Yes Yes Yes Yes Slow Active
LACP protocol: Receive State Transmit State Mux State
ge-0/0/0 Current Slow periodic Detached
ge-1/0/0 Current Slow periodic Collecting distributing
{master:2}
xx-sw2>
Any clues to why the second link doesn't want to go active?
Both agrport interfaces are of course operationally "up".
I see outgoing frames on bnx0 which look like this:
15:16:08.495432 00:1a:64:94:71:cc (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 00:1a:64:94:71:cc (oui Unknown), System Priority 32768, Key 144, Port 1, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization]
0x0000: 8000 001a 6494 71cc 0090 8000 0001 0d00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 9, Port Priority 127
State Flags [Activity, Timeout, Aggregation]
0x0000: 007f 4c96 14ea d260 0005 007f 0009 0700
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
and incoming
17:20:42.207200 4c:96:14:ea:d2:67 (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 9, Port Priority 127
State Flags [Activity, Timeout, Aggregation]
0x0000: 007f 4c96 14ea d260 0005 007f 0009 0700
0x0010: 0000
Partner Information TLV (0x02), length 20
System 00:1a:64:94:71:cc (oui Unknown), System Priority 32768, Key 130, Port 1, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 8000 001a 6494 71cc 0082 8000 0001 3d00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
On bnx1 I see outgoing:
17:15:39.410278 00:1a:64:94:71:ce (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown
), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 00:1a:64:94:71:ce (oui Unknown), System Priority 32768, Key 144
, Port 2, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization, Collecting, Distr
ibuting]
0x0000: 8000 001a 6494 71ce 0090 8000 0002 3d00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 10, Port Priority 127
State Flags [Activity, Timeout, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 007f 4c96 14ea d260 0005 007f 000a 3f00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
and incoming
17:15:40.429185 4c:96:14:ea:d2:67 (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 10, Port Priority 127
State Flags [Activity, Timeout, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 007f 4c96 14ea d260 0005 007f 000a 3f00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 00:1a:64:94:71:ce (oui Unknown), System Priority 32768, Key 144, Port 2, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 8000 001a 6494 71ce 0090 8000 0002 3d00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
The output packet on bnx0 seems to have a different address
embedded than on bnx1 -- is that the problem? The Juniper box
uses the same value in the two announcements it sends.
I know too little about the 802.3ad protocol to tell...
Regards,
- Håvard
I just tried to use agr(4) for the first time on NetBSD, on a
host running NetBSD 1.6.3. It's coupled to a pair of Juniper
stacked switches upstream. Ifconfig on the host does not show
flags=<COLLECTING,DISTRIBUTING> for one of the interfaces:
agr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
capabilities=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx>
enabled=0
agrport: bnx1, flags=0x3<COLLECTING,DISTRIBUTING>
agrport: bnx0, flags=0x0>
address: 00:1a:64:94:71:ce
...
(the "address" of agr0 is the address of bnx1, bnx0's address
ends in "cc".)
The Juniper switch says:
xx-sw2> show lacp interfaces ae4
Aggregated interface: ae4
LACP state: Role Exp Def Dist Col Syn Aggr Timeout Activity
ge-0/0/0 Actor No No No No No Yes Fast Active
ge-0/0/0 Partner No No No No Yes Yes Slow Active
ge-1/0/0 Actor No No Yes Yes Yes Yes Fast Active
ge-1/0/0 Partner No No Yes Yes Yes Yes Slow Active
LACP protocol: Receive State Transmit State Mux State
ge-0/0/0 Current Slow periodic Detached
ge-1/0/0 Current Slow periodic Collecting distributing
{master:2}
xx-sw2>
Any clues to why the second link doesn't want to go active?
Both agrport interfaces are of course operationally "up".
I see outgoing frames on bnx0 which look like this:
15:16:08.495432 00:1a:64:94:71:cc (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 00:1a:64:94:71:cc (oui Unknown), System Priority 32768, Key 144, Port 1, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization]
0x0000: 8000 001a 6494 71cc 0090 8000 0001 0d00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 9, Port Priority 127
State Flags [Activity, Timeout, Aggregation]
0x0000: 007f 4c96 14ea d260 0005 007f 0009 0700
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
and incoming
17:20:42.207200 4c:96:14:ea:d2:67 (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 9, Port Priority 127
State Flags [Activity, Timeout, Aggregation]
0x0000: 007f 4c96 14ea d260 0005 007f 0009 0700
0x0010: 0000
Partner Information TLV (0x02), length 20
System 00:1a:64:94:71:cc (oui Unknown), System Priority 32768, Key 130, Port 1, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 8000 001a 6494 71cc 0082 8000 0001 3d00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
On bnx1 I see outgoing:
17:15:39.410278 00:1a:64:94:71:ce (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown
), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 00:1a:64:94:71:ce (oui Unknown), System Priority 32768, Key 144
, Port 2, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization, Collecting, Distr
ibuting]
0x0000: 8000 001a 6494 71ce 0090 8000 0002 3d00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 10, Port Priority 127
State Flags [Activity, Timeout, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 007f 4c96 14ea d260 0005 007f 000a 3f00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
and incoming
17:15:40.429185 4c:96:14:ea:d2:67 (oui Unknown) > 01:80:c2:00:00:02 (oui Unknown), ethertype Slow Protocols (0x8809), length 124: LACPv1, length 110
Actor Information TLV (0x01), length 20
System 4c:96:14:ea:d2:60 (oui Unknown), System Priority 127, Key 5, Port 10, Port Priority 127
State Flags [Activity, Timeout, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 007f 4c96 14ea d260 0005 007f 000a 3f00
0x0010: 0000
Partner Information TLV (0x02), length 20
System 00:1a:64:94:71:ce (oui Unknown), System Priority 32768, Key 144, Port 2, Port Priority 32768
State Flags [Activity, Aggregation, Synchronization, Collecting, Distributing]
0x0000: 8000 001a 6494 71ce 0090 8000 0002 3d00
0x0010: 0000
Collector Information TLV (0x03), length 16
Max Delay 0
0x0000: 0000 0000 0000 0000 0000 0000 0000
Terminator TLV (0x00), length 0 (=52)
0x0000: 0000 0000 0000 0000 0000 0000 0000 0000
0x0010: 0000 0000 0000 0000 0000 0000 0000 0000
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000
0x0030: 0000
The output packet on bnx0 seems to have a different address
embedded than on bnx1 -- is that the problem? The Juniper box
uses the same value in the two announcements it sends.
I know too little about the 802.3ad protocol to tell...
Regards,
- Håvard