CN108449372B - Network data processing method, three-dimensional network database construction method and system - Google Patents

Network data processing method, three-dimensional network database construction method and system Download PDF

Info

Publication number
CN108449372B
CN108449372B CN201710083658.7A CN201710083658A CN108449372B CN 108449372 B CN108449372 B CN 108449372B CN 201710083658 A CN201710083658 A CN 201710083658A CN 108449372 B CN108449372 B CN 108449372B
Authority
CN
China
Prior art keywords
information
network data
network
position information
client
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
Application number
CN201710083658.7A
Other languages
Chinese (zh)
Other versions
CN108449372A (en
Inventor
王海龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710083658.7A priority Critical patent/CN108449372B/en
Publication of CN108449372A publication Critical patent/CN108449372A/en
Application granted granted Critical
Publication of CN108449372B publication Critical patent/CN108449372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a network data processing method, a three-dimensional network database construction method and a three-dimensional network database construction system, relates to the technical field of networks, and can enable a user to timely access network data in a weak network environment and enable the user to experience a client application more smoothly. The main technical scheme of the application is as follows: receiving an access request of network data sent by a client; acquiring carried terminal position information corresponding to the terminal equipment where the client is located from the access request, wherein the terminal position information comprises longitude and latitude information and altitude information; detecting whether the terminal position information is in a preset range of position information of a preset three-dimensional network database, wherein different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database; adjusting a data interface corresponding to the network data according to the detection result; and processing the network data through the adjusted data interface, and sending the processed data to the client.

Description

Network data processing method, three-dimensional network database construction method and system
Technical Field
The present application relates to the field of network technologies, and in particular, to a network data processing method, a three-dimensional network database construction method, and a system.
Background
With the rise of terminal devices such as tablet computers and smart phones in the market, the terminal devices become an indispensable part of life of people, and people can perform operations such as online chatting, online games and online shopping through client applications installed on the terminal devices. In the process that the client application is used by the handheld terminal device of the user in a moving mode, the surrounding network conditions can change along with the movement of the user, the client accesses the same server interface, the access is fast when the network environment is good, but the access is slow when the network environment is weak, and the user experience difference is very obvious.
Currently, the latitude and longitude information of the terminal device where the client is located can be carried when the client requests the server for network data, and the server determines the signal strength of the terminal device according to the latitude and longitude information and can perform corresponding network data processing. However, when the terminal device is located at different height positions of the same longitude and latitude, the signal intensity of the terminal device is different, and the signal intensity of the terminal device determined by the server according to the longitude and latitude is inaccurate, so that the processing accuracy of network data is reduced, and the use experience of a user is influenced.
Disclosure of Invention
In view of the above, the present application is proposed to provide a network data processing method, a three-dimensional network database construction method and a system that overcome or at least partially solve the above problems.
In order to achieve the purpose, the application provides the following technical scheme:
according to an aspect of the present application, there is provided a method for processing network data, including:
receiving an access request of network data sent by a client;
acquiring carried terminal position information corresponding to the terminal equipment where the client is located from the access request, wherein the terminal position information comprises longitude and latitude information and altitude information;
detecting whether the terminal position information is in a preset range of position information of a preset three-dimensional network database, wherein different position information and signal strength information corresponding to the position information are stored in the preset three-dimensional network database;
adjusting a data interface corresponding to the network data according to the detection result;
and processing the network data through the adjusted data interface, and sending the processed data to the client.
According to another aspect of the present application, there is provided a method for processing network data, including:
receiving an access instruction of a user for accessing network data;
sending an access request of network data to a server, wherein the access request carries terminal position information corresponding to terminal equipment where the client is located, so that the server adjusts a data interface corresponding to the network data according to a detection result of whether the terminal position information is in a preset range of position information of a preset three-dimensional network database or not, and processes the network data through the adjusted data interface; the terminal position information comprises longitude and latitude information and altitude information, and different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database;
and receiving the processed network data sent by the server.
According to another aspect of the present application, there is provided a server, including:
the receiving unit is used for receiving an access request of network data sent by a client;
the acquisition unit is used for acquiring the carried terminal position information corresponding to the terminal equipment where the client is located from the access request received by the receiving unit, wherein the terminal position information comprises longitude and latitude information and altitude information;
the detection unit is used for detecting whether the terminal position information acquired by the acquisition unit is within a preset range of position information of a preset three-dimensional network database, wherein different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database;
the adjusting unit is used for adjusting a data interface corresponding to the network data according to the detection result of the detecting unit;
and the processing unit is used for processing the network data through the adjusted data interface and sending the processed data to the client.
In accordance with yet another aspect of the present application, there is provided a client comprising:
the receiving unit is used for receiving an access instruction of a user for accessing network data;
a sending unit, configured to send an access request for network data to a server, where the access request carries terminal location information corresponding to a terminal device where the client is located, so that the server adjusts a data interface corresponding to the network data according to a detection result indicating whether the terminal location information is within a preset range of location information of a preset three-dimensional network database, and processes the network data through the adjusted data interface; the terminal position information comprises longitude and latitude information and altitude information, and different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database;
the receiving unit is further configured to receive the processed network data sent by the server.
According to yet another aspect of the present application, there is provided a system for processing network data, including: a server and a client;
the client is used for receiving an access instruction of a user for accessing the network data; sending an access request of network data to a server, wherein the access request carries terminal position information corresponding to terminal equipment where the client is located, and the terminal position information comprises longitude and latitude information and altitude information;
the server is used for receiving an access request of network data sent by the client; acquiring carried terminal position information corresponding to the terminal equipment where the client is located from the access request; detecting whether the terminal position information is in a preset range of position information of a preset three-dimensional network database, wherein different position information and signal strength information corresponding to the position information are stored in the preset three-dimensional network database; adjusting a data interface corresponding to the network data according to the detection result; processing the network data through the adjusted data interface, and sending the processed data to the client;
the client is further configured to receive the processed network data sent by the server.
According to still another aspect of the present application, there is provided a method for constructing a three-dimensional network database, including:
receiving network data access requests respectively sent by different clients;
collecting terminal position information carried in the network data access request and signal intensity information corresponding to the terminal position information, wherein the terminal position information comprises longitude and latitude information and altitude information;
and constructing a three-dimensional network database according to the collected terminal position information and the collected signal intensity information.
According to still another aspect of the present application, there is provided a method for constructing a three-dimensional network database, including:
receiving an access instruction of a user for accessing network data;
sending an access request of network data to a server, wherein the access request carries terminal position information corresponding to terminal equipment where the client is located and signal strength information corresponding to the terminal position information, so that the server constructs a three-dimensional network database according to the terminal position information and the signal strength information; the terminal position information comprises longitude and latitude information and altitude information.
According to still another aspect of the present application, there is provided a server, including:
the receiving unit is used for receiving network data access requests respectively sent by different clients;
the collecting unit is used for collecting terminal position information carried in the network data access request and signal intensity information corresponding to the terminal position information, wherein the terminal position information comprises longitude and latitude information and altitude information;
and the construction unit is used for constructing a three-dimensional network database according to the collected terminal position information and the collected signal intensity information.
In accordance with yet another aspect of the present application, there is provided a client comprising:
the receiving unit is used for receiving an access instruction of a user for accessing network data;
a sending unit, configured to send an access request for network data to a server, where the access request carries terminal location information corresponding to a terminal device where the client is located and signal strength information corresponding to the terminal location information, so that the server constructs a three-dimensional network database according to the terminal location information and the signal strength information; the terminal position information comprises longitude and latitude information and altitude information.
According to still another aspect of the present application, there is provided a system for constructing a three-dimensional network database, including: a server and a client;
the client is used for receiving an access instruction of a user for accessing the network data; sending an access request of network data to a server, wherein the access request carries terminal position information corresponding to terminal equipment where the client is located and signal strength information corresponding to the terminal position information, and the terminal position information comprises longitude and latitude information and altitude information;
the server is used for receiving network data access requests respectively sent by different clients; collecting terminal position information carried in the network data access request and signal intensity information corresponding to the terminal position information; and constructing a three-dimensional network database according to the collected terminal position information and the collected signal intensity information.
By the technical scheme, compared with the mode that the existing server side carries out corresponding network data processing according to the longitude and latitude information of the terminal equipment where the client side is located and carried in the request, the method and the system for constructing the three-dimensional network database can detect the terminal position information carried in the network data access request, the position information stored in the preset three-dimensional network database and the corresponding signal intensity information when a user accesses data, because the terminal position information not only comprises the longitude and latitude information of the user terminal equipment but also comprises the altitude information, the signal intensity information of the user terminal equipment can be accurately determined according to the terminal position information, the data interface corresponding to the network data is adjusted according to the detection result, and then the network data is processed through the adjusted data interface, the processing accuracy of the network data can be guaranteed, the processed data are sent to the client, a user can access the network data in time under the weak network environment, the process of experiencing the application of the client is smoother, the influence of the weak network environment can be reduced, and the phenomenon of network blockage can be reduced.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic structural diagram illustrating a network data processing system according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for processing network data according to an embodiment of the present application;
fig. 3 is a flowchart illustrating another network data processing method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a processing method of network data according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a server side structure provided by an embodiment of the present application;
fig. 6 shows a schematic diagram of a server side structure provided in an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a client structure provided by an embodiment of the present application;
fig. 8 is a schematic diagram illustrating a client structure provided by an embodiment of the present application;
FIG. 9 is a structural diagram of a building system of a three-dimensional network database provided by an embodiment of the present application;
fig. 10 is a schematic flowchart illustrating a method for building a three-dimensional network database according to an embodiment of the present application;
FIG. 11 is a schematic diagram illustrating an example of building a three-dimensional network database according to an embodiment of the present application;
FIG. 12 is a schematic diagram illustrating an example application scenario provided by an embodiment of the present application;
fig. 13 is a schematic flowchart illustrating a method for building another three-dimensional network database according to an embodiment of the present application;
fig. 14 is a schematic diagram illustrating a server side structure provided by an embodiment of the present application;
fig. 15 is a schematic diagram illustrating a server side structure provided by an embodiment of the present application;
fig. 16 is a schematic diagram illustrating a client structure provided by an embodiment of the present application;
fig. 17 shows a schematic structural diagram of a client according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present application provides a system for processing network data, which can ensure the processing accuracy of the network data, and as shown in fig. 1, the system includes: a server 11 and a client 12.
The client 12 can be used for receiving an access instruction of a user for accessing network data; sending an access request of network data to the server 11, where the access request carries terminal location information corresponding to a terminal device where the client 12 is located, where the terminal location information includes latitude and longitude information and altitude information, and may be specifically determined according to data acquired by a Global Positioning System (GPS) locator and a gyroscope sensor in the terminal device where the client 12 is located.
The server 11 may be configured to receive an access request of network data sent by the client 12; acquiring the carried terminal position information corresponding to the terminal equipment where the client 12 is located from the access request; detecting whether the terminal position information is in a preset range of the position information of a preset three-dimensional network database; adjusting a data interface corresponding to the network data according to the detection result; and processing the network data through the adjusted data interface, and sending the processed data to the client 12. The preset three-dimensional network database stores different position information and signal strength information corresponding to the position information, the position information also includes longitude and latitude information and altitude information, the signal strength information may be network type information such as 2G/3G/4G/Wireless Fidelity (WiFi), information including specific signal strength values, or information including network data transmission speed, and the preset range may be set according to actual requirements.
The client 12 may also be configured to receive the processed network data sent by the server 11.
The processing system for the network data, provided by the embodiment of the application, can detect the terminal position information containing latitude and longitude information and altitude information of the user terminal equipment, which is carried in a network data access request sent by a client, and the position information and the corresponding signal strength information stored in a preset three-dimensional network database by a server side when the user accesses the data, determine the current network environment of the user, correspondingly adjust a data interface corresponding to the network data, process the network data through the adjusted data interface, can ensure the processing accuracy of the network data, and finally send the processed data to the client side, so that the user can timely access the network data in a weak network environment, the application process of the client side is more smooth, and the influence of the weak network environment can be reduced.
Specifically, according to an aspect of the embodiment of the present application, the embodiment of the present application provides a method for processing network data, the method is mainly applied to a server side, as shown in fig. 2, the method includes:
201. the server receives an access request of network data sent by the client.
The execution subject of this embodiment may be a server, and when a user accesses network data, the server receives an access request of the network data sent by a client.
202. And acquiring the carried terminal position information corresponding to the terminal equipment where the client is located from the access request.
The terminal position information includes longitude and latitude information and altitude information, and specifically may be position information in a three-dimensional coordinate form.
203. And detecting whether the terminal position information is in a preset range of the position information of the preset three-dimensional network database.
The preset three-dimensional network database stores different position information and signal strength information corresponding to the position information, and the preset range can be set according to actual requirements, for example, the preset range can be a range with a radius of 3 meters, 5 meters, 10 meters and the like by taking the position information stored in the preset three-dimensional network database as a center.
204. And adjusting a data interface corresponding to the network data according to the detection result.
For example, a terminal position a of a terminal device where the client is located is obtained from the access request, whether the terminal position a is within a preset range of position information stored in a preset three-dimensional network database is detected, if the position a is within the preset range of the position B and the signal intensity corresponding to the position B is smaller than a certain threshold value, it can be determined that the user terminal device is currently located in the weak network environment, and a data interface corresponding to the network data is adjusted to a data interface corresponding to the weak network environment; if the position A is in the preset range of the position C and the signal intensity corresponding to the position C is greater than a certain threshold value, it indicates that the signal of the user terminal equipment is good at the moment, and the data interface corresponding to the network data can be adjusted to the data interface under the condition that the network state is good.
205. And processing the network data through the adjusted data interface, and sending the processed data to the client.
For example, when a user is currently accessing a website webpage, the server acquires a terminal position a of the user terminal device from a webpage data access request sent by the client, if the terminal position a is within a preset range of a position b stored in a preset three-dimensional network database and the signal intensity corresponding to the position b is less than a certain threshold, it can be determined that the user terminal device is currently in a weak network environment, a data interface corresponding to the webpage data is adjusted to a data interface corresponding to the weak network environment, the webpage data is processed through the adjusted data interface, so that the picture data in the webpage is adjusted to be standard definition picture data or a no-picture mode, and then the processed webpage data is sent to the client and displayed to the user for viewing, so that the user can access the webpage data in time under the weak network environment.
If the terminal position a is in a preset range of a position c stored in a preset three-dimensional network database and the signal intensity corresponding to the position c is greater than a certain threshold value, it is indicated that the signal of the user terminal device is good at this moment, a data interface corresponding to the webpage data can be adjusted to be a data interface under a good network state condition, the webpage data are processed through the adjusted data interface, the picture data in the webpage are adjusted to be ultra-clear picture data or high-definition pictures, then the processed webpage data are sent to a client side and displayed for a user to watch, so that the display effect is improved, and the user experience is enhanced.
The network data processing method provided by the embodiment of the application can be applied to a server side, when a user accesses data, the server side sends a network data access request to the client side according to the terminal position information which is carried in the network data access request and contains the longitude and latitude information and the altitude information of the user terminal equipment, and presetting position information and corresponding signal strength information stored in a three-dimensional network database for detection, determining the current network environment of the user, and correspondingly adjusting a data interface corresponding to the network data, then the network data is processed through the adjusted data interface, the processing accuracy of the network data can be ensured, finally the processed data is sent to the client, the method and the system enable the user to access the network data in time under the weak network environment, experience the client application more smoothly, and reduce the influence of the weak network environment.
In order to better understand the method shown in fig. 2, as a refinement and extension of the foregoing embodiment, an embodiment of the present application provides another method for processing network data, which is applied to a server side, as shown in fig. 3, and the method includes:
301. the server receives an access request of network data sent by the client.
302. And acquiring the carried terminal position information corresponding to the terminal equipment where the client is located from the access request.
The terminal location information may include longitude information, latitude information, altitude information, and the like of the terminal device.
303. And detecting whether the terminal position information is in a preset range of the position information of the preset three-dimensional network database.
For the embodiment of the application, a three-dimensional network database can be configured in advance by referring to the terminal position information and the signal strength information corresponding to the terminal position information, each piece of position information stored in the database can correspond to the position information of a three-dimensional space in real life, and the database also stores the signal strength information corresponding to the position information. In the embodiment of the application, if the terminal position information is in the preset range of the position information of the preset three-dimensional network database, the network environment where the user terminal equipment is currently located can be determined according to the signal intensity information corresponding to the position information; if the terminal position information is not in the preset range of any position information in the preset three-dimensional network database, it indicates that the preset three-dimensional network database does not have position information related to the terminal position information, and the terminal position information and signal intensity information corresponding to the terminal position information can be recorded, so that the preset three-dimensional network database can be updated later.
304. And if the terminal position information is in the preset range of the position information of the preset three-dimensional network database, acquiring signal intensity information corresponding to the position information.
For example, if the terminal location a is within a preset range of a location D stored in a preset three-dimensional network database, signal strength information corresponding to the location D is acquired.
305. And adjusting a data interface corresponding to the network data according to the acquired signal intensity information.
If the obtained signal strength information meets the predetermined weak network condition, step 305 may specifically include: and adjusting the data interface corresponding to the network data to be the data interface corresponding to the preset weak network condition. The predetermined weak network condition may be that a signal strength value included in the signal strength information is smaller than a certain threshold, or may be that a network type included in the signal strength information is 2G, and the like, and may be specifically set according to actual needs.
For example, the requested network data is audio data, the predetermined weak network condition may be that a signal strength value included in the signal strength information is smaller than a certain threshold, and if the signal strength value included in the acquired signal strength information is smaller than the threshold, it is determined that the acquired signal strength information conforms to the predetermined weak network condition, and a data interface corresponding to the audio data is adjusted, so that the audio data processed through the data interface is low-bit-rate audio data whose bit rate is smaller than a specific threshold.
If the obtained signal strength information conforms to the predetermined weak network condition, which indicates that the user is already affected by the weak network environment at this time, the server sends corresponding network data to the client on the terminal device, which may cause phenomena such as packet loss and delay, and in order to reduce the impact of the weak network environment on the user, before adjusting the data interface corresponding to the network data to the data interface corresponding to the predetermined weak network condition, the method may further include: detecting whether terminal equipment which acquires network data exists in a preset range of the terminal equipment or not according to the terminal position information; and if the network data exists, sending client identification information corresponding to the terminal equipment which has acquired the network data to the client so that the client acquires the network data from the terminal equipment which has acquired the network data according to the client identification information. The client identification information may include user account information, an identifier of the terminal device, and the like, and the predetermined range may be set according to actual requirements, and may specifically be set with reference to an effective distance at which data transmission can be performed end-to-end.
And then can let the user normally visit the network data in the weak network environment too, through the scheme of this kind of data network sharing, can reduce the phenomenon that the network card pauses, can promote user's use and experience.
In this embodiment of the application, if the acquired signal strength information conforms to the predetermined weak network condition and it is detected that there is no terminal device that has acquired network data within the predetermined range of the terminal device, the data interface corresponding to the network data is adjusted to the data interface corresponding to the predetermined weak network condition, and step 306a is subsequently performed; if the acquired signal strength information does not meet the predetermined weak net condition, step 306b may be performed.
306a, processing the network data through the adjusted data interface, and sending the processed data to the client.
If the acquired signal intensity information conforms to the preset weak network condition, the data interface corresponding to the network data is adjusted to be the data interface corresponding to the preset weak network condition, the network data is processed through the adjusted data interface, and the processed data is sent to the client, so that a user can also access the network data in time in the weak network environment.
And a step 306b, which is parallel to the step 306a, of determining the movement track information of the terminal device according to the terminal position information if the acquired signal strength information does not accord with the predetermined weak network condition.
In the embodiment of the application, historical terminal position information corresponding to the client within a preset time period can be specifically acquired; and determining the movement track information of the terminal equipment according to the historical terminal position information and the terminal position information carried in the access request. The preset time period may be a half hour or a time period within 1 hour before the request is received.
For example, each time a client sends a network data access request, a server correspondingly records terminal position information of a terminal device where the client is located, and if the network data access request of the client is received at the latest moment, a moving track of the terminal device where the client is located in the half hour can be determined according to historical terminal position information corresponding to the client recorded in the previous half hour and terminal position information carried in the latest request.
307b, according to the movement track information, determining terminal position information corresponding to the movement track of the terminal equipment in a predetermined period of time.
The predetermined time period may be 10 minutes, 20 minutes, or the like after the request is received.
For example, the terminal position information corresponding to the movement trajectory 10 minutes after the request is received is determined based on the movement direction, the movement speed, and the route that can be traveled of the movement trajectory.
308b, if the signal strength information of the determined terminal position information conforms to the preset weak network condition, acquiring the network data required by the client next time according to the network data, and performing corresponding processing on the network data required by the client next time in advance.
In the embodiment of the application, if the signal strength information of the determined terminal position information conforms to the predetermined weak network condition, indicating that the user terminal equipment is about to enter the weak network environment, the carried client identification information corresponding to the client can be acquired from the access request; analyzing according to the network data and historical behavior data of the user corresponding to the client identification information in a preset time period to obtain network data required by the client next time, and sending the network data required by the client next time to the client in advance; or the data interface corresponding to the network data required to be requested next time is adjusted correspondingly in advance.
For the embodiment of the application, each time the client sends a network data access request, a record of the network data requested by the client can be correspondingly stored as the user historical behavior data corresponding to the client. If a network data access request of a client is received at the latest moment, the network data required to be requested by the client next time can be presumed according to the stored history of the network data requested by the client and the latest requested network data.
For example, when a user is currently accessing a portal website, it is inferred that the user is likely to access webpage data of a financial channel column in the portal website next time according to previous historical behavior records of the user, and further, the webpage data of the financial channel column can be determined as network data required by the user client next time, and the webpage data of the financial channel column can be sent to the user client for caching in advance before the user enters a weak network environment, so that the webpage data of the financial channel column can be browsed smoothly when the user enters the weak network environment.
For the embodiment of the application, when a user accesses data, the moving track of the user terminal can be predicted according to the user terminal position information carried in the network data access request, the network environment when the user terminal requests next time is presumed by referring to the moving track of the user terminal, if the situation that the user terminal is about to enter the weak network environment is presumed, the situation that the user is likely to be influenced by the weak network environment when accessing the data next time is explained, analysis can be carried out by combining historical behavior data of the user at the moment, corresponding processing is carried out on the data which the user terminal needs to request next time in advance, user habit data can be advanced, the process that the user uses the client application is smoother, the influence of the weak network environment can be reduced, the phenomenon that a network card is blocked can be reduced, and the use experience of the user can be improved.
It should be noted that, in addition to the way of analyzing the network data that the user needs to request next time in real time, in order to improve the analysis efficiency, the analysis results corresponding to different network data may be analyzed in advance by combining the usage habits of different users, and when the server needs to determine the network data that the user needs to request next time, the analysis result corresponding to the requested network data may be directly searched for, and the network data that the user needs to request next time may be found out, so as to accelerate the network data processing process, and further, the network data that the client needs to request next time may be processed in advance.
The other network data processing method provided by the embodiment of the application can be applied to a server side, when the user accesses the data, the server side sends a network data access request to the client side according to the terminal position information which is carried in the network data access request and contains the longitude and latitude information and the altitude information of the user terminal equipment, the network environment where the user is currently located can be accurately determined, if the network environment meets the weak network environment condition, it is possible to detect whether or not a terminal device having acquired network data exists within a predetermined range of the terminal device, based on the terminal location information, and if so, the client identification information corresponding to the terminal device that has acquired the network data is sent to the client, the user can normally access the network data in the weak network environment, and the phenomenon of network blockage can be reduced by the scheme of data network sharing; if the network environment does not accord with the weak network environment condition, determining the movement track information of the terminal equipment according to the terminal position information, and determining whether the user terminal is about to enter the weak network environment according to the movement track information, so that the analysis can be realized by combining the historical behavior data of the user before the user terminal is about to enter the weak network environment, the data required by the user terminal next time is correspondingly processed in advance, the habit data of the user can be promoted, and the process that the user uses the client application is smoother.
According to another aspect of the embodiments of the present application, there is provided another method for processing network data, the method is mainly applied to a client side, as shown in fig. 4, and the method includes:
401. the client receives an access instruction of a user for accessing the network data.
The execution subject of this embodiment may be a client, and when a user accesses network data, the client may automatically trigger to input a corresponding network data access instruction, and when receiving the access instruction, the client triggers to send an access request for network data to the server, that is, step 402 is executed.
402. And sending an access request of the network data to the server.
The access request carries terminal position information corresponding to the terminal equipment where the client is located, the terminal position information comprises longitude and latitude information and altitude information, and therefore the server side adjusts a data interface corresponding to the network data according to a detection result of whether the terminal position information is located in a preset range of position information of a preset three-dimensional network database or not, and processes the network data through the adjusted data interface. For the server processing procedure in this embodiment, refer to the descriptions in step 201 to step 205, which are not described herein again.
In an optional embodiment of the present application, the method may further comprise: the client receives weak network early warning information sent by the server, wherein the weak network early warning information is sent when the server determines that terminal position information corresponding to a movement track of the terminal equipment in a later preset time period accords with a preset weak network condition according to the movement track information of the terminal equipment. For example, the server determines the movement track information of the terminal device a according to the current position information of the user terminal device a where the client is located and the position information of the user terminal device within the previous half hour, and then, according to the movement track information, it is expected that the signal intensity around the position where the terminal device a arrives within the next 5 minutes is smaller than a certain threshold value, which indicates that the terminal device a will enter the weak network environment, and the server may forward send weak network warning information to the client, so as to warn the client to enter the weak network environment in advance.
After receiving the weak network early warning information, the client can send an access request of network data required to be requested next time to the server in advance according to the weak network early warning information and the network data required this time, and further can receive the network data required to be requested next time sent by the server in advance. Specifically, at the client side, a historical behavior record of each time a user accesses network data can be stored, when the client receives weak network early warning information, the network data required by the client next time can be inferred according to the historical behavior record of the user stored at the client and the network data required at this time, an access request of the network data is sent to the server in advance, and the network data sent by the server can be received in advance, so that the network data can be accessed quickly when user terminal equipment is in a weak network environment, the user experiences the application of the client more smoothly, and the influence of the weak network environment can be reduced.
In another optional embodiment of the present application, the method may further comprise: the client receives network data which are sent by the server and required by the client next time, wherein the network data required by the client next time are sent when the server determines that terminal position information corresponding to a movement track of the terminal equipment in a later preset time period accords with a preset weak network condition according to the movement track information of the terminal equipment. The specific processing procedure at the server side may refer to the descriptions in steps 306b to 308b, which are not described herein again.
After the client receives the network data required to be requested next time in advance, the network data can be stored in the local cache, and when the user needs to access the network data, the network data can be obtained from the local cache, so that the user terminal equipment can also quickly access the network data in a weak network environment, and the influence of the weak network environment can be reduced.
In yet another optional embodiment of the present application, the method may further comprise: the client receives client identification information corresponding to the terminal equipment which has acquired the network data and is sent by the server, wherein the client identification information is sent by the server when the server detects that the terminal equipment which has acquired the network data exists in a preset range of the terminal equipment according to the terminal position information. The specific processing procedure at the server side can refer to the description in step 305, and is not described herein again.
After the client receives the client identification information, the client may acquire the network data from the terminal device that has acquired the network data according to the client identification information. And then can let the user normally visit the network data in the weak network environment too, through the scheme of this kind of data network sharing, can reduce the phenomenon that the network card pauses, can promote user's use and experience.
403. And receiving the processed network data sent by the server.
For example, the user needs to watch the network video online currently, the client sends an access request of the network video data to the server, the server acquires the terminal position b of the user terminal device from the access request, if the terminal position b is in the preset range of the position c stored in the preset three-dimensional network database and the signal intensity corresponding to the position c is less than a certain threshold value, the user terminal equipment can be judged to be currently in the weak network environment, the data interface corresponding to the network video data is adjusted to be the data interface corresponding to the weak network environment, and processes the network video data through the adjusted data interface to adjust the network video data to a standard definition or smooth mode, and then, the processed network video data is sent to a client and displayed to a user for watching, so that the user can watch the network video in time under the weak network environment.
The method for processing network data provided by the embodiment of the application can be applied to a client side, when a user accesses data, the server side sends a network data access request to the client side according to the terminal position information which is carried in the network data access request and contains the longitude and latitude information and the altitude information of the user terminal equipment, and presetting position information and corresponding signal strength information stored in a three-dimensional network database for detection, determining the current network environment of the user, and correspondingly adjusting a data interface corresponding to the network data, then the network data is processed through the adjusted data interface, the processing accuracy of the network data can be ensured, finally the processed data is sent to the client, the method and the system enable the user to access the network data in time under the weak network environment, experience the client application more smoothly, and reduce the influence of the weak network environment.
Further, as a specific implementation of the method shown in fig. 2 and fig. 3, an embodiment of the present application provides a server, and as shown in fig. 5, the server mainly includes: a receiving unit 51, an acquiring unit 52, a detecting unit 53, an adjusting unit 54, and a processing unit 55.
The receiving unit 51 may be configured to receive an access request of network data sent by a client. The receiving unit 51 faces the client and is a main function module of the server that receives a service request sent by the client.
The obtaining unit 52 may be configured to obtain, from the access request received by the receiving unit 51, terminal position information corresponding to the terminal device where the client is located, where the terminal position information includes longitude and latitude information and altitude information. The obtaining unit 52 is a main functional module of the server that obtains the terminal location information corresponding to the terminal device where the client is located and carried by the request.
The detecting unit 53 may be configured to detect whether the terminal location information acquired by the acquiring unit 52 is within a preset range of location information of a preset three-dimensional network database, where different location information and signal strength information corresponding to the location information are stored in the preset three-dimensional network database. The preset range may be set according to actual requirements, for example, the preset range may be a range with a radius of 5 meters, 6 meters, and the like, centering on the position information stored in the preset three-dimensional network database.
The adjusting unit 54 may be configured to adjust a data interface corresponding to the network data according to the detection result of the detecting unit 53. The adjusting unit 54 is a main functional module of the server that automatically adjusts the data interface corresponding to the network data according to the detection result.
The processing unit 55 may be configured to process the network data through the adjusted data interface, and send the processed data to the client. For example, when a user is currently accessing a website home page, the server acquires a terminal position 1 of the user terminal device from a webpage data access request sent by the client, if the terminal position 1 is within a preset range of a position 2 stored in a preset three-dimensional network database and the signal intensity corresponding to the position 2 is less than a certain threshold, it can be determined that the user terminal device is currently in a weak network environment, a data interface corresponding to the webpage data is adjusted to a data interface corresponding to the weak network environment, the webpage data is processed through the adjusted data interface, so that the image data in the webpage is adjusted to be standard definition image data or a no-image mode, and then the processed webpage data is sent to the client and displayed to the user for viewing, so that the user can access the webpage data in time in the weak network environment.
Specifically, as shown in fig. 6, the adjusting unit 54 may specifically include: an obtaining module 541 and an adjusting module 542.
The obtaining module 541 may be configured to obtain signal strength information corresponding to the location information if the location information of the terminal is within a preset range of the location information of a preset three-dimensional network database.
The adjusting module 542 may be configured to adjust a data interface corresponding to the network data according to the signal strength information acquired by the acquiring module 541.
The adjusting module 542 may be specifically configured to, if the obtained signal strength information meets a predetermined weak network condition, adjust a data interface corresponding to the network data to a data interface corresponding to the predetermined weak network condition. The predetermined weak network condition may be that a signal strength value included in the signal strength information is smaller than a certain threshold, or may be that a network type included in the signal strength information is 2G, and the like, and may be specifically set according to actual needs.
Further, in order to predict the movement track of the user terminal according to the user terminal location information carried in the network data access request when the user accesses the data, and to refer to the movement track of the user terminal to predict the network environment of the user terminal at the next request, as shown in fig. 6, the server may further include: a determination unit 56.
The determining unit 56 may be configured to determine, according to the terminal location information, movement trajectory information of the terminal device if the obtained signal strength information does not meet a predetermined weak network condition.
The determining unit 56 may be further configured to determine, according to the movement track information, terminal position information corresponding to a movement track of the terminal device in a predetermined time period later.
The obtaining unit 52 may be further configured to, if the signal strength information of the terminal location information determined by the determining unit 56 meets the predetermined weak network condition, obtain, according to the network data, network data that the client needs to request next time.
The processing unit 55 may be further configured to perform corresponding processing on the network data that needs to be requested next time and is acquired by the acquiring unit 52 in advance. If it is supposed that the user terminal will enter the weak network environment, it is shown that the user will be influenced by the weak network environment most probably when accessing data next time, at this moment, the historical behavior data of the user can be combined for analysis, corresponding processing is carried out on data required by the user terminal next time in advance, user habit data can be advanced, the user can use the client application more smoothly, the influence of the weak network environment can be reduced, and then the phenomenon of network blockage can be reduced, and the use experience of the user can be improved.
Specifically, as shown in fig. 6, the obtaining unit 52 may specifically include: an acquisition module 521 and an analysis module 522.
The obtaining module 521 may be configured to obtain, from the access request, the carried client identifier information corresponding to the client.
The analysis module 522 may be configured to perform analysis according to the network data and historical behavior data of the user within a preset time period corresponding to the client identification information, so as to obtain network data that the client needs to request next time.
The processing unit 55 may be specifically configured to send the network data that needs to be requested next time to the client in advance; or the data interface corresponding to the network data required to be requested next time is correspondingly adjusted in advance.
The determining unit 56 may be specifically configured to acquire historical terminal location information corresponding to the client within a preset time period; and determining the movement track information of the terminal equipment according to the historical terminal position information and the terminal position information carried in the access request.
Further, if the obtained signal strength information conforms to a predetermined weak network condition, which indicates that the user is already affected by the weak network environment at this time, the server sends corresponding network data to the client on the terminal device, which may cause phenomena such as packet loss and delay, and in order to reduce the influence of the weak network environment on the user, as shown in fig. 6, the server may further include: and a transmitting unit 57.
The detecting unit 53 may be configured to detect whether a terminal device that has acquired the network data exists within a predetermined range of the terminal device according to the terminal location information.
The sending unit 57 may be configured to, if the detecting unit 53 detects that a terminal device that has acquired the network data exists within a predetermined range of the terminal device, send client identification information corresponding to the terminal device that has acquired the network data to the client, so that the client acquires the network data from the terminal device that has acquired the network data according to the client identification information. And then can let the user normally visit the network data in the weak network environment too, through the scheme of this kind of data network sharing, can reduce the phenomenon that the network card pauses, can promote user's use and experience.
The adjusting unit 54 may be specifically configured to, if the detecting unit 53 detects that there is no terminal device that has acquired the network data within a predetermined range of the terminal device, adjust a data interface corresponding to the network data to a data interface corresponding to the predetermined weak network condition.
It should be noted that the above apparatus embodiment corresponds to the foregoing method embodiment, and specifically, reference may be made to the corresponding descriptions in fig. 2 and fig. 3, for convenience of reading, details of the foregoing method embodiment are not repeated in this apparatus embodiment, but it should be clear that the server in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
According to the server side provided by the embodiment of the application, the network environment where the user is located at present is determined according to the terminal position information which is carried in the network data access request sent by the client side and contains the latitude and longitude information and the altitude information of the user terminal equipment, the data interface corresponding to the network data is correspondingly adjusted, the processing accuracy of the network data can be guaranteed, and finally the processed data is sent to the client side, so that the user can timely access the network data under the weak network environment, the process of experiencing the application of the client side is smoother, and the influence of the weak network environment can be reduced.
Further, as a specific implementation of the method shown in fig. 4, an embodiment of the present application provides a client, and as shown in fig. 7, the client mainly includes: a receiving unit 61 and a transmitting unit 62.
The receiving unit 61 may be configured to receive an access instruction of a user to access network data. The receiving unit 61 is a main functional module in the client for receiving the access instruction and receiving the feedback information of the server.
The sending unit 62 may be configured to send an access request for network data to a server, where the access request carries terminal location information corresponding to a terminal device where the client is located, so that the server adjusts a data interface corresponding to the network data according to a detection result that whether the terminal location information is within a preset range of location information of a preset three-dimensional network database, and processes the network data through the adjusted data interface; the terminal position information comprises longitude and latitude information and altitude information, and the preset three-dimensional network database stores different position information and signal intensity information corresponding to the position information.
The receiving unit 61 may be further configured to receive the processed network data sent by the server.
Further, the receiving unit 61 may be further configured to receive weak network early warning information sent by the server, where the weak network early warning information is sent when the server determines, according to the movement track information of the terminal device, that the terminal position information corresponding to the movement track of the terminal device in a predetermined time period later meets a predetermined weak network condition.
The sending unit 62 may be configured to send an access request of network data that needs to be requested next time to the server according to the weak network early warning information and the network data received by the receiving unit 61.
The receiving unit 61 may be further configured to receive the network data that needs to be requested next time and is sent by the server. When the client receives the weak network early warning information, the network data required to be requested by the client next time can be inferred according to the historical behavior record of the user stored by the client and the network data requested this time, the access request of the network data is sent to the server in advance, and the network data sent by the server can be received in advance, so that the network data can be accessed quickly when the user terminal equipment is in the weak network environment, the user experience process of the client application is smoother, and the influence of the weak network environment can be reduced.
The receiving unit 61 may be further configured to receive network data that is sent by the server and is required by the client next time, where the network data required by the client next time is sent by the server when it is determined that terminal position information corresponding to a movement trajectory of the terminal device in a predetermined time period after the terminal device meets a predetermined weak network condition according to the movement trajectory information of the terminal device. After the client receives the network data required to be requested next time in advance, the network data can be stored in the local cache, and when the user needs to access the network data, the network data can be obtained from the local cache, so that the user terminal equipment can also quickly access the network data in a weak network environment, and the influence of the weak network environment can be reduced.
Further, in order to enable the user to normally access the network data in the weak network environment, as shown in fig. 8, the client may further include: an acquisition unit 63.
The receiving unit 61 may be further configured to receive client identification information corresponding to the terminal device that has acquired the network data, where the client identification information is sent by the server when the server detects, according to the terminal location information, that the terminal device that has acquired the network data exists within a predetermined range of the terminal device.
The obtaining unit 63 may be configured to obtain the network data from the terminal device that has obtained the network data according to the client identification information. And then can let the user normally visit the network data in the weak network environment too, through the scheme of this kind of data network sharing, can reduce the phenomenon that the network card pauses, can promote user's use and experience.
It should be noted that other corresponding descriptions of the functional units related to the client provided in the embodiment of the present invention may refer to the corresponding description in fig. 4, and are not described herein again.
According to another aspect of the embodiments of the present application, there is provided a system for constructing a three-dimensional network database, as shown in fig. 9, the system including: a server 71 and a client 72.
A client 72 operable to receive an access instruction from a user to access network data; sending an access request of network data to a server, where the access request carries terminal position information corresponding to a terminal device where the client 72 is located and signal strength information corresponding to the terminal position information, where the terminal position information includes latitude and longitude information and altitude information, and may be specifically determined according to data acquired by a GPS locator and a gyroscope sensor in the terminal device where the client 72 is located, and the signal strength information may be network type information such as 2G/3G/4G/WiFi, information including a specific signal strength value, or information including a network data transmission speed, and the like.
The server 71 may be configured to receive a network data access request sent by each client 72; collecting terminal position information carried in the network data access request and signal intensity information corresponding to the terminal position information; and then constructing a three-dimensional network database according to the collected terminal position information and the collected signal intensity information.
The system for constructing the three-dimensional network database comprises a server and clients, wherein the server can acquire terminal position information and signal intensity information corresponding to the terminal position information from received network data access requests sent by each client, and further constructs the three-dimensional network database according to the collected data, the more the collected data is, the higher the accuracy of the signal intensity information corresponding to each position information stored in the three-dimensional network database is, when a user accesses the data, the network environment where the user is located at the moment can be accurately judged according to the three-dimensional network database, and therefore the network data requested by the user can be accurately processed.
According to another aspect of the embodiments of the present application, a method for constructing a three-dimensional network database is provided, where the method is mainly applied to a server side, as shown in fig. 10, and the method includes:
801. the server receives network data access requests respectively sent by different clients.
For the embodiment of the application, when a user accesses network data by using a client application, the client sends a network data access request to a server, and the network data access request carries terminal position information of terminal equipment where the client is located and signal strength information corresponding to the terminal position information. In order to construct the three-dimensional network database in the present application, based on a distributed file system, terminal location information and signal strength information corresponding to the terminal location information, which are respectively carried when network data access requests are sent by different clients, may be collected by a server, and the three-dimensional network database is constructed according to the collected sample data, and steps 802 to 803 are specifically executed.
802. And collecting the terminal position information carried in the network data access request and the signal intensity information corresponding to the terminal position information.
803. And constructing a three-dimensional network database according to the collected terminal position information and the collected signal intensity information.
In the embodiment of the present application, a specific technical implementation may be as shown in fig. 11, but is not limited thereto. In fig. 11, the weak network three-dimensional cloud service may call a three-dimensional network database formed by distributed file systems based on Hadoop, Jstorm, Hbase, and the like and stream calculation, where the three-dimensional network database includes different location information and signal strength information corresponding to the location information, and a construction process of the three-dimensional network database may specifically include: the method comprises the steps of backing up collected terminal position information and corresponding signal intensity information through a Hadoop distributed file system, then carrying out data stream processing on the backed-up data through a Jstorm distributed computing system, storing the data after the data stream processing in an Hbase distributed column type database, specifically storing the data after the data stream processing in the Hbase distributed column type database according to three latitudes of longitude, latitude and height in a column manner, wherein the signal intensity information can be a corresponding value, the data is not perfect at first, but the accuracy of the signal intensity information corresponding to each position information stored in a three-dimensional network database is improved along with the increase of user contribution, namely when a large amount of sample data is collected.
Step 803 may specifically include: firstly, constructing a three-dimensional topological graph according to collected terminal position information; then, according to the collected signal intensity information corresponding to the terminal position information, determining the signal intensity information corresponding to the position point in the three-dimensional topological graph, for example, each position point in the three-dimensional topological graph has a respective corresponding network type value; and finally, storing the position information corresponding to the position points in the three-dimensional topological graph and the signal intensity information corresponding to the position points in a preset database to obtain a three-dimensional network database.
According to the collected signal intensity information corresponding to the terminal position information, determining signal intensity information corresponding to a position point in the three-dimensional topological graph, which may specifically include: determining a plurality of signal intensity information corresponding to the position points in the three-dimensional topological graph according to the collected signal intensity information corresponding to the terminal position information; and then calculating average signal strength information corresponding to the plurality of signal strength information as the signal strength information corresponding to the position points.
For example, according to the collected data, the position point a in the three-dimensional topological graph corresponds to 10 network type values, specifically including 2G, 7G, and 1G and 4G, and the average value of the 10 network type values is calculated to be 3G, and then the network type value corresponding to the position point a is set to be 3G, which is used as the signal strength information corresponding to the position point a.
If the number of the signal strength information corresponding to the location point is greater than the predetermined number threshold, for example, the predetermined number threshold may be 3000, 5000, 10 ten thousand, and so on, in order to improve the efficiency of calculating the signal strength information corresponding to the location point, before calculating the average signal strength information corresponding to a plurality of signal strength information as the signal strength information corresponding to the location point, the method may further include: detecting whether signal intensity information occupying a preset proportion exists in a plurality of signal intensity information corresponding to the position point; and if the signal intensity information exists, determining the signal intensity information occupying a preset proportion as the signal intensity information corresponding to the position point. The predetermined proportion can be set according to actual requirements. For example, the predetermined ratio may be 90%, and when it is detected that 90% or more of the network type values corresponding to the location point B are 3G, the network type value corresponding to the location point B is set to 3G as the signal strength information corresponding to the location point B.
Further, in order to ensure the accuracy of the signal strength information corresponding to each piece of location information stored in the three-dimensional network database in real time, the method may further include: and updating the three-dimensional network database according to a preset time interval, adding newly added position information in time, and updating the signal intensity information corresponding to each position information. The predetermined time interval may be set according to actual requirements, and may be set to every 5 minutes, every 1 hour, every 2 hours, and the like, for example.
Specific application scenarios for the method provided in the embodiment of the present application may be as follows, but are not limited thereto:
as shown in fig. 12, when a user is currently accessing a mobile shopping website through a wireless device, a server may determine a current network environment of the wireless device according to the terminal location information of the wireless device and a pre-constructed three-dimensional network database, and perform a processing operation on web page data of the website according to the network environment; if the mobile track of the wireless equipment is combined, when the wireless equipment is determined to enter a weak network area, the server deduces that the user possibly accesses a page of a certain type of mobile phone in the mobile phone shopping website next time according to the previous historical behavior record of the user, and further determines the page data of the type of mobile phone as network data required by the user client next time, so that the page data of the type of mobile phone can be sent to the client of the wireless equipment of the user in advance for caching, and the user can browse the page of the type of mobile phone smoothly when entering the weak network environment.
The method for constructing the three-dimensional network database can be applied to a server side, and can ensure that each accurate position information and signal intensity information corresponding to the position information are stored in the constructed three-dimensional network database; and the three-dimensional network database is updated according to the preset time interval, so that the accuracy of the signal intensity information corresponding to each position information stored in the three-dimensional network database can be ensured in real time.
According to another aspect of the embodiments of the present application, there is provided another method for constructing a three-dimensional network database, the method is mainly applied to a client side, as shown in fig. 13, and the method includes:
901. the client receives an access instruction of a user for accessing the network data.
For example, when the user accesses web page data, listens to a song online, or watches a video online by using the client, an access instruction for accessing the network data is triggered and input, and when receiving the access instruction, the client sends an access request for accessing the network data to the server, that is, step 902 is executed.
902. And sending an access request of the network data to the server.
The access request carries terminal position information corresponding to the terminal device where the client is located and signal strength information corresponding to the terminal position information, so that the server side constructs the three-dimensional network database according to the terminal position information including the longitude and latitude information and the altitude information and the signal strength information, and the process of constructing the three-dimensional network database on the server side can refer to the description in steps 801 to 803, which is not described herein again.
Before step 902, may further include: acquiring longitude and latitude information acquired by a GPS (global positioning system) positioner in the terminal equipment and altitude information acquired by a gyroscope sensor through a preset application program of the terminal equipment where the client is located; and then generating terminal position information according to the longitude and latitude information and the altitude information. The predetermined application program may be configured in the terminal device in advance by a technician and used for acquiring the longitude and latitude information and the altitude information acquired by the sensor, or the predetermined application program may be an application program which is carried by the terminal device system and can acquire the longitude and latitude information and the altitude information acquired by the sensor.
The method for constructing the three-dimensional network database provided by the embodiment of the application can be applied to a client side, when the client side sends an access request of network data to a server side, the access request can carry terminal position information corresponding to terminal equipment where the client side is located and signal intensity information corresponding to the terminal position information, and the terminal position information not only contains longitude and latitude information where the terminal equipment is located, but also contains altitude information where the terminal equipment is located, so that the server side can construct each piece of position information stored in the three-dimensional network database according to the information, and the signal intensity information corresponding to the position information has higher precision.
Further, as a specific implementation of the method shown in fig. 10, an embodiment of the present application provides a server, and as shown in fig. 14, the server may include: receiving unit 101, collecting unit 102, and constructing unit 103.
The receiving unit 101 may be configured to receive network data access requests respectively sent by different clients. The receiving unit 101 faces the client and is a main function module in the server for receiving a service request sent by the client.
The collecting unit 102 may be configured to collect terminal location information carried in the network data access request and signal strength information corresponding to the terminal location information, where the terminal location information includes latitude and longitude information and altitude information. The collecting unit 102 is a main function module of the server that collects terminal location information corresponding to the terminal device where the client is located and signal strength information corresponding to the terminal location information, which are carried in each request.
The constructing unit 103 may be configured to construct a three-dimensional network database according to the collected terminal location information and the collected signal strength information. The building unit 103 is a main functional module for building a three-dimensional network database in the server.
Specifically, as shown in fig. 15, the construction unit 103 includes: a construction module 1031, a determination module 1032, and a saving module 1033.
The constructing module 1031 may be configured to construct a three-dimensional topological graph according to the collected terminal position information.
The determining module 1032 may be configured to determine, according to the collected signal strength information corresponding to the terminal location information, signal strength information corresponding to a location point in the three-dimensional topological graph. For example, each location point in the three-dimensional topology map has a respective corresponding network type value.
The storing module 1033 may be configured to store, in a preset database, the location information corresponding to the location point in the three-dimensional topological graph and the signal strength information corresponding to the location point, so as to obtain a three-dimensional network database.
The determining module 1032 may be specifically configured to determine, according to the collected signal strength information corresponding to the terminal location information, a plurality of pieces of signal strength information corresponding to locations in the three-dimensional topological graph; and calculating average signal intensity information corresponding to the plurality of signal intensity information as the signal intensity information corresponding to the position points. For example, according to the collected data, the position point B in the three-dimensional topological graph corresponds to 20 network type values, specifically including 5 2G, 5G, 3G, and 10 4G, and the average value of the 20 network type values is calculated to be 4G, and then the network type value corresponding to the position point B is set to be 4G, which is used as the signal strength information corresponding to the position point B.
Further, the efficiency of calculating the signal strength information corresponding to the location point is improved, as shown in fig. 15, the server further includes: detection unit 104, determination unit 105.
The detecting unit 104 may be configured to detect whether there is signal intensity information with a predetermined ratio in the plurality of signal intensity information corresponding to the location point if the number of signal intensity information corresponding to the location point is greater than a predetermined number threshold.
The determining unit 105 may be configured to determine, when the detecting unit 104 detects that there is signal intensity information occupying a predetermined proportion among the plurality of signal intensity information corresponding to the location point, the signal intensity information occupying the predetermined proportion as the signal intensity information corresponding to the location point.
The determining module 1032 may be specifically configured to, if it is detected that there is no signal strength information occupying a predetermined proportion in the plurality of signal strength information corresponding to the location point, calculate average signal strength information corresponding to the plurality of signal strength information as the signal strength information corresponding to the location point.
Further, in order to ensure the accuracy of the signal strength information corresponding to each piece of location information stored in the three-dimensional network database in real time, as shown in fig. 15, the server further includes: and an updating unit 106.
The updating unit 106 may be configured to update the three-dimensional network database at predetermined time intervals. The predetermined time interval may be set according to actual requirements, and may be set to every 2 minutes, every 30 minutes, every 1 hour, and the like, for example.
It should be noted that the above apparatus embodiment corresponds to the foregoing method embodiment, and specifically, reference may be made to the corresponding description in fig. 10, so that for convenience of reading, details of the foregoing method embodiment are not repeated in this apparatus embodiment, but it should be clear that the server in this embodiment can correspondingly implement all the contents in the foregoing method embodiment.
The server side provided by the embodiment of the application can acquire the terminal position information and the signal intensity information corresponding to the terminal position information from the received network data access request sent by each client side, and further construct and obtain the three-dimensional network database according to the collected data, so that the three-dimensional network database obtained by construction can be guaranteed to store accurate position information and signal intensity information corresponding to the position information; the three-dimensional network database is updated according to the preset time interval, so that the accuracy of the signal intensity information corresponding to each position information stored in the three-dimensional network database is ensured.
Further, as a specific implementation of the method shown in fig. 13, an embodiment of the present application provides a client, and as shown in fig. 16, the client may include: receiving section 111 and transmitting section 112.
The receiving unit 111 may be configured to receive an access instruction of a user to access network data.
A sending unit 112, configured to send an access request for network data to a server, where the access request carries terminal location information corresponding to a terminal device where the client is located and signal strength information corresponding to the terminal location information, so that the server constructs a three-dimensional network database according to the terminal location information and the signal strength information; the terminal position information comprises longitude and latitude information and altitude information.
Further, as shown in fig. 17, the client further includes: acquisition section 113 and generation section 114.
The obtaining unit 113 may be configured to obtain, through a predetermined application program of the terminal device where the client is located, longitude and latitude information acquired by a global positioning system locator in the terminal device and altitude information acquired by a gyroscope sensor.
A generating unit 114 may be configured to generate terminal position information according to the longitude and latitude information and the altitude information.
It should be noted that other corresponding descriptions of the functional units related to the client provided in the embodiment of the present invention may refer to the corresponding description in fig. 13, and are not described herein again.
The client provided by the embodiment of the application comprises: the system comprises a receiving unit, a sending unit, an obtaining unit, a generating unit and the like, when a client sends an access request of network data to a server, the access request carries terminal position information corresponding to terminal equipment where the client is located and signal intensity information corresponding to the terminal position information, and the terminal position information not only comprises longitude and latitude information of the terminal equipment but also comprises altitude information of the terminal equipment, so that the server can construct each piece of position information stored in a three-dimensional network database according to the information, and the signal intensity information corresponding to the position information has high precision, the three-dimensional network database constructed according to the method is more accurate in processing the network data.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: a server receives an access request of network data sent by a client; acquiring carried terminal position information corresponding to the terminal equipment where the client is located from the access request, wherein the terminal position information comprises longitude and latitude information and altitude information; detecting whether the terminal position information is in a preset range of position information of a preset three-dimensional network database, wherein different position information and signal strength information corresponding to the position information are stored in the preset three-dimensional network database; adjusting a data interface corresponding to the network data according to the detection result; and processing the network data through the adjusted data interface, and sending the processed data to the client.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods of processing network data, methods and systems for building three-dimensional network databases, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (13)

1. A network data processing method is applied to a server side, and is characterized by comprising the following steps:
receiving an access request of network data sent by a client;
acquiring carried terminal position information corresponding to the terminal equipment where the client is located from the access request, wherein the terminal position information comprises longitude and latitude information and altitude information;
detecting whether the terminal position information is in a preset range of position information of a preset three-dimensional network database, wherein different position information and signal strength information corresponding to the position information are stored in the preset three-dimensional network database;
if the terminal position information is within a preset range of position information of a preset three-dimensional network database, acquiring signal intensity information corresponding to the position information; adjusting a data interface corresponding to the network data according to the acquired signal intensity information;
and processing the network data through the adjusted data interface, and sending the processed data to the client.
2. The method according to claim 1, wherein if the acquired signal strength information meets a predetermined weak network condition, the adjusting a data interface corresponding to the network data according to the acquired signal strength information specifically includes:
and adjusting the data interface corresponding to the network data to be the data interface corresponding to the preset weak network condition.
3. The method of claim 1, wherein if the obtained signal strength information does not meet a predetermined weak network condition, the method further comprises:
determining the movement track information of the terminal equipment according to the terminal position information;
determining terminal position information corresponding to the movement track of the terminal equipment in a later preset time period according to the movement track information;
and if the determined signal intensity information of the terminal position information conforms to the preset weak network condition, acquiring network data required by the client next time according to the network data, and performing corresponding processing on the network data required by the client next time in advance.
4. The method for processing network data according to claim 3, wherein the obtaining, according to the network data, network data that the client needs to request next time specifically includes:
acquiring carried client identification information corresponding to the client from the access request;
and analyzing according to the network data and historical behavior data of the user corresponding to the client identification information in a preset time period to obtain network data required by the client next time.
5. The method according to claim 3, wherein the processing the network data that needs to be requested next time in advance includes:
the network data required to be requested next time is sent to the client in advance; or
And correspondingly adjusting the data interface corresponding to the network data required to be requested next time in advance.
6. The method for processing network data according to claim 3, wherein the determining the movement track information of the terminal device according to the terminal location information specifically includes:
acquiring historical terminal position information corresponding to the client within a preset time period;
and determining the movement track information of the terminal equipment according to the historical terminal position information and the terminal position information carried in the access request.
7. The method according to claim 2, wherein before the adjusting the data interface corresponding to the network data to the data interface corresponding to the predetermined weak network condition, the method further comprises:
detecting whether terminal equipment which acquires the network data exists in a preset range of the terminal equipment or not according to the terminal position information;
if the network data exists, the client identification information corresponding to the terminal equipment which has acquired the network data is sent to the client, so that the client acquires the network data from the terminal equipment which has acquired the network data according to the client identification information;
the adjusting the data interface corresponding to the network data to the data interface corresponding to the predetermined weak network condition specifically includes:
and if the network data does not exist, adjusting the data interface corresponding to the network data to be the data interface corresponding to the preset weak network condition.
8. A network data processing method is applied to a client, and is characterized by comprising the following steps:
receiving an access instruction of a user for accessing network data;
sending an access request of network data to a server, wherein the access request carries terminal position information corresponding to terminal equipment where a client is located, so that the server detects whether the terminal position information is within a preset range of position information of a preset three-dimensional network database, if the terminal position information is within the preset range of the position information of the preset three-dimensional network database, signal intensity information corresponding to the position information is acquired, a data interface corresponding to the network data is adjusted according to the acquired signal intensity information, and the network data is processed through the adjusted data interface; the terminal position information comprises longitude and latitude information and altitude information, and different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database;
and receiving the processed network data sent by the server.
9. The method for processing network data according to claim 8, wherein the method further comprises:
receiving weak network early warning information sent by the server, wherein the weak network early warning information is sent when the server determines that terminal position information corresponding to a movement track of the terminal equipment in a preset time period later accords with a preset weak network condition according to the movement track information of the terminal equipment;
sending an access request of network data required to be requested next time to the server according to the weak network early warning information and the network data;
and receiving the network data which is sent by the server and needs to be requested next time.
10. The method for processing network data according to claim 8, wherein the method further comprises:
and receiving network data which is sent by the server and required by the client next time, wherein the network data required by the client next time is sent when the server determines that the terminal position information corresponding to the movement track of the terminal equipment in a later preset time period accords with a preset weak network condition according to the movement track information of the terminal equipment.
11. The method for processing network data according to claim 8, wherein the method further comprises:
receiving client identification information corresponding to the terminal equipment which has acquired the network data and sent by the server, wherein the client identification information is sent when the server detects that the terminal equipment which has acquired the network data exists in a preset range of the terminal equipment according to the terminal position information;
and acquiring the network data from the terminal equipment which has acquired the network data according to the client identification information.
12. A server, comprising:
the receiving unit is used for receiving an access request of network data sent by a client;
the acquisition unit is used for acquiring the carried terminal position information corresponding to the terminal equipment where the client is located from the access request received by the receiving unit, wherein the terminal position information comprises longitude and latitude information and altitude information;
the detection unit is used for detecting whether the terminal position information acquired by the acquisition unit is within a preset range of position information of a preset three-dimensional network database, wherein different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database;
the adjusting unit is used for acquiring signal intensity information corresponding to the position information if the terminal position information is within a preset range of the position information of a preset three-dimensional network database; adjusting a data interface corresponding to the network data according to the signal intensity information;
and the processing unit is used for processing the network data through the adjusted data interface and sending the processed data to the client.
13. A client, comprising:
the receiving unit is used for receiving an access instruction of a user for accessing network data;
a sending unit, configured to send an access request for network data to a server, where the access request carries terminal location information corresponding to a terminal device where the client is located, so that the server detects whether the terminal location information is within a preset range of location information of a preset three-dimensional network database, and if the terminal location information is within the preset range of location information of the preset three-dimensional network database, obtains signal strength information corresponding to the location information, adjusts a data interface corresponding to the network data according to the obtained signal strength information, and processes the network data through the adjusted data interface; the terminal position information comprises longitude and latitude information and altitude information, and different position information and signal intensity information corresponding to the position information are stored in the preset three-dimensional network database;
the receiving unit is further configured to receive the processed network data sent by the server.
CN201710083658.7A 2017-02-16 2017-02-16 Network data processing method, three-dimensional network database construction method and system Active CN108449372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083658.7A CN108449372B (en) 2017-02-16 2017-02-16 Network data processing method, three-dimensional network database construction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083658.7A CN108449372B (en) 2017-02-16 2017-02-16 Network data processing method, three-dimensional network database construction method and system

Publications (2)

Publication Number Publication Date
CN108449372A CN108449372A (en) 2018-08-24
CN108449372B true CN108449372B (en) 2021-05-07

Family

ID=63190646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083658.7A Active CN108449372B (en) 2017-02-16 2017-02-16 Network data processing method, three-dimensional network database construction method and system

Country Status (1)

Country Link
CN (1) CN108449372B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231604A (en) * 2020-06-12 2021-01-15 北京沃东天骏信息技术有限公司 Page display method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7446697B2 (en) * 2007-01-16 2008-11-04 Honeywell International Inc. Method and system for calibrating radar altimeters
CN101635880A (en) * 2009-08-13 2010-01-27 武汉理工大学 Three-dimensional accurate positioning method based on wireless sensor network
CN104580350A (en) * 2013-10-18 2015-04-29 马维尔国际贸易有限公司 Server-based positioning system architecture
CN105656811A (en) * 2014-12-03 2016-06-08 中兴通讯股份有限公司 Displaying method and device of function icon, terminal and network side device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102573049B (en) * 2010-12-14 2014-10-22 北京智慧图科技发展有限责任公司 Method and system for indoor positioning
CN105759240A (en) * 2014-12-19 2016-07-13 中国移动通信集团吉林有限公司 Positioning reference information update method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7446697B2 (en) * 2007-01-16 2008-11-04 Honeywell International Inc. Method and system for calibrating radar altimeters
CN101635880A (en) * 2009-08-13 2010-01-27 武汉理工大学 Three-dimensional accurate positioning method based on wireless sensor network
CN104580350A (en) * 2013-10-18 2015-04-29 马维尔国际贸易有限公司 Server-based positioning system architecture
CN105656811A (en) * 2014-12-03 2016-06-08 中兴通讯股份有限公司 Displaying method and device of function icon, terminal and network side device

Also Published As

Publication number Publication date
CN108449372A (en) 2018-08-24

Similar Documents

Publication Publication Date Title
US10791543B2 (en) Service discovery and provisioning for a macro-vehicular cloud
US10715949B2 (en) Determining timing for determination of applicable geo-fences
US9310518B2 (en) Weather forecasting system and methods
US9510145B2 (en) Battery-saving in geo-fence context method and system
US20170067744A1 (en) Hybrid road network and grid based spatial-temporal indexing under missing road links
CA3064137A1 (en) Method and device for recommending information
CN111597445B (en) Information recommendation method and device
US10909366B2 (en) Joint modeling of object population estimation using sensor data and distributed device data
US9749796B2 (en) Location uncertainty in search
US11521237B2 (en) Method and system for determining fact of visit of user to point of interest
CA3006903A1 (en) Location based information service application
CN112118304A (en) Data pre-caching method and device, electronic equipment and storage medium
CN109005497B (en) Method for determining signal blind area, method and device for determining user position
JP2013137738A (en) Information processing method and device
US20160048857A1 (en) Systems and methods of collecting data to determine interest
CN113986378A (en) Data processing method and device
CN108449372B (en) Network data processing method, three-dimensional network database construction method and system
CN112748453B (en) Road side positioning method, device, equipment and storage medium
CN111947665B (en) Navigation control method, device and equipment and computer storage medium
CN107092611B (en) Method and equipment for determining position information and pushing information
US20150308842A1 (en) Facilitating estimation of mobile device presence inside a defined region
CN107147436B (en) Motion trail query method and device and user terminal
CN108154377B (en) Advertisement cheating prediction method and device
KR102357897B1 (en) Responsiveness to location changes on a webpage
CN110132292B (en) Navigation method, navigation device and electronic equipment

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