Information determining method and device
An information determining method and a related device. In the method, a first network element receives first information from a first terminal device, where the first information includes first indication information. The first network element determines, based on the first indication information, a first access network device connected to the first access network device, determines second information based on historical statistical information of a bandwidth between the first access network device and the first terminal device, and further sends the second information to a second network element, where the second information is useable for determining a first code rate, and the first code rate indicates a code rate of media data of first media received by the first terminal device. This improves accuracy and real-time performance of code rate adjustment of the media data, and further improve effectiveness of the code rate adjustment.
1 . An information determining method, comprising:
sending, by a first terminal device, first information to a first network element, wherein the first information includes first indication information, and the first indication information is usable for determining a first access network device connected to the first terminal device; and
receiving, by the first terminal device, second information from the first network element, wherein the second information is determined based on historical statistical information of a bandwidth between the first access network device and the first terminal device, the second information is usable for determining a first code rate, and the first code rate is determined based on the second information and at least one of the state information and the throughput information of the first terminal device, and indicates a code rate of media data of first media received by the first terminal device.
2 . The method according to claim 1 , wherein the sending the first indication information includes sending location information of the first terminal device and/or an identifier of the first access network device.
3 . The method according to claim 1 , wherein the sending the first information further includes sending first period indication information, and the first period indication information indicates a period within which the first terminal device receives the media data of the first media.
4 . The method according to claim 1 , wherein the sending the first information further includes sending one or more of the following information: a media identifier, an optional code rate, or state information of the first media, wherein the state information indicates a state of the media data of the first media buffered by the first terminal device.
5 . The method according to claim 1 , wherein the sending the first information further includes sending second indication information, the second indication information indicates a first user plane network element corresponding to the first terminal device, and the second information is determined based on the historical statistical information of the bandwidth between the first access network device and the first terminal device and historical statistical information of a bandwidth between the first access network device and the first user plane network element.
6 . The method according to claim 1 , wherein the determining the first code rate is based on the second information and one or both of the state information or throughput information of the first terminal device, and the state information indicates the state of the media data of the first media buffered by the first terminal device.
7 . An information determining method, comprising:
receiving, by a first network element, first information from a first terminal device, wherein the first information includes first indication information;
determining, by the first network element based on the first indication information, a first access network device connected to the first terminal device;
determining, by the first network element, second information based on historical statistical information of a bandwidth between the first access network device and the first terminal device, wherein the second information is usable for determining a first code rate, and the first code rate is determined based on the second information and at least one of the state information and the throughput information of the first terminal device, and indicates a code rate of media data of first media received by the first terminal device; and
sending, by the first network element, the second information to a second network element.
8 . The method according to claim 7 , wherein the sending the second information to the second network element includes sending the second information to the first terminal device and/or a media server.
9 . The method according to claim 7 , wherein the receiving the first information further includes receiving first period indication information, and the first period indication information indicates a period within which the first terminal device receives the media data of the first media.
10 . The method according to claim 7 , wherein the receiving the first information further includes receiving one or more of the following information: a media identifier, an optional code rate, or state information of the first media, wherein the state information indicates a state of the media data of the first media buffered by the first terminal device.
11 . The method according to claim 7 , wherein the receiving the first information further includes receiving second indication information, and the second indication information indicates a first user plane network element corresponding to the first terminal device; and
the determining, by the first network element, second information based on historical statistical information of a bandwidth between the first access network device and the first terminal device includes:
determining, by the first network element, the second information based on the historical statistical information of the bandwidth between the first access network device and the first terminal device and historical statistical information of a bandwidth between the first access network device and the first user plane network element.
12 . The method according to claim 7 , wherein the determining the second information includes determining a recommended code rate or information about a first bandwidth.
13 . The method according to claim 12 , wherein the determining, by the first network element, second information based on historical statistical information of a bandwidth between the first access network device and the first terminal device includes:
determining, by the first network element, the information about the first bandwidth between the first terminal device and the first access network device based on the historical statistical information of the bandwidth between the first access network device and the first terminal device; and
determining, by the first network element, the recommended code rate based on the information about the first bandwidth.
14 . The method according to claim 7 , wherein the method further comprises:
receiving, by the first network element, an identifier of a second terminal device, wherein there are one or more second terminal devices, and the second terminal device is a terminal device that receives media data of second media through the first access network device; and
the determining, by the first network element, second information based on historical statistical information of a bandwidth between the first access network device and the first terminal device includes:
determining, by the first network element, the second information based on the identifier of the second terminal device and the historical statistical information of the bandwidth between the first access network device and the first terminal device.
15 . A communication apparatus, comprising:
memory storing a computer program; and
a processor, coupled to the memory, the processing being configured to execute the computer program stored in the memory to perform operations of:
sending first information to a first network element, wherein the first information includes first indication information, and the first indication information is usable for determining a first access network device connected to the first terminal device; and
receiving second information from the first network element, wherein the second information is determined based on historical statistical information of a bandwidth between the first access network device and the first terminal device, the second information is usable for determining a first code rate, and the first code rate is determined based on the second information and at least one of the state information and the throughput information of the first terminal device, and indicates a code rate of media data of first media received by the first terminal device.
16 . A communication apparatus, comprising:
memory storing a computer program; and
a processor, coupled to the memory, the processor being configured to execute the computer program stored in the memory to perform operations of:
receiving first information from a first terminal device, wherein the first information includes first indication information;
determining, based on the first indication information, a first access network device connected to the first terminal device;
determining second information based on historical statistical information of a bandwidth between the first access network device and the first terminal device, wherein the second information is useable for determining a first code rate, and the first code rate is determined based on the second information and at least one of the state information and the throughput information of the first terminal device, and indicates a code rate of media data of first media received by the first terminal device; and
sending the second information to a second network element.