OpenFlow configuration

Post Reply
MarianaCruz
Member
Posts: 6
Joined: 13 May 2020 11:19

OpenFlow configuration

Post by MarianaCruz »

Hello,

I'm trying to enable and configure OpenFlow in my OS6250-24 switch but it doesn't even recognize the command "openflow".. Any idea why? What should I do? I saw that the switch is compatible with openflow and I simply want to connect it to an SDN controller.

The commands im tryign to run are for example:

openflow logical-switch vswitch1 mode normal version 1.3.1 vlan 5
openflow logical-switch vswitch1 controller 1.1.1.1
openflow logical-switch vswitch1 interfaces port 1/3


And when I add the first command the switch returns the error:
-> openflow logical-switch vswitch1 mode normal version 1.3.1 vlan 5
^
ERROR: Invalid entry: "openflow"

The show microcode command returns:
-> show microcode
Package Release Size Description
.......................+....................+..................+.................................................
KFbase.img 6.6.1.679.R01 13465564 Alcatel-Lucent Base Software
KFos.img 6.6.1.679.R01 2146300 Alcatel-Lucent OS
KFeni.img 6.6.1.679.R01 4340262 Alcatel-Lucent NI Software
KFsecu.img 6.6.1.679.R01 515249 Alcatel-Lucent Security Management
KFdiag.img 6.6.1.679.R01 2144790 Alcatel-Lucent Diagnostic Software

Can you please help??

Very appreciated!
Mariana Cruz
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1890
Joined: 01 Jul 2008 10:51
Location: Germany

Re: OpenFlow configuration

Post by silvio »

Hi,
you need at the switch at least 6.6.5
6.6.1 is very old.
best regards
Silvio
MarianaCruz
Member
Posts: 6
Joined: 13 May 2020 11:19

Re: OpenFlow configuration

Post by MarianaCruz »

Hi Silvio,

Thanks for your reply. I understood that and upgraded the switch, but now when i connect it to ONOS controller some errors appear.

The commands that i put on the OS-6250 were:

Code: Select all

openflow logical-switch vswitch mode api version 1.0/1.3.1
openflow logical-switch vswitch controller 192.168.1.127
In OF 1.3.1 version the messages are:
10:46:21.476 INFO [OFChannelHandler] New switch connection from /192.168.1.126:1224
10:46:21.477 INFO [OFChannelHandler] Sending OF_13 Hello to /192.168.1.126:1224
10:46:21.510 INFO [OFChannelHandler] Received meter features from [/192.168.1.126:1224 DPID[00:01:00:e0:b1:da:dc:2f]] with max meters: 0
10:46:21.514 INFO [OFChannelHandler] Received switch description reply OFDescStatsReplyVer13(xid=4294967288, flags=[], mfrDesc=Alcatel-Lucent, hwDesc=OS6250-24, swDesc=6.7.1.76.R04 GA, October 18, 2016. , serialNum=K5282503, dpDesc=vxTarget) from switch at /192.168.1.126:1224
10:46:21.519 INFO [Controller] Driver 'default' assigned to device 00:01:00:e0:b1:da:dc:2f
10:46:21.520 INFO [OpenFlowControllerImpl$OpenFlowSwitchAgent] Added switch 00:01:00:e0:b1:da:dc:2f
10:46:21.544 INFO [DeviceManager] Local role is MASTER for of:000100e0b1dadc2f
10:46:21.549 INFO [DeviceManager] Device of:000100e0b1dadc2f connected
10:46:21.550 INFO [PortStatsCollector] Starting Port Stats collection thread for 00:01:00:e0:b1:da:dc:2f
10:46:21.548 WARN [ModelCache] DeviceID of:000100e0b1dadc2f not found as a UiDevice
10:46:21.551 WARN [ModelCache] DeviceID of:000100e0b1dadc2f not found as a UiDevice
10:46:21.565 INFO [DeviceFlowTable] Synchronizing device of:000100e0b1dadc2f flows for term 32
10:46:21.568 INFO [GroupStatsCollector] Starting Group Stats collection thread for 00:01:00:e0:b1:da:dc:2f
10:46:21.571 INFO [TopologyManager] Topology DefaultTopology{time=32315265415419, creationTime=1606992381564, computeCost=95292, clusters=1, devices=1, links=0} changed
10:46:21.569 ERROR [VtnManager] Can't find controller of device: of:000100e0b1dadc2f
10:46:21.593 INFO [InOrderFlowObjectiveManager] Driver default bound to device of:000100e0b1dadc2f ... initializing driver
10:46:21.596 INFO [MeterStatsCollector] Starting Meter Stats collection thread for 00:01:00:e0:b1:da:dc:2f
10:46:21.637 INFO [EvpnManager] Event is received from network configuration CONFIG_ADDED
10:46:21.638 INFO [EvpnManager] Event is received from network configuration CONFIG_UPDATED
10:46:21.664 INFO [EvpnManager] Event is received from network configuration CONFIG_UPDATED
10:46:21.664 INFO [OFChannelHandler] Processing 26 pending port status messages for 00:01:00:e0:b1:da:dc:2f
10:46:27.553 WARN [OpenFlowRuleProvider] Received error message OFBadInstructionErrorMsgVer13(xid=0, code=UNSUP_INST, data=OFFlowAddVer13(xid=0, cookie=0x00010000eadd1154, cookieMask=0x0000000000000000, tableId=0x0, idleTimeout=0, hardTimeout=0, priority=5, bufferId=4294967295, outPort=any, outGroup=any, flags=[SEND_FLOW_REM], match=OFMatchV3Ver13(eth_type=0x800, ipv4_dst=224.0.0.0/240.0.0.0), instructions=[OFInstructionClearActionsVer13(), OFInstructionApplyActionsVer13(actions=[OFActionOutputVer13(port=controller, maxLen=65535)])])) from 00:01:00:e0:b1:da:dc:2f
10:46:27.553 ERROR [OpenFlowRuleProvider] No matching batch for this error: OFBadInstructionErrorMsgVer13(xid=0, code=UNSUP_INST, data=OFFlowAddVer13(xid=0, cookie=0x00010000eadd1154, cookieMask=0x0000000000000000, tableId=0x0, idleTimeout=0, hardTimeout=0, priority=5, bufferId=4294967295, outPort=any, outGroup=any, flags=[SEND_FLOW_REM], match=OFMatchV3Ver13(eth_type=0x800, ipv4_dst=224.0.0.0/240.0.0.0), instructions=[OFInstructionClearActionsVer13(), OFInstructionApplyActionsVer13(actions=[OFActionOutputVer13(port=controller, maxLen=65535)])]))

In OF 1.0 version the messages are:
11:11:22.675 INFO [OFChannelHandler] New switch connection from /192.168.1.126:1262
11:11:22.696 INFO [OFChannelHandler] Received switch description reply OFDescStatsReplyVer10(xid=4294967290, flags=[], mfrDesc=Alcatel-Lucent, hwDesc=OS6250-24, swDesc=6.7.1.76.R04 GA, October 18, 2016. , serialNum=K5282503, dpDesc=vxTarget) from switch at /192.168.1.126:1262
11:11:22.699 INFO [Controller] Driver 'default' assigned to device 00:01:00:e0:b1:da:dc:2f
11:11:22.700 INFO [OpenFlowControllerImpl$OpenFlowSwitchAgent] Added switch 00:01:00:e0:b1:da:dc:2f
11:11:22.704 WARN [ModelCache] DeviceID of:000100e0b1dadc2f not found as a UiDevice
11:11:22.704 WARN [ModelCache] DeviceID of:000100e0b1dadc2f not found as a UiDevice
11:11:22.705 INFO [DeviceFlowTable] Synchronizing device of:000100e0b1dadc2f flows for term 39
11:11:22.705 INFO [DeviceManager] Local role is MASTER for of:000100e0b1dadc2f
11:11:22.706 INFO [DeviceManager] Device of:000100e0b1dadc2f connected
11:11:22.706 INFO [PortStatsCollector] Starting Port Stats collection thread for 00:01:00:e0:b1:da:dc:2f
11:11:22.712 ERROR [VtnManager] Can't find controller of device: of:000100e0b1dadc2f
11:11:22.724 INFO [InOrderFlowObjectiveManager] Driver default bound to device of:000100e0b1dadc2f ... initializing driver
11:11:22.739 INFO [TopologyManager] Topology DefaultTopology{time=33816425358170, creationTime=1606993882724, computeCost=58418, clusters=1, devices=1, links=0} changed
11:11:22.751 INFO [EvpnManager] Event is received from network configuration CONFIG_ADDED
11:11:22.767 INFO [EvpnManager] Event is received from network configuration CONFIG_UPDATED
11:11:22.782 INFO [OFChannelHandler] Processing 0 pending port status messages for 00:01:00:e0:b1:da:dc:2f
11:11:22.783 INFO [EvpnManager] Event is received from network configuration CONFIG_UPDATED
11:11:22.826 ERROR [VtnManager] The ifaceId of Host is null
11:11:22.827 INFO [EvpnManager] Host detected DefaultHost{id=08:00:27:1D:28:57/2, mac=08:00:27:1D:28:57, vlan=2, locations=[of:000100e0b1dadc2f/1], auxLocations=null, ipAddresses=[], annotations={}, configured=false, innerVlanId=None, outerTPID=unknown, suspended=false}
11:11:22.827 ERROR [EvpnManager] The ifaceId of host is null
11:11:22.975 ERROR [VtnManager] The ifaceId of Host is null
11:11:22.977 INFO [EvpnManager] Host detected DefaultHost{id=38:6B:BB:F9:68:CC/2, mac=38:6B:BB:F9:68:CC, vlan=2, locations=[of:000100e0b1dadc2f/1], auxLocations=null, ipAddresses=[], annotations={}, configured=false, innerVlanId=None, outerTPID=unknown, suspended=false}
11:11:22.977 ERROR [EvpnManager] The ifaceId of host is null
11:11:42.987 INFO [OFChannelHandler] Sending Echo Request on idle channel: [id: 0xcf260948, L:/192.168.1.127:6633 - R:/192.168.1.126:1262]
11:11:42.989 INFO [OFChannelHandler] DefaultSwitchHandshaker{session=192.168.1.126:1262, dpid=00:01:00:e0:b1:da:dc:2f} idle
11:11:52.983 ERROR [OFChannelHandler] Disconnecting switch DefaultSwitchHandshaker{session=192.168.1.126:1262, dpid=00:01:00:e0:b1:da:dc:2f} due to read timeout
11:11:52.984 INFO [OFChannelHandler] Switch disconnected callback for sw:DefaultSwitchHandshaker{session=192.168.1.126:1262, dpid=00:01:00:e0:b1:da:dc:2f}. Cleaning up ...
11:11:52.985 INFO [OFChannelHandler] DefaultSwitchHandshaker{session=192.168.1.126:1262, dpid=00:01:00:e0:b1:da:dc:2f}:removal called
11:11:52.985 INFO [PortStatsCollector] Stopping Port Stats collection thread for 00:01:00:e0:b1:da:dc:2f
11:11:52.985 WARN [OFChannelHandler] Dispatcher interrupted
11:11:52.988 INFO [DeviceManager] Device of:000100e0b1dadc2f disconnected from this node
11:11:52.989 ERROR [VtnManager] Can't find controller of device: of:000100e0b1dadc2f
11:11:53.001 INFO [TopologyManager] Topology DefaultTopology{time=33846702246461, creationTime=1606993913001, computeCost=53590, clusters=0, devices=0, links=0} changed
11:11:53.011 INFO [EvpnManager] Host vanished DefaultHost{id=08:00:27:1D:28:57/2, mac=08:00:27:1D:28:57, vlan=2, locations=[of:000100e0b1dadc2f/1], auxLocations=null, ipAddresses=[], annotations={}, configured=false, innerVlanId=None, outerTPID=unknown, suspended=false}
11:11:53.023 INFO [EvpnManager] Host vanished DefaultHost{id=38:6B:BB:F9:68:CC/2, mac=38:6B:BB:F9:68:CC, vlan=2, locations=[of:000100e0b1dadc2f/1], auxLocations=null, ipAddresses=[], annotations={}, configured=false, innerVlanId=None, outerTPID=unknown, suspended=false}

Also in both versions, ONOS is able to detect all ports of the switch, but in 1.3.1 due to the errors, ONOS is not able to detect the hosts connected to the switch. On the other hand, in version 1.0 ONOS detects the hosts but right after detection it disconnects from ONOS. Any idea what this means?

Please i could really use the help!

Thanks in advance :)
silvio
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 1890
Joined: 01 Jul 2008 10:51
Location: Germany

Re: OpenFlow configuration

Post by silvio »

sorry, but I never used Openflow by myself (only infos from the switch management and cli guides). So you have to open a ticket at alcatel.
best regards
Silvio
Post Reply

Return to “OmniSwitch 6250”