Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Wed Aug 23, 2017 8:47 am


Internet Protocol, Transport Control Protocol, Network protocols, Routing, Routers, IP aliases, Routes, Ethernet

Author Message
debuser
  Post  Post subject: FreeBSD em driver overwrites incoming vlan tagged frames 802.1p priority field  |  Posted: Wed Nov 21, 2012 10:59 am

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
 

FreeBSD em driver overwrites incoming vlan tagged frames 802.1p priority field

Code:
# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=20db<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:07:e9:a5:9b:fa
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
# tcpdump -nni em0 -ve -l | grep --color ', p '
tcpdump: WARNING: em0: no IPv4 address assigned
tcpdump: listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes
15:51:50.654610 00:07:e9:a5:9b:fa > 2c:21:72:c6:c1:88, ethertype 802.1Q (0x8100), length 190: vlan 10, p 0, ethertype IPv4, (tos 0x10, ttl 64, id 22972, offset 0, flags [DF], proto TCP (6), length 172)
15:51:50.658896 2c:21:72:c6:c1:88 > 01:00:5e:00:00:05, ethertype 802.1Q (0x8100), length 98: vlan 10, p 0, ethertype IPv4, (tos 0xc0, ttl 1, id 40899, offset 0, flags [none], proto OSPF (89), length 80)
15:51:50.685883 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 60: vlan 10, p 0, ethertype IPv4, (tos 0x0, ttl 114, id 17349, offset 0, flags [DF], proto TCP (6), length 40)
15:51:50.808874 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 60: vlan 10, p 0, ethertype IPv4, (tos 0x0, ttl 114, id 17362, offset 0, flags [DF], proto TCP (6), length 40)
15:51:50.816865 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 60: vlan 10, p 0, ethertype IPv4, (tos 0x0, ttl 114, id 17363, offset 0, flags [DF], proto TCP (6), length 40)


All packets received by the FreeBSD kernel from the em0 card have the vlan priority 802.1p field set to 0 (vlan 10, p 0).

Disabling vlan hardware tagging on em0, shows the actual priority of the frames:
Code:
# ifconfig em0 -vlanhwtag

# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=20cb<RXCSUM,TXCSUM,VLAN_MTU,POLLING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:07:e9:a5:9b:fa
        media: Ethernet autoselect (1000baseTX <full-duplex>)
        status: active
# tcpdump -nni em0 -ve -l | grep --color ', p '
tcpdump: WARNING: em0: no IPv4 address assigned
tcpdump: listening on em0, link-type EN10MB (Ethernet), capture size 65535 bytes
15:58:00.635855 00:07:e9:a5:9b:fa > 2c:21:72:c6:c1:88, ethertype 802.1Q (0x8100), length 190: vlan 10, p 0, ethertype IPv4, (tos 0x10, ttl 64, id 25387, offset 0, flags [DF], proto TCP (6), length 172)
15:58:00.668627 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 60: vlan 10, p 2, ethertype IPv4, (tos 0x0, ttl 114, id 44052, offset 0, flags [DF], proto TCP (6), length 40)
15:58:00.842601 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 60: vlan 10, p 2, ethertype IPv4, (tos 0x0, ttl 114, id 44065, offset 0, flags [DF], proto TCP (6), length 40)
15:58:01.003578 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 94: vlan 10, p 2, ethertype IPv4, (tos 0x0, ttl 114, id 44073, offset 0, flags [DF], proto TCP (6), length 76)
15:58:01.528516 2c:21:72:c6:c1:88 > 00:07:e9:a5:9b:fa, ethertype 802.1Q (0x8100), length 81: vlan 10, p 2, ethertype IPv4, (tos 0x0, ttl 254, id 59756, offset 0, flags [none], proto UDP (17), length 63)



Priority 2 == 010 which means "Excellent Effort" (http://en.wikipedia.org/wiki/IEEE_P802.1p).





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "FreeBSD em driver overwrites incoming vlan tagged frames 802.1p priority field"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. FreeBSD - Adding VLAN Tagged subinterface using ifconfig

admin

0

7257

Mon Aug 19, 2013 10:44 am

admin View the latest post

There are no new unread posts for this topic. Linux adding and removing vlan tagged interfaces

mandrei99

0

18254

Wed Aug 28, 2013 8:19 am

mandrei99 View the latest post

There are no new unread posts for this topic. VMware ESX 3.5 and ESX/ESXi 4.x: Increasing MTU on vSwitch to accept Jumbo frames

mandrei99

0

456

Thu Nov 21, 2013 11:28 am

mandrei99 View the latest post

There are no new unread posts for this topic. ERROR: trying to remove VLAN -:791:- error: Invalid argument

admin

0

951

Tue May 12, 2015 6:07 am

admin View the latest post

There are no new unread posts for this topic. FreeBSD PF supported icmp types

admin

0

1136

Fri Jan 28, 2011 9:15 am

admin View the latest post

There are no new unread posts for this topic. FreeBSD - multiple routing tables

mandrei99

0

4820

Wed Aug 28, 2013 8:40 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD: How to list IPv6 neighbors

mandrei99

0

1941

Mon Oct 06, 2014 10:00 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD show network interface statistics

mandrei99

0

2161

Wed Sep 25, 2013 9:30 am

mandrei99 View the latest post

There are no new unread posts for this topic. Set up FTP PROXY via command line in Linux/FreeBSD

mandrei99

0

15229

Tue Jan 20, 2015 5:01 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD tcpdump on enc0 doesn't show any traffic

mandrei99

0

1432

Fri Jun 21, 2013 8:54 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO