[pox-dev] OpenFlow: SwitchFeatures and PortStatus messages.

2014-05-25 Thread Karthik Sharma
have a controller application listening to the following messages. SwitchFeatures PortStatus PacketIn My mininet topology consists of exactly 6 switches and 6 hosts.Each switch has two ports. 1) How many SwitchFeatures can I expect my application to see? 2) How many PortStatus can I expect my ap

[pox-dev] Very low performance in a database backed controller.

2013-05-12 Thread Karthik Sharma
I have a function called act_like_switch which uses a databased backed architecture.If I come across a packet whose source address is not in the database I insert the into the database.Then I do a query of the destination address in the database and retrive the port_no from the database and then s

[pox-dev] destructor of MyController class is not being called.

2013-05-12 Thread Karthik Sharma
I have a class called MyController where I use the destructor to print some statistics. class MyController (object): def __init__ (self, connection): self.connection = connection connection.addListeners(self) # Use this table to keep track of which ethernet address is on # which

Re: [pox-dev] h1 ping h3 from mininet via POX controller not working as expected.

2013-05-02 Thread Karthik Sharma
> Since you're installing flows, you'd actually expect them to start hitting > the flow table and stop hitting the switch, but the fewest you could > probably expect to see at the controller in that case is still three. > > -- Murphy > > On May 2, 2013, at 9:4

[pox-dev] h1 ping h3 from mininet via POX controller not working as expected.

2013-05-02 Thread Karthik Sharma
I have mininet configured with a remote POX controller running.The configuration of mininet network is as shown below h1 (eth0) --- s2(eth1) s2(eth2) -- h3(eth0) where h1: eth0 is ca:bc:2e:0c:5a:52 h2: eth0 is 0a:79:40:89:44:cf The packet handli

[pox-dev] query from sqlalchemy returns AttributeError: 'NoneType' object

2013-05-02 Thread Karthik Sharma
Hi I have a funciton act_like_switch defined below. def act_like_switch (self, packet, packet_in): """ Implement switch-like behavior. """ # Learn the port for the source MAC #print "RECIEVED FROM PORT ",packet_in.in_port , "SOURCE ",packet.src # create a Session #Sessi

[pox-dev] Specifying multiple POX controllers for mininet.

2013-04-16 Thread Karthik Sharma
I am using a mininet topology with a remote controller. However I want to specify another redundant controller as a fallback option. Can I do as follows mn --custom topo-1sw-2host.py --topo mytopo --controller=remote --ip=192.168.129.56 --ip=192.168.129.57. Mininet seems to accept the above comma

Re: [pox-dev] some problem with python controller code

2013-04-14 Thread Karthik Sharma
--- def __init__(self, src_address,port_no): """""" self.src_address = src_address self.port_no = port_no Regards, Karthik. On 15 April 2013 10:35, Murphy McCauley wrote: > On Apr 14, 2013, at 3:19 PM, Karthik Sharma wrote: > > e

[pox-dev] some problem with python controller code

2013-04-14 Thread Karthik Sharma
I am quite new to python and to sqlalchemy.I have written the following netowrk program. class SourcetoPort(Base): "" __tablename__ = 'source_to_port' id = Column(Integer, primary_key=True) port_no= Column(Integer) src_address= Column(St

Re: [pox-dev] Installing flows on POX controller.

2013-04-10 Thread Karthik Sharma
And also will installing mininet in this situation make thing easier.I see a lot of cases where mininet is used in conjunction with POX Regards, Karthik. On 11 April 2013 13:39, Karthik Sharma wrote: > If I do that on the clients the all the clients are sending out > dhcpdiscover messag

Re: [pox-dev] Installing flows on POX controller.

2013-04-10 Thread Karthik Sharma
on the VMs? > On Apr 10, 2013 6:30 PM, "Karthik Sharma" > wrote: > >> Hi >> >> I don't have a dchp server configured on my network.As explained above it >> is 3 network segments intnet-1,intnet-2 and intnet-3 which are connected to >> op

Re: [pox-dev] Installing flows on POX controller.

2013-04-10 Thread Karthik Sharma
t least a major component of your problem. Use IPv4. > You can either statically configure the addresses, or run dhclient or > whatever on your VMs if your OpenFlow network is connected to a DHCP > server. If it's not, you can use POX's DHCP server. > > Hope that hel

[pox-dev] Installing flows on POX controller.

2013-04-10 Thread Karthik Sharma
I have 4 virtual Machine (Ubuntu 12.04) running on a host that is also running Ubuntu 12.04 The Virtual Machines are named as vm-1 vm-2 vm-3 vm-switch Below are the network settings on switch-vm Adapter 1: Intel PRO/1000 MT Desktop (Bridged adapter, eth0) Adapter 2:

Re: [pox-dev] forwarding.l2_learning module giving warning for DHCP packets.

2013-04-09 Thread Karthik Sharma
ough the second (internal network mode) interface. > > So... disable the bridged mode interfaces on vm_1/vm_2/vm_3 or do > something else to force traffic to go through the intnet interface. > > -- Murphy > > On Apr 9, 2013, at 8:42 PM, Karthik Sharma wrote: > > Hi, > &g

Re: [pox-dev] forwarding.l2_learning module giving warning for DHCP packets.

2013-04-09 Thread Karthik Sharma
th log.level --packet=WARN. > > (Or you can have the switches send full packets by running the > misc.full_payload component, but that seems sort of silly.) > > -- Murphy > > On Apr 9, 2013, at 8:06 PM, Karthik Sharma wrote: > > I have 4 virtual Machine (Ubuntu 12.04) runn

[pox-dev] forwarding.l2_learning module giving warning for DHCP packets.

2013-04-09 Thread Karthik Sharma
I have 4 virtual Machine (Ubuntu 12.04) running on a host that is also running Ubuntu 12.04 The Virtual Machines are named as vm-1 vm-2 vm-3 switch-vm Below are the network settings on switch-vm Adapter 1: Intel PRO/1000 MT Desktop (Bridged adapter, eth0) Adapter 2:

[pox-dev] ./pox.py log.level --DEBUG forwarding.l2_learning now working as expected.

2013-04-09 Thread Karthik Sharma
I am new to POX controller.The setup I have on my PC is explained below. I have installed openvswitch on my PC with runs Ubuntu 12.04.I also have virtual box running on my PC with 3 virtual machines (Ubuntu 12.04) running on them.They are named vm-1 vm-2 vm-3 I have configured the op