prf command
Description
The command allows to control pseudo-radio interfaces. MINT architecture protocol can work not only via radio interfaces but through wired Ethernet interfaces. For this purpose, "prf" interface is used which can be attached to the physical interface.
The "prf" driver allows sending network frames of a proprietary format through Ethernet network. When sending frames to Ethernet, the driver encapsulates them into IEEE802.3 frames. If the driver settings allow the frames transmission longer than 1514 bytes, then encapsulation can also be performed in "Jumbo frame" in accordance with the document IETF "Extended Ethernet Frame Size Support". If specified maximal length of Ethernet frame is not enough to send a fully encapsulated original frame, this frame will be fragmented and then assembled at the remote side. Fragmentation algorithm uses the feature of Ethernet to avoid a delivery of frames out of turn.
There is a possibility to create up to four isolated pseudo-radio networks within one Ethernet segment. Each prf interface can be assigned a number from 0 to 3. Frames sent to Ethernet with a specific channel number can be received on other nodes only by prf interfaces with the same channel number.
To activate the pseudo-radio interface, the following command must be entered:
Syntax:
Parameters
parent IFNAME
Sets parent interface through which encapsulated (fragmented) packets will be sent. Only Ethernet-type interfaces can be configured.
"IFNAME" – interface identifier.
hwmtu N
The radio frames are often longer than the standard Ethernet frame size, PRF interfaces using Ethernet as the transmission medium must split the jumbo frames into multiple pieces and reassemble them at their destination. To calculate the maximum frame size that can be transmitted over Ethernet, the system performs a range of measurements by sending special test packets with different lengths and determines the maximum length (hwmtu) that was successfully received by the destination device. The "hwmtu" parameter is measured for each neighbor, to display this value use the "mint map detail" command. Thus, when MINT based switching is activated, the "hwmtu" parameter is calculated automatically by the system, the value set manually will be overwritten.
channel N
Sets channel number (0-3) with which the frames are sent and received by parent interface. By default channel number is 0.
clear
Removes prf with a specified number.
Examples
Create pseudo-radio interface 5. Set the "eth0" interface as parent, and assign channel number 3.
By using the "ifconfig" command display an information about the created prf interface.
"Scattered fragments" – number of frames where one or several fragments were lost, the frame cannot be restored.
"Corrupted packets" – number of frames with the wrong length or structure.
"Double encapsulated packets" – number of frames with double encapsulation.
"Out of fragbufs" – the number of errors as a result of frame assembly buffer overflow due to too many fragments (neighbors) sources.
"Out of mbufs" – the number of errors as a result of system buffers overflow.
Last updated