Я не смог установить биты PCP соответственно. < /p>
OS Fedora release 38, "Server Edition", NetworkManager,
eno2 ethernet eno2
eno2.814 vlan eno2.814
< /code>
ip -d link show eno2
3: eno2:
mtu 1600 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether ac:16:2d:72:3f:fd brd ff:ff:ff:ff:ff:ff promiscuity 0 allmulti 0 minmtu 60 maxmtu 9000 addrgenmode none numtxqueues 5 numrxqueues 5 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536 parentbus pci parentdev 0000:03:00.1
altname enp3s0f1
< /code>
ip -d link show eno2.814
10: eno2.814@eno2:
mtu 1600 qdisc pfifo state UP mode DEFAULT group default qlen 1000
link/ether ac:16:2d:72:3f:fd brd ff:ff:ff:ff:ff:ff promiscuity 0 allmulti 0 minmtu 0 maxmtu 65535
vlan protocol 802.1Q id 814
ingress-qos-map { 1:1 2:2 3:3 4:4 5:5 6:6 7:7 }
egress-qos-map { 1:1 2:2 3:3 4:4 5:5 6:6 7:7 } addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 tso_max_size 65536 tso_max_segs 65535 gro_max_size 65536
< /code>
cat /proc/net/vlan/eno2.814
eno2.814 VID: 814 REORDER_HDR: 0 dev->priv_flags: 81021
total frames received 294
total bytes received 21846
Broadcast/Multicast Rcvd 0
total frames transmitted 271
total bytes transmitted 23846
Device: eno2
INGRESS priority mappings: 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7
EGRESS priority mappings: 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7
< /code>
Ping command to send 8 requests:
for pcp in 0x00 0x20 0x40 0x60 0x80 0xA0 0xC0 0xE0; do ping 192.168.22.3 -w2 -c1 -Q $pcp ; done
< /code>
Sent packets are captured on outgoing interface with "tshark -i eno2 -f 'icmp and dst host 192.168.22.3' -V".
grep for L2 and L3 CoS fields in headres shows intended DSCP values there but '000' PCP "Priority" values:
000. .... .... .... = Priority: Best Effort (default) (0)
0000 00.. = Differentiated Services Codepoint: Default (0)
000. .... .... .... = Priority: Best Effort (default) (0)
0010 00.. = Differentiated Services Codepoint: Class Selector 1 (8)
000. .... .... .... = Priority: Best Effort (default) (0)
0100 00.. = Differentiated Services Codepoint: Class Selector 2 (16)
000. .... .... .... = Priority: Best Effort (default) (0)
0110 00.. = Differentiated Services Codepoint: Class Selector 3 (24)
000. .... .... .... = Priority: Best Effort (default) (0)
1000 00.. = Differentiated Services Codepoint: Class Selector 4 (32)
000. .... .... .... = Priority: Best Effort (default) (0)
1010 00.. = Differentiated Services Codepoint: Class Selector 5 (40)
000. .... .... .... = Priority: Best Effort (default) (0)
1100 00.. = Differentiated Services Codepoint: Class Selector 6 (48)
000. .... .... .... = Priority: Best Effort (default) (0)
1110 00.. = Differentiated Services Codepoint: Class Selector 7 (56)
< /code>
What I've tried that haven't helped:
swithing off reorder_hdr
ip link set eno2.814 type vlan reorder_hdr off
< /code>
Setting vlan egress-qos-map to map kernel values(wich IMHO should be already set equal to IP precedence values of the ping utility) to PCP:
ip link set eno2.814 type vlan egress-qos-map 0:0 1:1 2:2 3:3 4:4 5:5 6:6 7:7
< /code>
Setting outgoing interface qdisc. I've created eno2.814 on eno2 with nmtui and no qdisc was set by default. So I've thought it could be the problem and tried to set the queues and qdisc(s) manually
ip link set eno2 numtxqueues 8 numrxqueues 8
tc qdisc add dev eno2.814 root handle 1: mq -- RTNETLINK answers: Operation not supported
tc qdisc add dev eno2.814 root handle 1: mqprio -- Error: Specified qdisc kind is unknown.
tc qdisc add dev eno2.814 root handle 1: multiq -- Error: Specified qdisc kind is unknown.
tc qdisc delete dev eno2.814 root
tc qdisc add dev eno2.814 root handle 1: pfifo_fast
Подробнее здесь: https://stackoverflow.com/questions/796 ... to-ip-prec
Как отправить Ping через интерфейс VLAN с битами 802.1q PCP, установленные равной IP-предварительной части IP-заголовка ⇐ Linux
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Каковы различия между предварительной нагрузкой и предварительной фиксацией в HTML?
Anonymous » » в форуме Html - 0 Ответы
- 23 Просмотры
-
Последнее сообщение Anonymous
-