Summary of the invention
To be overcome the problems, such as present in the relevant technologies at least to a certain extent, the application provides a kind of data de-duplication
Method and terminal.
According to the embodiment of the present application in a first aspect, providing a kind of data de-duplication method, comprising:
Terminal of each terminal into affiliated local area network sends the mark of the data of this terminal storage;
Each terminal receives the mark of the data of the transmission of the terminal in the local area network;The number for determining this terminal and receiving
According to the priority of the corresponding terminal of mark the mark for the data that will be received is judged whether according to determining priority result
The data identified are deleted from the data of this terminal storage.
Optionally, terminal of each terminal into affiliated local area network sends the mark of the data of this terminal storage, packet
It includes:
Based on udp protocol, terminal of each terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, the method also includes:
The IP of this terminal is obtained, and is based on udp protocol, the corresponding terminal of mark of the data received described in acquisition
IP;
The priority of described this terminal of determination terminal corresponding with the mark of data received, comprising:
According to the IP of the IP of this terminal terminal corresponding with the mark of the data received, determines this terminal and receive
The priority of the corresponding terminal of mark of the data arrived.
Optionally, the IP of the IP according to this terminal terminal corresponding with the mark of the data received is determined
The priority of this terminal terminal corresponding with the mark of data received, comprising:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
Optionally, described according to comparison result, determine the excellent of this terminal terminal corresponding with the mark of data received
First grade, comprising:
If the IP that comparison result is this terminal is greater than the IP of the corresponding terminal of mark of the data received, really
The priority of this fixed terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this terminal
IP be less than or equal to the data received the corresponding terminal of mark IP, it is determined that the priority of this terminal is lower than
Or the priority of the corresponding terminal of mark equal to the data received;
Alternatively, if the IP that comparison result is this terminal is less than the corresponding terminal of mark of the data received
IP, it is determined that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result
For this terminal IP be more than or equal to the data received the corresponding terminal of mark IP, it is determined that this terminal it is excellent
First grade is below or equal to the priority of the corresponding terminal of mark of the data received.
Optionally, described according to determining priority result, judge whether what the mark for the data that will be received was identified
Data are deleted from the data of this terminal storage, comprising:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, the method also includes:
Generate the mark of data.
Optionally, the mark for generating data, comprising:
The mark of data is generated by hash algorithm.
According to the second aspect of the embodiment of the present application, a kind of terminal is provided, comprising:
Sending module sends the mark of the data of this terminal storage for the terminal into affiliated local area network;
Receiving module, the mark of the data for receiving the transmission of the terminal in the local area network;
Removing module, for determining the priority of this terminal terminal corresponding with the mark of data received, according to true
Fixed priority result judges whether that the data that the mark for the data that will be received is identified are deleted from the data of this terminal storage
It removes.
Optionally, the sending module is specifically used for:
Based on udp protocol, the terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, the terminal further include:
Module is obtained, for obtaining the IP of this terminal, and is based on udp protocol, the mark of the data received described in acquisition
Know the IP of corresponding terminal;
When the priority of described this terminal of determination terminal corresponding with the mark of data received, the removing module tool
Body is used for:
According to the IP of the IP of this terminal terminal corresponding with the mark of the data received, determines this terminal and receive
The priority of the corresponding terminal of mark of the data arrived.
Optionally, according to the IP of the IP of this terminal terminal corresponding with the mark of the data received, this end is determined
When holding the priority of terminal corresponding with the mark of data received, the removing module is specifically used for:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
Optionally, according to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined
When, the removing module is specifically used for:
If the IP that comparison result is this terminal is greater than the IP of the corresponding terminal of mark of the data received, really
The priority of this fixed terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this terminal
IP be less than or equal to the data received the corresponding terminal of mark IP, it is determined that the priority of this terminal is lower than
Or the priority of the corresponding terminal of mark equal to the data received;
Alternatively, if the IP that comparison result is this terminal is less than the corresponding terminal of mark of the data received
IP, it is determined that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result
For this terminal IP be more than or equal to the data received the corresponding terminal of mark IP, it is determined that this terminal it is excellent
First grade is below or equal to the priority of the corresponding terminal of mark of the data received.
Optionally, according to determining priority result, judge whether the data that the mark for the data that will be received is identified
When deleting from the data of this terminal storage, the removing module is specifically used for:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, the terminal further include:
Generation module, for generating the mark of data.
Optionally, the generation module is specifically used for:
The mark of data is generated by hash algorithm.
According to the third aspect of the embodiment of the present application, a kind of non-transitorycomputer readable storage medium is provided, when described
When instruction in storage medium is executed by the processor of terminal, enable the terminal to execute a kind of data de-duplication method, institute
The method of stating includes:
Terminal into affiliated local area network sends the mark of the data of this terminal storage;
Receive the mark for the data that the terminal in the local area network is sent;Determine the mark of this terminal with the data received
The priority of corresponding terminal judges whether what the mark for the data that will be received was identified according to determining priority result
Data are deleted from the data of this terminal storage.
Optionally, the terminal into affiliated local area network sends the mark of the data of this terminal storage, comprising:
Based on udp protocol, the terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, the method also includes:
The IP of this terminal is obtained, and is based on udp protocol, the corresponding terminal of mark of the data received described in acquisition
IP;
The priority of described this terminal of determination terminal corresponding with the mark of data received, comprising:
According to the IP of the IP of this terminal terminal corresponding with the mark of the data received, determines this terminal and receive
The priority of the corresponding terminal of mark of the data arrived.
Optionally, the IP of the IP according to this terminal terminal corresponding with the mark of the data received is determined
The priority of this terminal terminal corresponding with the mark of data received, comprising:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
Optionally, described according to comparison result, determine the excellent of this terminal terminal corresponding with the mark of data received
First grade, comprising:
If the IP that comparison result is this terminal is greater than the IP of the corresponding terminal of mark of the data received, really
The priority of this fixed terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this terminal
IP be less than or equal to the data received the corresponding terminal of mark IP, it is determined that the priority of this terminal is lower than
Or the priority of the corresponding terminal of mark equal to the data received;
Alternatively, if the IP that comparison result is this terminal is less than the corresponding terminal of mark of the data received
IP, it is determined that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result
For this terminal IP be more than or equal to the data received the corresponding terminal of mark IP, it is determined that this terminal it is excellent
First grade is below or equal to the priority of the corresponding terminal of mark of the data received.
Optionally, described according to determining priority result, judge whether what the mark for the data that will be received was identified
Data are deleted from the data of this terminal storage, comprising:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, the method also includes:
Generate the mark of data.
Optionally, the mark for generating data, comprising:
The mark of data is generated by hash algorithm.
According to the fourth aspect of the embodiment of the present application, a kind of terminal is provided, comprising: processor;It can for storage processor
The memory executed instruction;Wherein, the processor is configured to:
Terminal into affiliated local area network sends the mark of the data of this terminal storage;
Receive the mark for the data that the terminal in the local area network is sent;Determine the mark of this terminal with the data received
The priority of corresponding terminal judges whether what the mark for the data that will be received was identified according to determining priority result
Data are deleted from the data of this terminal storage.
Optionally, when the terminal into affiliated local area network sends the mark of the data of this terminal storage, the processing utensil
Body is configured as:
Based on udp protocol, the terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, the processor is also configured to obtain the IP of this terminal, and is based on udp protocol, connects described in acquisition
The IP of the corresponding terminal of mark of the data received;
When determining the priority of this terminal terminal corresponding with the mark of data received, the processing implement body is matched
It is set to:
According to the IP of the IP of this terminal terminal corresponding with the mark of the data received, determines this terminal and receive
The priority of the corresponding terminal of mark of the data arrived.
Optionally, according to the IP of the IP of this terminal terminal corresponding with the mark of the data received, this end is determined
When holding the priority of terminal corresponding with the mark of data received, the processor is specifically configured to:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
Optionally, according to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined
When, the processor is specifically configured to:
If the IP that comparison result is this terminal is greater than the IP of the corresponding terminal of mark of the data received, really
The priority of this fixed terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this terminal
IP be less than or equal to the data received the corresponding terminal of mark IP, it is determined that the priority of this terminal is lower than
Or the priority of the corresponding terminal of mark equal to the data received;
Alternatively, if the IP that comparison result is this terminal is less than the corresponding terminal of mark of the data received
IP, it is determined that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result
For this terminal IP be more than or equal to the data received the corresponding terminal of mark IP, it is determined that this terminal it is excellent
First grade is below or equal to the priority of the corresponding terminal of mark of the data received.
Optionally, according to determining priority result, judge whether the data that the mark for the data that will be received is identified
When deleting from the data of this terminal storage, the processor is specifically configured to:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, the processor is also configured to
Generate the mark of data.
Optionally, when generating the mark of data, the processor is specifically configured to:
The mark of data is generated by hash algorithm.
The technical solution that embodiments herein provides can include the following benefits:
Since terminal of each terminal into affiliated local area network sends the mark of the data of this terminal storage and receives local
The mark for the data that terminal in net is sent, determines the priority of this terminal terminal corresponding with the mark of data received,
And according to determining priority result, judge whether data that the mark for the data that will be received is identified from this terminal storage
It is deleted in data, to complete the deletion for the duplicate data in the terminal in same local area network.In this way, in duplicate data
Deletion during, without adding third party device, data reduce the transmission road of data without being transmitted to third party device
Diameter improves the efficiency of the deletion for duplicate data.Meanwhile each terminal only need to can determine mark pair according to mark
The deletion for identifying corresponding data is completed in the data answered.Only transmission identifies during transmission, reduces transmission
Data amount, further improve the efficiency of the deletion for duplicate data.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of some aspects be described in detail in claims, the application consistent data de-duplication method and terminal.
Fig. 1 is a kind of flow diagram for data de-duplication method that the application one embodiment provides.Referring to Fig. 1,
Data de-duplication method provided in this embodiment may include:
The terminal of step 120, each terminal into affiliated local area network sends the mark of the data of this terminal storage;
Step 120, each terminal receive the mark for the data that the terminal in local area network is sent;It determines this terminal and receives
The priority of the corresponding terminal of mark of data the data that will be received are judged whether according to determining priority result
Identified data are identified to delete from the data of this terminal storage.
In the present embodiment, since terminal of each terminal into affiliated local area network sends the mark of the data of this terminal storage
And the mark for the data that the terminal in local area network is sent is received, determine this terminal terminal corresponding with the mark of the data received
Priority, and according to determining priority result, judge whether data that the mark for the data that will be received is identified from this
It is deleted in the data of terminal storage, to complete the deletion for the duplicate data in the terminal in same local area network.In this way,
During the deletion of duplicate data, without adding third party device, data reduce data without being transmitted to third party device
Transmission path, improve the efficiency of the deletion for duplicate data.Meanwhile each terminal only need to according to mark can be true
Corresponding data are known in calibration, and the deletion for identifying corresponding data is completed.Only transmission identifies during transmission, subtracts
The amount for having lacked the data of transmission, further improves the efficiency of the deletion for duplicate data.
In addition, in the present embodiment, when terminal of each terminal into affiliated local area network sends the data of this terminal storage
When mark, it is based on User Data Protocol (User Datagram Protocol, UDP), each terminal is into affiliated local area network
Terminal sends the mark of the data of this terminal storage.
It certainly, can also be with when the mark for the data that terminal of each terminal into affiliated local area network sends this terminal storage
It is sent based on other agreements.
In practical application, the data de-duplication method of the present embodiment further include: obtain the IP of this terminal, and be based on
Udp protocol obtains the IP of the corresponding terminal of mark of the data received;Based on this, in step 120, when determine this terminal with
When the priority of the corresponding terminal of mark of the data received, the IP according to this terminal and the number received specifically may is that
According to the corresponding terminal of mark IP, determine the priority of this terminal terminal corresponding with the mark of data received.
Wherein, udp protocol is a kind of a kind of communication protocol based on IP agreement, is based on udp protocol, available to receive
Data the corresponding terminal of mark IP.
Specifically, working as the IP of the IP terminal corresponding with the mark of data received according to this terminal, this terminal is determined
When the priority of terminal corresponding with the mark of data received, referring to Fig. 2, steps are as follows:
The size of the IP of step 210, the IP for comparing this terminal terminal corresponding with the mark of data received;
Step 220, according to comparison result, determine the preferential of this terminal terminal corresponding with the mark of data received
Grade.
In step 210, the mode for comparing the size of IP specifically be may is that the mark of the IP of this terminal and the data received
The IP for knowing corresponding terminal is converted into 32 bits, compares 32 bits of the IP conversion of this terminal and receives
The size of 32 bits of the IP conversion of the corresponding terminal of mark of data: if 32 that the IP of one, this terminal is converted
Binary number is greater than 32 bits of the IP conversion of the corresponding terminal of mark of the data received, then comparison result is this
The IP of terminal is greater than the IP of the corresponding terminal of mark of the data received;If two, this terminal IP conversion 32 two into
Number processed is equal to 32 bits of the IP conversion of the corresponding terminal of mark of the data received, then comparison result is this terminal
IP be equal to the data received the corresponding terminal of mark IP;If three, 32 bits of the IP conversion of this terminal
Less than 32 bits of the IP conversion of the corresponding terminal of mark of the data received, then comparison result is the IP of this terminal
Less than the IP of the corresponding terminal of mark of the data received.
It is illustrated herein for converting 32 bits for IP address: if IP address is
167.111.17.15 then corresponding 32 bit is 10100111011011110001000100001111.
There are many specific implementations of above-mentioned steps 220.For example, a kind of specific implementation of step 220 can be with are as follows:
When the IP of this terminal is greater than the IP of the corresponding terminal of mark of the data received, determines that the priority of this terminal is higher than and receive
The corresponding terminal of the mark of the data arrived;When the IP of this terminal is equal to the IP of the corresponding terminal of mark of the data received,
This terminal is the corresponding terminal of mark of the data received, determines that the priority of this terminal is equal to the mark of the data received
Corresponding terminal;When the IP of this terminal is less than the IP of the corresponding terminal of mark of the data received, the excellent of this terminal is determined
First grade is lower than the corresponding terminal of mark of the data received.Another specific implementation of step 220 can be with are as follows: when this end
When the IP at end is greater than the IP of the corresponding terminal of mark of the data received, determine that the priority of this terminal is lower than the number received
According to the corresponding terminal of mark;When the IP of this terminal is equal to the IP of the corresponding terminal of mark of the data received, this is determined
Terminal is the corresponding terminal of mark of the data received, and the mark that the priority of this terminal is equal to the data received is corresponding
Terminal;When the IP of this terminal is less than the IP of the corresponding terminal of mark of the data received, determine that the priority of this terminal is high
In the corresponding terminal of the mark of the data received.
In above-mentioned steps 130, according to determining priority result, judge whether that the mark for the data that will be received is identified
Data deleted from the data of this terminal storage, there are many specific implementations.For example, one of concrete implementation mode
It can be with are as follows: judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if so,
Then determination deletes the data that the mark of the data received is identified from the data of this terminal storage;If it is not, then losing
Abandon the mark.Alternatively, another concrete implementation mode can be with are as follows: judge whether the priority of this terminal is lower than the number received
According to the corresponding terminal of mark priority, if it is, determine the data that are identified the mark of the data received from this
It is deleted in the data of terminal storage;If it is not, then abandoning the mark.
The mark of above-mentioned data is needed pre-generated and is stored.Therefore, further, it is based on above-mentioned related embodiment, this
The data de-duplication method that application provides can also include: the mark for generating data.The method of the specific mark for generating data
There are many kinds of.For example, the mark of data can be generated by hash algorithm.
Fig. 3 is the structural schematic diagram for the terminal that another embodiment of the application provides.It is provided in this embodiment referring to Fig. 3
Terminal includes: sending module 301, receiving module 302 and removing module 303.
Sending module sends the mark of the data of this terminal storage for the terminal into affiliated local area network;
Receiving module, the mark of the data for receiving the transmission of the terminal in local area network;
Removing module, for determining the priority of this terminal terminal corresponding with the mark of data received, according to true
Fixed priority result judges whether that the data that the mark for the data that will be received is identified are deleted from the data of this terminal storage
It removes.
Optionally, sending module is specifically used for:
Based on udp protocol, the terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, terminal further include:
Module is obtained, for obtaining the IP of this terminal, and udp protocol is based on, obtains the mark pair of the data received
The IP for the terminal answered;
When determining the priority of this terminal terminal corresponding with the mark of data received, removing module is specifically used for:
According to the IP of the IP of this terminal terminal corresponding with the mark of data received, determines this terminal and receive
The priority of the corresponding terminal of mark of data.
Optionally, according to the IP of the IP of this terminal terminal corresponding with the mark of data received, determine this terminal with
When the priority of the corresponding terminal of mark of the data received, removing module is specifically used for:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
According to comparison result, when determining the priority of this terminal terminal corresponding with the mark of data received, delete
Module is specifically used for:
If comparison result is the IP for the corresponding terminal of mark that the IP of this terminal is greater than the data received, it is determined that this
The priority of terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is the IP of this terminal
Less than or equal to the IP of the corresponding terminal of mark of the data received, it is determined that the priority of this terminal is below or equal to
The priority of the corresponding terminal of mark of the data received;
Alternatively, if comparison result is the IP for the corresponding terminal of mark that the IP of this terminal is less than the data received,
Determine that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this end
The IP at end is more than or equal to the IP of the corresponding terminal of mark of the data received, it is determined that the priority of this terminal be lower than or
Person is equal to the priority of the corresponding terminal of mark of the data received.
Optionally, according to determining priority result, judge whether the data that the mark for the data that will be received is identified
When deleting from the data of this terminal storage, removing module is specifically used for:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, terminal further include:
Generation module, for generating the mark of data.
Optionally, generation module is specifically used for:
The mark of data is generated by hash algorithm.
The application one embodiment provides a kind of non-transitorycomputer readable storage medium, when the instruction in storage medium
When being executed by the processor of terminal, enable a processor to execute a kind of data de-duplication method, the method packet of the present embodiment
It includes:
Terminal into affiliated local area network sends the mark of the data of this terminal storage;
Receive the mark for the data that the terminal in local area network is sent;Determine that this terminal is corresponding with the mark of the data received
The priority of terminal the data that the mark for the data that will be received is identified are judged whether according to determining priority result
It is deleted from the data of this terminal storage.
Optionally, the terminal into affiliated local area network sends the mark of the data of this terminal storage, comprising:
Based on udp protocol, the terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, the method for the present embodiment further include:
The IP of this terminal is obtained, and is based on udp protocol, obtains the IP of the corresponding terminal of mark of the data received;
Determine the priority of this terminal terminal corresponding with the mark of data received, comprising:
According to the IP of the IP of this terminal terminal corresponding with the mark of data received, determines this terminal and receive
The priority of the corresponding terminal of mark of data.
Optionally, according to the IP of the IP of this terminal terminal corresponding with the mark of data received, determine this terminal with
The priority of the corresponding terminal of mark of the data received, comprising:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
Optionally, according to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined,
Include:
If comparison result is the IP for the corresponding terminal of mark that the IP of this terminal is greater than the data received, it is determined that this
The priority of terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is the IP of this terminal
Less than or equal to the IP of the corresponding terminal of mark of the data received, it is determined that the priority of this terminal is below or equal to
The priority of the corresponding terminal of mark of the data received;
Alternatively, if comparison result is the IP for the corresponding terminal of mark that the IP of this terminal is less than the data received,
Determine that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this end
The IP at end is more than or equal to the IP of the corresponding terminal of mark of the data received, it is determined that the priority of this terminal be lower than or
Person is equal to the priority of the corresponding terminal of mark of the data received.
Optionally, according to determining priority result, judge whether the data that the mark for the data that will be received is identified
It is deleted from the data of this terminal storage, comprising:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, the method for the present embodiment further include:
Generate the mark of data.
Optionally, the mark of data is generated, comprising:
The mark of data is generated by hash algorithm.
Fig. 4 is a kind of structural schematic diagram for terminal that another embodiment of the application provides.Referring to fig. 4, the present embodiment
Device includes: processor 401;Memory 402 for storage processor executable instruction;Wherein, processor 401 is configured
Are as follows:
Terminal into affiliated local area network sends the mark of the data of this terminal storage;
Receive the mark for the data that the terminal in local area network is sent;Determine that this terminal is corresponding with the mark of the data received
The priority of terminal the data that the mark for the data that will be received is identified are judged whether according to determining priority result
It is deleted from the data of this terminal storage.
Optionally, processor is specifically configured to:
Based on udp protocol, the terminal into affiliated local area network sends the mark of the data of this terminal storage.
Optionally, processor 401 is also configured to obtain the IP of this terminal, and is based on udp protocol, and acquisition receives
Data the corresponding terminal of mark IP;
When determining the priority of this terminal terminal corresponding with the mark of data received, processor is also configured to
According to the IP of the IP of this terminal terminal corresponding with the mark of data received, determines this terminal and receive
The priority of the corresponding terminal of mark of data.
Optionally, according to the IP of the IP of this terminal terminal corresponding with the mark of data received, determine this terminal with
When the priority of the corresponding terminal of mark of the data received, 401 concrete configuration of processor are as follows:
The size of the IP of the IP for comparing this terminal terminal corresponding with the mark of the data received;
According to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined.
Optionally, according to comparison result, the priority of this terminal terminal corresponding with the mark of data received is determined
When, processor 401 is specifically configured to:
If comparison result is the IP for the corresponding terminal of mark that the IP of this terminal is greater than the data received, it is determined that this
The priority of terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is the IP of this terminal
Less than or equal to the IP of the corresponding terminal of mark of the data received, it is determined that the priority of this terminal is below or equal to
The priority of the corresponding terminal of mark of the data received;
Alternatively, if comparison result is the IP for the corresponding terminal of mark that the IP of this terminal is less than the data received,
Determine that the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if comparison result is this end
The IP at end is more than or equal to the IP of the corresponding terminal of mark of the data received, it is determined that the priority of this terminal be lower than or
Person is equal to the priority of the corresponding terminal of mark of the data received.
Optionally, according to determining priority result, judge whether the data that the mark for the data that will be received is identified
When deleting from the data of this terminal storage, processor 401 is specifically configured to:
Judge whether the priority of this terminal is higher than the priority of the corresponding terminal of mark of the data received, if
It is, it is determined that delete the data that the mark of the data received is identified from the data of this terminal storage;
Alternatively, judge whether the priority of this terminal is lower than the priority of the corresponding terminal of mark of the data received,
If it is, determination deletes the data that the mark of the data received is identified from the data of this terminal storage.
Optionally, processor 401 is also configured to
Generate the mark of data.
Optionally, when generating the mark of data, processor 401 is specifically configured to:
The mark of data is generated by hash algorithm.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments
Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that term " first ", " second " etc. are used for description purposes only in the description of the present application, without
It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present application, unless otherwise indicated, the meaning of " multiple "
Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application
Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Although embodiments herein has been shown and described above, it is to be understood that above-described embodiment is example
Property, it should not be understood as the limitation to the application, those skilled in the art within the scope of application can be to above-mentioned
Embodiment is changed, modifies, replacement and variant.