Communication method and communication apparatus
In a method, a first transmission server determines, based on first quality of service measurement information and/or first quality of service monitoring information, that the first transmission server is to be switched, and determines a second transmission server. Quality of service of serving by the second transmission server connected to the first transmission client via the first access network device and a second user plane function network element satisfies a quality of service requirement of an application layer application. In other words, the first transmission server may determine, based on QoS information obtained through measurement and UE-RAN QoS information, RAN-UPF QoS information, or UE-RAN-UPF QoS information obtained through 5GC monitoring, whether the first transmission server is to be switched. In addition, the first transmission server may determine the second transmission server that satisfies the QoS requirement, so that the first transmission server can be switched to the second transmission server.
1 . A communication method, comprising:
determining, by a first transmission server based on first quality of service measurement information and first quality of service monitoring information, that the first transmission server is to be switched, wherein:
the first quality of service measurement information comprises information about quality of service of serving by the first transmission server connected to a first transmission client via a first user plane function network element and a first access network device; and
the first quality of service monitoring information comprises information about quality of service of a path between the first transmission client and the first access network device and information about quality of service of a path between the first access network device and the first user plane function network element; and
determining, by the first transmission server, a second transmission server to switch to, wherein quality of service of serving by the second transmission server connected to the first transmission client via the first access network device and a second user plane function network element satisfies a quality of service requirement of an application.
2 . The method according to claim 1 , wherein determining, by the first transmission server based on the first quality of service measurement information and the first quality of service monitoring information, that the first transmission server is to be switched comprises:
when the first transmission server determines, based on the first quality of service measurement information, that the quality of service of serving by the first transmission server connected to the first transmission client via the first user plane function network element and the first access network device does not satisfy the quality of service requirement of the application, or when the quality of service of the path between the first transmission client and the first access network device satisfies a quality of service requirement of a first path, determining, by the first transmission server, that the first transmission server is to be switched, wherein
the quality of service requirement of the first path is determined by the first transmission server or a core network device.
3 . The method according to claim 1 , further comprising:
receiving, by the first transmission server, information about an available target transmission server from a first application layer server; and
obtaining, by the first transmission server, information about quality of service of the available target transmission server.
4 . The method according to claim 3 , wherein obtaining, by the first transmission server, the information about the quality of service of the available target transmission server comprises:
obtaining, by the first transmission server, a first location of the first transmission client; and
sending, by the first transmission server, a second message to the available target transmission server, wherein the second message comprises the first location or the information about the available target transmission servers.
5 . The method according to claim 3 , wherein obtaining, by the first transmission server, the information about the quality of service of the available target transmission server comprises:
obtaining, by the first transmission server, a first location of the first transmission client; and
sending, by the first transmission server, a third message to a core network device, wherein the third message comprises the first location, the information about the available target transmission server, or a data network access identifier associated with the available target transmission servers.
6 . The method according to claim 5 , wherein:
information about quality of service of using the available target transmission server at the first location is obtained based on the third message; and
the available target transmission server comprises one or more transmission servers.
7 . The method according to claim 5 , wherein the core network device is a network data analytics function network element.
8 . The method according to claim 3 , wherein determining, by the first transmission server, the second transmission server to switch to comprises:
determining, by the first transmission server, the quality of service requirement of the application;
obtaining, by the first transmission server, information about quality of service of using the available target transmission server a first location of the first transmission client; and
determining, by the first transmission server based on the information about the quality of service of the available target transmission server, the second transmission server that satisfies the quality of service requirement, wherein the second transmission server is one of the available target transmission server.
9 . The method according to claim 1 , further comprising:
sending, by the first transmission server, a fourth message to a core network device, wherein the first quality of service monitoring information is obtained based on the fourth message; or
sending, by the first transmission server, a fourth message to a core network device when the quality of service of serving by the first transmission server connected to the first transmission client via the first user plane function network element and the first access network device does not satisfy the quality of service requirement of the application, wherein the first quality of service monitoring information is obtained based on the fourth message.
10 . A communication method, comprising:
obtaining, by a first transmission server, first quality of service measurement information and first quality of service monitoring information, wherein:
the first quality of service measurement information comprises information about quality of service of serving by the first transmission server connected to a first transmission client via a first user plane function network element and a first access network device; and
the first quality of service monitoring information comprises information about quality of service of a path between the first transmission client and the first access network device and information about quality of service of a path between the first access network device and the first user plane function network element;
determining, by the first transmission server based on the first quality of service measurement information and the first quality of service monitoring information, that deterioration of quality of service of a data flow is caused by abnormal load of the first transmission server or abnormality of a path between the first transmission server and the first user plane function network element; and
determining, by the first transmission server, a second transmission server to switch to, wherein quality of service of serving the first transmission client, by the second transmission server, satisfies a quality of service requirement of an application.
11 . The method according to claim 10 , wherein determining, by the first transmission server, the second transmission server to switch to comprises:
determining, by the first transmission server based on an N6 transmission status or load information of an available target transmission server, the second transmission server that satisfies the quality of service requirement of the application.
12 . The method according to claim 10 , further comprising:
receiving, by the first transmission server, information about an available target transmission server from a first application layer server, wherein the available target transmission server and the first transmission server access a same data network; and
sending, by the first transmission server, a first message to the available target transmission server, wherein the first message is used to obtain traffic information or load information of the available target transmission server; and
the available target transmission server comprises one or more transmission servers.
13 . The method according to claim 12 , wherein sending, by the first transmission server, the first message to the available target transmission server comprises:
sending, by the first transmission server, the first message to the available target transmission server when the quality of service of serving by the first transmission server connected to the first transmission client via the first user plane function network element and the first access network device does not satisfy the quality of service requirement of the application, and quality of service of a first transmission client, first access network device, and first user plane function network element path satisfies a quality of service requirement of a second path.
14 . The method according to claim 12 , wherein determining, by the first transmission server, the second transmission server to switch to comprises:
determining, by the first transmission server, the quality of service requirement of the application;
obtaining, by the first transmission server, the traffic information or the load information of the available target transmission server; and
determining, by the first transmission server based on the traffic information or the load information of the available target transmission server, the second transmission server that satisfies the quality of service requirement of the application, wherein the second transmission server is one of the available target transmission servers.
15 . A communication apparatus, comprising a processor and a memory, wherein the memory is configured to store instructions; and when the instructions are executed by the processor, the communication apparatus is enabled to perform the method according to claim 10 .
16 . A first transmission server, comprising:
at least one processor; and
at least one memory, wherein the at least one memory is configured to store instructions, and when the instructions are executed by the processor, the first transmission server is enabled to:
determine, based on first quality of service measurement information and first quality of service monitoring information, that the first transmission server is to be switched, wherein:
the first quality of service measurement information comprises information about quality of service of serving by the first transmission server connected to a first transmission client via a first user plane function network element and a first access network device; and
the first quality of service monitoring information comprises information about quality of service of a path between the first transmission client and the first access network device and information about quality of service of a path between the first access network device and the first user plane function network element; and
determine a second transmission server to switch to, wherein quality of service of serving by the second transmission server connected to the first transmission client via the first access network device and a second user plane function network element satisfies a quality of service requirement of an application.
17 . The first transmission server according to claim 16 , wherein the instructions to determine, based on the first quality of service measurement information and the first quality of service monitoring information, that the first transmission server is to be switched comprises further instructions to:
when determining, based on the first quality of service measurement information, that the quality of service of serving by the first transmission server connected to the first transmission client via the first user plane function network element and the first access network device does not satisfy the quality of service requirement of the application, or when the quality of service of the path between the first transmission client and the first access network device satisfies a quality of service requirement of a first path, determine that the first transmission server is to be switched, wherein the quality of service requirement of the first path is determined by the first transmission server or a core network device.
18 . The first transmission server according to claim 16 , wherein the instructions include further instructions to:
receive information about an available target transmission server from a first application layer server; and
obtain information about quality of service of the available target transmission server.
19 . The first transmission server according to claim 18 , wherein the instructions to obtain the information about the quality of service of the available target transmission server comprise instructions to:
obtain a first location of the first transmission client; and
send a second message to the available target transmission server, wherein the second message comprises the first location or the information about the available target transmission server.
20 . The first transmission server according to claim 18 , wherein the instructions to obtain the information about the quality of service of the available target transmission server comprise instructions to:
obtain a first location of the first transmission client; and
send a third message to a core network device, wherein the third message comprises the first location, the information about the available target transmission server, or a data network access identifier associated with the available target transmission server.