Perhaps you remember my setup: Pitboss with wine running on a Debian Linux box using UDP-Port 51056. No one was connected to the server. My Civilization was waiting for other Civilizations to do there turn. I did the following for every disconnecting method:
- Connect to the running pitboss game from the internet
- Choose a civilization
- Log in
- "Disconnect"
- "Back to Main Menu"
- "Back to Desktop"
- Unplugging the network cable/disabling wifi connection
During the test i ran "tcpdump"
Code:
tcpdump -XX port 2056 or port 51056
on the linux box to check what was happening.
Results:
- Back to main Menu: UDP traffic stops immediately.
- Back to Desktop: No UDP traffic instantly.
- Connection breakdown: UDP traffic keeps being generated by the pitboss.
I did everything twice to be sure that it works or not.
So I could disconnect using "Back to Desktop" being alone on the pitboss without causing problems.
A wifi breakdown or disconnection of the internet access at the client side causes UDP traffic: Just some amount. After the first simulation of a connection crash at the client side internet access was still working at the 128kbit up/768kbit down broadband connection at the server.
After the second simulation without restarting the pitboss at first internet at the server side was ok, but a third login attemp could not be achived. And after this third login attemp
all bandwidth was jammed by the UDP traffic of the pitboss and nothing worked. After closing the pitboss and waiting some time, which needed the router to calm down, things were fine again.
Someone wanted to sniff some packets:
This is a partial output of what pitboss jams my connection with:
Code:
linuxboxwithpitboss:~#tcpdump -XX port 2056 or port 51056
22:38:14.632727 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 7dab fefe 0001 1e00 .x.p...!}.......
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 0c00 /...............
0x0040: 0000 01 ...
22:38:14.660724 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 7bab fefe 0001 1f00 .x.p...!{.......
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 0d00 /...............
0x0040: 0000 01 ...
22:38:14.688702 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 79ab fefe 0001 2000 .x.p...!y.......
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 0e00 /...............
0x0040: 0000 01 ...
22:38:14.689141 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 77ab fefe 0001 2100 .x.p...!w.....!.
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 0f00 /...............
0x0040: 0000 01 ...
22:38:14.725566 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 75ab fefe 0001 2200 .x.p...!u.....".
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 1000 /...............
0x0040: 0000 01 ...
22:38:14.759370 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 73ab fefe 0001 2300 .x.p...!s.....#.
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 1100 /...............
0x0040: 0000 01 ...
22:38:14.759805 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 71ab fefe 0001 2400 .x.p...!q.....$.
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 1200 /...............
0x0040: 0000 01 ...
22:38:14.760170 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 6fab fefe 0001 2500 .x.p...!o.....%.
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 1300 /...............
0x0040: 0000 01 ...
22:38:14.760572 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 10
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0026 0000 4000 4011 9a44 c0a8 160a d957 .&..@.@..D.....W
0x0020: f078 c770 0808 0012 5ef0 fefe 0001 2600 .x.p....^.....&.
0x0030: 2fdc dc01 /...
22:38:14.760944 IP linuxboxwithpitboss.51056 > some.host.with.dialin.net.2056: UDP, length 25
0x0000: 0014 bfc9 1d97 000d 88b4 bb4c 0800 4500 ...........L..E.
0x0010: 0035 0000 4000 4011 9a35 c0a8 160a d957 .5..@.@..5.....W
0x0020: f078 c770 0808 0021 6cab fefe 0001 2700 .x.p...!l.....'.
0x0030: 2ffd ffff ff01 ffff ffff b905 0000 1400 /...............
0x0040: 0000 01 ...
10 packets captured
10 packets received by filter
0 packets dropped by kernel
So. What now?
Looks like there is no timeout for this traffic, or the timeout is much too large.
Can someone proof this on a windows server?(Perhaps it's a bug with wine...) And a test with mutliple connected players would be interesting.
So long
Redarg