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

Sommarkollo 2013 lync workshop
Sommarkollo 2013   lync workshopSommarkollo 2013   lync workshop
Sommarkollo 2013 lync workshopTommy Clarke
 
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
 
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 SystemMUCUGL
 
Lync Updates Q1 2013
Lync Updates Q1 2013Lync Updates Q1 2013
Lync Updates Q1 2013MUCUGL
 
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 telefoniTommy Clarke
 
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 DelimonITProceed
 
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 DelimonENow Software
 
Microsoft Cloud Connector Overview
Microsoft Cloud Connector OverviewMicrosoft Cloud Connector Overview
Microsoft Cloud Connector OverviewUC2
 
Avaya lync integration 6 16
Avaya lync integration 6 16Avaya lync integration 6 16
Avaya lync integration 6 16Chris Stegh
 
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 2015Thomas Poett
 
Smb lync onlineadmin1
Smb lync onlineadmin1Smb lync onlineadmin1
Smb lync onlineadmin1Juntarou Doi
 
Lync Hoster Pack 2013 Product Overview
Lync Hoster Pack 2013 Product OverviewLync Hoster Pack 2013 Product Overview
Lync Hoster Pack 2013 Product OverviewJennifer Stevenson
 
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 ForumOpen Networking Summit
 
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)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.0Thomas Poett
 
Offre revendeurs UC
Offre  revendeurs   UCOffre  revendeurs   UC
Offre revendeurs UCRachid ZINE
 
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 BusinessPartnerPacketBase, Inc.
 
Westcon & Microsoft - Making Lync Simpler
Westcon & Microsoft - Making Lync SimplerWestcon & Microsoft - Making Lync Simpler
Westcon & Microsoft - Making Lync SimplerWESTCON 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-6j otgo
 
Lync Mobility Deployment
Lync Mobility DeploymentLync Mobility Deployment
Lync Mobility DeploymentMUCUGL
 
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 2013APNIC
 
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-v3Javier Benitez
 
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 biggerAPNIC
 
Extreme & Microsoft Lync
Extreme & Microsoft LyncExtreme & Microsoft Lync
Extreme & Microsoft LyncWESTCON EMEA
 
MULTIMEDIA SERVICES OVER IP NETWORKS
MULTIMEDIA SERVICES OVER IP NETWORKSMULTIMEDIA SERVICES OVER IP NETWORKS
MULTIMEDIA SERVICES OVER IP NETWORKSYatish Bathla
 
QoS for Media Networks
QoS for Media NetworksQoS for Media Networks
QoS for Media NetworksAmine Choukir
 
Scalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPScalable Service-Oriented Middleware over IP
Scalable Service-Oriented Middleware over IPDai Yang
 
O365con14 - lync to the future
O365con14 - lync to the futureO365con14 - lync to the future
O365con14 - lync to the futureNCCOMMS
 
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
 
CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 10CCNA v6.0 ITN - Chapter 10
CCNA v6.0 ITN - Chapter 10Irsandi Hasan
 
WP4 - Deployment of "smart" services toolkit
WP4 - Deployment of "smart" services toolkitWP4 - Deployment of "smart" services toolkit
WP4 - Deployment of "smart" services toolkiti-SCOPE Project
 
CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11CCNA v6.0 ITN - Chapter 11
CCNA v6.0 ITN - Chapter 11Irsandi Hasan
 
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-0liemgpc2
 
ITN_Module_17.pptx
ITN_Module_17.pptxITN_Module_17.pptx
ITN_Module_17.pptxssuserf7cd2b
 

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

Lync 2013 Centralized Logging
Lync 2013 Centralized LoggingLync 2013 Centralized Logging
Lync 2013 Centralized LoggingMUCUGL
 
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-2013MUCUGL
 
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 UCMUCUGL
 
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 SolutionsMUCUGL
 
Lync Mobility Architecture
Lync Mobility ArchitectureLync Mobility Architecture
Lync Mobility ArchitectureMUCUGL
 
Mobility and SmartTAP Recording for Lync
Mobility and SmartTAP Recording for LyncMobility and SmartTAP Recording for Lync
Mobility and SmartTAP Recording for LyncMUCUGL
 
Voice Resiliency in Lync Server 2010
Voice Resiliency in Lync Server 2010Voice Resiliency in Lync Server 2010
Voice Resiliency in Lync Server 2010MUCUGL
 
Introduction to Microsoft Lync
Introduction to Microsoft LyncIntroduction to Microsoft Lync
Introduction to Microsoft LyncMUCUGL
 

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

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 

Recently uploaded (20)

The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 

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