Reputation: 79
My question is how to send packet another Physical Server from my Computer using dpdk.
I already watched example code rxtx_callbacks and i want to use this code. but there is no place to enter a specific ip and port to another server.
how i can send packets to places on a server using dpdk with specified ip and port? and how i can receive packets using dpdk?
Is l3fwd correct or is this another concept?
help me
Upvotes: 1
Views: 3367
Reputation: 4798
DPDK is an open-source library that allows one to bypass Kernel and ETH-IP-TCP stack to send packets from userspace directly on NIC or other custom hardware. There are multiple examples and projects like pktgen
and TREX
which uses to generate user-defined packets (desired MAC address, VLAN, IP and TCP-UDP) payload.
For the queries
[Answer] make use of DPDK PKTGEN as an easy way to generate. Other examples are pcap based burst replay and trex.
But the easiest way to generate and send traffic is using scapy
with DPDK sample application skeleton
. Following are the steps required to achieve the same.
[dpdk root folder]/examples/skeleton
and how i can receive packets using dpdk?
[Answer] on receiver side run DPDK application like testpmd, l2fwd, or skeleton if packets needs to received by Userspace DPDK application or any Linux sockets can receive the UDP packets.
Note: easiest way to check whether packets are received is to run tcpudmp. example tcpdump -eni eth1 -Q in
(where eth1 is physical interface on Reciever Server.
Note: Since the request how i can send packets to places on a server
is not clear
Upvotes: 4