Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-13 Thread Sara Gittlin
Thank you John

On Mon, Mar 12, 2018 at 9:11 PM, John Lo (loj)  wrote:
> The functions in the area you are interested may be the unformat functions 
> unformat_vnet_sw_interface(), unformat_vnet_hw_interface() in 
> src/vnet/interface_format.c used by VPP CLI to get sw_if_index or hw_if_index 
> from user specified interface name.-John
>
> -Original Message-
> From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Sara 
> Gittlin
> Sent: Monday, March 12, 2018 11:22 AM
> To: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency
>
> btw - is there (like in linux)  a vpp function helper 
> "interface-name-to-if-index"  - which its input is interface-name and output  
> is vpp-if-index ?
>
> Thank you
> -Sara
>
> On Mon, Mar 12, 2018 at 5:16 PM, Sara Gittlin  wrote:
>> Thank you Jon
>> This indeed very helpful !
>> Cheers
>> -Sara
>>
>> On Mon, Mar 12, 2018 at 5:01 PM, Jon Loeliger  wrote:
>>>
>>>
>>> On Mon, Mar 12, 2018 at 3:57 AM, Sara Gittlin
>>> 
>>> wrote:
>>>>
>>>> Dear Florin,
>>>>
>>>> When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
>>>>  VPP create the devices with default names tap0, tap1, ..tapn.
>>>>
>>>> Is it possible for the user to set the name in the 'create' command line ?
>>>>
>>>> Thank you in advance
>>>> -Sara
>>>
>>>
>>> Hi Sara,
>>>
>>> Welcome to my battle!
>>>
>>> Luckily, there is a way to do as you wish!  If you set the "instance"
>>> value  during the tap_create API call, or use "id " during the
>>> "create tap ..." CLI command, you will create an interface of the
>>> name "tap".  You may not use a different prefix than "tap", but at
>>> least you can know what the name will be when it is created.
>>>
>>> HTH,
>>> jdl
>>>
>>>
>
>
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8515): https://lists.fd.io/g/vpp-dev/message/8515
View All Messages In Topic (15): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-12 Thread John Lo (loj)
The functions in the area you are interested may be the unformat functions 
unformat_vnet_sw_interface(), unformat_vnet_hw_interface() in 
src/vnet/interface_format.c used by VPP CLI to get sw_if_index or hw_if_index 
from user specified interface name.-John

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Sara Gittlin
Sent: Monday, March 12, 2018 11:22 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

btw - is there (like in linux)  a vpp function helper 
"interface-name-to-if-index"  - which its input is interface-name and output  
is vpp-if-index ?

Thank you
-Sara

On Mon, Mar 12, 2018 at 5:16 PM, Sara Gittlin  wrote:
> Thank you Jon
> This indeed very helpful !
> Cheers
> -Sara
>
> On Mon, Mar 12, 2018 at 5:01 PM, Jon Loeliger  wrote:
>>
>>
>> On Mon, Mar 12, 2018 at 3:57 AM, Sara Gittlin 
>> 
>> wrote:
>>>
>>> Dear Florin,
>>>
>>> When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
>>>  VPP create the devices with default names tap0, tap1, ..tapn.
>>>
>>> Is it possible for the user to set the name in the 'create' command line ?
>>>
>>> Thank you in advance
>>> -Sara
>>
>>
>> Hi Sara,
>>
>> Welcome to my battle!
>>
>> Luckily, there is a way to do as you wish!  If you set the "instance"
>> value  during the tap_create API call, or use "id " during the 
>> "create tap ..." CLI command, you will create an interface of the 
>> name "tap".  You may not use a different prefix than "tap", but at 
>> least you can know what the name will be when it is created.
>>
>> HTH,
>> jdl
>>
>> 




-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8509): https://lists.fd.io/g/vpp-dev/message/8509
View All Messages In Topic (14): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-12 Thread Sara Gittlin
btw - is there (like in linux)  a vpp function helper
"interface-name-to-if-index"  - which its input is interface-name and
output  is vpp-if-index ?

Thank you
-Sara

On Mon, Mar 12, 2018 at 5:16 PM, Sara Gittlin  wrote:
> Thank you Jon
> This indeed very helpful !
> Cheers
> -Sara
>
> On Mon, Mar 12, 2018 at 5:01 PM, Jon Loeliger  wrote:
>>
>>
>> On Mon, Mar 12, 2018 at 3:57 AM, Sara Gittlin 
>> wrote:
>>>
>>> Dear Florin,
>>>
>>> When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
>>>  VPP create the devices with default names tap0, tap1, ..tapn.
>>>
>>> Is it possible for the user to set the name in the 'create' command line ?
>>>
>>> Thank you in advance
>>> -Sara
>>
>>
>> Hi Sara,
>>
>> Welcome to my battle!
>>
>> Luckily, there is a way to do as you wish!  If you set the "instance"
>> value  during the tap_create API call, or use "id " during the
>> "create tap ..." CLI command, you will create an interface of the
>> name "tap".  You may not use a different prefix than "tap", but
>> at least you can know what the name will be when it is created.
>>
>> HTH,
>> jdl
>>
>> 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8505): https://lists.fd.io/g/vpp-dev/message/8505
View All Messages In Topic (13): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-12 Thread Sara Gittlin
Thank you Jon
This indeed very helpful !
Cheers
-Sara

On Mon, Mar 12, 2018 at 5:01 PM, Jon Loeliger  wrote:
>
>
> On Mon, Mar 12, 2018 at 3:57 AM, Sara Gittlin 
> wrote:
>>
>> Dear Florin,
>>
>> When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
>>  VPP create the devices with default names tap0, tap1, ..tapn.
>>
>> Is it possible for the user to set the name in the 'create' command line ?
>>
>> Thank you in advance
>> -Sara
>
>
> Hi Sara,
>
> Welcome to my battle!
>
> Luckily, there is a way to do as you wish!  If you set the "instance"
> value  during the tap_create API call, or use "id " during the
> "create tap ..." CLI command, you will create an interface of the
> name "tap".  You may not use a different prefix than "tap", but
> at least you can know what the name will be when it is created.
>
> HTH,
> jdl
>
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8504): https://lists.fd.io/g/vpp-dev/message/8504
View All Messages In Topic (12): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-12 Thread Jon Loeliger
On Mon, Mar 12, 2018 at 3:57 AM, Sara Gittlin 
wrote:

> Dear Florin,
>
> When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
>  VPP create the devices with default names tap0, tap1, ..tapn.
>
> Is it possible for the user to set the name in the 'create' command line ?
>
> Thank you in advance
> -Sara


Hi Sara,

Welcome to my battle!

Luckily, there is a way to do as you wish!  If you set the "instance"
value  during the tap_create API call, or use "id " during the
"create tap ..." CLI command, you will create an interface of the
name "tap".  You may not use a different prefix than "tap", but
at least you can know what the name will be when it is created.

HTH,
jdl


Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-12 Thread Sara Gittlin
Dear Florin,

When using the command " create tap rx-ring-size 4096 tx-ring-size 4096 "
 VPP create the devices with default names tap0, tap1, ..tapn.

Is it possible for the user to set the name in the 'create' command line ?

Thank you in advance
-Sara

On Thu, Mar 8, 2018 at 5:32 PM, Florin Coras  wrote:
> Great! :-)
>
> Florin
>
>
> On Mar 8, 2018, at 1:42 AM, Sara Gittlin  wrote:
>
> Florin
> Thank you - i'm done -  i get very good numbers with tap both for
> throughput and latency
>
> -Sara
>
> On Thu, Mar 8, 2018 at 10:55 AM, Sara Gittlin 
> wrote:
>
> Thank you Florin and Dave
> Florin - I can create tap in vpp and tap in namespace - but how to
> connect them like veth-pair ?
> how traffic transmitted from the namespace tap will be received  on
> the vpp tap ? and viceversa
>
> Dave - when i running iperf3 TCP i can see ~ 1000 pps , when i'm
> running UDP i see nothing (checking why...)
>
> Thank you in advance,
> -Sara
>
> On Wed, Mar 7, 2018 at 11:33 PM, Dave Barach  wrote:
>
> “show run” will probably show a very small vector size.
>
>
>
> If so, look at src/vlib/unix/input.c:linux_epoll_input(…). 10ms is exactly
> the epoll_pwait timeout value.
>
>
>
> D.
>
>
>
> From: vpp-dev@lists.fd.io  On Behalf Of Sara Gittlin
> Sent: Wednesday, March 7, 2018 2:02 PM
> To: vpp-dev@lists.fd.io
> Cc: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency
>
>
>
> Thank you Hau
>
> i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns
> directly without vpp is perfect 50 gbps throughput and 10us latency. Tested
> w iperf3. This is very bothering since we decided to go w vpp instead of ovs
>
> Thanks in advance
>
> -Sara
>
>
>
>
>
>
>
> בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)"  כתב:
>
> I encountered the similar issue before. Try replacing iperf3 with iperf2.
>
> Hao
>
> On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io on behalf of Sara Gittlin"
>  wrote:
>
>Also the throughput is very poor - iperf3 TCP ~ 2Mbps
>what is wrong here  ?
>
>On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin 
> wrote:
>
> Hi,
> i have 2 namespaces connected with veth-pairs to vpp -  see setup here
>
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
>
>
> i see very big latency ~10ms when i ping between the 2 namespaces
> i expected to see latency in the order of 10's us
> ---
> 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
> 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
> 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
> 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
> 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
> 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
>
> 
>
> Who can assist ?
>
> Thanks in advance
> -Sara
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8500): https://lists.fd.io/g/vpp-dev/message/8500
View All Messages In Topic (10): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-08 Thread Florin Coras
Great! :-)

Florin

> On Mar 8, 2018, at 1:42 AM, Sara Gittlin  wrote:
> 
> Florin
> Thank you - i'm done -  i get very good numbers with tap both for
> throughput and latency
> 
> -Sara
> 
> On Thu, Mar 8, 2018 at 10:55 AM, Sara Gittlin  <mailto:sara.gitt...@gmail.com>> wrote:
>> Thank you Florin and Dave
>> Florin - I can create tap in vpp and tap in namespace - but how to
>> connect them like veth-pair ?
>> how traffic transmitted from the namespace tap will be received  on
>> the vpp tap ? and viceversa
>> 
>> Dave - when i running iperf3 TCP i can see ~ 1000 pps , when i'm
>> running UDP i see nothing (checking why...)
>> 
>> Thank you in advance,
>> -Sara
>> 
>> On Wed, Mar 7, 2018 at 11:33 PM, Dave Barach  wrote:
>>> “show run” will probably show a very small vector size.
>>> 
>>> 
>>> 
>>> If so, look at src/vlib/unix/input.c:linux_epoll_input(…). 10ms is exactly
>>> the epoll_pwait timeout value.
>>> 
>>> 
>>> 
>>> D.
>>> 
>>> 
>>> 
>>> From: vpp-dev@lists.fd.io  On Behalf Of Sara Gittlin
>>> Sent: Wednesday, March 7, 2018 2:02 PM
>>> To: vpp-dev@lists.fd.io
>>> Cc: vpp-dev@lists.fd.io
>>> Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency
>>> 
>>> 
>>> 
>>> Thank you Hau
>>> 
>>> i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns
>>> directly without vpp is perfect 50 gbps throughput and 10us latency. Tested
>>> w iperf3. This is very bothering since we decided to go w vpp instead of ovs
>>> 
>>> Thanks in advance
>>> 
>>> -Sara
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)"  כתב:
>>> 
>>> I encountered the similar issue before. Try replacing iperf3 with iperf2.
>>> 
>>> Hao
>>> 
>>> On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io on behalf of Sara Gittlin"
>>>  wrote:
>>> 
>>>Also the throughput is very poor - iperf3 TCP ~ 2Mbps
>>>what is wrong here  ?
>>> 
>>>On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin 
>>> wrote:
>>>> Hi,
>>>> i have 2 namespaces connected with veth-pairs to vpp -  see setup here
>>>> 
>>> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
>>>> 
>>>> i see very big latency ~10ms when i ping between the 2 namespaces
>>>> i expected to see latency in the order of 10's us
>>>> ---
>>>> 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
>>>> 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
>>>> 
>>>> 
>>>> 
>>>> Who can assist ?
>>>> 
>>>> Thanks in advance
>>>> -Sara
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> 
>> 
> 
> 



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-08 Thread Sara Gittlin
Florin
Thank you - i'm done -  i get very good numbers with tap both for
throughput and latency

-Sara

On Thu, Mar 8, 2018 at 10:55 AM, Sara Gittlin  wrote:
> Thank you Florin and Dave
> Florin - I can create tap in vpp and tap in namespace - but how to
> connect them like veth-pair ?
> how traffic transmitted from the namespace tap will be received  on
> the vpp tap ? and viceversa
>
> Dave - when i running iperf3 TCP i can see ~ 1000 pps , when i'm
> running UDP i see nothing (checking why...)
>
> Thank you in advance,
> -Sara
>
> On Wed, Mar 7, 2018 at 11:33 PM, Dave Barach  wrote:
>> “show run” will probably show a very small vector size.
>>
>>
>>
>> If so, look at src/vlib/unix/input.c:linux_epoll_input(…). 10ms is exactly
>> the epoll_pwait timeout value.
>>
>>
>>
>> D.
>>
>>
>>
>> From: vpp-dev@lists.fd.io  On Behalf Of Sara Gittlin
>> Sent: Wednesday, March 7, 2018 2:02 PM
>> To: vpp-dev@lists.fd.io
>> Cc: vpp-dev@lists.fd.io
>> Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency
>>
>>
>>
>> Thank you Hau
>>
>> i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns
>> directly without vpp is perfect 50 gbps throughput and 10us latency. Tested
>> w iperf3. This is very bothering since we decided to go w vpp instead of ovs
>>
>> Thanks in advance
>>
>> -Sara
>>
>>
>>
>>
>>
>>
>>
>> בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)"  כתב:
>>
>> I encountered the similar issue before. Try replacing iperf3 with iperf2.
>>
>> Hao
>>
>> On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io on behalf of Sara Gittlin"
>>  wrote:
>>
>> Also the throughput is very poor - iperf3 TCP ~ 2Mbps
>> what is wrong here  ?
>>
>> On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin 
>> wrote:
>> > Hi,
>> > i have 2 namespaces connected with veth-pairs to vpp -  see setup here
>> >
>> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
>> >
>> > i see very big latency ~10ms when i ping between the 2 namespaces
>> > i expected to see latency in the order of 10's us
>> > ---
>> > 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
>> > 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
>> >
>> > 
>> >
>> > Who can assist ?
>> >
>> > Thanks in advance
>> > -Sara
>> >
>> >
>> >
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8468): https://lists.fd.io/g/vpp-dev/message/8468
View All Messages In Topic (8): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-08 Thread Sara Gittlin
Thank you Florin and Dave
Florin - I can create tap in vpp and tap in namespace - but how to
connect them like veth-pair ?
how traffic transmitted from the namespace tap will be received  on
the vpp tap ? and viceversa

Dave - when i running iperf3 TCP i can see ~ 1000 pps , when i'm
running UDP i see nothing (checking why...)

Thank you in advance,
-Sara

On Wed, Mar 7, 2018 at 11:33 PM, Dave Barach  wrote:
> “show run” will probably show a very small vector size.
>
>
>
> If so, look at src/vlib/unix/input.c:linux_epoll_input(…). 10ms is exactly
> the epoll_pwait timeout value.
>
>
>
> D.
>
>
>
> From: vpp-dev@lists.fd.io  On Behalf Of Sara Gittlin
> Sent: Wednesday, March 7, 2018 2:02 PM
> To: vpp-dev@lists.fd.io
> Cc: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency
>
>
>
> Thank you Hau
>
> i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns
> directly without vpp is perfect 50 gbps throughput and 10us latency. Tested
> w iperf3. This is very bothering since we decided to go w vpp instead of ovs
>
> Thanks in advance
>
> -Sara
>
>
>
>
>
>
>
> בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)"  כתב:
>
> I encountered the similar issue before. Try replacing iperf3 with iperf2.
>
> Hao
>
> On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io on behalf of Sara Gittlin"
>  wrote:
>
> Also the throughput is very poor - iperf3 TCP ~ 2Mbps
> what is wrong here  ?
>
> On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin 
> wrote:
> > Hi,
> > i have 2 namespaces connected with veth-pairs to vpp -  see setup here
> >
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
> >
> > i see very big latency ~10ms when i ping between the 2 namespaces
> > i expected to see latency in the order of 10's us
> > ---
> > 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
> > 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
> >
> > 
> >
> > Who can assist ?
> >
> > Thanks in advance
> > -Sara
> >
> >
> >
>
>
>
>
>
>
>
>
>
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8466): https://lists.fd.io/g/vpp-dev/message/8466
View All Messages In Topic (7): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-07 Thread Dave Barach
“show run” will probably show a very small vector size.

If so, look at src/vlib/unix/input.c:linux_epoll_input(…). 10ms is exactly the 
epoll_pwait timeout value.

D.

From: vpp-dev@lists.fd.io  On Behalf Of Sara Gittlin
Sent: Wednesday, March 7, 2018 2:02 PM
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

Thank you Hau
i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns 
directly without vpp is perfect 50 gbps throughput and 10us latency. Tested w 
iperf3. This is very bothering since we decided to go w vpp instead of ovs
Thanks in advance
-Sara



בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)" 
mailto:h...@cisco.com>> כתב:
I encountered the similar issue before. Try replacing iperf3 with iperf2.

Hao

On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io<mailto:vpp-dev@lists.fd.io> on behalf 
of Sara Gittlin" mailto:vpp-dev@lists.fd.io> on behalf of 
sara.gitt...@gmail.com<mailto:sara.gitt...@gmail.com>> wrote:
Also the throughput is very poor - iperf3 TCP ~ 2Mbps
what is wrong here  ?

On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin 
mailto:sara.gitt...@gmail.com>> wrote:
> Hi,
> i have 2 namespaces connected with veth-pairs to vpp -  see setup here
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
>
> i see very big latency ~10ms when i ping between the 2 namespaces
> i expected to see latency in the order of 10's us
> ---
> 4 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1005 ttl=63 
time=11.5 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1006 ttl=63 
time=9.60 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1007 ttl=63 
time=7.55 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1008 ttl=63 
time=5.52 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1009 ttl=63 
time=9.60 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1010 ttl=63 
time=17.6 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1011 ttl=63 
time=15.5 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1012 ttl=63 
time=13.6 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1013 ttl=63 
time=11.6 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1014 ttl=63 
time=9.54 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1015 ttl=63 
time=7.67 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1016 ttl=63 
time=5.56 ms
> 64 bytes from 172.16.2.2<http://172.16.2.2>: icmp_seq=1017 ttl=63 
time=3.44 ms
>
> 
>
> Who can assist ?
>
> Thanks in advance
> -Sara
>
>
>











Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-07 Thread Florin Coras
Could you try again with taps and large rings?

create tap rx-ring-size 4096 tx-ring-size 4096
create tap rx-ring-size 4096 tx-ring-size 4096

Configure then the two taps in your namespaces and run iperf again. 

Hope this helps,
Florin



> On Mar 7, 2018, at 11:01 AM, Sara Gittlin  wrote:
> 
> Thank you Hau
> i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns 
> directly without vpp is perfect 50 gbps throughput and 10us latency. Tested w 
> iperf3. This is very bothering since we decided to go w vpp instead of ovs 
> Thanks in advance
> -Sara
> 
> 
> 
> בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)"  > כתב:
> I encountered the similar issue before. Try replacing iperf3 with iperf2.
> 
> Hao
> 
> On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io  on 
> behalf of Sara Gittlin" mailto:vpp-dev@lists.fd.io> on 
> behalf of sara.gitt...@gmail.com > wrote:
> 
> Also the throughput is very poor - iperf3 TCP ~ 2Mbps
> what is wrong here  ?
> 
> On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin  > wrote:
> > Hi,
> > i have 2 namespaces connected with veth-pairs to vpp -  see setup here
> > 
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces 
> ]
> >
> > i see very big latency ~10ms when i ping between the 2 namespaces
> > i expected to see latency in the order of 10's us
> > ---
> > 4 bytes from 172.16.2.2 : icmp_seq=1005 ttl=63 
> time=11.5 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1006 ttl=63 
> time=9.60 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1007 ttl=63 
> time=7.55 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1008 ttl=63 
> time=5.52 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1009 ttl=63 
> time=9.60 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1010 ttl=63 
> time=17.6 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1011 ttl=63 
> time=15.5 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1012 ttl=63 
> time=13.6 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1013 ttl=63 
> time=11.6 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1014 ttl=63 
> time=9.54 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1015 ttl=63 
> time=7.67 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1016 ttl=63 
> time=5.56 ms
> > 64 bytes from 172.16.2.2 : icmp_seq=1017 ttl=63 
> time=3.44 ms
> >
> > 
> >
> > Who can assist ?
> >
> > Thanks in advance
> > -Sara
> >
> >
> >
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-07 Thread Sara Gittlin
Thank you Hau
i tested w iperf got similar results. I cannot find iperf2. Anyway ns to ns
directly without vpp is perfect 50 gbps throughput and 10us latency. Tested
w iperf3. This is very bothering since we decided to go w vpp instead of
ovs
Thanks in advance
-Sara



בתאריך 6 במרץ 2018 20:00,‏ "Hao Fu (haof)"  כתב:

I encountered the similar issue before. Try replacing iperf3 with iperf2.

Hao

On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io on behalf of Sara Gittlin" <
vpp-dev@lists.fd.io on behalf of sara.gitt...@gmail.com> wrote:

Also the throughput is very poor - iperf3 TCP ~ 2Mbps
what is wrong here  ?

On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin 
wrote:
> Hi,
> i have 2 namespaces connected with veth-pairs to vpp -  see setup here
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_
Between_Namespaces]
>
> i see very big latency ~10ms when i ping between the 2 namespaces
> i expected to see latency in the order of 10's us
> ---
> 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
> 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
> 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
> 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
> 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
> 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
>
> 
>
> Who can assist ?
>
> Thanks in advance
> -Sara
>
>
>









Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-06 Thread Hao Fu (haof)
I encountered the similar issue before. Try replacing iperf3 with iperf2.

Hao

On 3/6/18, 8:34 AM, "vpp-dev@lists.fd.io on behalf of Sara Gittlin" 
 wrote:

Also the throughput is very poor - iperf3 TCP ~ 2Mbps
what is wrong here  ?

On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin  wrote:
> Hi,
> i have 2 namespaces connected with veth-pairs to vpp -  see setup here
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
>
> i see very big latency ~10ms when i ping between the 2 namespaces
> i expected to see latency in the order of 10's us
> ---
> 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
> 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
> 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
> 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
> 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
> 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
>
> 
>
> Who can assist ?
>
> Thanks in advance
> -Sara
>
> 
>






-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8437): https://lists.fd.io/g/vpp-dev/message/8437
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



Re: [vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-06 Thread Sara Gittlin
Also the throughput is very poor - iperf3 TCP ~ 2Mbps
what is wrong here  ?

On Tue, Mar 6, 2018 at 6:20 PM, Sara Gittlin  wrote:
> Hi,
> i have 2 namespaces connected with veth-pairs to vpp -  see setup here
> [https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]
>
> i see very big latency ~10ms when i ping between the 2 namespaces
> i expected to see latency in the order of 10's us
> ---
> 4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
> 64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
> 64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
> 64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
> 64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
> 64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
> 64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
> 64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
> 64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms
>
> 
>
> Who can assist ?
>
> Thanks in advance
> -Sara
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8435): https://lists.fd.io/g/vpp-dev/message/8435
View All Messages In Topic (2): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-



[vpp-dev] VPP As A Router Between Namespaces - 10ms latency

2018-03-06 Thread Sara Gittlin
Hi,
i have 2 namespaces connected with veth-pairs to vpp -  see setup here
[https://wiki.fd.io/view/VPP/Configure_VPP_As_A_Router_Between_Namespaces]

i see very big latency ~10ms when i ping between the 2 namespaces
i expected to see latency in the order of 10's us
---
4 bytes from 172.16.2.2: icmp_seq=1005 ttl=63 time=11.5 ms
64 bytes from 172.16.2.2: icmp_seq=1006 ttl=63 time=9.60 ms
64 bytes from 172.16.2.2: icmp_seq=1007 ttl=63 time=7.55 ms
64 bytes from 172.16.2.2: icmp_seq=1008 ttl=63 time=5.52 ms
64 bytes from 172.16.2.2: icmp_seq=1009 ttl=63 time=9.60 ms
64 bytes from 172.16.2.2: icmp_seq=1010 ttl=63 time=17.6 ms
64 bytes from 172.16.2.2: icmp_seq=1011 ttl=63 time=15.5 ms
64 bytes from 172.16.2.2: icmp_seq=1012 ttl=63 time=13.6 ms
64 bytes from 172.16.2.2: icmp_seq=1013 ttl=63 time=11.6 ms
64 bytes from 172.16.2.2: icmp_seq=1014 ttl=63 time=9.54 ms
64 bytes from 172.16.2.2: icmp_seq=1015 ttl=63 time=7.67 ms
64 bytes from 172.16.2.2: icmp_seq=1016 ttl=63 time=5.56 ms
64 bytes from 172.16.2.2: icmp_seq=1017 ttl=63 time=3.44 ms



Who can assist ?

Thanks in advance
-Sara

-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8433): https://lists.fd.io/g/vpp-dev/message/8433
View All Messages In Topic (1): https://lists.fd.io/g/vpp-dev/topic/14091118
Mute This Topic: https://lists.fd.io/mt/14091118/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-