Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what if two switches have the same DPID #114

Open
italovalcy opened this issue Apr 20, 2023 · 0 comments
Open

what if two switches have the same DPID #114

italovalcy opened this issue Apr 20, 2023 · 0 comments
Labels
question Further information is requested

Comments

@italovalcy
Copy link

Accidentally, I configured two switches with the same DPID and Kytos behaving in a unexpected way:

Apr 20 18:46:05 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:131:  New connection from xx.xx.xx.226:43208
Apr 20 18:46:05 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:182:  Connection lost with client xx.xx.xx.224:50604. Reason: [Errno 9] Bad file descriptor
Apr 20 18:46:05 e4d26ba1790f kytos.napps.kytos/of_core:INFO main:140:  Connection ('xx.xx.xx.226', 43208), Switch 00:00:00:00:00:00:00:02: OPENFLOW HANDSHAKE COMPLETE
Apr 20 18:46:05 e4d26ba1790f kytos.napps.kytos/flow_manager:INFO main:603:  Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: add, force: False, flows_dict: {'flows': [{'priority': 1000, 'table_id': 0, 'cookie': 12321848580485677058, 'match': {'dl_type': 35020, 'dl_vlan': 3799}, 'actions': [{'action_type': 'output', 'port': 4294967293}]}]}
Apr 20 18:46:05 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:131:  New connection from xx.xx.xx.224:50848
Apr 20 18:46:05 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:182:  Connection lost with client xx.xx.xx.226:43208. Reason: Request closed by client
Apr 20 18:46:05 e4d26ba1790f kytos.napps.kytos/of_core:INFO main:140:  Connection ('xx.xx.xx.224', 50848), Switch 00:00:00:00:00:00:00:02: OPENFLOW HANDSHAKE COMPLETE
Apr 20 18:46:05 e4d26ba1790f kytos.napps.kytos/flow_manager:INFO main:603:  Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: add, force: False, flows_dict: {'flows': [{'priority': 1000, 'table_id': 0, 'cookie': 12321848580485677058, 'match': {'dl_type': 35020, 'dl_vlan': 3799}, 'actions': [{'action_type': 'output', 'port': 4294967293}]}]}
Apr 20 18:46:05 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:131:  New connection from xx.xx.xx.226:43210
Apr 20 18:46:05 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:182:  Connection lost with client xx.xx.xx.224:50848. Reason: [Errno 9] Bad file descriptor
Apr 20 18:46:05 e4d26ba1790f kytos.napps.kytos/of_core:INFO main:140:  Connection ('xx.xx.xx.226', 43210), Switch 00:00:00:00:00:00:00:02: OPENFLOW HANDSHAKE COMPLETE
Apr 20 18:46:05 e4d26ba1790f kytos.napps.kytos/flow_manager:INFO main:603:  Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: add, force: False, flows_dict: {'flows': [{'priority': 1000, 'table_id': 0, 'cookie': 12321848580485677058, 'match': {'dl_type': 35020, 'dl_vlan': 3799}, 'actions': [{'action_type': 'output', 'port': 4294967293}]}]}
Apr 20 18:46:06 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:131:  New connection from xx.xx.xx.224:50852
Apr 20 18:46:06 e4d26ba1790f kytos.napps.kytos/of_core:INFO main:140:  Connection ('xx.xx.xx.224', 50852), Switch 00:00:00:00:00:00:00:02: OPENFLOW HANDSHAKE COMPLETE
Apr 20 18:46:06 e4d26ba1790f kytos.core.atcp_server:INFO atcp_server:131:  New connection from xx.xx.xx.226:43214
Apr 20 18:46:06 e4d26ba1790f kytos.napps.kytos/flow_manager:INFO main:603:  Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: add, force: False, flows_dict: {'flows': [{'priority': 1000, 'table_id': 0, 'cookie': 12321848580485677058, 'match': {'dl_type': 35020, 'dl_vlan': 3799}, 'actions': [{'action_type': 'output', 'port': 4294967293}]}]}
Apr 20 18:46:06 e4d26ba1790f kytos.napps.kytos/of_core:INFO main:140:  Connection ('xx.xx.xx.226', 43214), Switch 00:00:00:00:00:00:00:02: OPENFLOW HANDSHAKE COMPLETE
Apr 20 18:46:06 e4d26ba1790f kytos.napps.kytos/flow_manager:INFO main:603:  Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: add, force: False, flows_dict: {'flows': [{'priority': 1000, 'table_id': 0, 'cookie': 12321848580485677058, 'match': {'dl_type': 35020, 'dl_vlan': 3799}, 'actions': [{'action_type': 'output', 'port': 4294967293}]}]}

Maybe we could do something different on the core to handle this situation. Maybe supporting multiple DPIDs per switch object and then choosing a random one for being the duplicated one. Having multiple DPIDs per switch allow us even change the DPID of a switch

@italovalcy italovalcy added the question Further information is requested label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant