CN117194462A - Updating method, device, equipment and medium of authentication database - Google Patents

Updating method, device, equipment and medium of authentication database Download PDF

Info

Publication number
CN117194462A
CN117194462A CN202311453247.4A CN202311453247A CN117194462A CN 117194462 A CN117194462 A CN 117194462A CN 202311453247 A CN202311453247 A CN 202311453247A CN 117194462 A CN117194462 A CN 117194462A
Authority
CN
China
Prior art keywords
target
authentication
preset
database
terminal
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.)
Granted
Application number
CN202311453247.4A
Other languages
Chinese (zh)
Other versions
CN117194462B (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.)
Beijing Guodian Gaoke Technology Co ltd
Original Assignee
Beijing Guodian Gaoke 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 Beijing Guodian Gaoke Technology Co ltd filed Critical Beijing Guodian Gaoke Technology Co ltd
Priority to CN202311453247.4A priority Critical patent/CN117194462B/en
Publication of CN117194462A publication Critical patent/CN117194462A/en
Application granted granted Critical
Publication of CN117194462B publication Critical patent/CN117194462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Radio Relay Systems (AREA)

Abstract

The invention provides a method, a device, equipment and a medium for updating an authentication database, which relate to the field of satellite communication, and the method comprises the following steps: for any satellite in the satellite communication system, acquiring an update instruction; acquiring binary values corresponding to terminal numbers of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary values; and storing a target authentication identification code into a preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value, and updating the authentication database into the preset database. The invention greatly reduces the authentication information storage space of the satellite communication terminal, reduces the authentication information quantity, and can further reduce the inter-satellite data synchronization time, thereby improving the processing efficiency and the success rate.

Description

Updating method, device, equipment and medium of authentication database
Technical Field
The present invention relates to the field of satellite communications, and in particular, to a method, an apparatus, a device, and a medium for updating an authentication database.
Background
With the increasing number of satellites in a satellite communication system, the number of accessed satellite communication terminals is increased gradually, a severe test is put forward on the storage capacity of the satellite communication system, the whole system is composed of 10 satellites, the capacity is 1 hundred million satellite communication terminals, the authentication information record of each satellite communication terminal comprises a terminal number and an authentication mark according to the related technology, the terminal number is 0 to 99999999, the authentication mark is 0 or 1, the storage size is the sum of 27 bits of the terminal number and 1 bit of the authentication mark, the required authentication information storage space of a single satellite is about 2800M, the total storage space of the whole satellite communication system is 28000M, and further, the storage of the satellite communication system is greatly burdened, the cost of the satellite communication system is increased, and meanwhile, the data processing efficiency is greatly influenced.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for updating an authentication database, which are used for solving the technical problem of heavy storage burden of the existing satellite communication system.
In a first aspect, the present invention provides a method for updating an authentication database, including:
For any satellite in a satellite communication system, acquiring an update instruction, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite;
responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value;
storing a target authentication identification code into a preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value, and updating the authentication database into the preset database;
each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
According to the method for updating the authentication database provided by the invention, after determining the target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value, before updating the authentication database into the preset database, the method further comprises:
Storing the weighted binary value corresponding to the weighted terminal into a preset database under the condition that the number of the terminals of the weighted terminal is smaller than the target boundary value;
and storing the corresponding unauthorized binary value of the unauthorized terminal into the preset database under the condition that the terminal number of the unauthorized terminal is smaller than the target boundary value.
According to the method for updating the authentication database provided by the invention, after updating the authentication database into the preset database, the method further comprises the following steps:
traversing all satellites in the satellite communication system, updating each authentication database corresponding to all satellites, and obtaining a preset database corresponding to each satellite.
According to the method for updating the authentication database provided by the invention, after the preset database corresponding to each satellite is obtained, the method further comprises the following steps:
receiving an authentication request from any target terminal, wherein the authentication request comprises a target terminal number of the target terminal;
determining a preset database corresponding to the target satellite according to the target satellite associated with the target terminal;
reading an authentication result corresponding to the target terminal number from the preset database according to the target terminal number;
And sending the authentication result to the target terminal.
According to the method for updating the authentication database provided by the invention, under the condition that the preset database stores the target authentication identification code, the step of reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number comprises the following steps:
determining a target data bit corresponding to the target terminal number from the target authentication identification code according to the target terminal number;
under the condition that the target data bit is a first identification code, determining that an authentication result corresponding to the target terminal number is authorized;
and under the condition that the target data bit is the second identification code, determining that the authentication result corresponding to the target terminal number is unauthorized.
According to the method for updating the authentication database provided by the invention, under the condition that the preset database stores the authorized binary value corresponding to the authorized terminal, the step of reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number comprises the following steps:
converting the target terminal number to obtain a target binary value corresponding to the target terminal number;
Under the condition that the target binary value is matched with any one of all the authorized binary values, determining an authentication result corresponding to the target terminal number as authorized;
and under the condition that the target binary value is not matched with all the authorized binary values, determining that the authentication result corresponding to the target terminal number is unauthorized.
According to the method for updating the authentication database provided by the invention, under the condition that the unauthorized binary value corresponding to the unauthorized terminal is stored in the preset database, the step of reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number comprises the following steps:
converting the target terminal number to obtain a target binary value corresponding to the target terminal number;
under the condition that the target binary value is matched with any one of all the unauthorized binary values, determining that an authentication result corresponding to the target terminal number is unauthorized;
and under the condition that the target binary value is not matched with all the unauthorized binary values, determining the authentication result corresponding to the target terminal number as authorized.
In a second aspect, there is provided an updating apparatus of an authentication database, including:
The acquisition unit is used for acquiring an update instruction for any satellite in the satellite communication system, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite;
the determining unit is used for responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total quantity of all preset terminals and the capacity value corresponding to the binary value;
the updating unit is used for storing a target authentication identification code into a preset database and updating the authentication database into the preset database under the condition that the number of the terminals with rights is larger than or equal to the target boundary value and the number of the terminals without rights is larger than or equal to the target boundary value;
each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
In a third aspect, the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for updating the authentication database when executing the program.
In a fourth aspect, the invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of updating an authentication database as described in any of the above.
The invention provides a method, a device, equipment and a medium for updating an authentication database, which are characterized in that an authentication database corresponding to any satellite in a satellite communication system is updated, a binary value corresponding to a terminal number of each preset terminal in a satellite coverage area is obtained from the authentication database, a target boundary value is determined according to the total amount of all preset terminals and a capacity value corresponding to the binary value, and under the condition that the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value, a target authentication identification code is constructed according to the terminal number of the preset terminal, a first identification code and a second identification code, and the target authentication identification code is stored into the preset database, so that the updating of the authentication database is realized. Because the storage space required by the target authentication identification code is far smaller than the storage space combined by the terminal number and the authentication mark in the prior art, the invention greatly reduces the authentication information storage space of the satellite communication terminal, reduces the authentication information quantity, can further reduce the inter-satellite data synchronization time, and further improves the processing efficiency and the success rate.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an update method of an authentication database according to the present invention;
FIG. 2 is a second flowchart of an update method of an authentication database according to the present invention;
FIG. 3 is a third flow chart of the method for updating the authentication database according to the present invention;
FIG. 4 is a flowchart of a method for updating an authentication database according to the present invention;
fig. 5 is a schematic structural diagram of an updating device of an authentication database provided by the invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the prior art, authentication information of each satellite communication terminal is recorded through a satellite storage device in a satellite communication system, the authentication information comprises a terminal number and an authentication mark, judgment is carried out when the satellite communication terminal sends an access request, corresponding response is given, and the satellite communication terminal carries out relevant processing according to a prefabricated logic, however, the authentication mode can cause great storage burden on the satellite storage device along with the increase of the satellite communication terminals.
At present, a satellite communication system manages operations such as storage, reading and authentication of authentication information of a plurality of satellites, but at present, no technical scheme is available for pertinently adjusting whether an authentication database of each satellite is updated according to the authorized or unauthorized condition of a satellite communication terminal covered by different satellites, and changing the storage mode and the reading mode of the authentication information in the authentication database corresponding to the satellite, so that the reduction of the storage capacity corresponding to a single satellite is realized, and further the storage burden of a satellite storage device is reduced. Fig. 1 is a flow chart of an updating method of an authentication database according to the present invention, where the updating method of the authentication database includes:
Step 101, for any satellite in a satellite communication system, acquiring an update instruction, where the update instruction is used to instruct updating of an authentication database corresponding to the satellite.
In step 101, the present invention may update the authentication database corresponding to any one of the satellites in the satellite communication system, or update the corresponding authentication database for all the satellites in the satellite communication system, or update the authentication database corresponding to any one of the satellites according to a user instruction, or implement automatic update when the satellite communication system is powered on or powered off, or implement automatic update of the authentication database corresponding to the satellite when any one of the satellites is powered on or powered off, or implement version update, system debug, or on or off of an operating state.
Step 102, in response to the update instruction, binary values corresponding to the terminal numbers of each preset terminal in the satellite coverage range are obtained from the authentication database, and a target boundary value is determined according to the total amount of all preset terminals and the capacity value corresponding to the binary values.
In step 102, the authentication database stores authentication information corresponding to each preset terminal, for example, the authentication database stores 1 million satellite communication terminals, the authentication information corresponding to each preset terminal includes a terminal number and an authentication flag thereof, where the terminal number is 0 to 99999999, and the authentication flag is 0 or 1, which is used to indicate whether the preset terminal is authorized or not, so that the storage size required by each preset terminal is the sum of 27 bits of the terminal number and 1 bit of the authentication flag, that is, 28 bits, and because there are 1 million satellite communication terminals, the storage space required by a single satellite is 2800M, and the total storage space of the whole satellite communication system is 28000M.
Optionally, in combination with the above embodiment, the total amount of all preset terminals is 1 million, and the capacity value corresponding to the binary value is 27 bits, and the target boundary value is determined according to the total amount of all preset terminals and the quotient value of the capacity value corresponding to the binary value, that is 100000000/27≡ 3703703, where the target boundary value is 3703703.
And 103, storing a target authentication identification code into a preset database and updating the authentication database into the preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value.
In step 103, in order to reduce the storage amount of the authentication information, the application provides a brand new storage mode, namely, the original terminal number is replaced by the binary character string of the authentication information, namely, the data bit information of the target authentication identification code in the application, namely, the character string is from low to high or from left to right, the 0 th bit identifies the 0 th terminal, the 1 st bit identifies the 1 st terminal, and so on, the first hundred million bits identify the first hundred million-number terminal, namely, each data bit of the target authentication identification code represents the terminal number of a preset terminal.
Optionally, the data bit is displayed as a first identification code or a second identification code, where the first identification code is used to identify that the preset terminal is authorized, and the second identification code is used to identify that the preset terminal is unauthorized, for example, the first identification code may be "1" and used to identify that the preset terminal is authorized, and the second identification code may be "0" and used to identify that the preset terminal is unauthorized.
Optionally, if 5 preset terminals are covered under the satellite, the present invention may use 5 binary numbers to represent different states of each preset terminal, for example, "00000", and then represent five of number 0, number 1, number 2, number 3 and number 4 from left to right, and all preset terminals are unauthorized; for example, "01111" indicates that the default terminal of number 0 is unauthorized, and the default terminals of numbers 1, 2, 3, and 4 are authorized.
Optionally, if 10 preset terminals are covered under the satellite, the target authentication identification code is 1000110100, the data bits arranged from left to right are respectively the terminal numbers of the preset terminals, the preset terminals with terminal numbers of 0, 4, 5 and 7 are authorized, and the preset terminals with terminal numbers of 1, 2, 3, 6, 8 and 9 are unauthorized.
Alternatively, if there are one hundred million terminals, the authentication information of each satellite communication terminal occupies only 1 bit, from left to right, the 0 th bit is identified as the 0 th terminal, the 99999999 th bit is identified as the 99999999 th terminal, and the required storage space is 1 hundred million bits, which is about 100M.
Optionally, when determining the target boundary value, a first station needs to use a storage mode of the "target authentication identification code" under what condition, and consider under what condition a storage mode of the "target authentication identification code" is used, and because the application can store the "terminal number", the "authentication mark" bit is abandoned, thereby saving 1 bit space, namely only storing the terminal number corresponding to the authorized terminal, or only storing the terminal number corresponding to the unauthorized terminal. Further, the binary value corresponds to the original "terminal number", and the capacity value corresponding to the binary value is a judging condition for determining whether to use the storage mode of the "target authentication identification code", the target boundary value is characterized by the number of terminals, that is, the product of the number of terminals and the capacity value corresponding to the binary value of each terminal, that is, the storage amount of the satellite, and since the storage amount stored by the storage mode using the "target authentication identification code" is determined by the total amount of all preset terminals, in the present application, it is actually required to consider and analyze the storage amount between the storage mode using the "target authentication identification code" and the product of the number of terminals and the capacity value corresponding to the binary value of each terminal, and it is possible to deduce "the target boundary value is determined according to the total amount of all preset terminals and the quotient value of the capacity value corresponding to the binary value", and when the number of terminals with weights is greater than or equal to the target boundary value, the number of terminals without weights is greater than or equal to the target boundary value, that is not equal to the threshold value, that is the storage mode using weights is greater than the terminal, that the maximum number of terminals is not equal to the threshold value, that is not equal to the threshold value, and the storage mode using the maximum numbers is not equal to the threshold value, that is stored by the threshold value.
The invention provides an updating method of an authentication database, which is characterized in that an authentication database corresponding to any satellite in a satellite communication system is updated, a binary value corresponding to a terminal number of each preset terminal in a satellite coverage area is obtained from the authentication database, a target boundary value is determined according to the total amount of all preset terminals and a capacity value corresponding to the binary value, and under the condition that the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value, a target authentication identification code is constructed according to the terminal number of the preset terminals, a first identification code and a second identification code, and the target authentication identification code is stored into the preset database, so that updating of the authentication database is realized. Because the storage space required by the target authentication identification code is far smaller than the storage space combined by the terminal number and the authentication mark in the prior art, the invention greatly reduces the authentication information storage space of the satellite communication terminal, reduces the authentication information quantity, can further reduce the inter-satellite data synchronization time, and further improves the processing efficiency and the success rate.
Fig. 2 is a second flowchart of the method for updating an authentication database according to the present invention, after determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value, before updating the authentication database into the preset database, the method further includes:
step 201, storing the weighted binary value corresponding to the weighted terminal into a preset database under the condition that the number of the terminals of the weighted terminal is smaller than the target boundary value.
In step 201, the present invention further provides a method for storing authentication information after determining the target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value, in the prior art, two pieces of information including the terminal number and the authentication flag are usually stored, in order to save storage space, the authentication flag is omitted, in the case that the number of terminals with the right is smaller than the target boundary value, it is considered that only storing the binary value with the right corresponding to the right to the preset database is the optimal scheme compared with the storage method adopting the "target authentication identification code", specifically, since the number of terminals with the right is smaller than the target boundary value, the number of terminals with the right is multiplied by the binary value with the right to be the final storage amount, and finally, the amount of storage required by the storage method adopting the "target authentication identification code" is smaller than that required by the storage method adopting the "target authentication identification code", and after storing the binary value with the right corresponding to the right to the preset database, updating the authentication database to the preset database.
And 202, storing the corresponding unauthorized binary value of the unauthorized terminal into the preset database under the condition that the number of the unauthorized terminals is smaller than the target boundary value.
In step 202, after determining the target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value, the present invention not only can determine whether to use the storage mode of the authorized terminal according to step 201, but also provides a storage mode of the unauthorized terminal, and when the number of terminals of the unauthorized terminal is smaller than the target boundary value, it is considered that, in comparison with the storage mode using the "target authentication identification code", only storing the unauthorized binary value corresponding to the unauthorized terminal to the preset database is the optimal scheme, specifically, because the number of terminals of the unauthorized terminal is smaller than the target boundary value, the number of terminals of the unauthorized terminal is multiplied by the unauthorized binary value to be the final storage amount, so that the final storage amount is smaller than the storage amount required by the storage mode using the "target authentication identification code", and after storing the unauthorized binary value corresponding to the preset database, updating the authentication database to the preset database.
Optionally, as an embodiment, the method may store the target authentication identifier code into a preset database when the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value, update the authentication database into the preset database, and otherwise maintain the storage mode of combining the terminal number with the authentication flag in the prior art.
Optionally, as a first embodiment, the present invention may store a target authentication identifier code into a preset database, and update the authentication database into the preset database when the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value; storing the weighted binary value corresponding to the weighted terminal into a preset database under the condition that the number of the terminals of the weighted terminal is smaller than the target boundary value; and otherwise, the storage mode of combining the terminal number with the authentication mark in the prior art is kept.
Optionally, as a second embodiment, the present invention may store a target authentication identifier code into a preset database, and update the authentication database into the preset database when the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value; storing an unauthorized binary value corresponding to the unauthorized terminal to the preset database under the condition that the number of the terminals of the unauthorized terminal is smaller than the target boundary value; and otherwise, the storage mode of combining the terminal number with the authentication mark in the prior art is kept.
Optionally, as a third embodiment, the present invention may store a target authentication identifier code into a preset database, and update the authentication database into the preset database when the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value; storing the weighted binary value corresponding to the weighted terminal into a preset database under the condition that the number of the terminals of the weighted terminal is smaller than the target boundary value; and storing the corresponding unauthorized binary value of the unauthorized terminal into the preset database under the condition that the terminal number of the unauthorized terminal is smaller than the target boundary value.
Optionally, after updating the authentication database to the preset database, the method further comprises:
traversing all satellites in the satellite communication system, updating each authentication database corresponding to all satellites, and obtaining a preset database corresponding to each satellite.
Optionally, after updating the authentication database for any satellite, the invention can traverse all satellites in the satellite communication system, update each authentication database corresponding to all satellites, and acquire each preset database corresponding to all satellites.
Fig. 3 is a third flowchart of a method for updating an authentication database according to the present invention, after obtaining a preset database corresponding to each satellite, the method further includes:
step 301, receiving an authentication request from any target terminal, where the authentication request includes a target terminal number of the target terminal.
In step 301, the present invention provides not only an updating method of an authentication database, but also an authentication method for implementing authentication of a target terminal by applying the updated authentication database, specifically, the satellite communication system of the present invention receives an authentication request from any target terminal, where the authentication request carries at least the target terminal number, and the target terminal number is determined after numbering all terminals in a satellite covered by the target terminal.
Step 302, determining a preset database corresponding to the target satellite according to the target satellite associated with the target terminal.
In step 302, a plurality of preset terminals are preset under each satellite, so that the target satellite associated with the terminal can be determined according to the terminals.
Optionally, the preset database may be any one of three storage modes, that is, a full-quantity storage mode corresponding to the "target authentication identifier" and stores full-quantity terminal authentication information; storing an unauthorized storage mode corresponding to an unauthorized binary value corresponding to an unauthorized terminal, wherein when the number of terminals in an unauthorized state is small, the space occupied by the number of the stored terminals is smaller than the space occupied by the full-capacity storage mode; and storing a weighted storage mode corresponding to a weighted binary value corresponding to the weighted terminal, wherein when the number of the terminals in the weighted state is small, the space occupied by the number of the storage terminal is smaller than the space occupied by the full-quantity storage mode.
And 303, reading an authentication result corresponding to the target terminal number from the preset database according to the target terminal number.
In step 303, since the preset database corresponds to any one of the three storage modes, and the different storage modes correspond to different reading modes, the present invention reads the target terminal number according to the target terminal number and the corresponding storage mode by adopting the reading mode corresponding to the storage mode, and further obtains an authentication result corresponding to the target terminal number, where the authentication result is used to characterize whether the target terminal is authorized or not.
And step 304, sending the authentication result to the target terminal.
In step 304, after the authentication result corresponding to the target terminal is obtained, the satellite communication system sends the authentication result to the target terminal, the target terminal receives the authentication result and completes authentication, and the target terminal processes the authentication result according to a preset program logic.
Optionally, the invention reads, updates, analyzes and other related operations on the authentication information of the satellite communication terminal based on the storage mode corresponding to the preset database, and greatly reduces the inter-satellite-to-ground data synchronization time due to the reduction of the authentication information quantity, thereby improving the processing efficiency and the success rate.
Fig. 4 is a flowchart of a method for updating an authentication database according to the present invention, where in the case where a target authentication identifier is stored in the preset database, the step of reading, according to the target terminal number, an authentication result corresponding to the target terminal number from the preset database includes:
and 401, determining a target data bit corresponding to the target terminal number from the target authentication identification code according to the target terminal number.
In step 401, the preset database stores target authentication identification codes, and each data bit of the target authentication identification codes represents a terminal number of a preset terminal, where the data bits are displayed as a first identification code or a second identification code, the first identification code is used to identify that the preset terminal is authorized, the second identification code is used to identify that the preset terminal is unauthorized, and according to the target terminal number, after passing through the data bits corresponding to the target terminal number in a preset manner from left to right or from right to left, the target data bit corresponding to the target terminal number is determined.
Step 402, determining that the authentication result corresponding to the target terminal number is authorized when the target data bit is the first identification code.
In step 402, if the number of the target data bit is "1", it is determined that the authentication result corresponding to the target terminal number is authorized.
Step 403, determining that the authentication result corresponding to the target terminal number is unauthorized when the target data bit is the second identification code.
In step 403, if the number of the target data bit is "0", it is determined that the authentication result corresponding to the target terminal number is unauthorized.
Optionally, when the preset database stores the weighted binary value corresponding to the weighted terminal, the reading, according to the target terminal number, the authentication result corresponding to the target terminal number from the preset database includes:
converting the target terminal number to obtain a target binary value corresponding to the target terminal number;
under the condition that the target binary value is matched with any one of all the authorized binary values, determining an authentication result corresponding to the target terminal number as authorized;
and under the condition that the target binary value is not matched with all the authorized binary values, determining that the authentication result corresponding to the target terminal number is unauthorized.
Optionally, in the case that the preset database stores the weighted binary value corresponding to the weighted terminal, the target terminal number is processed according to the weighted storage mode, that is, the target binary value corresponding to the target terminal number is determined first.
Optionally, when the preset database stores the unauthorized binary value corresponding to the unauthorized terminal, the reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number includes:
converting the target terminal number to obtain a target binary value corresponding to the target terminal number;
under the condition that the target binary value is matched with any one of all the unauthorized binary values, determining that an authentication result corresponding to the target terminal number is unauthorized;
and under the condition that the target binary value is not matched with all the unauthorized binary values, determining the authentication result corresponding to the target terminal number as authorized.
Optionally, under the condition that the preset database stores the non-weighted binary value corresponding to the non-weighted terminal, the target terminal number is processed according to a non-weighted storage mode, namely, the target binary value corresponding to the target terminal number is determined first.
Fig. 5 is a schematic structural diagram of an apparatus for updating an authentication database according to the present invention, where the apparatus for updating an authentication database includes an acquiring unit 1, where the acquiring unit 1 is configured to acquire, for any satellite in a satellite communication system, an update instruction, where the update instruction is used to instruct updating of an authentication database corresponding to the satellite, and the working principle of the acquiring unit 1 may refer to the foregoing step 101 and is not described herein.
The updating device of the authentication database further includes a determining unit 2, where the determining unit 2 is configured to obtain, from the authentication database, a binary value corresponding to a terminal number of each preset terminal in the satellite coverage area in response to the update instruction, and determine a target boundary value according to a total amount of all preset terminals and a capacity value corresponding to the binary value, and the working principle of the determining unit 2 may refer to the foregoing step 102 and is not described herein.
The updating device of the authentication database further includes an updating unit 3, where the updating unit 3 is configured to store a target authentication identification code to a preset database when the number of terminals with rights is greater than or equal to the target boundary value and the number of terminals without rights is greater than or equal to the target boundary value, update the authentication database to the preset database, and the working principle of the determining unit 3 may refer to the foregoing step 103 and will not be repeated herein.
Each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
The invention provides an updating device of an authentication database, which is used for updating an authentication database corresponding to any satellite in a satellite communication system, acquiring a binary value corresponding to a terminal number of each preset terminal in a satellite coverage range from the authentication database, determining a target boundary value according to the total quantity of all preset terminals and a capacity value corresponding to the binary value, and constructing a target authentication identification code according to the terminal number of the preset terminal, a first identification code and a second identification code of the preset terminal under the condition that the number of the terminals with the right is larger than or equal to the target boundary value and the number of the terminals without the right is larger than or equal to the target boundary value, and storing the target authentication identification code into the preset database so as to update the authentication database. Because the storage space required by the target authentication identification code is far smaller than the storage space combined by the terminal number and the authentication mark in the prior art, the invention greatly reduces the authentication information storage space of the satellite communication terminal, reduces the authentication information quantity, can further reduce the inter-satellite data synchronization time, and further improves the processing efficiency and the success rate.
Fig. 6 is a schematic structural diagram of an electronic device provided by the present invention. As shown in fig. 6, the electronic device may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a method of updating an authentication database, the method comprising: for any satellite in a satellite communication system, acquiring an update instruction, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite; responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value; storing a target authentication identification code into a preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value, and updating the authentication database into the preset database; each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of performing a method of updating an authentication database provided by the above methods, the method comprising: for any satellite in a satellite communication system, acquiring an update instruction, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite; responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value; storing a target authentication identification code into a preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value, and updating the authentication database into the preset database; each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of updating an authentication database provided by the above methods, the method comprising: for any satellite in a satellite communication system, acquiring an update instruction, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite; responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value; storing a target authentication identification code into a preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value, and updating the authentication database into the preset database; each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for updating an authentication database, comprising:
for any satellite in a satellite communication system, acquiring an update instruction, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite;
responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total amount of all preset terminals and the capacity value corresponding to the binary value;
storing a target authentication identification code into a preset database under the condition that the number of terminals with rights is larger than or equal to the target boundary value and the number of terminals without rights is larger than or equal to the target boundary value, and updating the authentication database into the preset database;
Each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
2. The method for updating an authentication database according to claim 1, wherein after determining a target boundary value according to a total amount of all preset terminals and a capacity value corresponding to the binary value, before updating the authentication database to the preset database, the method further comprises:
storing the weighted binary value corresponding to the weighted terminal into a preset database under the condition that the number of the terminals of the weighted terminal is smaller than the target boundary value;
and storing the corresponding unauthorized binary value of the unauthorized terminal into the preset database under the condition that the terminal number of the unauthorized terminal is smaller than the target boundary value.
3. The method of updating an authentication database according to claim 2, wherein after updating the authentication database to the preset database, the method further comprises:
traversing all satellites in the satellite communication system, updating each authentication database corresponding to all satellites, and obtaining a preset database corresponding to each satellite.
4. A method for updating an authentication database according to claim 3, wherein after acquiring the preset database corresponding to each satellite, the method further comprises:
receiving an authentication request from any target terminal, wherein the authentication request comprises a target terminal number of the target terminal;
determining a preset database corresponding to the target satellite according to the target satellite associated with the target terminal;
reading an authentication result corresponding to the target terminal number from the preset database according to the target terminal number;
and sending the authentication result to the target terminal.
5. The method for updating an authentication database according to claim 4, wherein, in the case that the target authentication identifier is stored in the preset database, the step of reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number includes:
determining a target data bit corresponding to the target terminal number from the target authentication identification code according to the target terminal number;
under the condition that the target data bit is a first identification code, determining that an authentication result corresponding to the target terminal number is authorized;
And under the condition that the target data bit is the second identification code, determining that the authentication result corresponding to the target terminal number is unauthorized.
6. The method for updating an authentication database according to claim 4, wherein, in the case that the preset database stores the authorized binary value corresponding to the authorized terminal, the step of reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number includes:
converting the target terminal number to obtain a target binary value corresponding to the target terminal number;
under the condition that the target binary value is matched with any one of all the authorized binary values, determining an authentication result corresponding to the target terminal number as authorized;
and under the condition that the target binary value is not matched with all the authorized binary values, determining that the authentication result corresponding to the target terminal number is unauthorized.
7. The method for updating an authentication database according to claim 4, wherein, in the case that the unauthorized binary value corresponding to the unauthorized terminal is stored in the preset database, the step of reading the authentication result corresponding to the target terminal number from the preset database according to the target terminal number includes:
Converting the target terminal number to obtain a target binary value corresponding to the target terminal number;
under the condition that the target binary value is matched with any one of all the unauthorized binary values, determining that an authentication result corresponding to the target terminal number is unauthorized;
and under the condition that the target binary value is not matched with all the unauthorized binary values, determining the authentication result corresponding to the target terminal number as authorized.
8. An apparatus for updating an authentication database, comprising:
the acquisition unit is used for acquiring an update instruction for any satellite in the satellite communication system, wherein the update instruction is used for indicating to update an authentication database corresponding to the satellite;
the determining unit is used for responding to the updating instruction, acquiring a binary value corresponding to the terminal number of each preset terminal in the satellite coverage range from the authentication database, and determining a target boundary value according to the total quantity of all preset terminals and the capacity value corresponding to the binary value;
the updating unit is used for storing a target authentication identification code into a preset database and updating the authentication database into the preset database under the condition that the number of the terminals with rights is larger than or equal to the target boundary value and the number of the terminals without rights is larger than or equal to the target boundary value;
Each data bit of the target authentication identification code represents a terminal number of a preset terminal, the data bits are displayed as a first identification code or a second identification code, the first identification code is used for identifying that the preset terminal is authorized, and the second identification code is used for identifying that the preset terminal is unauthorized.
9. An electronic 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 a method of updating an authentication database according to any of claims 1-7 when executing the program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements a method of updating an authentication database according to any of claims 1-7.
CN202311453247.4A 2023-11-03 2023-11-03 Updating method, device, equipment and medium of authentication database Active CN117194462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311453247.4A CN117194462B (en) 2023-11-03 2023-11-03 Updating method, device, equipment and medium of authentication database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311453247.4A CN117194462B (en) 2023-11-03 2023-11-03 Updating method, device, equipment and medium of authentication database

Publications (2)

Publication Number Publication Date
CN117194462A true CN117194462A (en) 2023-12-08
CN117194462B CN117194462B (en) 2024-02-09

Family

ID=88989026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311453247.4A Active CN117194462B (en) 2023-11-03 2023-11-03 Updating method, device, equipment and medium of authentication database

Country Status (1)

Country Link
CN (1) CN117194462B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690798B1 (en) * 1997-12-10 2004-02-10 Ericsson Inc. Key transforms to discriminate between beams in a multi-beam satellite communication system
CN110602052A (en) * 2019-08-15 2019-12-20 平安科技(深圳)有限公司 Micro-service processing method and server
CN115314844A (en) * 2022-10-10 2022-11-08 天津七一二移动通信有限公司 Railway intelligent accurate addressing system based on 5G network communication and implementation method
CN115361335A (en) * 2022-07-13 2022-11-18 鹏城实验室 SR-MPLS-based dynamic routing method for low-orbit satellite network
CN116560577A (en) * 2023-05-17 2023-08-08 南方电网数字平台科技(广东)有限公司 Identification processing method and device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690798B1 (en) * 1997-12-10 2004-02-10 Ericsson Inc. Key transforms to discriminate between beams in a multi-beam satellite communication system
CN110602052A (en) * 2019-08-15 2019-12-20 平安科技(深圳)有限公司 Micro-service processing method and server
CN115361335A (en) * 2022-07-13 2022-11-18 鹏城实验室 SR-MPLS-based dynamic routing method for low-orbit satellite network
CN115314844A (en) * 2022-10-10 2022-11-08 天津七一二移动通信有限公司 Railway intelligent accurate addressing system based on 5G network communication and implementation method
CN116560577A (en) * 2023-05-17 2023-08-08 南方电网数字平台科技(广东)有限公司 Identification processing method and device, electronic equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴华灯;黄文辉;: "广东地震台网测震数据库管理系统", 华南地震, no. 02 *

Also Published As

Publication number Publication date
CN117194462B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN110378413A (en) Neural network model processing method, device and electronic equipment
CN110018996B (en) Snapshot rollback method and related device of distributed storage system
CN106899936B (en) Geohash-based gridding position privacy protection method and device
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
CN109558263A (en) A kind of processing method and relevant apparatus of solid state hard disk data read errors
CN106572074A (en) Method and device for verifying identifying code
CN115955332A (en) Abnormal traffic filtering method and device for authentication system and electronic equipment
CN117194462B (en) Updating method, device, equipment and medium of authentication database
CN105224541A (en) The uniqueness control method of data, information storage means and device
CN117724899A (en) Project data backup method, system and medium
CN112883065A (en) Data storage method and device and computer equipment
CN112927311B (en) Data processing method and device of sideband compensation mode of sample point adaptive compensation
CN112291249B (en) Security policy processing method, device, medium and equipment
CN110874416B (en) Image characteristic value storage method and device and electronic equipment
CN111143644B (en) Identification method and device of Internet of things equipment
CN112396100A (en) Fine-grained classification model optimization method, system and related device
CN111367476A (en) Data reading method and device for SIM card
CN110990665A (en) Data processing method, device, system, electronic equipment and storage medium
CN117294673B (en) Data resource processing method, data resource processing device and storage medium
CN108171763B (en) Method and system for accessing decoded coefficient, and method for accessing JPEG decoded coefficient
CN116893981A (en) Memory operation method and device, storage medium and electronic device
CN109101187B (en) Method and device for reconstructing data
CN110968454B (en) Method and apparatus for determining recovery data for lost data blocks
CN112202662A (en) Method and device for generating instant messaging identification information
CN117234938A (en) Screening method and device for test cases, electronic equipment and storage medium

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