TECHNICAL FIELD

This disclosure relates to the field of network technologies, and in particular, to a network data processing method and apparatus.

BACKGROUND

A network data service is a service that integrates an Internet technology, a multimedia technology, a communications technology, and the like and that provides a plurality of types of network data services such as a digital television and a live video. For example, the network data service may be an interactive personality television (IPTV) service. The network data service may provide a plurality of channels, and provide different network data on different channels. A user may view the network data on the different channels by using a terminal.

The network data service relates to interaction between a plurality of devices such as a server, a gateway, a base station, and a terminal. For a plurality of terminals that need to obtain network data, the gateway establishes a communication resource between the gateway and the base station for each terminal, and delivers, to the base station by using different communication resources, network data required by different terminals. The base station also establishes an air interface resource between the base station and each terminal, and delivers network data to different terminals by using different air interface resources.

When the terminal needs to obtain network data on a specific channel, the terminal sends, to the server by using the base station and the gateway, a network data request that carries a target channel identifier. The server receives the network data request, delivers network data corresponding to the target channel identifier to the gateway. After receiving the network data, the gateway delivers the network data to the base station by using a communication resource corresponding to the terminal. The base station delivers the network data to the terminal by using an air interface resource between the base station and the terminal. In this case, the terminal receives the network data, and displays the network data for user viewing.

When a plurality of terminals request network data on a same channel, the gateway duplicates the network data to obtain a plurality of pieces of network data based on a quantity of terminals, and separately sends the network data to the base station by using communication resources corresponding to the terminals. After receiving the network data by using a communication resource corresponding to any terminal, the base station sends the network data to the terminal by using an air interface resource between the base station and the terminal, to respectively send the plurality of pieces of received network data to the plurality of terminals.

In a process of implementing this disclosure, a related technology has at least the following problems: When a plurality of terminals request network data on a same channel, the network data needs to be duplicated to obtain a plurality of pieces of network data, and the plurality of pieces of network data are separately delivered by using different communication resources and air interface resources. Consequently, a transmission resource waste is caused.

SUMMARY

To resolve a problem in a related technology, embodiments of this disclosure provide a network data processing method and apparatus. The technical solutions are as follows:

According to a first aspect, a network data processing method is provided, where the method is applied to a base station, and includes:

receiving a multicast group join request sent by a terminal, where the multicast group join request carries a target channel identifier, and the multicast group join request is used to request to add a terminal identifier of the terminal to a multicast group corresponding to the target channel identifier;

adding the terminal identifier to the multicast group corresponding to the target channel identifier, where the multicast group includes an identifier of a terminal that has requested network data corresponding to the target channel identifier; and

delivering the network data based on the multicast group and a group scheduling identifier corresponding to the multicast group by using an air interface resource corresponding to the multicast group, where a terminal in the multicast group is configured to decode the air interface resource based on the group scheduling identifier, to obtain the network data.

In a first possible implementation of the first aspect, the adding the terminal identifier to the multicast group corresponding to the target channel identifier includes:

obtaining first channel record information, where the first channel record information includes at least one record entry, and each record entry includes at least one or more of a channel identifier, a group scheduling identifier, and a multicast group;

determining, based on the first channel record information, the multicast group corresponding to the target channel identifier; and

adding the terminal identifier to the multicast group.

In a second possible implementation of the first aspect, before the delivering the network data based on the multicast group and a group scheduling identifier corresponding to the multicast group by using an air interface resource corresponding to the multicast group, the method further includes:

determining a communication resource identifier corresponding to the target channel identifier, where the communication resource identifier is used to determine a communication resource used by a gateway to deliver the network data to the base station; and

receiving, based on the communication resource identifier, the network data delivered by the gateway.

In a third possible implementation of the first aspect, after the obtaining first channel record information, the method further includes:

when the first channel record information does not include a group scheduling identifier corresponding to the target channel identifier, assigning the group scheduling identifier to the target channel identifier, or obtaining, from preset configuration information, the group scheduling identifier corresponding to the target channel identifier, or receiving the group scheduling identifier that is corresponding to the target channel identifier and that is sent by a gateway;

adding a first target record entry to the first channel record information, where the first target record entry includes one or more of the target channel identifier, the group scheduling identifier, and the terminal identifier; and

sending a network data request to the gateway, where the network data request carries the target channel identifier, and the network data request is used to request to obtain the network data corresponding to the target channel identifier and receive the network data sent by the gateway.

In a fourth possible implementation of the first aspect, the delivering the network data based on the multicast group and a group scheduling identifier corresponding to the multicast group by using an air interface resource corresponding to the multicast group includes:

determining worst channel quality information based on channel quality information of terminals indicated by terminal identifiers in the multicast group;

determining a data scheduling policy based on the worst channel quality information; and

delivering the network data based on the data scheduling policy and the group scheduling identifier by using the air interface resource.

In a fifth possible implementation of the first aspect, before the receiving a multicast group join request sent by a terminal, the method further includes:

sending the multicast group join request to a gateway, where the gateway is configured to return a multicast group join notification, and the multicast group join notification carries the target channel identifier; and

when the multicast group notification is received, obtaining the first channel record information.

In a sixth possible implementation of the first aspect, the method further includes:

receiving a multicast group leave request sent by the terminal, where the multicast group leave request carries the target channel identifier; and

deleting the terminal identifier from the multicast group corresponding to the target channel identifier; or

sending the multicast group leave request to a gateway, where the gateway is configured to return a multicast group removal notification, and the multicast group removal notification carries the target channel identifier; and when the multicast group removal notification is received, deleting the terminal identifier from the multicast group corresponding to the target channel identifier.

In a seventh possible implementation of the first aspect, the method further includes:

broadcasting group scheduling identifier information, or sending the group scheduling identifier information to any connected terminal by using dedicated signaling, where the terminal is configured to determine, based on the group scheduling identifier information, a group scheduling identifier corresponding to each channel identifier; or

sending the group scheduling identifier information to the terminal after the terminal identifier is added to the multicast group corresponding to the target channel identifier, where the terminal is configured to determine, based on the group scheduling identifier information, a group scheduling identifier corresponding to the target channel identifier, where

the group scheduling identifier information includes a correspondence between one or more channel identifiers and a group scheduling identifier, or includes a list of group scheduling identifiers arranged in a corresponding channel identifier sequence, or includes the group scheduling identifier corresponding to the target channel identifier.

According to a second aspect, a network data processing method is provided, where the method is applied to a terminal, and includes:

sending a multicast group join request to a base station, where the multicast group join request carries a target channel identifier, the multicast group join request is used to request to add a terminal identifier of the terminal to a multicast group corresponding to the target channel identifier, and the multicast group includes an identifier of a terminal that has requested network data corresponding to the target channel identifier;

determining a group scheduling identifier corresponding to the target channel identifier, where the base station is configured to deliver the network data based on the multicast group and a group scheduling identifier corresponding to the multicast group by using an air interface resource corresponding to the multicast group; and

decoding the air interface resource based on the group scheduling identifier, to obtain the network data.

In a first possible implementation of the second aspect, the determining a group scheduling identifier corresponding to the target channel identifier includes:

obtaining group scheduling identifier information sent by the base station, where the base station is configured to: broadcast the group scheduling identifier information, or send the group scheduling identifier information to the terminal by using dedicated signaling, or send the group scheduling identifier information to the terminal after the terminal identifier is added to the multicast group corresponding to the target channel identifier; and

when the group scheduling identifier information includes a correspondence between one or more channel identifiers and a group scheduling identifier, determining, based on the correspondence, the group scheduling identifier corresponding to the target channel identifier; or

when the group scheduling identifier information includes a list of group scheduling identifiers arranged in a corresponding channel identifier sequence, determining, based on a sequence of the target channel identifier, a group scheduling identifier that is in the group scheduling identifier list and that matches the sequence, to serve as the group scheduling identifier corresponding to the target channel identifier; or

when the group scheduling identifier information includes the group scheduling identifier corresponding to the target channel identifier, determining the group scheduling identifier included in the group scheduling identifier information.

According to a third aspect, a network data processing method is provided, where the method is applied to a gateway, and includes:

when network data delivered by a server is received, determining a target channel identifier corresponding to the network data;

determining a communication resource identifier corresponding to the target channel identifier, where a base station identifier corresponding to the target channel identifier is used to determine a base station that has requested the network data corresponding to the target channel identifier, and the communication resource identifier is used to determine a communication resource between the gateway and the base station; and

delivering the network data by using the communication resource, where the base station is configured to: determine the communication resource identifier based on the target channel identifier, receive the network data based on the communication resource identifier, and deliver the network data to a terminal that requests the network data.

In a first possible implementation of the third aspect, the determining a communication resource identifier corresponding to the target channel identifier includes:

obtaining second channel record information, where the second channel record information includes at least one record entry, and each record entry includes at least one or more of a channel identifier, a communication resource identifier, and a base station identifier; and

determining, based on the second channel record information, the communication resource identifier corresponding to the target channel identifier.

In a second possible implementation of the third aspect, the method further includes:

receiving a network data request sent by the base station, where the network data request carries the target channel identifier, and the network data request is used to request to obtain the network data corresponding to the target channel identifier;

assigning a communication resource identifier to the target channel identifier and the base station identifier, or obtaining, from preset configuration information, a communication resource identifier corresponding to the target channel identifier and the base station identifier;

adding a second target record entry to the second channel record information, where the second target record entry includes one or more of the target channel identifier, the communication resource identifier, and the base station identifier; and

sending a network data request to the server, where the network data request carries the target channel identifier, and the network data request is used to request to obtain the network data corresponding to the target channel identifier; and receiving the network data delivered by the server.

In a third possible implementation of the third aspect, the method further includes:

receiving a multicast group join request sent by the base station, where the multicast group join request is sent by the terminal to the base station, the multicast group join request carries the target channel identifier, and the multicast group join is used to request to add a terminal identifier of the terminal to a multicast group corresponding to the target channel identifier; and

sending a multicast group join notification to the base station, where the multicast group join notification carries the target channel identifier, where

the base station is configured to add the terminal identifier to the multicast group corresponding to the target channel identifier, and the base station is further configured to deliver the network data based on the multicast group and a group scheduling identifier corresponding to the multicast group by using an air interface resource corresponding to the multicast group, where a terminal in the multicast group is configured to decode the air interface resource based on the group scheduling identifier, to obtain the network data.

In a fourth possible implementation of the third aspect, the method further includes:

receiving a multicast group leave request sent by the base station, where the multicast group leave request is sent by the base station to the gateway, and the multicast group leave request carries the target channel identifier; and

sending a multicast group removal notification to the base station, where the base station is configured to delete the terminal identifier from the multicast group corresponding to the target channel identifier.

According to a fourth aspect, a network data processing apparatus is provided, where the apparatus is configured to perform the method provided in the first aspect.

According to a fifth aspect, a network data processing apparatus is provided, where the apparatus is configured to perform the method provided in the second aspect.

According to a sixth aspect, a network data processing apparatus is provided, where the apparatus is configured to perform the method provided in the third aspect.

Beneficial effects brought by the technical solutions provided in the embodiments of this disclosure are as follows:

Terminals that obtain network data on a same channel are grouped into a multicast group based on multicast group join requests of the terminals. The base station delivers the network data on the same channel to each terminal in the multicast group based on one air interface resource, and each terminal in the multicast group may obtain the network data based on a group scheduling identifier corresponding to the channel. In addition, for network data on any channel, the base station delivers the network data to the terminal only when the network data is network data requested by the terminal. Therefore, fewer air interface resources are occupied between the base station and the terminal.

Further, the gateway delivers the network data on the same channel to the base station based on one communication resource, and the base station may obtain the network data based on the communication resource. Therefore, fewer communication resources are occupied between the gateway and the base station.

Further, the base station selects the worst channel quality information from the channel quality information corresponding to the terminals in the multicast group, determines the data scheduling policy based on the worst channel quality information, and delivers the network data based on the data scheduling policy. Therefore, it can be ensured that each terminal in the multicast group can receive the network data, so as to increase a data transmission speed.

