The Bypass function enables transparent traffic pass-through without processing. The system includes the following levels of Bypass:
1. External Optical Bypass consists of a chassis and Bypass cards. Each card serves 1 or 2 links and independently monitors the signal level toward the NPB for specific links. If the signal falls below a certain level, an immediate switch to Bypass mode occurs. The card also performs an IP address availability check (ping Heartbeat) on the NPB. If the ping is lost, the cards switch to Bypass mode. The fastBypass process on the NPB ensures an external Optical Bypass switch in case of NPB failure or more than N DPI devices failing.
2. Software Bypass on the NPB enables traffic pass-through without forwarding to DPI devices. It is used for transparent pass-through of service traffic (BGP, MPLS). The following protocols possible to configure for transparent pass-through on the NPB:
3. Software Bypass on the DPI enables traffic pass-through through DPI devices and is used for transparent pass-through of certain ASN traffic.
Each Bypass card has independent management. Bypass is managed with the fbypass_ctl utility. This utility includes a command set for enabling/disabling Bypass, launching the fastbypass_monitor service, and obtaining status.
The fbypass_ctl utility is an alias for a bash script. It can only be used in sudo mode. Before using the utility, enter sudo su - and the password.
After the utility, specify the following for Bypass management:
bp_moduleall to manage all Bypassesall to manage all cardsExamples of utility usage are provided in the corresponding section.
enable_bypass — set card to bypass mode (mode: manual, channel: bypass)
disable_bypass — set card to normal mode (mode: auto, channel: primary)
set_bypass_channel — set channel to bypass mode
set_primary_channel — set channel to primary mode
set_manual_mode — set card to manual mode
set_auto_mode — set card to auto mode
get_mode_state — return the card mode status
get_channel_state — return the card channel status
fbypass_ctl bp_module all all enable_bypass
fbypass_ctl bp_module all all disable_bypass
fbypass_ctl bp_module all all get_mode_state
fbypass_ctl bp_module all all get_channel_state
fbypass_ctl bp_module 0 1,3 enable_bypass
fbypass_ctl bp_module 0 7,15,21 enable_bypass
fbypass_ctl bp_module 0 7,15,21 all get_mode_state
fbypass_ctl bp_module 0 7,15,21 all get_channel_state
fbypass_ctl bp_module all 1,2,3,4,5,6,7,8 enable_bypass
fbypass_ctl bp_module 0 1,2,3,4,5,6,7,8 enable_bypass
fbypass_ctl bp_module 1 1,2,3,4,5,6,7,8 enable_bypass
fbypass_ctl bp_module all 1,2,3,4,5,6,7,8 disable_bypass
fbypass_ctl bp_module 0 1,2,3,4,5,6,7,8 disable_bypass
fbypass_ctl bp_module 1 1,2,3,4,5,6,7,8 disable_bypass
sudo apt-get update sudo apt-get install telnet sudo apt-get install openssh-client
mkdir -p /var/fastbypass_monitor/backend/
scp -r user@10.19.1.222:/var/fastbypass_monitor/backend/. /var/fastbypass_monitor/backend/
When entering management commands, specify the full path to the script, for example:
/var/fastbypass_monitor/backend/app_bash/cmd_bypass_ctl.sh
If there is a software failure on DPI, the NPB removes the DPI from the stack and redistributes the load among the remaining DPIs.
If more than two DPI nodes fail, the entire system switches to bypass mode.
If the link on a DPI fails, NPB redistributes the load among the remaining DPIs.
fastbypass_monitor (referred to as "daemon" further in the documentation and script) is a tool for monitoring and managing the state of network interfaces connected to Bypass network cards.
The daemon reacts to HEARTBEAT signals received from DPI on specific ports defined in the configuration file. If HEARTBEAT signals are not received according to the configuration rules, the daemon performs specific actions such as deleting or creating IP addresses connected to the Bypass cards and enabling or disabling certain network interfaces.
OS: OpenSwitch 2+ / Debian 9+
Python: 2.7.9
fastbypass_monitor-X.X.XX.deb to the host machine. sudo dpkg -i fastbypass_monitor-X.X.XX.deb
After installation, the daemon becomes manageable through the system manager (systemctl).
The configuration file is available at /var/fastbypass_monitor/backend/.env
A sample configuration file can be found at /var/fastbypass_monitor/backend/sample.env
Daemon logs are stored at /var/fastbypass_monitor/backend/logs/
After installation, the daemon runs automatically. Upon reboot, it starts after the network service has successfully launched.
Manage the daemon using system manager commands.
Aliases (short command equivalents) can only be used with sudo. Use
sudo su - and enter the password to enable this mode.
sudo systemctl start fastbypass_monitor
Alias:
fbypass_ctl start
sudo systemctl restart fastbypass_monitor
Alias:
fbypass_ctl restart
sudo systemctl reload fastbypass_monitor
Alias:
fbypass_ctl reload
sudo systemctl stop fastbypass_monitor
Alias:
fbypass_ctl stop
sudo systemctl status fastbypass_monitor
Alias:
fbypass_ctl status
tail -f /var/fastbypass_monitor/backend/logs/fastbypass_monitor.log
Alias:
fbypass_ctl tailf
tail -n 100 /var/fastbypass_monitor/backend/logs/fastbypass_monitor.log
Alias:
fbypass_ctl tail 100
fbypass_ctl force_on
fbypass_ctl force_off
fbypass_ctl enable
fbypass_ctl disable
To configure and launch the daemon with new settings, edit the configuration file and restart or stop and start the daemon.
The daemon configuration is located at /var/fastbypass_monitor/backend/.env
In case of a critical error, the daemon will restart automatically.
Using sudo systemctl reload fastbypass_monitor will reload the configuration without stopping the daemon, shutting down removed components, and adding new ones.
During startup and reload, the daemon does not manage interfaces and IPs until all listeners report their statuses. After a restart, the daemon remains in its previous state until receiving updates from all listeners.
The daemon manages interfaces based on either a global state (depending on all listeners) or a local state (specific to individual listeners).
For instance, if you list interfaces in the global settings, they will be enabled or disabled based on the daemon’s overall state. If the daemon fails to receive enough signals, the interfaces are disabled.
Example:
LISTEN_CUBRO_IFS=<interface list> LISTEN_SHUTDOWN_CUBRO_IFS_WHEN_BYPASS=1
Each listener can also have its own interface list that it manages based on its state.
Example:
LISTEN_CUBRO_IFS[0]=<interface list> LISTEN_SHUTDOWN_CUBRO_IFS_WHEN_BYPASS[0]=1
If an interface appears in multiple listeners' lists, it switches to bypass mode if any listener stops receiving signals. The interface returns to normal mode only if all listeners are active.
If an interface appears in both local and global settings, it remains in bypass mode until the corresponding listener starts receiving signals and the daemon switches to normal mode.
A minimal configuration requires specifying at least one interface, IP address, and port for receiving HEARTBEAT signals, along with one interface and IP for Bypass cards.
Example:
LOG_LEVEL=INFO LISTEN_HEARTBEAT_IFS=eth0 BYPASS_CARD_IFS=eth0 LISTEN_HEARTBEAT_FAILED=1 LISTEN_HEARTBEAT_ATTEMPTS=1 LISTEN_HEARTBEAT_TIMEOUT=3000 LISTEN_HB_HOST[0]=192.168.1.202 LISTEN_HB_PORT[0]=3000 LISTEN_HB_HOST[1]=192.168.1.202 LISTEN_HB_PORT[1]=3100 BYPASS_CARD_HOST[0]=192.168.1.211 BYPASS_CARD_HOST[1]=192.168.1.212
This example configures the daemon to receive HEARTBEAT signals on interface eth0 at IP 192.168.1.202 and ports 3000 and 3100.
Bypass cards are connected via eth0 at IPs 192.168.1.211 and 192.168.1.212.
Default listener values:
LISTEN_HEARTBEAT_ATTEMPTS: 1
LISTEN_HEARTBEAT_TIMEOUT: 3000 ms
If a listener fails to receive a signal after one attempt within 3000 ms, it is marked as failed.
If the number of failed listeners meets or exceeds the threshold (LISTEN_HEARTBEAT_FAILED), the daemon switches to bypass mode and removes IPs from Bypass cards.
When signals are restored, the listener resumes normal operation.
If the number of failed listeners falls below the threshold, the daemon switches back to NORMAL mode and restores the IPs for the Bypass cards.