CN114390511A - Method, device, terminal and storage medium for dynamically identifying terminal model based on MAC address - Google Patents

Method, device, terminal and storage medium for dynamically identifying terminal model based on MAC address Download PDF

Info

Publication number
CN114390511A
CN114390511A CN202111559626.2A CN202111559626A CN114390511A CN 114390511 A CN114390511 A CN 114390511A CN 202111559626 A CN202111559626 A CN 202111559626A CN 114390511 A CN114390511 A CN 114390511A
Authority
CN
China
Prior art keywords
mac
dynamic
terminal
section
mac address
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
CN202111559626.2A
Other languages
Chinese (zh)
Other versions
CN114390511B (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.)
Suzhou Maxnet Network Safety Technology Co ltd
Original Assignee
Suzhou Maxnet Network Safety 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 Suzhou Maxnet Network Safety Technology Co ltd filed Critical Suzhou Maxnet Network Safety Technology Co ltd
Priority to CN202111559626.2A priority Critical patent/CN114390511B/en
Publication of CN114390511A publication Critical patent/CN114390511A/en
Application granted granted Critical
Publication of CN114390511B publication Critical patent/CN114390511B/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/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations
    • G06F16/24556Aggregation; Duplicate elimination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a device, a terminal and a storage medium for dynamically identifying the model of the terminal based on an MAC address. The method can quickly identify the newly accessed terminal equipment, quicken the identification speed of the terminal equipment, and simultaneously expand the identification range of the MAC under the same OUI, so that the model identification is more accurate and the accuracy is higher.

Description

Method, device, terminal and storage medium for dynamically identifying terminal model based on MAC address
Technical Field
The invention relates to a terminal model identification scheme, in particular to a terminal model dynamic identification method and device based on an MAC address, a terminal and a storage medium, and belongs to the technical field of dynamic identification.
Background
At present, the identification scheme for the model of the terminal equipment mainly depends on model feature information carried by the terminal equipment when surfing the internet. However, in the actual technical application process, the model identification of the current equipment depends on analyzing a large amount of flow information, and the equipment cannot be quickly identified after being on-line; in addition, a large number of terminal devices do not carry model-related feature information or carry invalid model feature information in the traffic information after the terminal devices are on line, so that effective terminal signal identification is difficult to guarantee, and a breakthrough needs to be searched for improvement of terminal model identification capability in the industry.
MAC (media Access Control Address) address, translated as MAC address. It is an address used to identify the location of network devices, and MAC addresses are unique throughout the world as long as their MAC addresses are not changed. The MAC address is, in a descriptive sense, just like the identification card number on the identification card, and has uniqueness. Therefore, it is a new attempt in the industry to apply the MAC address of the terminal device to the model identification operation.
On the basis, a new terminal signal identification scheme appears in the industry, namely, the identified mac is used as a basic library, and the actual model is calculated according to the distance between the mac to be inquired and the basic library. However, this solution still has drawbacks in practical application, and its disadvantages mainly focus on: the actual recognition situation is complex, and the dirty data of the basic database is not thoroughly cleaned; the distance parameter has no actual basis, and the value is fixed and not flexible enough; the basic library is huge, the data volume is increasing day by day, and the occupied memory is overlarge during use.
In summary, how to provide a brand-new scheme for dynamically identifying a terminal model based on an MAC address based on the prior art to improve the capability of identifying the terminal model and overcome many drawbacks in the prior art becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, the present invention provides a method, an apparatus, a terminal and a storage medium for dynamically identifying a terminal model based on a MAC address, which are as follows.
A terminal model dynamic identification method based on MAC address includes:
classifying and ordering the identified MAC sections, dynamically aggregating the MAC sections, counting the ratio of each terminal signal in the process, and comparing the ratio result with a preset threshold value to obtain a dynamic MAC section library, wherein the dynamic MAC section library contains dynamic relations between MAC sections with different lengths and terminal models;
and loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, outputting a corresponding terminal model if the input MAC address is successfully matched with the dynamic MAC segment library, and otherwise, outputting the MAC address without identification.
Preferably, the classifying and sorting the identified MAC addresses, aggregating from the first n bits of the MAC addresses, counting the occupation ratio of each terminal signal and comparing the occupation ratio result with a preset threshold to obtain a dynamic MAC segment library, where the dynamic MAC segment library includes dynamic relationships between MAC address segments of different lengths and terminal models, and the method includes:
taking the recorded and identified MAC sections as initial data, dividing all the MAC sections into a plurality of groups based on OUI, wherein a plurality of MAC sections exist under the same OUI;
and dynamically polymerizing from the first n bits of the MAC section, counting the ratio of each terminal model in the polymerization process, comparing the ratio result with a preset threshold value, if the ratio reaches the preset threshold value, outputting the dynamic relation between the MAC sections with different lengths and the terminal models, and using the dynamic relation as a dynamic MAC section library, otherwise, adding an operation to the execution length of the MAC section and repeating the process until the MAC section reaches the maximum length or cannot be polymerized, and if the ratio is always smaller than the preset threshold value, discarding the MAC section.
Preferably, n is the bit range of the MAC segment in the dynamic aggregation process, and the value thereof is n < 12 or more and 6 or less.
Preferably, loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, if the matching is successful, outputting the corresponding terminal model, otherwise, outputting the MAC address without identification, including:
after the configuration of the starting parameters is finished, starting and loading the dynamic MAC segment library, opening an MAC signal query interface, and acquiring an input MAC address to be queried through the MAC signal query interface;
and matching the MAC section bit number range specified in the starting parameter with the dynamic MAC section library from small to large, outputting a corresponding terminal model if the matching is successful, and outputting an MAC address not to be identified if the matching is not successful until the maximum length of the MAC section.
A dynamic terminal model identification device based on MAC address includes:
the dynamic MAC section library generation module is used for classifying and sequencing the identified MAC sections, dynamically aggregating the MAC sections, counting the ratio of each terminal signal in the process and comparing the ratio result with a preset threshold value to obtain a dynamic MAC section library, wherein the dynamic MAC section library contains dynamic relations between MAC sections with different lengths and terminal models;
and the terminal model identification module is used for loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, outputting a corresponding terminal model if the input MAC address is successfully matched with the dynamic MAC segment library, and otherwise outputting the MAC address which is not identified.
Preferably, the dynamic MAC segment library generating module includes:
the MAC section classification unit is used for taking the input and identified MAC sections as initial data, dividing all the MAC sections into a plurality of groups based on OUI, and a plurality of MAC sections exist under the same OUI;
and the dynamic aggregation unit is used for carrying out dynamic aggregation from the first n bits of the MAC section, counting the occupation ratio of each terminal model in the aggregation process and comparing the occupation ratio result with a preset threshold, if the occupation ratio reaches the preset threshold, outputting the dynamic relation between the MAC section with different lengths and the terminal model and taking the dynamic relation as a dynamic MAC section library, otherwise, adding an operation to the execution length of the MAC section and repeating the process until the MAC section reaches the maximum length or cannot be aggregated again, and if the occupation ratio is always smaller than the preset threshold, discarding the MAC section.
Preferably, n is the bit range of the MAC segment in the dynamic aggregation process, and the value thereof is n < 12 or more and 6 or less.
Preferably, the terminal model identification module includes:
the MAC address acquisition unit is used for starting and loading the dynamic MAC segment library after the configuration of the starting parameters is finished, opening an MAC signal query interface and acquiring an input MAC address to be queried through the MAC signal query interface;
and the MAC address matching unit is used for matching the MAC section bit number range specified in the starting parameter with the dynamic MAC section library from small to large, outputting a corresponding terminal model if the matching is successful, and outputting the MAC address not to be identified if the matching is not successful until the maximum length of the MAC section.
A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method for dynamically identifying a model of a terminal based on a MAC address as described above when executing the computer program.
A computer readable storage medium, which stores a computer program, which when executed by a processor implements the steps in the method for dynamically identifying a terminal model based on a MAC address as described above.
The advantages of the invention are mainly embodied in the following aspects:
according to the terminal model dynamic identification method based on the MAC address, when the terminal equipment does not have flow information or does not contain model characteristics in the flow information, the identification problem of the terminal equipment is solved in a more flexible mode, and the model identification rate of the terminal equipment is improved. The method can quickly identify the newly accessed terminal equipment, quicken the identification speed of the terminal equipment, and simultaneously expand the identification range of the MAC under the same OUI, so that the model identification is more accurate and the accuracy is higher. Meanwhile, the method only occupies less system resources when being applied, and the problem of overlarge resource occupation in the prior art is avoided.
The terminal model dynamic identification device based on the MAC address, the terminal and the storage medium can efficiently and accurately complete the model identification of the terminal equipment by a systematized and standardized processing flow, have higher adaptability and compatibility, and can be applied to the actual dynamic identification process.
The invention also provides reference for other related problems in the same field, can be expanded and extended based on the reference, is applied to other technical schemes related to equipment identification in the same field, and has very wide application prospect.
The following detailed description of the embodiments of the present invention is provided in connection with the accompanying drawings for the purpose of facilitating understanding and understanding of the technical solutions of the present invention.
Drawings
FIG. 1 is a schematic flow diagram of a portion of the process of the present invention;
FIG. 2 is a schematic flow diagram of another part of the process of the present invention;
FIG. 3 is a schematic view of the structure of the device of the present invention.
Detailed Description
The invention discloses a method, a device, a terminal and a storage medium for dynamically identifying a terminal model based on an MAC address.
In one aspect, the invention relates to a terminal model dynamic identification method based on MAC address, comprising:
s1, classifying and ordering the identified MAC sections, dynamically aggregating the MAC sections, counting the ratio of each terminal signal in the process, and comparing the ratio result with a preset threshold value to obtain a dynamic MAC section library, wherein the dynamic MAC section library contains dynamic relations between MAC sections with different lengths and terminal models. As shown in fig. 1, this step specifically includes.
S11, using the recorded and identified MAC segments as initial data, including known information as much as possible, dividing all the MAC segments into several groups based on OUI (organization unique identifier), where there are multiple MAC segments under the same OUI, and different OUI have no relationship or influence each other.
The following two parameters need to be set subsequently.
The length range of the MAC segment, i.e., n, cannot be less than 6 bits at the shortest, the first 6 bits of the MAC segment are assigned to the relevant vendor by IEEE, and less than the first 6 bits makes no sense. The longest length is 11 bits, because the total length of the MAC section is 12 bits, if the longest length is 12 bits, the known data is the one-to-one correspondence relationship between the MAC section and the identification result, and the purpose of cleaning up dirty data cannot be achieved.
The occupation ratio threshold value of the device model in the MAC segment, that is, P, is that when the occupation ratio of a certain device model in the MAC segment reaches the threshold value, the identification result may represent all the identification results of the MAC segment under the MAC segment, and the value should be at least greater than 50%, so as to ensure that each MAC segment corresponds to only one model.
And S12, dynamically aggregating from the first n bits of the MAC section. And starting aggregation from the first 6 bits of the set shortest length, counting the ratio of each terminal model in the aggregation process, comparing the ratio result with a preset threshold value P, and if the ratio reaches the preset threshold value P, outputting the dynamic relationship between the MAC sections with different lengths and the terminal models and taking the dynamic relationship as a dynamic MAC section library. If the identification precision is desired to be improved, the default length start bit of the MAC segment can be appropriately increased, but correspondingly, the coverage area is smaller, and the number of the finally generated corresponding relationship files is increased.
And if the occupation ratio is not less than the preset threshold value P, adding an operation to the execution length of the MAC section and repeating the process until the MAC section reaches the maximum length or cannot be aggregated, and if the occupation ratio is always less than the preset threshold value P, discarding the MAC section and effectively cleaning dirty data.
An actual operation flow is provided below to verify the above scheme.
(1) Setting a starting parameter, n: n is more than or equal to 6 and less than or equal to 11, P: 95 percent.
(2) The MAC segment whose specific model has been identified by other methods is selected, here OUI "E86819" is taken as an example. A total of 73420 MAC segments are known under this OUI with a total of 98 terminal models.
(3) The MAC segment is defaulted to 6-11 bits, the former 6 bits are aggregated, and the occupation ratio of each model after aggregation is judged. At the moment, the maximum of the model accounts for 46 percent, the maximum of the model accounts for 95 percent, the MAC segment length is added with 1, and the MAC segment length is re-aggregated.
(4) And if the previous 7 bits are aggregated, 16 groups of data exist from 0 to F, the statistical percentage of each group is larger than 95%, the data are output to a final dynamic library file, if the data are aggregated to a certain bit, only one MAC section is identified or the data are aggregated to 11 bits, the identification result is still very disordered, the MAC section is discarded if the percentage of any type can reach a preset threshold value, and the like.
(5) Eventually this OUI co-forms a 7-segment MAC segment with the following results.
Dynamic mac segment Terminal model
E868190 Huacheng set-top box Q21
E868191 Huacheng set-top box Q21
E868192 Hua Shi Yue box
E868194 Hua Shi Yue box
E868198 Hua Shi Yue box
E86819B Hua Shi Yue box
E86819C Hua Shi Yue box
S2, loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, if the matching is successful, outputting the corresponding terminal model, otherwise, outputting the MAC address without identification. As shown in fig. 2, this step specifically includes.
S21, after the configuration of the starting parameters is completed, the dynamic MAC segment library is started and loaded, the MAC signal query interface is opened, and the input MAC address to be queried is acquired through the MAC signal query interface. The starting parameters include n and P as described above.
And S22, matching the MAC section bit number range appointed by the starting parameter with the dynamic MAC section library from small to large, outputting a corresponding terminal model if the matching is successful, and outputting the MAC address not to be identified if the matching is not successful until the maximum length of the MAC section.
An actual operation flow is provided below to verify the above scheme.
(1) Assume that the list of MAC addresses currently to be queried is as follows: e868193CA5E0, E8681928C7DC, E8681906616E, 000763FAB 39A.
(2) Starting service, loading the generated dynamic MAC segment library, setting starting parameters, and n: n is more than or equal to 6 and less than or equal to 11.
(3) The MAC addresses to be inquired are input one by one, the values set by the starting parameters are intercepted from small to large and are matched with the dynamic MAC segment library, and the final result is as follows.
Query mac Recognition result
E868193CA5E0 Not to identify
E8681928C7DC Hua Shi Yue box
E8681906616E Huacheng set-top box Q21
000763FAB39A Not to identify
In summary, according to the terminal model dynamic identification method based on the MAC address, when the terminal device has no traffic information or does not contain model features in the traffic information, the identification problem of the terminal device is solved in a more flexible manner, and the model identification rate of the terminal device is improved. The method can quickly identify the newly accessed terminal equipment, quicken the identification speed of the terminal equipment, and simultaneously expand the identification range of the MAC under the same OUI, so that the model identification is more accurate and the accuracy is higher. Meanwhile, the method only occupies less system resources when being applied, and the problem of overlarge resource occupation in the prior art is avoided.
In another aspect, the present invention also relates to a device for dynamically identifying a terminal model based on a MAC address, as shown in fig. 3, including:
the dynamic MAC section library generation module is used for classifying and sequencing the identified MAC sections, dynamically aggregating the MAC sections, counting the ratio of each terminal signal in the process and comparing the ratio result with a preset threshold value to obtain a dynamic MAC section library, wherein the dynamic MAC section library contains dynamic relations between MAC sections with different lengths and terminal models;
and the terminal model identification module is used for loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, outputting a corresponding terminal model if the input MAC address is successfully matched with the dynamic MAC segment library, and otherwise outputting the MAC address which is not identified.
Wherein, the dynamic MAC segment library generating module comprises:
the MAC section classification unit is used for taking the input and identified MAC sections as initial data, dividing all the MAC sections into a plurality of groups based on OUI, and a plurality of MAC sections exist under the same OUI;
the dynamic polymerization unit is used for carrying out dynamic polymerization from the first n bits of the MAC section, wherein n is the bit range of the MAC section in the dynamic polymerization process, and the value of n is more than or equal to 6 and less than 12; counting the occupation ratio of each terminal model in the aggregation process, comparing the occupation ratio result with a preset threshold value, if the occupation ratio reaches the preset threshold value, outputting the dynamic relation between the MAC sections with different lengths and the terminal models, and using the dynamic relation as a dynamic MAC section library, otherwise, adding an operation to the execution length of the MAC section and repeating the process until the MAC section reaches the maximum length or cannot be aggregated, and if the occupation ratio is always smaller than the preset threshold value, discarding the MAC section.
Wherein, the terminal model identification module includes:
the MAC address acquisition unit is used for starting and loading the dynamic MAC segment library after the configuration of the starting parameters is finished, opening an MAC signal query interface and acquiring an input MAC address to be queried through the MAC signal query interface;
and the MAC address matching unit is used for matching the MAC section bit number range specified in the starting parameter with the dynamic MAC section library from small to large, outputting a corresponding terminal model if the matching is successful, and outputting the MAC address not to be identified if the matching is not successful until the maximum length of the MAC section.
In yet another aspect, the present invention also relates to a terminal, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for dynamically identifying a terminal model based on a MAC address as described above.
In yet another aspect, the present invention further relates to a computer-readable storage medium, which stores a computer program, which when executed by a processor implements the steps of the method for dynamically identifying a terminal model based on a MAC address as described above, for example, steps S1 to S2. Alternatively, the processor, when executing the computer program, implements the functions of each module/unit in the above-described device embodiments, for example, the functions of each module shown in fig. 3.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Corresponding to the contents of the method, the terminal model dynamic identification device, the terminal and the storage medium based on the MAC address can efficiently and accurately complete the model identification of the terminal equipment by a systematized and standardized processing flow, have higher adaptability and compatibility, and can be really applied to the actual dynamic identification process.
The invention also provides reference for other related problems in the same field, can be expanded and extended based on the reference, is applied to other technical schemes related to equipment identification in the same field, and has very wide application prospect.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein, and any reference signs in the claims are not intended to be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (10)

1. A terminal model dynamic identification method based on MAC address is characterized by comprising the following steps:
classifying and ordering the identified MAC sections, dynamically aggregating the MAC sections, counting the ratio of each terminal signal in the process, and comparing the ratio result with a preset threshold value to obtain a dynamic MAC section library, wherein the dynamic MAC section library contains dynamic relations between MAC sections with different lengths and terminal models;
and loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, outputting a corresponding terminal model if the input MAC address is successfully matched with the dynamic MAC segment library, and otherwise, outputting the MAC address without identification.
2. The method for dynamically identifying the model of the terminal based on the MAC address as claimed in claim 1, wherein the step of sorting the identified MAC addresses, aggregating the MAC addresses from the first n bits of the MAC addresses, counting the ratio of each terminal signal and comparing the ratio result with a preset threshold to obtain a dynamic MAC segment library, wherein the dynamic MAC segment library contains the dynamic relationship between MAC address segments with different lengths and the model of the terminal, comprises:
taking the recorded and identified MAC sections as initial data, dividing all the MAC sections into a plurality of groups based on OUI, wherein a plurality of MAC sections exist under the same OUI;
and dynamically polymerizing from the first n bits of the MAC section, counting the ratio of each terminal model in the polymerization process, comparing the ratio result with a preset threshold value, if the ratio reaches the preset threshold value, outputting the dynamic relation between the MAC sections with different lengths and the terminal models, and using the dynamic relation as a dynamic MAC section library, otherwise, adding an operation to the execution length of the MAC section and repeating the process until the MAC section reaches the maximum length or cannot be polymerized, and if the ratio is always smaller than the preset threshold value, discarding the MAC section.
3. The method for dynamically identifying the model of the terminal based on the MAC address as claimed in claim 2, wherein: and n is the bit range of the MAC section in the dynamic polymerization process, and the value of n is more than or equal to 6 and less than 12.
4. The method for dynamically identifying the model of the terminal based on the MAC address as claimed in claim 1, wherein the step of loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, outputting the corresponding model of the terminal if the input MAC address is successfully matched with the dynamic MAC segment library, and otherwise outputting the MAC address without identification comprises the steps of:
after the configuration of the starting parameters is finished, starting and loading the dynamic MAC segment library, opening an MAC signal query interface, and acquiring an input MAC address to be queried through the MAC signal query interface;
and matching the MAC section bit number range specified in the starting parameter with the dynamic MAC section library from small to large, outputting a corresponding terminal model if the matching is successful, and outputting an MAC address not to be identified if the matching is not successful until the maximum length of the MAC section.
5. A dynamic terminal model identification device based on MAC address is characterized in that the device comprises:
the dynamic MAC section library generation module is used for classifying and sequencing the identified MAC sections, dynamically aggregating the MAC sections, counting the ratio of each terminal signal in the process and comparing the ratio result with a preset threshold value to obtain a dynamic MAC section library, wherein the dynamic MAC section library contains dynamic relations between MAC sections with different lengths and terminal models;
and the terminal model identification module is used for loading the dynamic MAC segment library, matching the input MAC address with the dynamic MAC segment library, outputting a corresponding terminal model if the input MAC address is successfully matched with the dynamic MAC segment library, and otherwise outputting the MAC address which is not identified.
6. The device for dynamically identifying the model of the terminal based on the MAC address as claimed in claim 5, wherein the dynamic MAC segment library generating module comprises:
the MAC section classification unit is used for taking the input and identified MAC sections as initial data, dividing all the MAC sections into a plurality of groups based on OUI, and a plurality of MAC sections exist under the same OUI;
and the dynamic aggregation unit is used for carrying out dynamic aggregation from the first n bits of the MAC section, counting the occupation ratio of each terminal model in the aggregation process and comparing the occupation ratio result with a preset threshold, if the occupation ratio reaches the preset threshold, outputting the dynamic relation between the MAC section with different lengths and the terminal model and taking the dynamic relation as a dynamic MAC section library, otherwise, adding an operation to the execution length of the MAC section and repeating the process until the MAC section reaches the maximum length or cannot be aggregated again, and if the occupation ratio is always smaller than the preset threshold, discarding the MAC section.
7. The device for dynamically identifying the model of the terminal based on the MAC address as claimed in claim 6, wherein: and n is the bit range of the MAC section in the dynamic polymerization process, and the value of n is more than or equal to 6 and less than 12.
8. The apparatus for dynamically identifying the terminal model based on the MAC address as claimed in claim 6, wherein the terminal model identification module comprises:
the MAC address acquisition unit is used for starting and loading the dynamic MAC segment library after the configuration of the starting parameters is finished, opening an MAC signal query interface and acquiring an input MAC address to be queried through the MAC signal query interface;
and the MAC address matching unit is used for matching the MAC section bit number range specified in the starting parameter with the dynamic MAC section library from small to large, outputting a corresponding terminal model if the matching is successful, and outputting the MAC address not to be identified if the matching is not successful until the maximum length of the MAC section.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for dynamically identifying a model of a terminal based on a MAC address according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, which stores a computer program, wherein the computer program, when executed by a processor, implements the steps in the method for dynamically identifying a model of a terminal based on a MAC address according to any one of claims 1 to 4.
CN202111559626.2A 2021-12-20 2021-12-20 Dynamic identification method and device for terminal model based on MAC address, terminal and storage medium Active CN114390511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111559626.2A CN114390511B (en) 2021-12-20 2021-12-20 Dynamic identification method and device for terminal model based on MAC address, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111559626.2A CN114390511B (en) 2021-12-20 2021-12-20 Dynamic identification method and device for terminal model based on MAC address, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114390511A true CN114390511A (en) 2022-04-22
CN114390511B CN114390511B (en) 2024-05-17

Family

ID=81197890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111559626.2A Active CN114390511B (en) 2021-12-20 2021-12-20 Dynamic identification method and device for terminal model based on MAC address, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114390511B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413716A (en) * 2017-08-15 2019-03-01 厦门雅迅网络股份有限公司 A kind of method and terminal identifying device type
CN112202610A (en) * 2020-09-29 2021-01-08 苏州迈科网络安全技术股份有限公司 Terminal model identification system and method based on MAC address
WO2021088438A1 (en) * 2019-11-05 2021-05-14 华为技术有限公司 Access device type determination method, device and system
WO2021190398A1 (en) * 2020-03-24 2021-09-30 华为技术有限公司 Device model identification method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413716A (en) * 2017-08-15 2019-03-01 厦门雅迅网络股份有限公司 A kind of method and terminal identifying device type
WO2021088438A1 (en) * 2019-11-05 2021-05-14 华为技术有限公司 Access device type determination method, device and system
WO2021190398A1 (en) * 2020-03-24 2021-09-30 华为技术有限公司 Device model identification method, apparatus and system
CN112202610A (en) * 2020-09-29 2021-01-08 苏州迈科网络安全技术股份有限公司 Terminal model identification system and method based on MAC address

Also Published As

Publication number Publication date
CN114390511B (en) 2024-05-17

Similar Documents

Publication Publication Date Title
CN110554958A (en) Graph database testing method, system, device and storage medium
CN106982381A (en) Homepage recommendation process method and device
CN113079198B (en) Method and device for converting cloud platform interface protocol
CN112202610A (en) Terminal model identification system and method based on MAC address
CN110825533B (en) Data transmitting method and device
CN110851817A (en) Terminal type identification method and device
CN114390511A (en) Method, device, terminal and storage medium for dynamically identifying terminal model based on MAC address
CN115454353B (en) High-speed writing and query method for space application data
CN112257332A (en) Simulation model evaluation method and device
CN116243869A (en) Data processing method and device and electronic equipment
CN113448747B (en) Data transmission method, device, computer equipment and storage medium
EP4145777A1 (en) Message classification method and apparatus, electronic device, and readable medium
CN112187481B (en) User online record management method, device and system
CN112800681A (en) Method for deleting learning clauses in Boolean satisfiability solver and Boolean satisfiability solver
CN108121733A (en) The querying method and device of a kind of data
CN114386468A (en) Network abnormal flow detection method and device, electronic equipment and storage medium
CN112333649A (en) Flow charging method, device, storage medium and computer equipment
CN111104435A (en) Metadata organization method, device and equipment and computer readable storage medium
CN117372210B (en) Legal service consultation system
CN111800446A (en) Scheduling processing method, device, equipment and storage medium
CN111858555B (en) Method for data management depending on metadata
CN109993193A (en) The recognition methods of the key point of three-dimensional curve and device
CN116860761B (en) Data acquisition method, electronic equipment and storage medium
CN110213314B (en) Method, device and server for determining storage node
CN115841131A (en) Model distribution method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant