Contents

Echo::Request

@open_flow10

An Echo Request message consists of an OpenFlow header plus an arbitrary-length data field. The data field might be a message timestamp to check latency, various lengths to measure bandwidth, or zero-size to verify liveness between the switch and controller.

Scenario: new

  • When I create an OpenFlow message with:
    Pio::Echo::Request.new
  • Then the message has the following fields and values:
    fieldvalue
    transaction_id0
    xid0
    body
    user_data

Scenario: new(transaction_id: 123)

  • When I create an OpenFlow message with:
    Pio::Echo::Request.new(transaction_id: 123)
  • Then the message has the following fields and values:
    fieldvalue
    transaction_id123
    xid123
    body
    user_data

Scenario: new(body: 'echo request body')

  • When I create an OpenFlow message with:
    Pio::Echo::Request.new(body: 'echo request body')
  • Then the message has the following fields and values:
    fieldvalue
    transaction_id0
    xid0
    bodyecho request body
    user_dataecho request body

Source: features/open_flow10/echo_request.feature at commit 40dd0fb6, Pio (GPL license).