Skip to content

Commit

Permalink
src/README: Update example app network diagram
Browse files Browse the repository at this point in the history
The first example of an app network is not a little more suggestive of a
real application and also shows that links are directional.
  • Loading branch information
lukego committed Jul 6, 2015
1 parent 256706d commit 2ca43e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
Binary file modified src/.images/Network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 0 additions & 7 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ For example: Move packets from input ports to output ports or to a
network adapter.


— Method **myapp:relink**

*Optional*. React to a changes in input/output links (`app.input` and
`app.output`). This method is called after a link reconfiguration but
before the next packets are processed.


— Method **myapp:reconfig** *arg*

*Optional*. Reconfigure the app with a new *arg*. If this method is not
Expand Down
20 changes: 15 additions & 5 deletions src/README.md.src
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,21 @@ implement a specific interface, which is used by the Snabb Switch engine
to organize an *App Network*.

DIAGRAM: Network
+-------+ +-------+
| | | |
| App 1 *------------* App 2 |
| | (Link) | |
+-------+ +-------+
+---------+
| |
+->* Filter0 *--+
| | | |
| +---------+ |
+---+----+ | | +----+---+
| *--+ +->* |
| NIC0 | | NIC1 |
| *<-+ +--* |
+---+----+ | | +----+---+
| +---------+ |
| | | |
+--* Filter1 *<-+
| |
+---------+

Usually, a Snabb Switch design will create a series of apps, interconnect
these in a desired way using *links* and finally pass the resulting app
Expand Down

0 comments on commit 2ca43e8

Please sign in to comment.