[nox-dev] Congestion

2010-12-01 Thread Rohit Manohar
Is there any way I can simulate congestion on a OpenFlow Network?

Regards
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Ip Address

2010-11-27 Thread Rohit Manohar
I am trying to change the IP source for a flow. For that I am doing the
following:

src_ip = '10.0.0.4'
actions = [[openflow.OFPAT_OUTPUT, [0,
prt[0]]],[openflow.OFPAT_SET_NW_SRC,src_ip]]

When I run the code, I get the following error. Any idea what might be
causing it?

00035|pyrt|ERR:unable to invoke a Python event handler:
Traceback (most recent call last):
  File ./nox/lib/util.py, line 116, in f
event.total_len, buffer_id, packet)
  File ./nox/coreapps/examples/pyproject.py, line 166, in
packet_in_callback
forward_l2_packet(dpid, inport, packet, packet.arr, bufid)
  File ./nox/coreapps/examples/pyproject.py, line 107, in
forward_l2_packet
inport, buf)
  File ./nox/lib/core.py, line 378, in install_datapath_flow
(idle_timeout, actions, buffer_id), hard_timeout)
  File ./nox/lib/core.py, line 257, in send_flow_command
oactions = self.make_action_array(actions)
  File ./nox/lib/core.py, line 168, in make_action_array
a = struct.pack(HHI, htons(action[0]), htons(8), iaddr.addr)
AttributeError: 'int' object has no attribute 'addr'


Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Iperf

2010-11-24 Thread Rohit Manohar
I want to use iperf on openflow. Is there any documentation regarding how to
use iperf with various options on mininet? e.g If i want iperf to run for a
specified period of time OR using specific bandwidth OR generate traffic on
specific ports like 8080 or between specific hosts, what options are
available.

Regards
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Checksum

2010-11-20 Thread Rohit Manohar
I want to change the IP address of a flow. For this I am using actions =
[[openflow_SET_NW_SRC, ip]]. I want to know what happens to the checksum? If
is recalculated automatically or I have to call a function to do it?

Regards,

-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Adding Flows

2010-11-20 Thread Rohit Manohar
I want to add a flow. Where should I do it? I open a xterm for an openflow
switch and run sechhan to connect it to a Nox-controller. If i want to run
dpctl, I need to first stop seechan  and hence I lose the connection with
the nox-controller.

Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Devices

2010-11-19 Thread Rohit Manohar
How do I identify which port is connected to which switch? I add
devices as './dpctl addif nl:0 eth0' specifying the port being used
for
connection, but I am not able to figure out which device is at the
other of the link.


-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Cycles

2010-11-16 Thread Rohit Manohar
I am trying to build the following topology in Nox:

  Openflow2



--  -
End1 -- Openflow1
Openflow4  End2

--
   -
-
 Openflow3

When I register Openflow4 with NOX, some sort of traffic loop is getting
created. NOX is continuously registering packet-in events even when I
haven't set up any flows.
Are cycles not supported by NOX? If yes, do I need to indicate it in the
.conf file?

Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Different Controllers for Different Switches

2010-11-16 Thread Rohit Manohar
I am simulating Load Distribution  for Servers. I need to run the
distribution component only on the switch that is connected to the servers.
All other switches need to perform normal routing. Can I use different
controllers for different switches on the same network(by using a different
port number)?

Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Version Problem

2010-11-14 Thread Rohit Manohar
I have installed nox and want to use a virtual testing environment using
qemu. I have used Openflow1.0 to make the nox controller. When I try
./secchan nl:0 tcp:10.0.2.2:2525 I get an error 'Version Negotiation failed.
We support version 0x97 to 0x97 inclusive but peer supports no later than
version 0x01.

Which version on openflow should I use to make the nox-contorller?

-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Functionality in a Switch

2010-11-13 Thread Rohit Manohar
I am working on a project to implement load distribution based on link
utilization. The basic idea is to distribute the load over output ports that
will take the flow to its destination. Consider a flow to a destination that
is reachable from a switch via 3 output ports {P1, P2, P3}. I want to
distribute the flow over them in round-robin fashion. For this, I plan to
use the counters maintained by Openflow switch for that flow. Right now, I
have built a nox-controller that is able to detect flows and after that push
the flow on to the switch. I wanted to know how can I configure multiple
switches to do round-robin from my Nox-controller.

Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Actions Based on Counters

2010-11-13 Thread Rohit Manohar
Is is possible to define multiple actions for a single flow based on
counters for that flow. The idea is to choose different output ports based
on number of packets encountered in that flow.

Regards,
-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org


[nox-dev] Problem in Download

2010-10-22 Thread Rohit Manohar
Hey

I am trying to download NOXCore using:

git clone git://noxrepo.org/noxcore


but I am getting an error:

'fatal: The remote end hung up unexpectedly'

Can you please suggest solution?

Regards,

-- 
Rohit Manohar
Graduate Student
North Carolina State University
Raleigh, US.
___
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org