POX can not handle PacketIn event forwarded by OVX

271 views
Skip to first unread message

Yuru Roy Shao

unread,
Feb 19, 2015, 4:24:58 PM2/19/15
to ovx-d...@googlegroups.com
Hi all,

I followed the tutorial (http://ovx.onlab.us/getting-started/tutorial/) to try OVX out. In 3.1.1), when creating the virtual network I specified a POX controller:

 $ python ovxctl.py -n createNetwork tcp:[POX-controller-IP]:10000 10.0.0.0 16 

The POX controller was running l2_learning. Everything looked good until I ran:

mininet> h_SEA_1 ping -c3 h_LAX_2

POX reported an error:

ERROR:core:Exception while handling Connection!PacketIn...
Traceback (most recent call last):
 File "/home/roy/SDN/pox/pox/lib/revent/revent.py", line 241, in raiseEventNoErrors
   return self.raiseEvent(event, *args, **kw)
 File "/home/roy/SDN/pox/pox/lib/revent/revent.py", line 291, in raiseEvent
   rv = event._invoke(handler, *args, **kw)
 File "/home/roy/SDN/pox/pox/lib/revent/revent.py", line 166, in _invoke
   return handler(self, *args, **kw)
 File "/home/roy/SDN/pox/pox/forwarding/l2_learning.py", line 153, in _handle_PacketIn
   flood()
 File "/home/roy/SDN/pox/pox/forwarding/l2_learning.py", line 121, in flood
   msg.data = event.ofp
 File "/home/roy/SDN/pox/pox/openflow/libopenflow_01.py", line 3578, in data
   assert data.is_complete
AssertionError

It seems that POX didn't recognize the data in PacketIn event. Is this a bug of OVX?

I'll appreciate if anyone could help. Thanks.


Best regards,
Roy

Marc De Leenheer

unread,
Feb 19, 2015, 4:37:52 PM2/19/15
to Yuru Roy Shao, ovx-d...@googlegroups.com
You want to tcpdump/wireshark the control channel to see what the packet_in looks like.


marc

--
You received this message because you are subscribed to the Google Groups "OpenVirteX-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ovx-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

esa...@gmail.com

unread,
Jul 23, 2016, 2:03:02 AM7/23/16
to OpenVirteX-discuss, yuru...@umich.edu
I have the same issue, here is the Packet In message:

No. Time Source Destination Protocol Length Info
3832 01:43:34.502752 00:00:00_00:01:01 Broadcast OF 1.0 128 of_packet_in

Frame 3832: 128 bytes on wire (1024 bits), 128 bytes captured (1024 bits)
Linux cooked capture
Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1)
Transmission Control Protocol, Src Port: 37912 (37912), Dst Port: 6633 (6633), Seq: 1901, Ack: 1925, Len: 60
Source port: 37912 (37912)
Destination port: 6633 (6633)
[Stream index: 11]
Sequence number: 1901 (relative sequence number)
[Next sequence number: 1961 (relative sequence number)]
Acknowledgement number: 1925 (relative ack number)
Header length: 32 bytes
Flags: 0x018 (PSH, ACK)
Window size value: 86
[Calculated window size: 86]
[Window size scaling factor: -1 (unknown)]
Checksum: 0xfe64 [validation disabled]
Options: (12 bytes)
[SEQ/ACK analysis]
OpenFlow (LOXI)
version: 1
type: OFPT_PACKET_IN (10)
length: 60
xid: 0
buffer_id: 4294967295
total_len: 42
in_port: 1
reason: OFPR_NO_MATCH (0)
Ethernet packet
Ethernet II, Src: 00:00:00_00:01:01 (00:00:00:00:01:01), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Source: 00:00:00_00:01:01 (00:00:00:00:01:01)
Type: ARP (0x0806)
Address Resolution Protocol (request)
Hardware type: Ethernet (1)
Protocol type: IP (0x0800)
Hardware size: 6
Protocol size: 4
Opcode: request (1)
[Is gratuitous: False]
Sender MAC address: 00:00:00_00:01:01 (00:00:00:00:01:01)
Sender IP address: 10.0.0.1 (10.0.0.1)
Target MAC address: 00:00:00_00:00:00 (00:00:00:00:00:00)
Target IP address: 10.0.0.2 (10.0.0.2)

Marc De Leenheer

unread,
Aug 15, 2016, 2:27:44 PM8/15/16
to esa...@gmail.com, OpenVirteX-discuss, yuru...@umich.edu
Packet in looks fine to me. Can you check what assertion is failing?

 File "/home/roy/SDN/pox/pox/openflow/libopenflow_01.py", line 3578, in data
   assert data.is_complete
AssertionError


marc
Reply all
Reply to author
Forward
0 new messages