[OPNFLWPLUG-154] Failed to decode LLDP packet Created: 08/May/14 Updated: 27/Sep/21 Resolved: 04/Sep/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Bhavish Khatri | Assignee: | Bhavish Khatri |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| External issue ID: | 974 | ||||||||
| Priority: | Normal | ||||||||
| Description |
|
Environment Ubuntu 12.04LTS 64bit Using latest integration build Dev lab with real hardware running openflow 1.3.1 toward controller Issue 1. Topology discovery fails - LLDP fails
2. Inconsistent device port discovery. Port numbers on switches different on separate runs of the controller Artefacts 1. Putty log of the controller running |
| Comments |
| Comment by Bhavish Khatri [ 08/May/14 ] |
|
Attachment test4.zip has been added with description: Log output + wireshark trace |
| Comment by Michal Rehak [ 23/May/14 ] |
|
Could you please retest? |
| Comment by Bhavish Khatri [ 25/May/14 ] |
|
I've just tried distributions-base-0.1.2-20140525.222643-753-osgipackage.zip. Can't see any nodes in the GUI. |
| Comment by Abhijit Kumbhare [ 29/May/14 ] |
|
Fyi Bhavish - PACKET IN towards Controller has buffer id and no data is not supported by the implementation. |
| Comment by Bhavish Khatri [ 29/May/14 ] |
|
Well it appears that Opendaylight is not correctly setting a rule on the switches. That is, flow action is send to controller but 0 bytes. Also, I can't see ODL creating any flow rules to punt LLDP towards controller either. Not sure how it figures out that this is an LLDP packet. What's the expected behaviour? |
| Comment by Abhijit Kumbhare [ 11/Aug/14 ] |
|
Folks, Are we setting a rule in the switches to specifically punt the LLDP packets to the controller? This will make our LLDP discovery more robust. I don't think we are doing this. So action 1 - install an explicit LLDP flow to punt LLDP packets to the controller. Also it is likely that we are expecting the whole unbuffered packet during the packet-ins - rather than partial packets. In this case it makes sense to explicitly configure the switch to send the full unbuffered packets to the controller (to make the controller operation more predictable & not dependent on the switch defaults). From the spec: From 6.1.2 Asynchronous: "If the packet is buffered, the number of bytes of the original packet to include in the packet-in can be configured. By default, it is 128 bytes. For packet-in generated by an output action in a flow entries or group bucket, it can be specified individually in the output action itself (see 7.2.5), for other packet-in it can be configured in the switch configuration (see 7.3.2)." The output action has the following: /* Action structure for OFPAT_OUTPUT, which sends packets out ’port’.
From: 7.3.2 Switch Configuration: /* Switch configuration. */ "The miss_send_len field defines the number of bytes of each packet sent to the controller by the OpenFlow pipeline when not using an output action to the OFPP_CONTROLLER logical port, for example sending packets with invalid TTL if this message reason is enabled. If this field equals 0, the switch must send zero bytes of the packet in the ofp_packet_in message. If the value is set to OFPCML_NO_BUFFER the complete packet must be included in the message, and should not be buffered." So action 2: We can make that change - and then have Bhavish try it again. |
| Comment by Abhijit Kumbhare [ 02/Sep/14 ] |
|
This was split into https://bugs.opendaylight.org/show_bug.cgi?id=1544 and https://bugs.opendaylight.org/show_bug.cgi?id=1545. Both closed - so closing this. |