Yalung / netmap

Automatically exported from code.google.com/p/netmap
0 stars 0 forks source link

No packets received no the receiver side in the simple pkt-gen example #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run pkt-gen tx and rx on the same 10G NIC with ixgbe driver
2. Sender: sudo ./pkt-gen -i data0 -f tx -l 60
3. Receiver: sudo ./pkt-gen -i data0 -f rx

What is the expected output? What do you see instead?

Expected: receiver receiving all the packets

Actual output: (no packet received by the receiver..)
Sender side:

sudo ./pkt-gen -i data0 -f tx -l 60
403.691907 main [1649] interface is data0
403.692335 extract_ip_range [287] range is 10.0.0.1:0 to 10.0.0.1:0
403.692413 extract_ip_range [287] range is 10.1.0.1:0 to 10.1.0.1:0
403.696465 main [1840] mapped 334980KB at 0x7fe966c77000
Sending on netmap:data0: 16 queues, 1 threads and 1 cpus.
10.0.0.1 -> 10.1.0.1 (00:00:00:00:00:00 -> ff:ff:ff:ff:ff:ff)
403.696574 main [1924] Sending 512 packets every  0.000000000 s
403.696588 main [1926] Wait 2 secs for phy reset
405.696804 main [1928] Ready...
405.696891 nm_open [456] overriding ifname data0 ringid 0x0 flags 0x1
405.700996 sender_body [1014] start, fd 4 main_fd 3
405.734669 sender_body [1083] drop copy
406.701921 main_thread [1446] 12985190 pps (12998292 pkts in 1001009 usec)
407.702948 main_thread [1446] 13327892 pps (13341580 pkts in 1001027 usec)
408.703975 main_thread [1446] 13329503 pps (13343192 pkts in 1001027 usec)
409.704999 main_thread [1446] 13331019 pps (13344670 pkts in 1001024 usec)
410.706026 main_thread [1446] 13330164 pps (13343854 pkts in 1001027 usec)
411.707054 main_thread [1446] 13330441 pps (13344145 pkts in 1001028 usec)
412.708093 main_thread [1446] 13330230 pps (13344080 pkts in 1001039 usec)
413.709117 main_thread [1446] 13329526 pps (13343175 pkts in 1001024 usec)
414.710139 main_thread [1446] 13329604 pps (13343227 pkts in 1001022 usec)
415.711161 main_thread [1446] 13332207 pps (13345833 pkts in 1001022 usec)
416.712187 main_thread [1446] 13331628 pps (13345306 pkts in 1001026 usec)
417.713228 main_thread [1446] 13329125 pps (13343001 pkts in 1001041 usec)
418.714288 main_thread [1446] 13330291 pps (13344421 pkts in 1001060 usec)
419.715321 main_thread [1446] 13329012 pps (13342768 pkts in 1001032 usec)
^C420.243534 main_thread [1446] 13329840 pps (7041008 pkts in 528214 usec)

Receiver side: (No packets received..)
sudo ./pkt-gen -i data0 -f rx
393.285152 main [1649] interface is data0
393.285498 extract_ip_range [287] range is 10.0.0.1:0 to 10.0.0.1:0
393.285507 extract_ip_range [287] range is 10.1.0.1:0 to 10.1.0.1:0
394.150326 main [1840] mapped 334980KB at 0x7f241cf1f000
Receiving from netmap:data0: 16 queues, 1 threads and 1 cpus.
394.150507 main [1926] Wait 2 secs for phy reset
396.150773 main [1928] Ready...
396.150899 nm_open [456] overriding ifname data0 ringid 0x0 flags 0x1
396.155260 receiver_body [1183] reading from netmap:data0 fd 4 main_fd 3
397.156288 main_thread [1446] 0 pps (0 pkts in 1001131 usec)
397.156300 receiver_body [1190] waiting for initial packets, poll returns 0 0
398.157800 receiver_body [1190] waiting for initial packets, poll returns 0 0
398.157855 main_thread [1446] 0 pps (0 pkts in 1001567 usec)
399.159259 receiver_body [1190] waiting for initial packets, poll returns 0 0
399.159310 main_thread [1446] 0 pps (0 pkts in 1001455 usec)
400.160451 main_thread [1446] 0 pps (0 pkts in 1001141 usec)
400.160467 receiver_body [1190] waiting for initial packets, poll returns 0 0
401.161625 main_thread [1446] 0 pps (0 pkts in 1001175 usec)
401.161917 receiver_body [1190] waiting for initial packets, poll returns 0 0
402.163058 main_thread [1446] 0 pps (0 pkts in 1001433 usec)
402.163074 receiver_body [1190] waiting for initial packets, poll returns 0 0
403.164242 main_thread [1446] 0 pps (0 pkts in 1001184 usec)
403.164531 receiver_body [1190] waiting for initial packets, poll returns 0 0
404.165667 main_thread [1446] 0 pps (0 pkts in 1001424 usec)
404.165685 receiver_body [1190] waiting for initial packets, poll returns 0 0
405.166839 main_thread [1446] 0 pps (0 pkts in 1001173 usec)
405.166855 receiver_body [1190] waiting for initial packets, poll returns 0 0
406.167862 main_thread [1446] 0 pps (0 pkts in 1001022 usec)
406.167973 receiver_body [1190] waiting for initial packets, poll returns 0 0
407.168903 main_thread [1446] 0 pps (0 pkts in 1001042 usec)
407.169058 receiver_body [1190] waiting for initial packets, poll returns 0 0
408.169930 main_thread [1446] 0 pps (0 pkts in 1001026 usec)
408.170140 receiver_body [1190] waiting for initial packets, poll returns 0 0
409.170977 main_thread [1446] 0 pps (0 pkts in 1001048 usec)
409.171772 receiver_body [1190] waiting for initial packets, poll returns 0 0
410.171998 main_thread [1446] 0 pps (0 pkts in 1001021 usec)
410.172904 receiver_body [1190] waiting for initial packets, poll returns 0 0
411.173024 main_thread [1446] 0 pps (0 pkts in 1001026 usec)
411.174095 receiver_body [1190] waiting for initial packets, poll returns 0 0
412.174047 main_thread [1446] 0 pps (0 pkts in 1001023 usec)
412.175155 receiver_body [1190] waiting for initial packets, poll returns 0 0
413.175102 main_thread [1446] 0 pps (0 pkts in 1001055 usec)
413.176537 receiver_body [1190] waiting for initial packets, poll returns 0 0
414.176125 main_thread [1446] 0 pps (0 pkts in 1001022 usec)
414.178481 receiver_body [1190] waiting for initial packets, poll returns 0 0
415.177154 main_thread [1446] 0 pps (0 pkts in 1001030 usec)
415.179875 receiver_body [1190] waiting for initial packets, poll returns 0 0
416.178181 main_thread [1446] 0 pps (0 pkts in 1001027 usec)
416.180993 receiver_body [1190] waiting for initial packets, poll returns 0 0
417.179209 main_thread [1446] 0 pps (0 pkts in 1001027 usec)
417.182422 receiver_body [1190] waiting for initial packets, poll returns 0 0
418.180232 main_thread [1446] 0 pps (0 pkts in 1001023 usec)
418.183990 receiver_body [1190] waiting for initial packets, poll returns 0 0
419.181252 main_thread [1446] 0 pps (0 pkts in 1001021 usec)
419.185100 receiver_body [1190] waiting for initial packets, poll returns 0 0
420.182282 main_thread [1446] 0 pps (0 pkts in 1001030 usec)
420.187022 receiver_body [1190] waiting for initial packets, poll returns 0 0
421.183461 main_thread [1446] 0 pps (0 pkts in 1001179 usec)
421.188311 receiver_body [1190] waiting for initial packets, poll returns 0 0
422.184647 main_thread [1446] 0 pps (0 pkts in 1001186 usec)
422.189588 receiver_body [1190] waiting for initial packets, poll returns 0 0
423.185673 main_thread [1446] 0 pps (0 pkts in 1001025 usec)
423.191108 receiver_body [1190] waiting for initial packets, poll returns 0 0

What version of the product are you using? On what operating system?
netmap: the most recent version, downloaded on Dec. 23, 2014
OS: ubuntu 12.04, kernel: 3.2.0-74-generic

Please provide any additional information below.

Original issue reported on code.google.com by yuanhao...@gmail.com on 24 Dec 2014 at 8:32

GoogleCodeExporter commented 9 years ago
Seems that it did not work across two machines when the destination mac address 
and ip were set.

I have also configured the sender with netmap, while the receiver simply used 
the original driver, but then tcpdump did not find any packets..

Maybe I missed something.

Thank you in advance.

Original comment by yuanhao...@gmail.com on 24 Dec 2014 at 9:28