daemon: updates to switch from using ebtables to nftables for wlan linking/unlinking
This commit is contained in:
parent
208c746b67
commit
30291a8438
14 changed files with 153 additions and 206 deletions
|
@ -51,8 +51,8 @@ filesystem in CORE.
|
|||
|
||||
CORE combines these namespaces with Linux Ethernet bridging to form networks.
|
||||
Link characteristics are applied using Linux Netem queuing disciplines.
|
||||
Ebtables is Ethernet frame filtering on Linux bridges. Wireless networks are
|
||||
emulated by controlling which interfaces can send and receive with ebtables
|
||||
Nftables provides Ethernet frame filtering on Linux bridges. Wireless networks are
|
||||
emulated by controlling which interfaces can send and receive with nftables
|
||||
rules.
|
||||
|
||||
## Prior Work
|
||||
|
|
|
@ -104,7 +104,7 @@ vcmd -c /tmp/pycore.50160/n1 -- /sbin/ip -4 ro
|
|||
|
||||
A script named *core-cleanup* is provided to clean up any running CORE emulations. It will attempt to kill any
|
||||
remaining vnoded processes, kill any EMANE processes, remove the :file:`/tmp/pycore.*` session directories, and remove
|
||||
any bridges or *ebtables* rules. With a *-d* option, it will also kill any running CORE daemon.
|
||||
any bridges or *nftables* rules. With a *-d* option, it will also kill any running CORE daemon.
|
||||
|
||||
### netns command
|
||||
|
||||
|
@ -121,5 +121,5 @@ ip link show type bridge
|
|||
# view the netem rules used for applying link effects
|
||||
tc qdisc show
|
||||
# view the rules that make the wireless LAN work
|
||||
ebtables -L
|
||||
nft list ruleset
|
||||
```
|
||||
|
|
|
@ -172,7 +172,7 @@ will draw the link with a dashed line.
|
|||
Wireless nodes, i.e. those connected to a WLAN node, can be assigned to
|
||||
different emulation servers and participate in the same wireless network
|
||||
only if an EMANE model is used for the WLAN. The basic range model does
|
||||
not work across multiple servers due to the Linux bridging and ebtables
|
||||
not work across multiple servers due to the Linux bridging and nftables
|
||||
rules that are used.
|
||||
|
||||
**NOTE: The basic range wireless model does not support distributed emulation,
|
||||
|
|
|
@ -544,7 +544,7 @@ on platform. See the table below for a brief overview of wireless model types.
|
|||
|
||||
|Model|Type|Supported Platform(s)|Fidelity|Description|
|
||||
|-----|----|---------------------|--------|-----------|
|
||||
|Basic|on/off|Linux|Low|Ethernet bridging with ebtables|
|
||||
|Basic|on/off|Linux|Low|Ethernet bridging with nftables|
|
||||
|EMANE|Plug-in|Linux|High|TAP device connected to EMANE emulator with pluggable MAC and PHY radio types|
|
||||
|
||||
To quickly build a wireless network, you can first place several router nodes
|
||||
|
|
|
@ -15,20 +15,14 @@ containers, as a general rule you should select a machine having as much RAM and
|
|||
|
||||
* Linux Kernel v3.3+
|
||||
* iproute2 4.5+ is a requirement for bridge related commands
|
||||
* ebtables not backed by nftables
|
||||
* nftables compatible kernel and nft command line tool
|
||||
|
||||
### Supported Linux Distributions
|
||||
Plan is to support recent Ubuntu and CentOS LTS releases.
|
||||
|
||||
Verified:
|
||||
* Ubuntu - 18.04, 20.04
|
||||
* CentOS - 7.8, 8.0*
|
||||
|
||||
> **NOTE:** Ubuntu 20.04 requires installing legacy ebtables for WLAN
|
||||
> functionality
|
||||
|
||||
> **NOTE:** CentOS 8 does not provide legacy ebtables support, WLAN will not
|
||||
> function properly
|
||||
* CentOS - 7.8, 8.0
|
||||
|
||||
> **NOTE:** CentOS 8 does not have the netem kernel mod available by default
|
||||
|
||||
|
|
|
@ -521,7 +521,7 @@ on platform. See the table below for a brief overview of wireless model types.
|
|||
|
||||
|Model|Type|Supported Platform(s)|Fidelity|Description|
|
||||
|-----|----|---------------------|--------|-----------|
|
||||
|Basic|on/off|Linux|Low|Ethernet bridging with ebtables|
|
||||
|Basic|on/off|Linux|Low|Ethernet bridging with nftables|
|
||||
|EMANE|Plug-in|Linux|High|TAP device connected to EMANE emulator with pluggable MAC and PHY radio types|
|
||||
|
||||
To quickly build a wireless network, you can first place several router nodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue