Re: [vpp-dev] inet raw socket

2018-11-12 Thread Ole Troan
Hi again,

> 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? 

There are a number of ways a control plane can (or could) integrate with VPP.
Which one is most suitable for you depends.

1) Mirror interfaces. As described in https://wiki.fd.io/view/VPP_Sandbox/router
Each VPP interface is mirrored as a Linux TAP interface. Any traffic destined 
to an interface address in VPP is forwarded to the TAP interface.
Any packet received on the TAP interface is shipped out the physical interface.
All Linux tools and applications work unchanged. Including use of raw sockets.
A all or nothing approach. And might not be suitable for cases with lots of 
(virtual) interfaces.

2) Separate punt interface. Transport using memif and/or Unix domain socket.
Control plane registeres with VPP which protoocols it wants. E.g. a DHCP server 
registeres for UDP port 69,
an IPv6 ND daemon registres for a set of ICMPv6 types.
Raw packets sent over transport with meta data. Likewise when CP sends packet, 
it includes meta-data to specify outgoing interface and/or VPP processing graph 
node.
See https://git.fd.io/vpp/tree/src/vnet/ip/punt.h#n44
This is currently only used by https://pypi.org/project/dhcpkit-vpp/
Gaps:
 - Missing selectors (only UDP supported)
 - Missing transports (only UDS)
 - Missing throttling and QoS

3) Integrate with VPP host stack.
For TCP VPP exposes an API that control plane applications can use.
I plan to put a Python wrapper on top of VCL and integrate with exaBGP.
This approach is of course limited to whatever VCL supports.
But in theory VCL could give a full socket-like API.

4) Integrated in VPP
Write the control plane functions as VPP plugins.
This is how ND, ARP, DHCP and a few others are done.

Any others?

Personally I would like to do more work on 2.
What’s your view?

Best regards,
Ole


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

View/Reply Online (#11212): https://lists.fd.io/g/vpp-dev/message/11212
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]
-=-=-=-=-=-=-=-=-=-=-=-


[vpp-dev] how to set cb for keepalive of vapi-connection @ 18.10

2018-11-12 Thread wangchuan...@163.com
Hi,
At vpp stable/18.10, using vapi_connect to connect vpp and set the "bool 
handle_keepalives " to true,
But how can i add the cb for keepalives?
If do, does it means that I could judge the timespan to found the disconnection 
, and need to reconnect using vapi_disconnect & vpai_connect ?

Thanks !



wangchuan...@163.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11211): https://lists.fd.io/g/vpp-dev/message/11211
Mute This Topic: https://lists.fd.io/mt/28120658/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] inet raw socket

2018-11-12 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? 



saint_sun

From: Ole Troan
Date: 2018-11-08 11:11
To: saint_sun
CC: vpp-dev
Subject: Re: [vpp-dev] inet raw socket
> 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 (#11210): https://lists.fd.io/g/vpp-dev/message/11210
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] Example code of a VPP based application?

2018-11-12 Thread Staffan Wiklund
Thanks, I'll check it out.

Regards
Staffan

Den mån 12 nov. 2018 kl 20:40 skrev Dave Barach (dbarach) :

> Take a look at https://fdio-vpp.readthedocs.io/en/latest,
> https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/index.html,
> and
> https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/add_plugin.html
> .
>
>
>
> HTH... Dave
>
>
>
> *From:* vpp-dev@lists.fd.io  *On Behalf Of *Staffan
> Wiklund
> *Sent:* Monday, November 12, 2018 2:25 PM
> *To:* vpp-dev@lists.fd.io
> *Subject:* [vpp-dev] Example code of a VPP based application?
>
>
>
> Hi
>
>
>
> I am new to FD.io/VPP and I am trying to learn how to develop an
> application using this framework.
>
>
>
> I wonder if you please can help me with an example of a VPP based
> application sending and
>
> receiving packets?
>
> That is, the code of an application that uses a VPP plugin and the VPP API
> for the protocol logic. I would like to use DPDK for the network interface.
>
>
>
> I would be very thankful for all help with this. I would also appreciate
> if you have a skeleton of
>
> such an application if the complete code of a VPP based application is not
> available.
>
> I think that by studying such code, I will learn the principles for using
> VPP plugins and its API.
>
>
>
> Thanks
>
> Staffan Wiklund
>
> Sweden
>
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11209): https://lists.fd.io/g/vpp-dev/message/11209
Mute This Topic: https://lists.fd.io/mt/28094590/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] Example code of a VPP based application?

2018-11-12 Thread Dave Barach via Lists.Fd.Io
Take a look at https://fdio-vpp.readthedocs.io/en/latest,  
https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/index.html, 
and 
https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/add_plugin.html.

HTH... Dave

From: vpp-dev@lists.fd.io  On Behalf Of Staffan Wiklund
Sent: Monday, November 12, 2018 2:25 PM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Example code of a VPP based application?

Hi

I am new to FD.io/VPP and I am trying to learn how to develop an application 
using this framework.

I wonder if you please can help me with an example of a VPP based application 
sending and
receiving packets?
That is, the code of an application that uses a VPP plugin and the VPP API for 
the protocol logic. I would like to use DPDK for the network interface.

I would be very thankful for all help with this. I would also appreciate if you 
have a skeleton of
such an application if the complete code of a VPP based application is not 
available.
I think that by studying such code, I will learn the principles for using VPP 
plugins and its API.

Thanks
Staffan Wiklund
Sweden

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

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


[vpp-dev] Example code of a VPP based application?

2018-11-12 Thread Staffan Wiklund
Hi

I am new to FD.io/VPP and I am trying to learn how to develop an
application using this framework.

I wonder if you please can help me with an example of a VPP based
application sending and
receiving packets?
That is, the code of an application that uses a VPP plugin and the VPP API
for the protocol logic. I would like to use DPDK for the network interface.

I would be very thankful for all help with this. I would also appreciate if
you have a skeleton of
such an application if the complete code of a VPP based application is not
available.
I think that by studying such code, I will learn the principles for using
VPP plugins and its API.

Thanks
Staffan Wiklund
Sweden
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11207): https://lists.fd.io/g/vpp-dev/message/11207
Mute This Topic: https://lists.fd.io/mt/28094590/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] FOSDEM 2019 Software Defined Networking Devroom CFP

2018-11-12 Thread Ray Kinsella

Hi folks,

Just a gentle reminder that the FOSDEM "Software Defined Networking" 
room CFP is two weeks away from closing.


Thanks,

Ray K

On 15/10/2018 18:31, Ray Kinsella wrote:
We are pleased to announce the Call for Participation for the FOSDEM 
2019 Software Defined Networking devroom!


We are now inviting proposals for talks about Open Source Software on 
the topic of Software Defined Networking. This is an exciting and 
growing field, and FOSDEM gives an opportunity to reach a unique 
audience of very knowledgeable and highly technical, free and open 
source software activists.


**Topics:**

This year the DevRoom topics will include the following Software Defined 
Networking fields.


- Infrastructure: virtual switches & routers, routing daemons, firewall, 
security, etc.
- Virtual Network Functions: open source network functions, user-space 
networking stacks, kernel-space networking innovations.
- Tooling: Networking SDK's, libraries, frameworks, debuggers, counters 
& statistics, domain specific languages & extensions, etc.

- Validation: Testing tools & frameworks, traffic generators etc
- Orchestration: NFV management, ML2 plugins, CNI plugins, SDN 
Controllers, etc.


This year, the DevRoom will focus on low-level networking and high 
performance packet processing, network automation of containers, virtual 
machines and private cloud, and the management of networking 
applications to maintain very high availability and performance 
independent of whatever the world can throw at their infrastructure 
(datacenter outages, fires, broken servers, you name it).


The deadline for submissions is November 25th, 2018. FOSDEM will be held 
on the weekend of February 2-3, 2019 and the Software Defined Networking 
DevRoom will take place on Saturday, February 2, 2019.


See http://mdr78.github.io/fosdem/2018/10/15/fosdem-2019-cfp.html for 
how for more information, including how to submit a proposal.


As you know FOSDEM has zero marketing budget, we would be grateful if 
you could help spread the word, by forwarding this email to interested 
people and mailing lists.


- The FOSDEM 2019 Software Defined Networking Devroom Team
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11206): https://lists.fd.io/g/vpp-dev/message/11206
Mute This Topic: https://lists.fd.io/mt/27331836/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 dead client scan in shared memory interface (vl api)

2018-11-12 Thread Dave Barach via Lists.Fd.Io
Please submit this as a draft patch, and add me as a reviewer. Thanks... Dave

-Original Message-
From: vpp-dev@lists.fd.io  On Behalf Of Prashant Upadhyaya
Sent: Monday, November 12, 2018 1:21 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] Regarding dead client scan in shared memory interface (vl 
api)

Hi,

A developer in my team has suggested a fix in memory_vlib.c (VPP 18.01), I am 
attaching the base and modified file. This is related to dead client scan.

At a high level, the fix seems to be doing some additional cleanup when a dead 
client is detected. The intention is not to leak the memory over the shared 
memory interface.
Unfortunately I am not very intimately familiar with the mechanics of the data 
structures here, so if some experts in this area can do a diff of the attached 
files and advise me if the fix makes any sense, that will be really great.

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

View/Reply Online (#11205): https://lists.fd.io/g/vpp-dev/message/11205
Mute This Topic: https://lists.fd.io/mt/28088480/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] [tsc] Project Proposal for Sweetcomb

2018-11-12 Thread George Zhao
Congratulations

From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Edward 
Warnicke
Sent: Saturday, November 10, 2018 12:37 AM
To: Ni, Hongjun 
Cc: sweetcomb-...@lists.fd.io; t...@lists.fd.io; vpp-dev ; 
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) ; Maciek Konstantynowicz (mkonstan) 
; Rastislav Szabo -X (raszabo - PANTHEON TECHNOLOGIES at 
Cisco) 
Subject: Re: [vpp-dev] [tsc] Project Proposal for Sweetcomb

Congratulations!

Ed

On Thu, Nov 8, 2018 at 9:32 PM Ni, Hongjun 
mailto:hongjun...@intel.com>> wrote:
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 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

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>>; davidfg

Re: [vpp-dev] [csit-dev] new per-patch job

2018-11-12 Thread Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io

Hello VPP devs.

Now that CSIT testbeds are not as busy
running tests for 1810 release report,
you can give the per-patch performance job a try again.

The job can still be used as announced (see below),
but the internal logic has been tweaked.
Good news: False regressions should be much less frequent now.
Bad news: One run takes 90-100 minutes (not counting queueing time).

The job still gets the following comment on failure:
  No problems were identified. If you know why this problem occurred,
 please add a suitable Cause for it.
How can I add a Cause to distinguish "Regression has been detected"
from other (rare but still possible) failures?

By the way, while testing with [0]
I have confirmed that the previously merged [1]
causes (some of) the regressions seen in trending.
Unfortunately, the changes merged in the meantime
make it hard to revert it.

Vratko.

[0] https://gerrit.fd.io/r/15826
[1] https://gerrit.fd.io/r/15347

From: csit-...@lists.fd.io  On Behalf Of Vratko Polak -X 
(vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
Sent: Friday, 2018-September-07 17:20
To: vpp-dev@lists.fd.io
Cc: csit-...@lists.fd.io
Subject: Re: [csit-dev] new per-patch job

> and vote -1 if a regression is detected.

Original plan was to have the job non-voting.
First implementation has left the voting active by accident,
now it is switched to non-voting (also by accident).

Non-voting is safer, we can be sure result of this job
does not override possible -1 from other verify jobs.

Vratko.

From: Vratko Polak -X (vrpolak - PANTHEON TECHNOLOGIES at Cisco)
Sent: Friday, 2018-September-07 15:25
To: vpp-dev@lists.fd.io
Cc: csit-dev mailto:csit-...@lists.fd.io>>
Subject: RE: new per-patch job

I forgot to mention two things.

> When you add Gerrit comment "perftest"

We can make the job to run on every uploaded patch
(if not Draft) when it is deemed reliable enough.

> three main areas for improvements:

Longer term goal is to add some logic
to select testcases based on directories edited.
The hard part is creating a mapping
from directories to test tags.

Vratko.

From: vpp-dev@lists.fd.io 
mailto:vpp-dev@lists.fd.io>> On Behalf Of Vratko Polak -X 
(vrpolak - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
Sent: Friday, 2018-September-07 15:04
To: vpp-dev@lists.fd.io
Cc: vpp-dev@lists.fd.io
Subject: [vpp-dev] new per-patch job

Hello VPP devs.

There is a new way of testing performance impact
of a VPP Change before merging it.

When you add Gerrit comment "perftest"
a job will start (different from the previously available one).
It will compile both the code in the Change and in its parent,
run few tests against both builds,
and vote -1 if a regression is detected.

The job takes around one hour to finish (similar to virl job),
mostly spent by compiling.

The job compares results of 4 tests by default:
ip4base, ip6base, l2bdbasemaclrn and l2xcbase.

The job supports tag selection
(the same way as the previous job).

The job is using 2-node skylake testbeds,
so some tests are not available
(e.g. the ones related to encapsulation).

The regressions are detected
using the same algorithm as in trending graphs,
but the result is not 100% reliable.
Sometimes, even running the same build twice
shows statistically significant difference in performance.

Going forward, there are three main areas for improvements:

1. Add more tests (to the set executed by default).
This would find more kinds of performance regressions.

2. Make the job run faster. Some kind of artifact caching
could be implemented, possibly using packagecloud.

3. Make the vote more reliable. Either by identifying
and fixing the current causes of performance differences,
or at least by working around them (somehow).

So please, give the new job a try,
and tell us which area of improvement to focus on.

Vratko (and CSIT team).
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11203): https://lists.fd.io/g/vpp-dev/message/11203
Mute This Topic: https://lists.fd.io/mt/28090222/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-12 Thread alp . arslan
OK, thank you. 
Please let me know when the patch is available. 

-Original Message-
From: Ni, Hongjun [mailto:hongjun...@intel.com] 
Sent: Monday, November 12, 2018 9:36 AM
To: alp.ars...@xflowresearch.com; vpp-dev@lists.fd.io
Subject: RE: [vpp-dev] PPPoE plugin documentation/support

Hi Alp Arslan,

Since PPPoE control packet is special, which destination MAC is the PPPoE
client's MAC.
Need to submit a patch to identify it and not perform L3 MAC filter in
ethernet-input-inline() function.
 
Thanks,
Hongjun

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

Yes, that seems to be the problem. The control plane interface is dropping
the replies with error "L3 MAC MISMATCH". 

How do I set the interface to l2? Using the command " set interface l2
bridge  1" is not working, as it starts to drop the PADI packets
also. 

After using the above mentioned command: 
Packet 1

01:11:18:827637: vhost-user-input
 VirtualEthernet0/0/0 queue 0
   virtio flags:
INDIRECT Indirect descriptor
   virtio_net_hdr first_desc_len 12
 flags 0x00 gso_type 0
 num_buff 0
01:11:18:827641: ethernet-input 
  PPPOE_DISCOVERY: 52:54:00:cc:3a:0e -> ff:ff:ff:ff:ff:ff
01:11:18:827643: l2-input
  l2-input: sw_if_index 3 dst ff:ff:ff:ff:ff:ff src 52:54:00:cc:3a:0e
01:11:18:827644: l2-learn
  l2-learn: sw_if_index 3 dst ff:ff:ff:ff:ff:ff src 52:54:00:cc:3a:0e
bd_index 1
01:11:18:827646: error-drop
  l2-flood: L2 replication complete

Regards,
Alp Arslan

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

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 ses

Re: [vpp-dev] ipsec support for chained buffers.

2018-11-12 Thread Klement Sekera via Lists.Fd.Io
Hi Vijay,

yes, it's planned.

Regards,
Klement

Quoting Vijayabhaskar Katamreddy via Lists.Fd.Io (2018-11-11 23:56:37)
>Hi
> 
> 
> 
>Is there any plans or any work in progress to extend the support for ipsec
>encrypt nodes to support the chained buffers?
> 
> 
> 
>Thanks
> 
>Vijay
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

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