Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Preparing for Junos Node Slicing Setup

Note:

Topics in this section apply only to Junos node slicing set up using the external server model. For the in-chassis Junos node slicing, proceed to Configuring MX Series Router to Operate in In-Chassis Mode.

Before setting up Junos node slicing (external server model), you need to perform a few preparatory steps, such as connecting the servers and the router, installing additional packages, configuring x86 server Linux GRUB, and setting up the BIOS of the x86 server CPUs.

Connecting the Servers and the Router

To set up Junos node slicing, you must directly connect a pair of external x86 servers to the MX Series router. Besides the management port for the Linux host, each server also requires two additional ports for providing management connectivity for the JDM and the GNF VMs, respectively, and two ports for connecting to the MX Series router.

Note:
  • Do not connect the loopback cable to external CB port when Junos node slicing is enabled on the MX series router. Also, ensure that the external CB port is not connected to the other CB's external port.

  • To prevent the host server from any SSH brute force attack, we recommend that you add IPtables rules on the host server. The following is an example:

    The rule in the above example is used to rate-limit the incoming SSH connections. It allows you to block connections from the remote IP for a certain period of time when a particular number of SSH attempts are made. As per the example above, after 10 attempts, connections from remote IP will be blocked for 120 seconds.

Figure 1 shows how an MX2020 router is connected to a pair of x86 external servers.

Figure 1: MX2020 Router—External x86 Server ConnectivityMX2020 Router—External x86 Server Connectivity

According to the example in Figure 1, em1, em2, and em3 on the x86 servers are the ports that are used for the management of the Linux host, the JDM and the GNFs, respectively. p3p1 and p3p2 on each server are the two 10-Gbps ports that are connected to the Control Boards of the MX Series router.

Note:

The names of interfaces on the server, such as em1, p3p1 might vary according to the server hardware configuration.

For more information on the XGE ports of the MX Series router Control Board (CB) mentioned in Figure 1, see:

Note:

Use the show chassis ethernet-switch command to view these XGE ports. In the command output on MX960, refer to the port numbers 24 and 26 to view these ports on the SCBE2. In the command output on MX2010 and MX2020, refer to the port numbers 26 and 27 to view these ports on the Control Board-Routing Engine (CB-RE).

x86 Server CPU BIOS Settings

For Junos node slicing, the BIOS of the x86 server CPUs should be set up such that:

  • Hyperthreading is disabled.

  • The CPU cores always run at their rated frequency.

  • The CPU cores are set to reduce jitter by limiting C-state use.

To find the rated frequency of the CPU cores on the server, run the Linux host command lscpu, and check the value for the field Model name. See the following example:

To find the frequency at which the CPU cores are currently running, run the Linux host command grep MHz /proc/cpuinfo and check the value for each CPU core.

On a server that has the BIOS set to operate the CPU cores at their rated frequency, the observed values for the CPU cores will all match the rated frequency (or be very close to it), as shown in the following example.

On a server that does not have the BIOS set to operate the CPU cores at their rated frequency, the observed values for the CPU cores do not match the rated frequency, and the values could also vary with time (you can check this by rerunning the command).

To set the x86 server BIOS system profile to operate the CPU cores at their rated frequency, reduce jitter, and disable hyperthreading, consult the server manufacturer, because these settings vary with server model and BIOS versions.

Typical BIOS system profile settings to achieve this include:

  • Logical processor: set to Disabled.

  • CPU power management: set to Maximum performance.

  • Memory frequency: set to Maximum performance.

  • Turbo boost: set to Disabled.

  • C-states and C1E state: set to Disabled.

  • Energy efficient policy: set to Performance.

  • Monitor/Mwait: set to Disabled.

A custom BIOS system profile might be required to set these values.

x86 Server Linux GRUB Configuration

In Junos node slicing, each GNF VM is assigned dedicated CPU cores. This assignment is managed by Juniper Device Manager (JDM). On each x86 server, JDM requires that all CPU cores other than CPU cores 0 and 1 be reserved for Junos node slicing – and in effect, that these cores be isolated from other applications. CPU cores 2 and 3 are dedicated for GNF virtual disk and network I/O. CPU cores 4 and above are available for assignment to GNF VMs. To reserve these CPU cores, you must set the isolcpus parameter in the Linux GRUB configuration as described in the following procedure:

For x86 servers running Red Hat Enterprise Linux (RHEL) 9, perform the following steps:

  1. Determine the number of CPU cores on the x86 server. Ensure that hyperthreading has already been disabled, as described in x86 Server CPU BIOS Settings. You can use the Linux command lscpu to find the total number of CPU cores, as shown in the following example:

    Here, there are 24 cores (12 x 2). The CPU cores are numbered as core 0 to core 23.

  2. As per this example, the isolcpus parameter must be set to ’isolcpus=4-23’ (isolate all CPU cores other than cores 0, 1, 2, and 3 for use by the GNF VMs). The isolcpus parameter is set to ’isolcpus=4-23’ because of the following:

    • On each x86 server, JDM requires that all CPU cores other than CPU cores 0 and 1 be reserved for Junos node slicing.

    • CPU cores 2 and 3 are dedicated for GNF virtual disk and network I/O.

    Note:

    Previously, the isolcpus parameter 'isolcpus=2-23' was used. This has now been updated to 'isolcpus=4-23'. For more information, see KB35301.

    To set the isolcpus parameter in the Linux GRUB configuration file, follow the procedure described in the section Isolating CPUs from the process scheduler in this Red Hat document. A summary of the section is as follows:

    1. Edit the Linux GRUB file /etc/default/grub to append the isolcpus parameter to the variable GRUB_CMDLINE_LINUX, as shown in the following example:

    2. Run the Linux shell command grub2-mkconfig to generate the updated GRUB file as shown below:

      If you are using legacy BIOS, issue the following command:

      If you are using UEFI, issue the following command:

    3. Reboot the x86 server.

    4. Verify that the isolcpus parameter has now been set, by checking the output of the Linux command cat /proc/cmdline, as shown in the following example:

For x86 servers running Ubuntu 20.04, perform the following steps:

  1. Determine the number of CPU cores on the x86 server. Ensure that hyperthreading has already been disabled, as described in x86 Server CPU BIOS Settings. You can use the Linux command lscpu to find the total number of CPU cores.

  2. Edit the /etc/default/grub file to append the isolcpus parameter to the variable GRUB_CMDLINE_LINUX_DEFAULT, as shown in the following example:

  3. To update the changes, run update-grub.

  4. Reboot the server.

  5. Verify that the isolcpus parameter has now been set, by checking the output of the Linux command cat /proc/cmdline.

Updating Intel X710 NIC Driver for x86 Servers

If you are using Intel X710 NIC, ensure that you have the latest driver (2.4.10 or later) installed on the x86 servers, and that X710 NIC firmware version is 18.5.17 or later.

You need to first identify the X710 NIC interface on the servers. For example, this could be p3p1.

You can check the NIC driver version by running the Linux command ethtool -i interface. See the following example:

Refer to the Intel support page for instructions on updating the driver.

Note:

Updating the host OS may replace the Intel X710 NIC driver. Therefore, ensure that the host OS is up to date prior to updating the Intel X710 NIC driver.

You need the following packages for building the driver:

  • For RedHat:

    • kernel-devel

    • Development Tools

  • For Ubuntu:

    • make

    • gcc

If you are using RedHat, run the following commands to install the packages:

If you are using Ubuntu, run the following commands to install the packages:

Note:

After updating the Intel X710 NIC driver, you might notice the following message in the host OS log:

"i40e: module verification failed: signature and/or required key missing - tainting kernel"

Ignore this message. It appears because the updated NIC driver module has superseded the base version of the driver that was packaged with the host OS.

Installing Additional Packages for JDM

The x86 servers must have Red Hat Enterprise Linux (RHEL) 9 or Ubuntu 20.04 LTS installed.

Note:

The x86 Servers must have the virtualization packages installed.

For RHEL 9, install the following additional packages, which can be downloaded from the Red Hat Customer Portal.

  • python-psutil-1.2.1-1.el7.x86_64.rpm

  • net-snmp-5.7.2-24.el7.x86_64.rpm

  • net-snmp-libs-5.7.2-24.el7.x86_64.rpm

  • libvirt-snmp-0.0.3-5.el7.x86_64.rpm

Only for Junos OS Releases 17.4R1 and earlier, and for 18.1R1, if you are running RHEL 9, also install the following additional package:

  • libstdc++-4.8.5-11.el7.i686.rpm

Note:
  • The package version numbers shown are the minimum versions. Newer versions might be available in the latest RHEL 9 patches.

  • The libstdc++ package extension .i686 indicates that it is a 32-bit package.

  • For RHEL, we recommend that you install the packages using the yum command.

For Ubuntu 20.04, install the following packages:

  • python-psutil

Only for Junos OS Releases 17.4R1 and earlier, and for 18.1R1, if you are running Ubuntu, also install the following additional package:

  • libstdc++6:i386

Note:
  • For Ubuntu, you can use the apt-get command to install the latest version of these packages. For example, use:

    • the command apt-get install python-psutil to install the latest version of the python-psutil package.

    • the command apt-get install libstdc++6:i386 to install the latest version of the libstdc++6 package (the extension :i386 indicates that the package being installed is a 32-bit version).

Completing the Connection Between the Servers and the Router

Complete the following steps before you start installing the JDM:

  • Ensure that the MX Series router is connected to the x86 servers as described in Connecting the Servers and the Router.

  • Power on the two x86 servers and both the Routing Engines on the MX Series router.

  • Identify the Linux host management port on both the x86 servers. For example, em1.

  • Identify the ports to be assigned for the JDM and the GNF management ports. For example, em2 and em3.

  • Identify the two 10-Gbps ports that are connected to the Control Boards on the MX Series router. For example, p3p1 and p3p2.