Hoi Mustafa,

I don't know much about memif, but seeing as it creates an L2 device, one
avenue is adding the memif into a bridge-domain together with a transport
tunnel, for example VXLAN:

vpp# create interface memif id 0 master
vpp# create bridge-domain 10
vpp# create vxlan tunnel src 192.168.11.3 dst 192.168.11.0 vni 10
vpp# set interface l2 bridge memif0/0 10
vpp# set interface l2 bridge vxlan_tunnel0 10
vpp# set interface state vxlan_tunnel0 up
vpp# set interface state memif0/0 up

vpp# show bridge-domain 10 detail
  BD-ID   Index   BSN  Age(min)  Learning  U-Forwrd   UU-Flood   Flooding
 ARP-Term  arp-ufwd Learn-co Learn-li   BVI-Intf
   10       1      0     off        on        on       flood        on
  off       off        0    16777216     N/A
span-l2-input l2-input-classify l2-input-feat-arc l2-policer-classify
l2-input-acl vpath-input-l2 l2-ip-qos-record l2-input-vtr l2-learn l2-rw
l2-fwd
l2-flood l2-flood l2-output

           Interface           If-idx ISN  SHG  BVI  TxFlood
 VLAN-Tag-Rewrite
           memif0/0              12    1    0    -      *
none
         vxlan_tunnel0           11    1    0    -      *
none

If you'd do this on both sides (ie a reciprocal tunnel on 192.168.11.0
pointed at 11.3 with the same VNI id 10), I think you would get
bidirectional forwarding of the memif0/0 payload between both VPP instances.

groet,
Pim

On Fri, Nov 18, 2022 at 9:38 AM Mustafa BAKIRCIOGLU <
mustafa.bakircio...@ulakhaberlesme.com.tr> wrote:

> Hello,
>
> I have two applications and I would like to communicate these over udp in
> seperate machines. So, for this purpose I'am using VPP. My question is, is
> there any way to make vpp to encapsulate the application raw data (which
> these raw datas come over memif interfaces) in udp packets to transfer over
> machine to another machine. I am newbee in VPP I could not see any example
> to perform this logic like how I can encapsulate memif raw datas in to udp
> packets.
> I also added the desing what I am trying to do to make the whole picture
> clear.
>
>
> It would be very helpful if you can show or describe which steps I should
> do to do this logic.
>
> Best Regards,
>
> Mustafa Bakircioglu.
>
> Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi
> tarafından alması amaçlanan yetkili, gerçek ya da tüzel kişinin kullanımı
> içindir. Eğer söz konusu yetkili alıcı değilseniz, bu elektronik postanın
> içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız
> kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir.
> Şirketimiz bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu
> konusunda herhangi bir garanti vermemektedir. Bu nedenle, bu bilgilerin ne
> şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve
> saklanmasından sorumlu değildir. Bu mesajdaki görüşler yalnızca gönderen
> kişiye aittir ve Şirketimizin görüşlerini yansıtmayabilir. Tarafınız ile
> paylaşılan kişisel verilerin, 6698 sayılı Kişisel Verilerin Korunması
> Kanununa uygun olarak işlenmesi gereğini bilginize sunarız.
> ------------------------------
>
> This e-mail and all files sent with it are intended for authorized natural
> or legal persons, who should be the only persons to open and read them. If
> you are not an authorized recipient, you are strictly prohibited from
> disclosing, copying, forwarding, and using the contents of this e-mail, and
> you must immediately delete it. Our company does not guarantee the accuracy
> or thoroughness of the information contained in this message. It is
> therefore in no way responsible for the content, sending, retrieval and
> storage of this information. The opinions contained in this message are the
> views of the sender only and do not necessarily reflect the views of the
> company. We would like to inform you that any personal data shared with you
> should be processed in accordance with the Law on Protection of Personal
> Data numbered 6698.
>
> 
>
>

-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22201): https://lists.fd.io/g/vpp-dev/message/22201
Mute This Topic: https://lists.fd.io/mt/95108399/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to