LACP not prioritizing desired ports

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
12

LACP not prioritizing desired ports

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
LACP not prioritizing desired ports
LACP not prioritizing desired ports
2024-03-02 11:45:00 - last edited 2024-03-08 01:27:17
Tags: #LAG #LACP
Model: TL-SG3428XMP  
Hardware Version: V3
Firmware Version: 3.0.2 Build 20221130 Rel.57838

I’ve got two 10 GbE fiber links and one 1 GbE Cat6 link between switch A (TL-SG3428XMP 3.0, 3.0.2 Build 20221130 Rel.57838) and switch B (TL-SG3210XHP-M2 2.0, firmware firmware 2.0.0 Build 20220322 Rel.62255). I want to use both the fiber links and fall back to the Cat6, so I’ve configured exactly one LACP group (ID 2, chosen at random) on each switch, containing the fiber ports at the default priority of 32768 and the Cat6 port at 65000. Switch A is the active side.

 

Whenever switch B is rebooted, the 1 GbE link is what comes up. The only entry on the LAG Table page is the Cat6 port, and the LACP Config page only shows LAG2 on that port (on both sides). If I unplug the Cat6 cable, both fiber ports become active (reflected on the LAG Table and LACP Config pages), and plugging the Cat6 cable back in later doesn’t change anything.

 

My understanding is that a lower number denotes a higher priority. Is there something I need to change in order to make it work correctly? I don’t see why it should be using the Cat6 link except as a fallback.

  0      
  0      
#1
Options
2 Accepted Solutions
Re:LACP not prioritizing desired ports -Solution
2024-03-07 01:26:27 - last edited 2024-03-08 01:27:17

Hi @shivjm 

Thanks for posting in our business forum.

shivjm wrote

@Clive_A I can see that the LAG Table shows only the 1 GbE link whenever I restart switch B (see my screenshots from earlier) and I’ve verified with iperf3 that it is in fact using that link. I can also see the LAG Table update when I unplug the copper link, like in this screenshot from the passive side:

 

 

 

And I can see the difference in speed in iperf3 in that situation. Note that if I make the fiber links work like this and then plug the copper link back in, it doesn’t revert to using the copper link; it stays on the fiber links.

So I confirmed this with the senior engineers, don't LAG two different ports of link speed at the same time. It does not work. You can set it but it won't take effect. There is a potential that the MAC address table would go in error.

So, if you set a LAG group, set the same link speed ports in the same LAG group. Don't mix them up.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
Recommended Solution
  1  
  1  
#14
Options
Re:LACP not prioritizing desired ports -Solution
2024-03-07 13:18:04 - last edited 2024-03-08 01:27:27

  @shivjm 

 

The switches that do not allow me to activate LACP on LAGs with links of different speeds are actually CISCO small business switches. When I try to do that, and I have never tried that before your post, I get an error message complaining about it and the switch accepts only the 1G port as a LAG candidate. The 10G ports are droped from the candidate list.

Kris K
Recommended Solution
  1  
  1  
#16
Options
17 Reply
Re:LACP not prioritizing desired ports
2024-03-02 14:22:39

  @shivjm 

 

I might’ve misunderstand your posting, but here it goes.

 

A LAG with two links already offers redundancy and a third link is not really necessary. Also, you should not mix ports of different speeds in a single LAG and, actually, LACP should not allow you to do so. If you want to have that extra 1G copper link anyway, you can have it outside of the 10G LAG. That link together with the LAG will create a loop so you need to enable STP/RSTP to control the use of those links. Still, it would be a rather unusual configuration in my opinion.

Kris K
  0  
  0  
#2
Options
Re:LACP not prioritizing desired ports
2024-03-02 18:59:27

Thanks for the reply, @KJK. To be clear, I don’t want to combine the copper link with the fiber links, and I’m aware that two fiber links already offer redundancy. I just want to use the copper link as a fallback. My understanding from this part of the manual:

 

The port with higher priority in an LAG will be selected as the working port to forward data, and at most eight ports can work simultaneously.

 

Is that the copper link, whose port has a lower priority (65000), should only be used to forward data if the fiber ports (with a priority of 32768) are malfunctioning. Instead, the copper link seems to be used first, possibly because it comes earlier in the list of ports, and only when I physically disconnect it are the fiber links used instead.

 

In other words, unless I’ve misunderstood what’s happening, LACP seems to recognize that they have different priorities, but not the significance of those priorities.

  0  
  0  
#3
Options
Re:LACP not prioritizing desired ports
2024-03-02 19:13:41

  @shivjm 

 

LACP manages the LAG only. If the copper link is not part of the LAG, the LACP settings do not apply to the copper link. You need to look at the STP/RSTP settings.

Kris K
  0  
  0  
#4
Options
Re:LACP not prioritizing desired ports
2024-03-03 09:11:54 - last edited 2024-03-03 09:12:32

  @KJK

 

I think we’re speaking at cross-purposes because I’m not using the right terminology; when you say LAG I understand that to mean a LAG negotiated by LACP (or a static LAG, but that doesn’t apply here), but I think you were talking about the LACP LAG. I have indeed put the copper and the fiber ports in the same LACP LAG because I want it to function as described in the manual:

 

One LACP LAG supports multiple member ports, but at most eight of them can work simultaneously, and the other member ports are backups. Using LACP protocol, the switches negotiate parameters and determine the working ports. When a working port
fails, the backup port with the highest priority will replace the faulty port and start to forward data.

 

I’m not trying to get LACP to negotiate a LAG containing links with mixed speeds. I want it to use the fiber ports, which have a higher priority, and re-negotiate if that fails so that the copper link is used instead.

  0  
  0  
#5
Options
Re:LACP not prioritizing desired ports
2024-03-03 11:06:30

  @shivjm 

 

My switches do not allow me to activate LACP on a LAG that contains links of different speeds. If your switches allow that, I do not really know how it works.

 

Re. the LACP feature you quote. I understand it that it applies to a LAG that contains more than 8 links.  

Kris K
  0  
  0  
#6
Options
Re:LACP not prioritizing desired ports
2024-03-04 05:52:14

Hi @shivjm

KJK was right partially about the statement on STP/RSTP.

Your description is not clear to me. 

So my question is you have three links altogether, 3 are grouped in one LACP group. Is this what you are saying? If yes, that seems to be fine. STP/RSTP is not needed. If they are not in the same LACP, you probably should reconsider KJK's proposal on STP.

 

Also, you might wanna take a look at your log.

 

Your statement on the priority is correct. Smaller numbers mean higher priority. In the following discussion, please paste with screenshots to illustrate your issues.

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  0  
  0  
#7
Options
Re:LACP not prioritizing desired ports
2024-03-04 10:42:26 - last edited 2024-03-04 10:44:56

Thanks for the clarifications, @Clive_A. Yes, they’re in one LACP group. Here’s switch A (the active side), where port 9 is 1 GbE and ports 27 & 28 are 10 GbE:

 

Here’s switch B (passive), where port 1 is 1 GbE and 9 & 10 are 10 GbE:

 

Is there anything specific I should look for in the logs? I see ‘Added new LACP Link Aggregation Group 2 by console’ and later these messages (I’ve preserved the UI’s reverse chronological order):

 

Te1/0/10 changed state to up.
Te1/0/9 changed state to up.
Tw1/0/1 changed state to up.

  0  
  0  
#8
Options
Re:LACP not prioritizing desired ports
2024-03-04 20:23:38 - last edited 2024-03-04 21:22:56

  @shivjm 

 

It is not from TP-Link, but this link may be helpful :)

 

https://www.cisco.com/assets/sol/sb/Switches_Emulators_v2_3_5_xx/help/250/index.html#page/tesla_250_olh/lacp_conf.html

 

Kris K
  1  
  1  
#9
Options
Re:LACP not prioritizing desired ports
2024-03-05 08:41:47 - last edited 2024-03-05 08:49:19

Hi @shivjm 

Thanks for posting in our business forum.
What is the result of show lacp internal and show etherchannel? Screenshot?

Best Regards! If you are new to the forum, please read: Howto - A Guide to Use Forum Effectively. Read Before You Post. Look for a model? Search your model NOW Official and Beta firmware. NEW features! Subscribe for the latest update!Download Beta Here☚ ☛ ★ Configuration Guide ★ ☚ ☛ ★ Knowledge Base ★ ☚ ☛ ★ Troubleshooting ★ ☚ ● Be kind and nice. ● Stay on the topic. ● Post details. ● Search first. ● Please don't take it for granted. ● No email confidentiality should be violated. ● S/N, MAC, and your true public IP should be mosaiced.
  0  
  0  
#10
Options
Re:LACP not prioritizing desired ports
2024-03-05 09:30:11

@Clive_A Here’s the output on switch A (the active side):

 

And switch B:

  0  
  0  
#11
Options

Information

Helpful: 0

Views: 1319

Replies: 17

Tags

LAG
LACP
Related Articles