I am trying to understand the difference between these two computer networking terminologies. I searched over the internet but coudn't get a good idea. Could anybody please explain me or give a link to a page that explains this? Thank you...
views:
142answers:
2Stream protocols send data byte-by-byte. You can view it as pipe where all going in on one side gets transfered on other side. It is task of other side to determine when it has enough data to make any sense of it.
TCP is classic example of it. Once you send "Hello World" through pipe, there are no guaranties that it will come as such. It may come as each letter by itself, as two words or in one piece. Only thing that you know is that letters will be in same order.
Message protocols are usually built over streams but there is one layer in between which takes care to separate each logical part from another. It parses input stream for you and gives you result only when whole dataset arrives and not all states in between. In previous example, you would only expect whole "Hello World" message or nothing.
This is quite simplified view, but I think it explains biggest difference.
Message Oriented protocols send data in distinct chunks or groups. The receiver of data can determine where one message ends and another begins. Stream protocols send a continuous flow of data.
Here is an example with mobile phones. Text messages would be a message oriented protocol as each text message is distinct from the other messages. A phone call is stream oriented as there is a continuous flow of audio throughout the call.
Common protocols used on the internet are UDP (message oriented) and TCP (stream oriented). Wikipedia these terms for more information.
Hope this helps