Mailing List Archive

disk2n: Replay probem
Hi,

I'm trying to replay a pcap file on an interface which is not connected (just for test purposes).
Actually there is 1 optical interface and 1 ethernet interface which I use.
But the problem is the same... nothing gets really written to the interfaces (see below).

I suspect that replaying to an "open" port is not possible.
Or is there some other problem?

Thanks in advance for any help!

Regards,
Marcel

-------------------------------------------------------------------
Optical: eno1
-------------------------------------------------------------------
Command:
sudo /usr/local/bin/disk2n -v -i eno1 -u replay -f /home/replay/Data/test_1

Result:
04/May/2017 13:54:31 [disk2n.c:2412] Welcome to disk2n v.2.7.170308 (r4774) [Haswell]
04/May/2017 13:54:31 [disk2n.c:2419] WARNING: Forcing chunk len to 1MB to optimise .npcap files decompression
04/May/2017 13:54:31 [disk2n.c:2439] Reading data in 1024 KB chunks
04/May/2017 13:54:31 [disk2n.c:2440] Allocating 64 MB buffer memory...
04/May/2017 13:54:32 [disk2n.c:2491] Memory allocated successfully
04/May/2017 13:54:32 [disk2n.c:1863] Using PF_RING v.6.5.0
04/May/2017 13:54:32 [disk2n.c:1874] Transmission statistics on /proc/net/pf_ring/stats/33043-eno1.109
04/May/2017 13:54:32 [disk2n.c:1884] Created PF_RING socket for transmission on device eno1
04/May/2017 13:54:32 [disk2n.c:2527] Starting time pulse thread
04/May/2017 13:54:32 [disk2n.c:2534] Starting sender thread...
04/May/2017 13:54:32 [disk2n.c:2543] Starting pcap packet reader thread...
04/May/2017 13:54:34 [disk2n.c:219] disk2n changed user to replay
04/May/2017 13:54:35 [disk2n.c:1314] [reader] thread started
04/May/2017 13:54:35 [disk2n.c:1474] [time-pulse] thread started..
04/May/2017 13:54:35 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:35 [disk2n.c:1377] [reader] Read throughput: [19350830 bytes/0.053 sec][2.92 Gbit]
04/May/2017 13:54:35 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:35 [disk2n.c:1377] [reader] Read throughput: [19350830 bytes/0.050 sec][3.10 Gbit]
04/May/2017 13:54:35 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:35 [disk2n.c:1377] [reader] Read throughput: [19350830 bytes/0.051 sec][3.04 Gbit]
04/May/2017 13:54:35 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:35 [disk2n.c:1227] [reader] waiting.. (buffer full) :-)
04/May/2017 13:54:35 [disk2n.c:1648] [sender] thread started..
04/May/2017 13:54:36 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:36 [disk2n.c:1227] [reader] waiting.. (buffer full) :-)
04/May/2017 13:54:37 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:37 [disk2n.c:1227] [reader] waiting.. (buffer full) :-)
^C04/May/2017 13:54:37 [disk2n.c:351] Caught termination signal 2
04/May/2017 13:54:37 [disk2n.c:1380] [reader] Read error (6291456)
04/May/2017 13:54:37 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:37 [disk2n.c:352] Waiting thread termination...
04/May/2017 13:54:37 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:37 [disk2n.c:1429] [reader] thread terminated
04/May/2017 13:54:37 [disk2n.c:1507] [time-pulse] thread terminated
04/May/2017 13:54:37 [disk2n.c:2578] Reader thread terminated
04/May/2017 13:54:37 [disk2n.c:1818] [sender] thread terminated
04/May/2017 13:54:37 [disk2n.c:2582] Sender thread terminated
04/May/2017 13:54:37 [disk2n.c:2586] Time thread terminated

Interface:
[root@gimli replay]# ifconfig eno1
eno1: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
inet 10.10.10.1 netmask 255.255.255.255 broadcast 10.10.10.1
ether 38:ea:a7:10:9f:f4 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


-------------------------------------------------------------------
Ethernet: ens3f3
-------------------------------------------------------------------
Command:
sudo /usr/local/bin/disk2n -v -i ens3f3 -u replay -f /home/replay/Data/test_1

Result:
04/May/2017 13:54:17 [disk2n.c:2412] Welcome to disk2n v.2.7.170308 (r4774) [Haswell]
04/May/2017 13:54:17 [disk2n.c:2419] WARNING: Forcing chunk len to 1MB to optimise .npcap files decompression
04/May/2017 13:54:17 [disk2n.c:2439] Reading data in 1024 KB chunks
04/May/2017 13:54:17 [disk2n.c:2440] Allocating 64 MB buffer memory...
04/May/2017 13:54:17 [disk2n.c:2491] Memory allocated successfully
04/May/2017 13:54:17 [disk2n.c:1863] Using PF_RING v.6.5.0
04/May/2017 13:54:17 [disk2n.c:1874] Transmission statistics on /proc/net/pf_ring/stats/33030-ens3f3.108
04/May/2017 13:54:17 [disk2n.c:1884] Created PF_RING socket for transmission on device ens3f3
04/May/2017 13:54:17 [disk2n.c:2527] Starting time pulse thread
04/May/2017 13:54:17 [disk2n.c:2534] Starting sender thread...
04/May/2017 13:54:17 [disk2n.c:2543] Starting pcap packet reader thread...
04/May/2017 13:54:19 [disk2n.c:219] disk2n changed user to replay
04/May/2017 13:54:20 [disk2n.c:1314] [reader] thread started
04/May/2017 13:54:20 [disk2n.c:1474] [time-pulse] thread started..
04/May/2017 13:54:20 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:20 [disk2n.c:1377] [reader] Read throughput: [19350830 bytes/0.050 sec][3.10 Gbit]
04/May/2017 13:54:20 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:20 [disk2n.c:1377] [reader] Read throughput: [19350830 bytes/0.050 sec][3.10 Gbit]
04/May/2017 13:54:20 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:20 [disk2n.c:1377] [reader] Read throughput: [19350830 bytes/0.050 sec][3.10 Gbit]
04/May/2017 13:54:20 [disk2n.c:1359] [reader] reading pcap file /home/replay/Data/test_1
04/May/2017 13:54:20 [disk2n.c:1227] [reader] waiting.. (buffer full) :-)
04/May/2017 13:54:20 [disk2n.c:1648] [sender] thread started..
04/May/2017 13:54:21 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:21 [disk2n.c:1227] [reader] waiting.. (buffer full) :-)
04/May/2017 13:54:22 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:22 [disk2n.c:1227] [reader] waiting.. (buffer full) :-)
^C04/May/2017 13:54:22 [disk2n.c:351] Caught termination signal 2
04/May/2017 13:54:22 [disk2n.c:1507] [time-pulse] thread terminated
04/May/2017 13:54:22 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:22 [disk2n.c:352] Waiting thread termination...
04/May/2017 13:54:22 [disk2n.c:1380] [reader] Read error (6291456)
04/May/2017 13:54:22 [disk2n.c:303] [PF_RING] Total stats: 0 pkts sent
04/May/2017 13:54:22 [disk2n.c:1429] [reader] thread terminated
04/May/2017 13:54:22 [disk2n.c:2578] Reader thread terminated
04/May/2017 13:54:22 [disk2n.c:1818] [sender] thread terminated
04/May/2017 13:54:22 [disk2n.c:2582] Sender thread terminated
04/May/2017 13:54:22 [disk2n.c:2586] Time thread terminated

Interface:
[root@gimli replay]# ifconfig ens3f3
ens3f3: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
inet 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::f6ce:46ff:fea5:d063 prefixlen 64 scopeid 0x20<link>
ether f4:ce:46:a5:d0:63 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xf7c80000-f7cfffff

-------------------------------------------------------------------
Re: disk2n: Replay probem [ In reply to ]
Hi Marcel
if I understand correctly link is down, if this is the case disk2n cannot send packets, until the link comes up.
Please correct me if I misunderstood.

Regards
Alfredo

> On 4 May 2017, at 14:23, Lüthi Marcel FUB <Marcel.Luethi@vtg.admin.ch> wrote:
>
> Hi,
>
> I'm trying to replay a pcap file on an interface which is not connected (just for test purposes).
> Actually there is 1 optical interface and 1 ethernet interface which I use.
> But the problem is the same... nothing gets really written to the interfaces (see below).
>
> I suspect that replaying to an "open" port is not possible.
> Or is there some other problem?
>
> Thanks in advance for any help!
>
> Regards,
> Marcel
Re: disk2n: Replay probem [ In reply to ]
Hi Alfredo

Looking at the flags:

eno1: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
ens3f3: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500

I would say that the link is up.
Any other idea?

Regards,
Marcel



Von: ntop-misc-bounces@listgateway.unipi.it [mailto:ntop-misc-bounces@listgateway.unipi.it] Im Auftrag von Alfredo Cardigliano
Gesendet: Donnerstag, 4. Mai 2017 14:29
An: ntop-misc@listgateway.unipi.it
Betreff: Re: [Ntop-misc] disk2n: Replay probem

Hi Marcel
if I understand correctly link is down, if this is the case disk2n cannot send packets, until the link comes up.
Please correct me if I misunderstood.

Regards
Alfredo

On 4 May 2017, at 14:23, Lüthi Marcel FUB <Marcel.Luethi@vtg.admin.ch<mailto:Marcel.Luethi@vtg.admin.ch>> wrote:

Hi,

I'm trying to replay a pcap file on an interface which is not connected (just for test purposes).
Actually there is 1 optical interface and 1 ethernet interface which I use.
But the problem is the same... nothing gets really written to the interfaces (see below).

I suspect that replaying to an "open" port is not possible.
Or is there some other problem?

Thanks in advance for any help!

Regards,
Marcel
Re: disk2n: Replay probem [ In reply to ]
Hi Marcel
the interface is up, for the link you need to check "ethtool eno1"

Alfredo

> On 4 May 2017, at 15:39, Lüthi Marcel FUB <Marcel.Luethi@vtg.admin.ch> wrote:
>
> Hi Alfredo
>
> Looking at the flags:
>
> eno1: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
> ens3f3: flags=4355<UP,BROADCAST,PROMISC,MULTICAST> mtu 1500
>
> I would say that the link is up.
> Any other idea?
>
> Regards,
> Marcel
>
>
>
> Von: ntop-misc-bounces@listgateway.unipi.it [mailto:ntop-misc-bounces@listgateway.unipi.it] Im Auftrag von Alfredo Cardigliano
> Gesendet: Donnerstag, 4. Mai 2017 14:29
> An: ntop-misc@listgateway.unipi.it
> Betreff: Re: [Ntop-misc] disk2n: Replay probem
>
> Hi Marcel
> if I understand correctly link is down, if this is the case disk2n cannot send packets, until the link comes up.
> Please correct me if I misunderstood.
>
> Regards
> Alfredo
>
> On 4 May 2017, at 14:23, Lüthi Marcel FUB <Marcel.Luethi@vtg.admin.ch <mailto:Marcel.Luethi@vtg.admin.ch>> wrote:
>
> Hi,
>
> I'm trying to replay a pcap file on an interface which is not connected (just for test purposes).
> Actually there is 1 optical interface and 1 ethernet interface which I use.
> But the problem is the same... nothing gets really written to the interfaces (see below).
>
> I suspect that replaying to an "open" port is not possible.
> Or is there some other problem?
>
> Thanks in advance for any help!
>
> Regards,
> Marcel
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it <mailto:Ntop-misc@listgateway.unipi.it>
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc <http://listgateway.unipi.it/mailman/listinfo/ntop-misc>