Skip to contentSkip to conversation

Configure traffic class to bringup DCB in back-to-back setup

DISCUSSION ayuj 2 participants 3 messages Jul 13, 2016 – Jul 14, 2016

Subsystems (2)
lore
Share & tools
lore

ayuj

author
#0 lore raw

I just checked TLV's. Below are the details:

OS :- CentOS 7.2
kernel 3.10.0-327.el7.x86_64
lldpad:- lldpad v0.9.46
dcbtool:- v0.9.46
ixgbe :- ixgbe-4.3.15

steps followed:-

# modporbe ixgbe
# service lldpad start 
    Redirecting to /bin/systemctl start  lldpad.service
# service lldpad status
Redirecting to /bin/systemctl status  lldpad.service
● lldpad.service - Link Layer Discovery Protocol Agent Daemon.
   Loaded: loaded (/usr/lib/systemd/system/lldpad.service; disabled; vendor
preset: disabled)
   Active: active (running) since Tue 2016-07-05 05:49:12 EDT; 1s ago
 Main PID: 133737 (lldpad)
   CGroup: /system.slice/lldpad.service
           └─133737 /usr/sbin/lldpad -t
Jul 05 05:49:12 localhost.localdomain systemd[1]: Started Link Layer
Discovery Protocol Agent Daemon..
Jul 05 05:49:12 localhost.localdomain systemd[1]: Starting Link Layer

Discovery Protocol Agent Daemon....

lldptool -t -i p3p2 -n
Chassis ID TLV

	MAC: 00:1b:21:bb:2e:da
Port ID TLV
	MAC: 00:1b:21:bb:2e:da
Time to Live TLV
	120
IEEE 8021QAZ ETS Configuration TLV
	 Willing: yes
	 CBS: not supported
	 MAX_TCS: 8
	 PRIO_MAP: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 
	 TC Bandwidth: 0% 0% 0% 0% 0% 0% 0% 0% 
	 TSA_MAP: 0:strict 1:strict 2:strict 3:strict 4:strict 5:strict 6:strict

7:strict
IEEE 8021QAZ PFC TLV
Willing: yes
MACsec Bypass Capable: no
PFC capable traffic classes: 8
PFC enabled: none
End of LLDPDU TLV

Please help me in configuring traffic classes. I want to bringup DCB setup in a back-to-back senario.

#1 lore raw
Quoted 2 lines · ayuj

I just checked TLV's. Below are the details:

OK so not really a netdev discussion seeing its just a user space protocol setup issue. Going forward probably drop netdev and add intel-wired-lan.

Quoted 49 lines

OS :- CentOS 7.2
kernel 3.10.0-327.el7.x86_64
lldpad:- lldpad v0.9.46
dcbtool:- v0.9.46
ixgbe :- ixgbe-4.3.15

steps followed:-

# modporbe ixgbe
# service lldpad start 
    Redirecting to /bin/systemctl start  lldpad.service
# service lldpad status
Redirecting to /bin/systemctl status  lldpad.service
? lldpad.service - Link Layer Discovery Protocol Agent Daemon.
   Loaded: loaded (/usr/lib/systemd/system/lldpad.service; disabled; vendor
preset: disabled)
   Active: active (running) since Tue 2016-07-05 05:49:12 EDT; 1s ago
 Main PID: 133737 (lldpad)
   CGroup: /system.slice/lldpad.service
           ??133737 /usr/sbin/lldpad -t
Jul 05 05:49:12 localhost.localdomain systemd[1]: Started Link Layer
Discovery Protocol Agent Daemon..
Jul 05 05:49:12 localhost.localdomain systemd[1]: Starting Link Layer

Discovery Protocol Agent Daemon....

lldptool -t -i p3p2 -n
Chassis ID TLV

	MAC: 00:1b:21:bb:2e:da
Port ID TLV
	MAC: 00:1b:21:bb:2e:da
Time to Live TLV
	120
IEEE 8021QAZ ETS Configuration TLV
	 Willing: yes
	 CBS: not supported
	 MAX_TCS: 8
	 PRIO_MAP: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 
	 TC Bandwidth: 0% 0% 0% 0% 0% 0% 0% 0% 
	 TSA_MAP: 0:strict 1:strict 2:strict 3:strict 4:strict 5:strict 6:strict

7:strict
IEEE 8021QAZ PFC TLV
Willing: yes
MACsec Bypass Capable: no
PFC capable traffic classes: 8
PFC enabled: none
End of LLDPDU TLV

Quoted 3 lines

Please help me in configuring traffic classes. I want to bringup DCB setup in a back-to-back senario.

So at the moment it appears to be configured to use 802.1QAZ spec which superseded the older spec even though lldpad supports both. Note the tool itself really requires some spec knowledge to use correctly. The spec to read is 802.1Q.

To configure it back-to-back (typical scenario is connected to a DCB enabled switch where your administrator would setup the switch and this would autoneg just fine) the servers need to be setup manually.

Perhaps reading if you haven't already the man page for lldptool and lldptool-ets, lldptool-pfc would help. From the ets man page this should kick things off,

#lldptool -T -i eth2 -V ETS-CFG \
          tsa=0:ets,1:ets,2:ets,3:ets,4:ets,5:ets,6:ets,7:ets \
          up2tc=0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7 \
          tcbw=12,12,12,12,13,13,13,13
#lldptool -T -i eth2 -V ETS-REC \
           tsa=0:ets,1:ets,2:ets,3:ets,4:ets,5:ets,6:ets,7:ets \
           up2tc=0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7 \
           tcbw=12,12,12,12,13,13,13,13

Thanks,
John

author
#2 lore raw
Quoted 18 lines · John Fastabend <john.fastabend <at> gmail.com> writes:

So at the moment it appears to be configured to use 802.1QAZ spec which superseded the older spec even though lldpad supports both. Note the tool itself really requires some spec knowledge to use correctly. The spec to read is 802.1Q.

To configure it back-to-back (typical scenario is connected to a DCB enabled switch where your administrator would setup the switch and this would autoneg just fine) the servers need to be setup manually.

Perhaps reading if you haven't already the man page for lldptool and lldptool-ets, lldptool-pfc would help. From the ets man page this should kick things off,

#lldptool -T -i eth2 -V ETS-CFG \
          tsa=0:ets,1:ets,2:ets,3:ets,4:ets,5:ets,6:ets,7:ets \
          up2tc=0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7 \
          tcbw=12,12,12,12,13,13,13,13
Quoted 9 lines
#lldptool -T -i eth2 -V ETS-REC \
           tsa=0:ets,1:ets,2:ets,3:ets,4:ets,5:ets,6:ets,7:ets \
           up2tc=0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7 \
           tcbw=12,12,12,12,13,13,13,13

Thanks,
John

Hi John,

I have gone through lldptool and lldptool-ets man pages. My query is how to categorize traffic.

My aim is to allocate bandwidth to different type of traffic(may be based on port or protocol) using DCB( ETS/PFC) functionality.

Thanks
-Ayuj