Prerequisites to Onboard Virtual Network Functions on NFX350 Devices
You can onboard and manage Juniper Virtual Network Functions (VNFs) and third-party VNFs on NFX devices through the Junos Control Plane (JCP).
This topic provides general guidelines to qualify VNFs on NFX350 devices. Before onboarding a VNF, you must test the VNF according to your use case scenario.
NFX350 Device Prerequisites to Onboard a VNF
To onboard VNFs on NFX350, the device must be on either Hybrid mode or Compute mode. The number of VNFs that you can onboard on the device depends on the system resources such as CPUs and system memory that are available on the mode that the device is operating. For more information about the performance modes, see NFX350 Overview.
Before you onboard the VNF, check the following NFX350 device capabilities:
Check the current performance mode of the device by using the
show vmhost mode
command. The NFX350 device must be in either Compute or Hybrid mode when you run theshow vmhost mode
command.Check the available system memory by using the
show system visibility memory
command.Table 1 lists the possible memory availability for VNF usage for the NFX350 models.
Table 1: Memory Availability for VNF Usage (Junos OS 19.4R1 Release) Model
Total System Memory
Hugepages Availability for VNF Usage
NFX350-S1
32 GB
7 1G hugepages
NFX350-S2
64 GB
23 1G hugepages
NFX350-S3
128 GB
62 1G hugepages
Check the available CPUs and its status by using the
show system visibility cpu
command. Use theshow vmhost mode
command to check the available CPUs in the current performance mode of the device.Table 2 lists the CPUs available for VNF usage for the NFX350 models.
Table 2: CPUs Available for VNF Usage (Junos OS 19.4R1 Release) Model
CPUs Available for VNF Usage
Throughput Mode
Hybrid Mode
Compute Mode
NFX350-S1
0
8
10
NFX350-S2
0
10
14
NFX350-S3
0
14
20
Note:When you change the performance mode of the device, it is recommended to check the availability of the CPUs for VNFs.
On NFX350 devices, it is recommended to use external SSD for storing VNF images or files.
For more information, see Configuring VNFs on NFX350 Devices.
VNF Prerequisites to Onboard on an NFX350 Device
To onboard a VNF on an NFX350 device, the following VNF properties should be met:
For VNF production deployment, it is recommended to use external hard disk.
KVM based hypervisor deployment
OVS or Virtio interface drivers
raw or qcow2 VNF file types
Support of up to a maximum of 8 user interfaces
Following are the optional prerequisites to onboard a VNF:
(Optional) SR-IOV
(Optional) CD-ROM and USB configuration drives
(Optional) Hugepages for memory requirements if VNF wants to access OVS.
Validate the VNFs
To validate and qualify the VNFs, you must ensure the following:
The configuration commit succeeds for the VNF.
The
show virtual-network-functions
command output displays the VNF entry.The
show system visibility vnf
command output displays the VNF properties and interfaces that are configured.The
show vmhost network nfv-back-plane
command displays all interfaces that are connected to the OVS bridges with the stateup/up
. Theshow system visibility network
command displays all the VNF interfaces.Connection to the console of the VNF succeeds and VNF boot up or login prompt is displayed.
When you are logged into the VNF, use the
request virtual-network-function console
command for the VNF to display all the interfaces that are configured.The
show virtual-network-functions
command lists the VNF that are alive when the internal management interface is configured with DHCP client inside the VNF.VNF interfaces on the OVS bridge show
tx/rx
statistics when the traffic is ingressed or egressed from the VNF.VNF should restart successfully when a restart is initiated from within the VNF or by using the
request virtual-network-functions restart vnf-name
command.
For sample configuration of third-party VNFs, see Example: Configuring Service Chaining for LAN to WAN Routing through Third-party VNFs on NFX350 Devices.
Sample Output
show virtual-network-functions
root@host> show virtual-network-functions ID Name State Liveliness - 5 vsrx Running down 1 vjunos0 Running alive
The
Liveliness
is alive when there is a management connectivity to the VNF. TheState
should beRunning
to show that the VNF is up.show system visibility vnf
root@host> show system visibility vnf List of VNFs - ID Name State - - - 5 vsrx Running VNF Memory Usage - Name Maximum Memory (KiB) Used Memory (KiB) Used 1G Hugepages Used 2M Hugepages - - - - - vsrx 4194304 49715 4 0 VNF CPU Statistics (Time in ms) - Name CPU Time System Time User Time - - - - vsrx 164425446 3214840 197880 VNF MAC Addresses - VNF MAC - - centos1_ethdef0 9C:CC:83:BD:8C:40 centos1_ethdef1 9C:CC:83:BD:8C:46 centos1_eth2 9C:CC:83:BD:8C:41 vsrx_ethdef0 9C:CC:83:BD:8C:42 vsrx_ethdef1 9C:CC:83:BD:8C:43 vsrx_eth2 9C:CC:83:BD:8C:45 vsrx_eth3 9C:CC:83:BD:8C:44 VNF Internal IP Addresses - VNF IP - - vsrx 192.0.2.100 VNF Interfaces - VNF Interface Type Source Model MAC IPv4-address - - - - - - - vsrx vnet6 network default virtio 9c:cc:83:bd:8c:42 - vsrx vnet7 bridge eth0br virtio 9c:cc:83:bd:8c:43 - vsrx vsrx_eth2 vhostuser - virtio 9c:cc:83:bd:8c:45 - VNF Disk Information - VNF Disk File - - - vsrx vda /var/public/junos-vsrx3-x86-64-19.4R1.12.qcow2 VNF Disk Usage - VNF Disk Read Req Read Bytes Write Req Write Bytes - - - - - - vsrx vda 220376 1951876096 24927 185393152 VNF Port Statistics - VNF Port Rcvd Bytes Rcvd Packets Rcvd Error Rcvd Drop Trxd Bytes Trxd Packets Trxd Error Trxd Drop - - - - - - - - - - vsrx vnet6 4113582 79122 0 0 0 0 0 0 vsrx vnet7 3399770129 47653525 0 34631 0 0 0 0 vsrx vsrx_eth2 3724 65 0 0 4372 73 0 0
request virtual-network-functions vsrx console
root@host> request virtual-network-functions vsrx console Internal instance: vsrx Connected to domain vsrx Escape character is ^] FreeBSD/amd64 (Amnesiac) (ttyu0) login: root Password: Last login: Tue Mar 17 16:10:40 on ttyu0 - JUNOS 19.4R1.12 Kernel 64-bit XEN JNPR-11.0-20191115.14c2ad5_buil root@:~ # root@:~ # cli hroot> show interfaces terse Interface Admin Link Proto Local Remote ge-0/0/0 up up gr-0/0/0 up up ip-0/0/0 up up lsq-0/0/0 up up lt-0/0/0 up up mt-0/0/0 up up sp-0/0/0 up up sp-0/0/0.0 up up inet inet6 sp-0/0/0.16383 up up inet ge-0/0/1 up up ge-0/0/1.0 up up inet 10.10.10.1/24 root> show configuration | display set |match fxp0 set system services web-management http interface fxp0.0 set system services web-management https interface fxp0.0 set interfaces fxp0 unit 0 family inet dhcp root> show interfaces terse | match fxp0 fxp0 up up fxp0.0 up up inet 192.0.2.100/24
show system visibility memory
root@host> show system visibility memory Memory Information ------------------ Virtual Memory: --------------- Total (KiB): 131042784 Used (KiB): 64842740 Available (KiB): 66595824 Free (KiB): 66200044 Percent Used : 49.2 Huge Pages: ------------ Total 1GiB Huge Pages: 18 Free 1GiB Huge Pages: 0 Configured 1GiB Huge Pages: 0 Total 2MiB Huge Pages: 20481 Free 2MiB Huge Pages: 0 Configured 2MiB Huge Pages: 0 Hugepages Usage: ---------------------------------------------------------------------------------------------------------- Name Type Used 1G Hugepages Used 2M Hugepages --------------------------------- ---------------------------------- ------------------ ------------------ ovs-vswitchd other process 18 0 srxpfe other process 6 20481
In the output message, check
Free
andConfigured
fields underVirtual Memory
andHuge Pages
sections for the memory availability.show vmhost mode
root@host> show vmhost mode Mode: -------- Current Mode: hybrid CPU Allocations: Name Configured Used ---------------------------------------------------------------------------------------------------------------------- Junos Control Plane 16 16,9 Juniper Device Manager 16 16 LTE 16 - NFV Backplane Control Path 16 16 NFV Backplane Data Path 1,2,3,4 1,2,3,4 Layer 2 Control Path - - Layer 2 Data Path - - Layer 3 Control Path 0 0 Layer 3 Data Path 5,6,7,8 5,6,7,8 CPUs available for VNFs 9,10,11,12,13,14,15,25,26,27,28,29,30,31 - CPUs turned off 17,18,19,20,21,22,23,24 - Memory Allocations: Name Configured Used ---------------------------------------------------------------------------------------------------------------------- Junos Control Plane (mB) 2048 2009 NFV Backplane 1G hugepages 12 18 NFV Backplane 2M hugepages - 0 Layer 2 1G hugepages - - Layer 2 2M hugepages - - Layer 3 1G hugepages 6 6 Layer 3 2M hugepages 20481 20481
In the output message, check the
Current Mode
field under theMode
section for the current performance mode of the device. Check theCPUs available for VNFs
field under theCPU Allocations
section for the CPU availability.