SlideShare a Scribd company logo
1 of 18
Microsoft Lync 2010 Call Flows Explained

            Justin Morris
            Consultant, Modality Systems

                 @justimorris

                 http://www.justin-morris.net

                 justin.morris@modalitysystems.com
Agenda
• The foundations:
      – What is SIP, SDP, RTP, RTCP?
      – What is ICE and MRAS?
• How is a call established?
• Looking at real Call Flow SIP traces:
      –      Lync P2P Internal Call
      –      Escalating from P2P to a Conference
      –      Internal to PSTN Call
      –      Internal to Remote User Call
      –      Internal to Federated User Call
• Troubleshooting Calls
• Questions

19/04/2012              Microsoft Unified Communications User Group London (MUCUGL)   2
What is SIP and SDP?
• The signalling component of the call – sets up the session.
• SIP – Session Initiation Protocol. The backbone of Lync.
      – INVITE
      – REGISTER
      – INFO
             • Presence and IMs are sent and received in these messages – SIMPLE.
      – BYE
      – 200 OK
• SDP - Session Description Protocol
      – Sent in SIP INVITE and 200 OK messages.
      – Allows endpoints to negotiate how their media session will take place.
      – Works out IP address to connect on, what media codec to use, etc.




19/04/2012               Microsoft Unified Communications User Group London (MUCUGL)   3
What is RTP and RTCP?
• The actual media (voice or video) component of
  the call.
• RTP – Realtime Transport Protocol
      – Carries the audio and/or video stream in IP packets.
      – Can be RTP (unencrypted) or SRTP (encrypted).
      – Almost always UDP.
• RTCP – Realtime Transport Control Protocol
      – Monitors RTP. RTAudio uses this to negotiate
        narrowband or wideband based on network
        conditions.

19/04/2012       Microsoft Unified Communications User Group London (MUCUGL)   4
What is ICE and MRAS?
• ICE – Interactive Connectivity Establishment
      – STUN - Session Traversal Utilities for NAT (used to
        be called Simple Traversal of UDP through NAT).
      – TURN – Traversal of UDP via Relay NAT.
      – The secret sauce of the Edge Server.
• MRAS – Media Relay Authentication Service
      – Runs on internal interface of Edge Servers.
      – Users request MRAS creds on sign-in.
      – MCUs also request credentials on service start.

19/04/2012       Microsoft Unified Communications User Group London (MUCUGL)   5
How is a call established?
•   Address Discovery
•   Address Exchange (SIP INVITE 183, 200 OK)
•   Connectivity Checks
•   Candidate Promotion
•   Media Flow




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   6
Address Discovery
• Combinations of available IPv4 addresses and randomly allocated
  TCP/UDP ports within the configured port ranges for the Lync client.
• There are three types of candidates:
      – Internal IP address - IP of the NIC of the client computer.
      – Reflexive IP address - the public IP address of the internet router/NAT device.
      – Media relay IP address - public IP address of the A/V Edge service that is
        associated with the user's internal Lync pool.
• Before address exchange occurs, client must hit the A/V Edge and be
  allocated an IP address and port. Client sends username that was used
  when MRAS creds were received.
• Although the edge server has just allocated those port to the user, it is
  ACL'd and means that it is only accessible by that client IP and only with
  valid authentication info.
• All of this is done before the SIP INVITE is sent.




19/04/2012             Microsoft Unified Communications User Group London (MUCUGL)        7
Address Exchange
• SIP INVITE is sent with SDP and candidate list.
• Both endpoints send candidate list to each
  other.




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   8
Connectivity Checks
• STUN binding requests - pings on media ports.
  Won't see these in Snooper, only in Wireshark.
• Priority for media connectivity:
      – UDP direct
      – UDP NAT
      – UDP Relay (via an Edge Server)
      – TCP Relay (via an Edge Server - last resort)



19/04/2012       Microsoft Unified Communications User Group London (MUCUGL)   9
Candidate Promotion
• Once path is validated, another SIP INVITE is
  sent containing the validated remote
  candidate in the SDP.
• Callee responds with 200 OK and a remote
  candidate similar to the candidate the caller
  presented.
• For each pair, one is for RTP and the other is
  for RTCP.

19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   10
Media Flow
 Connectivity has been checked.
 Candidate has been determined (IP address, port and
  transport type).
 Codec has been agreed.
 SIP messages stops and media then begins to flow
  between the two endpoints. 

• Once the call is complete, ports are closed and SIP BYE
  is sent.
• If Monitoring Server is deployed, a SIP SERVICE
  message is sent to the FE and onto the Monitoring
  Server to log call data.
19/04/2012    Microsoft Unified Communications User Group London (MUCUGL)   11
SIP traces - Lync P2P internal call




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   12
SIP traces - Escalating from P2P to
a Conference




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   13
SIP traces - Lync internal user to
PSTN call




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   14
SIP traces - Internal user to
Remote User call




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   15
SIP traces - Internal user to
Federated User call




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   16
Troubleshooting
• Logging Tool
      – Comes with Lync Server 2010.
      – Trace S4 and SIPStack.
• Snooper
      – Displays all UCCP logs and Logging Tool generated traces.
      – Separate install - Snooper comes with the Lync Server 2010
        Resource Kit.
• Wireshark
      – Can show everything that isn’t TLS encrypted:
             • Problems before TLS encryption occurs.
             • Inspect the RTP stream to determine audio codec being used.
             • SIP TCP signalling (e.g. with CSTA gateways, PSTN gateways, etc).


19/04/2012              Microsoft Unified Communications User Group London (MUCUGL)   17
Questions?




19/04/2012   Microsoft Unified Communications User Group London (MUCUGL)   18

More Related Content

What's hot

Lync Updates Q1 2013
Lync Updates Q1 2013Lync Updates Q1 2013
Lync Updates Q1 2013
MUCUGL
 
Byt ut din gamla växel – en djupdykning i Lync telefoni
Byt ut din gamla växel – en djupdykning i Lync telefoniByt ut din gamla växel – en djupdykning i Lync telefoni
Byt ut din gamla växel – en djupdykning i Lync telefoni
Tommy Clarke
 
Offre revendeurs UC
Offre  revendeurs   UCOffre  revendeurs   UC
Offre revendeurs UC
Rachid ZINE
 
Westcon & Microsoft - Making Lync Simpler
Westcon & Microsoft - Making Lync SimplerWestcon & Microsoft - Making Lync Simpler
Westcon & Microsoft - Making Lync Simpler
WESTCON EMEA
 

What's hot (20)

Sommarkollo 2013 lync workshop
Sommarkollo 2013   lync workshopSommarkollo 2013   lync workshop
Sommarkollo 2013 lync workshop
 
MUCUGL October 2013 - Top 5 Things To Know When Deploying Your First Lync 20...
MUCUGL October 2013 -  Top 5 Things To Know When Deploying Your First Lync 20...MUCUGL October 2013 -  Top 5 Things To Know When Deploying Your First Lync 20...
MUCUGL October 2013 - Top 5 Things To Know When Deploying Your First Lync 20...
 
MUCUGL October 2013 - Everything About Lync Room System
MUCUGL October 2013 - Everything About Lync Room SystemMUCUGL October 2013 - Everything About Lync Room System
MUCUGL October 2013 - Everything About Lync Room System
 
Lync Updates Q1 2013
Lync Updates Q1 2013Lync Updates Q1 2013
Lync Updates Q1 2013
 
Byt ut din gamla växel – en djupdykning i Lync telefoni
Byt ut din gamla växel – en djupdykning i Lync telefoniByt ut din gamla växel – en djupdykning i Lync telefoni
Byt ut din gamla växel – en djupdykning i Lync telefoni
 
Office Track: Lync & Skype Federation v2 Deep Dive - Johan Delimon
Office Track: Lync & Skype Federation v2 Deep Dive - Johan DelimonOffice Track: Lync & Skype Federation v2 Deep Dive - Johan Delimon
Office Track: Lync & Skype Federation v2 Deep Dive - Johan Delimon
 
Lync-Skype Connectivity
Lync-Skype ConnectivityLync-Skype Connectivity
Lync-Skype Connectivity
 
Lync & Skype Interop V2 Deep Dive - By Johan Delimon
Lync & Skype Interop  V2 Deep Dive - By Johan DelimonLync & Skype Interop  V2 Deep Dive - By Johan Delimon
Lync & Skype Interop V2 Deep Dive - By Johan Delimon
 
Microsoft Cloud Connector Overview
Microsoft Cloud Connector OverviewMicrosoft Cloud Connector Overview
Microsoft Cloud Connector Overview
 
Delivering UC Flexibility
Delivering UC FlexibilityDelivering UC Flexibility
Delivering UC Flexibility
 
Avaya lync integration 6 16
Avaya lync integration 6 16Avaya lync integration 6 16
Avaya lync integration 6 16
 
Skype 4 Business Webcast 11. März 2015
Skype 4 Business Webcast 11. März 2015Skype 4 Business Webcast 11. März 2015
Skype 4 Business Webcast 11. März 2015
 
Smb lync onlineadmin1
Smb lync onlineadmin1Smb lync onlineadmin1
Smb lync onlineadmin1
 
Lync Hoster Pack 2013 Product Overview
Lync Hoster Pack 2013 Product OverviewLync Hoster Pack 2013 Product Overview
Lync Hoster Pack 2013 Product Overview
 
Updates on NFV and SDN Activities from the Broadband Forum
Updates on NFV and SDN Activities from the Broadband ForumUpdates on NFV and SDN Activities from the Broadband Forum
Updates on NFV and SDN Activities from the Broadband Forum
 
Understanding the end to end sales motion Office 365 with E plans (thomas poett)
Understanding the end to end sales motion Office 365 with E plans (thomas poett)Understanding the end to end sales motion Office 365 with E plans (thomas poett)
Understanding the end to end sales motion Office 365 with E plans (thomas poett)
 
Skype for business cloud connector edition v1.0
Skype for business cloud connector edition v1.0Skype for business cloud connector edition v1.0
Skype for business cloud connector edition v1.0
 
Offre revendeurs UC
Offre  revendeurs   UCOffre  revendeurs   UC
Offre revendeurs UC
 
Avaya and Skype Connect PacketBase is an Avaya BusinessPartner
Avaya and Skype Connect PacketBase is an Avaya BusinessPartnerAvaya and Skype Connect PacketBase is an Avaya BusinessPartner
Avaya and Skype Connect PacketBase is an Avaya BusinessPartner
 
Westcon & Microsoft - Making Lync Simpler
Westcon & Microsoft - Making Lync SimplerWestcon & Microsoft - Making Lync Simpler
Westcon & Microsoft - Making Lync Simpler
 

Similar to Microsoft Lync 2010 Call Flows Explained

L30 ip technology-basics_v4-6
L30 ip technology-basics_v4-6L30 ip technology-basics_v4-6
L30 ip technology-basics_v4-6
j otgo
 
testppt ch01(1)
testppt ch01(1)testppt ch01(1)
testppt ch01(1)
ryaekle
 
PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview
PROIDEA
 
WP4 - Deployment of "smart" services toolkit
WP4 - Deployment of "smart" services toolkitWP4 - Deployment of "smart" services toolkit
WP4 - Deployment of "smart" services toolkit
i-SCOPE Project
 

Similar to Microsoft Lync 2010 Call Flows Explained (20)

L30 ip technology-basics_v4-6
L30 ip technology-basics_v4-6L30 ip technology-basics_v4-6
L30 ip technology-basics_v4-6
 
Lync Mobility Deployment
Lync Mobility DeploymentLync Mobility Deployment
Lync Mobility Deployment
 
IPv6 Deployment: Why and Why not? - HostingCon 2013
IPv6 Deployment: Why and Why not? - HostingCon 2013IPv6 Deployment: Why and Why not? - HostingCon 2013
IPv6 Deployment: Why and Why not? - HostingCon 2013
 
Colt IPv6 for Business Customers Case Study - Swiss IPv6 Council Jun 2013-v3
Colt IPv6 for Business Customers Case Study - Swiss IPv6 Council Jun 2013-v3Colt IPv6 for Business Customers Case Study - Swiss IPv6 Council Jun 2013-v3
Colt IPv6 for Business Customers Case Study - Swiss IPv6 Council Jun 2013-v3
 
SDI to IP 2110 Transition Part 1
SDI to IP 2110 Transition Part 1SDI to IP 2110 Transition Part 1
SDI to IP 2110 Transition Part 1
 
IOT, It's the Internet...only bigger
IOT, It's the Internet...only biggerIOT, It's the Internet...only bigger
IOT, It's the Internet...only bigger
 
Extreme & Microsoft Lync
Extreme & Microsoft LyncExtreme & Microsoft Lync
Extreme & Microsoft Lync
 
MULTIMEDIA SERVICES OVER IP NETWORKS
MULTIMEDIA SERVICES OVER IP NETWORKSMULTIMEDIA SERVICES OVER IP NETWORKS
MULTIMEDIA SERVICES OVER IP NETWORKS
 
QoS for Media Networks
QoS for Media NetworksQoS for Media Networks
QoS for Media Networks
 
Scalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPScalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IP
 
O365con14 - lync to the future
O365con14 - lync to the futureO365con14 - lync to the future
O365con14 - lync to the future
 
testppt ch01(1)
testppt ch01(1)testppt ch01(1)
testppt ch01(1)
 
Introduction to SIP
Introduction to SIP  Introduction to SIP
Introduction to SIP
 
Chap1
Chap1Chap1
Chap1
 
PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview PLNOG 6: Julian Curtis - IPv6 Overview
PLNOG 6: Julian Curtis - IPv6 Overview
 
CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 10CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 10
 
WP4 - Deployment of "smart" services toolkit
WP4 - Deployment of "smart" services toolkitWP4 - Deployment of "smart" services toolkit
WP4 - Deployment of "smart" services toolkit
 
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11
 
Cisco vnp workshop 16-17 april v1-0
Cisco  vnp workshop 16-17 april v1-0Cisco  vnp workshop 16-17 april v1-0
Cisco vnp workshop 16-17 april v1-0
 
ITN_Module_17.pptx
ITN_Module_17.pptxITN_Module_17.pptx
ITN_Module_17.pptx
 

More from MUCUGL (8)

Lync 2013 Centralized Logging
Lync 2013 Centralized LoggingLync 2013 Centralized Logging
Lync 2013 Centralized Logging
 
20120726 aj-mucugl-video-conferencing-capabilities-within-lync-2013
20120726 aj-mucugl-video-conferencing-capabilities-within-lync-201320120726 aj-mucugl-video-conferencing-capabilities-within-lync-2013
20120726 aj-mucugl-video-conferencing-capabilities-within-lync-2013
 
Fixed-to-Mobile Convergence with Microsoft UC
Fixed-to-Mobile Convergence with Microsoft UCFixed-to-Mobile Convergence with Microsoft UC
Fixed-to-Mobile Convergence with Microsoft UC
 
Microsoft Lync & Acme Packet Session Management Solutions
Microsoft Lync & Acme Packet Session Management SolutionsMicrosoft Lync & Acme Packet Session Management Solutions
Microsoft Lync & Acme Packet Session Management Solutions
 
Lync Mobility Architecture
Lync Mobility ArchitectureLync Mobility Architecture
Lync Mobility Architecture
 
Mobility and SmartTAP Recording for Lync
Mobility and SmartTAP Recording for LyncMobility and SmartTAP Recording for Lync
Mobility and SmartTAP Recording for Lync
 
Voice Resiliency in Lync Server 2010
Voice Resiliency in Lync Server 2010Voice Resiliency in Lync Server 2010
Voice Resiliency in Lync Server 2010
 
Introduction to Microsoft Lync
Introduction to Microsoft LyncIntroduction to Microsoft Lync
Introduction to Microsoft Lync
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
API Governance and Monetization - The evolution of API governance
API Governance and Monetization -  The evolution of API governanceAPI Governance and Monetization -  The evolution of API governance
API Governance and Monetization - The evolution of API governance
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 

Microsoft Lync 2010 Call Flows Explained

  • 1. Microsoft Lync 2010 Call Flows Explained Justin Morris Consultant, Modality Systems @justimorris http://www.justin-morris.net justin.morris@modalitysystems.com
  • 2. Agenda • The foundations: – What is SIP, SDP, RTP, RTCP? – What is ICE and MRAS? • How is a call established? • Looking at real Call Flow SIP traces: – Lync P2P Internal Call – Escalating from P2P to a Conference – Internal to PSTN Call – Internal to Remote User Call – Internal to Federated User Call • Troubleshooting Calls • Questions 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 2
  • 3. What is SIP and SDP? • The signalling component of the call – sets up the session. • SIP – Session Initiation Protocol. The backbone of Lync. – INVITE – REGISTER – INFO • Presence and IMs are sent and received in these messages – SIMPLE. – BYE – 200 OK • SDP - Session Description Protocol – Sent in SIP INVITE and 200 OK messages. – Allows endpoints to negotiate how their media session will take place. – Works out IP address to connect on, what media codec to use, etc. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 3
  • 4. What is RTP and RTCP? • The actual media (voice or video) component of the call. • RTP – Realtime Transport Protocol – Carries the audio and/or video stream in IP packets. – Can be RTP (unencrypted) or SRTP (encrypted). – Almost always UDP. • RTCP – Realtime Transport Control Protocol – Monitors RTP. RTAudio uses this to negotiate narrowband or wideband based on network conditions. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 4
  • 5. What is ICE and MRAS? • ICE – Interactive Connectivity Establishment – STUN - Session Traversal Utilities for NAT (used to be called Simple Traversal of UDP through NAT). – TURN – Traversal of UDP via Relay NAT. – The secret sauce of the Edge Server. • MRAS – Media Relay Authentication Service – Runs on internal interface of Edge Servers. – Users request MRAS creds on sign-in. – MCUs also request credentials on service start. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 5
  • 6. How is a call established? • Address Discovery • Address Exchange (SIP INVITE 183, 200 OK) • Connectivity Checks • Candidate Promotion • Media Flow 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 6
  • 7. Address Discovery • Combinations of available IPv4 addresses and randomly allocated TCP/UDP ports within the configured port ranges for the Lync client. • There are three types of candidates: – Internal IP address - IP of the NIC of the client computer. – Reflexive IP address - the public IP address of the internet router/NAT device. – Media relay IP address - public IP address of the A/V Edge service that is associated with the user's internal Lync pool. • Before address exchange occurs, client must hit the A/V Edge and be allocated an IP address and port. Client sends username that was used when MRAS creds were received. • Although the edge server has just allocated those port to the user, it is ACL'd and means that it is only accessible by that client IP and only with valid authentication info. • All of this is done before the SIP INVITE is sent. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 7
  • 8. Address Exchange • SIP INVITE is sent with SDP and candidate list. • Both endpoints send candidate list to each other. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 8
  • 9. Connectivity Checks • STUN binding requests - pings on media ports. Won't see these in Snooper, only in Wireshark. • Priority for media connectivity: – UDP direct – UDP NAT – UDP Relay (via an Edge Server) – TCP Relay (via an Edge Server - last resort) 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 9
  • 10. Candidate Promotion • Once path is validated, another SIP INVITE is sent containing the validated remote candidate in the SDP. • Callee responds with 200 OK and a remote candidate similar to the candidate the caller presented. • For each pair, one is for RTP and the other is for RTCP. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 10
  • 11. Media Flow  Connectivity has been checked.  Candidate has been determined (IP address, port and transport type).  Codec has been agreed.  SIP messages stops and media then begins to flow between the two endpoints.  • Once the call is complete, ports are closed and SIP BYE is sent. • If Monitoring Server is deployed, a SIP SERVICE message is sent to the FE and onto the Monitoring Server to log call data. 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 11
  • 12. SIP traces - Lync P2P internal call 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 12
  • 13. SIP traces - Escalating from P2P to a Conference 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 13
  • 14. SIP traces - Lync internal user to PSTN call 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 14
  • 15. SIP traces - Internal user to Remote User call 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 15
  • 16. SIP traces - Internal user to Federated User call 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 16
  • 17. Troubleshooting • Logging Tool – Comes with Lync Server 2010. – Trace S4 and SIPStack. • Snooper – Displays all UCCP logs and Logging Tool generated traces. – Separate install - Snooper comes with the Lync Server 2010 Resource Kit. • Wireshark – Can show everything that isn’t TLS encrypted: • Problems before TLS encryption occurs. • Inspect the RTP stream to determine audio codec being used. • SIP TCP signalling (e.g. with CSTA gateways, PSTN gateways, etc). 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 17
  • 18. Questions? 19/04/2012 Microsoft Unified Communications User Group London (MUCUGL) 18