The invention discloses a circuit and method for quickly forwarding messages based on an OSP protocol, and the circuit comprises a
data transmission rate detection circuit, a high-speed
clock circuit, a frequency dividing circuit, a buffer, and a transmitting circuit. The output end of the
data transmission rate detection circuit is connected to the frequency dividing circuit, and the
data transmission rate detection circuit detects the data
transmission rate of each bit and outputs the data
transmission rate to the frequency dividing circuit as a frequency dividing factor; one end of the high-speed
clock circuit is loaded to the data
transmission rate detection circuit, the other end of the high-speed
clock circuit is connected to the frequency dividing circuit, and the output end of the frequency dividing circuit is connected to the transmitting circuit; and one end of the buffer is connected with the
signal receiving end RX of the data transmission rate detection circuit, and the other end of the buffer is also connected to the transmitting circuit. According to the invention, by directly forwarding the cached data, when the RX finishes receiving, the sending circuit finishes subsequent sending according to the data transmission rate of the last bit, so that the sending speed and the receiving speed are consistent, and the chasing problem is avoided.