@@ -10,18 +10,17 @@ the host running PTF).
1010
1111## Dependencies
1212
13- We rely on [ nanomsg] ( http://nanomsg.org/ ) (a messaging library) to forward
13+ We rely on [ NNG] ( https://nng.nanomsg.org/ ) (a messaging library and modern
14+ successor to nanomsg) to forward
1415packets between the PTF agent and the PTF test runner. You will therefore need
1516to install the following:
1617
17- - [ nanomsg] ( https://github.com/nanomsg/nanomsg/releases ) : we recommend
18- installing the ` 1.0.0 ` production release.
19- - [ nnpy] ( https://github.com/nanomsg/nnpy ) : these are the Python bindings for
20- nanomsg. You may use the provided (install-nnpy.sh)[ install-nnpy.sh] script
21- to install nnpy. It will install a version of nnpy that we have tested.
18+ - [ pynng] ( https://github.com/codypiersall/pynng ) : these are the Python
19+ bindings for NNG. You may use the provided
20+ [ install-pynng.sh] ( ../CI/install-pynng.sh ) script to install pynng.
2221
23- We provide a [ check-nnpy .py] ( check-nnpy .py ) script that you can run to check
24- that nanomsg and nnpy are running properly.
22+ We provide a [ check-pynng .py] ( ../CI/ check-pynng .py) script that you can run to
23+ check that pynng is running properly.
2524
2625## Overview
2726
@@ -34,7 +33,7 @@ tester. Packets received on an interface (from the switch) will be tagged with
3433the port number and forwarded to the PTF tester. Packets received from the PTF
3534tester will be forwarded to the switch using the appropriate
3635interface. Communications between the PTF tester and each agent are done over
37- TCP using the nanomsg messaging library.
36+ TCP using the NNG messaging library.
3837
3938## Demo
4039
@@ -64,7 +63,7 @@ runs on the PTF host. The second PTF agent runs on the remote host. For each
6463host we need to use a separate device id (0 for the PTF host, 1 for the remote
6564host). The "switch" is connected to the PTF host through veth0-veth1 and to the
6665remote host through veth2-veth3. When running ` ptf ` , we need to use the ` nn `
67- platform and provide the nanomsg TCP address for each of the 2 devices.
66+ platform and provide the NNG TCP address for each of the 2 devices.
6867
6968In our test, we send a packet to port 1 of device 0 and receive the exact same
7069packet on port 1 of device 1, as expected.
0 commit comments