Topics

VPP graph configuration


Raj
 

Hello all,

I am a newbie to VPP and trying to understand how it works. I am going
through all the documentation and videos of Paris training program. So
please be gentle :)

I understand that VPP is internally organized as a graph of nodes,
with each node performing a specific function and the passing [a bunch
of?] packets to the next node.

What I could not figure out is the exact graph layout. ie which nodes
is connected to which other nodes and on what condition an input
packet is transmitted over to one of the different output links by a
node.

How is the node graph set up initially? Can it be changed dynamically,
ie remove some nodes or add some nodes at another location? (not sure
if that makes any sense, though)

Can I export the graph to graphviz for viewing?

My apologies if this is not the appropriate list for this question.

Thanks and Regards,

Raj


Jim Thompson
 



On Dec 16, 2018, at 11:50 PM, Raj <rajlistuser@...> wrote:

Hello all,

I am a newbie to VPP and trying to understand how it works. I am going
through all the documentation and videos of Paris training program. So
please be gentle :)

I understand that VPP is internally organized as a graph of nodes,
with each node performing a specific function and the passing [a bunch
of?] packets to the next node.

What I could not figure out is the exact graph layout. ie which nodes
is connected to which other nodes and on what condition an input
packet is transmitted over to one of the different output links by a
node.

How is the node graph set up initially?

https://wiki.fd.io/view/VPP/Software_Architecture#Node_Graph_Initialization

Can it be changed dynamically, ie remove some nodes or add some nodes at another location? (not sure
if that makes any sense, though)

https://wiki.fd.io/view/VPP/Modifying_The_Packet_Processing_Directed_Graph (tl;dr: you can add, but not remove nodes)

Can I export the graph to graphviz for viewing?

“show vlib graph” at the CLI.

https://lists.fd.io/g/vpp-dev/message/7159 for graphviz. I don’t know if it still works.

Jim



Raj
 

Thanks!

I will read the docs and get back if I have any questions.


Raj



Raj

On Mon, Dec 17, 2018 at 12:32 PM Jim Thompson <jim@...> wrote:



On Dec 16, 2018, at 11:50 PM, Raj <rajlistuser@...> wrote:

Hello all,

I am a newbie to VPP and trying to understand how it works. I am going
through all the documentation and videos of Paris training program. So
please be gentle :)

I understand that VPP is internally organized as a graph of nodes,
with each node performing a specific function and the passing [a bunch
of?] packets to the next node.

What I could not figure out is the exact graph layout. ie which nodes
is connected to which other nodes and on what condition an input
packet is transmitted over to one of the different output links by a
node.

How is the node graph set up initially?


https://wiki.fd.io/view/VPP/Software_Architecture#Node_Graph_Initialization

Can it be changed dynamically, ie remove some nodes or add some nodes at another location? (not sure
if that makes any sense, though)


https://wiki.fd.io/view/VPP/Modifying_The_Packet_Processing_Directed_Graph (tl;dr: you can add, but not remove nodes)

Can I export the graph to graphviz for viewing?


“show vlib graph” at the CLI.

https://lists.fd.io/g/vpp-dev/message/7159 for graphviz. I don’t know if it still works.

Jim