CN110247992B - Address updating method and device, terminal and server - Google Patents

Address updating method and device, terminal and server Download PDF

Info

Publication number
CN110247992B
CN110247992B CN201810189342.0A CN201810189342A CN110247992B CN 110247992 B CN110247992 B CN 110247992B CN 201810189342 A CN201810189342 A CN 201810189342A CN 110247992 B CN110247992 B CN 110247992B
Authority
CN
China
Prior art keywords
address
terminal
allocated
mac address
idle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810189342.0A
Other languages
Chinese (zh)
Other versions
CN110247992A (en
Inventor
邓高亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810189342.0A priority Critical patent/CN110247992B/en
Publication of CN110247992A publication Critical patent/CN110247992A/en
Application granted granted Critical
Publication of CN110247992B publication Critical patent/CN110247992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides an address updating method, an address updating device, a terminal and a server, wherein the terminal sends an address updating request to the server, and the server selects any idle MAC address as a pre-allocated address; sending the pre-allocated address to the terminal; and the terminal updates the MAC address based on the pre-allocated address. The technical scheme provided by the embodiment of the application improves the data security.

Description

Address updating method and device, terminal and server
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to an address updating method, an address updating device, a terminal and a server.
Background
The MAC (Media Access Control) address is also called a physical address or a hardware address, and is used to define the location of the network device, and the MAC address is required to be used for network connection and data transmission. Currently, the MAC address is usually allocated and fixed in the device by the manufacturer when the device leaves the factory.
Due to the rapid development of network technology, more security problems are brought, when corresponding operations are executed by using the MAC address, the MAC address is likely to be intercepted, data collection can be performed by using the intercepted MAC address, data such as user information and the like can be stolen, particularly for a wireless local area network, the data is exposed in the air for transmission, and the security problems are more serious.
Disclosure of Invention
The embodiment of the application provides an address updating method, an address updating device, a terminal and a server, which are used for solving the problem of data security brought by an MAC address in the prior art, and the MAC address can be updated and is not fixed any more, so that the data security is improved.
In a first aspect, an embodiment of the present application provides an address updating method, including:
receiving an address updating request sent by a terminal;
selecting any idle MAC address as a pre-allocation address;
and sending the pre-allocated address to the terminal to trigger the terminal to update the MAC address.
In a second aspect, an embodiment of the present application provides an address updating method, including:
sending an address updating request to a server;
receiving a pre-allocated address sent by the server; the pre-allocated address is any idle MAC address stored by the server;
and updating the MAC address by utilizing the pre-allocated address.
In a third aspect, an embodiment of the present application provides an address update apparatus, including:
the request receiving module is used for receiving an address updating request sent by the terminal;
the address selection module is used for selecting any idle MAC address as a pre-allocation address;
and the updating triggering module is used for sending the pre-allocated address to the terminal so as to trigger the terminal to update the MAC address.
In a fourth aspect, an embodiment of the present application provides an address updating apparatus, including:
the request sending module is used for sending an address updating request to the server;
the address receiving module is used for receiving the pre-allocated address sent by the server; the pre-allocated address is any idle MAC address stored by the server;
and the address updating module is used for updating the MAC address by utilizing the pre-allocated address.
In a fifth aspect, embodiments of the present application provide a server, including a storage component, a transmitting component, a receiving component, and a processing component, wherein,
the storage component stores one or more computer instructions, wherein the one or more computer instructions are for the processing component to invoke execution;
the processing component is to:
receiving an address updating request sent by a terminal through the receiving component;
selecting any idle MAC address as a pre-allocation address;
and triggering the transmitting assembly to send the pre-allocated address to the terminal so as to trigger the terminal to update the MAC address.
In a sixth aspect, embodiments of the present application provide a terminal comprising a storage component, a transmitting component, a receiving component, and a processing component, wherein,
the storage component stores one or more computer instructions, wherein the one or more computer instructions are for the processing component to invoke execution;
the processing component is to:
triggering the transmitting component to send an address updating request to a server;
receiving the pre-allocated address sent by the server through the receiving component; the pre-allocated address is any idle MAC address stored by the server;
and updating the MAC address by utilizing the pre-allocated address.
In the embodiment of the application, a terminal sends an address updating request to a server, and the server selects any idle MAC address as a pre-allocated address according to the address updating request and sends the pre-allocated address to the terminal; the terminal can update the MAC address by utilizing the pre-allocated address update, and in the embodiment, the MAC address can be updated and is not fixed, so that potential safety hazards caused by interception of the current MAC address can be avoided, data such as user information and the like can be prevented from being stolen, and the data safety is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow diagram illustrating one embodiment of an address update method provided herein;
FIG. 2 is a flow diagram illustrating yet another embodiment of an address update method provided herein;
FIG. 3 is a diagram illustrating address updating in a practical application according to an embodiment of the present application;
FIG. 4 is a flow diagram illustrating yet another embodiment of an address update method provided herein;
FIG. 5 is a schematic diagram illustrating an embodiment of an address update apparatus provided in the present application;
FIG. 6 is a schematic diagram illustrating an address update apparatus according to another embodiment of the present application;
FIG. 7 is a schematic diagram illustrating an embodiment of a server provided by the present application;
fig. 8 is a schematic structural diagram illustrating an embodiment of a terminal provided in the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the number of operations, e.g., 101, 102, etc., merely being used to distinguish between various operations, and the number itself does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical scheme of the application can be applied to terminals using MAC addresses such as mobile equipment and wireless equipment, the MAC addresses are generally burnt in a network card of the terminal when leaving a factory and cannot be changed at present, so that once the MAC addresses are intercepted, user information can be stolen, potential safety hazards are brought, and particularly when the MAC addresses are used for wireless connection or data transmission, the MAC addresses are easily intercepted as data are exposed in the air.
In the embodiment of the application, a terminal can send an address updating request to a server, and the server determines any idle MAC address as a pre-allocated address according to the address updating request and sends the pre-allocated address to the terminal; in the embodiment, the MAC address can be updated and is not fixed, and the terminal can request to acquire a free MAC address from the server for use according to the use requirement, so that the situation that the terminal cannot be found by using the intercepted MAC address through updating the MAC address even if the current MAC address is intercepted can be avoided, and the data such as user information and the like can be prevented from being stolen, and the data security is improved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of an embodiment of an address updating method provided in an embodiment of the present application, where the address updating method of this embodiment may be applied to a server, and the method may include the following steps:
101: and receiving an address updating request sent by the terminal.
As an alternative, the address update request may be generated and transmitted by the terminal in response to a user-triggered address update operation.
Alternatively, the address update request may be generated and transmitted by the terminal in response to a periodically generated update instruction. The update instruction may be generated every 30 minutes or 1 hour, for example.
In addition, in a practical application, the technical solution of the embodiment of the present application may be applied to a network connection scenario, in particular, a wireless network connection scenario, and since the MAC address is required to be used when performing network connection and data transmission based on network connection, as another optional manner, the address update request may be generated and sent to the server when the terminal detects network disconnection;
or may be generated and sent to the server upon receiving a network connection request.
Namely, when a network connection request is received or the network connection is disconnected, the MAC address can be updated once, so that potential safety hazards caused by intercepting the MAC address once can be avoided.
102: any free MAC address is selected as the pre-assigned address.
The server in this embodiment may be a server configured by a manufacturer of the terminal, and a large number of different MAC addresses are preset in the server; before the terminals leave the factory, the server may select a part of the idle MAC addresses to be respectively allocated to the terminals, and the part of the idle MAC addresses are used as factory MAC addresses of the terminals, that is, initial MAC addresses. Each terminal may then also request the server to update its MAC address.
Of course, the server may be any server that provides different MAC addresses, and the terminal may register with the server as a registered terminal, so that the free MAC address may be obtained from the server.
To further ensure security, optionally, the selecting any free MAC address as a pre-allocated address may include:
judging whether the terminal is a pre-configured terminal or not;
and if the terminal is a pre-configured terminal, taking any idle MAC address as a pre-allocated address.
I.e. only address updating is allowed for pre-configured terminals, which may be registered terminals recorded by the server, or shipped terminals recorded by the server, etc.
The determining whether the terminal is a pre-configured terminal may specifically be determining whether a terminal identifier of the terminal is stored.
That is, the server may store terminal identifiers of different terminals, and the terminal identifiers may be recorded in the server when the terminal is registered or when the terminal leaves the factory.
Alternatively, the terminal Identifier may be a UUID (Universally Unique Identifier).
And judging whether the terminal is a pre-configured terminal or not, and inquiring whether the MAC address to be updated currently used by the terminal exists in an allocated address base or not.
Wherein the allocated address base stores therein MAC addresses currently being used by different terminals. After the server receives the address update request, any free MAC address can be selected as the pre-assigned address if any.
Alternatively, the free MAC addresses may be stored in a free address pool of the server, so that any free MAC address may be selected from the free address pool as the pre-assigned address by querying the free address pool. The idle MAC address also refers to a MAC address that is not currently used by any terminal.
If the server is a server configured by the manufacturer, therefore, optionally, after receiving the address update request sent by the terminal, the method may further include:
and selecting different idle MAC addresses from the idle address library to be respectively allocated to different pre-configured terminals. Different pre-configured terminals will assign the obtained MAC address to be used as the initial MAC address.
103: and sending the pre-allocated address to the terminal to trigger the terminal to update the MAC address.
After the pre-allocated address is sent to the terminal, the terminal can update the MAC address according to the pre-allocated address, and replace the pre-allocated address with the currently used MAC address.
In the embodiment, the MAC address can be updated and is not fixed, and the terminal can request to acquire an idle MAC address from the server for use, so that the situation that even if the current MAC address is intercepted, the terminal cannot be found by utilizing the intercepted MAC address through updating the MAC address can be avoided, and data such as user information and the like can be prevented from being stolen, and the data security is improved.
In some embodiments, the address update request sent by the terminal may include a MAC address currently used by the terminal, and for convenience of description, the address update request is named as a "MAC address to be updated" in this embodiment of the present application. Wherein, if the address update request is sent by the terminal for the first time, the MAC address to be updated may be an initial MAC address allocated by the server.
The taking any free MAC address as a pre-allocated address may include:
inquiring an idle address library;
selecting any idle MAC address as a pre-allocation address;
after the sending the pre-assigned address to the terminal to trigger the terminal to perform MAC address update, the method may further include:
and adding the MAC address to be updated into the idle address base, and removing the pre-allocated address to update the idle address base.
In addition, an allocated address base is also set in the server, so the pre-allocated address can be added into the allocated address base, and the MAC address to be updated is removed from the allocated address base, so as to update the allocated address base.
The idle address base is used for storing idle MAC addresses, and the allocated address base stores MAC addresses currently used by different terminals.
After the terminal uses the pre-allocated address to update the address, the MAC address to be updated is in an idle state, so that the MAC address to be updated can be added into an idle address library to be used by other terminals selectively, and the pre-allocated address is in a using state, the MAC address is removed from the idle address library, so that the MAC address is prevented from being repeatedly allocated and causing MAC address conflict.
In addition, after the terminal performs MAC address update using the pre-assigned address, an address update confirmation request may also be sent to the server, so that the server adds the MAC address to be updated in the free address library, and removes the pre-assigned address may be: and if an address update confirmation request fed back by the terminal is received, adding the MAC address to be updated into the idle address library, and removing the pre-allocated address.
To further improve security, in some embodiments, the selecting any free MAC address as a pre-assigned address may include:
inquiring whether an idle MAC address exists;
if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address;
if yes, selecting any unused address from the idle MAC addresses as a pre-allocation address;
if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address;
wherein the free address base can be queried for the presence of a free MAC address.
In this embodiment, an unused address is preferably selected as the pre-allocated address, and if there is no unused address, any of the used addresses is selected as the pre-allocated address.
After any unused address is taken as a pre-allocated address, the pre-allocated address can be marked as a used address corresponding to the terminal.
In order to further improve security, the selecting, from the idle MAC addresses, any used address corresponding to the terminal as a pre-assigned address may be: selecting any used address that is least recently used by the terminal as a pre-assigned address. That is, according to the use time of the used address corresponding to the terminal, the earliest used address is selected as the pre-allocated address.
Fig. 2 is a flowchart of another embodiment of an address updating method provided in an embodiment of the present application, where the technical solution of this embodiment may be applied to a terminal, and the method may include the following steps:
201: and sending an address updating request to the server.
202: and receiving the pre-allocated address sent by the server.
Wherein the pre-allocated address is any free MAC address stored by the server.
Optionally, the obtaining of the pre-allocated address may specifically refer to the foregoing embodiment, and is not described herein again.
203: and updating the MAC address by utilizing the pre-allocated address.
As an optional manner, the sending the address update request to the server may include:
and responding to the address updating operation triggered by the user, and sending an address updating request to the server.
That is, the user can trigger the MAC address update according to the user requirement.
In addition, in a practical application, the technical solution of the embodiment of the present application may be applied to a network connection scenario, in particular, in a wireless connection scenario, since a MAC address is required to be used when performing network connection and data transmission with the network connection.
Therefore, as another alternative, the sending the address update request to the server may include:
and when the disconnection of the network connection is detected, sending the address updating request to the server.
Namely, if the network connection disconnection is detected, the MAC address can be updated, so that the problem of potential safety hazard caused by interception of the MAC address used in the network connection process is avoided.
As another alternative, the sending the address update request to the server may include:
and when a network connection request is detected, sending an address updating request to the server.
The network connection request may be generated when the terminal detects the presence of an available network or in response to a user-triggered network connection operation.
That is, if network connection is detected, the MAC address can be updated first, and then the updated MAC address is used to establish network connection, so that the potential safety hazard problem caused by interception of the previously used MAC address of the terminal can be avoided.
In the embodiment, the MAC address can be updated and is not fixed, and the terminal can request to acquire an idle MAC address from the server for use, so that the situation that even if the current MAC address is intercepted, the terminal cannot be found by utilizing the intercepted MAC address through updating the MAC address can be avoided, and the user information can be prevented from being stolen, thereby improving the safety.
As can be seen from the above description, the technical solution of the embodiment of the present application can be applied to a network connection scenario, in particular, a wireless network connection scenario in a practical application.
As shown in fig. 3, the terminal 301 may send an address update request to the server 302 when the network connection is disconnected, or when the network connection request is detected, the network connection request may be triggered by a user, and first sends an address update request to the server 302, and obtains a pre-assigned address based on the request to perform MAC address update.
If the address updating request is sent when the network connection request is detected, the terminal updates the MAC address, then establishes the network connection by using the new MAC address, and can transmit data by using the updated MAC address after establishing the network connection.
If the network connection is disconnected, the MAC address is updated once, so that even if the MAC address is intercepted, the intercepted MAC address cannot steal user information and the like; if the network connection is requested to be established, the MAC address is updated once, so that the potential safety hazard brought by establishing the network connection by using the intercepted MAC address can be avoided, and data transmission and the like are intercepted.
Fig. 4 is a signaling diagram of another embodiment of an address updating method provided in an embodiment of the present application, where the method may include the following steps:
401: the terminal sends an address update request to the server.
Alternatively, the address update request may be sent to the server in response to a user-triggered address update operation, detection of a network disconnection, or detection of a network connection request.
402: the server determines whether the terminal is a pre-configured terminal, if so, executes step 403, and if not, may end the process.
Alternatively, it may be determined whether to store a terminal identifier of the terminal, where the terminal identifier may be a UUID identifier.
Or inquiring whether the MAC address to be updated currently used by the terminal exists in an allocated address base.
403: the server queries the free address pool for free MAC addresses, and if not, proceeds to step 404, and if so, proceeds to step 405.
404: and the server feeds back an address updating failure message to the terminal.
405: the server inquires from the idle MAC address whether an unused address corresponding to the terminal exists, if so, step 406 is executed, and if not, step 408 is executed.
406: the server selects any unused address from the free MAC addresses as a pre-assigned address.
407: the server selects any one of the used addresses that the terminal uses earliest as a pre-assigned address.
408: and the server sends the pre-allocated address to the terminal.
409: and the terminal updates the MAC address by using the pre-allocated address.
410: and the terminal feeds back an address updating confirmation request to the server.
411: and the server responds to the address updating confirmation request, adds the MAC address to be updated in the idle address library, removes the pre-distributed address, adds the pre-distributed address in the distributed address library and removes the MAC address to be updated.
In addition, if the pre-allocated address is any unused address selected from the idle MAC addresses, the server may further mark the pre-allocated address as a used address of the terminal after receiving the address update confirmation request.
According to the technical scheme of the embodiment of the application, the MAC address can be updated and is not fixed, so that the situation that even if the current MAC address is intercepted, the terminal cannot be found by utilizing the intercepted MAC address through updating the MAC address can be avoided, the user information can be prevented from being stolen, and the data safety is improved.
Fig. 5 is a schematic structural diagram of an embodiment of an address updating apparatus according to the present application, where the apparatus may be configured in a server, and the apparatus may include:
a request receiving module 501, configured to receive an address update request sent by a terminal;
an address selection module 502 for selecting any idle MAC address as a pre-assigned address;
here, the idle MAC address may refer to a MAC address that is not currently used by any terminal.
An update triggering module 503, configured to send the pre-assigned address to the terminal, so as to trigger the terminal to perform MAC address update.
After the pre-allocated address is sent to the terminal, the terminal can update the MAC address according to the pre-allocated address, and replace the pre-allocated address with the currently used MAC address.
In the embodiment, the MAC address can be updated and is not fixed, and the terminal can request to acquire an idle MAC address from the server for use, so that the situation that even if the current MAC address is intercepted, the terminal cannot be found by utilizing the intercepted MAC address through updating the MAC address can be avoided, and data such as user information and the like can be prevented from being stolen, and the data security is improved.
In some embodiments, the address update request includes a MAC address to be updated currently used by the terminal;
the address selection module may be specifically configured to query an idle address repository; selecting any idle MAC address as a pre-allocation address;
further, the apparatus may further include:
and the first address base updating module is used for adding the MAC address to be updated into the idle address base and removing the pre-allocated address.
In addition, an allocated address base is also set in the server, so the address base updating module can also add the pre-allocated address into the allocated address base.
That is, the apparatus may further include:
and the second address bank updating module is used for adding the pre-allocated address into the allocated address bank and removing the MAC address to be updated.
In addition, after the terminal performs MAC address update using the pre-assigned address, an address update confirmation request may be sent to the server, so as to provide yet another embodiment, the address base update module may be specifically configured to add the MAC address to be updated to the free address base and remove the pre-assigned address if the address update confirmation request fed back by the terminal is received.
Furthermore, to further increase security, in some embodiments, the address selection module may include:
the judging unit is used for judging whether the terminal is a pre-configured terminal or not;
and the selection unit is used for selecting any idle MAC address as the pre-allocated address when the judgment unit has a positive result.
Optionally, the selecting unit may be specifically configured to select any free MAC address from a free address library as the pre-assigned address when the result of the determining unit is yes.
Optionally, the selecting unit may be further specifically configured to query whether a MAC address to be updated currently used by the terminal exists in an allocated address library.
As an optional manner, the determining unit may be specifically configured to determine whether to store the terminal identifier of the terminal.
Alternatively, the terminal Identifier may be a UUID (Universally Unique Identifier).
To further improve security, in some embodiments, the address selection module may include:
the first inquiry unit is used for inquiring whether an idle MAC address exists or not;
a second query unit, configured to query whether an unused address corresponding to the terminal exists from an idle MAC address if the idle MAC address exists;
the first address selection unit is used for selecting any unused address from the idle MAC addresses as a pre-allocated address if the result of the second inquiry unit is negative;
and the second address selecting unit is used for selecting any used address corresponding to the terminal from the idle MAC addresses as a pre-allocated address if the result of the second inquiring unit is positive.
The first querying unit may specifically query whether there is an idle MAC address from an idle address library.
In this embodiment, an unused address is preferably selected as the pre-allocated address, and if there is no unused address, any of the used addresses is selected as the pre-allocated address.
After any unused address is taken as a pre-allocated address, the pre-allocated address can be marked as a used address corresponding to the terminal.
Furthermore, the apparatus may further include:
and the marking module is used for marking the pre-allocated address selected by the first address selection unit as the used address of the terminal.
Optionally, the marking module may be specifically configured to mark the pre-allocated address selected by the first address selecting unit as the used address of the terminal if an address update confirmation request fed back by the terminal is received.
In order to further improve the security, the second address selecting unit is specifically configured to select any one of the used addresses that is used by the terminal least recently from the idle MAC addresses as a pre-assigned address if the result of the second querying unit is yes.
Fig. 6 is a schematic structural diagram of an embodiment of an address updating apparatus according to the present application, where the apparatus may be configured in a terminal, and the terminal may specifically be a wireless terminal, and the apparatus may include:
a request sending module 601, configured to send an address update request to a server;
an address receiving module 602, configured to receive a pre-assigned address sent by the server; the pre-allocated address is any idle MAC address stored by the server;
an address update module 603, configured to perform MAC address update using the pre-allocated address.
As an optional manner, the request sending module may be specifically configured to send an address update request to the server in response to an address update operation triggered by a user.
As another optional mode, the request sending module is specifically configured to send the address update request to the server when detecting that the network connection is disconnected.
As yet another optional manner, the request sending module is specifically configured to send an address update request to the server when detecting a network connection request.
In the embodiment, the MAC address can be updated and is not fixed, and the terminal can request to acquire an idle MAC address from the server for use, so that the situation that even if the current MAC address is intercepted, the terminal cannot be found by utilizing the intercepted MAC address through updating the MAC address can be avoided, and the user information can be prevented from being stolen, thereby improving the safety.
The specific manner of executing operations by each module and unit in the address updating apparatus in the above embodiments has been described in detail in the embodiments related to the method, and will not be elaborated here.
In one possible design, the address updating apparatus of the embodiment shown in fig. 5 may also be implemented as a server, which may include a storage component 701, a transmitting component 702, a receiving component 703, and a processing component 704, as shown in fig. 7, wherein,
the storage component 701 stores one or more computer instructions for the processing component 704 to invoke for execution;
the processing component 704 is configured to:
receiving an address update request sent by a terminal through the receiving component 703;
selecting any idle MAC address as a pre-allocation address;
triggering the transmitting component 702 to send the pre-assigned address to the terminal to trigger the terminal to perform MAC address update.
The processing component 702 may comprise one or more processors executing computer instructions to perform all or a portion of the steps of the methods described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component is configured to store various types of data to support the operation of the server. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, the server may also include other components to realize the basic functional operations thereof, which will not be described herein.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the address updating method of the embodiment shown in fig. 1 may be implemented.
In one possible design, the address updating apparatus of the embodiment shown in fig. 6 may also be implemented as a terminal, which may be a wireless terminal, for example, a mobile phone, a tablet computer, a personal computer, or a wireless terminal capable of connecting to a wireless network.
As shown in fig. 8, the terminal can include a storage component 801, a transmitting component 802, a receiving component 803, and a processing component 804, wherein,
the storage component 801 stores one or more computer instructions for invoking execution by the processing component 804;
the processing component 804 is configured to:
triggering the transmitting component 802 to send an address update request to a server;
receiving, by the receiving component 803, the pre-assigned address sent by the server; the pre-allocated address is any idle MAC address stored by the server;
and updating the MAC address by utilizing the pre-allocated address.
Among other things, the processing component 803 may include one or more processors to execute computer instructions to perform all or some of the steps of the methods described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component is configured to store various types of data to support operation at the XX device. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In addition, the terminal may also include other components, such as a display component, to implement the basic functional operations thereof, which are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the address updating method of the embodiment shown in fig. 2 may be implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (16)

1. An address update method applied to a server, comprising:
receiving an address updating request sent by a terminal;
selecting any idle MAC address as a pre-allocation address;
sending the pre-allocated address to the terminal to trigger the terminal to update the MAC address;
wherein the selecting the any idle MAC address as a pre-assigned address comprises:
inquiring whether an idle MAC address exists;
if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address;
if yes, selecting any unused address from the idle MAC addresses as a pre-allocated address;
and if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address.
2. The method according to claim 1, wherein the address update request includes a MAC address to be updated currently used by the terminal;
the selecting any free MAC address as a pre-assigned address comprises:
inquiring an idle address library;
selecting any idle MAC address as a pre-allocation address;
after the pre-assigned address is sent to the terminal to trigger the terminal to update the MAC address, the method further includes:
and adding the MAC address to be updated into the idle address base, and removing the pre-allocated address.
3. The method of claim 1 or 2, wherein selecting any free MAC address as a pre-assigned address comprises:
judging whether the terminal is a pre-configured terminal or not;
and if the terminal is a pre-configured terminal, selecting any idle MAC address as a pre-allocated address.
4. The method of claim 3, wherein the determining whether the terminal is a preconfigured terminal comprises:
and judging whether to store the terminal identification of the terminal.
5. The method of claim 3, wherein the determining whether the terminal is a preconfigured terminal comprises:
inquiring whether an MAC address to be updated currently used by the terminal exists in an allocated address base;
after the sending of the pre-assigned address to the terminal to trigger the terminal to perform MAC address update, the method further includes:
and adding the pre-allocated address into the allocated address base, and removing the MAC address to be updated.
6. The method of claim 1, wherein after selecting any unused address from the idle MAC addresses as a pre-allocated address, the method further comprises:
and marking the pre-allocated address as a used address of the terminal.
7. The method according to claim 1, wherein the selecting any one of the used addresses corresponding to the terminal as the pre-allocated address comprises:
selecting any used address that is least recently used by the terminal as a pre-assigned address.
8. The method of claim 2, wherein adding the MAC address to be updated in the free address pool and removing the pre-allocated address comprises:
and responding to an address update confirmation request sent by the terminal, adding the MAC address to be updated into the idle address library, and removing the pre-allocated address.
9. An address update method, comprising:
sending an address updating request to a server;
receiving a pre-allocated address sent by the server; the pre-allocated address is any idle MAC address stored by the server, and the server is used for inquiring whether the idle MAC address exists or not; if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address; if yes, selecting any unused address from the idle MAC addresses as a pre-allocation address; if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address;
and updating the MAC address by utilizing the pre-allocated address.
10. The method of claim 9, wherein sending an address update request to a server comprises:
and responding to the address updating operation triggered by the user, and sending an address updating request to the server.
11. The method of claim 9, wherein sending an address update request to a server comprises:
and when the disconnection of the network connection is detected, sending the address updating request to the server.
12. The method of claim 9, wherein sending an address update request to a server comprises:
and when a network connection request is detected, sending an address updating request to the server.
13. An address update apparatus, comprising:
the request receiving module is used for receiving an address updating request sent by the terminal;
the address selection module is used for selecting any idle MAC address as a pre-allocated address;
the updating triggering module is used for sending the pre-allocated address to the terminal so as to trigger the terminal to update the MAC address;
the address selection module is specifically used for inquiring whether an idle MAC address exists; if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address; if yes, selecting any unused address from the idle MAC addresses as a pre-allocated address; and if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address.
14. An address update apparatus, comprising:
the request sending module is used for sending an address updating request to the server;
the address receiving module is used for receiving the pre-distributed address sent by the server; the pre-allocated address is any idle MAC address stored by the server, and the server is used for inquiring whether the idle MAC address exists or not; if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address; if yes, selecting any unused address from the idle MAC addresses as a pre-allocated address; if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address;
and the address updating module is used for updating the MAC address by utilizing the pre-allocated address.
15. A server comprising a storage component, a transmitting component, a receiving component, and a processing component, wherein,
the storage component stores one or more computer instructions, wherein the one or more computer instructions are for the processing component to invoke execution;
the processing component is to:
receiving an address updating request sent by a terminal through the receiving component;
selecting any idle MAC address as a pre-allocation address;
triggering the transmitting assembly to send the pre-allocated address to the terminal so as to trigger the terminal to update the MAC address;
wherein the selecting the any idle MAC address as a pre-assigned address comprises:
inquiring whether an idle MAC address exists;
if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address;
if yes, selecting any unused address from the idle MAC addresses as a pre-allocated address;
and if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address.
16. A terminal, comprising a storage component, a transmitting component, a receiving component, and a processing component, wherein,
the storage component stores one or more computer instructions, wherein the one or more computer instructions are for the processing component to invoke execution;
the processing component is to:
triggering the transmitting component to send an address updating request to a server;
receiving the pre-allocated address sent by the server through the receiving component; the pre-allocated address is any idle MAC address stored by the server, and the server is used for inquiring whether the idle MAC address exists or not; if the idle MAC address exists, inquiring whether an unused address corresponding to the terminal exists from the idle MAC address; if yes, selecting any unused address from the idle MAC addresses as a pre-allocated address; if not, selecting any used address corresponding to the terminal from the idle MAC address as a pre-allocated address;
and updating the MAC address by utilizing the pre-allocated address.
CN201810189342.0A 2018-03-08 2018-03-08 Address updating method and device, terminal and server Active CN110247992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810189342.0A CN110247992B (en) 2018-03-08 2018-03-08 Address updating method and device, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810189342.0A CN110247992B (en) 2018-03-08 2018-03-08 Address updating method and device, terminal and server

Publications (2)

Publication Number Publication Date
CN110247992A CN110247992A (en) 2019-09-17
CN110247992B true CN110247992B (en) 2022-09-02

Family

ID=67882163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810189342.0A Active CN110247992B (en) 2018-03-08 2018-03-08 Address updating method and device, terminal and server

Country Status (1)

Country Link
CN (1) CN110247992B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110971720A (en) * 2019-11-15 2020-04-07 新华三半导体技术有限公司 MAC address maintenance method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079686A (en) * 2014-07-17 2014-10-01 福州瑞芯微电子有限公司 Setting method and distributing method for terminal equipment MAC address
CN106850865A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 The distribution method of MAC Address, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100499673C (en) * 2005-10-21 2009-06-10 华为技术有限公司 Virtual terminal temporary media access control address dynamic altering method
US7730197B2 (en) * 2006-06-30 2010-06-01 International Business Machines Corporation Server-based acquisition and usage of dynamic MAC addresses in a virtualized ethernet environment
CN102318322B (en) * 2011-07-28 2013-10-09 华为技术有限公司 Device and method for distributing MAC address
KR102209525B1 (en) * 2014-01-06 2021-01-29 삼성전자주식회사 Server system, method for mac address allocation and computer-readable recording medium
CN104954502A (en) * 2014-03-31 2015-09-30 研祥智能科技股份有限公司 MAC address updating method in production line and system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079686A (en) * 2014-07-17 2014-10-01 福州瑞芯微电子有限公司 Setting method and distributing method for terminal equipment MAC address
CN106850865A (en) * 2015-12-03 2017-06-13 阿里巴巴集团控股有限公司 The distribution method of MAC Address, apparatus and system

Also Published As

Publication number Publication date
CN110247992A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
EP3389295A1 (en) Multi-terminal mapping system and method for virtual sim card
EP3509270B1 (en) Data backup method and device, storage medium and electronic apparatus
CN104580085B (en) service data updating method, system, client and server
US9585022B2 (en) Profile integration management
US10966080B1 (en) Methods and/or systems for activation and/or configuration of an electronic subscriber identity module (eSIM)
US9313650B2 (en) Communications system, mobile communications device, transition control device, transition control method, and transition control program
CN110475229B (en) Method and device for accessing service data, computer equipment and storage medium
WO2017166619A1 (en) Method and apparatus for determining emergency communication numbers, and electronic device
WO2016192161A1 (en) Data processing method and device
CN111159269A (en) Data processing method, device and system
CN112866984B (en) Call record synchronization method, cloud platform and terminal
CN103916846A (en) Terminal application updating method, system and device
EP3149625A1 (en) Data uniqueness control and information storage
CN113259942B (en) Connection method, connection device, electronic equipment, connection system and computer-readable storage medium
CN110247992B (en) Address updating method and device, terminal and server
CN111338710A (en) Application program control method and device, electronic equipment and storage medium
CN105981416B (en) The method for managing several profiles in safety element
CN105451215A (en) Communication method and electronic device
CN111726367B (en) Method, device, system and equipment for binding access of Customer Premises Equipment (CPE)
CN110401934B (en) Method for managing equipment, management equipment and computer readable storage medium
US8326933B2 (en) Appearance package management method, system and device
CN111182536A (en) SIM card state detection method, device, network equipment and storage medium
CN106792521A (en) Obtain method, device and the electronic equipment of terminal location
CN112770277B (en) Forwarding number verification method and device, mobile terminal and computing equipment
CN114338794A (en) Service message pushing method and device, 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