Subnetwork controllers
Subnetwork controllers define the origin of a subnetwork. They are used in subnetwork management and define how a resource flows through a network. Subnetwork controllers are set at the terminal level on features from the Device feature class and JunctionObject table. A single device or junction object can have multiple terminals that are defined as subnetwork controllers.
Types of subnetwork controllers
There are two types of subnetwork controllers: sources and sinks. The subnetwork controller type determines how the network resource flows through all subnetworks of a domain network.
If the domain network is defined with the source subnetwork controller type, a resource can only flow away from or exit subnetwork controllers, not toward or into them.

If the domain network is defined with a sink subnetwork controller type, a resource can only flow toward and enter subnetwork controllers, not away from or exit them.

Configure which features can be subnetwork controllers
There are several configuration steps that are necessary for a feature to support acting as a subnetwork controller. These include steps such as setting terminal configurations, setting the subnetwork definition for valid subnetwork controllers, and assigning network categories for asset types that will be enabled as subnetwork controllers. These steps are performed at the time of configuration to asset types from the Device feature class and JunctionObject table. Once the administrative configurations have been set, terminals from the configured asset group and asset type can be set as a subnetwork controller.
Learn how to configure subnetwork controllers
Assign a subnetwork controller
Use the Modify Subnetwork Controller pane to assign the terminal on a device or junction object as a subnetwork controller. You can also import subnetwork controllers with the Import Subnetwork Controllers tool.
When you set a terminal as a subnetwork controller on a network feature, provide a name for the controller that is unique in the tier. The name is stored in the Subnetwork controller name attribute in the Subnetworks table and on devices or junction objects that have one or more subnetwork controllers. This value is also stored in the Subnetwork controller names attribute on the SubnetLine feature class. Set the Subnetwork Controller Type parameter value during creation of the domain network. This parameter appears for each domain network in the General section on the Network Properties tab of the utility network Layer Properties dialog box. To learn more, see Subnetwork name.
The terminals of a directional device establish the directionality of flow permitted between the upstream and downstream terminals on the device. When you set a terminal as a subnetwork controller, it determines how resources flow through the network for subnetwork-based traces in that tier. Resources flow away from a subnetwork source and toward a subnetwork sink.
In a partitioned network, subnetwork controller features must use a directional terminal configuration. You can use the downstream terminal only as a subnetwork source and the upstream terminal only as a subnetwork sink. Hierarchical networks do not have this restriction. However, it is recommended that you only use downstream terminals for subnetwork sources and only use upstream terminals for subnetwork sinks.
Both radial and mesh subnetworks support multiple subnetwork controllers. If a trace detects subnetwork controllers with different subnetwork names, an error is returned. This applies to all trace types except connected traces. The error indicates that two or more subnetworks are traversable, as specified in the subnetwork's trace configuration. To learn how subnetwork controllers behave in upstream and downstream traces, see Utility network trace types.
You cannot delete a feature or modify its asset group or asset type while it is set as a subnetwork controller. To make these changes, first remove the subnetwork controller assignment, and then delete or modify the feature.
Remove a subnetwork controller assignment
In some cases, a terminal on a device or junction object no longer needs to be a subnetwork controller. Remove the assignment in the Modify Subnetwork Controller pane or with a Python script. Additionally, if the asset group and asset type need to be retired from serving as subnetwork controllers, there are specific configuration steps to follow.