Hi Srini,

I'm sorry, the previous email was wrong title, so I email to this archive
and you again.
Here is my system version just like the following:
-------------------Version----
--------------------
CentOS 5.4
Kernel version 2.6.31.14
NetFPGA 2.2.0
OpenFlow 1.0.0
openflow_switch.bit 1.0.3 (from netfpga/bitfiles/)
NOX Controller NOX 0.9.0(zaku)~full~beta
----------------------------------------------------

Here is my answers for your questions:

1) Before I added Vlan action, I was very sure that pyswitch worked
normally, Because
    I had used dpctl to check the flow table after OpenFlow switch connected
to NOX controller.

2) I set two notebooks connect to OpenFlow Switch, and I just ping between
the two notebooks.

3) NOX Controller NOX 0.9.0(zaku)~full~beta

4) Please see the attachment

5) Please see the following:

------------------------------OpenFlow
log---------------------------------------------------------------------------
Found net device: nf2c0
Bit file built from: nf2_top_par.ncd;HW_TIMEOUT=FALSE
Part: 2vp50ff1152
Date: 2010/ 9/21
Time: 19:34: 2
Error Registers: 0
Good, after resetting programming interface the FIFO is empty
Download completed -  2377668 bytes. (expected 2377668).
DONE went high - chip has been successfully programmed.
CPCI Information
----------------
Version: 4 (rev 1)

Device (Virtex) Information
---------------------------
Project directory: openflow_switch
Project name: OpenFlow Switch
Project description: OpenFlow Switch

Device ID: 0
Version: 1.0.3
Built against CPCI version: 4 (rev 1)

Virtex design compiled against active CPCI version
[root@localhost sw]# Mar 14 02:57:14|00001|secchan|INFO|OpenFlow reference
implementation version 1.0.0
Mar 14 02:57:14|00002|secchan|INFO|OpenFlow protocol version 0x01
Mar 14 02:57:14|00003|secchan|WARN|new management connection will receive
asynchronous messages
Mar 14 02:57:14|00004|rconn|INFO|unix:/var/run/test: connecting...
Mar 14 02:57:14|00005|rconn|DBG|unix:/var/run/test: entering CONNECTING
Mar 14 02:57:14|00006|rconn|INFO|tcp:140.115.155.180:6633: connecting...
Mar 14 02:57:14|00007|rconn|DBG|tcp:140.115.155.180:6633: entering
CONNECTING
Mar 14 02:57:14|00008|vconn|DBG|unix:/var/run/test: sent (Success): hello
(xid=0xf4087f62):
Mar 14 02:57:14|00009|vconn|DBG|unix:/var/run/test: received: hello
(xid=0x433f6352):
Mar 14 02:57:14|00010|vconn|DBG|unix:/var/run/test: negotiated OpenFlow
version 0x01 (we support versions 0x01 to 0x01 inclusive, peer no later than
version 0x01)
Mar 14 02:57:14|00011|rconn|INFO|unix:/var/run/test: connected
Mar 14 02:57:14|00012|rconn|DBG|unix:/var/run/test: entering ACTIVE
Mar 14 02:57:14|00013|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
hello (xid=0x4f07e831):
Mar 14 02:57:14|00014|vconn|DBG|tcp:140.115.155.180:6633: received: hello
(xid=0xb010000):
Mar 14 02:57:14|00015|vconn|DBG|tcp:140.115.155.180:6633: negotiated
OpenFlow version 0x01 (we support versions 0x01 to 0x01 inclusive, peer no
later than version 0x01)
Mar 14 02:57:14|00016|rconn|INFO|tcp:140.115.155.180:6633: connected
Mar 14 02:57:14|00017|rconn|DBG|tcp:140.115.155.180:6633: entering ACTIVE
Mar 14 02:57:14|00018|vconn|DBG|tcp:140.115.155.180:6633: received:
features_request (xid=0xc010000):
Mar 14 02:57:14|00019|vconn|DBG|unix:/var/run/test: sent (Success):
features_request (xid=0xc010000):
Mar 14 02:57:14|00020|vconn|DBG|unix:/var/run/test: received: features_reply
(xid=0xc010000): ver:0x1, dpid:232063e88b
n_tables:3, n_buffers:256
features: capabilities:0xc7, actions:0xeff
 1(nf2c0): addr:00:4e:46:32:43:00, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 2(nf2c1): addr:00:4e:46:32:43:01, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 3(nf2c2): addr:00:4e:46:32:43:02, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 4(nf2c3): addr:00:4e:46:32:43:03, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 LOCAL(tap0): addr:00:23:20:63:e8:8b, config: 0, state:0
     current:    10MB-FD COPPER

Mar 14 02:57:14|00021|port_watcher|INFO|Datapath id is 00232063e88b
Mar 14 02:57:14|00022|port_watcher|DBG|Port 1 added: "nf2c0",
00:4e:46:32:43:00, current 1G(FD), supports 1G(FD)
Mar 14 02:57:14|00023|port_watcher|DBG|Port 2 added: "nf2c1",
00:4e:46:32:43:01, current 1G(FD), supports 1G(FD)
Mar 14 02:57:14|00024|port_watcher|DBG|Port 3 added: "nf2c2",
00:4e:46:32:43:02, current 1G(FD), supports 1G(FD)
Mar 14 02:57:14|00025|port_watcher|DBG|Port 4 added: "nf2c3",
00:4e:46:32:43:03, current 1G(FD), supports 1G(FD)
Mar 14 02:57:14|00026|port_watcher|DBG|Port 65534 added: "tap0",
00:23:20:63:e8:8b, current 10M(FD)
Mar 14 02:57:14|00027|port_watcher|INFO|Identified data path local port as
"tap0".
Mar 14 02:57:14|00028|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
features_reply (xid=0xc010000): ver:0x1, dpid:232063e88b
n_tables:3, n_buffers:256
features: capabilities:0xc7, actions:0xeff
 1(nf2c0): addr:00:4e:46:32:43:00, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 2(nf2c1): addr:00:4e:46:32:43:01, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 3(nf2c2): addr:00:4e:46:32:43:02, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 4(nf2c3): addr:00:4e:46:32:43:03, config: 0, state:0
     current:    1GB-FD
     advertised: COPPER
     supported:  1GB-FD
 LOCAL(tap0): addr:00:23:20:63:e8:8b, config: 0, state:0
     current:    10MB-FD COPPER

Mar 14 02:57:14|00029|vconn|DBG|tcp:140.115.155.180:6633: received:
set_config (xid=0xd010000): miss_send_len=128
Mar 14 02:57:14|00030|vconn|DBG|unix:/var/run/test: sent (Success):
set_config (xid=0xd010000): miss_send_len=128
Mar 14 02:57:14|00031|vconn|DBG|tcp:140.115.155.180:6633: received: vendor
(xid=0xe010000):
Mar 14 02:57:14|00001|datapath|WARN|unknown vendor: 0x2320
Mar 14 02:57:14|00032|vconn|DBG|unix:/var/run/test: sent (Success): vendor
(xid=0xe010000):
Mar 14 02:57:14|00033|vconn|DBG|unix:/var/run/test: received: error_msg
(xid=0xe010000): type1(OFPET_BAD_REQUEST) code3(OFPBRC_BAD_VENDOR) payload:
vendor (xid=0xe010000):
Mar 14 02:57:14|00034|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
error_msg (xid=0xe010000): type1(OFPET_BAD_REQUEST) code3(OFPBRC_BAD_VENDOR)
payload:
vendor (xid=0xe010000):
Mar 14 02:57:14|00035|poll_loop|DBG|[POLLIN] on fd 6: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:14|00036|vconn|DBG|tcp:140.115.155.180:6633: received: flow_mod
(xid=0xf09135b7): DEL: cookie:0 idle:0 hard:0 pri:0 buf:0 flg:0 actions=
Mar 14 02:57:14|00037|vconn|DBG|unix:/var/run/test: sent (Success): flow_mod
(xid=0xf09135b7): DEL: cookie:0 idle:0 hard:0 pri:0 buf:0 flg:0 actions=
Mar 14 02:57:14|00038|poll_loop|DBG|[POLLIN] on fd 5: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:14|00039|vconn|DBG|unix:/var/run/test: received: packet_in
(xid=0x0): total_len=74 in_port=2 data_len=74 buffer=0x00000101
icmp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=192.168.0.10,nw_dst=192.168.0.20,nw_tos=0x00,icmp_type=8,icmp_code=0,

Mar 14 02:57:14|00040|in_band|DBG|cannot look up controller hw address
(140.115.155.180): No such device or address
Mar 14 02:57:14|00041|in_band|DBG|controller IP address changed from 0.0.0.0
to 140.115.155.180
Mar 14 02:57:14|00042|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
packet_in (xid=0x0): total_len=74 in_port=2 data_len=74 buffer=0x00000101
icmp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=192.168.0.10,nw_dst=192.168.0.20,nw_tos=0x00,icmp_type=8,icmp_code=0,

Mar 14 02:57:14|00043|poll_loop|DBG|[POLLIN] on fd 6: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:14|00044|vconn|DBG|tcp:140.115.155.180:6633: received:
packet_out (xid=0x0): in_port=2 actions_len=8 actions=FLOOD
buffer=0x00000101

Mar 14 02:57:14|00045|vconn|DBG|unix:/var/run/test: sent (Success):
packet_out (xid=0x0): in_port=2 actions_len=8 actions=FLOOD
buffer=0x00000101

Mar 14 02:57:19|00046|poll_loop|DBG|[POLLIN] on fd 5: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:19|00047|vconn|DBG|unix:/var/run/test: received: packet_in
(xid=0x0): total_len=74 in_port=2 data_len=74 buffer=0x00000102
icmp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=192.168.0.10,nw_dst=192.168.0.20,nw_tos=0x00,icmp_type=8,icmp_code=0,

Mar 14 02:57:19|00048|in_band|DBG|cannot look up controller hw address
(140.115.155.180): No such device or address
Mar 14 02:57:19|00049|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
packet_in (xid=0x0): total_len=74 in_port=2 data_len=74 buffer=0x00000102
icmp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=192.168.0.10,nw_dst=192.168.0.20,nw_tos=0x00,icmp_type=8,icmp_code=0,

Mar 14 02:57:19|00050|poll_loop|DBG|[POLLIN] on fd 6: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:19|00051|vconn|DBG|tcp:140.115.155.180:6633: received:
packet_out (xid=0x0): in_port=2 actions_len=8 actions=FLOOD
buffer=0x00000102

Mar 14 02:57:19|00052|vconn|DBG|unix:/var/run/test: sent (Success):
packet_out (xid=0x0): in_port=2 actions_len=8 actions=FLOOD
buffer=0x00000102

Mar 14 02:57:19|00053|vconn|DBG|unix:/var/run/test: received: packet_in
(xid=0x0): total_len=60 in_port=3 data_len=60 buffer=0x00000103
arp,in_port=3,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:17:31:b8:ee:8c,dl_dst=ff:ff:ff:ff:ff:ff,nw_src=192.168.0.20,nw_dst=192.168.0.10,nw_tos=0x00,nw_proto=1,icmp_type=0,icmp_code=0,

Mar 14 02:57:19|00054|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
packet_in (xid=0x0): total_len=60 in_port=3 data_len=60 buffer=0x00000103
arp,in_port=3,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:17:31:b8:ee:8c,dl_dst=ff:ff:ff:ff:ff:ff,nw_src=192.168.0.20,nw_dst=192.168.0.10,nw_tos=0x00,nw_proto=1,icmp_type=0,icmp_code=0,

Mar 14 02:57:19|00055|poll_loop|DBG|[POLLIN] on fd 6: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:19|00056|vconn|DBG|tcp:140.115.155.180:6633: received:
packet_out (xid=0x0): in_port=3 actions_len=8 actions=FLOOD
buffer=0x00000103

Mar 14 02:57:19|00057|vconn|DBG|unix:/var/run/test: sent (Success):
packet_out (xid=0x0): in_port=3 actions_len=8 actions=FLOOD
buffer=0x00000103

Mar 14 02:57:19|00058|vconn|DBG|unix:/var/run/test: received: packet_in
(xid=0x0): total_len=106 in_port=2 data_len=106 buffer=0x00000104
arp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=192.168.0.10,nw_dst=192.168.0.20,nw_tos=0x00,nw_proto=2,tp_src=0,tp_dst=0,

Mar 14 02:57:19|00059|vconn|DBG|tcp:140.115.155.180:6633: sent (Success):
packet_in (xid=0x0): total_len=106 in_port=2 data_len=106 buffer=0x00000104
arp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=192.168.0.10,nw_dst=192.168.0.20,nw_tos=0x00,nw_proto=2,tp_src=0,tp_dst=0,

Mar 14 02:57:19|00060|poll_loop|DBG|[POLLIN] on fd 6: 0x8064b20 0x805470e
0xafae9c
Mar 14 02:57:19|00061|vconn|DBG|tcp:140.115.155.180:6633: received: flow_mod
(xid=0x0):arp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,tp_src=0,tp_dst=0,
ADD: cookie:0 idle:5 hard:0 pri:32768 buf:0x104 flg:0x1
actions=output:3,mod_vlan_vid:2

ofdatapath: lib/ofpbuf.c:168: ofpbuf_prealloc_headroom: Assertion `size <=
ofpbuf_headroom(b)' failed.
Mar 14 02:57:19|00002|fault|EMER|Caught signal 6.
  0xbf9beda8
Mar 14 02:57:19|00003|fault|EMER|Caught signal 11.
  0x00000000
Mar 14 02:57:19|00062|vconn|DBG|unix:/var/run/test: sent (Success): flow_mod
(xid=0x0):arp,in_port=2,dl_vlan=0xffff,dl_vlan_pcp=0x00,dl_src=00:0f:b0:df:38:18,dl_dst=00:17:31:b8:ee:8c,nw_src=0.0.0.0,nw_dst=0.0.0.0,nw_proto=0,tp_src=0,tp_dst=0,
ADD: cookie:0 idle:5 hard:0 pri:32768 buf:0x104 flg:0x1
actions=output:3,mod_vlan_vid:2

Mar 14 02:57:19|00063|poll_loop|DBG|[POLLIN] on fd 7: 0x805d8eb 0x80546ba
0xafae9c
Mar 14 02:57:19|00064|netlink|DBG|nl_sock_recv (Success): nl(len:256,
type=16(family-defined), flags=0, seq=0, pid=0(0:0))
Mar 14 02:57:19|00065|netdev|ERR|ioctl(SIOCGIFFLAGS) on tap0 device failed:
No such device
Mar 14 02:57:19|00066|port_watcher|WARN|could not get flags for tap0
Mar 14 02:57:19|00067|netlink|DBG|nl_sock_recv (Success): nl(len:252,
type=17(family-defined), flags=0, seq=0, pid=0(0:0))
Mar 14 02:57:19|00068|netdev|ERR|ioctl(SIOCGIFFLAGS) on tap0 device failed:
No such device
Mar 14 02:57:19|00069|port_watcher|WARN|could not get flags for tap0
Mar 14 02:57:19|00070|poll_loop|DBG|[POLLIN][POLLHUP] on fd 5: 0x8064b20
0x805470e 0xafae9c
Mar 14 02:57:19|00071|rconn|INFO|unix:/var/run/test: connection closed by
peer
Mar 14 02:57:19|00072|rconn|DBG|unix:/var/run/test: entering BACKOFF
Mar 14 02:57:20|00073|poll_loop|DBG|1000-ms timeout: 0x805463a 0xafae9c
Mar 14 02:57:20|00074|rconn|INFO|unix:/var/run/test: connecting...
Mar 14 02:57:20|00075|vconn_unix|ERR|/tmp/vconn-unix.8112.1: connection to
/var/run/test failed: Connection refused
Mar 14 02:57:20|00076|rconn|WARN|unix:/var/run/test: connection failed
(Connection refused)
Mar 14 02:57:20|00077|rconn|INFO|unix:/var/run/test: waiting 2 seconds
before reconnect
Mar 14 02:57:20|00078|rconn|DBG|unix:/var/run/test: entering BACKOFF

[root@localhost sw]# Mar 14 02:57:22|00079|poll_loop|DBG|2000-ms timeout:
0x805463a 0xafae9c
Mar 14 02:57:22|00080|rconn|INFO|unix:/var/run/test: connecting...
Mar 14 02:57:22|00081|vconn_unix|ERR|/tmp/vconn-unix.8112.2: connection to
/var/run/test failed: Connection refused
Mar 14 02:57:22|00082|rconn|WARN|unix:/var/run/test: connection failed
(Connection refused)
Mar 14 02:57:22|00083|rconn|INFO|unix:/var/run/test: waiting 4 seconds
before reconnect
Mar 14 02:57:22|00084|rconn|DBG|unix:/var/run/test: entering BACKOFF

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thank you for responsing my question.
I can not solve this problem until now, so any suggest will be helpful,
thank you!
_______________________________________________
openflow-discuss mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to