Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

2018-11-08 Thread Ni, Hongjun
Hi all,

Sweetcomb project has been approved by FD.io TSC.

And project creation has been completed.

Thank you all for your great help to make this happen!



Below is the project resource:



Committers group:  fdio-gerrit-sweetcomb-committers Invites sent to the initial 
committers:  
https://wiki.fd.io/view/Project_Proposals/Sweetcomb#Initial_Committers

JIRA:  https://jira.fd.io/projects/SWEET/issues

Jenkins:  https://jenkins.fd.io/view/sweetcomb/

Gerrit:  https://gerrit.fd.io/r/#/admin/projects/sweetcomb

Groups.io:  https://lists.fd.io/g/sweetcomb-dev

GitHub Replication:  https://github.com/FDio/sweetcomb


We also have submitted initial code for IPR Review.
https://gerrit.fd.io/r/#/c/15835/ Initial code checkin for Sweetcomb project

The initial code is contributed by HuachenTel, and we help to refactor it.
If you have any concern, please raise it in project mail list: 
sweetcomb-...@lists.fd.io

Thank you again,
Hongjun

From: t...@lists.fd.io [mailto:t...@lists.fd.io] On Behalf Of Ni, Hongjun
Sent: Thursday, November 8, 2018 10:57 PM
To: Ni, Hongjun ; Edward Warnicke 
Cc: t...@lists.fd.io; vpp-dev@lists.fd.io; Wang, Drenfong 
; ??? ; 
chen...@huachentel.com; lizhuo...@cmhi.chinamobile.com; ??? 
; zhijl@chinatelecom.cn; changlin...@nxp.com; Wang 
Tianyi ; davidfgao(?? ; 
lixin...@huachentel.com; jingqing@alibaba-inc.com; gu.ji...@zte.com.cn; 
Jerome Tollet (jtollet) 
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

Hi TSC members,

Our Initial code has been refactored and  gone through internal legal review.

How can we submit the code to the fd.io Foundation for IPR Review?

Thanks,
Hongjun

From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Ni, Hongjun
Sent: Thursday, November 8, 2018 12:04 PM
To: Ni, Hongjun mailto:hongjun...@intel.com>>; Edward 
Warnicke mailto:hagb...@gmail.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; Wang Tianyi 
mailto:tianyi.w...@tieto.com>>; davidfgao(?? 
mailto:davidf...@tencent.com>>; 
lixin...@huachentel.com; 
jingqing@alibaba-inc.com; 
gu.ji...@zte.com.cn; Jerome Tollet (jtollet) 
mailto:jtol...@cisco.com>>
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb


Welcome Cisco to join Sweetcomb project!

https://wiki.fd.io/view/Project_Proposals/Sweetcomb

Thanks a lot,
Hongjun

From: t...@lists.fd.io [mailto:t...@lists.fd.io] On 
Behalf Of Ni, Hongjun
Sent: Thursday, November 1, 2018 8:40 AM
To: Ni, Hongjun mailto:hongjun...@intel.com>>; Edward 
Warnicke mailto:hagb...@gmail.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; Wang Tianyi 
mailto:tianyi.w...@tieto.com>>; davidfgao(?? 
mailto:davidf...@tencent.com>>; 
lixin...@huachentel.com; 
jingqing@alibaba-inc.com; 
gu.ji...@zte.com.cn
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb


Welcome ZTE to join!

Thanks,
Hongjun

From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Ni, Hongjun
Sent: Thursday, October 25, 2018 9:22 AM
To: Edward Warnicke mailto:hagb...@gmail.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; Wang Tianyi 
mailto:tianyi.w...@tieto.com>>; davidfgao(?? 
mailto:davidf...@tencent.com>>; 
lixin...@huachentel.com; 
jingqing@alibaba-inc.com
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

Hi all,

Some guys are asking for the original code in private.
Here is our answer:


We are 

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Ole Troan
Prashant,

> On 9 Nov 2018, at 01:39, Prashant Upadhyaya  wrote:
> 
> Hi Ole,
> 
> Thanks for the information.
> 
> Suppose my IP datagram gets fragmented into fragments F.1 and F.2, do
> these again get submitted to ip4-input ?
> I am trying to figure out the path in the graph from the time I submit
> my v4 IP datagram to ip4-lookup.
> What is crucial for me to know is if the fragments do land up at
> ip4-input or not.

They don’t. If I recall correctly fragmentation is done in ip4-rewrite, and 
that’s were fragments end up after a trip by ip4-frag. 

Packet trace is your friend here. 

(trace add  
Send large packet 
show trace)

Cheers 
Ole


> 
> Regards
> -Prashant
> 
> 
>> On Thu, Nov 8, 2018 at 10:11 PM Ole Troan  wrote:
>> 
>> 
>> 
>>> On 8 Nov 2018, at 23:26, Prashant Upadhyaya  wrote:
>>> 
>>> Hi,
>>> 
>>> If I hand-construct an IP datagram (bigger than mtu) using chained
>>> vlib buffers and send this chain to ip4-lookup, would that be
>>> fragmented and sent out as per the mtu requirements of the interface
>>> from which the packet is determined to be sent out ? (assume that the
>>> rx and tx sw_if_index is properly set)
>>> 
>>> If not, which node do I send this datagram to, to achieve effectively
>>> the above ?
>> 
>> Yes, if IPv4 and DF==0.
>> And you better remember that IP fragments are almost never a good idea.
>> 
>> Cheers
>> Ole
>> 
>> 
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Links: You receive all messages sent to this group.
>>> 
>>> View/Reply Online (#11172): https://lists.fd.io/g/vpp-dev/message/11172
>>> Mute This Topic: https://lists.fd.io/mt/28037801/675193
>>> Group Owner: vpp-dev+ow...@lists.fd.io
>>> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [otr...@employees.org]
>>> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11180): https://lists.fd.io/g/vpp-dev/message/11180
Mute This Topic: https://lists.fd.io/mt/28037801/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] FW: [openstack-dev] networking-vpp 18.10 for VPP 18.10 is now available

2018-11-08 Thread Jerome Tollet via Lists.Fd.Io
Dear VPP’ers,
This message may be of interest to you.
Jerome

De : Naveen Joy 
Répondre à : "OpenStack Development Mailing List (not for usage questions)" 

Date : jeudi 8 novembre 2018 à 23:05
À : openstack-dev 
Objet : [openstack-dev] networking-vpp 18.10 for VPP 18.10 is now available

Hello All,

In conjunction with the release of VPP 18.10, we'd like to invite you all to 
try out networking-vpp 18.10 for VPP 18.10.
As many of you may already know, VPP is a fast user space forwarder based on 
the DPDK toolkit. VPP uses vector packet
processing algorithms to minimize the CPU time spent on each packet to maximize 
throughput.

Networking-vpp is a ML2 mechanism driver that controls VPP on your control and 
compute hosts to provide fast L2 forwarding
under Neutron.

In this release, we have made improvements to fully support the network trunk 
service plugin. Using this plugin, you can attach
multiple networks to an instance by binding it to a single vhostuser trunk 
port. The APIs are the same as the OpenStack Neutron trunk
service APIs. You can also now bind and unbind subports to a bound network 
trunk.

Another feature we have improved in this release is the Tap-as-a-service(TaaS). 
The TaaS code has been updated to handle any out of order
etcd messages received during agent restarts. You can use this service to 
create remote port mirroring capability for tenant virtual networks.

Besides the above, this release also has several bug fixes, VPP 18.10 API 
compatibility and stability related improvements.

The README [1] explains how you can try out VPP using devstack: the devstack 
plugin will deploy the mechanism driver and VPP 18.10
and should give you a working system with a minimum of hassle.

We will be continuing our development between now and VPP's 19.01 release. 
There are several features we're planning to work on
and we will keep you updated through our bugs list [2]. We welcome anyone who 
would like to come help us.

Everyone is welcome to join our biweekly IRC meetings, every other Monday (the 
next one is due this Monday at 0800 PT = 1600 GMT.
--
Ian & Naveen

[1]https://github.com/openstack/networking-vpp/blob/master/README.rst
[2]http://goo.gl/i3TzAt
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11179): https://lists.fd.io/g/vpp-dev/message/11179
Mute This Topic: https://lists.fd.io/mt/28042373/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Florin Coras
Hm, I suspect in case of TCP it may be an overlap between unit tests and the 
throughput test. I’ve separated them here. Can you try it out with 500M 
locally? It works fine on my box, but maybe it has to do with the hardware it 
runs on. 

Thanks, 
Florin

[1] https://gerrit.fd.io/r/#/c/15833/

> On Nov 8, 2018, at 1:29 PM, Marco Varlese  wrote:
> 
> It finishes with errors (stating 3 tests failed). Same behavior as seen with 
> SCTP so I'm now guessing that's rather an issue with the test code (either 
> client or server) or with the session layer (doubt that since VCL works)??
> Thoughts?
> 
> Marco Varlese
> 
> On Nov 8, 2018 22:06, Florin Coras  wrote:
> Hi Marco, 
> 
> So echo test with 500MB does finish and reports throughput after 15s but with 
> warnings of the type “clients stuck”?
> 
> Note that we also have tests that run iperf3 for about 5s and those exchange 
> GB of data probably. 
> 
> Florin
> 
> On Nov 8, 2018, at 12:55 PM, Marco Varlese  > wrote:
> 
> Well, folks there's something strange here...
> 
> I was trying to understand what's going on with SCTP and (because I couldn't 
> see the light) I decided to give TCP a try.
> 
> I hence modified test_tcp.py  to have 500 mbytes to send and 
> the test fails. Similarly to what happens for SCTP. I did try to increase the 
> test-timeout but without much success...
> 
> Interestingly, for both TCP and SCTP, with a test-timeout of 30 seconds the 
> test completes (with errors) after round 12-15 secs...
> 
> On Thu, 2018-11-08 at 08:21 -0800, Florin Coras wrote:
> Hi guys, 
> 
> I unfortunately missed this. Yes, the fifo size provided is the number of kB 
> and yes you should be able to do 4MB (fifo-size 4096) or even higher. 
> 
> The “stuck clients” warning is just a notification, the test can still 
> finish. To make sure you give the test enough time, add “test-timeout 
> ” to the list of parameters. 
> 
> Florin
> 
> On Nov 8, 2018, at 5:46 AM, Yao, Chengqiang  > wrote:
> 
> Hi Macro,
>  
> Seems the max workable fifo-size in test_sctp.py  is 16. 
> With fifo-size in test_sctp.py  set to 16, the throughput is 
> only 4Gbps (VPP is under release mode), I think the real number should be 
> more than this if we can increase both fifo-size and mbytes in test_sctp.py 
> .
>  

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11178): https://lists.fd.io/g/vpp-dev/message/11178
Mute This Topic: https://lists.fd.io/mt/28023358/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Marco Varlese
It finishes with errors (stating 3 tests failed). Same behavior as seen with 
SCTP so I'm now guessing that's rather an issue with the test code (either 
client or server) or with the session layer (doubt that since VCL works)??
Thoughts?


Marco VarleseOn Nov 8, 2018 22:06, Florin Coras  wrote:
>
> Hi Marco, 
>
> So echo test with 500MB does finish and reports throughput after 15s but with 
> warnings of the type “clients stuck”?
>
> Note that we also have tests that run iperf3 for about 5s and those exchange 
> GB of data probably. 
>
> Florin
>
>> On Nov 8, 2018, at 12:55 PM, Marco Varlese  wrote:
>>
> Well, folks there's something strange here...
>
> I was trying to understand what's going on with SCTP and (because I couldn't 
> see the light) I decided to give TCP a try.
>
> I hence modified test_tcp.py to have 500 mbytes to send and the test fails. 
> Similarly to what happens for SCTP. I did try to increase the test-timeout 
> but without much success...
>
> Interestingly, for both TCP and SCTP, with a test-timeout of 30 seconds the 
> test completes (with errors) after round 12-15 secs...
>
> On Thu, 2018-11-08 at 08:21 -0800, Florin Coras wrote:
>>
>> Hi guys, 
>>
>> I unfortunately missed this. Yes, the fifo size provided is the number of kB 
>> and yes you should be able to do 4MB (fifo-size 4096) or even higher. 
>>
>> The “stuck clients” warning is just a notification, the test can still 
>> finish. To make sure you give the test enough time, add “test-timeout 
>> ” to the list of parameters. 
>>
>> Florin
>>
>>> On Nov 8, 2018, at 5:46 AM, Yao, Chengqiang  
>>> wrote:
>>>
>>> Hi Macro,
>>>  
>>> Seems the max workable fifo-size in test_sctp.py is 16. With fifo-size in 
>>> test_sctp.py set to 16, the throughput is only 4Gbps (VPP is under release 
>>> mode), I think the real number should be more than this if we can increase 
>>> both fifo-size and mbytes in test_sctp.py.
>>>  -=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11177): https://lists.fd.io/g/vpp-dev/message/11177
Mute This Topic: https://lists.fd.io/mt/28023358/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Florin Coras
Hi Marco, 

So echo test with 500MB does finish and reports throughput after 15s but with 
warnings of the type “clients stuck”?

Note that we also have tests that run iperf3 for about 5s and those exchange GB 
of data probably. 

Florin

> On Nov 8, 2018, at 12:55 PM, Marco Varlese  wrote:
> 
> Well, folks there's something strange here...
> 
> I was trying to understand what's going on with SCTP and (because I couldn't 
> see the light) I decided to give TCP a try.
> 
> I hence modified test_tcp.py to have 500 mbytes to send and the test fails. 
> Similarly to what happens for SCTP. I did try to increase the test-timeout 
> but without much success...
> 
> Interestingly, for both TCP and SCTP, with a test-timeout of 30 seconds the 
> test completes (with errors) after round 12-15 secs...
> 
> On Thu, 2018-11-08 at 08:21 -0800, Florin Coras wrote:
>> Hi guys, 
>> 
>> I unfortunately missed this. Yes, the fifo size provided is the number of kB 
>> and yes you should be able to do 4MB (fifo-size 4096) or even higher. 
>> 
>> The “stuck clients” warning is just a notification, the test can still 
>> finish. To make sure you give the test enough time, add “test-timeout 
>> ” to the list of parameters. 
>> 
>> Florin
>> 
>>> On Nov 8, 2018, at 5:46 AM, Yao, Chengqiang >> > wrote:
>>> 
>>> Hi Macro,
>>>  
>>> Seems the max workable fifo-size in test_sctp.py is 16. With fifo-size in 
>>> test_sctp.py set to 16, the throughput is only 4Gbps (VPP is under release 
>>> mode), I think the real number should be more than this if we can increase 
>>> both fifo-size and mbytes in test_sctp.py.
>>>  
>>> 
>>>  
>>>  
>>> If increase fifo-size to 20, or increase mbytes in test_sctp.py to more 
>>> than 2000, an issue will happen. Maybe “make test” is only for functional 
>>> test.
>>>  
>>> 
>>>  
>>>   <>
>>>  
>>>  
>>> Best Regards,
>>> Chengqiang Yao
>>>  
>>>  
>>>  <>From: vpp-dev@lists.fd.io  
>>> [mailto:vpp-dev@lists.fd.io ] On Behalf Of 
>>> Marco Varlese
>>> Sent: Thursday, November 8, 2018 8:20 PM
>>> To: Yao, Chengqiang >> >
>>> Cc: vpp-dev@lists.fd.io 
>>> Subject: Re: [vpp-dev] #vpp sctp echo test crash
>>>  
>>> On Thu, 2018-11-08 at 11:59 +, Yao, Chengqiang wrote:
 Hi Macro,
  
 I’m running on master branch and latest version.
  
 “make test TEST-test_sctp.py” also works for me. I want to benchmark the 
 performance of sctp, but fifo-size is only 4 in test_sctp.py, so the 
 throughput is only ~2Gbps. If I increase the fifo-size in test_sctp.py, 
 then the test fails.
>>> Please see:
>>> src/vnet/session-apps/echo_client.c
>>> src/vnet/session-apps/echo_server.c
>>>  
>>> In there you would see that fifo-size is shifted left by 10 (that means 4 
>>> becomes 4096). Maybe you want to try with 8 or 16?
>>> Hopefully, Florin can shed some light about the usage of 4096 for the 
>>> fifo-size... which would eventually mean a fifo of 4M entries?
>>>  
  
 That’s why I want to use CLI commands to test SCTP. I’m not intended to 
 run multiple clients, the reason I set nclients=2 is because test_sctp.py 
 does the same thing, I just want to keep the same.
>>> I am not sure why you see nclients=2 in test_sctp.py... there's no mention 
>>> of it on latest MASTER...
>>>  
  
  
 You mean you use the same commands in my last mail, and there is no issue? 
 If yes, then I need to check my setup.
  
  
  
 Best Regards,
 Chengqiang Yao
  
  
  
 From: Marco Varlese [mailto:mvarl...@suse.de ] 
 Sent: Thursday, November 8, 2018 6:52 PM
 To: Yao, Chengqiang >>> >
 Cc: vpp-dev@lists.fd.io 
 Subject: Re: [vpp-dev] #vpp sctp echo test crash
  
 Dear Yao,
  
 First of all, are you on MASTER branch or some other release?
  
 Second, can you run "make test TEST=test_sctp.py" and see if that works 
 for you? It all looks good on my side and on Jenkins.
  
 If you are interested in running multiple clients, you can do that by 
 editing test_sctp.py and add "nclients X" (where X can be 2 or more).
  
 Again, I have just tested it right now and I cannot see that issue.
  
  
 Cheers,
 Marco
  
 On Thu, 2018-11-08 at 09:20 +, Yao, Chengqiang wrote:
> Hi Macro,
>  
> I follow test_sctp.py to use following commands in server and client, but 
> client can not connect server with an error printed 
> “echo_client_node_fn:238: stuck clients” as you can see below.
> Do I miss any command ?
>  
>  
> Server:
> vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> vpp# set int state FortyGigabitEthernet18/0/1 up
> vpp# set ip arp FortyGigabitEthernet18/0/1 

Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Marco Varlese
Well, folks there's something strange here...
I was trying to understand what's going on with SCTP and (because I couldn't see
the light) I decided to give TCP a try.
I hence modified test_tcp.py to have 500 mbytes to send and the test fails.
Similarly to what happens for SCTP. I did try to increase the test-timeout but
without much success...
Interestingly, for both TCP and SCTP, with a test-timeout of 30 seconds the test
completes (with errors) after round 12-15 secs...
On Thu, 2018-11-08 at 08:21 -0800, Florin Coras wrote:
> Hi guys, 
> I unfortunately missed this. Yes, the fifo size provided is the number of kB
> and yes you should be able to do 4MB (fifo-size 4096) or even higher. 
> 
> The “stuck clients” warning is just a notification, the test can still finish.
> To make sure you give the test enough time, add “test-timeout  seconds>” to the list of parameters. 
> 
> Florin
> 
> > On Nov 8, 2018, at 5:46 AM, Yao, Chengqiang 
> > wrote:
> > 
> > Hi Macro, Seems the max workable fifo-size in test_sctp.py is 16. With fifo-
> > size in test_sctp.py set to 16, the throughput is only 4Gbps (VPP is under
> > release mode), I think the real number should be more than this if we can
> > increase both fifo-size and mbytes in test_sctp.py.   If
> > increase fifo-size to 20, or increase mbytes in test_sctp.py to more than
> > 2000, an issue will happen. Maybe “make test” is only for functional
> > test. Best Regards,Chengqiang Yao  From: 
> > vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Marco Varlese
> > Sent: Thursday, November 8, 2018 8:20 PM
> > To: Yao, Chengqiang 
> > Cc: vpp-dev@lists.fd.io
> > Subject: Re: [vpp-dev] #vpp sctp echo test crash On Thu, 2018-11-08 at 11:59
> > +, Yao, Chengqiang wrote:
> > > Hi Macro,
> > >  
> > > I’m running on master branch and latest version.
> > >  
> > > “make test TEST-test_sctp.py” also works for me. I want to benchmark the
> > > performance of sctp, but fifo-size is only 4 in test_sctp.py, so the
> > > throughput is only ~2Gbps. If I increase the fifo-size in test_sctp.py,
> > > then the test fails.
> > Please see:
> > src/vnet/session-apps/echo_client.c
> > src/vnet/session-apps/echo_server.c
> >  
> > In there you would see that fifo-size is shifted left by 10 (that means 4
> > becomes 4096). Maybe you want to try with 8 or 16?
> > Hopefully, Florin can shed some light about the usage of 4096 for the fifo-
> > size... which would eventually mean a fifo of 4M entries?
> >  
> > >  
> > > That’s why I want to use CLI commands to test SCTP. I’m not intended to
> > > run multiple clients, the reason I set nclients=2 is because test_sctp.py
> > > does the same thing, I just want to keep the same.
> > I am not sure why you see nclients=2 in test_sctp.py... there's no mention
> > of it on latest MASTER... 
> > >   You mean you use the same commands in my last mail, and there is no
> > > issue? If yes, then I need to check my setup.   Best Regards,Chengqiang
> > > Yao   From: Marco Varlese [mailto:mvarl...@suse.de] 
> > > Sent: Thursday, November 8, 2018 6:52 PM
> > > To: Yao, Chengqiang 
> > > Cc: vpp-dev@lists.fd.io
> > > Subject: Re: [vpp-dev] #vpp sctp echo test crash Dear Yao, First of all,
> > > are you on MASTER branch or some other release? Second, can you run "make
> > > test TEST=test_sctp.py" and see if that works for you? It all looks good
> > > on my side and on Jenkins. If you are interested in running multiple
> > > clients, you can do that by editing test_sctp.py and add "nclients X"
> > > (where X can be 2 or more). Again, I have just tested it right now and I
> > > cannot see that issue.  Cheers,Marco On Thu, 2018-11-08 at 09:20 +,
> > > Yao, Chengqiang wrote:
> > > > Hi Macro, I follow test_sctp.py to use following commands in server and
> > > > client, but client can not connect server with an error printed
> > > > “echo_client_node_fn:238: stuck clients” as you can see below.Do I miss
> > > > any command ?  Server:vpp# set int ip address FortyGigabitEthernet18/0/1
> > > > 192.168.60.73/24vpp# set int state FortyGigabitEthernet18/0/1 upvpp# set
> > > > ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68vpp#
> > > > session enablevpp# app ns add id 0 secret 0 sw_if_index 2vpp# test echo
> > > > server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234  Client:vpp#
> > > > set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24vpp# set
> > > > int state FortyGigabitEthernet18/0/0 upvpp# set ip arp
> > > > FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09vpp# session
> > > > enablevpp# app ns add id 1 secret 0 sw_if_index 1vpp# test echo client
> > > > nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes syn-timeout 3
> > > > uri sctp://192.168.60.73/1234   2 three-way handshakes in 0.00 seconds
> > > > 4648.53/sTest started at 37.8359870: echo_client_node_fn:238: stuck
> > > > clientsTimeout with 2 sessions still active...test failedtest echo
> > > > clients: failed: timeout with 2 sessions  Best 

Re: [vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Prashant Upadhyaya
Hi Ole,

Thanks for the information.

Suppose my IP datagram gets fragmented into fragments F.1 and F.2, do
these again get submitted to ip4-input ?
I am trying to figure out the path in the graph from the time I submit
my v4 IP datagram to ip4-lookup.
What is crucial for me to know is if the fragments do land up at
ip4-input or not.

Regards
-Prashant


On Thu, Nov 8, 2018 at 10:11 PM Ole Troan  wrote:
>
>
>
> > On 8 Nov 2018, at 23:26, Prashant Upadhyaya  wrote:
> >
> > Hi,
> >
> > If I hand-construct an IP datagram (bigger than mtu) using chained
> > vlib buffers and send this chain to ip4-lookup, would that be
> > fragmented and sent out as per the mtu requirements of the interface
> > from which the packet is determined to be sent out ? (assume that the
> > rx and tx sw_if_index is properly set)
> >
> > If not, which node do I send this datagram to, to achieve effectively
> > the above ?
>
> Yes, if IPv4 and DF==0.
> And you better remember that IP fragments are almost never a good idea.
>
> Cheers
> Ole
>
>
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> >
> > View/Reply Online (#11172): https://lists.fd.io/g/vpp-dev/message/11172
> > Mute This Topic: https://lists.fd.io/mt/28037801/675193
> > Group Owner: vpp-dev+ow...@lists.fd.io
> > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [otr...@employees.org]
> > -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11174): https://lists.fd.io/g/vpp-dev/message/11174
Mute This Topic: https://lists.fd.io/mt/28037801/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Ole Troan


> On 8 Nov 2018, at 23:26, Prashant Upadhyaya  wrote:
> 
> Hi,
> 
> If I hand-construct an IP datagram (bigger than mtu) using chained
> vlib buffers and send this chain to ip4-lookup, would that be
> fragmented and sent out as per the mtu requirements of the interface
> from which the packet is determined to be sent out ? (assume that the
> rx and tx sw_if_index is properly set)
> 
> If not, which node do I send this datagram to, to achieve effectively
> the above ?

Yes, if IPv4 and DF==0. 
And you better remember that IP fragments are almost never a good idea. 

Cheers 
Ole


> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#11172): https://lists.fd.io/g/vpp-dev/message/11172
> Mute This Topic: https://lists.fd.io/mt/28037801/675193
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [otr...@employees.org]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11173): https://lists.fd.io/g/vpp-dev/message/11173
Mute This Topic: https://lists.fd.io/mt/28037801/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] Regarding IP Fragmentation

2018-11-08 Thread Prashant Upadhyaya
Hi,

If I hand-construct an IP datagram (bigger than mtu) using chained
vlib buffers and send this chain to ip4-lookup, would that be
fragmented and sent out as per the mtu requirements of the interface
from which the packet is determined to be sent out ? (assume that the
rx and tx sw_if_index is properly set)

If not, which node do I send this datagram to, to achieve effectively
the above ?

Regards
-Prashant
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11172): https://lists.fd.io/g/vpp-dev/message/11172
Mute This Topic: https://lists.fd.io/mt/28037801/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Florin Coras
Hi guys, 

I unfortunately missed this. Yes, the fifo size provided is the number of kB 
and yes you should be able to do 4MB (fifo-size 4096) or even higher. 

The “stuck clients” warning is just a notification, the test can still finish. 
To make sure you give the test enough time, add “test-timeout 
” to the list of parameters. 

Florin

> On Nov 8, 2018, at 5:46 AM, Yao, Chengqiang  wrote:
> 
> Hi Macro,
>  
> Seems the max workable fifo-size in test_sctp.py is 16. With fifo-size in 
> test_sctp.py set to 16, the throughput is only 4Gbps (VPP is under release 
> mode), I think the real number should be more than this if we can increase 
> both fifo-size and mbytes in test_sctp.py.
>  
> 
>  
>  
> If increase fifo-size to 20, or increase mbytes in test_sctp.py to more than 
> 2000, an issue will happen. Maybe “make test” is only for functional test.
>  
> 
>  
>   <>
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  <>From: vpp-dev@lists.fd.io  
> [mailto:vpp-dev@lists.fd.io ] On Behalf Of Marco 
> Varlese
> Sent: Thursday, November 8, 2018 8:20 PM
> To: Yao, Chengqiang  >
> Cc: vpp-dev@lists.fd.io 
> Subject: Re: [vpp-dev] #vpp sctp echo test crash
>  
> On Thu, 2018-11-08 at 11:59 +, Yao, Chengqiang wrote:
> Hi Macro,
>  
> I’m running on master branch and latest version.
>  
> “make test TEST-test_sctp.py” also works for me. I want to benchmark the 
> performance of sctp, but fifo-size is only 4 in test_sctp.py, so the 
> throughput is only ~2Gbps. If I increase the fifo-size in test_sctp.py, then 
> the test fails.
> Please see:
> src/vnet/session-apps/echo_client.c
> src/vnet/session-apps/echo_server.c
>  
> In there you would see that fifo-size is shifted left by 10 (that means 4 
> becomes 4096). Maybe you want to try with 8 or 16?
> Hopefully, Florin can shed some light about the usage of 4096 for the 
> fifo-size... which would eventually mean a fifo of 4M entries?
>  
>  
> That’s why I want to use CLI commands to test SCTP. I’m not intended to run 
> multiple clients, the reason I set nclients=2 is because test_sctp.py does 
> the same thing, I just want to keep the same.
> I am not sure why you see nclients=2 in test_sctp.py... there's no mention of 
> it on latest MASTER...
>  
>  
>  
> You mean you use the same commands in my last mail, and there is no issue? If 
> yes, then I need to check my setup.
>  
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  
> From: Marco Varlese [mailto:mvarl...@suse.de ] 
> Sent: Thursday, November 8, 2018 6:52 PM
> To: Yao, Chengqiang  >
> Cc: vpp-dev@lists.fd.io 
> Subject: Re: [vpp-dev] #vpp sctp echo test crash
>  
> Dear Yao,
>  
> First of all, are you on MASTER branch or some other release?
>  
> Second, can you run "make test TEST=test_sctp.py" and see if that works for 
> you? It all looks good on my side and on Jenkins.
>  
> If you are interested in running multiple clients, you can do that by editing 
> test_sctp.py and add "nclients X" (where X can be 2 or more).
>  
> Again, I have just tested it right now and I cannot see that issue.
>  
>  
> Cheers,
> Marco
>  
> On Thu, 2018-11-08 at 09:20 +, Yao, Chengqiang wrote:
> Hi Macro,
>  
> I follow test_sctp.py to use following commands in server and client, but 
> client can not connect server with an error printed “echo_client_node_fn:238: 
> stuck clients” as you can see below.
> Do I miss any command ?
>  
>  
> Server:
> vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> vpp# set int state FortyGigabitEthernet18/0/1 up
> vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
> vpp# session enable
> vpp# app ns add id 0 secret 0 sw_if_index 2
> vpp# test echo server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234 
> 
>  
>  
> Client:
> vpp# set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24
> vpp# set int state FortyGigabitEthernet18/0/0 up
> vpp# set ip arp FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09
> vpp# session enable
> vpp# app ns add id 1 secret 0 sw_if_index 1
> vpp# test echo client nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes 
> syn-timeout 3 uri sctp://192.168.60.73/1234 
>  
>  
>  
> 2 three-way handshakes in 0.00 seconds 4648.53/s
> Test started at 37.835987
> 0: echo_client_node_fn:238: stuck clients
> Timeout with 2 sessions still active...
> test failed
> test echo clients: failed: timeout with 2 sessions
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  
>  
> From: Marco Varlese [mailto:mvarl...@suse.de ] 
> Sent: Thursday, November 8, 2018 4:07 PM
> To: Yao, Chengqiang  >
> Cc: vpp-dev@lists.fd.io 
> Subject: Re: [vpp-dev] #vpp sctp echo test crash
>  
> Hi Yao,
>  
> As per test_sctp.py the command 

Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

2018-11-08 Thread Ni, Hongjun
Hi TSC members,

Our Initial code has been refactored and  gone through internal legal review.

How can we submit the code to the fd.io Foundation for IPR Review?

Thanks,
Hongjun

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Ni, Hongjun
Sent: Thursday, November 8, 2018 12:04 PM
To: Ni, Hongjun ; Edward Warnicke 
Cc: t...@lists.fd.io; vpp-dev@lists.fd.io; Wang, Drenfong 
; ??? ; 
chen...@huachentel.com; lizhuo...@cmhi.chinamobile.com; ??? 
; zhijl@chinatelecom.cn; changlin...@nxp.com; Wang 
Tianyi ; davidfgao(?? ; 
lixin...@huachentel.com; jingqing@alibaba-inc.com; gu.ji...@zte.com.cn; 
Jerome Tollet (jtollet) 
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb


Welcome Cisco to join Sweetcomb project!

https://wiki.fd.io/view/Project_Proposals/Sweetcomb

Thanks a lot,
Hongjun

From: t...@lists.fd.io [mailto:t...@lists.fd.io] On 
Behalf Of Ni, Hongjun
Sent: Thursday, November 1, 2018 8:40 AM
To: Ni, Hongjun mailto:hongjun...@intel.com>>; Edward 
Warnicke mailto:hagb...@gmail.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; Wang Tianyi 
mailto:tianyi.w...@tieto.com>>; davidfgao(?? 
mailto:davidf...@tencent.com>>; 
lixin...@huachentel.com; 
jingqing@alibaba-inc.com; 
gu.ji...@zte.com.cn
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb


Welcome ZTE to join!

Thanks,
Hongjun

From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Ni, Hongjun
Sent: Thursday, October 25, 2018 9:22 AM
To: Edward Warnicke mailto:hagb...@gmail.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; Wang Tianyi 
mailto:tianyi.w...@tieto.com>>; davidfgao(?? 
mailto:davidf...@tencent.com>>; 
lixin...@huachentel.com; 
jingqing@alibaba-inc.com
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

Hi all,

Some guys are asking for the original code in private.
Here is our answer:


We are working on reworking the original code, and doing internal legal review.

When it is done,  we will submit the code to FD.io community for IPR review in 
one or two weeks.

Thanks a lot,
Hongjun

From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Edward Warnicke
Sent: Tuesday, October 23, 2018 9:47 PM
To: Ni, Hongjun mailto:hongjun...@intel.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; Wang Tianyi 
mailto:tianyi.w...@tieto.com>>; davidfgao(?? 
mailto:davidf...@tencent.com>>; 
lixin...@huachentel.com; 
jingqing@alibaba-inc.com
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

I look forward to it :)

Ed

On Tue, Oct 23, 2018 at 8:42 AM Ni, Hongjun 
mailto:hongjun...@intel.com>> wrote:
Hi Ed,

OK. I or some project proposer will join the Nov 8 8am PT TSC meeting and 
present the proposal.

Thanks a lot,
Hongjun

From: t...@lists.fd.io 
[mailto:t...@lists.fd.io] On Behalf Of Edward Warnicke
Sent: Tuesday, October 23, 2018 9:15 PM
To: Ni, Hongjun mailto:hongjun...@intel.com>>
Cc: t...@lists.fd.io; 
vpp-dev@lists.fd.io; Wang, Drenfong 
mailto:drenfong.w...@intel.com>>; ??? 
mailto:wangchuan...@huachentel.com>>; 
chen...@huachentel.com; 
lizhuo...@cmhi.chinamobile.com; ??? 
mailto:lihf...@chinaunicom.cn>>; 
zhijl@chinatelecom.cn; 
changlin...@nxp.com; 

Re: [vpp-dev] New Committer Nomination: Andrew Yourtchenko

2018-11-08 Thread Neale Ranns via Lists.Fd.Io
+1

-Message d'origine-
De :  au nom de "Dave Barach via Lists.Fd.Io" 

Répondre à : "Dave Barach (dbarach)" 
Date : jeudi 8 novembre 2018 à 13:13
À : "vpp-dev@lists.fd.io" 
Cc : "vpp-dev@lists.fd.io" 
Objet : [vpp-dev] New Committer Nomination: Andrew Yourtchenko

In view of significant code contributions to the vpp project - see below - 
I'm pleased to nominate Andrew Yourtchenko as a vpp project committer. I have 
high confidence that he'll be a major asset to the project in a committer role. 
 

Andrew has contributed 181 merged patches, including significant new 
feature work in the ACL plugin. Example: https://gerrit.fd.io/r/#/c/13162
 
Committers, please vote (+1, 0, -1) on vpp-dev@ We'll need a recorded 
vote so that the TSC will approve Andrew's nomination.

Thanks... Dave



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11164): https://lists.fd.io/g/vpp-dev/message/11164
Mute This Topic: https://lists.fd.io/mt/28035544/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] New Committer Nomination: Andrew Yourtchenko

2018-11-08 Thread Marco Varlese
+1

On Thu, 2018-11-08 at 12:13 +, Dave Barach via Lists.Fd.Io wrote:
> In view of significant code contributions to the vpp project - see below - I'm
> pleased to nominate Andrew Yourtchenko as a vpp project committer. I have high
> confidence that he'll be a major asset to the project in a committer role.  
> 
> Andrew has contributed 181 merged patches, including significant new feature
> work in the ACL plugin. Example: https://gerrit.fd.io/r/#/c/13162
>  
> Committers, please vote (+1, 0, -1) on vpp-dev@ We'll need a recorded vote
> so that the TSC will approve Andrew's nomination.
> 
> Thanks... Dave
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#11158): https://lists.fd.io/g/vpp-dev/message/11158
> Mute This Topic: https://lists.fd.io/mt/28035544/675056
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [mvarl...@suse.de]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11162): https://lists.fd.io/g/vpp-dev/message/11162
Mute This Topic: https://lists.fd.io/mt/28035544/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Marco Varlese
On Thu, 2018-11-08 at 11:59 +, Yao, Chengqiang wrote:
> Hi Macro,
> 
>  
> 
> I’m running on master branch and latest version.
> 
>  
> 
> “make test TEST-test_sctp.py” also works for me. I want to benchmark the
> performance of sctp, but fifo-size is only 4 in test_sctp.py,
>  so the throughput is only ~2Gbps. If I increase the fifo-size in
> test_sctp.py, then the test fails.
Please see:
src/vnet/session-apps/echo_client.c
src/vnet/session-apps/echo_server.c

In there you would see that fifo-size is shifted left by 10 (that means 4
becomes 4096). Maybe you want to try with 8 or 16?
Hopefully, Florin can shed some light about the usage of 4096 for the fifo-
size... which would eventually mean a fifo of 4M entries?

> That’s why I want to use CLI commands to test SCTP. I’m not intended to run
> multiple clients, the reason I set nclients=2 is because
>  test_sctp.py does the same thing, I just want to keep the same.
I am not sure why you see nclients=2 in test_sctp.py... there's no mention of it
on latest MASTER...
>  
> You mean you use the same commands in my last mail, and there is no issue? If
> yes, then I need to check my setup.
>  
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  
> 
> 
> From: Marco Varlese [mailto:mvarl...@suse.de]
> 
> 
> Sent: Thursday, November 8, 2018 6:52 PM
> 
> To: Yao, Chengqiang 
> 
> Cc: vpp-dev@lists.fd.io
> 
> Subject: Re: [vpp-dev] #vpp sctp echo test crash
> 
> 
>  
> 
> Dear Yao,
> 
> 
>  
> 
> 
> First of all, are you on MASTER branch or some other release?
> 
> 
>  
> 
> 
> Second, can you run "make test TEST=test_sctp.py" and see if that works for
> you? It all looks good on my side and on Jenkins.
> 
> 
>  
> 
> 
> If you are interested in running multiple clients, you can do that by editing
> test_sctp.py and add "nclients X" (where X can be 2 or more).
> 
> 
>  
> 
> 
> Again, I have just tested it right now and I cannot see that issue.
> 
> 
> 
>  
> 
> 
>  
> 
> 
> Cheers,
> 
> 
> Marco
> 
> 
>  
> 
> 
> On Thu, 2018-11-08 at 09:20 +, Yao, Chengqiang wrote:
> 
> > Hi Macro,
> >  
> > I follow test_sctp.py to use following commands in server and client, but
> > client can not connect server with an error printed
> > “echo_client_node_fn:238:
> >  stuck clients” as you can see below.
> > Do I miss any command ?
> >  
> >  
> > Server:
> > vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> > vpp# set int state FortyGigabitEthernet18/0/1 up
> > vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
> > vpp# session enable
> > vpp# app ns add id 0 secret 0 sw_if_index 2
> > vpp# test echo server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234
> >  
> >  
> > Client:
> > vpp# set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24
> > vpp# set int state FortyGigabitEthernet18/0/0 up
> > vpp# set ip arp FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09
> > vpp# session enable
> > vpp# app ns add id 1 secret 0 sw_if_index 1
> > vpp# test echo client nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes
> > syn-timeout 3 uri sctp://192.168.60.73/1234
> >  
> >  
> >  
> > 2 three-way handshakes in 0.00 seconds 4648.53/s
> > Test started at 37.835987
> > 0: echo_client_node_fn:238: stuck clients
> > Timeout with 2 sessions still active...
> > test failed
> > test echo clients: failed: timeout with 2 sessions
> >  
> >  
> > Best Regards,
> > Chengqiang Yao
> >  
> >  
> >  
> >  
> > 
> > 
> > From: Marco Varlese [mailto:mvarl...@suse.de]
> > 
> > 
> > Sent: Thursday, November 8, 2018 4:07 PM
> > 
> > To: Yao, Chengqiang 
> > 
> > Cc: vpp-dev@lists.fd.io
> > 
> > Subject: Re: [vpp-dev] #vpp sctp echo test crash
> > 
> > 
> >  
> > 
> > Hi Yao,
> > 
> > 
> >  
> > 
> > 
> > As per test_sctp.py the command is:
> > 
> > 
> >  
> > 
> > 
> > test echo server appns 0 fifo-size 4 [URI]
> > 
> > 
> >  
> > 
> > 
> > Where URI is made up as: sctp://IP/PORT
> > 
> > 
> >  
> > 
> > 
> > Please, take a look at "test/test_sctp.py" to see also the client side of
> > it.
> > 
> > 
> >  
> > 
> > 
> >  
> > 
> > 
> > HTH,
> > 
> > 
> > Marco
> > 
> > 
> >  
> > 
> > 
> > On Wed, 2018-11-07 at 15:01 +, Yao, Chengqiang wrote:
> > 
> > > Hi Macro,
> > >  
> > > I use following CLI command to setup SCTP server, but VPP crashed. While
> > > this command works for TCP/UDP.
> > >  
> > > Can you tell me  the correct cli commands to run echo test for SCTP?
> > >  
> > >  
> > > vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> > > vpp# set int state FortyGigabitEthernet18/0/1 up
> > > vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
> > > vpp# test echo server fifo-size 4096 uri sctp://192.168.60.73/1234 no-echo
> > >  
> > >  
> > > After debugging, I found it’s caused by invalid sw_if_index in
> > > sctp_connection_bind function of sctp.c.
> > > 
> > >  
> > >  
> > >  
> > > Best Regards,
> > > Chengqiang Yao
> > >  
> > >  
> > >  
> > > 
> > > 
> > > From:
> > > 

Re: [vpp-dev] New Committer Nomination: Andrew Yourtchenko

2018-11-08 Thread Damjan Marion via Lists.Fd.Io
+1

-- 
Damjan

> On 8 Nov 2018, at 13:13, Dave Barach via Lists.Fd.Io 
>  wrote:
> 
> In view of significant code contributions to the vpp project - see below - 
> I'm pleased to nominate Andrew Yourtchenko as a vpp project committer. I have 
> high confidence that he'll be a major asset to the project in a committer 
> role.  
> 
> Andrew has contributed 181 merged patches, including significant new feature 
> work in the ACL plugin. Example: https://gerrit.fd.io/r/#/c/13162
> 
> Committers, please vote (+1, 0, -1) on vpp-dev@ We'll need a recorded 
> vote so that the TSC will approve Andrew's nomination.
> 
> Thanks... Dave
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#11158): https://lists.fd.io/g/vpp-dev/message/11158
> Mute This Topic: https://lists.fd.io/mt/28035544/675642
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [dmar...@me.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11160): https://lists.fd.io/g/vpp-dev/message/11160
Mute This Topic: https://lists.fd.io/mt/28035544/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] PPPoE plugin documentation/support

2018-11-08 Thread Ni, Hongjun
Hi alp arslan,

It works in my server. 

Below is my configuration:

vpp# set int state TenGigabitEthernet5/0/0 up
vpp# set int ip table TenGigabitEthernet5/0/0 0
vpp# set int ip address TenGigabitEthernet5/0/0 100.1.1.3/32
vpp#
vpp# set int state TenGigabitEthernet5/0/1 up
vpp# set int ip table TenGigabitEthernet5/0/1 0
vpp# set int ip address TenGigabitEthernet5/0/1 100.1.1.200/32
vpp# ip route add 100.1.1.100/24 via 100.1.1.4 TenGigabitEthernet5/0/1
vpp# set ip arp TenGigabitEthernet5/0/1 100.1.1.100 ..0001
vpp#
vpp# create pppoe cp cp-if-index 2
vpp#
vpp# trace add dpdk-input 10

//Then you sent PADI packet:

vpp#
vpp# sh trace
--- Start of thread 0 vpp_main ---
Packet 1

00:00:49:834924: dpdk-input
  TenGigabitEthernet5/0/0 rx queue 0
  buffer 0xa4e03: current data 0, length 60, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x0
  ext-hdr-valid
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0
  PKT MBUF: port 0, nb_segs 1, pkt_len 60
buf_len 2176, data_len 60, ol_flags 0x180, data_off 128, phys_addr 
0x6dd38140
packet_type 0x1 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
rss 0x0 fdir.hi 0x0 fdir.lo 0x0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  PPPOE_DISCOVERY: 00:11:01:00:00:01 -> ff:ff:ff:ff:ff:ff
00:00:49:834959: ethernet-input
  PPPOE_DISCOVERY: 00:11:01:00:00:01 -> ff:ff:ff:ff:ff:ff
00:00:49:834978: pppoe-cp-dispatch
  PPPoE dispatch from sw_if_index -1 next 1 error 0
  pppoe_code 0x9  ppp_proto 0x101
00:00:49:835469: TenGigabitEthernet5/0/1-output
  TenGigabitEthernet5/0/1
  PPPOE_DISCOVERY: 00:11:01:00:00:01 -> ff:ff:ff:ff:ff:ff
00:00:49:835473: TenGigabitEthernet5/0/1-tx
  TenGigabitEthernet5/0/1 tx queue 0
  buffer 0xa4e03: current data 0, length 60, free-list 0, clone-count 0, 
totlen-nifb 0, trace 0x0
  ext-hdr-valid
  l4-cksum-computed l4-cksum-correct l2-hdr-offset 0 
l3-hdr-offset 14
  PKT MBUF: port 0, nb_segs 1, pkt_len 60
buf_len 2176, data_len 60, ol_flags 0x180, data_off 128, phys_addr 
0x6dd38140
packet_type 0x1 l2_len 0 l3_len 0 outer_l2_len 0 outer_l3_len 0
rss 0x0 fdir.hi 0x0 fdir.lo 0x0
Packet Offload Flags
  PKT_RX_IP_CKSUM_GOOD (0x0080) IP cksum of RX pkt. is valid
  PKT_RX_L4_CKSUM_GOOD (0x0100) L4 cksum of RX pkt. is valid
Packet Types
  RTE_PTYPE_L2_ETHER (0x0001) Ethernet packet
  PPPOE_DISCOVERY: 00:11:01:00:00:01 -> ff:ff:ff:ff:ff:ff

vpp#
vpp#
vpp# sh pppoe session
No pppoe sessions configured...
vpp#
vpp# sh pppoe fib
no pppoe fib entries
vpp#
vpp#

//Then you need to configure pppoe session:

vpp# create pppoe session client-ip 100.1.1.2 session-id 1 client-mac 
00:11:01:00:00:01
pppoe_session0

vpp# sh pppoe fib
Mac-Address session_id  sw_if_index  session_index
 00:11:01:00:00:01   1   1 0
1 pppoe fib entries
vpp#
vpp# sh pppoe session
[0] sw-if-index 3 client-ip 100.1.1.2 session-id 1 encap-if-index 1 
decap-fib-index 0
local-mac 90:e2:ba:48:7a:80  client-mac 00:11:01:00:00:01

//For l3 mac mismatch, maybe you need to set your control interface to l2 mode.

Thanks,
Hongjun


-Original Message-
From: alp.ars...@xflowresearch.com [mailto:alp.ars...@xflowresearch.com] 
Sent: Thursday, November 8, 2018 6:38 PM
To: Ni, Hongjun ; vpp-dev@lists.fd.io
Subject: RE: [vpp-dev] PPPoE plugin documentation/support

Still waiting on this. 
Can anyone help me on this one?

-Original Message-
From: Muhammad Alp Arslan (alp.ars...@xflowresearch.com) 
[mailto:alp.ars...@xflowresearch.com]
Sent: Friday, November 2, 2018 4:07 PM
To: 'Ni, Hongjun'; 'vpp-dev@lists.fd.io'
Subject: RE: [vpp-dev] PPPoE plugin documentation/support

Hello, 

I want to use the latest VPP, instead of 17.10. The latest ( 18.10 ) version 
pppoe plugin is not working correctly. 

The PADI packets are successfully sent to the cp interface, but it is not 
creating and pppoe fib, due to which the PADO packets are being dropped.

Packet 1

02:34:23:456994: virtio-input
  virtio: hw_if_index 3 next-index 4 vring 0 len 63
hdr: flags 0x00 gso_type 0x00 hdr_len 0 gso_size 0 csum_start 0 csum_offset 
0 num_buffers 1
02:34:23:457015: ethernet-input
  PPPOE_DISCOVERY: e6:b1:bd:65:91:c1 -> 52:54:00:79:64:b9
02:34:23:457031: error-drop
  ethernet-input: l3 mac mismatch

vpp# show pppoe fib
no pppoe fib entries

Is this behavior intentional? Do I need to configure anything else other than 
the cp interface?  

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of 
alp.ars...@xflowresearch.com
Sent: Wednesday, October 24, 2018 2:51 PM
To: 'Ni, Hongjun'; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] PPPoE plugin documentation/support

Its working fine with VPP 17.10. I can see that a pppoe fib is 

[vpp-dev] New Committer Nomination: Andrew Yourtchenko

2018-11-08 Thread Dave Barach via Lists.Fd.Io
In view of significant code contributions to the vpp project - see below - I'm 
pleased to nominate Andrew Yourtchenko as a vpp project committer. I have high 
confidence that he'll be a major asset to the project in a committer role.  

Andrew has contributed 181 merged patches, including significant new feature 
work in the ACL plugin. Example: https://gerrit.fd.io/r/#/c/13162
 
Committers, please vote (+1, 0, -1) on vpp-dev@ We'll need a recorded vote 
so that the TSC will approve Andrew's nomination.

Thanks... Dave

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11158): https://lists.fd.io/g/vpp-dev/message/11158
Mute This Topic: https://lists.fd.io/mt/28035544/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Yao, Chengqiang
Hi Macro,

I’m running on master branch and latest version.

“make test TEST-test_sctp.py” also works for me. I want to benchmark the 
performance of sctp, but fifo-size is only 4 in test_sctp.py, so the throughput 
is only ~2Gbps. If I increase the fifo-size in test_sctp.py, then the test 
fails.
That’s why I want to use CLI commands to test SCTP. I’m not intended to run 
multiple clients, the reason I set nclients=2 is because test_sctp.py does the 
same thing, I just want to keep the same.

You mean you use the same commands in my last mail, and there is no issue? If 
yes, then I need to check my setup.



Best Regards,
Chengqiang Yao



From: Marco Varlese [mailto:mvarl...@suse.de]
Sent: Thursday, November 8, 2018 6:52 PM
To: Yao, Chengqiang 
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp sctp echo test crash

Dear Yao,

First of all, are you on MASTER branch or some other release?

Second, can you run "make test TEST=test_sctp.py" and see if that works for 
you? It all looks good on my side and on Jenkins.

If you are interested in running multiple clients, you can do that by editing 
test_sctp.py and add "nclients X" (where X can be 2 or more).

Again, I have just tested it right now and I cannot see that issue.


Cheers,
Marco

On Thu, 2018-11-08 at 09:20 +, Yao, Chengqiang wrote:
Hi Macro,

I follow test_sctp.py to use following commands in server and client, but 
client can not connect server with an error printed “echo_client_node_fn:238: 
stuck clients” as you can see below.
Do I miss any command ?


Server:
vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
vpp# set int state FortyGigabitEthernet18/0/1 up
vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
vpp# session enable
vpp# app ns add id 0 secret 0 sw_if_index 2
vpp# test echo server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234


Client:
vpp# set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24
vpp# set int state FortyGigabitEthernet18/0/0 up
vpp# set ip arp FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09
vpp# session enable
vpp# app ns add id 1 secret 0 sw_if_index 1
vpp# test echo client nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes 
syn-timeout 3 uri sctp://192.168.60.73/1234



2 three-way handshakes in 0.00 seconds 4648.53/s
Test started at 37.835987
0: echo_client_node_fn:238: stuck clients
Timeout with 2 sessions still active...
test failed
test echo clients: failed: timeout with 2 sessions


Best Regards,
Chengqiang Yao




From: Marco Varlese [mailto:mvarl...@suse.de]
Sent: Thursday, November 8, 2018 4:07 PM
To: Yao, Chengqiang mailto:chengqiang@intel.com>>
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp sctp echo test crash

Hi Yao,

As per test_sctp.py the command is:

test echo server appns 0 fifo-size 4 [URI]

Where URI is made up as: sctp://IP/PORT

Please, take a look at "test/test_sctp.py" to see also the client side of it.


HTH,
Marco

On Wed, 2018-11-07 at 15:01 +, Yao, Chengqiang wrote:
Hi Macro,

I use following CLI command to setup SCTP server, but VPP crashed. While this 
command works for TCP/UDP.

Can you tell me  the correct cli commands to run echo test for SCTP?


vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
vpp# set int state FortyGigabitEthernet18/0/1 up
vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
vpp# test echo server fifo-size 4096 uri sctp://192.168.60.73/1234 no-echo


After debugging, I found it’s caused by invalid sw_if_index in 
sctp_connection_bind function of sctp.c.



Best Regards,
Chengqiang Yao



From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Yao, Chengqiang
Sent: Thursday, October 25, 2018 9:15 PM
To: Marco Varlese mailto:mvarl...@suse.de>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp

Hi Macro,

Thanks for your information, I will have a try.


Best Regards,
Chengqiang Yao



From: Marco Varlese [mailto:mvarl...@suse.de]
Sent: Thursday, October 25, 2018 9:09 PM
To: Yao, Chengqiang 
mailto:chengqiang@intel.com>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp

Hi,

On Thu, 2018-10-25 at 04:59 +, Yao, Chengqiang wrote:
Hi Macro,

Is there any sample code to show how to use SCTP (such as association, packet 
transmission/reception, etc.)? And is there any performance report for SCTP?
You can have a look at the test for SCTP:
1) test/test_sctp.py
2) src/vnet/session-apps/echo_client.c & echo_server.c

The echo_client and echo_server are used by TCP / UDP and SCTP to exercise the 
networking stack implemented.

With regards to the state-machine (I assumed that's what you're asking by 
"association", "packet transmssion/reception", etc.), the whole of it is gone 
through when running the tests.
If you are interested in seeing/learning how that's implemented I am afraid you 
need to look into the code tho.


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Marco Varlese
Dear Yao,
First of all, are you on MASTER branch or some other release?
Second, can you run "make test TEST=test_sctp.py" and see if that works for you?
It all looks good on my side and on Jenkins.
If you are interested in running multiple clients, you can do that by editing
test_sctp.py and add "nclients X" (where X can be 2 or more).
Again, I have just tested it right now and I cannot see that issue. 

Cheers,Marco
On Thu, 2018-11-08 at 09:20 +, Yao, Chengqiang wrote:
> Hi Macro,
>  
> I follow test_sctp.py to use following commands in server and client, but
> client can not connect server with an error printed “echo_client_node_fn:238:
>  stuck clients” as you can see below.
> Do I miss any command ?
>  
>  
> Server:
> vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> vpp# set int state FortyGigabitEthernet18/0/1 up
> vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
> vpp# session enable
> vpp# app ns add id 0 secret 0 sw_if_index 2
> vpp# test echo server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234
>  
>  
> Client:
> vpp# set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24
> vpp# set int state FortyGigabitEthernet18/0/0 up
> vpp# set ip arp FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09
> vpp# session enable
> vpp# app ns add id 1 secret 0 sw_if_index 1
> vpp# test echo client nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes syn-
> timeout 3 uri sctp://192.168.60.73/1234
>  
>  
>  
> 2 three-way handshakes in 0.00 seconds 4648.53/s
> Test started at 37.835987
> 0: echo_client_node_fn:238: stuck clients
> Timeout with 2 sessions still active...
> test failed
> test echo clients: failed: timeout with 2 sessions
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  
>  
> 
> 
> From: Marco Varlese [mailto:mvarl...@suse.de]
> 
> 
> Sent: Thursday, November 8, 2018 4:07 PM
> 
> To: Yao, Chengqiang 
> 
> Cc: vpp-dev@lists.fd.io
> 
> Subject: Re: [vpp-dev] #vpp sctp echo test crash
> 
> 
>  
> 
> Hi Yao,
> 
> 
>  
> 
> 
> As per test_sctp.py the command is:
> 
> 
>  
> 
> 
> test echo server appns 0 fifo-size 4 [URI]
> 
> 
>  
> 
> 
> Where URI is made up as: sctp://IP/PORT
> 
> 
>  
> 
> 
> Please, take a look at "test/test_sctp.py" to see also the client side of it.
> 
> 
>  
> 
> 
>  
> 
> 
> HTH,
> 
> 
> Marco
> 
> 
>  
> 
> 
> On Wed, 2018-11-07 at 15:01 +, Yao, Chengqiang wrote:
> 
> > Hi Macro,
> >  
> > I use following CLI command to setup SCTP server, but VPP crashed. While
> > this command works for TCP/UDP.
> >  
> > Can you tell me  the correct cli commands to run echo test for SCTP?
> >  
> >  
> > vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> > vpp# set int state FortyGigabitEthernet18/0/1 up
> > vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
> > vpp# test echo server fifo-size 4096 uri sctp://192.168.60.73/1234 no-echo
> >  
> >  
> > After debugging, I found it’s caused by invalid sw_if_index in
> > sctp_connection_bind function of sctp.c.
> > 
> >  
> >  
> >  
> > Best Regards,
> > Chengqiang Yao
> >  
> >  
> >  
> > 
> > 
> > From:
> > vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io]
> > On Behalf Of Yao, Chengqiang
> > 
> > Sent: Thursday, October 25, 2018 9:15 PM
> > 
> > To: Marco Varlese ;
> > vpp-dev@lists.fd.io
> > 
> > Subject: Re: [vpp-dev] #vpp
> > 
> > 
> >  
> > Hi Macro,
> >  
> > Thanks for your information, I will have a try.
> >  
> >  
> > Best Regards,
> > Chengqiang Yao
> >  
> >  
> >  
> > 
> > 
> > From: Marco Varlese [mailto:mvarl...@suse.de]
> > 
> > 
> > Sent: Thursday, October 25, 2018 9:09 PM
> > 
> > To: Yao, Chengqiang ;
> > vpp-dev@lists.fd.io
> > 
> > Subject: Re: [vpp-dev] #vpp
> > 
> > 
> >  
> > 
> > Hi,
> > 
> > 
> >  
> > 
> > 
> > On Thu, 2018-10-25 at 04:59 +, Yao, Chengqiang wrote:
> > 
> > > Hi Macro,
> > >  
> > > Is there any sample code to show how to use SCTP (such as association,
> > > packet transmission/reception, etc.)? And is there any performance
> > >  report for SCTP?
> > 
> > You can have a look at the test for SCTP:
> > 
> > 
> > 1) test/test_sctp.py
> > 
> > 
> > 2) src/vnet/session-apps/echo_client.c & echo_server.c
> > 
> > 
> >  
> > 
> > 
> > The echo_client and echo_server are used by TCP / UDP and SCTP to exercise
> > the networking stack implemented.
> > 
> > 
> >  
> > 
> > 
> > With regards to the state-machine (I assumed that's what you're asking by
> > "association", "packet transmssion/reception", etc.), the whole of it is
> > gone through when running the tests.
> > 
> > 
> > If you are interested in seeing/learning how that's implemented I am afraid
> > you need to look into the code tho.
> > 
> > 
> >  
> > 
> > 
> > With regards to performance: no, there're no reports. However, something can
> > be retrieved by running the test_sctp.py since at the end it prints out how
> > much data has been transferred and how long that took.
> > 
> > 
> >  
> > 
> > >  
> > >  
> > > Best 

Re: [vpp-dev] PPPoE plugin documentation/support

2018-11-08 Thread alp . arslan
Still waiting on this. 
Can anyone help me on this one?

-Original Message-
From: Muhammad Alp Arslan (alp.ars...@xflowresearch.com)
[mailto:alp.ars...@xflowresearch.com] 
Sent: Friday, November 2, 2018 4:07 PM
To: 'Ni, Hongjun'; 'vpp-dev@lists.fd.io'
Subject: RE: [vpp-dev] PPPoE plugin documentation/support

Hello, 

I want to use the latest VPP, instead of 17.10. The latest ( 18.10 ) version
pppoe plugin is not working correctly. 

The PADI packets are successfully sent to the cp interface, but it is not
creating and pppoe fib, due to which the PADO packets are being dropped.

Packet 1

02:34:23:456994: virtio-input
  virtio: hw_if_index 3 next-index 4 vring 0 len 63
hdr: flags 0x00 gso_type 0x00 hdr_len 0 gso_size 0 csum_start 0
csum_offset 0 num_buffers 1
02:34:23:457015: ethernet-input
  PPPOE_DISCOVERY: e6:b1:bd:65:91:c1 -> 52:54:00:79:64:b9
02:34:23:457031: error-drop
  ethernet-input: l3 mac mismatch

vpp# show pppoe fib
no pppoe fib entries

Is this behavior intentional? Do I need to configure anything else other
than the cp interface?  

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of
alp.ars...@xflowresearch.com
Sent: Wednesday, October 24, 2018 2:51 PM
To: 'Ni, Hongjun'; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] PPPoE plugin documentation/support

Its working fine with VPP 17.10. I can see that a pppoe fib is created as
soon as the 1st PADI request arrives, which sets up the reverse path.
However, in VPP 18.07 & 18.10 there is no fib entry created and the PADO
packets are being dropped. 

The slides don't show a trace for the PADO replies. 

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Ni,
Hongjun
Sent: Wednesday, October 24, 2018 1:38 PM
To: alp.ars...@xflowresearch.com; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] PPPoE plugin documentation/support

Hi Alp Arslan,

Please see below slides for more details. There is some packet trace for
your reference.

https://schd.ws/hosted_files/onsna18/cf/Accelerated%20Open%20Source%20vBRAS%
20Solution%20Based%20on%20OpenBRAS%20and%20VPP%26DPDK.PPTX

Thanks,
Hongjun

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of
alp.ars...@xflowresearch.com
Sent: Wednesday, October 24, 2018 2:49 PM
To: Ni, Hongjun ; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] PPPoE plugin documentation/support

Dell - Internal Use - Confidential  

Dear Hongjun, 

I was able to correctly set up the cp interface, my mistake as I was giving
the wrong interface index. 
Now the PADI packets are passed to cp interface. 

I started a pppoe-server on the Linux side (tap0) interface, but VPP is
dropping the PADO packets. 
Adding a trace on the virtio-input shows this: 

00:04:07:498195: virtio-input
  virtio: hw_if_index 2 next-index 4 vring 0 len 71
hdr: flags 0x00 gso_type 0x00 hdr_len 0 gso_size 0 csum_start 0
csum_offset 0 num_buffers 1
00:04:07:498204: ethernet-input
  PPPOE_DISCOVERY: f6:a0:85:84:98:e6 -> 3c:fd:fe:25:e6:20
00:04:07:498209: error-drop
  ethernet-input: l3 mac mismatch

The destination MAC address belongs to the pppoe-client, that's connected to
the 10G interface. However, VPP doesn't seem to know where to forward the
PADO replies. 
Also there are no entries in the pppoe fib for this client. Can you please
help me with this one? Please let me know if you need any more information. 

Regards,
Alp Arslan


-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Ni,
Hongjun
Sent: Tuesday, October 23, 2018 1:07 PM
To: alp.ars...@xflowresearch.com; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] PPPoE plugin documentation/support

Hi Alp Arslan,

To make tap_cli work, you need to revert the code as per this patch:
https://gerrit.fd.io/r/#/c/9467/ 

Thanks,
Hongjun

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of
alp.ars...@xflowresearch.com
Sent: Tuesday, October 23, 2018 4:01 PM
To: Ni, Hongjun ; vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] PPPoE plugin documentation/support

Dell - Internal Use - Confidential  

Dear Hongjun, 

Thanks for the reply. 

I am using the VPP version 18.07. If the tap_cli is still present, can you
please point me towards what could be the problem with the existing plugin. 
I would like to see this one working a little bit, before starting to look
into tapv2.

Regards,
Alp Arslan

-Original Message-
From: Ni, Hongjun [mailto:hongjun...@intel.com]
Sent: Tuesday, October 23, 2018 12:51 PM
To: alp.ars...@xflowresearch.com; vpp-dev@lists.fd.io
Subject: RE: [vpp-dev] PPPoE plugin documentation/support

Hi Alp Arslan,

Since tap_cli code is going to be deprecated in favour of tapv2.
I suggest you leverage tapv2, and also need some rework for PPPoE plugin.

Thanks,
Hongjun

-Original Message-
From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of
alp.ars...@xflowresearch.com
Sent: 

Re: [vpp-dev] inet raw socket

2018-11-08 Thread saint_sun 孙 via Lists . Fd . Io

hello Ole,
yes, we have a control plane, and the protocols I  mentioned below run in the 
control plane.
when these protocols want to send packets, they organize their own protocol 
data then call inet raw socket to set the IP header and link header. when 
received a packet from the interface, first we will stripe the link header and 
ip header then hand over to the corresponding modules through inet raw socket. 
Now can you know what I want to do? 



可用于iOS的myMail发送


2018年11月8日 星期四 +0800 11:11 发件人 Ole Troan  :
>> Some protocols or functions need inet raw socket to transmit and receive 
>> packets such as ping/vrrp/pim, and I want to debug these functions.
>
>You are still leaving me guessing at what you are trying to do.
>
>You can implement these inside of VPP, where you obviously don’t need or use a 
>socket API.
>
>Sounds like you are talking about having these protocols implemented on the 
>control plane side.
>There are many ways of integrating a control plane with VPP.
>With e.g. a port mirroring approach, you would use Linux applications 
>unchanged. That’s not necessarily where I would go. We have some ideas around 
>improvements for the CP/DP interface, and I’m happy to engage in a discussion 
>with that, but you would have to share what problem you are trying to solve in 
>more detail.
>
>Best regards,
>Ole
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11154): https://lists.fd.io/g/vpp-dev/message/11154
Mute This Topic: https://lists.fd.io/mt/27857220/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Yao, Chengqiang
Hi Macro,

I follow test_sctp.py to use following commands in server and client, but 
client can not connect server with an error printed “echo_client_node_fn:238: 
stuck clients” as you can see below.
Do I miss any command ?


Server:
vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
vpp# set int state FortyGigabitEthernet18/0/1 up
vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
vpp# session enable
vpp# app ns add id 0 secret 0 sw_if_index 2
vpp# test echo server appns 0 fifo-size 4 uri sctp://192.168.60.73/1234


Client:
vpp# set int ip address FortyGigabitEthernet18/0/0 192.168.60.74/24
vpp# set int state FortyGigabitEthernet18/0/0 up
vpp# set ip arp FortyGigabitEthernet18/0/0 192.168.60.73 3c:fd:fe:c2:17:09
vpp# session enable
vpp# app ns add id 1 secret 0 sw_if_index 1
vpp# test echo client nclients 2 mbytes 10 appns 1 fifo-size 4 test-bytes 
syn-timeout 3 uri sctp://192.168.60.73/1234



2 three-way handshakes in 0.00 seconds 4648.53/s
Test started at 37.835987
0: echo_client_node_fn:238: stuck clients
Timeout with 2 sessions still active...
test failed
test echo clients: failed: timeout with 2 sessions


Best Regards,
Chengqiang Yao




From: Marco Varlese [mailto:mvarl...@suse.de]
Sent: Thursday, November 8, 2018 4:07 PM
To: Yao, Chengqiang 
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp sctp echo test crash

Hi Yao,

As per test_sctp.py the command is:

test echo server appns 0 fifo-size 4 [URI]

Where URI is made up as: sctp://IP/PORT

Please, take a look at "test/test_sctp.py" to see also the client side of it.


HTH,
Marco

On Wed, 2018-11-07 at 15:01 +, Yao, Chengqiang wrote:
Hi Macro,

I use following CLI command to setup SCTP server, but VPP crashed. While this 
command works for TCP/UDP.

Can you tell me  the correct cli commands to run echo test for SCTP?


vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
vpp# set int state FortyGigabitEthernet18/0/1 up
vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
vpp# test echo server fifo-size 4096 uri sctp://192.168.60.73/1234 no-echo


After debugging, I found it’s caused by invalid sw_if_index in 
sctp_connection_bind function of sctp.c.



Best Regards,
Chengqiang Yao



From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Yao, Chengqiang
Sent: Thursday, October 25, 2018 9:15 PM
To: Marco Varlese mailto:mvarl...@suse.de>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp

Hi Macro,

Thanks for your information, I will have a try.


Best Regards,
Chengqiang Yao



From: Marco Varlese [mailto:mvarl...@suse.de]
Sent: Thursday, October 25, 2018 9:09 PM
To: Yao, Chengqiang 
mailto:chengqiang@intel.com>>; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp

Hi,

On Thu, 2018-10-25 at 04:59 +, Yao, Chengqiang wrote:
Hi Macro,

Is there any sample code to show how to use SCTP (such as association, packet 
transmission/reception, etc.)? And is there any performance report for SCTP?
You can have a look at the test for SCTP:
1) test/test_sctp.py
2) src/vnet/session-apps/echo_client.c & echo_server.c

The echo_client and echo_server are used by TCP / UDP and SCTP to exercise the 
networking stack implemented.

With regards to the state-machine (I assumed that's what you're asking by 
"association", "packet transmssion/reception", etc.), the whole of it is gone 
through when running the tests.
If you are interested in seeing/learning how that's implemented I am afraid you 
need to look into the code tho.

With regards to performance: no, there're no reports. However, something can be 
retrieved by running the test_sctp.py since at the end it prints out how much 
data has been transferred and how long that took.



Best Regards,
Chengqiang Yao
Cheers,
Marco





From: vpp-dev@lists.fd.io 
[mailto:vpp-dev@lists.fd.io] On Behalf Of Marco Varlese
Sent: Wednesday, October 10, 2018 5:47 PM
To: srivastava.rac...@gmail.com; 
vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] #vpp

Hi Srivastava,

On Wed, 2018-10-10 at 01:23 -0700, 
srivastava.rac...@gmail.com wrote:
Hi

Does the VPP support SCTP. If yes what is the configuration for SCTP. Does it 
support the same features as the linux kernel SCTP ?
VPP has an implementation for SCTP. You can look into /src/vnet/sctp folder to 
see what we currently support in terms of RFC.
Any feedback (and contribution) is very much welcome!


Thanks
Rachit Srivastava
Thanks,
Marco


-=-=-=-=-=-=-=-=-=-=-=-


Links: You receive all messages sent to this group.


View/Reply Online (#10787):


https://lists.fd.io/g/vpp-dev/message/10787


Mute This Topic:


https://lists.fd.io/mt/27155313/675056


Mute #vpp:

Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Marco Varlese
Hi Yao,
As per test_sctp.py the command is:
test echo server appns 0 fifo-size 4 [URI]
Where URI is made up as: sctp://IP/PORT
Please, take a look at "test/test_sctp.py" to see also the client side of it.

HTH,Marco
On Wed, 2018-11-07 at 15:01 +, Yao, Chengqiang wrote:
> Hi Macro,
>  
> I use following CLI command to setup SCTP server, but VPP crashed. While this
> command works for TCP/UDP.
>  
> Can you tell me  the correct cli commands to run echo test for SCTP?
>  
>  
> vpp# set int ip address FortyGigabitEthernet18/0/1 192.168.60.73/24
> vpp# set int state FortyGigabitEthernet18/0/1 up
> vpp# set ip arp FortyGigabitEthernet18/0/1 192.168.60.74 3c:fd:fe:c2:12:68
> vpp# test echo server fifo-size 4096 uri sctp://192.168.60.73/1234 no-echo
>  
>  
> After debugging, I found it’s caused by invalid sw_if_index in
> sctp_connection_bind function of sctp.c.
> 
>  
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  
> 
> 
> From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io]
> On Behalf Of Yao, Chengqiang
> 
> Sent: Thursday, October 25, 2018 9:15 PM
> 
> To: Marco Varlese ; vpp-dev@lists.fd.io
> 
> Subject: Re: [vpp-dev] #vpp
> 
> 
>  
> Hi Macro,
>  
> Thanks for your information, I will have a try.
>  
>  
> Best Regards,
> Chengqiang Yao
>  
>  
>  
> 
> 
> From: Marco Varlese [mailto:mvarl...@suse.de]
> 
> 
> Sent: Thursday, October 25, 2018 9:09 PM
> 
> To: Yao, Chengqiang ;
> vpp-dev@lists.fd.io
> 
> Subject: Re: [vpp-dev] #vpp
> 
> 
>  
> 
> Hi,
> 
> 
>  
> 
> 
> On Thu, 2018-10-25 at 04:59 +, Yao, Chengqiang wrote:
> 
> > Hi Macro,
> >  
> > Is there any sample code to show how to use SCTP (such as association,
> > packet transmission/reception, etc.)? And is there any performance
> >  report for SCTP?
> 
> You can have a look at the test for SCTP:
> 
> 
> 1) test/test_sctp.py
> 
> 
> 2) src/vnet/session-apps/echo_client.c & echo_server.c
> 
> 
>  
> 
> 
> The echo_client and echo_server are used by TCP / UDP and SCTP to exercise the
> networking stack implemented.
> 
> 
>  
> 
> 
> With regards to the state-machine (I assumed that's what you're asking by
> "association", "packet transmssion/reception", etc.), the whole of it is gone
> through when running the tests.
> 
> 
> If you are interested in seeing/learning how that's implemented I am afraid
> you need to look into the code tho.
> 
> 
>  
> 
> 
> With regards to performance: no, there're no reports. However, something can
> be retrieved by running the test_sctp.py since at the end it prints out how
> much data has been transferred and how long that took.
> 
> 
>  
> 
> >  
> >  
> > Best Regards,
> > Chengqiang Yao
> 
> Cheers,
> 
> 
> Marco
> 
> 
>  
> 
> >  
> >  
> >  
> >  
> > 
> > 
> > From:
> > vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io]
> > On Behalf Of Marco Varlese
> > 
> > Sent: Wednesday, October 10, 2018 5:47 PM
> > 
> > To: srivastava.rac...@gmail.com;
> > vpp-dev@lists.fd.io
> > 
> > Subject: Re: [vpp-dev] #vpp
> > 
> > 
> >  
> > 
> > Hi Srivastava,
> > 
> > 
> >  
> > 
> > 
> > On Wed, 2018-10-10 at 01:23 -0700, 
> > srivastava.rac...@gmail.com wrote:
> > 
> > > Hi 
> > > 
> > > 
> > >  
> > > 
> > > 
> > > Does the VPP support SCTP. If yes what is the configuration for SCTP. Does
> > > it support the same features as the linux kernel SCTP ?
> > > 
> > 
> > VPP has an implementation for SCTP. You can look into /src/vnet/sctp folder
> > to see what we currently support in terms of RFC.
> > 
> > 
> > Any feedback (and contribution) is very much welcome!
> > 
> > 
> >  
> > 
> > >  
> > > 
> > > 
> > > Thanks
> > > 
> > > 
> > > Rachit Srivastava
> > > 
> > 
> > Thanks,
> > 
> > 
> > Marco
> > 
> > 
> >  
> > 
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > >  
> > > View/Reply Online (#10787): https://lists.fd.io/g/vpp-dev/message/10787
> > > Mute This Topic: https://lists.fd.io/mt/27155313/675056
> > > Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480704
> > > Group Owner: vpp-dev+ow...@lists.fd.io
> > > Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [mvarl...@suse.de]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >  
> 
> 
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11152): https://lists.fd.io/g/vpp-dev/message/11152
Mute This Topic: https://lists.fd.io/mt/28023358/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-