Hi,
i try to use traffic generator to catch packet loss on a link.
I have made a test with two RB2011 connected like so :
R1 : eth1 : 10.10.10.1/24 > R2 : eth1 : 10.10.10.10/24
R1 : eth6 : 10.10.60.1/24 > R2 : eth6 : 10.10.60.10/24
Here is my traffic generator configuration :
/tool traffic-generator port
add interface=ether1 name=port0
/tool traffic-generator packet-template
add header-stack=mac,ip,tcp ip-dst=10.10.10.10 ip-gateway=10.10.10.1 name=pt0 port=port0
/tool traffic-generator stream
add name=str0 packet-size=1450 port=port0 tx-template=pt0
When i do a quick start with 50Mbps i can see the trafic going from R2 to R1 and comming back to R2, and stats are good
[admin@MikroTik] /tool sniffer> ..traffic-generator quick mbps=50
SEQ ID TX-PACKET TX-RATE RX-PACKET RX-RATE RX-OOO RX-BAD-CSUM LOST-PACKET LOST-RATE LOST-RATIO LAT-MIN
33 0 4 309 49.9Mbps 4 310 49.9Mbps 0 0 -1 11.6kbps -0.0232% 551.us
34 0 4 311 50.0Mbps 4 311 50.0Mbps 0 0 0 0bps 0.00% 550.us
35 0 4 310 49.9Mbps 4 310 49.9Mbps 0 0 0 0bps 0.00% 550.us
36 0 4 310 49.9Mbps 4 310 49.9Mbps 0 0 0 0bps 0.00% 551.us
When i try to do the same thing but with 2 routers connected with pppoe-client interface like
R1 : pppoe-out1 : 1.1.1.1/24 > R2 : pppoe-out1 : 1.1.1.2/24
with traffic-generator configuration :
/tool traffic-generator port
add interface=pppoe-out1 name=port0
/tool traffic-generator packet-template
add header-stack=mac,ip,tcp ip-dst=1.1.1.1 ip-gateway=1.1.1.2 name=pt0 port=port0
/tool traffic-generator stream
add name=str0 packet-size=1450 port=port0 tx-template=pt0
If i do a quick mpbs=50
it seems to be good :
[@MikroTik] /tool traffic-generator> quick mbps=50
SEQ ID TX-PACKET TX-RATE RX-PACKET RX-RATE RX-OOO RX-BAD-CSUM LOST-PACKET LOST-RATE LOST-RATIO LAT-MIN
1 0 4 275 49.5Mbps 4 275 49.5Mbps 0 0 0 0bps 0.00% 86.8us
2 0 4 310 49.9Mbps 4 310 49.9Mbps 0 0 0 0bps 0.00% 87.5us
3 0 4 310 49.9Mbps 4 310 49.9Mbps 0 0 0 0bps 0.00% 88.0us
4 0 4 310 49.9Mbps 4 310 49.9Mbps 0 0 0 0bps 0.00% 87.3us
5 0 4 311 50.0Mbps 4 311 50.0Mbps 0 0 0 0bps 0.00% 88.5us
6 0 4 310 49.9Mbps 4 310 49.9Mbps 0 0 0 0bps 0.00% 86.9us
But in reality R1 use his local routing table and don’t send packet to R2 to get it back.
on R2 :
/tool sniffer> quick ip-address=1.1.1.1
INTERFACE TIME NUM DI SRC-MAC DST-MAC VLAN SRC-ADDRESS
Any idea why ?