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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:12:11+00:00 2026-05-31T22:12:11+00:00

What are "message boundaries" in the following context? One difference between TCP and UDP

  • 0

What are "message boundaries" in the following context?

One difference between TCP and UDP is that UDP preserves message
boundaries.

I understand the difference between TCP and UDP, but I’m unsure about the definition of "message boundaries".

Since UDP includes the destination and port information in each individual packet, could it be this that gives message a "boundary"?

  • 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-05-31T22:12:12+00:00Added an answer on May 31, 2026 at 10:12 pm

    No, message boundaries have nothing to do with destinations or ports. A “message boundary” is the separation between two messages being sent over a protocol. UDP preserves message boundaries. If you send “FOO” and then “BAR” over UDP, the other end will receive two datagrams, one containing “FOO” and the other containing “BAR”.

    If you send “FOO” and then “BAR” over TCP, no message boundary is preserved. The other end might get “FOO” and then “BAR”. Or it might get “FOOBAR”. Or it might get “F” and then “OOB” and then “AR”. TCP does not make any attempt to preserve application message boundaries — it’s just a stream of bytes in each direction.

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

Sidebar

Related Questions

What does the "bus error" message mean, and how does it differ from a
I have the typical HTML "contact me" page, i.e. name, e-mail address and message.
When I print "\[\e[34m\]sometext" I get some text in blue, but can I specify
I got a lot of errors with the message : "DatabaseError: current transaction is
I have a program that works fine on VS2008 and Vista , but I'm
I found a similar question that threw the same exception, but it wasn't helpful.
I am using ServiceMix 4.2. How can I set a JMS message as "persistent"?
I have a string: $string = "R 124 This is my message"; At times,
I have the following method that I wish to verify behaviour on. public void
I've got the following excerpt from a logfile, and have to grab everything between

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.