Malformed Packet Error - Beta Testing Game Analysis

  • Thread starter Drakkith
  • Start date
In summary, the remote disconnect message is a warning that something went wrong with the packet data transmission. Without more information, it is hard to say what the problem is.
  • #1
Drakkith
Mentor
23,106
7,502
Hey guys, I'm doing a Beta test on a game at the moment and they've been having some issues with people disconnecting randomly while in game. I ran an analysis on my network while playing the game using Wireshark, and on all 3 games I played and disconnected on the 2nd to last UDP packet had a little message in the data that said "Remote Disconnect: Malformed Packet". What the heck does that mean? I know practically nothing about networking.
 
Computer science news on Phys.org
  • #2
This is hard to answer without more information, but if the structures are based on multiple atomic UDP packets, and some packets have screwed up the data, then you could get a bad overall structure.

In the TCP/IP suite of protocols, you have the situation where the protocol simply implements UDP with an extra addition in that it makes sure that every packet has been sent until it sends the next one.

In game engines though, this kind of thing is not used and the reason why is because if the game state changes enough, then if packets are dropped, you don't want to resend those packets since they are representing the old state and will simply cause chaos if a huge backlog of data is being sent until the client 'catches up'.

The UDP packets for a connection have what is called a frame size. The frame size is the size of an atomic packet that is guaranteed to be sent if it gets to the other side at all. Frame-sizes depend on the connection and the nature of the network: 56k dialup frame-sizes are really small but frame-sizes for a 100 Gigabit cable network are very large.

My guess (and it is a guess) is that the engine is using UDP (most online game engines do for the reasons stated above) and the engine is using multiple packets for some larger structural information, and if people are disconnected in ad-hoc manner (like say pulling the cable out, or turning off the computer, or something similar) then you are going to get a situation where the server has to handle this (multiplayer game engines are designed for these situations in hindsight).
 
  • #3
Thanks Chiro.
 
  • #4
Do you have any ping data?

Most I see use UDP and fall back to TCP if there is an issue with packet loss.

We deal with this at Aces High and we have tools in game to give you the opportunity to troubleshoot your connection yourself.

I'm guessing you're working on keeping down the "cable pulling" and the program uses a "smoothing algorithm"?
 
  • #5
I'm just a beta tester lol. My knowledge of programming and networking and such is very very basic.
 

FAQ: Malformed Packet Error - Beta Testing Game Analysis

What is a malformed packet error?

A malformed packet error is an error that occurs when data is being transmitted between devices or networks and the data does not meet the expected format or structure. This can happen due to a variety of reasons, such as incorrect coding, software bugs, or network issues.

What causes a malformed packet error?

As mentioned, a malformed packet error can be caused by a variety of factors. Some common causes include coding errors, outdated software or hardware, network congestion, and incompatible protocols. It can also occur due to cyber attacks or hardware malfunctions.

How can malformed packet errors be detected?

Malformed packet errors can be detected through network monitoring tools or by analyzing network traffic. These errors can also be reported by users who experience issues while using a particular application or device. In some cases, the error may also be displayed as a pop-up message or in the form of a crash report.

How can malformed packet errors be fixed?

Fixing a malformed packet error depends on its cause. In some cases, updating software or hardware can resolve the issue. Other solutions may include configuring network settings, changing protocols, or fixing coding errors. In more complex cases, seeking help from a network or software expert may be necessary.

How can malformed packet errors be prevented?

To prevent malformed packet errors, it is important to use reliable and updated software and hardware. Regularly monitoring network traffic and addressing any issues promptly can also help prevent these errors. Additionally, following proper coding and network protocols can reduce the risk of malformed packet errors occurring.

Similar threads

Replies
5
Views
2K
Replies
5
Views
3K
Replies
5
Views
6K
Replies
32
Views
6K
Replies
23
Views
36K
Replies
2
Views
3K
Replies
2
Views
8K
Back
Top