Howto:Record, analyze and replay multiplayer flights with network tools: Difference between revisions

Jump to navigation Jump to search
m
(2 intermediate revisions by the same user not shown)
Line 62: Line 62:
To make things short, tcpreplay can not send directly to FlightGear if we are on the same computer.
To make things short, tcpreplay can not send directly to FlightGear if we are on the same computer.


Until now I have used a other PC to send traffic back to my FlightGear PC, if you find an other way, tell me. :)
Until now I either use an other PC to send traffic back to my FlightGear PC, or i send to the internet box's external IP  address, with a redirection to my pc for the port used in its firewall.


According to the tcpreplay FAQ, it could work if tcpreplay runs in a virtualized machine, but I did not give it a go.
According to the tcpreplay FAQ, it could work if tcpreplay runs in a virtualized machine, but I did not give it a go.
Line 97: Line 97:


Be sure to use the correct name for the network interface. ifconfig/ipconfig is your friend here!
Be sure to use the correct name for the network interface. ifconfig/ipconfig is your friend here!
Tcpreplay works fine this way if we don't need a very good time flow sync, as it end being late, dépending on the cpu usage mostly. I didn't notice this issue at first, but this became evident using lag statistics available recently in next, so to keep a good sync between tcpreplay and flightgear, using a core affinity, setting a priority higher and preferably on a not overloaded PC/CPU core makes things better, so we got something like that on linux:
taskset 02 nice -n -15 tcpreplay -x 1.000065  -K -i enp0s10  /rab/refuel/test.pcapng
The "-x" option (time acceleration) ensure a good time sync over the replay (find yourself the best value for your config :) ), i just need to adjust the time offset for the mp clock, to have replayed planes in sync with my session, considered as "real time" buddys.


=== Give it a try ===
=== Give it a try ===
434

edits

Navigation menu