Problems testing UDP code outside of the local network?

I am studying udp in the next few days. This weekend I am going to participate in one of these 72 competitions, and I would like my UDP code to work online until the end. During the competition, I will not have the Internet (therefore, no one calls someone and does not test).

I know some problems related to UDP, such as packets that arrive twice, and not for several frames (but I don’t know how long in milliseconds I should expect), the recommended byte size (576), etc. What do I know about UDP programming?

But what are some of the things that happen to you after moving from a local area network to the Internet?

NOTE. I will run some ASAP code and test it on the Internet. Hope my final code will look, but I can also skip a few things.

0
source share
4 answers

Your delays may increase and you may receive more packet loss. It depends on where the transmitter and receiver are. If you are in the USA and trying to communicate with UDP with Australia, you will get a rather high delay, you will suffer from packet loss / reordering / duplicate packets, because there is more distance to travel and more ways for packets to route.

0
source

UDP , . :

.

PS: ( ), TCP.

0

(!), , UDP, . , :

- -, ( ) .

, , . / , UDP.

: - - ? , ...

0

: , , ( ) UDP, .

. .

When you leave the LAN and depend on the routers, then most of the problems with UDP appear (fragmentation, packet duplication, delayed packets, dropping packets for a certain size, no error messages returned).

In other words, MOST, which complicates UDP, is "leaving the local network."

0
source

All Articles