Skip to content

Software flow control

Software flow control is a method of flow control used in computer data links, especially RS-232 serial. It uses special codes, transmitted in-band, over the primary communications channel. These codes are generally called XOFF and XON (from "transmit off" and "transmit on", respectively). Thus, "software flow control" is sometimes called "XON/XOFF flow control". This is in contrast to flow control via dedicated out-of-band signals — "hardware flow control" — such as RS-232 RTS/CTS.

XON/XOFF

호스트와 디바이스간 통신할 때 제어를 위해 사용되는 기능이 Flow Control Xon/Xoff이다.

비동기 통신을 할 때는 서로 속도가 맞춰지지 않았기 때문에, 누군가는 빨리 보낼 가능성이 있다.

따라서 받는 쪽에서 버퍼가 가득찼을 때, Xoff 신호를 보내게 된다. 이후 버퍼의 내용들이 catch 되었을 때 다시 Xon 신호를 보내 통신을 재개한다

See also

Favorite site