I am using ROS 6.1 with nv2 proprietary protocol frame-priority QoS feature. Feature is tested and it’s working just fine.
Now, let’s proceed to my problem.
In order to increase reliability of PPPoE session, I need to match the following packets:
1. Whole PPPoE-Discovery protocol (Ethertype 0x8863)
2. Only part of PPPoE-Session protocol (Ethertype 0x8864)
I am stuck in matching that “part” of 0x8864 protocol. Basically, I need to match packets from PPP LCP, PPP IPCP and PPP CHAP protocols. Especially the PPP LCP protocol which maintains the connection by using small keepalive packets.
Some packets will originate from the router itself (output) and some packets will be pass through the router (forward). Some packets can be matched by bridge filter while others can be matched by IP firewall mangle rules. It really doesn’t matter. Direction also doesn’t matter to me right now. The only thing that matters is that someone show me how can I match PPP protocol values.
Please take a moment to review attached PDF.
I have explained everything in there.
p.s. Here is what I’ve got so far (it is bad because the second rule matches the whole PPP protocol):
Code: Select all
/interface bridge filter
# PADI, PADO, PADR, PADS, PADT
add chain=forward action=set-priority new-priority=7 passthrough=yes mac-protocol=pppoe-discovery
# PPP LCP, PPP CHAP, PPP IPCP – BAD RULE of course, matches everything..
add chain=forward action=set-priority new-priority=7 passthrough=yes mac-protocol=pppoe