Re: [PATCH] 802.1p priority (fixed)

From: Brooks Davis (brooks_at_one-eyed-alien.net)
Date: 01/22/05

  • Next message: Boris Kovalenko: "Re: [PATCH] 802.1p priority (fixed)"
    Date: Sat, 22 Jan 2005 12:33:47 -0800
    To: Jeremie Le Hen <jeremie@le-hen.org>
    
    
    

    On Sat, Jan 22, 2005 at 04:25:46PM +0100, Jeremie Le Hen wrote:
    > > 2. Mark 802.1p at PF/IPFW level. But we shold foresee a keyword to trust
    > > application level information or override it. For example
    > > ipfw add 802.1p trust 6 on any to any ssh <-- this trust application
    > > level information and set 802.1p to 6 if it is omitted
    > > ipfw add 802.1p override 6 on any to any ssh <-- this silently set
    > > 802.1p == 6, regardless of application
    >
    > I'm not a 802.1q guru, but I think it would be relevant to be able to
    > match against the 802.1p, at least when firewalling on layer 2 (bridging).
    >
    > Furthermore I would like to point out that we are going to introduce an
    > extremely new feature into ipfw which will allow us to *modify* a packet.
    > AFAIK, this is not possible for the moment, except when diverting to a
    > socket. What I mean is that if I can set the 802.1p header then why
    > wouldn't I be able to set the TOS value ? I think we should carefully
    > choose a flexible way to extend ipfw syntax if we choose to go this way.

    The nice thing about ipfw2 is that extension is easy. I envision that
    we won't actually touch the packet at all in the 801.1p case and will
    just add, modify, or delete a tag that the ethernet layer uses when
    sending. Setting TOS values could be done in place since we have the
    header at that point.

    > Having the possibility to test and set the 802.1p or TOS values
    > separately would avoid making a "trust"/"override" subtlety and will
    > obviously make it more flexible.

    I agree on this point. The one thing to be careful of is that 802.1p
    priorities and TOS values work rather differently in that TOS values fit
    in to an existing field of the packet and 802.1p values require
    modifications to the header and adding data between the header and the
    real body, possiably with a resuling reduction in MTU (though what
    you're doing trying to use 802.1p priority with crappy nic I don't know
    :-).

    -- Brooks

    -- 
    Any statement of the form "X is the one, true Y" is FALSE.
    PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
    
    



  • Next message: Boris Kovalenko: "Re: [PATCH] 802.1p priority (fixed)"

    Relevant Pages

    • Re: Security Warning
      ... >>> To comply with the TOS I have set up a genuine Yahoo! ... Required Header lines ... The "From" line contains the electronic mailing address of the ... You are /required/ to provide a 'From' header, ...
      (uk.rec.cycling)
    • Re: [PATCH] 802.1p priority (fixed)
      ... The one thing to be careful of is that 802.1p ... > priorities and TOS values work rather differently in that TOS values fit ... > modifications to the header and adding data between the header and the ... There are already 3 bits reserved for priority near the 802.1q ...
      (freebsd-net)
    • Re: [PATCH] 802.1p priority (fixed)
      ... >> priorities and TOS values work rather differently in that TOS values fit ... >> modifications to the header and adding data between the header and the ... use a vlan tag on the packet. ... sense to modify the TOS bits directly in the firewall, ...
      (freebsd-net)
    • Re: iptables precedence bits
      ... But iptables only allows to set those 5 mnemonics. ... to set one of the top three TOS bits of IP header. ... TOS bits i want to set third bit. ...
      (comp.os.linux.networking)
    • RE: Transfer a sending packet to upper TCP/IP protocol layer in IM
      ... If the IPv6 address can be resolved, ... IPv4 header will be larger than the MTU. ... After prepending IPv4 header and UDP header to the original IPv6 packet, ...
      (microsoft.public.development.device.drivers)