Update: Configuring CAC from Powershell
Within a Lync Server 2010 deployment there are a number of features which have been introduced to meet the needs of an Enterprise class VoIP solution; namely Call Admission Control, Media Bypass and E911. This post will investigate the first two of these features.
Each of these features is based on the networking configuration of Lync Server 2010. Before configuring any of the features the network configuration has to be defined. Lync views the network as a number of Network Regions, each with one or more Network Sites connected by Network Links.
- Network regions consist of multiple network sites. A network region represents a network hub or backbone. Network regions are interconnected through a wide area network (WAN) link. A network region is a collection of sites inter-connected by high speed links. Essentially, the sites within a region don't need to have CAC applied because the available bandwidth is abundant. Each region has a central Lync Site that manages the bandwidth. A single Lync site can be associated with multiple Network regions.A note on terminology: Microsoft documentation gives examples of network regions, such as North America, Europe and Asia-Pac. However, if the enterprise has a branch location with restricted bandwidth to the HQ or Data Centre, then the branch site would be a region.
- Network sites identify locations within a network region. A network site represents a physical location that belongs to an organization such as a branch office or a regional office.
- Network links refer to the WAN link that connects two network regions. Such WAN links have limited bandwidth capacity compared to LAN links; therefore, call admission control is enforced on such network links.
- Network route refers to the network regions traversed between two given endpoint regions.
Call Admission Control (CAC) is defined by a call admission policy which defines the audio and video bandwidth allocated over a network route.
Call admission control policy defines the following information:
- Maximum total bandwidth to allocate for audio
- Maximum total bandwidth to allocate for video
- Maximum bandwidth that can be allocated for a single audio call (session)
- Maximum bandwidth that can be allocated for a single video call (session)
Each network site is comprised of one or more subnets. The subnets specified in the Lync configuration must be the subnet as configured on the client, super-netting or subnet aggregation is not supported. Also, the external IP address of the AV Edge server(s) must be added with a 32 bit subnet mask.
How Media Bypass Works
When you enable media bypass, a unique bypass ID is automatically generated for a network region and for all network sites without bandwidth constraints within that region. Sites with bandwidth constraints within the region and sites connected to the region over WAN links with bandwidth constraints are each assigned their own unique bypass IDs.
When a user makes a call to the PSTN, the Mediation Server compares the bypass ID of the client subnet with the bypass ID of the gateway subnet. If the two bypass IDs match, media bypass is used for the call. If the bypass IDs do not match, media for the call must flow through the Mediation Server.
When a user receives a call from the PSTN, the user's client compares its bypass ID to that of the PSTN gateway. If the two bypass IDs match, media flows directly from the gateway to the client, bypassing the Mediation Server.
At the Global level, media bypass configuration has two options: Always Bypass or Use Site and Region Information. Always Bypass is used where there is no need for CAC. Always Bypass assigns all networks the same bypass ID.
- The system automatically assigns a single unique bypass ID to each region.
- Any site connected to a region over a WAN link without bandwidth constraints inherits the same bypass ID as the region.
- A site associated with the region over a WAN link with constrained bandwidth is assigned a different bypass ID from that of the region.
- Subnets associated with each site inherit the bypass ID for that site.