Deviation reporting method, device and related equipment
Through data comparison and blockchain network verification between the terminal and the base station data management server, the timeliness and accuracy of base station position deviation monitoring is solved, automatic and objective monitoring and verification of base station position data is realized, and monitoring efficiency is improved. and accuracy.
Patent Information
- Application Number
- CN202110005326.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-05
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2041-01-05
AI Technical Summary
The existing base station position deviation monitoring scheme has poor timeliness and accuracy, which makes it difficult to detect and accurately locate the base station position data errors in a timely manner.
By collecting the displacement data of the preset period and comparing it with the base station displacement data, automatically determine whether the base station deviation status occurs, and report the deviation status to the base station data management server. Combined with the blockchain network to verify the legality of the reporting, it improves the accuracy of monitoring and timely.
It realizes automatic and objective monitoring and verification of base station deviations, effectively avoids errors or malicious reporting, improves the accuracy, objectivity and timeliness of base station deviation monitoring, and reduces operator resource investment.
Smart Images

Figure CN114726875B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communication technology, and in particular to a deviation reporting method, device and related equipment. Background Art
[0002] Base station location data is of great significance to mobile communication network optimization and mobile communication value-added services. For example, based on the base station location, the user's time-space trajectory can be restored, and then put into applications such as population big data, industry tracking, and security monitoring of major events.
[0003] In the real world, base station location data often deviates, that is, the correspondence between Cell ID and longitude and latitude is wrong. On the one hand, during the input of base station location data, errors are introduced due to manual operation of the construction team; on the other hand, due to unexpected situations in base station configuration and construction, or obstructions and reflections in the deployment environment, the actual coverage of the base station deviates from the design target.
[0004] The current solution mainly relies on the operator's network management system, which is a centralized organizational form. That is, the operator assigns a dedicated network optimization / network management team to discover the problem of incorrect base station location marking through road testing, user complaints, etc., and then make corrections.
[0005] Current solutions are often costly, inefficient, and ineffective. Drive testing is limited by vehicle resources and test routes, and cannot cover all areas covered by the network. User complaints often only record the final results felt by ordinary people, such as frequent dropped calls and big data statistical deviations. It is difficult to determine whether it is due to the wrong location of a certain base station. Therefore, base station data errors are often difficult to detect and accurately locate in time, and are difficult to solve.
[0006] It can be seen that the existing monitoring scheme for base station location deviation has technical problems of poor timeliness and accuracy. Summary of the invention
[0007] The embodiment of the present invention provides a deviation reporting method, apparatus and related equipment to solve the problem of poor timeliness and accuracy in existing base station location deviation monitoring solutions.
[0008] To solve the above problems, the present invention is achieved as follows:
[0009] In a first aspect, an embodiment of the present invention provides a deviation reporting method, which is executed by a terminal, and the method includes:
[0010] Collect terminal displacement data for a preset period of time;
[0011] Acquire base station displacement data of the base station to which the terminal is attached within the preset time period from a base station data management server;
[0012] Compare the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs;
[0013] If it is determined that a base station deviation state occurs, the base station deviation state corresponding to the preset time period is reported to the base station data management server.
[0014] In a second aspect, an embodiment of the present invention provides a deviation reporting method, which is executed by a base station data management server, and the method includes:
[0015] Sending to the terminal the base station displacement data of the base station to which the terminal is attached within a corresponding preset time period;
[0016] receiving terminal displacement data reported by the terminal when determining that a base station deviation state occurs;
[0017] The legitimacy of the base station deviation state is verified according to the terminal displacement data.
[0018] In a third aspect, an embodiment of the present invention further provides a deviation reporting method, which is executed by a blockchain network, wherein the blockchain network includes a blockchain, a terminal on-chain node, and a server on-chain node, and the method includes:
[0019] Receiving a data writing request from a terminal through the terminal uplink node;
[0020] Writing a first hash value of the terminal displacement data reported by the terminal into the blockchain;
[0021] Receiving a data acquisition request from a base station data management server through the server link node, wherein the data acquisition request is used to request to acquire the terminal displacement data;
[0022] The terminal displacement data is sent to the base station data management server.
[0023] In a fourth aspect, an embodiment of the present invention further provides a deviation reporting device, including:
[0024] A first transceiver, configured to collect terminal displacement data in a preset period of time, and obtain base station displacement data of a base station to which the terminal is attached in the preset period of time from a base station data management server;
[0025] A first processor is used to compare the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs;
[0026] The first transceiver is further configured to report the base station deviation state corresponding to the preset time period to the base station data management server if it is determined that a base station deviation state occurs.
[0027] In a fifth aspect, an embodiment of the present invention further provides a deviation reporting device, including:
[0028] A second transceiver is used to send base station displacement data of the base station to which the terminal is attached within a preset period to the terminal, and receive the terminal displacement data reported by the terminal when determining that a base station deviation state occurs;
[0029] The second processor is used to verify the legitimacy of the base station deviation state according to the terminal displacement data.
[0030] In a sixth aspect, an embodiment of the present invention further provides a deviation reporting device, including:
[0031] A third transceiver, used for receiving a data writing request of a terminal through the terminal uplink node;
[0032] A third processor is used to write a first hash value of the terminal displacement data reported by the terminal into the blockchain;
[0033] The third transceiver is also used to receive a data acquisition request from a base station data management server through the server link node, wherein the data acquisition request is used to request to acquire the terminal displacement data and send the terminal displacement data to the base station data management server.
[0034] In the seventh aspect, an embodiment of the present invention further provides a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that the processor is used to read the program in the memory to implement the steps in the method described in the first aspect; or, the steps in the method described in the second aspect; or, the steps in the method described in the third aspect.
[0035] In an eighth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein when the program is executed by a processor, the program implements the steps in the method described in the first aspect, or implements the steps in the method described in the second aspect.
[0036] In an embodiment of the present invention, in order to monitor the base station deviation, the terminal obtains the terminal displacement data within a preset time period, and obtains the base station displacement data of the base station to which the terminal is attached through the base station data management server, and compares the two to determine whether a base station deviation state occurs. If the terminal is in a base station deviation state, the base station deviation state can be directly reported to the base station data management server. In addition, the base station data management server can also verify the legitimacy of the base station deviation state. In this way, the terminal can use the terminal displacement data automatically collected and the base station displacement data of the attached base station to automatically and objectively monitor whether a base station deviation state occurs, and can also verify the legitimacy of the base station deviation state reported by the terminal through the base station data management server, effectively avoiding the situation of erroneous reporting or malicious reporting of the base station deviation state, and improving the accuracy, objectivity and timeliness of base station deviation monitoring and reporting. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0038] Figure 1 is a schematic diagram of the structure of a network system to which an embodiment of the present invention can be applied;
[0039] Figure 2 This is one of the flowcharts of the deviation reporting method provided by an embodiment of the present invention;
[0040] Figure 3 is a schematic diagram of a network architecture provided by an embodiment of the present invention;
[0041] Figure 4 is a schematic diagram of a terminal provided by an embodiment of the present invention;
[0042] Figure 5 This is one of the deviation comparison schematic diagrams provided in the embodiment of the present invention;
[0043] Figure 6 This is the second deviation comparison schematic diagram provided by the embodiment of the present invention;
[0044] Figure 7 This is a second flow chart of the deviation reporting method provided by an embodiment of the present invention;
[0045] Figure 8 is a schematic diagram of a base station data management server provided by an embodiment of the present invention;
[0046] Fig. 9 This is a third flow chart of the deviation reporting method provided by an embodiment of the present invention;
[0047] Fig.10 is a schematic diagram of a blockchain network provided by an embodiment of the present invention;
[0048] Fig.11 It is one of the structural schematic diagrams of the deviation reporting device provided by the implementation of the present invention;
[0049] Fig.12 This is the second structural schematic diagram of the deviation reporting device provided by the present invention;
[0050] Fig.13 This is the third structural schematic diagram of the deviation reporting device provided by the present invention;
[0051] Fig.14 It is a schematic diagram of the structure of the communication device provided by the implementation of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] The terms "first", "second" etc. in the embodiments of the present invention are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. In addition, the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment. In addition, "and / or" is used in the present application to represent at least one of the connected objects, such as A and / or B and / or C, which represents 7 situations including single A, single B, single C, and A and B all exist, B and C all exist, A and C all exist, and A, B and C all exist.
[0054] See also Figure 1 , Figure 1 is a structural diagram of a network system to which an embodiment of the present invention can be applied, such as Figure 1 As shown, it includes a terminal 11, a base station data management server 12 and a blockchain network 13. Among them, the terminal 11 and the base station data management server 12 can communicate with the blockchain network 13.
[0055] In practical applications, the terminal may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (PDA), a mobile Internet device (Mobile Internet Device, MID), a wearable device (Wearable Device) or a vehicle-mounted device, etc.
[0056] The deviation reporting method provided by the embodiment of the present invention is described below.
[0057] See also Figure 2 , Figure 2 This is one of the flowcharts of the deviation reporting method provided in the embodiment of the present invention. Figure 2 The deviation reporting method shown can be executed by the terminal.
[0058] like Figure 2 As shown, the deviation reporting method may include the following steps:
[0059] Step 201, collecting terminal displacement data for a preset period of time;
[0060] The terminal is pre-configured with one or more positioning components, such as Figure 3 As shown, for example, satellite positioning GPS, Bluetooth positioning components, WiFi positioning components, etc., during the operation of the terminal, the positioning component can collect a data set of the terminal's mobile position in real time or periodically, and the data collected by the positioning component in the terminal can be defined as terminal displacement data. In this embodiment, the terminal displacement data is data obtained based on at least one positioning method among satellite positioning, WiFi positioning, and Bluetooth positioning. Of course, there are usually associated components for base station positioning in the terminal, and the base station positioning solution in the terminal is ignored in this method.
[0061] In addition, when the terminal is attached to the base station, the attached base station will also collect the terminal's displacement data in the manner of signaling collection, and such displacement data can be distinguished and defined as base station displacement data. The base station will report the mobile communication signaling containing the base station displacement data to the base station data management server.
[0062] Considering that if there is a position deviation of the base station, there will be a certain deviation between the base station displacement data of the terminal fed back by the base station and the terminal displacement data collected by the terminal itself, it can be used to determine whether there is a deviation of the base station.
[0063] Specifically, when the terminal is monitoring the base station deviation, it can collect the terminal displacement data within a preset period of time, which can be a monitoring cycle or a user-defined period. When using the collected terminal displacement data to monitor the base station deviation, the terminal needs to clarify the preset period corresponding to the terminal displacement data, especially the start time and the end time.
[0064] Step 202: Acquire base station displacement data of the base station to which the terminal is attached within the preset time period from a base station data management server;
[0065] When the terminal is performing deviation monitoring, after obtaining the terminal displacement data, it also needs to obtain the base station displacement data in the same period. The base station data management server stores the base station displacement data reported by each base station, and the terminal can request the base station displacement data in the preset period from the base station data management server.
[0066] Step 203: Compare the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs;
[0067] After obtaining the terminal displacement data and the base station displacement data corresponding to the same preset time period, the terminal compares the two. Generally speaking, if there is a difference between the two types of displacement data, it can be determined that the base station deviation state has occurred. If the two types of displacement data are the same, it is determined that the base station deviation state has not occurred. Of course, taking into account the error situation, a deviation threshold can be set, that is, the base station deviation state is determined to occur only when the difference between the two exceeds the deviation threshold, which can improve the accuracy of the base station deviation state statistics.
[0068] Step 204: If it is determined that a base station deviation state occurs, the base station deviation state corresponding to the preset time period is reported to the base station data management server.
[0069] After the terminal determines that a base station deviation state occurs according to the above steps, the terminal can report the base station deviation state corresponding to the preset time period to the base station data management server. After receiving the base station deviation state reported by the terminal, the base station data management server can directly record or notify relevant management personnel to handle the base station deviation fault. The base station can also first count the base station deviation state, and after collecting a certain number of base station deviation state reports, uniformly feedback to relevant management personnel to handle the base station deviation fault.
[0070] like Figure 3 As shown, the terminal includes a network management agent module, which connects to the base station data management server. Three lower-level modules can be mobilized internally:
[0071] 1. Download network trajectory: Download network side displacement trajectory and base station displacement data from the base station data management server.
[0072] 2. Determine abnormal trajectory: Compare the base station displacement data with the terminal displacement data to determine whether there is a large deviation in the network side displacement trajectory. The terminal can provide auxiliary means, such as graphical display, automatic evaluation, etc.
[0073] 3. Report abnormal trajectory: If the deviation between the base station displacement data and the terminal displacement data in a certain period of time is too large, the terminal displacement trajectory of that period of time can be reported to the base station data management system.
[0074] Of course, in order to avoid possible erroneous or malicious reporting by the terminal, the base station data management server can also verify the legitimacy of the received base station deviation status after receiving the base station deviation status reported by the terminal. There are many ways to verify the legitimacy, such as re-acquisition and comparison calculation of relevant displacement data, or verification of the legitimacy of the reporting terminal identity, etc., without limitation. Misjudgment of the correct base station will bring greater negative impact on network operation and maintenance. Errors reported by users may be due to subjective malice or memory errors of the mobile trajectory.
[0075] The base station deviation reporting method of the embodiment of the present invention can not only realize that the terminal uses the terminal displacement data automatically collected and the base station displacement data of the attached base station to automatically and objectively monitor whether the base station deviation state occurs, but also verify the legitimacy of the base station deviation state reported by the terminal through the base station data management server, effectively avoiding the situation of erroneous reporting or malicious reporting of the base station deviation state, and improving the accuracy, objectivity and timeliness of base station deviation monitoring and reporting. The crowdfunding method is adopted, relying on the majority of users to discover and report abnormal base station location data. By comparing the displacement trajectory recorded by the terminal with the base station displacement trajectory on the network side, the base station location abnormality is indirectly discovered, rather than through direct observation. The base station location data abnormality is discovered, and the comprehensiveness and timeliness of the base station deviation are strong.
[0076] On the basis of the above embodiment, after the step of collecting the terminal displacement data of the preset time period, the method may further include:
[0077] A first hash value is calculated according to the terminal displacement data, and the first hash value is reported to the blockchain network.
[0078] In this embodiment, if Figure 4 As shown in the figure, the blockchain network is introduced to cooperate with the base station deviation reporting and legality verification. Specifically, the overall network architecture includes the blockchain network, terminals and base station data management servers, and data interaction is achieved through the mobile communication network within the network architecture. Figure 3 As shown in the figure, a new blockchain proxy module is added to the terminal to connect to the blockchain network. Internally, two lower-level functional modules are mobilized:
[0079] 1. Generate terminal trajectory hash value.
[0080] The terminal trajectory in a specific time period is retrieved from the terminal trajectory database, a string is constructed, and a hash value is generated.
[0081] To facilitate subsequent business logic processing, such as trajectory anomaly comparison analysis and generation of anomaly reports, it is recommended to divide the trajectory into segments, such as one segment per hour.
[0082] 2. Upload the terminal trace hash value, together with the random number r used to generate the hash, to the blockchain network and retry as needed until the record takes effect.
[0083] Figure 4 In the example, step ① is the relevant process of the terminal user during the mobile process, including:
[0084] Terminal side: The terminal records its own displacement trajectory, generates a hash value of the trajectory, defines it as the first hash value, and uploads it to the blockchain network.
[0085] The displacement trajectory recorded on the terminal side is an ordered collection of a series of longitude and latitude coordinates + start and end time periods in chronological order.
[0086] The terminal displacement trajectory is an array / ordered set of time periods plus longitude and latitude, sorted by time. The data structure pseudocode is as follows:
[0087] {
[0088] Msisdn, / / mobile phone number
[0089] TermianlTrail:ordered-set-of LocationPoint{
[0090] StartDateTime, / / Start time
[0091] EndDateTime, / / End time
[0092] Longitude
[0093] Latitude
[0094] } / / LocationPoint
[0095] } / / TerminalTrail
[0096] }.
[0097] For example: {Msisdn=139xxxxxxxx
[0098] TerminalTrail={
[0099] LocationPoint = { / / 9:00 to 9:30 in Innovation Building
[0100] StartDateTime=2020-08-31 09:00:00,
[0101] EndDateTime=2020-08-31 09:29:59,
[0102] Longitude=116.357988,
[0103] Latitude = 39.902538
[0104] },
[0105] LocationPoint = { / / 9:30 to 9:45 at the group company
[0106] StartDateTime=2020-08-31 09:30:00,
[0107] EndDateTime=2020-08-31 09:45:00,
[0108] Longitude=116.36733,
[0109] Latitude = 39.917709
[0110] },
[0111] …
[0112] }
[0113] }.
[0114] At regular intervals, such as 1 hour, the terminal summarizes the displacement trajectory, calculates the first hash value, and uploads it to the blockchain network.
[0115] By calculating and uploading the hash value of the original trajectory record, on the one hand, the amount of data is reduced and the storage space load of the blockchain network is reduced, and on the other hand, user privacy is protected.
[0116] Network side: The mobile communication network reports the mobile communication signaling to the base station data management server according to the existing signaling collection method.
[0117] Furthermore, the step of calculating a first hash value according to the terminal displacement data within the preset time period and reporting the first hash value to the blockchain network may include:
[0118] Calculate the first hash value according to the terminal displacement data and the random number;
[0119] Encrypting the first hash value using a terminal private key and a blockchain public key respectively;
[0120] The encrypted first hash value and the random number are associated and reported to the blockchain network.
[0121] To facilitate subsequent business logic processing, the displacement trajectory can be divided into time periods, such as one section per hour, and the first hash value hash is calculated for each section.
[0122] Input parameters:
[0123] The character string S terminal trajectory segments composed of terminal displacement trajectory segments;
[0124] Blockchain network public key: PE blockchain. PE blockchain (x) means x is encrypted using the public key PE blockchain;
[0125] The terminal private key is Dterminal. Dterminal(x) means x is encrypted using the private key Dterminal;
[0126] A random number r.
[0127] The Hash algorithm required by the present invention can be expressed as:
[0128] Hash value = PE blockchain (D terminal (HASH (S terminal track fragment, r)));
[0129] HASH is a universal hash algorithm, such as SHA-256, etc. The present invention does not limit the hash algorithm represented by HASH.
[0130] The calculated hash value, together with the random number r, msisdn, start and end time StartDateTime, and EndDateTime, are uploaded to the blockchain network. When the base station data management server verifies the legitimacy of the base station deviation status reported by the terminal, it can obtain the first hash value and the random number from the blockchain network for comparison and verification.
[0131] According to another specific implementation of the present disclosure, in order to protect the security of terminal data, the above-mentioned base station displacement data is a regional range parameter after desensitization processing. The step of comparing the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs may include:
[0132] Determine whether there is a deviation point in the terminal displacement trajectory points corresponding to the terminal displacement data, wherein the deviation point is a trajectory point whose deviation distance from the area range corresponding to the area range parameter exceeds a preset distance threshold;
[0133] If there are deviation points in the terminal displacement trajectory points, it is determined that a base station deviation state occurs.
[0134] In this implementation, in order to prevent base station data leakage and theft of base station equipment, when users request base station displacement data, it is necessary to perform desensitization, and the obtained area range parameters are used to represent the coordinate parameters of the corresponding area range, that is, a geographical area range is used to replace the longitude and latitude of the base station. The geographical area range can be a prototype (represented by a center point and radius) or a polygon (represented by an ordered set of longitude and latitude of each vertex). This geographical range should be roughly equivalent to the range covered by the base station, as shown in the following example. Figure 5 For example, the actual latitude and longitude of the base station displacement data is:
[0135]
[0136] The regional range parameters after desensitization, i.e. the geographical range (circle), are shown as follows:
[0137]
[0138]
[0139] In a specific example, the determination process of unreasonable deviation between the terminal displacement trajectory and the network side trajectory is specifically explained. If the terminal displacement trajectory deviates from the network trajectory to an unreasonable degree, it is likely that the base station location data is wrong.
[0140] There are two ways to determine:
[0141] 1. Display it directly to users and let them make their own judgment.
[0142] 2. Automatic judgment: Some segments of the terminal displacement trajectory exceed the range of the desensitized trajectory on the network side.
[0143] Automatic judgment algorithm:
[0144] If there is a point P on the terminal displacement trajectory, such that for the network-side trajectory and each geographical range after desensitization, P satisfies the following two conditions at the same time, it can be determined that the terminal displacement trajectory deviates from the network-side trajectory. That is:
[0145] P is not in any circular area, that is, the Euclidean distance from P to the center of the circle is greater than the radius of the circle;
[0146] P is not inside any polygonal area.
[0147] The present invention is not limited to the algorithm, for example, it is to determine whether the number of intersections between radial lines from P and the polygon is even or odd.
[0148] like Figure 6As shown, the dotted line is the area range after the base station displacement data is desensitized, and the solid line is the terminal displacement data. There is no deviation on the left, and there is a point P on the right where a deviation occurs.
[0149] In summary, the deviation reporting method provided in this embodiment provides a base station location data correction method based on "crowdfunding + trajectory comparison + blockchain to prevent malicious intent". "Crowdfunding" discovers abnormal base station location data, rather than relying on a professional network management team to check and discover abnormal base station location data. The basis for checking the abnormality is that the displacement trajectory on the user side is different from the displacement trajectory recorded on the network side, which is an indirect method; rather than directly observing the location of the base station. In addition, blockchain is used to identify and prevent malicious reporting. Relying on users to discover base station problems can realize 7*24-hour troubleshooting of all base stations, and does not require operators to invest too many resources, which is highly efficient. The introduction of blockchain protects user privacy from being leaked, eliminates malicious reporting, and is safe and reliable.
[0150] See also Figure 7 , Figure 7 This is the second flowchart of the deviation reporting method provided by the embodiment of the present invention. The deviation reporting method of the embodiment of the present invention can be executed by the base station data management server.
[0151] like Figure 7 As shown, the deviation reporting method may include the following steps:
[0152] Step 701: Sending base station displacement data of a base station to which the terminal is attached within a preset period of time to the terminal;
[0153] like Figure 8 As shown in FIG. 1 , the functional structure diagram of the base station data management server is divided into two modules, namely, maintaining the network side track and judging the abnormality of the base station data. These two modules can be further divided into functional modules.
[0154] The module that maintains the network-side trajectory is used to collect communication signaling and generate the network-side trajectory of a specific user. The network-side trajectory is also composed of a series of location points. The longitude and latitude of each location point is usually the longitude and latitude of the base station to which the user is attached. That is, when a user requests to query the network-side trajectory, this module reads the trajectory record of the user in a specific time period and sends it to the user. Among them, in order to protect the operator's base station data from leakage, the longitude and latitude of the base station need to be replaced with a geographical area range, such as a circular area or a polygonal area.
[0155] Step 702: receiving terminal displacement data reported by the terminal when determining that a base station deviation state occurs;
[0156] Step 703: Verify the legitimacy of the base station deviation state according to the terminal displacement data.
[0157] The module for judging base station data anomalies includes three sub-functions:
[0158] Receive the terminal trajectory, and receive a fragment of the terminal displacement trajectory in a certain time period reported by the user (including the random number r);
[0159] Verify the terminal trajectory hash to determine whether the terminal displacement trajectory uploaded by the user is authentic.
[0160] Specific steps: (1) Calculate the hash value for the fragment of the terminal displacement trajectory (and the random number r) uploaded by the user; (2) Query and download the hash value of the user's displacement trajectory for a specific time period from the blockchain; (3) Compare the two hash values. If they are equal, the terminal displacement trajectory uploaded by the user is considered to be authentic and valid; otherwise, it is considered to be a malicious report.
[0161] Report base station anomalies. If the previous step excludes malicious reporting by users, a report on base station location data anomalies can be generated, along with terminal displacement trajectories, network side trajectories, etc., and reported to the network administrator.
[0162] Optionally, this step can automatically compare the terminal displacement trajectory and the network side trajectory to further confirm the details of the abnormal base station location data.
[0163] The base station data management system may temporarily not report to the administrator, but accumulate and record deviation reports related to the base station; when the number of reports exceeds a threshold, it will report to the administrator to further eliminate false alarms.
[0164] Further, the step of verifying the legitimacy of the base station deviation state according to the terminal displacement data includes:
[0165] Downloading a first hash value of the terminal corresponding to the preset time period from the blockchain network;
[0166] Calculate a second hash value according to the terminal displacement data;
[0167] The legitimacy of the base station deviation state is verified according to the first Hash value and the second Hash value.
[0168] Furthermore, the step of verifying the legitimacy of the base station deviation state according to the terminal displacement data further includes:
[0169] Downloading a random number corresponding to the first hash value from the blockchain network;
[0170] The step of calculating the second hash value according to the terminal displacement data comprises:
[0171] A second Hash value is calculated according to the terminal displacement data and the random number.
[0172] The base station data management system calculates the hash value of the terminal side trajectory record, and then queries the hash value corresponding to the displacement trajectory of the user (msisdn) and the time period (start and end time period) from the blockchain network. If the hash values are the same, the user report is considered to be valid; if the hash values are different, it is considered to be a malicious report.
[0173] The deviation reporting method of this embodiment can not only enable the terminal to use the terminal displacement data automatically collected and the base station displacement data of the attached base station to automatically and objectively monitor whether a base station deviation state occurs, but also verify the legitimacy of the base station deviation state reported by the terminal through the base station data management server, effectively avoiding erroneous reporting or malicious reporting of the base station deviation state, and improving the accuracy, objectivity and timeliness of base station deviation monitoring and reporting.
[0174] It should be noted that this embodiment is an implementation of a terminal corresponding to the above method embodiment, and therefore, reference may be made to the relevant description in the above method embodiment, and the same beneficial effects can be achieved. To avoid repeated description, it will not be repeated here.
[0175] See also Fig. 9 , Fig. 9 This is the third flow chart of the deviation reporting method provided by the embodiment of the present invention. The deviation reporting method of the embodiment of the present invention can be executed by a blockchain network. The blockchain network includes a blockchain, a terminal on-chain node, and a server on-chain node, such as Fig. 9 The method comprises:
[0176] Step 901, receiving a data writing request from a terminal through a terminal uplink node;
[0177] In this embodiment, the core functions of the blockchain network include: (1) being able to record the hash of the terminal displacement trajectory reported by the terminal; and (2) providing a query function.
[0178] like Fig.10 As shown, the blockchain network includes a blockchain part and a member identity management part.
[0179] Blockchain part: blockchain ledger, sorting node, terminal on-chain node, network management on-chain node.
[0180] The terminal on-chain node completes the blockchain operation initiated by the terminal, including: writing the terminal path hash to the blockchain.
[0181] The network management on-chain node completes the blockchain operations initiated by the network management system, including: reading the blockchain and querying the terminal trajectory hash of a specific terminal and a specific time period.
[0182] The sorting node confirms the on-chain operation notification and writes it into the blockchain ledger.
[0183] The blockchain ledger realizes the data storage and status recording of the blockchain.
[0184] Member identity management part: including identity management, CA, authentication and other modules.
[0185] Identity management is responsible for maintaining the associations between accounts, roles, and permissions.
[0186] CA is responsible for generating and issuing identity authentication certificates for the network management system and each terminal.
[0187] Authentication is responsible for user access authentication, etc.
[0188] Step 902, writing the first hash value of the terminal displacement data reported by the terminal into the blockchain;
[0189] Step 903, receiving a data acquisition request from a base station data management server through a server link node, wherein the data acquisition request is used to request to acquire the terminal displacement data;
[0190] Step 904: Send the terminal displacement data to the base station data management server.
[0191] Further, such as Fig.10 As shown, the blockchain also includes a certificate verification node, and the step of writing the first hash value of the terminal displacement data reported by the terminal into the blockchain includes:
[0192] Verifying the legitimacy of the certificate of the terminal through the certificate verification node;
[0193] When the legitimacy verification of the certificate of the terminal passes, writing the first hash value of the terminal displacement data reported by the terminal into the blockchain through the terminal on-chain node;
[0194] The step of sending the terminal displacement data to the base station data management server comprises:
[0195] Verifying the legitimacy of the certificate of the base station data management server through the certificate verification node;
[0196] When the legitimacy verification of the certificate of the base station data management server is passed, the terminal displacement data is sent to the base station data management server through the server chain node.
[0197] The deviation reporting method of this embodiment can not only enable the terminal to use the terminal displacement data automatically collected and the base station displacement data of the attached base station to automatically and objectively monitor whether a base station deviation state occurs, but also verify the legitimacy of the base station deviation state reported by the terminal through the base station data management server, effectively avoiding erroneous reporting or malicious reporting of the base station deviation state, and improving the accuracy, objectivity and timeliness of base station deviation monitoring and reporting.
[0198] It should be noted that this embodiment is an implementation of the terminal and base station data management server corresponding to the above method embodiment, so the relevant description in the above method embodiment can be referred to, and the same beneficial effects can be achieved. In order to avoid repeated description, it will not be repeated here.
[0199] The various optional implementation modes introduced in the embodiments of the present invention may be implemented in combination with each other or may be implemented separately if they do not conflict with each other, and the embodiments of the present invention are not limited to this.
[0200] See also Fig.11 , Fig.11 This is one of the structural diagrams of the deviation reporting device provided by the embodiment of the present invention. Fig.11 As shown, the deviation reporting device 1100 includes:
[0201] The first transceiver 1101 is used to collect terminal displacement data in a preset period of time, and obtain the base station displacement data of the base station to which the terminal is attached in the preset period of time from the base station data management server;
[0202] The first processor 1102 is used to compare the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs;
[0203] The first transceiver 1101 is further configured to report the base station deviation status corresponding to the preset time period to the base station data management server if it is determined that a base station deviation status occurs.
[0204] Optionally, the first processor 1102 is further configured to:
[0205] A first hash value is calculated according to the terminal displacement data, and the first hash value is reported to the blockchain network.
[0206] Optionally, the first processor 1102 is further configured to:
[0207] Calculate the first hash value according to the terminal displacement data and the random number;
[0208] Encrypting the first hash value using a terminal private key and a blockchain public key respectively;
[0209] The first transceiver 1101 is further configured to:
[0210] The encrypted first hash value and the random number are associated and reported to the blockchain network.
[0211] Optionally, the base station displacement data is a desensitized area range parameter, and the first processor 1102 is further configured to:
[0212] Determine whether there is a deviation point in the terminal displacement trajectory points corresponding to the terminal displacement data, wherein the deviation point is a trajectory point whose deviation distance from the area range corresponding to the area range parameter exceeds a preset distance threshold;
[0213] If there are deviation points in the terminal displacement trajectory points, it is determined that a base station deviation state occurs.
[0214] Optionally, the terminal displacement data is data obtained based on at least one positioning method of satellite positioning, WiFi positioning, and Bluetooth positioning.
[0215] The deviation reporting device 1100 can realize the embodiment of the present invention Figure 2 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0216] See also Fig.12 , Fig.12 This is the second structural diagram of the deviation reporting device provided by the embodiment of the present invention. Fig.12 As shown, the deviation reporting device 1200 includes:
[0217] The second transceiver 1201 is used to send the base station displacement data of the base station to which the terminal is attached within a preset period to the terminal, and receive the terminal displacement data reported by the terminal when determining that a base station deviation state occurs;
[0218] The second processor 1202 is configured to verify the legitimacy of the base station deviation state according to the terminal displacement data.
[0219] Optionally, the second processor 1202 is configured to:
[0220] Downloading a first hash value of the terminal corresponding to the preset time period from the blockchain network;
[0221] Calculate a second hash value according to the terminal displacement data;
[0222] The legitimacy of the base station deviation state is verified according to the first Hash value and the second Hash value.
[0223] Optionally, the second processor 1202 is configured to:
[0224] Downloading a random number corresponding to the first hash value from the blockchain network;
[0225] The second Hash value is calculated according to the terminal displacement data and the random number.
[0226] The deviation reporting device 1200 can realize the embodiment of the present invention Figure 7 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0227] See also Fig.13 , Fig.13 This is the third structural diagram of the deviation reporting device provided by the embodiment of the present invention. Fig.13 As shown, the deviation reporting device 1300 includes:
[0228] The third transceiver 1301 is used to receive a data writing request from the terminal through the terminal uplink node;
[0229] The third processor 1302 is configured to write a first hash value of the terminal displacement data reported by the terminal into a blockchain;
[0230] The third transceiver 1301 is also used to receive a data acquisition request from a base station data management server through the server link node, and the data acquisition request is used to request to obtain the terminal displacement data, and send the terminal displacement data to the base station data management server
[0231] The blockchain further includes a certificate verification node, and the third processor 1302 is further configured to:
[0232] Verifying the legitimacy of the certificate of the terminal through the certificate verification node;
[0233] When the legitimacy verification of the certificate of the terminal passes, writing the first hash value of the terminal displacement data reported by the terminal into the blockchain through the terminal on-chain node;
[0234] Verifying the legitimacy of the certificate of the base station data management server through the certificate verification node;
[0235] When the legitimacy verification of the certificate of the base station data management server is passed, the terminal displacement data is sent to the base station data management server through the server chain node.
[0236] The deviation reporting device 1300 can realize the embodiment of the present invention Fig. 9 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0237] The embodiment of the present invention also provides a communication device. Fig.14, the communication device may include a processor 1401, a memory 1402, and a program 14021 stored in the memory 1402 and executable on the processor 1401.
[0238] When the communication device is a terminal, the program 14021 can be executed by the processor 1401 to achieve Figure 2 Any steps in the corresponding method embodiments and achieving the same beneficial effects are not repeated here. In the case where the communication device is a base station data management server, program 14021 can be implemented when executed by processor 1401 Figure 7 Any steps in the corresponding method embodiments and achieving the same beneficial effects are not repeated here. In the case where the communication device is a blockchain network, program 14021 can be implemented when executed by processor 1401 Fig. 9 Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated.
[0239] A person skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware related to program instructions, and the program can be stored in a readable medium. The embodiment of the present invention also provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 2 , Figure 7 or Fig. 9 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be described again to avoid repetition.
[0240] The storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0241] The above is a preferred implementation of the embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A deviation reporting method, characterized in that: Executed by a terminal, the method includes: Collect terminal displacement data for a preset period of time; Acquire base station displacement data of the base station to which the terminal is attached within the preset time period from a base station data management server; Compare the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs; If it is determined that a base station deviation state occurs, reporting the base station deviation state corresponding to the preset time period to the base station data management server; After the step of collecting the terminal displacement data for a preset period of time, the method further includes: A first hash value is calculated according to the terminal displacement data, and the first hash value is reported to the blockchain network.
2. The method according to claim 1, characterized in that: The step of calculating a first hash value according to the terminal displacement data and reporting the first hash value to the blockchain network includes: Calculate the first Hash value according to the terminal displacement data and the random number; Encrypting the first hash value using a terminal private key and a blockchain public key respectively; The encrypted first hash value and the random number are associated and reported to the blockchain network.
3. The method according to claim 1, characterized in that The base station displacement data is a regional range parameter after desensitization processing, and the step of comparing the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs includes: Determine whether there is a deviation point in the terminal displacement trajectory points corresponding to the terminal displacement data, wherein the deviation point is a trajectory point whose deviation distance from the area range corresponding to the area range parameter exceeds a preset distance threshold; If there are deviation points in the terminal displacement trajectory points, it is determined that a base station deviation state occurs.
4. A deviation reporting method, characterized in that: Executed by a base station data management server, the method includes: Sending to the terminal the base station displacement data of the base station to which the terminal is attached within a corresponding preset time period; receiving terminal displacement data reported by the terminal when determining that a base station deviation state occurs; Verifying the legitimacy of the base station deviation state according to the terminal displacement data; The step of verifying the legitimacy of the base station deviation state according to the terminal displacement data comprises: Downloading a first hash value of the terminal corresponding to the preset time period from the blockchain network; Calculate a second hash value according to the terminal displacement data; The legitimacy of the base station deviation state is verified according to the first Hash value and the second Hash value.
5. The method according to claim 4, characterized in that The step of downloading the first hash value of the terminal corresponding to the preset time period from the blockchain network also includes: Downloading a random number corresponding to the first hash value from the blockchain network; The step of calculating the second hash value according to the terminal displacement data comprises: The second Hash value is calculated according to the terminal displacement data and the random number.
6. A deviation reporting method, characterized in that: The method is performed by a blockchain network, wherein the blockchain network includes a blockchain, a terminal on-chain node, and a server on-chain node, and the method includes: Receiving a data writing request from a terminal through the terminal uplink node; Writing a first hash value of the terminal displacement data reported by the terminal into the blockchain; Receiving a data acquisition request from a base station data management server through the server link node, wherein the data acquisition request is used to request to acquire the terminal displacement data; The terminal displacement data is sent to the base station data management server.
7. The method according to claim 6, characterized in that The blockchain further includes a certificate verification node, and the step of writing the first hash value of the terminal displacement data reported by the terminal into the blockchain includes: Verifying the legitimacy of the certificate of the terminal through the certificate verification node; When the legitimacy verification of the certificate of the terminal passes, writing the first hash value of the terminal displacement data reported by the terminal into the blockchain through the terminal on-chain node; The step of sending the terminal displacement data to the base station data management server comprises: Verifying the legitimacy of the certificate of the base station data management server through the certificate verification node; When the legitimacy verification of the certificate of the base station data management server is passed, the terminal displacement data is sent to the base station data management server through the server chain node.
8. A deviation reporting device, characterized in that: include: A first transceiver, configured to collect terminal displacement data in a preset period of time, and obtain base station displacement data of a base station to which the terminal is attached in the preset period of time from a base station data management server; A first processor is used to compare the terminal displacement data with the base station displacement data to determine whether a base station deviation state occurs; The first transceiver is further configured to report the base station deviation state corresponding to the preset time period to the base station data management server if it is determined that the base station deviation state occurs; The first processor is further configured to: A first hash value is calculated according to the terminal displacement data, and the first hash value is reported to the blockchain network.
9. A deviation reporting device, characterized in that: include: A second transceiver is used to send base station displacement data of the base station to which the terminal is attached within a preset period to the terminal, and receive the terminal displacement data reported by the terminal when determining that a base station deviation state occurs; A second processor, configured to verify the legitimacy of the base station deviation state according to the terminal displacement data; The second processor is used for: Downloading a first hash value of the terminal corresponding to the preset time period from the blockchain network; Calculate a second hash value according to the terminal displacement data; The legitimacy of the base station deviation state is verified according to the first Hash value and the second Hash value.
10. A deviation reporting device, characterized in that: include: The third transceiver is used to receive a data writing request from the terminal through the terminal uplink node; A third processor is used to write a first hash value of the terminal displacement data reported by the terminal into the blockchain; The third transceiver is also used to receive a data acquisition request from a base station data management server through a server link node, wherein the data acquisition request is used to request to acquire the terminal displacement data and send the terminal displacement data to the base station data management server.
11. A communication device, comprising: A transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; wherein the processor is used to read the program in the memory to implement the steps in the deviation reporting method as described in any one of claims 1 to 3; or, the steps in the deviation reporting method as described in claim 4 or 5; or, the steps in the deviation reporting method as described in claim 6 or 7.
12. A readable storage medium for storing a program, characterized in that: When the program is executed by the processor, the steps of the deviation reporting method according to any one of claims 1 to 3 are implemented; Or, the steps in the deviation reporting method as claimed in claim 4 or 5; Or, the steps in the deviation reporting method as described in claim 6 or 7.
Citation Information
Patent Citations
Credible traceability system and method based on block chain and Internet of Things
CN111181946A
Method for certifying a user by using mobile id through blockchain database and merkle tree structure related thereto, and terminal and server using the same
KR101858653B1
A control system for unmanned moving vechicle using blockchain and a control method thereof
KR102026580B1
KR20190023274A
