stevelorenz / comnetsemu

A virtual emulator/testbed designed for the book: Computing in Communication Networks: From Theory to Practice (2020)
https://stevelorenz.github.io/comnetsemu/
MIT License
25 stars 21 forks source link

recode part #7

Closed Naibaowjk closed 3 years ago

Naibaowjk commented 3 years ago

please check it. o( ̄▽ ̄)

stevelorenz commented 3 years ago

Hi Naibaowjk, thanks for your pull request.

  1. Please make sure the flow rule is added to the flow table of the OVS. Then following packets of the same flow will not sent to the SDN controller. They should be handled directly by the OVS.
  2. For the static scenario. Your direction of implementation should be OK. If you want to modify the flow at runtime, then you need to add a REST API to the SDN controller and use mod operation to modify the already added flow on the switch. (This step may be too much work for you, so firstly make sure the first step is handled correctly.)