CN112492572B - Method and device for constructing terminal history library of Internet of things - Google Patents

Method and device for constructing terminal history library of Internet of things Download PDF

Info

Publication number
CN112492572B
CN112492572B CN202011451987.0A CN202011451987A CN112492572B CN 112492572 B CN112492572 B CN 112492572B CN 202011451987 A CN202011451987 A CN 202011451987A CN 112492572 B CN112492572 B CN 112492572B
Authority
CN
China
Prior art keywords
terminal
imei
abnormal
library
mdn
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
CN202011451987.0A
Other languages
Chinese (zh)
Other versions
CN112492572A (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.)
Unihub China Information Technology Co Ltd
Original Assignee
Unihub China Information Technology Co 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 Unihub China Information Technology Co Ltd filed Critical Unihub China Information Technology Co Ltd
Priority to CN202011451987.0A priority Critical patent/CN112492572B/en
Publication of CN112492572A publication Critical patent/CN112492572A/en
Application granted granted Critical
Publication of CN112492572B publication Critical patent/CN112492572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/04Registration at HLR or HSS [Home Subscriber Server]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/12Mobility data transfer between location registers or mobility servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method and a device for constructing an Internet of things terminal historical library, wherein the method comprises the following steps: radius data are butted and analyzed; HSS IMEI information butt joint; abnormal access data storage of a terminal history library; normally accessing a terminal history library to store data; identifying an abnormal terminal; terminal lifecycle querying and diagnosis. The method and the device realize a terminal and card number historical library, which comprises terminal information of normal access and terminal information of abnormal access; the last access time of abnormal access can be updated in real time by introducing the attachment record of the DPI, so that a user can know the last access behavior of the terminal conveniently; and an interface for inquiring in multiple dimensions is provided, and the diagnosis function of the abnormal terminal is on line.

Description

Method and device for constructing terminal history library of Internet of things
Technical Field
The invention relates to the field of business of the Internet of things, in particular to a method and a device for constructing a terminal history library of the Internet of things.
Background
With the continuous development of the internet technology, the internet of things technology also faces explosion-shed development, particularly the development and popularization of the 5G technology promote the mass growth of terminals of the internet of things, and the increasing maturity of the sensor technology is an important driving factor for the rapid development of the internet of things. It promotes the sustainable development of small, low-cost and low-power applications by converting physical information of the real world into virtual data. With the development of various industries using internet of things terminals to access networks, particularly in the fields of meter reading, car networking, intelligent wearable equipment, industrial internet of things and the like, the internet of things terminals are distributed in buildings, outdoors and even basements and other spaces.
Due to wide distribution, the internet of things terminal is also stolen, and the internet of things network card is used in other illegal terminals and used for illegal purposes such as short message fraud and the like. Therefore, at present, a 4G network generally uses a machine-card binding policy, and by configuring IMEI of a terminal and IMSI of an internet of things card to bind on an HSS, the internet of things card can only be used on one terminal. When the terminal accesses, the MME carries IMEI information when reporting the authorization information, the HSS verifies the reported information through the bound IMEI, and if the verification fails, the terminal is not allowed to access the network. However, currently, only a single card can be used for conducting the machine-card binding query of the HSS, and the historical relationship between the terminal and the MDN and IMSI cannot be queried. Therefore, it is desirable to build a library of terminals to record the life cycle of the card and the terminal.
Disclosure of Invention
When the internet of things service is used, in order to meet the anti-theft requirement, the terminal and the card number need to be bound by a machine and a card, and the HSS signs the machine and the card to be bound by an appointed terminal IMEI or an IMEI which is normally accessed for the first time. Currently, single-user machine-card binding information on the HSS can be queried through a query interface. In order to solve the problems that when a user has a problem of machine-card binding, the user cannot know the IMEI of a terminal which is accessed last, and the client cannot know the change of the terminal at the first time, the invention provides the method and the device for constructing the terminal history library of the Internet of things, which can inquire the change record of the terminal, inquire the IMEI information which is accessed last of the terminal, diagnose the abnormal machine-card binding, and inquire the history change record information of the terminal in batches.
In order to realize the purpose, the invention adopts the following technical scheme:
in an embodiment of the present invention, a method for constructing an internet of things terminal history library is provided, where the method includes:
radius data docking and analyzing: in the 4G network, if the terminal of the Internet of things is accessed to the online, a business gateway PGW sends the radius records of the online, the updating and the offline of a user, and the radius records are sent to a receiving server through configuration; the receiving server distributes the radius records through deploying the LVS, and writes the radius records into a message queue deployed at the rear end of the LVS through a flux middleware deployed in the application server; the resolving server reads radius records from the message queue for resolving;
HSS IMEI information docking: the machine-card binding information signs a contract on HSS, if the card is used by other terminals, a notification message is triggered, and the current abnormal terminal MDN, IMSI, IMEI, event time and position information are reported to a server;
and (3) abnormal access data storage of a terminal history library: if the HSS IMEI reports the abnormal record, judging whether the MDN and the IMEI are used as main keys to exist in a memory bank or not, if so, refreshing the last access time, if not, setting the state accessed into a terminal history bank as abnormal, and updating the abnormal IMEI and events of the MDN;
and (3) normal access data storage of a terminal history library: judging whether the MDN and the IMEI in the radius record exist in a memory bank or not, if so, updating the last access time, and if not, inserting the MDN and the IMEI as a new record into a terminal history bank, and updating the last access time of the last normally accessed data into the event time of the current data;
and (3) abnormal terminal identification: reporting an abnormal record to HSS IMEI, wherein the terminal directly judges the state to be abnormal, for other normal state records, if the terminal and the access position are changed, triggering a judgment rule, marking the terminal as abnormal change, and subsequently judging whether the terminal is abnormal or not by an enterprise manager;
terminal lifecycle query and diagnosis: after the terminal history library is constructed, the capability of the external interface is required to be provided, and the method comprises the following steps: inquiring the accessed terminal history record through the card number, inquiring the accessed card number history record through the IMEI of the terminal and judging whether the card number is accessed by an abnormal terminal.
Further, radius records contain data information such as: event time, MDN, IMSI, IMEI, location information, status type, and access APN.
Furthermore, in the HSS IMEI information docking, DPI data processing attachment request failure data are also docked, and IMEI recording is carried out.
Further, the fields stored in the terminal history repository are: MDN, IMSI, IMEI, initial access time of the terminal, final access time of the terminal, position information and state.
Furthermore, different terminals are judged according to the IMEI, and the first eight bits of the IMEI are matched through a module library, so that the type and the detailed model of the terminal are associated.
In an embodiment of the present invention, a device for constructing a history library of an internet of things terminal is further provided, where the device includes:
the radius data docking and analyzing module is used for sending the radius record of the online, updating and offline of the user by the PGW in the 4G network if the terminal of the Internet of things is accessed online, and sending the radius record to the receiving server through configuration; the receiving server distributes the radius records through deploying the LVS, and writes the radius records into a message queue deployed at the rear end of the LVS through a flux middleware deployed in the application server; the analysis server reads radius records from the message queue for analysis;
the HSS IMEI information docking module is used for signing on an HSS by the machine-card binding information, if the card is used by other terminals, a notification message is triggered, and the current abnormal terminal MDN, IMSI, IMEI, event time and position information are reported to the server;
the terminal history library abnormal access data storage module is used for judging whether the MDN and the IMEI are used as main keys to exist in a memory library or not if the HSS IMEI reports an abnormal record, refreshing the last access time if the MDN and the IMEI exist in the memory library, setting the state accessed into the terminal history library as abnormal if the MDN and the IMEI do not exist, and updating the abnormal IMEI and events of the MDN;
the terminal history library normal access data storage module is used for judging whether the MDN and the IMEI in the radius record exist in the memory library or not, if the MDN and the IMEI exist in the memory library and the event time is greater than the recording time, updating the last access time, if the MDN and the IMEI do not exist in the memory library, inserting the MDN and the IMEI as a new record into the terminal history library, and updating the last access time of the last normal access data into the event time of the current data;
the abnormal terminal identification module is used for reporting an abnormal record to the HSS IMEI, the terminal directly judges the state to be abnormal, for other normal state records, if the terminal and the access position are changed, a judgment rule is triggered, the terminal is marked to be abnormal, and then an enterprise manager judges whether the terminal is abnormal or not;
the terminal life cycle inquiry and diagnosis module is used for constructing a terminal history library and providing the capability for an external interface, and comprises the following components: inquiring the accessed terminal history record through the card number, inquiring the accessed card number history record through the IMEI of the terminal and judging whether the card number is accessed by an abnormal terminal.
Further, radius records contain data information such as: event time, MDN, IMSI, IMEI, location information, status type, and access APN.
Furthermore, the HSS IMEI information docking module is further configured to dock DPI data processing attach request failure data, and perform IMEI recording.
Further, the fields stored in the terminal history repository are: MDN, IMSI, IMEI, initial access time of the terminal, final access time of the terminal, position information and state.
Furthermore, different terminals are judged according to the IMEI, and the first eight bits of the IMEI are matched through a module library, so that the type and the detailed model of the terminal are associated.
In an embodiment of the present invention, a computer device is further provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the method for constructing the internet of things terminal history library is implemented.
In an embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program for executing the method for constructing the internet of things terminal history library is stored in the computer-readable storage medium.
Has the advantages that:
1. the invention realizes the terminal and card number history database, which contains the terminal information of normal access and the terminal information of abnormal access.
2. The invention can update the last access time of abnormal access in real time by introducing the attachment record of the DPI, and is convenient for users to know the last access behavior of the terminal.
3. The invention provides an interface for multi-dimension query and the diagnosis function of the abnormal terminal is online.
Drawings
Fig. 1 is a schematic flow chart of a method for constructing an internet of things terminal history library according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for constructing a history library of an internet of things terminal according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments, which should be understood to be presented only to enable those skilled in the art to better understand and implement the present invention, and not to limit the scope of the present invention in any way. 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.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a radius record which can be sent to be on-line is accessed on a PGW by a terminal, the record comprises MDN (minimization of mobile telecommunication number), IMEI (international mobile equipment identity) information and the like, a normal terminal can be constructed to be put in storage through on-line, updating and off-line records, and IMEI (international mobile equipment identity), MDN (minimization of mobile telecommunication number) and access time data of the terminal are mainly stored. After the internet of things terminal is bound to a subscriber identity module card for preventing theft, if the HSS is accessed by other terminals, the HSS sends the IMEI information of the current access terminal, but the information sending is triggered only once, so that the final access time needs to be updated by attaching the DPI signaling information. And the memory base is used for storing the terminal accessed by the MDN and the access time as the basis for judging the subsequent data. And judging whether the MDN exists or not according to the MDN and the IMEI, if the MDN does not exist, adding the MDN, if the MDN exists, judging according to the access time, and if the MDN exists, updating the MDN, and if the MDN exists, adding the MDN, otherwise, judging according to the access time, and if the data time is greater than the recording time in the memory bank, updating the MDN.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Fig. 1 is a schematic flow chart of a method for constructing an internet of things terminal history library according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S100, radius data docking and analyzing: in the 4G network, if the terminal of the Internet of things is accessed to the online, the PGW sends the radius records of the online, the updating and the offline of the user, and the radius records can be sent to a receiving server through configuration; the receiving server can distribute the radius records by deploying the LVS, because the number of the internet of things terminals accessed to an operator is hundreds of millions, and the number of the radius records at the second level can reach tens of thousands, the message server and the message queue need to be flexibly deployed at the rear end of the LVS, the radius records are distributed by the LVS, and the radius records are written into the message queue by the flux middleware deployed in the application server; and the analysis server at the rear end reads radius records from the message queue for analysis.
Taking the online record as an example, the radius record includes the following data information: event time, MDN, IMSI, IMEI, location information, status type, and access APN, etc.
Step S101, butt joint of the information of the IMEI of the HSS: the Internet of things terminal user needs to sign a contract for machine card binding to prevent the terminal from being stolen, and one card can only be used on the bound terminal; the machine-card binding information signs a contract on the HSS, if the card is used by other terminals, a notification message is triggered, and the current abnormal terminal MDN, IMSI, IMEI, event time and position information are reported to the server.
Meanwhile, DPI data is also required to be docked to process attachment request signaling data, and only the data with attachment failure is filtered; after the attachment is successful, the bearer establishment is carried out to trigger radius reporting, so that the part only needs to process the data failed in the attachment; performing IMEI recording on the abnormal access condition; the DPI attachment failure record is only used as a supplement of the abnormal data of the machine-card binding.
Step S102, abnormal access data storage of a terminal history library: the storage fields in the history library are mainly as follows: MDN, IMSI, IMEI, initial access time of the terminal, final access time of the terminal, position information and state; if the HSS IMEI reports the abnormal record, whether the MDN and the IMEI exist in a memory bank as the main key is judged, and if yes, the terminal last access time is refreshed; if the primary key does not exist in the memory library, the new terminal is used for access, the state accessed into the terminal history library is abnormal, and the abnormal IMEI and the event of the MDN are updated.
The abnormal record reported by the HSS IMEI is mainly used for constructing a terminal abnormal library, and the DPI attachment failure record is used for updating the last access time of the abnormal terminal; the DPI attachment failure record can be obtained by judging whether the MDN and the IMEI exist in a memory bank or not, if so, updating the last access time, and otherwise, discarding the data.
Step S103, normal access data storage of the terminal history library: the normal access terminal history library is mainly constructed by using radius records, and the state is normal. Updating the last access time if the MDN and the IMEI in radius records exist in the memory bank and the event time is greater than the recorded time; and if the current data does not exist, inserting the current data into a database as a new record, and updating the last access time of the last normally accessed data into the event time of the current data.
The whole life cycle of the terminal access of the Internet of things can be recorded by constructing a normal terminal library and an abnormal terminal library; different terminals make a decision based on the IMEI and the first eight bits of the IMEI can be matched through a library of modules to correlate terminal type (e.g., handset, tablet and handheld terminal) and detailed model.
Step S104, abnormal terminal identification: for the abnormal record reported by the HSS IMEI, directly judging that the state of the terminal is abnormal; for other normal state records, if the terminal and the access position are changed, a judgment rule is triggered, the judgment rule is a predefined access terminal IMEI and installation position, for example, the predefined terminal IMEI is XX, the installation position is XX cell, the IMEI and the position reported at present are inconsistent with the predefined one, the terminal is considered abnormal, the terminal is marked as abnormal change, and then an enterprise manager judges whether the terminal is abnormal or not.
Step S105, terminal life cycle inquiry and diagnosis: after the terminal history library is constructed, the terminal history library is required to be provided with external interface capability, and the following interface capability is mainly provided: inquiring the accessed terminal history record through the card number, inquiring the accessed card number history record through the IMEI of the terminal and judging whether the card number is accessed by an abnormal terminal.
It should be noted that although the operations of the method of the present invention have been described in the above embodiments and the accompanying drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the operations shown must be performed, to achieve the desired results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
For a clearer explanation of the method for constructing the terminal history library of the internet of things, a specific embodiment is described below, but it should be noted that the embodiment is only for better explaining the present invention, and is not to be construed as an undue limitation on the present invention.
Examples are as follows:
1. a temperature and humidity Internet of things terminal is installed in a district XX of Jiangsu Nanjing in 1 st 2019, the IMEI of the terminal is 89866254041, the MDN of the terminal is 8617800123532, the installation position is the district XX, and the terminal signs a machine card on an HSS for binding.
2. After the terminal is accessed to the network, the PGW side sends radius records, the terminal history library records the XX time access of the terminal, the IMEI and the MDN of the accessed terminal, and the accessed position is obtained according to the base station information. And the subsequent terminal updates the terminal last access time when restarting the access.
3. The terminal is stolen at 5/1/2020, and the internet of things card is installed to other terminals. And triggering the soap copy information by the HSS side, and reporting the abnormal IMEI information. And recording the access time of the abnormal terminal, the IMEI (international mobile equipment identity), the MDN (minimization of network) and the position of the abnormal access by the online library.
4. And carrying out abnormal terminal diagnosis, finding that the IMEI and the HSS of the currently accessed terminal of the card are not bound consistently and the access position is different from the original installation position, and judging that the Internet of things card is moved and installed on other terminals. The card is diagnosed as an anomalous card.
5. And sending the abnormal information of the card to a client through the interface for further processing.
Based on the same invention concept, the invention also provides a device for constructing the terminal history library of the Internet of things. The implementation of the device can be referred to the implementation of the method, and repeated details are not repeated. The term "module," as used below, may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a schematic structural diagram of a device for constructing an internet of things terminal history base according to an embodiment of the present invention. As shown in fig. 2, the apparatus includes:
a radius data docking and analyzing module 200, configured to send, in a 4G network, a radius record of a user to be online, updated, and offline by a PGW if an internet of things terminal is online, and send the radius record to a receiving server through configuration; the receiving server distributes the radius records through deploying the LVS, and writes the radius records into a message queue deployed at the rear end of the LVS through a flux middleware deployed in the application server; the analysis server reads radius records from the message queue for analysis;
radius records contain data information such as: event time, MDN, IMSI, IMEI, location information, status type, and access APN.
The HSS IMEI information docking module 201 is configured to sign a contract on an HSS for the machine-card binding information, and if the card is used by another terminal, trigger a notification message to report information of the current abnormal terminal MDN, IMSI, IMEI, event time, and location information to the server;
meanwhile, DPI data processing attachment request failure data are docked, and IMEI recording is carried out.
The terminal history base abnormal access data storage module 202 is used for judging whether the MDN and the IMEI are stored in a memory base as main keys or not if the HSS IMEI reports abnormal records, refreshing the last access time if the MDN and the IMEI are stored in the memory base as the main keys, setting the state accessed into the terminal history base to be abnormal if the MDN and the IMEI are not stored in the memory base, and updating the abnormal IMEI and events of the MDN;
the fields stored in the terminal history library are: MDN, IMSI, IMEI, initial access time of the terminal, final access time of the terminal, position information and state.
A terminal history library normal access data storage module 203, configured to determine whether MDN and IMEI in the radius record exist in the memory library, if the MDN and IMEI exist in the radius record and the event time is greater than the recording time, update the last access time, and if the MDN and IMEI do not exist in the memory library, insert the last access time as a new record into the terminal history library, and update the last access time of the last normal access data to the event time of the current data;
and judging different terminals according to the IMEI, and matching the first eight bits of the IMEI through a module library so as to associate the type and the detailed model of the terminal.
The abnormal terminal identification module 204 is configured to report an abnormal record to the HSS IMEI, where the terminal directly determines that the state is abnormal, and for other normal state records, if the terminal and the access position are both changed, trigger a determination rule, where the terminal is marked as an abnormal change, and then determine whether the abnormal record is abnormal by an enterprise manager.
The terminal lifecycle query and diagnosis module 205 is configured to provide external interface capabilities after constructing a terminal history repository, and includes: inquiring the accessed terminal history record through the card number, inquiring the accessed card number history record through the IMEI of the terminal and judging whether the card number is accessed by an abnormal terminal.
It should be noted that although several modules of the building apparatus of the terminal history repository of the internet of things are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module according to embodiments of the invention. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Based on the aforementioned inventive concept, as shown in fig. 3, the present invention further provides a computer device 300, which includes a memory 310, a processor 320, and a computer program 330 stored in the memory 310 and executable on the processor 320, wherein the processor 320 implements the aforementioned method for constructing the internet of things terminal history library when executing the computer program 330.
Based on the above inventive concept, the present invention further provides a computer-readable storage medium, where a computer program for executing the method for constructing the internet of things terminal history library is stored in the computer-readable storage medium.
The method and the device for constructing the terminal history library of the Internet of things realize that the terminal and card number history library comprises terminal information of normal access and terminal information of abnormal access; the last access time of abnormal access can be updated in real time by introducing the attachment record of the DPI, so that a user can know the last access behavior of the terminal conveniently; and an interface for inquiring in multiple dimensions is provided, and the diagnosis function of the abnormal terminal is on line.
The following should be noted:
IMSI: international Mobile Subscriber Identity (IMSI, international Mobile Subscriber Identity).
IMEI: international Mobile Equipment Identity (IMEI).
MME: MME (Mobility Management Entity) is a key control node of the 3GPP protocol LTE access network.
HSS: the HSS (Home Subscriber Server) is a Server for storing Subscriber subscription information in the EPS.
MDN: the user's mobile phone number.
And (4) LVS: the LVS is the abbreviation of Linux Virtual Server, namely a Linux Virtual Server, and is a Virtual Server cluster system.
Flume: the Flume is a highly available, highly reliable and distributed system for collecting, aggregating and transmitting mass logs provided by Cloudera.
Radius: RADIUS: remote Authentication Dial In User Service, the Remote User dialing Authentication system is defined by RFC2865 and RFC2866, and is the most widely applied AAA protocol.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
The limitation of the protection scope of the present invention is understood by those skilled in the art, and various modifications or changes which can be made by those skilled in the art without inventive efforts based on the technical solution of the present invention are still within the protection scope of the present invention.

Claims (12)

1. A method for constructing an Internet of things terminal history library is characterized by comprising the following steps:
radius data docking and analyzing: in the 4G network, if the terminal of the Internet of things is accessed to the online, a business gateway PGW sends the radius records of the online, the updating and the offline of a user, and the radius records are sent to a receiving server through configuration; the receiving server distributes the radius records through deploying the LVS, and writes the radius records into a message queue deployed at the rear end of the LVS through a flux middleware deployed in the application server; the analysis server reads radius records from the message queue for analysis;
HSSIMEI information interfacing: the machine-card binding information signs a contract on HSS, if the card is used by other terminals, a notification message is triggered, and the current abnormal terminal MDN, IMSI, IMEI, event time and position information are reported to a receiving server;
and (3) abnormal access data storage of a terminal history library: if the HSSIMEI reports the abnormal record, judging whether the MDN and the IMEI as the main keys exist in the memory bank or not, if so, refreshing the last access time, if not, setting the state accessed into the terminal history bank as abnormal, and updating the abnormal IMEI and the event of the MDN;
and (3) normal access data storage of a terminal history library: judging whether the MDN and the IMEI in the radius record exist in a memory bank or not, if so, updating the last access time, and if not, inserting the last access time as a new record into a terminal history bank, and updating the last access time of the last normal access data into the event time of the current data;
and (3) abnormal terminal identification: reporting an abnormal record for HSSIMEI, directly judging the state of the terminal to be abnormal by the terminal, triggering a judgment rule for other normal state records if the terminal and the access position are changed, marking the terminal as abnormal change, and subsequently judging whether the terminal is abnormal by an enterprise manager;
terminal lifecycle query and diagnosis: after the terminal history library is constructed, the capability of the external interface is required to be provided, and the method comprises the following steps: inquiring the accessed terminal history record through the card number, inquiring the accessed card number history record through the IMEI of the terminal and judging whether the card number is accessed by an abnormal terminal.
2. The method for constructing the terminal history library of the internet of things according to claim 1, wherein the radius records comprise data information including: event time, MDN, IMSI, IMEI, location information, status type, and access APN.
3. The method for constructing the terminal history library of the internet of things according to claim 1, wherein in the HSSIMEI information docking, DPI data processing attachment request failure data is also docked, and IMEI recording is performed.
4. The method for constructing the internet of things terminal history library according to claim 1, wherein the fields stored in the terminal history library are as follows: MDN, IMSI, IMEI, initial access time of the terminal, final access time of the terminal, position information and state.
5. The method for constructing the history library of the terminal of the internet of things according to claim 1, wherein different terminals are judged according to IMEI, and the first eight IMEI bits are matched through the module library, so as to associate the terminal type and the detailed model.
6. The utility model provides a device for constructing thing networking terminal historical library which characterized in that, the device includes:
the radius data docking and analyzing module is used for sending the radius record of the online, updating and offline of the user by the PGW in the 4G network if the terminal of the Internet of things is accessed online, and sending the radius record to the receiving server through configuration; the receiving server distributes the radius records through deploying the LVS, and writes the radius records into a message queue deployed at the rear end of the LVS through the flume middleware deployed in the application server; the resolving server reads radius records from the message queue for resolving;
the HSSIMEI information docking module is used for signing the machine-card binding information on HSS, triggering a notification message if the card is used by other terminals, and reporting the current abnormal terminal MDN, IMSI, IMEI, event time and position information to a receiving server;
the terminal history library abnormal access data storage module is used for judging whether the MDN and the IMEI are used as main keys to exist in a memory library or not if the HSSIMEI reports an abnormal record, refreshing the last access time if the MDN and the IMEI exist in the memory library, setting the state accessed into the terminal history library as abnormal if the MDN and the IMEI do not exist, and updating the abnormal IMEI and events of the MDN;
the terminal history library normal access data storage module is used for judging whether the MDN and the IMEI in the radius record exist in the memory library or not, if the MDN and the IMEI exist in the memory library and the event time is greater than the recording time, updating the last access time, if the MDN and the IMEI do not exist in the memory library, inserting the MDN and the IMEI as a new record into the terminal history library, and updating the last access time of the last normal access data into the event time of the current data;
the abnormal terminal identification module is used for reporting abnormal records to the HSSIMEI, directly judging the state of the abnormal records by the terminal, triggering a judgment rule if the terminal and the access position of the other normal records are changed, marking the terminal as abnormal change, and subsequently judging whether the abnormal records are abnormal by an enterprise manager;
the terminal life cycle inquiry and diagnosis module is used for constructing a terminal history library and providing the capability for an external interface, and comprises the following components: inquiring the accessed terminal history record through the card number, inquiring the accessed card number history record through the IMEI of the terminal and judging whether the card number is accessed by an abnormal terminal.
7. The device for constructing the internet of things terminal history library according to claim 6, wherein the radius records comprise data information including: event time, MDN, IMSI, IMEI, location information, status type, and access APN.
8. The apparatus for constructing a history repository of internet of things according to claim 6, wherein the HSSIMEI information docking module is further configured to dock DPI data processing attach request failure data and perform IMEI recording.
9. The device for constructing the internet of things terminal history library according to claim 6, wherein the fields stored in the terminal history library are as follows: MDN, IMSI, IMEI, initial access time of the terminal, final access time of the terminal, position information and state.
10. The apparatus for constructing a history library of terminals in the internet of things according to claim 6, wherein different terminals are determined according to IMEI, and the first eight IMEI bits are matched by the module library, thereby associating the terminal type and the detailed model.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-5 when executing the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1-5.
CN202011451987.0A 2020-12-10 2020-12-10 Method and device for constructing terminal history library of Internet of things Active CN112492572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011451987.0A CN112492572B (en) 2020-12-10 2020-12-10 Method and device for constructing terminal history library of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011451987.0A CN112492572B (en) 2020-12-10 2020-12-10 Method and device for constructing terminal history library of Internet of things

Publications (2)

Publication Number Publication Date
CN112492572A CN112492572A (en) 2021-03-12
CN112492572B true CN112492572B (en) 2023-02-21

Family

ID=74941763

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011451987.0A Active CN112492572B (en) 2020-12-10 2020-12-10 Method and device for constructing terminal history library of Internet of things

Country Status (1)

Country Link
CN (1) CN112492572B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0492927A (en) * 1990-08-06 1992-03-25 Brother Ind Ltd Abnormality diagnostic device
CN104244227A (en) * 2013-06-09 2014-12-24 中国移动通信集团公司 Terminal access authentication method and device in internet of things system
CN109729515A (en) * 2017-10-27 2019-05-07 中国电信股份有限公司 For realizing the method for binding machine and card, Subscriber Identity Module and internet-of-things terminal
CN110446200A (en) * 2018-05-03 2019-11-12 北京握奇智能科技有限公司 A kind of method and system of internet of things service binding machine and card
CN110995484A (en) * 2019-11-29 2020-04-10 中盈优创资讯科技有限公司 Automatic diagnosis method and device for service recovery of Internet of things
CN111064634A (en) * 2019-12-06 2020-04-24 中盈优创资讯科技有限公司 Method and device for monitoring mass Internet of things terminal online state
CN111182521A (en) * 2018-11-12 2020-05-19 中移(杭州)信息技术有限公司 Internet of things terminal machine card binding, network access authentication and service authentication method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0492927A (en) * 1990-08-06 1992-03-25 Brother Ind Ltd Abnormality diagnostic device
CN104244227A (en) * 2013-06-09 2014-12-24 中国移动通信集团公司 Terminal access authentication method and device in internet of things system
CN109729515A (en) * 2017-10-27 2019-05-07 中国电信股份有限公司 For realizing the method for binding machine and card, Subscriber Identity Module and internet-of-things terminal
CN110446200A (en) * 2018-05-03 2019-11-12 北京握奇智能科技有限公司 A kind of method and system of internet of things service binding machine and card
CN111182521A (en) * 2018-11-12 2020-05-19 中移(杭州)信息技术有限公司 Internet of things terminal machine card binding, network access authentication and service authentication method and device
CN110995484A (en) * 2019-11-29 2020-04-10 中盈优创资讯科技有限公司 Automatic diagnosis method and device for service recovery of Internet of things
CN111064634A (en) * 2019-12-06 2020-04-24 中盈优创资讯科技有限公司 Method and device for monitoring mass Internet of things terminal online state

Also Published As

Publication number Publication date
CN112492572A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
KR102577139B1 (en) Smart contract-based data processing methods, devices, and storage media
CN112367321B (en) Method for quickly constructing service call and middle station API gateway
US9686230B2 (en) Management of application server-related user data
US20040235523A1 (en) System for replicating data of a mobile station
US8996065B2 (en) Method for automatically transferring an application in a mobile communication terminal of telecommunication networks
CN111064634B (en) Method and device for monitoring mass Internet of things terminal online state
CN103650545A (en) Machine to machine (m2m) application server, XDMS server, and methods for m2m applications group management
JP5363305B2 (en) Method for determining the ID of an electronic device
EP1668951A1 (en) Network and method for registration of mobile devices and management of the mobile devices
CN110248321B (en) Method and system for managing number portability number
CN110601981A (en) Service routing method, service provider cloud domain and service calling cloud domain
CN111901440B (en) Multi-channel message pushing method and device
US9374710B2 (en) Mediation server, control method therefor, communication device, control method therefor, communication system, and computer program
CN112492572B (en) Method and device for constructing terminal history library of Internet of things
CN104184871A (en) Method and device for prompting crank call number
KR100194763B1 (en) Personal communication service subscriber information processing device and method
CN103686694A (en) Status information acquiring method, service control point and server
CN111338573B (en) Terminal data management method and system, server and communication terminal
US9215594B2 (en) Subscriber data management
CN105635488A (en) Mobile terminal antitheft processing method and device
CN101325738A (en) Method and apparatus for repairing fault of mobile communication core network register
CN115391293B (en) File acquisition method, device, server and storage medium
KR100455040B1 (en) Method For Identifying Home RADIUS Server
CN114401164A (en) Data processing method of API gateway, API gateway and storage medium
JP2023530727A (en) USAGE REPORTING METHODS, NETWORK FUNCTIONAL ENTITIES AND STORAGE MEDIA

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
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 200000 room 702-2, No. 4811 Cao'an Road, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: Room 1004-4, 10 / F, 1112 Hanggui Road, Anting Town, Jiading District, Shanghai

Patentee before: CHINA UNITECHS