VS Resource Allocation
The PS administrator can allocate resources on a PS to VSs. Resources allocated to a VS are exclusively used by the VS. A VS administrator can check and manage only local VS resources after logging in to the VS.
Allocatable resources on the PS include physical and logical resources.
Physical Resources
- Port mode: Any interface on an interface card can be allocated to the Admin-VS.
Group mode: All interfaces in the same group must be allocated to the same VS, as shown in Figure 2-4.
By default, all interfaces on an interface card belong to the Admin-VS.
- The port mode is supported only on the Admin-VS, and the group mode is supported on other VSs.
The PS administrator can assign interfaces in the Admin-VS to VSs, but an interface can be allocated to only one VS.
Interfaces on different interface cards can be allocated to the same VS.
After an interface is allocated to a VS, original configurations on the interface are deleted.
A VS administrator can check and configure only interfaces in the local VS.
Logical Resources
Table 2-1 lists logical resources that can be allocated to VSs.
Resource |
Default VS Specifications |
---|---|
IPv4 unicast routing entries |
60000 |
IPv4 multicast routing entries |
1000 |
IPv6 unicast routing entries |
16000 |
IPv6 multicast routing entries |
100 |
VLANs |
4094 |
VPN instances |
16384 To ensure that a VS can work properly, the upper specification threshold of VPN instances allocated to the VS cannot be larger than 8192. |
Multicast |
Supported |
Weight of the maximum CPU usage |
5 The CPU usage weight of the Admin-VS is 10. |
Maximum memory usage |
100 |
Maximum percentage of the occupied storage space (disk ratio-threshold) |
100 |
A new VS has the default logical resource specifications. The PS administrator can change the specifications in the VS.
Logical resources of two VSs can have the same name. For example, VS1 and VS2 can both have a VLAN named VLAN 10.
Service specifications are exclusive to VSs in group mode. For example, if a PS supports 4094 VLANs and ports are assigned to VS1 and VS2 in port group mode, VS1 and VS2 each can have 4094 VLANs. Note that resource allocation is restricted by the system specifications. For example, if a PS supports a maximum of 28658 VLANs, and seven VSs in group mode occupy a total of 28658 (7 x 4094) VLANs, the remaining VLAN resources are insufficient for the other VSs in group mode.
To view the system resource specifications and VS resource specifications, run the display virtual-system resource command.
- The VSs on the same card share IPv4 and IPv6 routing specifications.
The maximum CPU usage of a VS is calculated based on the weight using the following formula:
(Weight of the VS/Total weight of all VSs) * 100%
A VS administrator can check and manage only logical resources in the local VS.