Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MEDIA SESSION BETWEEN NETWORK ENDPOINTS
Document Type and Number:
WIPO Patent Application WO/2016/049312
Kind Code:
A1
Abstract:
A media session between an initiating endpoint and a responding endpoint is effected, there being a plurality of available paths through a communication network via which the media session could be established. Type metrics associated with the available paths convey the directness of the available paths and are for making a selection of an available path for the media session. Network information indicative of the quality of the available paths and collected from a plurality of network nodes comprises contributions from network nodes other than the initiating and receiving endpoints which have current and/or have had past visibility of at least parts of the available paths. Said selection is influenced so as to cause the endpoints to select for the media session a higher quality but less direct available path in favour of a more direct but lower quality available path.

Inventors:
GUNNALAN RAJESH (US)
KHAN HUMAYUN MUKHTAR (US)
MOORE TIMOTHY M (US)
Application Number:
PCT/US2015/051940
Publication Date:
March 31, 2016
Filing Date:
September 24, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
MICROSOFT TECHNOLOGY LICENSING LLC (US)
International Classes:
H04L45/02; H04L45/50
Foreign References:
US20110194421A12011-08-11
US20120047270A12012-02-23
US20140029462A12014-01-30
Other References:
"[MS-ICE2BWM]: Interactive Connectivity Establishment (ICE) 2.0 Bandwidth Management Extensions", 4 September 2015 (2015-09-04), pages 1 - 31, XP055234313, Retrieved from the Internet [retrieved on 20151207]
"[MS-TURNBWM]: Traversal using Relay NAT (TURN) Bandwidth Management Extensions", 4 September 2015 (2015-09-04), pages 1 - 47, XP055234314, Retrieved from the Internet [retrieved on 20151207]
J. ROSENBERG: "Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocols", RFC 5245, April 2010 (2010-04-01)
See also references of EP 3180904A1
Attorney, Agent or Firm:
MINHAS, Sandip et al. (Attn: Patent Group Docketing One Microsoft Wa, Redmond Washington, US)
Download PDF:
Claims:
CLAIMS

1. A method for effecting a media session between an initiating endpoint and a responding endpoint connected via a communication network which includes network nodes, there being a plurality of available paths through the network via which the media session could be established, wherein the endpoints have access to type metrics associated with the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session, the method comprising:

accessing network information indicative of the quality of the available paths, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the initiating and receiving endpoints which have current and/or have had past visibility of at least parts of the available paths;

generating selection data based on the network information, the selection data for influencing said selection; and

transmitting the selection data to at least one of the endpoints so as to cause the endpoints to select for the media session a higher quality but less direct available path in favour of a more direct but lower quality available path.

2. A method according to claim 1 wherein the network information comprises telemetry gathered from previously established media sessions, the telemetry comprising contributions from endpoints other than the initiating and receiving endpoints.

3. A method according to claim 2 wherein part of the telemetry has been gathered from a media session that was previously established via a path which overlaps one of the available paths, the selection data generated based on the part of the telemetry.

4. A method according to claim 3 wherein a first part of the telemetry has been gathered from a first media session previously established via a first path which overlaps part of one of the available paths, and a second part of the telemetry has been gathered from a second media session previously established via a second path which overlaps a different part of that available path, the selection data generated based on both the first and second parts of the telemetry.

5. A method according to claim 1 wherein the network is an internet in which data is routed between individual networks of the internet, and the network information comprises topology information which conveys, for at least one of the available paths, the nature of the routing decisions that would be made were data to be transmitted along that path.

6. A method according to claim 5 wherein the internet includes MPLS links, and the topology information identifies that available path as involving an MPLS link, the selection data for biasing said selection towards that available path.

7. A method according to claim 5 wherein data is routed between the individual networks in accordance with ISP peering agreements, and the topology information pertains to an ISP peering agreement that is determinative of the nature of the routing decisions that would be made were data to be transmitted along that available path.

8. A method according to claim 1 wherein the network information pertains to a current state of at least one network node that forms part of at least one of the available paths.

9. A user device for effecting a media session between the user device and another endpoint via a communication network, there being a plurality of available paths through the network via which the media session could be established, the user device comprising: an access component configured to access type metrics associated with the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session;

an input configured to receive selection data for influencing said selection, the selection data generated based on network information indicative of the quality of the available paths, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the user device and the other endpoint which have current and/or have had past visibility of at least parts of the available paths;

a path selection component configured, based on the selection data, to select for the media session a higher quality available but less direct path in favour of a more direct but lower quality available path, wherein the media session is established via the selected path.

10. A computer program product comprising code stored on a computer-readable storage medium configured when executed to implement a method for effecting a media session between an initiating endpoint and a responding endpoint connected via a communication network which includes network nodes, there being a plurality of available paths through the network via which the media session could be established, the method comprising:

accessing type metrics associated with the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session; receiving selection data for influencing said selection, the selection data generated based on network information indicative of the quality of the available paths, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the initiating and receiving endpoints which have current and/or have had past visibility of at least parts of the available paths;

based on the selection data, selecting for the media session a higher quality but less direct available path in favour of a lower quality but more direct available path, wherein the media session is established via the selected path.

11. A method according to claim 8 wherein the network information comprises a measure of current resource availability for the at least one network node; and/or a performance metric indicative of the current performance of the at least one network node; and/or an indicator indicating whether or not the at least one network node is currently functioning correctly.

12. A method according to claim 1 wherein the type metrics are assigned to network addresses associated with the available paths in accordance with the ICE protocol.

13. A method according to claim 1 wherein the higher quality available path selected for the media session includes a media relay server and the lower quality available path does not include any media relay servers; and/or

wherein the higher quality available path selected for the media session includes a network address translator and the lower quality available path does not include any network address translators.

14. A computer program product according to claim 10, wherein the method further comprises:

detecting, during the media session, a reduction in the quality of the selected path; and

selecting a new available path in response, the media session continued via the newly selected path.

15. A computer program product according to claim 10, wherein the selection data is generated further based on local telemetry information held at least one of the initiating and responding endpoints, the local telemetry information gathered for at least one previous media session in which that endpoint has previously participated.

Description:
MEDIA SESSION BETWEEN NETWORK ENDPOINTS

BACKGROUND

[0001] A communication network typically includes different types of network nodes, such as user devices, routers, network address translators (NATs), media relay servers etc., which perform different functions within the network. Communication between two communicating nodes (endpoints, such as user devices) may be via other nodes of the network (intermediate nodes, such as routers, NATs and media relay servers). The network may have a layered architecture, whereby different logical layers provide different types of node-to-node communication services. Each layer is served by the layer immediately below that layer (other than the lowest layer) and provides services to the layer immediately above that layer (other than the highest layer). The network may be a packet-based network and/or an internet.

[0002] A media session may be established between two endpoints, such as user devices, connected via a communication network so that real-time media can be transmitted and received between those endpoints via the network. An example of a media session is a SIP ("Session Initiation Protocol") media session. The media session may be a Voice or Video over IP (VOIP) session, in which audio and/or video of a call is transmitted and received between the endpoints in the VOIP session. Endpoints and other types of network node may be identified by a network address (e.g. IP ("Internet

Protocol") address), with the session being established between transport addresses associated with the endpoints. A transport address is a combination of a network address (e.g. IP address) and a port associated with that network address.

[0003] To establish the media session, one of the endpoints may transmit a media session request to the other endpoint. Herein, an endpoint that initiates a request for a media session (e.g. audio/video communications) is called an "initiating endpoint" or equivalently a "caller endpoint". An endpoint that receives and processes the

communication request from the caller is called a "responding endpoint" or "callee endpoint". Each endpoint may have multiple associated transport addresses e.g. a local transport address, a transport address on the public side of a NAT, a transport address allocated on a relay server etc. During media session establishment, for each endpoint, a respective address is selected for that endpoint to use to transmit and receive data in the media session. For example, the addresses may be selected in accordance with the ICE ("Interactive Connectivity Establishment") protocol. Once the media session is established, media can flow between those selected addresses of the different endpoints.

SUMMARY

[0004] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This

Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0005] An aspect of the subject matter is directed to a method for effecting a media session between an initiating endpoint and a responding endpoint. The initiating and receiving endpoint are connected via a communication which includes network nodes, there being a plurality of available paths through the network via which the media session could be established. The endpoints have access to type metrics associated with the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session. The method comprises the following steps. Network information indicative of the quality of the available paths is accessed, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the initiating and receiving endpoints which have current and/or have had past visibility of at least parts of the available paths. Selection data is generated based on the network information, the selection data for influencing said selection. The selection data is transmitted to at least one of the endpoints so as to cause the endpoints to select for the media session a higher quality but less direct available path in favour of a more direct but lower quality available path.

BRIEF DESCRIPTION OF FIGURES

[0006] To aid understanding of the subject matter and to show how the same may be carried into effect, reference will now be made by way of example only to the following drawings in which:

[0007] Figure 1 shows a communication system;

[0008] Figure 2 shows a block diagram of a user device;

[0009] Figure 3 shows a block diagram of a control server;

[00010] Figure 4 shows a representation of a layered network architecture;

[00011] Figure 5 illustrates operation of a Network Address Translator; [00012] Figures 6A-C illustrate a first, second and third path through a network for a media session respectively;

[00013] Figure 7 illustrates a set of possible address pairings for a media session;

[00014] Figure 8 shows a function block diagram representing functionally of an endpoint(s) and a control server;

[00015] Figure 9 is a flow chart for a method for effecting a media session.

DETAILED DESCRIPTION

[00016] Embodiments will now be described by way of example only.

[00017] Figure 1 is a schematic illustration of a communication system, which comprises: a public network 2, which is a packet-based internet (that is, a system of interconnected individual networks) e.g. the Internet, having a public address space; first and second endpoints, which are first and second user devices 6a, 6b operated by first and second users 4a, 4b; third and fourth endpoints, which are third and fourth user devices

6'a, 6'b operated by third and fourth users 4 'a, 4'b; first and second media servers 14a, 14b; and a control server (telemetry server) 12. The public network 2 comprises a plurality of routers 3 which route traffic between different individual networks (not shown) of the public network 2.

[00018] The user devices 6a, 6'a are connected to, and are network nodes of, a first packed-based private network 5a and the user devices 6'a, 6'b are connected to, and are network nodes of, a second packet-based private network 5b.

[00019] Each node of a private network has a respective private network address in a private address space of that private network which other nodes connected to that same private network (and only such nodes) can use to communicate with that node over that private network (and only over that private network). That address is private in that it cannot be used to communicate with that node by devices which are not connected to that same private network e.g. it cannot be used within the public network 2. Moreover, whilst that address is unique within that private network, other nodes may use the same network address within different networks (e.g. the first and second user devices 5a, 5b might happen to have the same private network address but which is useable to communicate with the first user device 6a only within the first private network 5 a and which is useable to communicate with the second user device 6b only within the second private network 5b). [00020] To enable nodes of the first private network 5a (resp. second private network 5b) to communicate with the public network 2, the first (resp. second) private network is connected to the public network 2 via a first Network Address Translator (NAT) 8a (resp. second NAT 5b). Each NAT 5a, 5b - as well as having respective private network addresses in the first and second private address spaces of the first and second private network 5 a, 5b respectively (referred to as an address on the private side of that NAT) - also has a respective public network address in the public address space of the public network 2 (referred to as an address on the public side of that NAT). Thus, not only can nodes of the first and second private network 5a,5b communicate with the first and second NATs 5a, 5b respectively using those NATs' private network addresses, but nodes outside of that private network can communicate with those NATs 5 a, 5b using those NATs' public network addresses.

[00021] A NAT (e.g. 8a, 8b) operates as an interface between a private network (e.g. 5a, 5b) and public network (e.g. 2) by mapping the private address space of the private network into the public address space of the public network, thereby enabling nodes of the private network to communicate outside of the private network over the public network.

[00022] Nodes outside of one of the private networks (5a/5b) can direct traffic intended for a particular node of that private network to the relevant NAT (8a/8b) via the public network 2 using that NATs public address, which that NAT then forwards the traffic to that node via that private network.

[00023] The operation of a NAT is described in detail below.

[00024] The private networks 5 a, 5b and public network 2 and constitute a communication network 1, of which the various user devices 6a,...,6'b, NATs 8a, 8b, servers 12, 14a, 14b and routers 3 are network nodes. The communication network 1 is also an internet (which comprises the individual networks of the internet 2 as well as the private networks 5 a, 5b).

[00025] The user devices 6a, 6b execute respective instances of communication client software 7a, 7b (client). The client enables the user devices 6a, 6b to establish media sessions between the user devices 6a, 6b over the network 1, for example to facilitate a real-time communication event (e.g. a voice and/or video call) between the user's 4a, 4b so that the users 4a, 4b can communicate with one another over the network 1, with call audio and/or video being transmitted and received between the devices 6a, 6b in the media session. The user devices 6'a, 6'b also execute respective instances of the client software 7'a, 7'b to similar effect.

[00026] A user device may connect to the public network 2 by some other mechanism which does not involve any NATs though this is not shown in figure 2. For example, a user device may be connected via a Wi-Fi connection to a private network and to a public network via a mobile network with no NATs involved.

[00027] The control server 12 executes control code 13 for monitoring and controlling aspects of the communication between the various user devices in the manner described below.

[00028] Figure 2 is a schematic block diagram of a user device 6 (e.g. 6a, 6b, 6'a, 6'b). The user device 6 is a computer device which can take a number of forms e.g. that of a desktop or laptop computer, mobile phone (e.g. smartphone), tablet computing device, wearable computing device, television (e.g. smart TV), set-top box, gaming console etc.

[00029] The user device 6 comprises a processor 22 to which is connected memory 20, one or more output devices, such as a display 24 and loudspeaker(s) 26, one or more input devices, such as a camera 27 and microphone 28, and a network interface 24, such as an Ethernet, Wi-Fi or mobile network (e.g. 3G, LTE etc.) interface which enables the user device 6 to connect to the network 1. The display 24 may comprise a touchscreen which can receive touch input from a user of the device 6, in which case the display 24 is also an input device of the user device 6. Any of the various components shown connected to the processor may be integrated in the user device 6, or non-integrated and connected to the processor 22 via a suitable external interface (wired e.g. Ethernet or wireless e.g. Wi-Fi).

[00030] The memory 20 holds a copy of the client 7 which, when executed on the processor 24, causes the user device 6 to implement the functionality of the client 7.

[00031] The client 7 has a user interface for receiving information from and outputting information to a user of the user device 6, including during a communication event such as a call. The user interface may comprise, for example, a Graphical User Interface (GUI) which outputs information via the display 24 and/or a Natural User Interface (NUI) which enables the user to interact with a device in a "natural" manner, free from artificial constraints imposed by certain input devices such as mice, keyboards, remote controls, and the like. Examples of NUI methods include those utilizing touch sensitive displays, voice and speech recognition, intention and goal understanding, motion gesture detection using depth cameras (such as stereoscopic or time-of-flight camera systems, infrared camera systems, RGB camera systems and combinations of these), motion gesture detection using accelerometers/gyroscopes, facial recognition, 3D displays, head, eye, and gaze tracking, immersive augmented reality and virtual reality systems etc.

[00032] Figure 3 is a schematic block diagram of the control server 12. The controller server 12 comprises a processor 32 to which is connected memory 30, and a network interface 34 which enables the control server 12 to connect to the network 1. The memory 30 holds the control software 13 which, when executed on the processor 32, causes the control server 12 to implement the functionality of the control software 13. Although depicted as a single device, the functionality of the control server 12 may be distributed across multiple server devices in a distributed fashion, or alternatively implemented by one or more user devices e.g. in a distributed, peer-to-peer fashion.

[00033] The network 1 has a layered architecture, whereby the functionality of the network 1 is organized into abstracted layers. This is illustrated schematically in figure 4. In this example, the network 1 implements the Internet protocol suite, whereby the functionality is organized into four layers 108-102: an application layer 108 (comparable to a combination of layers 5, 6 and 7 of the OSI ("Open Systems Interconnection") model), a transport layer 106 (comparable to layer 4 of the OSI model) below the application layer 108, a network layer 104 (comparable to layer 3 of the OSI model) - which is an internet layer- below the transport layer 106, and a link layer 102 (comparable to a combination of layers 1 and 2 of the OSI model) below the internet layer 104.

[00034] The application layer 108 provides process-to-process communication between processes running on different hosts i.e. general purpose computer devices connected to the network 1 such as user devices 6 and servers 12, 14 (note that routers 3 and NATs 8 are not "hosts" as the term is used herein). The transport layer 106 provides end-to-end communication between different hosts, including providing end-to-end channel(s) between hosts for use by the processes. The internet layer 104 provides routing i.e. communication between different individual networks of the internet 1, e.g. via routers 3/NATs 8 which operate at the internet layer, with the latter providing translation of network address information at the internet layer (network address translation). The link layer 102 provides communication between physical network addresses - for instance, MAC ("Medium Access Control") addresses - of adjacent nodes in same individual network the internet 1 e.g. via network switches and/or hubs etc. which operate at the link layer 102. [00035] Application data (e.g. user data) to be transmitted over the network 1 is passed at a transmitting host from the application layer 108 to the transport layer 106, at which it is packetized into transport layer packet(s) in accordance with a transport layer protocol such as UDP ("User Datagram Protocol") or TCP ("Transmission Control Protocol"). TCP is a "reliable" stream delivery service in that it involves

acknowledgment/retransmission mechanisms whereas UDP is an "unreliable" stream delivery service in that it does not involve any such mechanisms. Packets of unreliable services are called datagrams. The data of the transport layer packet(s) (e.g. TCP packet(s)/UDP datagram(s)) are then passed to the internet layer 104 at that host, at which the data is further packetized into IP datagram(s) in accordance with the Internet Protocol (which is an internet layer protocol). The data of the IP datagram(s) are then passed to the link layer 102 for transmission over the network 1 to a receiving host. When received at the receiving host, the data of the IP datagram(s) is passed up to the internet layer 104, at which the data of the transport layer packet(s) is extracted from the payload(s) of the IP datagram(s) and passed up to the transport layer 106, at which the application data is extracted from the payload(s) of the transport layer packet(s) and passed up to the application layer.

[00036] A transport layer packet (e.g. TCP packet or UDP datagram) 10 is illustrated in figure 4. The Transport layer packet 106 comprises a transport layer header (e.g. UDP/TCP header) lOi - which is generated and attached at the transport layer 106 of the transmitting host - and transport layer payload (e.g. UDP/TCP payload) lOii - which encodes application data received from the Application layer 108.

[00037] An IP datagram 11 is also illustrated. The IP datagram 11 comprises an IP header Hi, which is generated and attached at the internet layer 104 of the transmitting host, and an IP payload 1 Hi, which encodes the data of the transport layer packet(s) received from the transport layer. The IP header comprises a destination transport address, which is a transport address to which the IP packet 11 is directed through the network 1 , and a source transport address, which is a transport address local to the host (at least at this stage of packet generation) which generates the IP datagram.

[00038] The terms "IP header level" and "IP payload level" are used herein in reference to information encoded in IP header(s) and IP payload(s) respectively.

[00039] For packets generated within a private network (e.g. 5a/5b), the IP header includes a transport address which is a private network address in the private address space of that private network (e.g. private network address of user device 6a/6b in 5a/5b) and a port associated with that private address. As indicated, such a private address space is not useable outside of that private network. As such, were a simple router used to forward IP datagrams between that private network (e.g. 5a/5b) and a public network (e.g. 2), nodes outside of that private network would be unable to respond to such datagrams as they would not have any useable source address in the IP header.

[00040] To this end, a NAT may be used to provide an interface between a public and private network.

[00041] Figure 5 illustrates the operation of a NAT 8 (e.g. 8a, 8b). An IP datagram 11, comprising an IP header Hi and IP payload 1 Hi, is received by the NAT via a private network 5 (e.g. 5a, 5b) from a node of that network such as a user device 6 (e.g. 6a/6'a, 6b/6'b). The IP header 1 li contains an initial source transport address of the user device 6, which comprises a private network address (which is a private IP address) of the user device 6 in the private address space of the private network 5 and a port associated with that private address. The IP header Hi also contains a destination transport address to which the IP datagram 11 has been directed by the user device 6.

[00042] As shown, the NAT 8 modifies the IP header 1 li to replace the initial source transport address with a new source transport address, thereby generating a modified IP datagram 11 ' with a modified header 11 'i containing the new source transport address (the destination transport address and the IP payload 1 Hi are unmodified by the

NAT 8). The new transport address comprises a public network address (which is a public IP address) of the NAT 8 in the public address space of the public network 2, and a port associated with that public IP address.

[00043] The NAT 8 maintains a mapping 9 between the initial transport address and the new transport address so that it can forward any return traffic that has been directed to the new transport address via the public network 2 (and which will thus end up at the NAT 8) to the initial transport address of the user device 6 via the private network 5.

[00044] In the simplest example, the NAT simply replaces the private IP address with its own public IP network address and does not alter the port. However, it is becoming increasingly common for NATs to implement address space masquerading, whereby the private address space is hidden behind a single network address. To prevent ambiguity in return packets, the NAT generally has to alter other information such as the port associated with the source address. For instance, a NAT may have a single public IP address and replace every transport address in the private address space with its own single public IP address and a unique (and likely different) port so that outside of the private network nodes of the private network are distinguished from one another only by ports associated with that single public IP address.

[00045] Typically NATs do not modify the IP payload(s), but only modify the IP header(s) in the above-described manner. This is generally acceptable for protocols (such as HTTP) which simply direct responses to the source address in the IP header.

[00046] However, others protocols including some media session protocols (such as SIP) also rely on address of endpoints encoded at the IP payload (not header) level. For example, the SIP protocol dictates that endpoints should use addresses which are contained in an SIP invite/SIP response to establish the media session, which will be encoded at the IP payload (not header) level. As illustrates in figure 5, this is not modified by the NAT 8.

[00047] Thus, for example, supposing the first user device 6a in figure 1 were to transmit a media session invite to the second user device 6b via the first NAT 8a encoded at the IP payload level. That NAT 8a would not modify the IP payload(s) thus, having received the invite, the second user device 6b would attempt to respond to the invite using the unmodified private transport of the first user device 6a from the unmodified IP payload(s) (not header) - this would fail as that private address is not useable outside of the private network 5 a, and it would therefore not be possible to establish the session.

Similarly, even if the first user device 6a were not behind the NAT 8a and instead had its own public IP address, the session establishment would still fail as the second user device 5b is behind the NAT 5b: in responding to the invite with a session invite response, the second user device 6b would include its own private address in the second address space of the second private network 5b in the response encoded at the IP payload level, which is similarly not useable by the first user device 6a.

[00048] To this end, protocols such as STUN ("Session Traversal Utilities for NAT") and TURN ("Traversal Using Relay NAT") have been developed to enable SIP sessions and the like to be established between endpoints which are separated by one or more NATs.

[00049] STUN allows an endpoint to determine whether or not it is located behind a NAT and, if so, the public address of the NAT which is mapped to the private address of the initiating endpoint (i.e. effectively giving it access to the mapping 9) so that the endpoint may include that public address in the IP payload(s) rather than its own private address. Typically, STUN works by the initiating endpoint sending a query to a STUN server, which is relayed to the STUN server through the NAT and via the public network as IP datagram(s). Because the NAT replaces the private address in the IP header(s) of the query with the corresponding public address on the public side of the NAT, the STUN server can obtain the latter from the IP header(s) of the query, which it can, in turn, provide to the initiating endpoint. The initiating endpoint can then established the session using that public address rather than its own private address, thereby conveying a useable address at the IP payload level to the responding endpoint in the session request. The responding endpoint can similarly discover its associated public address which it can convey to the initiating endpoint at the IP payload level in the response rather than its own private address. The role of the STUN server is effectively one of providing address discovery, and generally it does not participate in the media session once established.

[00050] As is known in the art, there are circumstances in which such a session cannot be established even when the public address of the NAT is known, for instance when the initiating and/or responding endpoint is behind a symmetric NAT. In such circumstances, one or more TURN relay servers can often be used to traverse the NAT by relaying media data through the TURN server(s).

[00051] When an endpoint needs to use a TURN relay, it sends a request to the TURN relay requesting that a unique public transport address on the TURN relay be allocated to the endpoint. If the request is accepted, the media session is then established using that public address of the TURN server as the source address for that endpoint. That endpoint sends to the TURN server media that it wishes to transmit in the session contained in TURN messages. The TURN server extracts the media from the TURN messages, and relays it onwards from the public address on the TURN server which has been allocated to that endpoint as a source address. The TURN server also relays data intended for that endpoint which has been directed to the address allocated on the TURN server to that endpoint contained in TURN messages for extraction by that endpoint.

[00052] If both endpoints are located behind NATs that do not permit STUN, then each will need its own respective transport address to be allocated on a TURN server, in which case the media session is established between those two allocated TURN server addresses and each endpoint relays/receives data in TURN messages, with data provided to the TURN servers being transmitted and received to/from the two TURN server addresses allocated to those endpoints in the media session.

[00053] TURN relaying requires resources - including the unique public transport address(es) allocated on the TURN server(s) - to be allocated on that (those) server(s) for at least the duration that media session, and also means that media of the media session travels via a less direct path than when a media session is established directly between the endpoints or via one or more NATs. Thus, whilst TURN relaying can more or less guarantee to provide a useable path through a network for a media session, this relaying comes at the cost of increased use of server resources and potentially increased latency due to the indirectness of the path.

[00054] STUN and TURN functionality can be incorporated in the same server, which is sometimes also referred simply to as a TURN server even though it also includes STUN functionality.

[00055] The media servers 14a and 14b of figure 1 are TURN servers, which incorporate both STUN and TURN functionality and thus have both address lookup and media relay functionality. Alternatively, this and/or other functionality may be split between separate servers, or the functions performed by the media servers 14a, 14b described below may be performed by the same server.

[00056] ICE ("Interactive Connectivity Establishment") is a known protocol that is used for establishing connectivity for VOIP sessions traversing network address NATs and firewalls, which attempts to establish the most efficient path in terms of media latency to ensure ideal media quality. Details of the ICE protocol can be found in the publically available RFC 5245, Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/ Answer Protocols, J. Rosenberg (April 2010). Certain extensions to the ICE protocol are defined in [MS-ICE2]

Interactive Connectivity Establishment (ICE) Extensions documentation

(http://msdn.microsoft.com en-us/library/office/cc431504(v=office.12). aspx).

[00057] In the context of ICE, a path with direct connectivity (direct path) between clients is preferred for a media session over an indirect path e.g. that involves using intermediate relay servers (e.g. relaying through TURN server(s)). A path in the context of ICE refers to a set of NAT(s) and/or media relay server(s) (if any: a path may include no NATs or servers) which can be used to transmit and receive data between those endpoints. As discussed below, a path is identified by a pair of transport addresses - one of which is used to transmit and receive data by an initiating endpoint and the other to transmit and receive data by a responding endpoint - which define such a set of NAT (s) and/or media relay server(s) (if any).

[00058] A "direct" path in the context of ICE means a path whereby data intended for a receiving endpoint transmitted along that path by a transmitting endpoint is not processed above the internet layer when in transit of that path i.e. so that that data is only processed at/above the transport layer of the transmitting endpoint before being passed to the internet layer for transmission and at/above the transport layer of the receiving endpoint having been passed up from the internet layer following receipt at the receiving endpoint. Paths which do not include any media relay servers (e.g. TURN servers) are direct, including those that do have NAT(s) and/or routers as these do not process such data above the internet layer (though they may nonetheless implement transport and application layers e.g. for administrative purposes).

[00059] An "indirect" path in the context of ICE means a path whereby data intended for a receiving endpoint transmitted along that path by a transmitting endpoint is processed above the internet layer (e.g. at the transport and possibly higher layer(s) e.g. application layer) when in transit of that path. That is, such that data is passed up to the transport layer for processing at or above that layer after being transmitted by the transmitting endpoint but before being received at the receiving endpoint at some intermediary network node somewhere along the path. Paths which include one or more media (e.g. TURN) relay servers are indirect.

[00060] ICE permits only paths through a network which are symmetric. A symmetric path in this context means a path whereby data transmitted from a first endpoint to a second endpoint along that path traverses the same set of NAT(s) and/or media relay server(s) (if any) as data transmitted along that path from the second endpoint to the first endpoint, but in reverse order. Of course, there may well be asymmetry in terms of the route taken between endpoints and NATs, endpoints and servers, NATs and NATs, servers and servers, servers and NATs etc. e.g. for internet traffic, data may travel through different individual networks of the internet in each direction and/or at different times, and thus through different routers, but nevertheless passes through the same NAT(s) and/or TURN server(s) (if any) in both directions. A direct path which includes no servers or NATs is symmetric. [00061] Figures 6A-6B show examples of paths through the network 1 of figure 1 which are symmetric and which are considered direct in the context of ICE.

[00062] Figure 6A shows data intended for a receiving endpoint 6 (right hand side) travelling in one direction along a first path from a transmitting endpoint 6 (left hand side) to the receiving endpoint. The first path does not include any NATs 8 or relay servers 14. The path is symmetric in that data traveling in the other direction also does not go via any NATs 8 or relay servers 14, though it may go via different routers 3 in different directions and/or at different times.

[00063] As illustrated, once the data has been passed from the transport layer 106 as transport layer (e.g. UDP/TCP) packets 10 to the network layer 104 by the transmitting endpoint, it remains at or below the network layer 104 until reaching the receiving endpoint. That is, there is no transport layer (or higher) processing of the data whilst travelling along first path. IP packets 10 conveying the data may be fragmented along the way, but aside from that remain unmodified, and the transport layer packets 10 thus arrive at the transport layer of the receiving endpoint similarly unmodified.

[00064] Figure 6B shows data intended for a receiving endpoint 6 (right hand side) travelling in one direction along a second path from a transmitting endpoint 6 (left hand side) to the receiving endpoint. The second path does include at least one NAT 8 but does not include any relay servers 14. The path is symmetric in that data traveling in the other direction goes via the same NAT(s) 8 (in reverse order) but no relay servers 14, though it may go via different routers 3, though the routers it traverses in either direction and/or at different times may be different.

[00065] Again, once the data has been passed from the transport layer 106 as transport layer (e.g. UDP/TCP) packets 10 to the network layer 104 at a transmitting endpoint, it remains at or below the network layer 104 until reaching a receiving endpoint. However, in contrast to the first path of figure 6A, IP packets 11 conveying the data are modified at the NAT 8 to change the source address in the IP headers. The modified IP packets are labelled 11 ' in figure 7B. Nevertheless, the IP payloads encoding the transport layer packets 10 are not modified and the transport layer packets 10 are therefore received at the transport layer of the receiving endpoint unmodified.

[00066] Figure 6C shows an example of a symmetric indirect path through the network 1. [00067] Figure 6C shows data intended for a receiving endpoint 6 (right hand side) travelling in one direction along a third path from a transmitting endpoint 6 (left hand side) to the receiving endpoint. The third path does include at least one media relay server 14 and may also include one or more NAT(s) (not shown). The path is symmetric in that data traveling in the other direction goes via the same relay(s) and NAT(s) (in reverse order), but may go via different routers in different directions and/or at different times.

[00068] If the TURN server 14 shown in figure 6C is allocated to the transmitting endpoint 6 (left hand side), then the data is transmitted from the transmitting endpoint to the server 14 contained in TURN messages from which it is extracted and relayed on towards the receiving endpoint, otherwise if the TURN server is allocated to the receiving endpoint the data received from the transmitting endpoint at the relay server 14 is wrapped up into TURN messages for transmission toward the receiving endpoint. In either event, the TURN server operates at the transport and application layers to reformat the data when in transit of the third path which makes the third path indirect. Due to the reformatting, the receiving endpoint receives transport layer packets 10' which are different from those originally transmitted by the transmitting endpoint (10).

[00069] The ICE protocol attempts to identify what it deems to be the most efficient path based on static priorities, which are assigned to each of a number of so-called

"candidate pairs" that could be used for the media session. A candidate is a transport address associated either an initiating endpoint or a responding endpoint. A candidate pair is a pair of candidates (i,r), the first (i) associated with the initiating endpoint and the second (r) with the responding endpoint. The term "candidate" relates to the fact that the ICE mechanism initially assumes that any transport address associated with an endpoint might be useable for a media session (though it may not actually be useable for reasons discussed above) - the ICE protocol then involves identifying candidate(s) which are actually useable.

[00070] ICE classes candidates into 3 categories: host candidates, reflexive candidates and relayed candidates.

[00071] A host candidate is a transport address which is local to the endpoint in question i.e. on a network interface directly attached to the endpoint. For example, the private addresses of the user devices 6a, 6b are local to those user devices and are thus host candidates, and similarly if the user devices were directly connected to the public network 2 (rather than or in addition to via the NATS 8a, 8b) they would have their own public addresses local to those user devices which would also be host addresses.

[00072] A reflexive candidate is a transport address which is not local to an endpoint, but which is a translated transport address on the public side of a NAT (e.g. as included in the modified IP header 11 'i of figure 5). These are classed into two sub categories: "server reflexive candidates" which are public NAT addresses discovered by querying a server e.g. STUN server in the manner outlined above, and "peer reflexive candidates" which are discovered by the other endpoint during the establishment of the media session (e.g. a public side NAT address associated with the initiating endpoint as discovered by the responding endpoint, or vice versa).

[00073] A relayed candidate is a transport addresses allocated from a media relay server e.g. TURN server in the manner outlined above.

[00074] This is illustrated schematically in figure 7 for the first and second user devices 6a, 6b of figure 1. In this example, the first user device 6a is an initiating endpoint and the second user device 6b is a responding endpoint.

[00075] The first user device 6a is associated with a first local transport address (which is a host candidate) 40a; a first reflexive transport address (which is a reflexive candidate) 42a on the public side of the first NAT 8a and mapped to a private transport address of the first user device 6a in the first private network 5 a; and a first relay transport address 44a (which is a relayed candidate) allocated to the first user device 6a on the first TURN server 14a. Similarly, the first user device 6b is associated with a second local transport address (which is a host candidate) 40b; a second reflexive transport address (which is a reflexive candidate) 42b on the public side of the second NAT 8b mapped to a private transport address of the second user device 6b in the second private network 5b; and a second relay transport address 44b (which is a relayed candidate) allocated to the second user device 6b on the second TURN server 14b.

[00076] Potentially, any of the initiating endpoint' s candidate transport addresses can be used to communicate with any of the responding endpoint' s candidate transport addresses. That is, the first user device 6a can potentially direct data from any of its own associated addresses (40a, 42a, 44a) to any of the addresses associated with the second user device (40b, 42b, 44b) and vice versa. In the example of figure 6, this results in nine candidate pairs that could potentially be used for communication between the first and second user devices 6a, 6b: [(40a, 40b),(40a,42b),...,(44a, 42b), (44a, 44b)]. [00077] However, in practice, some candidate pairs will not be valid (i.e. will not work). For instance, if the endpoints are both behind NATs and their host candidates 40a, 40b are private addresses in the private networks 5a/5b, they are unlikely to be able to communicate directly using those addresses 40a, 40b for the reasons discussed above. However, if their host candidates 40a, 40b are public addresses which, when used, do not involve routing data through any NATs then the candidate pair (40a, 40b) may well be valid.

[00078] Similarly depending on the type of NATs (e.g. if it is a symmetric NAT), use of reflexive candidates 42a and/or 42b may not be possible as discussed.

[00079] Each candidate pair thus potentially represents a path through the network of a certain type, although such a path will only be available in practice if the candidate pair is actually valid.

[00080] A pair of host candidates (e.g. (40a, 40b)) potentially represents a direct path through a network, which is a first direct path of the type described above with reference to figure 6A that does not involve any NATs or media relay servers. However, such a candidate pair will be invalid if either of the local addresses 40a, 40b is a private address, usage of which in fact involves sending data via a NAT.

[00081] A pair of candidates, at least one of which is a reflexive candidate, (e.g.

40a, 42b), (42a, 40b), (42a, 42b)) potentially represents a direct path through the network, which is a second direct path of the type described above with reference to figure 6B that does involve NAT(s) but no media relay servers. However, such a candidate pair will be invalid if (either of) the reflexive address(es) is on the public side of e.g. a symmetric

NAT.

[00082] A pair of candidates, at least one of which is a relayed candidate, (e.g. (40a, 44b), (42a, 44b), (44a, 44b), (44a, 42b), (44a, 40b)) represents an indirect path through the network of the type described above with reference to figure 6C which is likely to work but at the expense of requiring resource allocation on a media relay server(s).

[00083] As part of an ICE media session establishment procedure, both the initiating endpoint and the responding endpoint attempt to discover all their candidates by communicating with an appropriate TURN server (e.g. 14a, 14b), which are then paired in all possible combinations - e.g. if the six candidates 40a, 44b were discovered, this would result in the nine candidate pairs discussed above. ICE then attempts to discover which candidate pairs are valid. The way that ICE does this is to systematically try all possible pairs in a specific sorted order until it finds a set of one or more valid (i.e. working) candidate pairs, one of which can then be selected for the media session. Whenever at least one of the endpoints discovers more than one candidate giving rise to multiple candidate pairs, there will be a plurality of potentially available paths through the network via which the media session could be established (though not all of them may actually be available as not every candidate pair is valid).

[00084] The order in which candidate pairs are tried is dictated by the ICE static priority scheme, with higher priority pairs being tried ahead of lower priority pairs.

[00085] In accordance with the ICE protocol, each candidate (e.g. 40a-44b) can be assigned a static priority in accordance with equation 1 :

priority = (2 24 ) * (type preference) + (2 8 ) * (local preference)

+ (2°) * (256 - component ID)

[00086] The type preference (one example of a type metric) is an integer from 0 to 126 inclusive, and represents the preference for the type of the candidate (local, server reflexive, peer reflexive, and relayed). 126 is the highest preference, and a 0 is the lowest. Setting the value to a 0 means that candidates of this type will only be used as a last resort. The type preference is identical for all candidates of the same type and is different for candidates of different types. The type preference for peer reflexive candidates is higher than that of server reflexive candidates. The ICE protocol recommends values of 126 for host candidates (unless these are from a Virtual Private Network interface, in which case 0 is recommended), 100 for server reflexive candidates, 110 for peer reflexive candidates, and 0 for relayed candidates. The local preference is an integer from 0 to 65535 inclusive and represents a preference for the particular IP address from which the candidate was obtained when an endpoint is multihomed (connected to more than one computer network). When there is only a single IP address, ICE recommends setting this to the maximum of 65535, effectively making this term redundant when there is no

multihoming. The component ID term is an identifier of the candidate.

[00087] As can be seen, by far the most significant term in equation 1 is the first term which is based on the candidate type.

[00088] Thus the ICE priority scheme deprioritizes indirect paths via relayed candidates, which it uses only as a last resort, and moreover biases the static priorities away from reflexive candidates. [00089] Once the candidate pairs are formed and priorities assigned in accordance with equation (1), candidate pair static priorities for each candidate pair can be calculated in accordance with equation 2:

pair priority = 2 32 * MIN(G, D) + 2 * MAX(G, D) + (G > D? 1: 0)

[00090] where G is the static priority for the initiating endpoint's candidate, D that for the responding endpoint's candidate, and G>D?1 :0 an expression whose value is 1 if G is greater than D, and 0 otherwise.

[00091] Because ICE deprioritizes relayed candidates as compared with to non- relayed candidates, candidate pairs which include a relayed candidate are deprioritized as compared with those that do not. Thus, the ICE static priority scheme prioritizes more direct paths over less direct paths.

[00092] In addition, because ICE deprioritizes reflexive candidates as compared with host candidates, candidate pairs which include a reflexive candidate are deprioritized as compared with those that only comprise host candidates. Thus, the ICE static priority scheme is biased towards routes that do not involve NATs.

[00093] The static ICE path prioritization schemes is sufficient for controlled corporate deployments/topologies. However large scale global online service deployments of real time media services brings along a completely different set of challenges for which the static priority scheme may not only be insufficient but also be detrimental to media quality in certain cases. Finding the ideal connectivity path becomes critical to ensure the best possible experience for users and also to ensure media quality SLAs ("Service Level Agreements") for users subscribing to online services can be met.

[00094] Below are a few scenarios where just selecting the most efficient path based on static path priorities defined by ICE may not be sufficient or desirable.

[00095] 1. As part of the online service contracts, companies might have

MPLS ("Multiprotocol Label Switching") links that offer better media quality with lower latency. Even if the ICE static priority scheme determines the paths through MPLS links to be lower priority, using the MPLS links will in reality provide better media experience.

[00096] As is known in the art, MPLS is a mechanism that directs data from one network node to the next based on short path labels rather than long network addresses, which avoids needing to perform lookups in a routing table (which requires time and resources). The labels identify virtual paths ("MPLS links") between distant nodes, rather than the endpoints themselves. In a network implementing the MPLS mechanism, routing decisions for a packet are made solely on the basis of the labels attached to that packet without examining the packet itself, which is referred to as label switching. This is in contrast to packet switching e.g. used in IP routing, in which a router decides the next hop using the destination address of an IP packet from the IP header itself. ICE is blind to this lower-layer label switching, and simply treats these paths and paths involving less efficient routing mechanisms as equally "direct" provided they do not involve higher-layer intermediaries such as relay servers. The MPLS protocol can be considered as operating between OSI layer 2 (data link) and layer 3 (network) as they are traditionally defined, and is sometimes referred to as a "layer 2.5" protocol.

[00097] 2. Regional ISP ("Internet Service Provider") Peering agreements can result in paths that would be favoured by ICE having extremely high latencies.

[00098] The term "peering" refers to data routing between two autonomous networks of an internet. Peering agreements dictate the manner different network operators, such as ISPs, can make use of each other's' networks and thus dictate the manner in which data is routed through such an internet.

[00099] Such lower-layer (e.g. internet layer) routing decisions are, again, invisible to ICE and, in the context of ICE and the present disclosure the resulting paths are "direct" because they do not involve higher-layer (e.g. transport/application layer) intermediaries such as media relay servers. However, in reality, such agreements can result in paths through the internet that are, say, geographically roundabout or otherwise inefficient (e.g. which involve unsuitable network(s) of the internet) and therefore prone to latency (and thus of low quality) but which ICE prioritizes highly because such paths are nonetheless "direct" (as the term is used herein).

[000100] In particular, the inventors have appreciated that routing decisions between different ISPs are typically not optimized. Sometimes routing decisions are made for commercial, rather than technical reasons i.e. a particular set of lower layer routing decisions are made not because they will provide e.g. the fastest route involving the fewest hops between individual networks or because they are optimal from a technical perspective in some other sense, but rather because they are cheaper for the ISP.

[000101] These sub-optimal routing decisions are essentially invisible at higher layers (although their effect in terms of sub-optimal media delivery is manifest), nor are they directly controllable outside of the ISP's own domain. However, the inventors have appreciated that, through the use of controlled higher layer relaying, lower layer behaviour can nonetheless be influenced to the advantage of the end-users e.g. to avoid network paths known to employ unfavourable routing decisions as revealed through the

consideration of network quality metrics from past media session over time.

[000102] 3. The quality of media paths can vary depending on time and load on the network and may not directly correlate to ICE static priorities.

[000103] 4. ICE lacks the ability to learn and adapt connectivity paths based on telemetry gathered from previously established media sessions.

[000104] Instead of relying solely on static priorities provided by ICE, the disclosure provides a mechanism whereby path selection can be additionally influenced by relevant network information. The network information is indicative of the quality of the paths that are available (or at least potentially available) for a media session between the initiating and the responding endpoint. The "quality" of a path in this context refers to the end-user experience which that path is able to deliver when used for the media session. Paths which degrade the end-user experience, for instance because they are susceptible to packet loss, excessive latency, excessive jitter etc. and so degrade the perceptual quality (i.e. from a user's perspective) of media (e.g. audio and/or video) as received along that path, are of lower quality, whereas paths which enhance the end-user experience, for instance because they exhibit minimal packet loss, low latency, low jitter etc. and so do not significantly degrade the perceptual quality of the media, are of higher quality.

[000105] This network information can either be configured by administrators or determined dynamically during media session establishment or alternatively based on telemetry gathered from a previously established media session(s). The decisions could be based on data gathered by just the client(s) making the selection, or the client(s) can work in a conjunction with a server that has a richer set of data on connectivity paths and network quality characteristics.

[000106] Among other things, the present disclosure extends the ICE protocol to: a. include topology/deployment information to establish the best connectivity path for real time media (MPLS, ISP Peering etc.). "Topology information" in this context means information that pertains to the routing of data between individual networks of an internet at the network layer or below (e.g. MPLS routing is, in a sense, performed below the network layer -see above). This information could either be configured on the clients or the clients could discover this information from a telemetry server that provides topology and call quality telemetry information relevant to the entities involved in the media session (caller/callee endpoint and relay servers). Both MPLS and ISP peering agreements result in routing decisions that do not affect the "directness" of the path as the term is used herein because they do not introduce any higher-layer intermediaries (e.g. media relay servers), and which are thus invisible to the ICE protocol, but which are nonetheless highly relevant in terms of path quality (with paths involving MPLS routing tending to be of higher quality and paths involving routing dictated by ISP peering agreements potentially of lower quality, depending on the nature of the agreements); b. include dynamic discovery of path quality during connectivity establishment of media session or ongoing monitoring during the media session;

c. leverage telemetry gathered from previously established media sessions to establish a better media connectivity path for subsequent calls;

d. enable prioritization of paths of better quality and to deprioritize or complete remove paths of lower quality;

e. enable switching of media paths during a media session if the quality of current media path degrades to be worse than another available media path (typically several viable media paths exist between the caller and callee endpoints).

[000107] With ICE the caller endpoint is typically nominated as the controlling endpoint and is responsible for selecting the final path to be used for media flow. In accordance with the following, the controlling endpoint also incorporates the

aforementioned topology information while selecting the final path for media flow.

[000108] Figure 8 is a function block diagram, in which functional blocks

(components) below the dashed line in figure 8 represent functionality implemented by a client 7 (7a and/or 7b) when executed on a user device 6 (6a and/or 6b). Components above the dotted line represent functionality implemented by the control code 13 when executed on the control server 12.

[000109] The client 7a implements a path selection system 50 which comprises a candidate pair generation component 52, a static priority generation component 53, a check list generation component 54, and a candidate modification component 56, a local selection component 57, and a connectivity check component 58 which includes a path probing component 59. The components 52, 53 and 56 constitute a priority generation component. [000110] The control code 13 implements control system 62, which comprises a remote selection component 64, an aggregation component 66 and a monitoring component 68.

[000111] The modification, check list generation and connectivity check components 56, 54, 58 constitute a path selection component for selecting a path for a media session.

[000112] A method for effecting a media session between an initiating endpoint 6a and a responding endpoint 6b will now be described with reference to figure 9, which is a flow chart for the method. Both endpoints 6a, 6b implement the ICE protocol as defined in MS-ICE2, with the addition of extra functionality described herein.

[000113] At S2 the client on the initiating endpoint 7a (initiating client)

communicates with the first TURN server 14a to discover its candidates (local candidates) i.e. any host, server reflexive and relayed candidates which it might be able to use for the media session. The initiating client then transmits these to the responding endpoint 6b in a session invite message. In response (S4), the client 7b on the responding endpoint 6b (responding client) gathers it candidates (remote candidates) by communicating with the second TURN server 14b which it returns to the initiating endpoint.

[000114] At S6, the candidate pair generation component 52 receives both the local candidates and the remote candidates as discover by the initiating and responding endpoint respectively, from which it generates and outputs a set of candidate pairs. The candidate pair generation component 53 receives the generated set of candidate pairs as well as ICE static priorities assigned to the local and remote candidates, and generates based on the three inputs static priorities for the candidate pairs. Both endpoints may perform the same candidate pair/priority adjustment processes in parallel, or one endpoint may perform these and communicate the results to the other.

[000115] Each of the candidate pairs potentially corresponds to an available path through the network which might be used by the endpoints for the media session if that candidate pair turns out to be valid.

[000116] S2-S6 are in accordance with the normal ICE procedures outlined above.

[000117] At S8, one or both of the endpoints 6a, 6b sends endpoint information pertaining to at least one of the endpoints to the control server 12 for comparison with information held at the control server 12. The endpoint information comprises path information which identifies or otherwise convey information about the potentially available paths e.g. information about ISP(s) that data would be routed through if it were transmitted along that path, information that identifies or otherwise conveys information about any private network(s) 5a/5b through which data would be routed along that path, information identifying or otherwise pertaining to any media relay server(s) 14a/ 14b included along that path etc.

[000118] At S10, the endpoint information is received by the selection component 64 which compares the received information to global network information 70 held in memory 30 at the telemetry server 12. The selection component 64 then uses the results of this comparison to influence the manner in which the endpoint(s) 6a, 6b select a path through the network for the media session to ensure that they select a path of suitably high quality even if that path is not favoured by the ICE static priority scheme and has been assigned a low static priority (see below).

[000119] The global network information comprises network topology/deployment information and call quality telemetry information collected from various entities (nodes) in the network 2, some of which is likely relevant to the entities involved in the media session (i.e. caller/callee endpoint 6a, 6b and relay servers).

[000120] The global network information 70 comprises current and historical network information 70, 70b which are contributions from the aggregation and monitoring components 66, 68 respectively. The contributions 70a, 70b are updated over time so as to provide a rich source of information about the network 2, including information about the quality of the paths that are potentially available to the initiating and responding endpoints 6a, 6b, that the selection component 64 can use to influence the path selection.

[000121] The aggregation component receives and aggregates information from network nodes, such as other endpoints e.g. 6'a, 6'b over time to provide the historical network information 70a. The historical information 70a comprises telemetry information relating to previously established media sessions. Endpoints (e.g. 6'a, 6'b) gather telemetry information during established media sessions, for example by performing measurements of round trip time (RTT), jitter, packet loss etc. This gathered telemetry can then be leveraged to select a better media path for subsequent media sessions, including the session that the endpoints 6a, 6b are currently attempting to establish.

[000122] The selection component 64 can then compare the endpoint information received from the endpoints 6a, 6b and, if the telemetry information indicates, say, that historically other endpoints have previously experienced poor quality along one of the paths potentially available to the endpoints 6a, 6b, or along some other path that overlaps (i.e. coincides at least in part with) that path e.g. because those paths, say, have at least one media server, private network/NAT, and/or ISP etc. in common (but might otherwise be different), the selection component can then influence the selection to bias it away from that potentially available path i.e. to make it less likely that the endpoints 6a, 6b will select that path for their media session. The paths do not have to overlap entirely, and the selection component can perform a statistical analysis extrapolate information about a given path from historical information about multiple paths that overlap to some extent with that path.

[000123] For example, if a given path potentially available to the endpoints 6a, 6b includes a first and a second media relay server, and there is historical information available for a first path which includes the first relay but not the second and there is also historical information available for a second path which includes the second relay, the selection component 64 can extrapolate information about that given path from both sets of information. For instance, if both the first and second paths are historically of high quality, then it is reasonable to assume that the given path might also be of high quality, subject to other network information to the contrary. Alternatively, if, say, the second path was historically of low quality that might indicate that the given path is also of low quality though this assumption is something of a leap. However, if historical information revealed that numerous paths - all of which include the second relay but are otherwise different - are all historically of low quality, it can be deduced with a reasonably high level of statistical certainty that the second relay is problematic and that the given path is likely to be of low quality due to the presence of the second relay.

[000124] The monitoring component 68 receives network information from network nodes that have current visibility of parts of the network 2, such as media relay servers 14 that have current visibility of their own operation. For example, media relay servers 14 can convey to the monitoring component 68 whether or not they are currently performing correctly, how well they are performing e.g. as conveyed in terms of a performance metric that indicates, say, the speed at which they are currently able to convey packets or the likelihood of them losing a packet, what resources they currently have available etc. Based on this received information, the monitoring component 68 updates the current network information 70b to reflect the current state of the network 2, which can change the manner in which the selection component 64 operates. For example, when one of the first and second media relay servers is running out of resources (hence liable to introduce excessive packet delay, loss etc.) and the current network information 70b is updated to reflect this, and the selection component can then influence the path selection to prevent a path which uses that media relay form being selected as a result.

[000125] The global network information 70 thus comprises contributions from a wide variety of nodes in the network 2, including user devices 6, media relays 14 etc. which have current visibility of parts of the network 2 and/or which have had visibility of parts of the network 2, including parts which form part of the paths potentially available to the endpoints 6a, 6b.

[000126] The global network information 70 may also comprise administrator configured path information. This will typically be done for deployments with MPLS links or where information about ISP Peering or detailed topology information is known.

[000127] The administrator path information may also comprise information about routing decisions that are made within the internet 2 (which are invisible to ICE as it currently stands), which can be used to bias path selection away from (resp. towards) paths that are known to involve inefficient or otherwise undesirable (resp. efficient or otherwise desirable) routing decisions that would be detrimental (resp. beneficial) to path quality. Herein biasing a selection towards (resp. away) from a path means influencing a selection to increase (resp. decrease) the probability that that path is selected.

[000128] For instance, the administrator path information may comprise information about MPLS links, which can be used to bias path selection towards paths that include MPLS links (as these are likely to be of high quality), and/or information about ISP peering agreements, which can be used to bias the selection away from paths for which unfavourable peering agreements are known to be in place.

[000129] At S12, the selection component 64 generates first selection data for influencing the path selection, which it transmits to at least one of the endpoints 6a, 6b.

[000130] At S14, the check list generation component generates a "check list". The check list is an ordered list of candidate pairs which determines the order in which connectivity checks are performed (see below).

[000131] In accordance with the normal ICE procedures, the ordering of the checklist is based only on the candidate pair static priorities so that the candidate pairs are ordered in the order of their static priorities.

[000132] In contrast, here, the modification component 56 controls the ordering of the check list based on the selection data received from the selection component 64 and also based on local network information 20 held at the user device making the selection. The local selection component 57 generates second selection data based on the local network information which it supplies to the modification component 56 for influencing the selection in a similar manner to the first selection data. This local network information comprises local telemetry information gathered on the client for previous media sessions in which that client has participated. The local telemetry information is gathered in a similar manner to that held at the server 12 (see above), but reflects the client's own historical experiences and is gathered by the client monitoring path quality (e.g. RTT, jitter, packet loss etc.) during previously established media sessions in which it has itself participated. The local network information 60 may also comprise administrator and/or user configured path information similar to that held at the server 12, and the above description of the remote administrator configured information applies equally to its local counterpart. Again, this will typically be done for deployments with MPLS links or where information about ISP Peering or detailed topology information is known.

[000133] An input of the modification component 56 receives the set of candidate pairs from the candidate pair generation component 52 and, based on the selection data from the server 12 and the local network information, removes any candidate pairs indicated to be of unacceptably low quality by the selection data and/or local network information. In some cases, removed candidate pairs may have high or even the highest static priorities but are removed nonetheless because they are of unacceptably low quality.

[000134] An input of the modification component 56 also receives (and thus constitutes an access component having has access to) the candidate pair static priorities and, based on the selection data from the server 12 and the local network information, assigns new priorities for the remaining candidate pairs which may be different from their static priorities. For instance, the modification component 54 may assign a new priority to a candidate pair corresponding to a low (resp. high) quality path that is lower (resp.

higher) that that path's static priority as assigned in accordance with the ICE protocol. For example, if gathered telemetry (local and/or at the server 12) showed a historical tendency towards poor media quality for a specific path, that path could be prioritized lower for subsequent media sessions.

[000135] In some embodiments, only one of candidate removal and generating new priorities may be performed. [000136] The (remaining) pairs are supplied to the check list generation component 54 with their new priorities, and the check list is generated from these. The generated check list contains only the remaining candidate pairs and moreover is ordered based on the new priorities (not the static priorities). Hence, paths of unacceptably low quality are not present in the check list and, moreover, higher (resp. lower) quality paths may be shifted towards the top (resp. bottom) of the list even if they have lower (resp. higher) static priorities based on their higher (resp. lower) new priorities.

[000137] Note that the generation of selection data may involve a degree of manual oversight or direction. For example, a human operator may observe a drop in quality for certain types of paths e.g. through observation of network data e.g. the current status of nodes (e.g. relays) in the network and/or by manual observation of historical media session quality metrics, and manually configure the control system 62 to divert media sessions away from such paths which is then effected by the configured system 62 generating appropriate selection data (thus the dependence of the selection data generation on the network data may be at least in part introduced by way of a human intermediary). To this end, the control system 62 may have a user interface by which the system 62 can be manually configured.

[000138] At SI 6, the clients 7a, 7b perform connectivity checks. Connectivity checks are performed for individual candidate pairs in the check list in the order in which they appear in the check list, starting with the pair at the top of the list (i.e. in order of new priority). Thus, pairs with the highest new priorities (but not necessarily highest static priorities) are checked first. The connectivity checks continue until a stopping criterial is met e.g. until a certain number (one or more) of candidate pairs is revealed to be valid and/or after a predetermined amount of time has elapsed. For so-called "aggressive nomination", connectivity checks end when the first valid candidate is found; "regular nomination" however allows connectivity checks to continue to attempt to find more than one valid candidate pair (if desired). At the end of the connectivity checks, a list of the one or more candidates revealed to be valid is generated (valid list).

[000139] As indicated, some (possibly many) of the candidate pairs may fail the connectivity checks e.g. a candidate pair which includes a host candidate which is a private transport address is likely to fail for reasons discussed.

[000140] At SI 8, the media session is established using a candidate pair from the valid list (which may or may not be the only candidate pair found to be valid). Where only one valid candidate pair is found in the connectivity checks, that candidate is used to establish the media session; if there are multiple candidate pairs revealed, then one is selected and used to establish the media session. For example, the highest priority candidate pair in the valid set may be selected for the media session.

[000141] As will be apparent, removing candidates and/or performing connectivity checks based on the new (rather than static) priorities can result in path having a lower static priority but of higher quality being selected for the media session in favour of a path having a higher static priority but of lower quality.

[000142] During the connectivity checks of SI 6, the endpoints can find several potential paths for media flow. As part of connectivity checks in addition to establishing a media path the endpoints also probe the potential paths for media quality. The probing could be as simple as determine network RTT, packet loss, jitter etc. on the different paths for several seconds, or more complex quality measurements could be performed. The controlling endpoint can then select the best path for media quality based on the quality of the different paths as indicated by the probing instead of relying on static priorities defined by the ICE protocol.

[000143] If, during the established media session, the quality of the path currently being used for the media session changes - for example as detected by the monitoring component 66, or by the endpoints themselves e.g. by detecting that latency, jitter, and/or packet loss etc. has increased and/or by performing additional path probing whilst the media session is ongoing - then a different path can be selected from the previously generated valid list (if there is more than one), or a new valid list generated by restarting connectivity checks again, and the media session continued using that path instead.

[000144] It should be noted that, herein, an "available" path means a valid path which could actually be used for a media session (e.g. an invalid candidate pair does not represent an "available" path).

[000145] Whilst in the above, conventional ICE candidate pair priorities are calculated in accordance with equations 1 and 2, and then modified based on selection data to generate new priorities, alternatively the individual address priorities (computes as per equation 1) could be modified before computing the candidate pairs (as per equation 2, but applied to the modified address priorities), or similar priorities may be computed in other ways e.g. by effectively including modification terms in one or both of equations 1 or 2 which depend on the selection data. [000146] Whilst the above has been described in the context of the ICE static priority scheme, the subject matter is not limited to this. In general, any priority scheme which favours a path along which data traverses only lower-layers of the network in transit of that path over another path along which data traverses higher-layers of the network in transit of that other path is considered a static priority scheme which prioritizes more direct paths over less direct paths. Moreover, whilst the above presents a type metric in the form of an ICE type preference, other type metrics not in accordance with the ICE protocol are also envisaged.

[000147] Note that references to "higher" and "lower" priorities do not necessarily refer to any particular numerical (or any other) representation of these priorities. Rather, a "higher priority" of a priority scheme means that assigned to a path which is favoured by that scheme as compared with another path assigned a "lower priority" irrespective of the manner in which those priorities are represented (any desired representation could be used provided it conveys the necessary information e.g. as a simple example, lower numerical values could be used to represent higher priorities).

[000148] The local and remote selection components 57, 64 described above constitute a selection component which generates selection data (that selection data comprising the first and second selection data). Whilst in the above the first selection data is generated by a selection component 64 at a remote server 12 (which holds the global network information 70 on which the selection data is based), in other embodiments the selection data may be generated locally i.e. the selection component 64 may be implemented by a user device instead. For instance, a user device may store (part of) the global network information 70 in local storage and access it in local storage, or it may access it remotely via the network if it is stored at the server 12, and the user device may generate the selection data from the locally/remotely accessed global network information 70 so that the selection data is received locally.

[000149] Note herein that a "private" network refers to any network that is behind a NAT. Whilst this includes networks such as home or business networks (not shown), it also includes pseudo-public networks operated by e.g. an Internet Service Provider (ISP) with a potentially large number of users (the latter being more common in some countries than in others).

[000150] Whilst the above is described with reference to the Internet protocol suite, the relevant teachings presented herein also apply to networks with different layered architectures. Further, whilst the above is described in relation to TCP/UDP and IP, it will be appreciated that the description applies to other types of transport layer and/or network layer protocols which can be used to generate different types of network layer and/or transport layer packets.

[000151] Generally, any of the functions described herein can be implemented using software, firmware, hardware (e.g., fixed logic circuitry), or a combination of these implementations. The terms "module," "functionality," "component" and "logic" as used herein generally represent software, firmware, hardware, or a combination thereof. In the case of a software implementation, the module, functionality, or logic represents program code that performs specified tasks when executed on a processor (e.g. CPU or CPUs). The program code can be stored in one or more computer readable memory devices. The features of the techniques described below are platform-independent, meaning that the techniques may be implemented on a variety of commercial computing platforms having a variety of processors.

[000152] For example, the user devices (user terminals) may also include an entity (e.g. software) that causes hardware of the user terminals to perform operations, e.g., processors functional blocks, and so on. For example, the user terminals may include a computer-readable medium that may be configured to maintain instructions that cause the user terminals, and more particularly the operating system and associated hardware of the user terminals to perform operations. Thus, the instructions function to configure the operating system and associated hardware to perform the operations and in this way result in transformation of the operating system and associated hardware to perform functions. The instructions may be provided by the computer-readable medium to the user terminals through a variety of different configurations.

[000153] One such configuration of a computer-readable medium is signal bearing medium and thus is configured to transmit the instructions (e.g. as a carrier wave) to the computing device, such as via a network. The computer-readable medium may also be configured as a computer-readable storage medium and thus is not a signal bearing medium. Examples of a computer-readable storage medium include a random-access memory (RAM), read-only memory (ROM), an optical disc, flash memory, hard disk memory, and other memory devices that may us magnetic, optical, and other techniques to store instructions and other data. [000154] A first aspect of the subject matter is directed to a method for effecting a media session between an initiating endpoint and a responding endpoint connected via a communication network which includes network nodes, there being a plurality of available paths through the network via which the media session could be established, wherein the endpoints have access to type metrics associated with the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session, the method comprising: accessing network information indicative of the quality of the available paths, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the initiating and receiving endpoints which have current and/or have had past visibility of at least parts of the available paths; generating selection data based on the network information, the selection data for influencing said selection; and transmitting the selection data to at least one of the endpoints so as to cause the endpoints to select for the media session a higher quality but less direct available path in favour of a more direct but lower quality available path.

[000155] In embodiments, the network information may comprise telemetry gathered from previously established media sessions, the telemetry comprising contributions from endpoints other than the initiating and receiving endpoints. Part of the telemetry may have been gathered from a media session that was previously established via a path which overlaps one of the available paths, and the selection data generated based on the part of the telemetry. A first part of the telemetry may have been gathered from a first media session previously established via a first path which overlaps part of one of the available paths, and a second part of the telemetry may have been gathered from a second media session previously established via a second path which overlaps a different part of that available path, and the selection data may be generated based on both the first and second parts of the telemetry.

[000156] The network may be an internet in which data is routed between individual networks of the internet, and the network information may comprise topology information which conveys, for at least one of the available paths, the nature of the routing decisions that would be made were data to be transmitted along that path. The internet may include MPLS links, and the topology information may identify that available path as involving an MPLS link, the selection data for biasing said selection towards that available path. Data may be routed between the individual networks in accordance with ISP peering agreements, and the topology information may pertain to an ISP peering agreement that is determinative of the nature of the routing decisions that would be made were data to be transmitted along that available path. The network information may comprise topology information that has been manually configured.

[000157] The network information may pertain to a current state of at least one network node that forms part of at least one of the available paths.

[000158] The network information may comprise a measure of current resource availability for the at least one network node; and/or a performance metric indicative of the current performance of the at least one network node; and/or an indicator indicating whether or not the at least one network node is currently functioning correctly.

[000159] The type metrics may be assigned to network addresses associated with the available paths in accordance with the ICE protocol.

[000160] The higher quality available path selected for the media session may include a media relay server with the lower quality available path not including any media relay servers. The media relay server may be a TURN server with the lower quality path not including any TURN servers.

[000161] The higher quality available path selected for the media session may include a network address translator with the lower quality available path not including any network address translators.

[000162] A second aspect is directed to a computer program product comprising code stored on a computer-readable storage medium configured when executed to implement a method for effecting a media session between an initiating endpoint and a responding endpoint connected via a communication network which includes network nodes, there being a plurality of available paths through the network via which the media session could be established, the method comprising: accessing type metrics associated with the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session; receiving selection data for influencing said selection, the selection data generated based on network information indicative of the quality of the available paths, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the initiating and receiving endpoints which have current and/or have had past visibility of at least parts of the available paths; based on the selection data, selecting for the media session a higher quality but less direct available path in favour of a lower quality but more direct available path, wherein the media session is established via the selected path.

[000163] The method may further comprise: detecting, during the media session, a reduction in the quality of the selected path; and selecting a new available path in response, the media session continued via the newly selected path.

[000164] The selection data may be generated further based on local telemetry information held at at least one of the initiating and responding endpoints, the local telemetry information gathered for at least one previous media session in which that endpoint has previously participated.

[000165] The method may comprise assigning priorities to the available paths based on the type metrics and the selection data, wherein the higher quality available path has a higher priority than the lower quality available path and is selected on that basis.

[000166] The method may comprise assigning priorities to the available paths based at least on the type metrics and generating a set of available paths, wherein the step of selecting is restricted to selection from that set, and the lower quality available path is removed from that set prior to the step of selecting so as to cause the higher quality available path to be selected instead.

[000167] A third aspect of the subject matter is directed to a user device for effecting a media session between the user device and another endpoint via a communication network, there being a plurality of available paths through the network via which the media session could be established, the user device comprising: an access component configured to access type metrics assigned to the available paths which convey the directness of the available paths, the type metrics for making a selection of an available path for the media session; an input configured to receive selection data for influencing said selection, the selection data generated based on network information indicative of the quality of the available paths, the network information collected from a plurality of network nodes and comprising contributions from network nodes other than the user device and the other endpoint which have current and/or have had past visibility of at least parts of the available paths; a path selection component configured, based on the selection data, to select for the media session a higher quality available but less direct path in favour of a more direct but lower quality available path, wherein the media session is established via the selected path. [000168] A fourth aspect is directed to a computer-implemented method for effecting a media session between an initiating endpoint and a responding endpoint via a

communication network, the method comprising implementing at a computer of at least one of the initiating endpoint and responding endpoint the following steps: generating at the endpoint a set of candidate pairs, each comprising a respective network address available to the initiating endpoint and a respective network address available to the responding endpoint by exchanging network addresses between the initiating endpoint and the responding endpoint, the media session established using a candidate pair of the set determined to be valid by applying the following steps: receiving at the endpoint selection data pertaining to at least one of the network addresses and indicative of the quality of a path through the network that would be traversed were that network address to be used for the media session; receiving a respective type metric associated with each network address and indicative of the directness of a path through the network that would be traversed were that network address to be used for the media session; and the endpoints performing connectivity checks for at least one candidate pair of the set to determine whether or not the candidate pair is valid, wherein the at least one candidate pair is selected in

dependence on the type metrics and the selection data.

[000169] A fifth aspect is directed to a computer for effecting a media session between an initiating endpoint and a responding endpoint via a communication network, the computer embodied at one of the initiating endpoint and responding endpoint, the computer comprising: a candidate pair generation component configured to generate a set of candidate pairs, each comprising a respective network address available to the initiating endpoint and a respective network address available to the responding endpoint by exchanging network addresses between the initiating endpoint and the responding endpoint, the media session established using a candidate pair of the set determined to be valid by applying the following steps: i) receiving at the endpoint selection data pertaining to at least one of the network addresses and indicative of the quality of a path through the network that would be traversed were that network address to be used for the media session, ii) receiving a respective type metric associated with each network address and indicative of the directness of a path through the network that would be traversed were that network address to be used for the media session, and iii) the endpoints performing connectivity checks for at least one candidate pair of the set to determine whether or not the candidate pair is valid, wherein the at least one candidate pair is selected in

dependence on the type metrics and the selection data.

[000170] At least part of the selection data may be received via the communication network and/or at least part of the selection data may be generated based on network information held locally at the endpoint.

[000171] A sixth aspect is directed to a computer program product for effecting a media session between an initiating endpoint and a responding endpoint via a

communication network, the computer program product comprising code stored on a computer readable storage medium and configured when executed on a computer of one of the initiating endpoint and responding endpoint to cause the following steps to be performed: generating at the endpoint a set of candidate pairs, each comprising a respective network address available to the initiating endpoint and a respective network address available to the responding endpoint by exchanging network addresses between the initiating endpoint and the responding endpoint, the media session established using a candidate pair of the set determined to be valid by applying the following steps: receiving at the endpoint selection data pertaining to at least one of the network addresses and indicative of the quality of a path through the network that would be traversed were that network address to be used for the media session; receiving a respective type metric associated with each network address and indicative of the directness of a path through the network that would be traversed were that network address to be used for the media session; and the endpoints performing connectivity checks for at least one candidate pair of the set to determine whether or not the candidate pair is valid, wherein the at least one candidate pair is selected in dependence on the type metrics and the selection data.

[000172] In embodiments, the type metrics are associated with the network addresses in accordance with the ICE protocol.

[000173] A respective first pair priority may be assigned to each of the candidate pairs in dependence on the type metrics and the selection data, the at least one candidate pair selected in favour of another candidate pair in the set having a lower first pair priority than the at least one candidate pair, the at least one candidate pair selected on that basis. A respective second pair priority may be assigned to each of the candidate pairs in dependence on the type metrics, wherein the second pair priorities are independent of the selection data, the first pair priorities assigned by modifying the second pair priorities in dependence on the selection data, the at least one candidate pair having a lower second pair priority but higher first pair priority than the other candidate pair. The second pair priorities may be assigned in accordance with the ICE protocol.

[000174] A candidate pair may be removed from the set in dependence on the selection data, wherein no connectivity check is performed for the removed candidate pair, the at least one candidate pair selected in dependence on the type metrics and in place of the removed candidate pair.

[000175] The media session may be established to establish a real-time

communication event between the initiating endpoint and the responding endpoint. The real-time communication event may be a voice and/or video call.

[000176] Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.