Learn through the super-clean Baeldung Pro experience:
>> Membership and Baeldung Pro.
No ads, dark-mode and 6 months free of IntelliJ Idea Ultimate to start with.
Last updated: March 18, 2024
In this tutorial, we’ll explain the digital data communications protocol described in RFC 935.
The RFC 935 summarizes the most widely used serial data communications protocols utilized in the data link layer.
There are three main categories of serial data communications protocols: character-oriented, bit-oriented, and byte-count. The Digitial Equipment Corporation developed the DDCMP. The DDCMP implements a character count instead of framing characters.
The three categories of serial data communications protocol divide the transferred data into units called frames. A frame is a sequence of one to several hundred characters. A character is usually equal to one byte. The frame structure, length, and other aspects differ for each protocol.
For example, in character-oriented protocols, the message starts and ends the SYN character (a 7-bit code with an eighth bit used for parity). In bit-oriented protocols, the message starts and ends with the special bit pattern 01111110.
The figure below shows the structure of a frame in a character-oriented protocol:
The figure below shows the structure of a frame in a bit-oriented protocol:
The frame structure of DDCMP is visible below:
The data length of the frame can be up to 16363 bytes.
Using the byte count allows transparency, meaning control characters can be sent as part of the data. The receiver doesn’t recognize the control characters until the character count has been reached.
The DDCMP uses two cyclic redundancy checks, one for the header and another for the data. A NACK message means that the received frame is corrupted.
The SEQ field achieves frame sequence control. The frames obtain sequence numbers from 0 to 255. And there can be up to 255 frames outstanding. To start data frame transmission, the transmitter must first send a START message, then waits for a STACK message. Once the STACK message arrives, the sender can transmit data messages.
In this article, we discussed the DDCMP, and we saw that one of the advantages of DDCMP is that it does not require byte or bit stuffing in the data field.