Stanford OpenFlow Forums: Devicemanager - Stanford OpenFlow Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Devicemanager Rate Topic: -----

#1 User is offline   jonathan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 05-September 14

Posted 05 September 2014 - 07:06 AM

Hello everyone,
I'm having a few questions about the devicemanager. I'm using the devicemanager to locate users (switch ID and port number). Several devices are connected to one switch port (through another non-OpenFlow Switch). This works fine and I can query users by MAC address and I can also check the devices on the web interface. But when the topology changes, the devicemanager refreshes the list of devices and a few devices are not recognized again.

- Does the implementation of the devicemanager allow several devices behind one switchport?
- Why does it work after a fresh start of the controller and not after a topology change?

I'm sorry for this rather vague description, still I hope someone might have an idea.

Regards,
Jonathan
0

#2 User is offline   jonathan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 05-September 14

Posted 09 September 2014 - 04:47 AM

I found the mistake and just wanted to share this:
Although I deleted all flows after a topology change with:

for (Entry<Long, IOFSwitch> entry : switches.entrySet()) {
            IOFSwitch sw = entry.getValue();
            OFMatch match = new OFMatch().setWildcards(OFMatch.OFPFW_ALL);
            OFMessage fm = ((OFFlowMod) sw.getInputStream().getMessageFactory()
                .getMessage(OFType.FLOW_MOD))
                .setMatch(match)
                .setCommand(OFFlowMod.OFPFC_DELETE)
                .setOutPort(OFPort.OFPP_NONE)
                .setLength(U16.t(OFFlowMod.MINIMUM_LENGTH));
            sw.getOutputStream().write(fm);


a few flows with hard timers got immediately reinstalled, before the Devicemanager recognized these devices. These flows prevented the Devicemanager to recognize the network devices for the duration of the hard timer...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users