Lync Server 2010 Troubleshooting
Ståle Hansen
Solution Architect @AteaAS
MVP Lync
About Me
• Been working at Atea Norway since 2006
• Focus - Microsoft Unified Communication
• CoAuthored LyncLab.org with MVP Tommy Clarke
• Blog http://msunified.net
• Twitter @StaleHansen
January 16, 2012 NIC 2012
Troubleshooting
• Understand the symptoms
• Narrow the scope
• Select appropriate tools
• Collect and analyze data
January 16, 2012 NIC 2012
Understand the symptoms
January 16, 2012 NIC 2012
Understand the symptoms Understand the technology
January 16, 2012 NIC 2012
Understand the symptoms Understand the technology
How does Lync SIP work?
January 16, 2012 NIC 2012
Session Initiated Protocol
• Session Description Protocol (SDP)
• Real-Media Transport Protocol (RTP)
• Real-Media Transport Change Protocol (RTCP)
January 16, 2012 NIC 2012
Content of Invite
• From:………Tag
• To:………Tag
• CallID: • Is always unique, can sort using CallID
• Contact: • Show actual source
• Via: • Every SIP client adds his FQND
• Client, Front End, Edge
9
Symptoms?
• P2P Media connectivity failures
• One way audio
January 16, 2012 NIC 2012
Understand the symptoms Understand the technology
How does Lync Edge work?
January 16, 2012 NIC 2012
Interactive Connectivity Establishment (ICE) Protocol
January 16, 2012 NIC 2012
RTP in NAT environement
• ICE is the methodology can be used to discover the optimal means of connectivity
• Use TURN as a last resort only
• Preferring other mechanisms
• STUN
• Direct connectivity
13
Why is this interesting?
January 16, 2012 NIC 2012
Two Scenarios:
• You hear a delay before you can establish internal Lync calls
• Users between two subnets can not Lync eachother
January 16, 2012 NIC 2012
Understand the symptoms
Closing note
January 16, 2012 NIC 2012
Troubleshooting
Understand the symptoms
• Narrow the scope
• Select appropriate tools
• Collect and analyze data
January 16, 2012 NIC 2012
Narrow the scope
January 16, 2012 NIC 2012
19
Failed Calls
Dropped Calls
One Way Audio
Echo Noise Low
Volume Delayed Audio
Broken Up Audio
Distorted Audio
Network Core
Performance
Call Reliability
Audio Quality
Voice Quality Issues
Gateways Devices
Lync Phone Edition
x24
IP
Lync Client Meeting Client
Lync Lync
Mediation Server
PSTN
PBX/ PSTN
UC Gateway
Lync Edge
Internet
Know when you have a Windows Server problem
• Event Viewer
• Secruity logs
• Process Monitor
• Task Manager
• Resource Monitor
• Performance Monitor
• NetStat
21
Troubleshooting
Understand the symptoms
Narrow the scope
• Select appropriate tools
• Collect and analyze data
January 16, 2012 NIC 2012
Select appropriate tools
January 16, 2012 NIC 2012
Lync Phone
IP
Lync Client Lync Meeting Client
Lync Lync
Mediation Server
PSTN
PBX/ PSTN
UC Gateway
Lync Edge
Internet
A/V Tuning wizard
Audio Test Service
Logs
Logging Tool
RouteHelper
Synthetic Transactions
SCOM
Snooper
(QoE) Monitoring Server
Don’t forget the Lync Server Best Practices Analyser
January 16, 2012 NIC 2012
Troubleshooting
Understand the symptoms
Narrow the scope
Select appropriate tools
• Collect and analyze data
January 16, 2012 NIC 2012
Collect and analyze data
January 16, 2012 NIC 2012
Snooper
• Part of the Lync Server Resource Kit tools
• Shows sip messages from Lync 2010 debug logs captured with Lync Logging Tool
28
Log PowerShell activity
29
Synthetic Transactions
• Simulates end-to-end transactions as if performed by actual users
• Get available test cmdlets • Get-Command Test-Cs* | Format-Table –Property Name,Definition
–Auto
• Some test cmdlets needs users with credentials • Use New-CsHealthMonitoringConfiguration to store test users for a
spesific pool • New-CsHealthMonitoringConfiguration –Identity -TargetFqdn pool01.lynclab.org –FirstTestUserSipUri "sip:[email protected]" -SecondTestUserSipUri "sip:[email protected]"
• Then you only need to specify TargetFqdn when running the cmdlets • Test-CsPresence -TargetFqdn pool01.lynclab.org
30
Tool – Topology Validator
Purpose – Provides Administrators a way to
Provide a quick check on the state of the Environment.
Location – Lync Resource Kit Tools
Tool – Topology Validator
Purpose – Provides Administrators a way to
Provide a quick check on the state of the Environment.
Location – Lync Resource Kit Tools
Troubleshooting
Understand the symptoms
Narrow the scope
Select appropriate tools
Collect and analyze data
January 16, 2012 NIC 2012
Test one configuration modification at a time
January 16, 2012 NIC 2012
Questions?
January 16, 2012 NIC 2012