Closed rohansuri1996 closed 2 years ago
Traffic generator doesn't support createFace
mutation.
You should first create the Ethernet port with createEthPort
mutation, then use startTrafficGen
mutation and pass the locator in face
input field.
See https://github.com/usnistgov/ndn-dpdk/blob/89ef85079ec392710505cd8e17936d2a69368ec3/sample/activate/gen-config.ts for an example.
I have to agree with @rohansuri1996 that the current docs can be misleading. The difference between face and port may not be clear to someone reading this document. More importantly, we need to make it very explicit that only the ports need to created in advance, but not the faces. Referring to another doc called "face creation" is highly confusing in this context.
Traffic generator doesn't support
createFace
mutation. You should first create the Ethernet port withcreateEthPort
mutation, then usestartTrafficGen
mutation and pass the locator inface
input field. See https://github.com/usnistgov/ndn-dpdk/blob/89ef85079ec392710505cd8e17936d2a69368ec3/sample/activate/gen-config.ts for an example.
Thanks now I understand that now.
One of my question is how are you passing the config file in the cli commands like-
TP ndndpdk-ctrl --cmdout start-trafficgen
Hint: pass parameters via stdin
I was trying to see the GraphQL operation used by a ndndpdk-ctrl command by adding --cmdout flag.
NDN-DPDK does not have a config file. Everything goes through the API.
When you run gen-config.ts
script, it prints a JSON object as standard output.
You can pipe this object as standard input of ndndpdk-ctrl --cmdout start-trafficgen
command, which will then print the GraphQL command to standard output.
More importantly, we need to make it very explicit that only the ports need to created in advance, but not the faces.
This is updated in 9583e4e7d48bbe56f8aa2d1520f6da3e09682b74 :
trafficgen.md
now says "… for instructions on creating the port".face.md
now lists the commands to create a face, separately for each role in which the NDN-DPDK service may be activated as.
The documents say that we need to create face for traffic generators before starting it. When I tried to create face for the host activated as traffic generator it throws an error-