Skip to content

[Help] Troubleshooting UDP packet issues: loss / roundtrip delay #55

@hitech95

Description

@hitech95

I've discovered a strange issue with UDP traffic in a multiplayer videogame (I'm in ITALY 1:1 port range openwrt stable 23.04).

This is the first game I've found that is completly unable to connect to the game servers and is throwing all sort of non descriptive issues. (cant connect, timeout, etc). Basically I cannot play multiplayer on that specific game unless I use another internet connection.

I'm still digging into this issue as I'm not 100% sure on where the issue lie.

I've tried to figure out if there was some issue on the nat46 implementation but no visible error is thrown.

Setting a log error higher that 2 completly locks the router (its a x86 machine) as it is logging too much traffic to dmesg.
I'm trying to reduce the number of devices connected but a single Windows machine talks so much to the internet.

I did a pcap on the port ranges of the game and the traffic is there, it seems with the "correct" replies.
The packet body is a binary format but the packets seems to be coherent with the documentation of the SDK of such game (ack and reply to events).
The error is thrown by the SDK and not the game itself so I think that if I try with another game suing the same multiplayer library the issue might be there.
Unfortunatly I dont have the knowhow on Unity to spin up some tech demo of such SDK to validate if the issue.

The SDK is this one:
https://doc.photonengine.com/pun/current/connection-and-authentication/regions

The region discovery and initial hadshake seems to be done correctly.
So Master server, (game) nameserver and region server list in loaded succesfully.
I think it is failing on creating the room in a game server.

Image

Looking in the code and the dmesg I cannot find a way to set a suitable log level to only get the src IPs dest IPs, protocol and src port dest port.
I think that the best way to troubleshoot this is to create re-build the module with a custom logger string.

@ayourtch
OT: Was you that were developing a 1wire bike bus/protocol some years ago?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions