Machine-translated by Google. Questions are authored in English.
Top

Discussion

Two networks each provide reliable connection-oriented service. One of them offers a reliable byte stream and the other offers a reliable message stream. A process writes 1024 bytes, then

  • A.both networks will receive 2048 bytes as a single unit
  • B.message stream network will receive 1024 bytes only at one time. But byte stream network will receive 2048 bytes as a single unit.
  • C.message stream network receives 2048 bytes as a whole. But bytes stream 1024 bytes only at a time.
  • D.both will receive 1024 bytes at one time since there is a gap between writes

Answer: B

Correct answer: message stream network will receive 1024 bytes only at one time

A message stream preserves the boundaries the sender wrote, so two writes of 1024 bytes arrive as two separate messages. A byte stream keeps no boundaries at all, so the same two writes may be read as one block of 2048 bytes, or in any other division.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.