1. A system for configuring a network, the network having network elements including a plurality of network nodes and host computers communicably connected to corresponding ones of the network nodes, pairs of the plurality of network nodes being interconnected by network links, the network having an associated network topology and a current network state, the system comprising: at least one memory storing program instructions; and at least one processor operative to execute the program instructions to implement a modeling component, the modeling component operative to: obtain the network topology associated with the network, the network topology identifying at least the plurality of network nodes and the network links; obtain an affinity topology associated with the network, the affinity topology identifying a plurality of affinity elements that represent application components, each application component being executable on at least one of the host computers, the affinity topology specifying policies and attributes that describe communications between the application components; create an affinity-network topology that represents a logical combination of the network topology and the affinity topology by binding individual affinity elements to associated network nodes; and compute a forwarding topology based at least in part on the affinity-network topology, the forwarding topology identifying one or more of the network links for forwarding traffic through the network; and a local controller associated with at least one of the network nodes, the local controller operative to configure the associated at least one of the network nodes to deterministically arrive at a consistent end-to-end forwarding configuration for the network as a function of the current network state based at least in part on the forwarding topology.