Can you do a trace (trace add dpdk-input 4 , show trace ) to see what VPP is 
doing ?
Did you configure the gre tunnel on backend servers ?
Can you show the full tcpdump capture on the backend server (with max 
verbosity) ?

Thanks,

- pierre

Le 20 oct. 2017 à 04:25, John Wei 
<johnt...@gmail.com<mailto:johnt...@gmail.com>> a écrit :

Hi Pierre,
Thanks for the info, I was able to bring up the VPP LB node, with 3 backend 
servers. I used ping and telnet to verify that backend servers can be reached 
using telnet or ping on the VPP LB node. I'll deal with DPDK later.
Then I tried to do the same thing on a client, VPP LB node got the request, but 
did not perform the forwarding to backend server.
Below are the relevant information, let me know if you can see where did I do 
wrong.

VIP is on 10.99.99.0/24<http://10.99.99.0/24> network

VPP LB Client:
     10.145.207.151
      I have setup route to reach VIP subnet through VPP LB node
            ip route add ${VIP}/24 dev eth0
      eth0 is on 10.145.207.0 (both client, VPP LB, and backend servers are all 
on this subnet)
VPP LB
    10.145.207.166
     lb conf ip4-src-address 10.145.207.1 timeout 10

     # configure VIP
     lb vip ${VIP}/24 encap gre4 new_len 1024

     # 3 backend servers
     lb as ${VIP}/24 10.145.207.141
     lb as ${VIP}/24 10.145.207.142
     lb as ${VIP}/24 10.145.207.168

On backend servers (141, 142, 168)
    In addition to its own host IP. I have one of the VIP (10.99.99.101) 
configured on dummy device.

As mentioned, on VPP LB node, I can telnet or ping 10.99.99.101. But, I was not 
able to do that on the client node.
On the VPP LB node, I used "tcpdump -n -i eth0 port 23" and can see the income 
request from 10.145.207.151, wanting to reach 10.99.99.101.
But. no further response.
I wonder why VPP LB is not doing the forwarding from request coming from the 
outside the node?

John









On Wed, Oct 18, 2017 at 11:40 PM, Pierre Pfister (ppfister) 
<ppfis...@cisco.com<mailto:ppfis...@cisco.com>> wrote:
Hello !

Great that you managed to answer your prior questions.
Did you see this little doc: https://docs.fd.io/vpp/16.12/lb_plugin_doc.html 
(Not very thorough, but it should help).

LB does not require specific NIC. The fact that the lb plugin is loaded does 
not interfere with the NICs.
You should look at DPDK's configuration in startup.conf file (uncomment and 
fill the dpdk section).
Also make sure that the DPDK plugin is loaded (I wild guess based on your 
previous question might be that you moved the lb plugin into a different 
folder, and the dpdk plugin is not loaded by VPP).

"lb conf <ip4-src-address>" is required to tell VPP which IPv4 source address 
to use when sending tunnelled packets.
Since there is no return traffic with Maglev, this address does not need to be 
one of VPP's addresses. But it should be properly routable toward VPP to not 
cause drops due to ingress-filtering.

Cheers,

- Pierre





Le 19 oct. 2017 à 04:34, John Wei 
<johnt...@gmail.com<mailto:johnt...@gmail.com>> a écrit :

Hi Pierre,
Sorry for the spam, I made further progress and don't want to waste your time 
answering questions that I already found answer.
- Once I got lb pluging loaded properly, I was able to configure it using vppctl
Remaining questions:
- why I am got just "local0" device from "vppctl show int"? Does VPP LB require 
special NIC? How about DPDK?
-  Do I need to set "vppctl lb conf <ip4-src-address>"? Should that be the IP 
of the host where VPP LB is run?

John


On Wed, Oct 18, 2017 at 6:08 PM, John Wei 
<johnt...@gmail.com<mailto:johnt...@gmail.com>> wrote:
Hi Pierre,
I made further progress.
I did the "rpm -i vpp-plugins-17.07.01-release.x86_64.rpm", and got plugin 
installed.
I updated the /etc/vpp/startup.conf file, and how I can see plugins using 
"vppctl show plugins".
My questions remains are:
- how to configure lb and what is the syntax
- instead of load all the plugins in /usr/lib/vpp_plugins/, how to configure 
and load just one plugin?

John



On Wed, Oct 18, 2017 at 5:35 PM, John Wei 
<johnt...@gmail.com<mailto:johnt...@gmail.com>> wrote:
Hi Pierre,
I was using "yum install vpp and vpp-lib" and there was no plugins.
Now I build the whole vpp source, including plugins, and added
plugin_path 
/<home_dir>/vpp/extras/rpm/vpp-17.07.01/build-root/build-vpp-native/vpp/plugins
to /etc/vpp/startup.conf file. Then restarted vpp.service.
Now
- how to do know that VPP lb plugin is loaded
- I still cant find the "lb" command. I guess it is really not a command. But, 
where I need to add these "lb" configuration and what is the syntax?
- In the monitoring section, it mentioned "show lb, show lv vips, .." Are they 
subcommands for vppctl? I tried and it does not work.

John


On Tue, Oct 3, 2017 at 11:19 PM, Pierre Pfister (ppfister) 
<ppfis...@cisco.com<mailto:ppfis...@cisco.com>> wrote:
Do you start VPP with the 'make run' command ?

It looks like the way you start VPP, it doesn't specify the righ plugins 
directory.
I'd suggest your try with adding "plugin_path </path/to/plugin/directory>" to 
VPP's command-line arguments.

- Pierre


Le 3 oct. 2017 à 20:40, John Wei 
<johnt...@gmail.com<mailto:johnt...@gmail.com>> a écrit :

Pierre,
Thanks for the response.
I follow instructions to install VPP:
https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages
That gives me vpp utility. There is no lb command.
I did a build of vpp by follow the instructions below to build vpp on linux
https://wiki.fd.io/view/VPP/Pulling,_Building,_Running,_Hacking_and_Pushing_VPP_Code#Linux
I found "lb" in the plugins directory.

But, how to bring up vpp with lb plugin? I hoping to see some instructions that 
I can follow to try this VPP lb.

John


On Sun, Oct 1, 2017 at 11:55 PM, Pierre Pfister (ppfister) 
<ppfis...@cisco.com<mailto:ppfis...@cisco.com>> wrote:
Hello John,

The LB plugin comes with VPP by default (no need for additional download, 
sources are in src/plugins/lb).

As far as instructions are concerned, I am afraid the link you pointed to is 
all there is for now.
But please ask if you feel like something in particular is missing.

- Pierre



Le 30 sept. 2017 à 00:07, John Wei 
<johnt...@gmail.com<mailto:johnt...@gmail.com>> a écrit :

I saw a VPP Load Balancer mentioned in this document:

https://docs.fd.io/vpp/17.07/lb_plugin_doc.html

But, I did not see installation information.
Can someone point me to where I can get download and setup instructions?

Thanks
John

_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io>
https://lists.fd.io/mailman/listinfo/vpp-dev









_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to