Difference between message-oriented protocols versus stream-oriented protocols [closed]

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 … Read more

TCP sequence number question

The sequence number loops back to 0. Source: TCP sequence numbers and receive windows behave very much like a clock. The receive window shifts each time the receiver receives and acknowledges a new segment of data. Once it runs out of sequence numbers, the sequence number loops back to 0. Also see chapter 4 of … Read more

Why tcp termination need 4-way-handshake?

After googling a lot, I recognized that the four-way is actually two pairs of two-way handshakes. If termination is a REAL four-way actions, the 2 and 3 indeed can be set 1 at the same packet. But this a two-phase work: the first phase (i.e. the first two-way handshake) is : Client ——FIN—–> Server Client … Read more

Size of empty UDP and TCP packet?

TCP: Size of Ethernet frame – 24 Bytes Size of IPv4 Header (without any options) – 20 bytes Size of TCP Header (without any options) – 20 Bytes Total size of an Ethernet Frame carrying an IP Packet with an empty TCP Segment – 24 + 20 + 20 = 64 bytes UDP: Size of … Read more

Is SMTP based on TCP or UDP?

In theory SMTP can be handled by either TCP, UDP, or some 3rd party protocol. As defined in RFC 821, RFC 2821, and RFC 5321: SMTP is independent of the particular transmission subsystem and requires only a reliable ordered data stream channel. In addition, the Internet Assigned Numbers Authority has allocated port 25 for both … Read more

Are binary protocols dead? [closed]

You Just Can’t Beat the Binary Binary protocols will always be more space efficient than text protocols. Even as internet speeds drastically increase, so does the amount and complexity of information we wish to convey. The text protocols you reference are outstanding in terms of standardization, flexibility and ease of use. However, there will always … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)