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 8967141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:10:55+00:00 2026-06-15T17:10:55+00:00

Since UDP is a connection less protocol so we know there is no guarantee

  • 0

Since UDP is a connection less protocol so we know there is no guarantee that data will be received by a receiver. But if the datagram is received, is it possible that data is partly /fully corrupt ?

UDP header also contains CRC, so this makes me feel that in case datagram is received the data would be reliable ? Is that correct or not ?

To more elaborate the problem I send the data from Java udp server like

// Sending in Java
InetAddress group = InetAddress.getByName("230.0.0.1");
    //buf is a String.getBytes();
DatagramPacket packet = new DatagramPacket(buf, buf.length, group, 4446);
//socket is DatagramSocket in Java
socket.send(packet);

and get data in C# client like this

       // client  is UdpClient of C#
       Byte[] data = client.Receive(ref localEp);                        
       strData = Encoding.ASCII.GetString(data);

I am not manipulating CRC myself , at the receiver end I get the same data that was sent in buf, SO how do I check the CRC here, given I have an array of byte data.. ? or assume it would be correct (I can live with those extreme cases where CRC would match ie CRC and data are magically corrupt)

  • 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-15T17:10:56+00:00Added an answer on June 15, 2026 at 5:10 pm

    You can trust that the datagram is intact if its checksum (not technically a CRC) is correct, but that doesn’t mean you can trust the data. There’s nothing magic about the checksum formula, so a process that altered the data could merely recalculate the checksum and you’d never know.

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

Sidebar

Related Questions

I know that UDP is inherently unreliable, but when connecting to localhost I would
I have a program that transfer data over Internet sockets (UDP). so there are
Since it is possible to construct a tcp socket and a udp socket that
So we have an application that makes udp calls and sends packets. However, since
This is maybe a stupid question, but since I am relatively new to UDP
I am designing a UDP protocol which only requires there to be a single
I read somewhere that NTP is based on UDP and there's no security built
I want to create a Winsock UDP socket that only sends data to a
Since TCP guarantees packet delivery and thus can be considered reliable, whereas UDP doesn't
Since REST is stateless, each request that comes in has no knowledge of the

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.