CN110392119B - Data transmission method and base station - Google Patents
Data transmission method and base station Download PDFInfo
- Publication number
- CN110392119B CN110392119B CN201910754240.3A CN201910754240A CN110392119B CN 110392119 B CN110392119 B CN 110392119B CN 201910754240 A CN201910754240 A CN 201910754240A CN 110392119 B CN110392119 B CN 110392119B
- Authority
- CN
- China
- Prior art keywords
- data
- mobile terminal
- base station
- target data
- identifier
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 124
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000004044 response Effects 0.000 claims abstract description 20
- 238000004891 communication Methods 0.000 claims description 9
- 239000002699 waste material Substances 0.000 abstract description 7
- 230000006870 function Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000003993 interaction Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 206010048669 Terminal state Diseases 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/20—Control channels or signalling for resource management
- H04W72/21—Control channels or signalling for resource management in the uplink direction of a wireless link, i.e. towards the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/20—Control channels or signalling for resource management
- H04W72/23—Control channels or signalling for resource management in the downlink direction of a wireless link, i.e. towards a terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/1263—Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows
- H04W72/1268—Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows of uplink data flows
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/12—Wireless traffic scheduling
- H04W72/1263—Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows
- H04W72/1273—Mapping of traffic onto schedule, e.g. scheduled allocation or multiplexing of flows of downlink data flows
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a data transmission method and a base station, wherein the data transmission method comprises the following steps: a base station receives a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier; determining whether the target data identification is in a data transmission record of the base station in response to the first data request; if the target data identifier is in the data transmission record of the base station, determining a second mobile terminal from the data transmission record according to the target data identifier; acquiring data corresponding to the target data identifier from the second mobile terminal; and sending the acquired data to the first mobile terminal. The method ensures that the first mobile terminal does not request data from the network server any more, reduces the pressure of the network server, and the network server does not need to send the same data to different terminal equipment any more, reduces the waste of channel resources between the network server and the base station, thereby ensuring that the network server can meet the data requirements of users at the time of flow peak.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data transmission method and a base station.
Background
With the popularization of smart phones and the reduction of traffic charges, people are more and more willing to use applications such as social platforms and video playing platforms which consume large amounts of traffic in a mobile communication network. This situation puts a great strain on the network servers of the providers.
During the research process of the prior art, the inventor finds that most of the traffic consumption of the whole network is concentrated on several popular social platforms and video platforms, and the traffic consumption is mainly based on the popular contents of the several popular platforms. From the perspective of data transmission, the same data is sent to different terminal devices at high frequency, which may cause waste of channel resources between a network server and a base station; therefore, when the flow is in a peak, the network server can not meet the data requirements of a large number of users, and the user experience can be seriously affected due to the fact that video is blocked, pictures can not be loaded and the like. Therefore, the data transmission of the network server to the terminal equipment at present has the problems of channel resource waste and incapability of meeting the data requirements of users at the time of traffic peak.
Disclosure of Invention
The invention provides a data transmission method and a base station, which are used for solving the problems that resources are wasted in data transmission of a network server to terminal equipment, and the data requirements of users cannot be met in a flow peak.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a data transmission method, which is applied to a base station, and the method includes:
receiving a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier;
the data transmission record responds to the first data request, and determines whether the target data identification is in the data transmission record of the base station;
if the target data identifier is in the data transmission record of the base station, determining a second mobile terminal from the data transmission record according to the target data identifier;
acquiring target data corresponding to the target data identification from the second mobile terminal;
and if the target data is successfully acquired from the second mobile terminal, transmitting the target data to the first mobile terminal.
In a second aspect, an embodiment of the present invention provides a base station, where the base station includes:
the data request receiving module is used for receiving a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier;
a data record determining module, configured to determine, in response to the first data request, whether the target data identifier is in a data transmission record of the base station;
a second mobile terminal determining module, configured to determine, if the target data identifier is in a data transmission record of the base station, a second mobile terminal from the data transmission record according to the target data identifier;
the target data acquisition module is used for acquiring target data corresponding to the target data identification from the second mobile terminal;
and the first sending module is used for sending the target data to the first mobile terminal if the target data is successfully acquired from the second mobile terminal.
In the embodiment of the invention, a base station receives a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier; determining whether a target data identification is in a base station data transmission record in response to the first data request; if the target data identifier is in a base station data transmission record, determining a second mobile terminal from the data transmission record according to the target data identifier; acquiring data corresponding to the target data identification from a second mobile terminal; and if the data acquisition from the second mobile terminal is successful, transmitting the acquired data to the first mobile terminal. In the method, the base station inquires the data transmission record according to the first data request carrying the target data identifier, locates the second mobile terminal which has requested the data, and then acquires the data from the second mobile terminal and sends the data to the first mobile terminal, so that the first mobile terminal does not request the data from the network server any more, the pressure of the network server is reduced, the network server does not need to send the same data to different terminal equipment any more, the waste of channel resources between the network server and the base station is reduced, and the network server can meet the data requirements of users at the time of a traffic peak.
Drawings
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a multi-port interaction diagram of a data transmission method according to an embodiment of the present invention;
fig. 3 is a second flowchart of a data transmission method according to an embodiment of the present invention;
fig. 4 is a block diagram of a base station according to an embodiment of the present invention;
fig. 5 is a second block diagram of a base station according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention, and as shown in fig. 1, the method may be applied to a base station, and the method may include:
in the embodiment of the invention, a first mobile terminal uses a social platform, a video playing platform and the like to carry out internet surfing behavior under a mobile communication network, and the first mobile terminal sends a data packet of a first data request to a base station by clicking a relevant link of a website platform in the internet surfing process, wherein the first data request comprises an identifier of target data requested by the first mobile terminal. And the base station receives the data packet of the first data request and analyzes the target data identifier from the data packet.
The data packet of the first data request sent by the first mobile terminal may include a data identifier of the requested data, specifically, if the first mobile terminal requests a data type such as a video, a picture, or a file, the data identifier may be an MD5(Message Digest Algorithm MD5, fifth version of Message Digest Algorithm) value of the data. MD5 digests a piece of information to generate a data fingerprint, and MD5 value refers to the data fingerprint calculated by MD5, so that data can be prevented from being tampered. Each request data packet comprises an MD5 value used for identifying data such as requested video, pictures or files of the data packet; if the first mobile terminal requests a web page, the data identifier may be an IP (Internet Protocol) address of the web page, and each data request includes an IP address for identifying the web page requested by the data request.
Generally, when a first mobile terminal sends a data request to a server of a network provider (i.e., a network server), the data request first passes through a base station to which the first mobile terminal is connected, and the base station sends the data request to the network server, and after receiving the data request, the network server transmits response information for the data request to the first mobile terminal through the base station.
In the embodiment of the present invention, after receiving a first data request sent by a first mobile terminal, a base station does not directly send the first data request to a server of a network provider, but first obtains a target data identifier from the first data request, and then queries whether the target data identifier is stored in a pre-generated data transmission record stored in a memory or an external storage. Wherein the data transmission record may be stored in the base station in the form of a data table or file.
And 103, if the target data identifier is in the data transmission record of the base station, determining a second mobile terminal from the data transmission record according to the target data identifier.
In the embodiment of the invention, in the process that each mobile terminal connected with the base station communicates with various network servers, the network servers issue data to the mobile terminals through the base station, and at the moment, the base station can record the data sequence number, the data identifier, the terminal identifier for initiating the data request, the stored time and the residual storage time of the data to obtain the data transmission record. The base station may store the above information in a database to obtain a data transmission record table.
Specifically, the data transmission record table of the base station may include the contents as in table 1 below:
TABLE 1
In table 1, each piece of data corresponds to a data serial number, a data identifier, a terminal identifier for acquiring the data, a saved time of the piece of data, and a remaining saved time. The base station may set the length of the storage time of each piece of data in the memory to be a, and delete the piece of data from the table when the storage time reaches a. The storage time length of the data is set, so that the memory pressure of the base station is favorably reduced, and the base station stores more latest data.
Specifically, the base station may compare the target data identifier of the data request with the data identifier in the data transmission record, and if the target data identifier of the data request is consistent with the data identifier of one record in the data transmission record, the recorded terminal identifier may be used as the identifier of the second mobile terminal.
Optionally, if the data transmission record includes a plurality of transmission records identified by the target data, selecting a transmission record closest to the current time, that is, a transmission record with the latest time, and determining the second mobile terminal according to the transmission record with the latest time.
Considering that the position of the second mobile terminal may move, the base station selects the second mobile terminal corresponding to the latest transmission record, and can ensure that the second mobile terminal is still within the coverage of the base station to the maximum extent, which is beneficial to smoothly obtaining the request data from the second mobile terminal.
Optionally, the base station is connected to a network server in communication, and the data transmission record is updated through the following steps a 1-a 2:
step A1: determining whether the data received from the network server is in a data transfer record.
When the network server sends the request response information to the mobile terminal, the request response information is sent to the mobile terminal through the base station, and the base station can inquire whether the data included in the request response information is in the data transmission record in the process, specifically, the base station judges whether the data is in the data transmission record according to the data identifier.
Step A2: and if the data received from the network server is not in the data transmission record, sending the data to a third mobile terminal requesting the data, and storing a data identifier corresponding to the data and an identifier of the third mobile terminal requesting the data into the data transmission record.
If the base station judges that the data is not in the data transmission record, the base station firstly forwards the data to a third mobile terminal requesting the data, and simultaneously, the base station forwards corresponding information of the data to a second mobile terminal: and the data identifier and the identifier of the third mobile terminal requesting the data are stored in the data transmission record, so that the third mobile terminal which has historically requested the data can be conveniently searched from the data transmission record when the mobile terminal requests the data next time, and the data can be called to the mobile terminal requesting the data.
Because the possibility that data which is too far away is requested again by other mobile terminals is low, the base station can set the storage time of the data in the data transmission record and delete the data which exceeds the storage time so as to reduce the memory pressure of the base station.
The base station updates the data transmission record by the method, can ensure that all data passing through the base station are checked, and records all data contents which are not stored in the data transmission record, thereby being convenient for other mobile terminals to use when requesting data again.
Optionally, after determining whether the data received from the network server is in the data transmission record, further comprising:
and if the data received from the network server is in the data transmission record, replacing the data with the same data identifier in the data transmission record according to the data identifier carried by the data.
Or,
and if the data received from the network server is in the data transmission record, storing the data according to the data identification carried by the data.
In the embodiment of the invention, if the received new data is judged to be in the data transmission record according to the data identifier, the information of the old data of the data identifier existing in the data transmission record is replaced by the information of the new data. Therefore, the data information in the data transmission record can be ensured to be in the latest state, so that the data transmission record is prevented from storing too much old information and occupying storage space.
Or, by adopting the reverse scheme, even if the received new data is judged to be in the data transmission record according to the data identification, the new data is stored. Therefore, when other mobile terminals request the data carrying the data identifier again, the base station can select the most appropriate mobile terminal to provide data return service according to the current position states or terminal states of a plurality of mobile terminals which have requested the data in the data storage record.
And 104, acquiring target data corresponding to the target data identification from the second mobile terminal.
In the embodiment of the present invention, since the second mobile terminal has historically acquired the data corresponding to the target data identifier, the base station may acquire the data from the second mobile terminal. Specifically, the base station sends a request for acquiring the identifier carrying the target data to the second mobile terminal, and the second mobile terminal needs to determine whether the target data can be sent to the base station according to its own function, will and condition. If the determination is positive, the base station can smoothly acquire the target data from the second mobile terminal; and if the target data cannot be acquired, the target data acquisition from the second terminal fails.
And 105, if the target data is successfully acquired from the second mobile terminal, sending the target data to the first mobile terminal.
In the embodiment of the invention, if the base station successfully acquires the target data from the second mobile terminal, the base station can transmit the target data to the first mobile terminal, so that the first mobile terminal acquires the target data from the base station, and the pressure increase of the network server caused by the transmission of the target data from the network server to the first mobile terminal is avoided. Because the communication base stations are distributed more densely and more in number in different geographic environments than the network server, the data congestion of the network server can be reduced by distributing the communication pressure of the network server to different base stations.
Fig. 2 is a multi-port interaction diagram of a data transmission method according to an embodiment of the present invention. As shown in fig. 2, a first mobile terminal, a base station, and a second mobile terminal perform multi-terminal interactive communication. Specifically, in step 201, the first mobile terminal sends a first data request carrying a target data identifier to the base station. Generally, when a first mobile terminal requests data from a network server, the data request first passes through a base station to which the first mobile terminal is connected. In step 202, the base station determines whether the target data identification is in a data transmission record of the base station. Here, the base station does not conventionally directly send the first data request of the first mobile terminal to the network server, but queries whether the target data identifier is in the data transmission record of the base station. In step 203, if the target data identifier is in the data transmission record of the base station, the second mobile terminal is determined according to the data transmission record. After the base station finds the target data identifier in the data transmission record, the base station can correspondingly find the second mobile terminal which has requested the target data. In step 204, the base station sends a request for obtaining the identifier carrying the target data to the second mobile terminal. Because the second mobile terminal has ever requested the target data, which may still be stored on the second mobile terminal, the base station may request the target data from the second mobile terminal. In step 205, the second mobile terminal needs to determine whether the target data corresponding to the target data identifier can be sent to the base station according to its own function, will and condition. The second mobile terminal determines whether the own device has a function of returning the target data to the base station, determines whether the user has a desire to return the target data, determines whether the target data is still stored in the own memory, and the like, and determines whether the target data can be sent to the base station according to the above situation. In step 206, if yes, the second mobile terminal transmits the target data to the base station. And after the second mobile terminal determines that the target data can be returned to the base station according to the function, the will and the conditions of the second mobile terminal, the second mobile terminal sends the target data to the base station. In step 207, the base station sends the target data to the first mobile terminal. And after receiving the target data returned by the second mobile terminal, the base station further sends the target data to the first mobile terminal.
In the interaction process, due to the participation of the base station, the first mobile terminal does not obtain the target data from the network server any more, but the base station obtains the target data from the second mobile terminal, and the base station sends the target data to the first mobile terminal, so that the network server does not need to send the same data to different terminal equipment any more, the pressure of the network server is reduced, and the waste of channel resources is reduced.
In summary, in the embodiment of the present invention, a base station receives a first data request of a first mobile terminal, where the first data request includes a target data identifier; determining whether a target data identification is in a base station data transmission record in response to the first data request; if the target data identifier is in a base station data transmission record, determining a second mobile terminal from the data transmission record according to the target data identifier; acquiring data corresponding to the target data identification from a second mobile terminal; and if the data acquisition from the second mobile terminal is successful, transmitting the acquired data to the first mobile terminal. In the method, the base station inquires the data transmission record according to the first data request carrying the target data identifier, locates the second mobile terminal which has requested the data, and then acquires the data from the second mobile terminal and sends the data to the first mobile terminal, so that the first mobile terminal does not request the data from the network server any more, the pressure of the network server is reduced, the network server does not need to send the same data to different terminal equipment any more, the waste of channel resources between the network server and the base station is reduced, and the network server can meet the data requirements of users at the time of a traffic peak.
Fig. 3 is a second flowchart of a data transmission method according to an embodiment of the present invention, and as shown in fig. 3, the method may include:
in the embodiment of the present invention, step 301 may refer to step 101, which is not described herein again.
In the embodiment of the present invention, step 302 may refer to step 102, which is not described herein again.
In the embodiment of the present invention, step 303 may refer to step 103, which is not described herein again.
In the embodiment of the present invention, since the second mobile terminal may have a location change, the second mobile terminal is within the coverage of the base station when historically requesting data identified by the target data, but when the first mobile terminal requests the data again, there is a possibility that the second mobile terminal has moved out of the coverage of the base station. If the second mobile terminal is not within the coverage area of the base station, the base station cannot communicate with the second mobile terminal. Therefore, the base station needs to determine whether the second mobile terminal is within the coverage of the base station.
Optionally, the step of determining whether the second mobile terminal is within the coverage of the base station comprises the following steps A3-a 4:
step A3, paging the second mobile terminal through a broadcast message.
Specifically, the base station may transmit the broadcast message in a continuous time slot transmission manner on the paging channel. The continuous time slot transmission mode is to continuously transmit in a plurality of time slots, and by continuously transmitting the broadcast messages in the plurality of time slots, the terminals monitoring different time slots can be ensured to receive the broadcast messages.
Step a4, if receiving the paging response information of the second mobile terminal, determining that the second mobile terminal is in the coverage area of the base station.
If the second mobile terminal is in the signal coverage range of the base station, the second mobile terminal can receive the broadcast message of the base station, and after receiving the broadcast message, the second mobile terminal sends paging response information to the base station. The base station may thereby determine that the second mobile terminal is within the signal coverage of the base station. On the contrary, if the second mobile terminal is not in the signal coverage of the base station, the second mobile terminal cannot receive the broadcast message of the base station and further cannot send response information to the base station, and the base station does not receive the paging response information after a certain time, so that the second mobile terminal is determined to be lost.
If the second mobile terminal is within the coverage of the base station, then step 305 is performed; if the second mobile terminal is not within the coverage of the base station, step 307 is executed next.
In the embodiment of the present invention, the base station sends a second data request to the second mobile terminal to request the second mobile terminal to send the target data, after receiving the second data request, the second mobile terminal determines whether its own hardware device or software system supports the function of returning data to the base station, if so, further determines whether the service of returning data this time is allowed, and if receiving an allowing instruction of the user for returning data this time, further determines whether the target data requested by the base station is stored in the memory.
If the target data is successfully acquired from the second mobile terminal, executing step 306; if the second mobile terminal returns failure information, step 307 is executed.
In the embodiment of the invention, if the base station successfully acquires the target data from the second mobile terminal, the base station can transmit the target data to the first mobile terminal, so that the first mobile terminal acquires the target data from the base station, and the pressure increase of the network server caused by the transmission of the target data from the network server to the first mobile terminal is avoided. Because the communication base stations are distributed more densely and more in number in different geographic environments than the network server, the data congestion of the network server can be reduced by distributing the communication pressure of the network server to different base stations.
And the base station sends the target data acquired from the second mobile terminal to the first mobile terminal, and the whole data transmission process is finished.
In the embodiment of the present invention, two reasons may be included for the failure of the base station to acquire data from the second mobile terminal, where the first is that the second mobile terminal is not within the coverage of the base station, and the second mobile terminal cannot communicate with the base station; the second is that the second mobile terminal is in the coverage of the base station, but the data acquisition fails due to the second mobile terminal itself, in the second case, the second mobile terminal may return failure information, and the content of the failure information may include the reason of the data acquisition failure.
For example, the content of the failure information may be that the second mobile terminal does not support the data return function, or that the second mobile terminal is in an unavailable state, or that the second mobile terminal rejects the second data request, or that the target data does not exist in the second mobile terminal. The reason why the second mobile terminal does not support the data return function may include that a software system or hardware of the second mobile terminal cannot support the data return function; the reason why the second mobile terminal is in the unavailable state may include that the second mobile terminal cannot support the data return operation due to low power, arrearage and the like; the reason why the second mobile terminal rejects the second data request may include that the user selects a disallowed option on a popup that allows the data request service or not; the reason why the target data does not exist in the second mobile terminal may include that the target data has been deleted by the second mobile terminal.
The base station acquires the failure information returned by the second mobile terminal, so that the base station can know the reason for failure in acquiring the target data from the second mobile terminal, and the base station can efficiently select the mobile terminal to be requested when requesting data next time. For example, a second mobile terminal that does not support the data return function or does not have the target data is no longer selected, and the second mobile terminal can be used after a certain time for the reason of the unavailable state, and the second mobile terminal that does not support the data return function can be prevented from being used as the second mobile terminal next time if the rejection frequency or rejection frequency is too high, and can be used as the second mobile terminal next time if the rejection frequency or rejection frequency is low.
After the target data acquisition from the second mobile terminal in this step fails, step 308 is performed next.
If the base station fails to acquire the target data from the second mobile terminal, the scheme of returning the data from the second mobile terminal to the first mobile terminal in the embodiment of the invention cannot be implemented, and only the data is acquired from the network server and is sent to the first mobile terminal.
And the base station sends the target data acquired from the network server to the first mobile terminal, and the whole data transmission process is finished.
The embodiment of the invention can preferentially acquire the target data from the second mobile terminal, and further acquire the target data from the network server after the acquisition fails, thereby avoiding the acquisition failure of the target data.
In summary, the embodiment of the present invention has the beneficial effects of the data transmission method in fig. 1, in addition, the base station further determines whether the data received by the network server is in the data transmission record, and updates the data transmission record according to the determination result, and the base station updates the data transmission record by the above method, so that all data passing through the base station can be ensured to be checked, and all data contents not stored in the memory are recorded, which is convenient for other mobile terminals to use when requesting data again; and after the base station fails to acquire the target data of the second mobile terminal, the base station can acquire failure information returned by the second mobile terminal, so that the base station can know the reason for failure in acquiring the target data from the second mobile terminal, and the base station can efficiently select the mobile terminal to be requested when requesting data next time.
Fig. 4 is a block diagram of a base station according to an embodiment of the present invention, and as shown in fig. 4, the base station 400 may include:
a data request receiving module 401, configured to receive a first data request of a first mobile terminal, where the first data request includes a target data identifier;
a data record determining module 402, configured to determine whether the target data identifier is in a data transmission record of the base station in response to the first data request.
A second mobile terminal determining module 403, configured to determine, if the target data identifier is in a data transmission record of the base station, a second mobile terminal from the data transmission record according to the target data identifier.
A target data obtaining module 404, configured to obtain target data corresponding to the target data identifier from the second mobile terminal.
A first sending module 405, configured to send the target data to the first mobile terminal if the target data is successfully obtained from the second mobile terminal.
The base station provided in the embodiment of the present invention can implement each process in the method embodiment of fig. 1, and is not described here again to avoid repetition.
In the embodiment of the invention, a base station receives a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier; determining whether a target data identification is in a base station data transmission record in response to the first data request; if the target data identifier is in a base station data transmission record, determining a second mobile terminal from the data transmission record according to the target data identifier; acquiring data corresponding to the target data identification from a second mobile terminal; and if the data acquisition from the second mobile terminal is successful, transmitting the acquired data to the first mobile terminal. In the method, the base station inquires the data transmission record according to the first data request carrying the target data identifier, locates the second mobile terminal which has requested the data, and then acquires the data from the second mobile terminal and sends the data to the first mobile terminal, so that the first mobile terminal does not request the data from the network server any more, the pressure of the network server is reduced, the network server does not need to send the same data to different terminal equipment any more, the waste of channel resources between the network server and the base station is reduced, and the network server can meet the data requirements of users at the time of a traffic peak. Alternatively, referring to fig. 5, on the basis of fig. 4, a second block diagram of the structure of the base station is shown. Wherein,
the target data obtaining module 404 includes:
a location determination submodule 4041, configured to determine whether the second mobile terminal is within the coverage area of the base station.
The request sub-module 4042, if the second mobile terminal is within the coverage area of the base station, sends a second data request to the second mobile terminal, where the second data request includes the target data identifier, so as to request the second mobile terminal to send target data corresponding to the target data identifier.
The position determination sub-module 4041 includes:
a paging unit for paging the second mobile terminal through a broadcast message;
and the position determining unit is used for determining that the second mobile terminal is in the coverage range of the base station if the paging response information of the second mobile terminal is received.
The base station 400 further comprises:
a failure information returning module 406, configured to, if the second mobile terminal is not within the coverage area of the base station, or the second mobile terminal returns failure information for the second data request, fail to acquire the target data from the second mobile terminal.
Wherein the failure information is used to indicate: the second mobile terminal does not support a data return function, or the second mobile terminal is in an unavailable state, or the second mobile terminal rejects the data return request, or the second mobile terminal does not have target data corresponding to the target data identifier.
The base station 400 further comprises:
a data determination module for determining whether data received from the network server is in a data transmission record;
and the sending and storing module is used for sending the data to a third mobile terminal requesting the data if the data received from the network server is not in the data transmission record, and storing a data identifier corresponding to the data and an identifier of the third mobile terminal requesting the data into the data transmission record.
The base station 400 further comprises:
a second sending module 407, configured to, if the target data is not obtained from the second mobile terminal, send the target data from the network server according to the data request to the first mobile terminal.
In summary, the base station provided in the embodiment of the present invention can implement each process in the method embodiment of fig. 3, and is not described herein again to avoid repetition.
The base station provided by the embodiment of the invention has the advantages that the base station shown in fig. 4 also determines whether the data received by the network server is in the data transmission record, and updates the data transmission record according to the determination result, and the base station updates the data transmission record by the method, so that all the data passing through the base station can be checked, all the data contents which are not stored in the memory are recorded, and the base station is convenient to use when other mobile terminals request the data again; and after the base station fails to acquire the target data of the second mobile terminal, the base station can acquire failure information returned by the second mobile terminal, so that the base station can know the reason for failure in acquiring the target data from the second mobile terminal, and the base station can efficiently select the mobile terminal to be requested when requesting data next time.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A data transmission method applied to a base station is characterized by comprising the following steps:
receiving a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier;
determining whether the target data identification is in a data transmission record of the base station in response to the first data request;
if the target data identifier is in the data transmission record of the base station, determining a second mobile terminal from the data transmission record according to the target data identifier;
acquiring target data corresponding to the target data identification from the second mobile terminal;
if the target data is successfully acquired from the second mobile terminal, the target data is sent to the first mobile terminal;
the base station records all data contents passing through the base station and generates the data transmission record; the second mobile terminal is a terminal which has requested the target data corresponding to the target data identification;
the base station is in communication connection with a network server, and the data transmission record is updated through the following steps:
determining whether data received from the network server is in a data transmission record;
if the data received from the network server is not in the data transmission record, sending the data to a third mobile terminal requesting the data, and storing a data identifier corresponding to the data and an identifier of the third mobile terminal requesting the data in the data transmission record;
if the data received from the network server is in the data transmission record, replacing the data with the same data identifier in the data transmission record according to the data identifier carried by the data;
or,
and if the data received from the network server is in the data transmission record, storing the data according to the data identification carried by the data.
2. The method according to claim 1, wherein the step of obtaining the target data corresponding to the target data identifier from the second mobile terminal comprises:
determining whether the second mobile terminal is within the coverage of the base station;
and if the second mobile terminal is in the coverage range of the base station, sending a second data request to the second mobile terminal, wherein the second data request comprises the target data identifier so as to request the second mobile terminal to send target data corresponding to the target data identifier.
3. The method of claim 2, wherein after the step of determining whether the second mobile terminal is within the coverage of the base station, the method further comprises:
and if the second mobile terminal is not in the coverage range of the base station or the second mobile terminal returns failure information aiming at the second data request, the target data acquisition from the second mobile terminal fails.
4. The method of claim 2, wherein the step of determining whether the second mobile terminal is within the coverage area of the base station comprises:
paging the second mobile terminal through a broadcast message;
and if the paging response information of the second mobile terminal is received, determining that the second mobile terminal is in the coverage range of the base station.
5. The method according to claim 1, wherein after the step of obtaining the target data corresponding to the target data identifier from the second mobile terminal, the method further comprises:
and if the target data acquisition from the second mobile terminal fails, acquiring the target data from the network server according to the first data request, and sending the target data to the first mobile terminal.
6. A base station, characterized in that the base station comprises:
the data request receiving module is used for receiving a first data request of a first mobile terminal, wherein the first data request comprises a target data identifier;
a data record determining module, configured to determine, in response to the first data request, whether the target data identifier is in a data transmission record of the base station;
a second mobile terminal determining module, configured to determine, if the target data identifier is in a data transmission record of the base station, a second mobile terminal from the data transmission record according to the target data identifier; the base station records all data contents passing through the base station and generates the data transmission record; the second mobile terminal is a terminal which has requested the target data corresponding to the target data identification;
the target data acquisition module is used for acquiring target data corresponding to the target data identification from the second mobile terminal;
the first sending module is used for sending the target data to the first mobile terminal if the target data is successfully acquired from the second mobile terminal;
the base station is in communication connection with the network server, and the data transmission record is updated through the following modules:
a data determination module for determining whether data received from the network server is in a data transmission record;
the sending and storing module is used for sending the data to a third mobile terminal requesting the data if the data received from the network server is not in a data transmission record, and storing a data identifier corresponding to the data and an identifier of the third mobile terminal requesting the data into the data transmission record; if the data received from the network server is in the data transmission record, replacing the data with the same data identifier in the data transmission record according to the data identifier carried by the data; or if the data received from the network server is in the data transmission record, storing the data according to the data identification carried by the data.
7. The base station of claim 6, wherein the target data acquisition module comprises:
a location determination submodule for determining whether the second mobile terminal is within the coverage of the base station;
and the request submodule is used for sending a second data request to the second mobile terminal if the second mobile terminal is in the coverage range of the base station, wherein the second data request comprises the target data identifier so as to request the second mobile terminal to send target data corresponding to the target data identifier.
8. The base station of claim 7, wherein the base station further comprises:
a failure information returning module, configured to, if the second mobile terminal is not within the coverage area of the base station, or the second mobile terminal returns failure information for the second data request, fail to acquire the target data from the second mobile terminal.
9. The base station of claim 7, wherein the position determination submodule comprises:
a paging unit for paging the second mobile terminal through a broadcast message;
and the position determining unit is used for determining that the second mobile terminal is in the coverage range of the base station if the paging response information of the second mobile terminal is received.
10. The base station of claim 7, wherein the base station further comprises:
and the second sending module is used for obtaining the target data from the network server according to the first data request and sending the target data to the first mobile terminal if the target data obtained from the second mobile terminal fails to be obtained.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910754240.3A CN110392119B (en) | 2019-08-15 | 2019-08-15 | Data transmission method and base station |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910754240.3A CN110392119B (en) | 2019-08-15 | 2019-08-15 | Data transmission method and base station |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110392119A CN110392119A (en) | 2019-10-29 |
CN110392119B true CN110392119B (en) | 2022-08-09 |
Family
ID=68288781
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910754240.3A Active CN110392119B (en) | 2019-08-15 | 2019-08-15 | Data transmission method and base station |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110392119B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110839074A (en) * | 2019-11-07 | 2020-02-25 | 北京首钢自动化信息技术有限公司 | Data request receiving and processing method and device |
CN112188629B (en) * | 2020-09-28 | 2024-01-16 | 海能达通信股份有限公司 | Communication method, system and base station |
CN115426684B (en) * | 2022-11-04 | 2023-01-24 | 北京众森信和科技有限公司 | Pre-hospital data receiving method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101662504B (en) * | 2009-09-25 | 2012-07-04 | 中国电信股份有限公司 | Method and system for realizing point-to-point content distribution under wireless network environment |
CN102710535B (en) * | 2011-03-28 | 2016-04-27 | 腾讯科技(深圳)有限公司 | A kind of data capture method and equipment |
CN102571936B (en) * | 2011-12-23 | 2015-07-08 | 华为技术有限公司 | Method, device and system for searching data |
-
2019
- 2019-08-15 CN CN201910754240.3A patent/CN110392119B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110392119A (en) | 2019-10-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110392119B (en) | Data transmission method and base station | |
CN101156407B (en) | Method for supplying content through communication network | |
KR101548144B1 (en) | Resource profile adjustment for pre-fetching of assets to user equipment | |
CN110830565B (en) | Resource downloading method, device, system, electronic equipment and storage medium | |
CN112600693B (en) | Service request processing method, system, electronic equipment and computer storage medium | |
CN110620828A (en) | File pushing method, system, device, electronic equipment and medium | |
CN109982152B (en) | P2P CDN service processing method, intelligent gateway and CDN platform | |
US20150088995A1 (en) | Method and apparatus for sharing contents using information of group change in content oriented network environment | |
CN101925158A (en) | System and method for obtaining number detail | |
CN113873302B (en) | Content distribution method, content distribution device, storage medium and electronic equipment | |
CN113630457B (en) | Task scheduling method and device, computer equipment and storage medium | |
CN106535112B (en) | Method, device and system for realizing terminal access | |
CN110784510A (en) | Method for accessing target service node to bus and information interaction method of service node | |
CN110582090A (en) | CDN scheduling method, scheduling system and MEC network element | |
EP1641201B1 (en) | Electronic mail charging system and method | |
CN104765888B (en) | A kind of data access system, method and device | |
CN106533760B (en) | Method and device for constructing CDN system in CM network | |
CN110830909B (en) | Content distribution control method and device | |
CN114125068A (en) | Resource scheduling method, MEC controller, system and computer readable storage medium | |
CN102497402A (en) | Content injection method and system thereof, and content delivery method and system thereof | |
US8179875B2 (en) | Provisioning of non real time services in accordance with network resources availability | |
CN116032573B (en) | Method, terminal, platform, equipment and medium for multi-user sharing slice service | |
CN114979284B (en) | 5G message scheduling method, device and system | |
CN113364865B (en) | Resource acquisition method, device, readable medium and equipment | |
CN111901769B (en) | Calling method, first mobile service switching center and home location register |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |