Successfully pass the free certification exam at IW Academy and become an Infinet Certified Engineer.
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:
ifconfig prfN up
Syntax:
prf N parent IFNAME [hwmtu N] [channel N] prf N clear
Parameters
Parameter | Description |
---|---|
parent IFNAME | Sets parent interface through which encapsulated (fragmented) packets will be sent. Only Ethernet-type interfaces can be configured.
|
hwmtu N | Sets maximal Ethernet frame length sent to the parent interface. If not specified the system automatically determines the optimum value. |
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. ifconfig prf5 up prf5 link administratively up prf 5 parent eth0 prf 5 channel 3 |
By using the "ifconfig" command display an information about the created prf interface ifconfig -a prf5: flags=8003<UP,BROADCAST,MULTICAST> mtu 1500 inet 0.0.0.0 netmask 0x0 ether 00:04:35:03:5e:4e Parent interface eth0 Hardware MTU 1514 --------------------------------------------------------------- Transmitted packets 0 Transmit fragmentation 0 packets in 0 fragments Load (pps) 0 Load (kbps) 0 --------------------------------------------------------------- Received packets 0 Receive fragmentation 0 packets in 0 fragments Load (pps) 0 Load (kbps) 0 --------------------------------------------------------------- Scattered fragments 0 Corrupted packets 0 Double encapsulated packets 0 Out of fragbufs 0 Out of mbufs 0 |