<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Peter,
<div><br>
</div>
<div>When DPDK is running on the server it takes control of the ports, which means the network stack that would answer a ping (ICMP Echo) would not be attached to the port any more. You would have to add code to DPDK as an application to receive the ICMP Echo
packet and respond with a ICMP Reply packet. The other method would be to attach a network stack as the application to DPDK and use that network stack to receive and send packets.</div>
<div><br>
</div>
<div>Writing a simple DPDK application to receive packets off the ports and look for ICMP Echo request and to respond with a ICMP Echo reply is not that hard as I do that work in Pktgen. If you want to do more then just grab packets and determine if you need
to send out a packet you would need to port some stack on top of DPDK like lwIP. You can this other ways, but it would take a bit more text to describe.</div>
<div><br>
</div>
<div>Have a look at Pktgen on GitHub and you can look at that code for a basic example.<br>
<div>
<div style="color: rgb(0, 0, 0); font-family: 'Comic Sans MS'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
Thank you, ++Keith<br>
-------------------------------<br>
Keith Wiles<br>
Principal Technologist for Networking<br>
cell 972-213-5533<br>
Wind River Systems<br>
<br>
<br>
<br>
<br>
<br>
</div>
</div>
<br>
<div>
<div>On Jun 23, 2013, at 11:52 PM, Peter Chen <<a href="mailto:peter.feifan.chen@gmail.com">peter.feifan.chen@gmail.com</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">I was wondering how I can send/receive packets from my computer to my server which has dpdk running. Since what seems to happen is that dpdk binds to the ethernet device, what would be its IP address? <br>
<br>
For example how would I send a ping from one computer to my server with dpdk binded to the NIC?
<div><br>
</div>
<div style="">Would I send a packet with only MAC address and dpdk binded NIC would pick it up and move the packet up to dpdk and then to the user space? Just kind of confused how that works. I would be grateful for any help!<br>
<br>
Peter</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>