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
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
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
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 . 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.
- Open Router QoS Profile and, from the target profile's Actions menu, select Edit.
-
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.
- Confirm which gateways reference this profile and that the affected workloads can accommodate the rate-limit changes, then click OK.
- 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.
- Open Segment QoS Profile and, from the target profile's Actions menu, select Edit.
-
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.
- Confirm which resources reference the profile and that the throughput changes meet workload requirements, then click OK.
- 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.
- Open SpoofGuard Profile and, from the target profile's Actions menu, select Edit.
- Modify Name and Description as needed, and set State to Enabled or Disabled.
- Check which resources reference the profile, their address records, and the protection changes, then click OK.
- 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 Type | Deletion Conditions and Direct Impact |
|---|---|
| Router QoS Profile | Deletion 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 Profile | A 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 Profile | A 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. |
