Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8280107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:33:03+00:00 2026-06-08T09:33:03+00:00

I am currently building a fast paced multi-player game where security is a big

  • 0

I am currently building a fast paced multi-player game where security is a big concern.

I have implemented stop-and-wait (a temporary measure, for simplicity’s sake) over UDP in Java.

However, I’m concerned that a malicious party could send false acks or messages to the sender or receiver respectively, making the sequence numbers go out of sync — essentially causing either messages to be lost (crashing the game!) or the sender to resend indefinitely.

Further up in my application, each participant is identified by an RSA public key, so I could add a signed hash to each message for authentication purposes… but this greatly increases header size and muddles my architecture layers somewhat.

Is this a common approach? Are there good known solutions to this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:33:04+00:00Added an answer on June 8, 2026 at 9:33 am

    What Jonathan said. Generally speaking, you need to provide your own means of defending against out of order or dropped packets while using UDP. There isn’t a “standard” way of dealing with this problem — other than using TCP instead. You can, as you said, validate the client’s identity on every packet — but keep in mind validating the client’s identity, even with something like RSA — doesn’t help you against malicious clients. They can just connect to the game server, validate themselves, and start sending garbage. After all, they are who they say they are.

    For most game server designs, to my (albeit limited) understanding, usually the server has the notion of a “tick” — whereby clients can register that some events happen within the tick, and the server enforces the rules against what the clients send. But when the tick ends, any events received by the server corresponding to that tick are discarded. This adds a race element which does not increase actual security of the system, but does add an element which makes it more difficult.

    Of course making any system like this “secure” in that a client couldn’t spoof their origin would essentially require doing a TLS tunnel, which I would assume won’t meet your performance requirements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im building a small space shooter game. I have how ever stubbed on a
Im currently building a php framework... again. I have a class called config. its
Currently building a site in ASP.NET MVC and have to integrate another site within
I am currently building in Version 3.5 of the .Net framework and I have
I currently building web management system using mvc3 In my application i have system
I'm building a scripting language in Java for a game, and I'm currently working
Currently building an app that runs on mobile phones not related to the issue
I'm currently building a reporting service (WCF) - filled reports are produced using an
I am currently building a measurement unit convertion app for Windows Phone. After setting
I am currently building my project locally using MVC. The user enters some search

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.