Network traffic on Xbone bad for gaming

First off, there is no TLDR version for this thread, so if you have a short attention span or you’re drunk/high, move along.

So I telnet into my Actiontec and look at the connections open in the firewall from the Xbone to the world.

Multiple connections open with TCP 443/HTTPS to Microsoft servers in WA, EA servers in CA, Rackspace servers in the UK, and other servers/backbones in Japan and Australia.

Fine, easy enough to create ACL rules to block the Japan/Australia traffic.

Figure the US servers not that big of a deal since I’m east coast. Ping the Microsoft servers via command line and get roughly 85ms. Cannot ping EA servers, probably because they are blocking ICMP.

After blocking the Rackspace servers, could not connect to multiplayer. Unblocked and connection restored. Cannot ping, so again Rackspace probably ICMP blocking on their servers. Rackspace connections appear to be required.

These connections, there are a lot of them before I even join a match so there’s immediate overhead. Not only are there a lot of connections, but most of them are opening different ephemeral ports on my router for the outbound connection.

So here are the questions:

Why is the Xbone running BF4 creating so many connections over TCP through 443/HTTPS? Is this a handshake or persistent, cause after checking multiple firewall dumps, looks pretty persistent from here. HTTPS has overhead, and creating and dropping handshakes throughout a gaming session is going to introduce performance hits.

And what is up with the number of ephemeral ports you guys are opening on my router? Would think that for client performance you would open one or two ephemeral ports and re-use them for additional outbound requests. Opening and closing ports all the time makes NAT crazy and makes my router mad.

This is sample data. Actual data pull from multiplayer session has many more connections going out:

1: TCP <>:50539 <–><<ROUTER_IP>>:50539 <<134.170.29.26:443>> ESTABLISHED/ESTABLISHED ttl 359 bytes 4.6/0.3 pkts 5/5 st
2: TCP <>:50538 <–><<ROUTER_IP>>:50538 <<134.170.29.26:443>> TIME_WAIT/TIME_WAIT ttl 0 bytes 4.6/0.4 pkts 6/7 sticky 0
4: TCP <>:50537 <–><<ROUTER_IP>>:50537 <<134.170.178.88:443>> ESTABLISHED/ESTABLISHED ttl 14343 bytes 4.6/0.3 pkts 5/5
5: TCP <>:50536 <–><<ROUTER_IP>>:50536 <<134.170.178.88:443>> ESTABLISHED/ESTABLISHED ttl 14343 bytes 0.2/0.3 pkts 4/4
8: TCP <>:50535 <–><<ROUTER_IP>>:50535 <<134.170.178.181:443>> ESTABLISHED/ESTABLISHED ttl 14351 bytes 2.9/0.9 pkts 3/
9: TCP <>:50534 <–><<ROUTER_IP>>:50534 <<134.170.178.9:443>> ESTABLISHED/ESTABLISHED ttl 14316 bytes 4.6/0.3 pkts 5/5
13: TCP <>:50532 <–><<ROUTER_IP>>:50532 <<134.170.178.144:443>> ESTABLISHED/ESTABLISHED ttl 14395 bytes 1.4/0.3 pkts 3/
18: UDP <>:63954 <–><<ROUTER_IP>>:63954 <<159.153.114.221:30015>> ttl 59 bytes 24.7/0.3 pkts 54/2 sticky 0/0 eth1 NAPT
19: TCP <>:57350 <–><<ROUTER_IP>>:57350 <<95.138.148.223:10991>> ESTABLISHED/ESTABLISHED ttl 14395 bytes 1.4/0.4 pkts 3
21: TCP <>:50409 <–><<ROUTER_IP>>:50409 <<157.56.100.57:443>> ESTABLISHED/ESTABLISHED ttl 14341 bytes 2.9/0.3 pkts 3/4
23: UDP <>:3074 <–><<ROUTER_IP>>:3074 <<65.55.158.118:3544>> ttl 49 bytes 0.1/0.0 pkts 1/1 sticky 0/0 eth1 NAPT Outgo
20: TCP <>:50590 <–><<ROUTER_IP>>:50590 <<134.170.178.144:443>> ESTABLISHED/ESTABLISHED ttl 14330 bytes 4.3/0.3 pkts 5/
21: TCP <>:50565 <–><<ROUTER_IP>>:50565 <<172.229.9.7:443>> CLOSE_WAIT/FIN_WAIT_2 ttl 140 bytes 3.4/0.3 pkts 6/5 sticky
22: TCP <>:50566 <–><<ROUTER_IP>>:50566 <<172.229.9.7:443>> CLOSE_WAIT/FIN_WAIT_2 ttl 140 bytes 1.9/0.3 pkts 5/5 sticky
23: UDP <>:63954 <–><<ROUTER_IP>>:63954 <<159.153.114.221:30015>> ttl 59 bytes 42.2/0.3 pkts 90/2 sticky 0/0 eth1 NAPT
24: TCP <>:57350 <–><<ROUTER_IP>>:57350 <<95.138.148.223:10991>> ESTABLISHED/ESTABLISHED ttl 14399 bytes 1.4/0.4 pkts 3
26: TCP <>:50409 <–><<ROUTER_IP>>:50409 <<157.56.100.57:443>> ESTABLISHED/ESTABLISHED ttl 14288 bytes 2.9/0.3 pkts 3/4
28: UDP <>:3074 <–><<ROUTER_IP>>:3074 <<65.55.158.118:3544>> ttl 45 bytes 0.1/0.0 pkts 1/1 sticky 0/0 eth1 NAPT Outgo

I knew it!

…and what’s wrong with being drunk or getting high?

I’m the last guy to judge and the first to accept if offered, but don’t think it would be helpful for the conversation I’m trying to start this evening.

Not that I don’t like all of the “TLDR” and “its your interwebz” replies, but I think we get enough of that already from EA/DICE.

Mods need to send this over to the Dev team.

… I wish so badly that I understood all of that. one day.

Thanks for this

Quick hit on how to read a sample:

TCP <>:50539 <–><<ROUTER_IP>>:50539 <<134.170.29.26:443>> ESTABLISHED/ESTABLISHED ttl 359 bytes 4.6/0.3 pkts 5/5 st

Protocol either TCP or UDP.

<> is the Xbone IP address on my network (hidden for my protection), followed by the port opened on the router for the outbound connection. Ephemeral ports are in the higher range of ports after the lower numbered ports in the well-known range, for example 443/HTTPS and 53/DNS.

<<ROUTER_IP>> is the IP address assigned to my router from my provider (again hidden for my protection), followed by the port opened on the provider network.

Next IP address is server connection and port opened on that server.

Rest of that information is on connection state, time-to-live remaining on the connection, number of bytes transferred, and number of packets transferred. Since UDP is a connectionless protocol, you won’t see a connection state for UDP.

Bye!

/thumbs up man

Good observation.

Bloody hell mate…
Great find, OP

This is why my router smokes?

Good stuff OP. I hope DICE is paying attention. The community has beta tested the game for 128 days, now the community will probably solve the problems too if DICE will pull their heads out of their arses and open up some communication.

dafuq?

Subtitledword85

Can you see if you are seeing the same thing I’m seeing? During the ‘rubber band’ or ‘lag’ phase of my game play I’m noticing massive (compared to normal traffic) outbound traffic spikes from the Xbone. Spikes up to 1Mbs (my outbound bandwidth is only 1.5Mbs). This usually results in a rubberband effect where I’m rolled back several steps. Even better, sometimes I’m seeing 800Kbs from the Xbox to the internet for an extended period. 3-4 minutes and everything is a lagtastic fun fest.. I’ve isolated the problem and confirmed it is the Xbone that is the cause. My router doesn’t mirror and I haven’t put a hub on the wired connection so I can wireshark it yet. Before I do that I just want some verification that I"m not the only one seeing these ‘spikes’.

Have not seen that specifically and have not had a chance to trend my network stats, although I don’t doubt for a moment that it happens.

While you are playing, you may have other activity on your home net that affects performance as well as background activity from either the Xbone or BF4, for example, for background processes or stat updates.

You also have other people connecting to your game session and then jumping off. This affects bandwidth and the math that is in place on the server and client affecting how the game plays.

Can someone explain in English what the hell all of this means? My XB1 sucks??? I can’t read computer. Me dumb caveman.

Lol…me too, bc ps4 guys are struggling too with connection…would PC be that much better! Help

Basically that BF4/Xbone appears to be opening too many ports for connections to the same server/servers, that they run many connections over HTTPS/443, and open connections to servers in UK, Japan, and Australia.

All of these affect bandwidth, could introduce latency, and makes the router NAT angry.

There are steps you could take to reduce the impact if you have dedicated, high-end equipment, but for us normal end-users, the QoS and firewall options we have on our home routers ain’t going to cut it. DICE/EA/Microsoft needs to get on the ball and reduce the packet overhead.

Would love to hear if Xbone implements or could implement a queueing mechanism on the wired/wireless NICs for different traffic types, so UDP would prioritize over TCP, and multiplayer connections prioritize over background traffic.

Not being a fanboi, but Microsoft is notorious for having multiple connections like this in it’s OS. Doesn’t surprise me that XBone is doing it as well.