1. If you have SCOM/MOM monitoring capabilities, add a new rule to notify you if AD FS 2.x Proxy event ID 230 is logged in the Admin event log
2. Collecting data while the issue is happening: PerfMon BLG collector set with frequent sampling interval containing:
a. AD FS > Rejected token requests – if this is >= 1, you have a congestion issue - Event ID 230 will be logged b. AD FS > Token request latency – default threshold is 2000ms - If this number is greater than 2000 for any period of time, rejected token requests begin and event ID 230 is logged c. AD FS > Outstanding token requests – default threshold is 16 outstanding requests - If this number is greater than 16 for any period of time, rejected token requests begin and event ID 230 is logged d. IPv4 > Segments retransmitted/second – look for this to increase when you are experiencing the issue, as this may indicate a transient network issue
a. AD FS > Rejected token requests – if this is >= 1, you have a congestion issue - Event ID 230 will be logged
b. AD FS > Token request latency – default threshold is 2000ms - If this number is greater than 2000 for any period of time, rejected token requests begin and event ID 230 is logged
c. AD FS > Outstanding token requests – default threshold is 16 outstanding requests - If this number is greater than 16 for any period of time, rejected token requests begin and event ID 230 is logged
d. IPv4 > Segments retransmitted/second – look for this to increase when you are experiencing the issue, as this may indicate a transient network issue
3. Providing relief while the issue is happening: Set the congestion algorithm thresholds higher temporarily to lessen impact to the environment
An AD FS 2.x administrator can adjust the congestion algorithm in the federation server proxy’s config (located in %programfiles%\Active Directory Federation Services 2.0 in Windows Server 2008 R2 and 2008. Located in %windir%\ADFS in Windows Server 2012) file. Here is the line for setting the congestion algorithm in the federation server proxy’s config file which is located in the <microsoft.identityServer.proxy> section:
<congestionControl latencyThresholdInMSec="2000" minCongestionWindowSize="16" />
Explanation of the configurable parameters in this setting:
Parameters
Allowed Values
Description
latencyThresholdInMsec
Min Value = 1000 Max Value=60000 Default value = 2000
Controls the sensitivity of the congestion algorithm trigger. When the average latency time rises above the latencyThresholdInMsec value, congestion control comes into effect.
minCongestionWindowsSize
Min Value = 1 Max Value = 10000 Default value = 16
Controls the severity of the congestion algorithm. Defines the smallest number of concurrent requests from the federation server proxy to federation server if persistent congestion occurs.
4. ( Optional ) – Collect a circular network trace while monitoring Token request latency - This might help clue you in to TCP retransmissions
Note: Microsoft typically does not see this manifest as a true load issue on the internal servers, assuming that the infrastructure has been sized appropriately for your use scenario. The majority of the time, we find that something unexpected is happening on the network when this issue occurs.