[ovs-discuss] Hello version 0

Anup Khadka khadka.py at gmail.com
Thu Jul 24 00:23:17 UTC 2014


This suggestion will depend on the answer to my first question, and if a
behavior as such is even desirable/recommended, however, the
extract-ofp-msgs script could probably be changed to return (0x00, 0xff) if
range == '<all>' on decode_version_range.

Thank you,
Anup


On Wed, Jul 23, 2014 at 7:59 PM, Anup Khadka <khadka.py at gmail.com> wrote:

> If OVS receives a Hello packet with version set to 0, it logs an error
> "received message while expecting hello" and change's vconn's state without
> sending any message back to the controller.
>
> Is this a desired behavior? The standard isn't really clear on how to
> process a Hello packet with version == 0 (or if its even a valid OpenFlow
> packet at that point), but I think its reasonable for a controller to
> expect either one of the following two messages:
>
> 1. An OFPT_ERROR message with OFPET_HELLO_FAILED error type, and
> OFPHFC_INCOMPATIBLE error code (this was the behavior of OVS 1.4.0 stack,
> but the code base, and checks were significantly different then. The old
> code didn't really check for version number range, simply transitioned to
> VCS_SEND_ERROR state, and sent an error back to controller)
>
> 2. An OFPT_ERROR message with OFPET_BAD_REQUEST error type, and
> OFPBRC_BAD_VERSION error code.
>
> Thanks,
> Anup
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140723/0cbf14c8/attachment-0002.html>


More information about the discuss mailing list