How to discover your Transport Relay

%3CLINGO-SUB%20id%3D%22lingo-sub-1819596%22%20slang%3D%22en-US%22%3EHow%20to%20discover%20your%20Transport%20Relay%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1819596%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20looking%20into%20how%20Teams%20works%20under%20the%20hood%20and%20I've%20viewed%20a%20few%20resources%20on%20how%20Media%20flow%20works%20and%20how%20Teams%20uses%20Transport%20Relays.%20I%20saw%20this%20one%20video%20(%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp8ml3jYt9KI%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dp8ml3jYt9KI%3C%2FA%3E%26nbsp%3B-%20note%3A%20this%20is%20not%20an%20official%20Microsoft%20resource)%20that%20talks%20about%20how%20you%20discover%20the%20first%20Transport%20Relay%20using%20an%20anycast%20IP.%20The%20video%20explicitly%20says%20you%20begin%20by%20hitting%20the%20endpoint%2052.113.192.2.%20When%20I%20ran%20Wireshark%20on%20my%20system%2C%20followed%20by%20opening%20my%20Teams%20Client%2C%20I%20never%20saw%20this%20endpoint%20being%20hit.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20is%20an%20official%20Microsoft%20Resource%20that%20talks%20about%20ensuring%20reachability%20for%20certain%20Microsoft%20Endpoints%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fenterprise%2Furls-and-ip-address-ranges%3Fview%3Do365-worldwide%23skype-for-business-online-and-microsoft-teams%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fenterprise%2Furls-and-ip-address-ranges%3Fview%3Do365-worldwide%23skype-for-business-online-and-microsoft-teams%3C%2FA%3E).%20I%20am%20assuming%20those%20IP%20ranges%20are%20what%20all%20the%20Anycast%20IPs%20fall%20under.%20My%20question%20here%20is%3A%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20does%20Teams%20know%20which%20Transport%20Relay%20to%20hit%20when%20it%20turns%20on%3F%3C%2FP%3E%3CP%3EIs%20there%20one%20specific%20IP%3F%20or%20is%20it%20a%20range%20of%20IPs%3F%20If%20its%20a%20range%20of%20IPs%2C%20how%20does%20it%20select%20one%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20for%20any%20advice%20or%20links%20about%20this%20topic.%3CBR%20%2F%3E%3CBR%20%2F%3ESome%20resources%20I%20looked%20at%20that%20talks%20about%20Transport%20Relays%20(but%20doesn't%20explicitly%20tell%20me%20which%20one(s)%20it%20hits)%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fmicrosoft-teams-online-call-flows%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fmicrosoft-teams-online-call-flows%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fenterprise%2Furls-and-ip-address-ranges%3Fview%3Do365-worldwide%23skype-for-business-online-and-microsoft-teams%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fenterprise%2Furls-and-ip-address-ranges%3Fview%3Do365-worldwide%23skype-for-business-online-and-microsoft-teams%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftomtalks.blog%2F2019%2F06%2Fwhere-in-the-world-will-my-microsoft-teams-meeting-by-hosted%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftomtalks.blog%2F2019%2F06%2Fwhere-in-the-world-will-my-microsoft-teams-meeting-by-hosted%2F%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1tmHMIlAQdo%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1tmHMIlAQdo%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1819596%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETransport%20Relays%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1820137%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20discover%20your%20Transport%20Relay%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1820137%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F846422%22%20target%3D%22_blank%22%3E%40aswamy_martello%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20could%20hit%20any%20of%20the%20ip%20addresses%20listed%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Foffice-365-urls-ip-address-ranges%2C%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Foffice-365-urls-ip-address-ranges%26nbsp%3B%3C%2FA%3Eall%20of%20these%20need%20to%20be%20allowed%20and%20bypassing%20proxies%2C%20inspection%20etc.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EControlling%20or%20filtering%20at%20different%20level%20is%20unsupported%20and%20likely%20to%20trip%20over%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1820472%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20discover%20your%20Transport%20Relay%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1820472%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F178440%22%20target%3D%22_blank%22%3E%40Steven%20Collier%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20help.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20see%20there%20are%20three%20IP%20ranges%20Teams%20uses%20(%3CSPAN%3E13.107.64.0%2F18%2C%2052.112.0.0%2F14%2C%2052.120.0.0%2F14)%3C%2FSPAN%3E.%20Just%20wondering%20how%20it%20picks%20an%20IP%20in%20that%20group.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20there%20a%20suggestion%20from%20a%20Teams%20Server%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

I was looking into how Teams works under the hood and I've viewed a few resources on how Media flow works and how Teams uses Transport Relays. I saw this one video (https://www.youtube.com/watch?v=p8ml3jYt9KI - note: this is not an official Microsoft resource) that talks about how you discover the first Transport Relay using an anycast IP. The video explicitly says you begin by hitting the endpoint 52.113.192.2. When I ran Wireshark on my system, followed by opening my Teams Client, I never saw this endpoint being hit.


There is an official Microsoft Resource that talks about ensuring reachability for certain Microsoft Endpoints (https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-world...). I am assuming those IP ranges are what all the Anycast IPs fall under. My question here is:

How does Teams know which Transport Relay to hit when it turns on?

Is there one specific IP? or is it a range of IPs? If its a range of IPs, how does it select one?

Thanks for any advice or links about this topic.

Some resources I looked at that talks about Transport Relays (but doesn't explicitly tell me which one(s) it hits):
https://docs.microsoft.com/en-us/microsoftteams/microsoft-teams-online-call-flows
https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-world...
https://tomtalks.blog/2019/06/where-in-the-world-will-my-microsoft-teams-meeting-by-hosted/
https://www.youtube.com/watch?v=1tmHMIlAQdo

Microsoft Teams use the Interactive Connectivity Establishment (ICE) protocol to find the most optimal media path between endpoints. This session walks you t...
Watch this Teams Academy video to understand the use of Transport Relays in Teams, when and how to use bandwidth controls and details on media flows with and...
2 Replies
Highlighted

@aswamy_martello 

 

It could hit any of the ip addresses listed at https://docs.microsoft.com/en-us/microsoftteams/office-365-urls-ip-address-ranges all of these need to be allowed and bypassing proxies, inspection etc.

 

Controlling or filtering at different level is unsupported and likely to trip over issues.

Highlighted

@Steven Collier Thanks for the help.

I see there are three IP ranges Teams uses (13.107.64.0/18, 52.112.0.0/14, 52.120.0.0/14). Just wondering how it picks an IP in that group.

Is there a suggestion from a Teams Server?