loopback – network link simulation|
bind –a #λ /net |
The loopback interface, /net/loopbackn, is a directory containing
two subdirectories, one for each end of a simulated network link.
The number n is the device number of the link, permitting multiple
links to be used on a single machine. |
Each directory contains files to control the associated connection, receive and send data, monitor the simulation parameters, and supply statistics.
The data files for the two directories are cross–connected. Writes to one are divided into packets of at most a certain size, typically 32768 bytes, written to a flow–controlled output queue, transferred across the link, and put into an input queue where it is readable from the other data file.
Options are set by writing to the ctl file for the receiving end
of the link, and are reported in the same format by reading status.
The following options are supported.