Network Policies

Configure workload traffic rate limits and protection against address spoofing according to the target object.

Network policies define rate limits for workload traffic or anti-spoofing rules for workload NICs. Administrators select a profile based on the object to control, then associate it with the corresponding gateway or segment.

Router QoS Profile

Used by a Tier-1 gateway for ingress or egress traffic to configure a bandwidth limit and burst size. Each profile applies to one direction on the gateway and does not configure rate limits for an individual VM NIC.

Segment QoS Profile

Contains ingress and egress rate-limiting settings for segment ports. Both directions can be configured separately in one profile. Rate limits apply per port, rather than as a shared bandwidth limit for the entire segment.

The profile association procedures in this chapter apply to non-system segments managed by ZNS. Profile associations for segments managed by ZSphere and their VIF ports cannot be modified in the ZNS management interface.

SpoofGuard Profile

Controls whether protection against address spoofing is enforced using the MAC, IPv4, and IPv6 addresses recorded on a port. The profile specifies whether protection is enabled; allowed addresses come from the port record.

Create a Router QoS Profile

Prepare a rate-limiting profile for a specific traffic direction on a Tier-1 gateway.

About this task

Router QoS profiles are created for a specific direction and selected separately for ingress and egress traffic on a Tier-1 gateway. To limit traffic in both directions, prepare a profile for each direction. An existing suitable profile can be associated with the gateway directly.

Procedure

  1. In ZNS, choose Network > Network Policies > Router QoS Profile and click Create Router QoS Profile.
  2. Enter a Name and an optional Description. The name must contain 1–64 characters without spaces. The description must not exceed 255 characters.
  3. Select a Direction.

    Ingress is traffic entering the gateway, and Egress is traffic leaving it. The profile can be selected only in the gateway's field for the matching direction. The direction cannot be changed after creation.

  4. Configure the following parameters according to workload rate-limiting requirements.
    OptionDescription
    ActionCurrently, Rate Limit is supported. This action is also used if the field is left blank during creation.
    Bandwidth (kbps)Specify the bandwidth limit for this direction as an integer from 0 to 4294967295. The initial value is 0, which sets no bandwidth limit. Enter a value greater than 0 to limit traffic.
    Burst Size (kb)Specify the permitted burst size in kilobits to use with the bandwidth limit. Enter an integer from 0 to 4294967295. The initial value is 0, which leaves the burst size unspecified.
  5. Check the direction and rate-limiting parameters, then click OK.
  6. Return to the profile list, confirm that the profile has been created, and check its name, direction, action, bandwidth, and burst size.

Results

The router QoS profile is ready. You can select it when creating a gateway as described in Create a Tier-1 Gateway, or associate it with an existing gateway by following Modify Tier-1 Upstream Connections and QoS Profiles. Then check the configuration state and actual rate-limiting results.

Create a Segment QoS Profile

Prepare ingress and egress rate-limiting settings for segment ports.

About this task

A segment QoS profile can contain separate ingress and egress rate-limiting settings. New ports use the profile associated with the segment at the time they are created. Changing the segment's profile does not automatically replace existing ports' profile references. Check the associated profiles in the port list to determine the actual scope of application.

Procedure

  1. In ZNS, choose Network > Network Policies > Segment QoS Profile and click Create Segment QoS Profile.
  2. Enter a Name and an optional Description. The name must contain 1–64 characters without spaces. The description must not exceed 255 characters.
  3. Configure Ingress Configuration and Egress Configuration separately.

    Ingress is traffic sent to the workload NIC, and egress is traffic sent by it. Set the following parameters for each direction.

    OptionDescription
    ActionSelect Rate Limit to limit traffic.
    Average Bandwidth (kbps)Specify the bandwidth limit actually used for this direction as an integer from 0 to 4294967295. The initial value is 0, which sets no bandwidth limit. To limit traffic in only one direction, leave the other direction at 0.
    Peak Bandwidth (kbps)Enter an integer from 0 to 4294967295. The initial value is 0. Currently, this value is saved but does not affect rate limiting. You can leave it at 0.
    Burst Size (kb)Specify the permitted burst size in kilobits to use with the average bandwidth setting. Enter an integer from 0 to 4294967295. The initial value is 0, which leaves the burst size unspecified.
  4. Check the settings for both directions and click OK.
  5. Return to the profile list, confirm that the profile has been created, and check its name and ingress and egress rate-limiting parameters.

Results

The segment QoS profile is ready. Follow Adjust Segment Configuration to associate it with a non-system segment managed by ZNS. Then follow View Segments and Ports to check the actual profile references on the segment and its ports.

Create a SpoofGuard Profile

Prepare an address anti-spoofing profile and specify whether protection is enabled.

About this task

SpoofGuard enforces protection using the MAC, IPv4, and IPv6 addresses recorded on a port. Allowed addresses are not entered separately in the profile. Before enabling protection, confirm that the addresses actually used by the workload NIC match the port record. Traffic using source addresses that are not in the port record may be blocked.

New ports use the profile associated with the segment at the time they are created. Changing the segment's profile does not automatically replace existing ports' profile references. To check actual references and NIC ownership, see View Segments and Ports.

Procedure

  1. In ZNS, choose Network > Network Policies > SpoofGuard Profile and click Create SpoofGuard Profile.
  2. Enter a Name and an optional Description. The name must contain 1–64 characters without spaces. The description must not exceed 255 characters.
  3. Select a State.

    The creation page defaults to Enabled. Once the profile is associated and deployed, address anti-spoofing protection is enforced based on the port record. Selecting Disabled retains the profile settings without enforcing that protection.

  4. Check the profile name and protection state, then click OK.
  5. Return to the profile list, confirm that the profile has been created, and check its State.

Results

The SpoofGuard profile is ready. Follow Adjust Segment Configuration to associate it with a non-system segment managed by ZNS. Check the protection scope and workload communication against the ports' actual profile references.

Manage Network Policies

Modify existing profiles, change the address anti-spoofing protection state, and clean up unused profiles.

In ZNS, maintain user-created profiles under Network > Network Policies. System profiles cannot be modified or deleted. Before making changes, check references in the Tier-1 gateway's Overview, the segment's Overview, and its Ports list. Changing a shared profile affects the objects that reference it.

Profile names must contain 1–64 characters without spaces. Descriptions must not exceed 255 characters.

Modify a Router QoS Profile

Changing the bandwidth or burst size changes rate limiting on Tier-1 gateways that reference this profile and may change workload throughput. The direction cannot be modified. If a profile for a different direction is required, follow Create a Router QoS Profile to prepare one, then replace the association on the gateway.

  1. Open Router QoS Profile and, from the target profile's Actions menu, select Edit.
  2. Modify Name, Description, Action, Bandwidth (kbps), or Burst Size (kb) as needed.

    Bandwidth and burst size must be integers from 0 to 4294967295. A bandwidth of 0 sets no bandwidth limit; a burst size of 0 leaves the burst size unspecified. For parameter meanings, see Router QoS Parameters.

  3. Confirm which gateways reference this profile and that the affected workloads can accommodate the rate-limit changes, then click OK.
  4. Return to the list or details to check the parameters. Check the configuration state of gateways referencing the profile and verify workload throughput in the corresponding direction.

To replace or remove only a specific gateway's profile association, follow Modify Tier-1 Upstream Connections and QoS Profiles.

Modify a Segment QoS Profile

Changing rate-limiting parameters affects ports that currently reference this profile. First check actual port references and workload usage, in addition to the profile currently selected on the segment.

  1. Open Segment QoS Profile and, from the target profile's Actions menu, select Edit.
  2. Modify Name, Description, and ingress and egress settings as needed.

    Average bandwidth, peak bandwidth, and burst size must be integers from 0 to 4294967295. An average bandwidth of 0 sets no bandwidth limit for that direction. Peak bandwidth is currently saved but does not affect rate limiting. For parameter meanings in each direction, see Segment QoS Parameters.

  3. Confirm which resources reference the profile and that the throughput changes meet workload requirements, then click OK.
  4. Return to the list or details to check the parameters. Check the configuration state of ports referencing the profile and the actual rate-limiting results.

Adjust the State of a SpoofGuard Profile

State changes affect ports that currently reference this profile. Before enabling protection, check the port records against the MAC and IP addresses actually used by workloads. Traffic with mismatched addresses may be blocked. When disabled, the profile no longer provides address anti-spoofing protection.

  1. Open SpoofGuard Profile and, from the target profile's Actions menu, select Edit.
  2. Modify Name and Description as needed, and set State to Enabled or Disabled.
  3. Check which resources reference the profile, their address records, and the protection changes, then click OK.
  4. Return to the list to check the state. Check the configuration state of ports referencing the profile and communication using legitimate addresses. To verify protection, use a separate test workload to check whether traffic with disallowed source addresses is blocked.

Delete Unused Profiles

Deletion cannot be undone. To restore a profile, you must recreate it. Handle references according to the profile type before deletion:

Profile TypeDeletion Conditions and Direct Impact
Router QoS ProfileDeletion removes Tier-1 references to this profile. Traffic in the corresponding direction is no longer rate-limited by it. To retain rate limiting, first select a suitable replacement profile on every gateway referencing it, then delete the old profile.
Segment QoS ProfileA profile still referenced by a segment or port cannot be deleted. Replace or remove those references first. Changing the segment's profile alone does not mean that existing ports have stopped referencing the old profile.
SpoofGuard ProfileA profile still referenced by a segment or port cannot be deleted. Replace or remove those references first. Disabling protection changes only the state and does not remove references.