1)Description: Defined GRE key value to a GRE interface corrupted to the
outgoing packets when csum value is true
2)Version: ovs-vswitchd (Open vSwitch) 1.4.90, Compiled Dec 28 2011
15:07:59, OpenFlow versions 0x1:0x1
3)Git commit number: git rev-parse HEAD
deedf7e78b249383d6f7b385f9d04e08e33d0e3f
4)Local Patches: None
5)/proc/version: Linux version 2.6.38-8-server (buildd@allspice) (gcc
version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu3) ) #42-Ubuntu SMP
6)The machine is a virtual machine running on VMware ESXi Hypervisor
7)uname -a: Linux ovs1 2.6.38-8-server #42-Ubuntu SMP Mon Apr 11
03:49:04 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
8)csum=false, defined gre key value is passed correctly to the GRE
headers (check out the attached file "csum_disabled_proper_gre_value.txt")
Port "gre100_2"
tag: 2830
Interface "gre100_2"
type: gre
options: {csum="false", key="0x0000ffff",
remote_ip="147.102.13.59"}
9)csum=true, defined gre key value is corrupted to the GRE headers
(check out the attached file "csum_enabled_corrupted_gre_value.txt")
Port "gre100_2"
tag: 2830
Interface "gre100_2"
type: gre
options: {csum="false", key="0x0000ffff",
remote_ip="147.102.13.59"}
10)Details: As you can see from the above port configuration in both
cases the key value is the same. From the packet capture you can see
that when the csum
flag is set the gre key value is 0x3077ffff instead of 0x0000ffff.
Moreover i noticed that the ckecksum value is 0x0000 [correct] that does
not make sense.
No. Time Source Destination Protocol Info
34 2.068727 5a:be:c9:82:57:ec Broadcast ARP Who
has 192.168.29.60? Tell 192.168.29.59
Frame 34: 84 bytes on wire (672 bits), 84 bytes captured (672 bits)
Arrival Time: Jan 20, 2012 18:09:50.847130000 GTB Standard Time
Epoch Time: 1327075790.847130000 seconds
[Time delta from previous captured frame: 0.000240000 seconds]
[Time delta from previous displayed frame: 0.000240000 seconds]
[Time since reference or first frame: 2.068727000 seconds]
Frame Number: 34
Frame Length: 84 bytes (672 bits)
Capture Length: 84 bytes (672 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:gre:eth:arp]
[Coloring Rule Name: ARP]
[Coloring Rule String: arp]
Ethernet II, Src: Cisco_63:e4:00 (00:08:7c:63:e4:00), Dst: Giga-Byt_85:62:f4
(00:1f:d0:85:62:f4)
Destination: Giga-Byt_85:62:f4 (00:1f:d0:85:62:f4)
Address: Giga-Byt_85:62:f4 (00:1f:d0:85:62:f4)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Source: Cisco_63:e4:00 (00:08:7c:63:e4:00)
Address: Cisco_63:e4:00 (00:08:7c:63:e4:00)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Type: IP (0x0800)
Internet Protocol, Src: 147.102.22.84 (147.102.22.84), Dst: 147.102.13.59
(147.102.13.59)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 70
Identification: 0x99a1 (39329)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 63
Protocol: GRE (47)
Header checksum: 0x578c [correct]
[Good: True]
[Bad: False]
Source: 147.102.22.84 (147.102.22.84)
Destination: 147.102.13.59 (147.102.13.59)
Generic Routing Encapsulation (Transparent Ethernet bridging)
Flags and version: 0x2000
0... .... .... .... = No checksum
.0.. .... .... .... = No routing
..1. .... .... .... = Key
...0 .... .... .... = No sequence number
.... 0... .... .... = No strict source route
.... .000 .... .... = Recursion control: 0
.... .... 0000 0... = Flags: 0
.... .... .... .000 = Version: 0
Protocol Type: Transparent Ethernet bridging (0x6558)
GRE Key: 0x0000ffff
Ethernet II, Src: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec), Dst: Broadcast
(ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Address: Broadcast (ff:ff:ff:ff:ff:ff)
.... ...1 .... .... .... .... = IG bit: Group address
(multicast/broadcast)
.... ..1. .... .... .... .... = LG bit: Locally administered address
(this is NOT the factory default)
Source: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec)
Address: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..1. .... .... .... .... = LG bit: Locally administered address
(this is NOT the factory default)
Type: ARP (0x0806)
Address Resolution Protocol (request)
Hardware type: Ethernet (0x0001)
Protocol type: IP (0x0800)
Hardware size: 6
Protocol size: 4
Opcode: request (0x0001)
[Is gratuitous: False]
Sender MAC address: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec)
Sender IP address: 192.168.29.59 (192.168.29.59)
Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00)
Target IP address: 192.168.29.60 (192.168.29.60)
0000 00 1f d0 85 62 f4 00 08 7c 63 e4 00 08 00 45 00 ....b...|c....E.
0010 00 46 99 a1 40 00 3f 2f 57 8c 93 66 16 54 93 66 .F..@.?/W..f.T.f
0020 0d 3b 20 00 65 58 00 00 ff ff ff ff ff ff ff ff .; .eX..........
0030 5a be c9 82 57 ec 08 06 00 01 08 00 06 04 00 01 Z...W...........
0040 5a be c9 82 57 ec c0 a8 1d 3b 00 00 00 00 00 00 Z...W....;......
0050 c0 a8 1d 3c ...<
No. Time Source Destination Protocol Info
49 2.465473 5a:be:c9:82:57:ec Broadcast ARP Who
has 192.168.29.60? Tell 192.168.29.59
Frame 49: 88 bytes on wire (704 bits), 88 bytes captured (704 bits)
Arrival Time: Jan 20, 2012 18:32:26.714251000 GTB Standard Time
Epoch Time: 1327077146.714251000 seconds
[Time delta from previous captured frame: 0.000286000 seconds]
[Time delta from previous displayed frame: 0.000286000 seconds]
[Time since reference or first frame: 2.465473000 seconds]
Frame Number: 49
Frame Length: 88 bytes (704 bits)
Capture Length: 88 bytes (704 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:gre:eth:arp]
[Coloring Rule Name: ARP]
[Coloring Rule String: arp]
Ethernet II, Src: Cisco_63:e4:00 (00:08:7c:63:e4:00), Dst: Giga-Byt_85:62:f4
(00:1f:d0:85:62:f4)
Destination: Giga-Byt_85:62:f4 (00:1f:d0:85:62:f4)
Address: Giga-Byt_85:62:f4 (00:1f:d0:85:62:f4)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Source: Cisco_63:e4:00 (00:08:7c:63:e4:00)
Address: Cisco_63:e4:00 (00:08:7c:63:e4:00)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address
(factory default)
Type: IP (0x0800)
Internet Protocol, Src: 147.102.22.84 (147.102.22.84), Dst: 147.102.13.59
(147.102.13.59)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 74
Identification: 0xfc4a (64586)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 63
Protocol: GRE (47)
Header checksum: 0xf4de [correct]
[Good: True]
[Bad: False]
Source: 147.102.22.84 (147.102.22.84)
Destination: 147.102.13.59 (147.102.13.59)
Generic Routing Encapsulation (Transparent Ethernet bridging)
Flags and version: 0xa000
1... .... .... .... = Checksum
.0.. .... .... .... = No routing
..1. .... .... .... = Key
...0 .... .... .... = No sequence number
.... 0... .... .... = No strict source route
.... .000 .... .... = Recursion control: 0
.... .... 0000 0... = Flags: 0
.... .... .... .000 = Version: 0
Protocol Type: Transparent Ethernet bridging (0x6558)
Checksum: 0x0000 [correct]
Offset: 0
GRE Key: 0x3077ffff
Ethernet II, Src: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec), Dst: Broadcast
(ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Address: Broadcast (ff:ff:ff:ff:ff:ff)
.... ...1 .... .... .... .... = IG bit: Group address
(multicast/broadcast)
.... ..1. .... .... .... .... = LG bit: Locally administered address
(this is NOT the factory default)
Source: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec)
Address: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..1. .... .... .... .... = LG bit: Locally administered address
(this is NOT the factory default)
Type: ARP (0x0806)
Address Resolution Protocol (request)
Hardware type: Ethernet (0x0001)
Protocol type: IP (0x0800)
Hardware size: 6
Protocol size: 4
Opcode: request (0x0001)
[Is gratuitous: False]
Sender MAC address: 5a:be:c9:82:57:ec (5a:be:c9:82:57:ec)
Sender IP address: 192.168.29.59 (192.168.29.59)
Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00)
Target IP address: 192.168.29.60 (192.168.29.60)
0000 00 1f d0 85 62 f4 00 08 7c 63 e4 00 08 00 45 00 ....b...|c....E.
0010 00 4a fc 4a 40 00 3f 2f f4 de 93 66 16 54 93 66 .J.J@.?/...f.T.f
0020 0d 3b a0 00 65 58 00 00 00 00 30 77 ff ff ff ff .;..eX....0w....
0030 ff ff ff ff 5a be c9 82 57 ec 08 06 00 01 08 00 ....Z...W.......
0040 06 04 00 01 5a be c9 82 57 ec c0 a8 1d 3b 00 00 ....Z...W....;..
0050 00 00 00 00 c0 a8 1d 3c .......<
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss