WO2013086867A1 - Information processing method and equipment - Google Patents

Information processing method and equipment Download PDF

Info

Publication number
WO2013086867A1
WO2013086867A1 PCT/CN2012/080274 CN2012080274W WO2013086867A1 WO 2013086867 A1 WO2013086867 A1 WO 2013086867A1 CN 2012080274 W CN2012080274 W CN 2012080274W WO 2013086867 A1 WO2013086867 A1 WO 2013086867A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
bitmap
storage device
network storage
hash values
Prior art date
Application number
PCT/CN2012/080274
Other languages
French (fr)
Chinese (zh)
Inventor
陈跃泉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013086867A1 publication Critical patent/WO2013086867A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to information processing technologies, and in particular, to an information processing method and device.
  • the terminal device or the network management system can periodically back up a large amount of information on the terminal device to the network backup device located on the network side, or the user/network administrator can manually manually use the terminal device as needed.
  • a large amount of information is backed up in a network backup device located on the network side.
  • the same information may be backed up multiple times in the network storage device, so that a large amount of the same information exists in the network storage device, thereby causing a decrease in the utilization rate of the network storage device, and Reduced efficiency of information maintenance and management.
  • the present invention provides an information processing method and device for improving the utilization of network storage devices and the efficiency of information maintenance and management.
  • an information processing method including:
  • the network storage device receives the information
  • the network storage device performs a hash operation on the information to obtain at least two hash values of the information
  • the network storage device stores the information or does not store the information according to the at least two hash values.
  • the storing, by the network storage device, the information according to the at least two hash values, or not storing the information includes:
  • the network storage device obtains a bitmap corresponding to the at least two hash values; the information does not store the information. Storing the information or not storing the information, comprising: comparing, by a bitmap of the at least one information received by the storage device, if the location corresponding to the bitmap corresponding to the at least two hash values is in the storage The network storage device does not store the information; if the location corresponding to the bitmap corresponding to the at least two hash values is not in the stored bitmap, the network storage device stores The information.
  • the method further includes: storing the bitmap corresponding to the at least two hash values. Before comparing the bitmap of at least one piece of information received by the network storage device, the method further includes:
  • the network storage device uses a bitmap corresponding to the hash value of the information as a reference bitmap, and stores the bitmap;
  • the network storage device If the network storage device stores at least two pieces of information, the network storage device performs or operates a bitmap corresponding to the hash value of the at least two pieces of information, and uses the obtained bitmap as a reference bitmap and stores the data; A bitmap of at least one piece of information received by the device is compared, including: Bitmaps for comparison.
  • the method further includes:
  • the network storage device performs an exclusive OR operation on the bitmap of the information within the selected range and the reference bitmap, and performs or operates with a bitmap of the information outside the selected range to obtain a new bitmap. As the reference bitmap after the update, and store it.
  • Another aspect provides an information processing apparatus, including:
  • a receiving unit configured to receive information
  • an obtaining unit configured to perform hash operation on the information, to obtain at least two hash values of the information
  • processing unit configured to store the information according to the at least two hash values or not to store the information.
  • processing unit is specifically configured to:
  • processing unit is specifically configured to:
  • processing unit is further configured to:
  • the network storage device uses a bitmap corresponding to the hash value of the information as a reference bitmap, and stores the bitmap;
  • the network storage device If the network storage device stores at least two pieces of information, the network storage device performs or operates a bitmap corresponding to the hash value of the at least two pieces of information, and uses the obtained bitmap as a reference bitmap and stores the bitmap;
  • the processing unit is specifically configured to
  • processing unit is further configured to:
  • the network storage device after receiving the information, obtains at least two hash values of the information by performing a hash operation on the foregoing information, so that the network storage device can store the foregoing according to the at least two hash values.
  • the information does not store the above information, which can avoid the problem that a large amount of the same information exists in the network storage device due to the fact that the same information may be backed up multiple times in the network storage device in the prior art, thereby improving the utilization of the network storage device. Reduced rates, as well as the efficiency of information maintenance and management.
  • FIG. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of an information processing method according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an information processing device according to another embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention. As shown in FIG. 1, the information processing method in this embodiment may include:
  • the network storage device receives the information.
  • the foregoing information may include, but is not limited to, a short message, a multimedia message, a mail, or an instant message.
  • the network storage device performs a hash operation on the foregoing information to obtain at least two hash values of the foregoing information.
  • the network storage device performs a hash operation such as MD5 or CityHash on the information (that is, the content of the information), and uses at least two hash functions to map the binary value of the information into at least two fixed length smaller binary values. Hash value.
  • non-encrypted hash operations can be performed, such as: CityHash and other hash operations.
  • the network storage device stores the foregoing information or does not store the information according to the at least two hash values.
  • FIG. 2 is a schematic flowchart of an information processing method according to another embodiment of the present invention. This embodiment is a specific embodiment of the embodiment corresponding to FIG. 1. As shown in FIG. 2, the information processing method in this embodiment may include:
  • the network storage device receives the information.
  • the foregoing information may include, but is not limited to, a short message, a multimedia message, a mail, or an instant message.
  • the foregoing network storage device performs a hash operation on the foregoing information to obtain at least two hash values of the foregoing information.
  • the network storage device performs a hash operation such as MD5 or CityHash on the information (that is, the content of the information), and uses at least two hash functions to map the binary value of the information into at least two fixed length smaller binary values. Hash value.
  • non-encrypted hash operations can be performed, such as: CityHash and other hash operations.
  • the network storage device obtains a bitmap corresponding to the at least two hash values. For example, if the network storage device performs a hash operation on the information, the three hash values of the foregoing information are respectively obtained as 2 6, and 14 can be assumed that the bit corresponding to the hash value is 1, and the bitmap corresponding to the hash value can be 010001000000010000.
  • the foregoing network storage device stores the foregoing information or does not store the foregoing information according to the bitmap.
  • the network storage device Comparing the bitmaps of the at least one information received by the network storage device, if the location corresponding to the bitmap corresponding to the at least two hash values is in the stored bitmap, the network storage device does not store the information; The location corresponding to the bitmap corresponding to the at least two hash values is not in the stored bitmap, and the network storage device stores the information.
  • the bitmap corresponding to the at least two hash values may be further stored.
  • the network storage device may store a bitmap of the information after storing one piece of information each time.
  • the network storage device may further store the bitmap of the information into a bitmap of the previously stored information after storing one information each time, for example: a bitmap of the information. Perform or operate with a bitmap of previously stored information, use the resulting bitmap as a reference bitmap, and store the reference bitmap.
  • the network storage device Before the foregoing network storage device receives the bitmap and the network storage device, Before the bitmap of the at least one information is compared, if the network storage device stores a message, the network storage device may further use the bitmap corresponding to the hash value of the above information as the reference bitmap and store the data; if the network storage The device stores at least two pieces of information, and the network storage device may further perform or operate on the bitmap corresponding to the hash value of the at least two pieces of information, and use the obtained bitmap as a reference bitmap and store the bitmap.
  • the network storage device can compare the bitmap corresponding to the at least two hash values with the reference bitmap, if the location corresponding to the bitmap corresponding to the at least two hash values is stored in the foregoing In the reference bitmap, the network storage device does not store the information; if the location corresponding to the bitmap corresponding to the at least two hash values is not in the stored reference bitmap, the network storage device stores the information.
  • the network storage device in this embodiment may further clear the bits in the expired bitmap or bitmap in an instant.
  • the network storage device may perform an exclusive OR operation on the bitmap of the information within the selected range and the above reference bitmap, and perform or operate with a bitmap of the information outside the selected range to obtain a new bitmap.
  • the reference bitmap after the update, and stored it can meet a huge amount of information backup, and some information is time-effective (for example: a short message about a product promotion issued by a certain brand group, the effective time limit of the short message When the promotion is stopped, the short message has a time validity requirement, which saves the memory overhead occupied by the bitmap.
  • the network storage device after receiving the information, obtains at least two hash values of the foregoing information by performing a hash operation on the foregoing information, and obtains a bitmap corresponding to the at least two hash values, so that the network is configured.
  • the storage device can store the foregoing information or not store the foregoing information according to the foregoing bitmap, and can avoid a large amount of the same information in the network storage device caused by the same information being backed up in the network storage device multiple times in the prior art.
  • the problem is to improve the utilization of network storage devices and the efficiency of information maintenance and management.
  • an 18-bit bitmap will be exemplified below.
  • the network storage device does not currently store any information.
  • the first cycle is within T1
  • the network storage device stores information A, and obtains the bitmap corresponding to at least two hash values corresponding to A.
  • the T1 bitmap is used as a bitmap S1 bitmap of the network storage device in T1 and stored in the disk.
  • the second cycle is within T2
  • the network storage device performs or operates on the C bitmap and the T1 bitmap to obtain the reference bitmap T2 bitmap.
  • the C bitmap is used as a bitmap S2 bitmap of the network storage device in T2, and stored in the disk;
  • the third cycle is within T3
  • the network storage device receives the information E, and the bitmap corresponding to the at least two hash values corresponding to the information E is the E bitmap 00001 1000001000000. After comparison, the E bitmap is in the T2 bitmap, indicating that the network storage device has been stored. After the same information as the information E, the information E is a duplicate information, and the network storage device no longer stores the information E;
  • FIG. 3 is a schematic structural diagram of an information processing device according to another embodiment of the present invention.
  • the information processing device of this embodiment may include a receiving unit 31, an obtaining unit 32, and a processing unit 33.
  • the receiving unit 31 is configured to receive information
  • the obtaining unit 32 is configured to perform hash operation on the information received by the receiving unit 31 to obtain at least two hash values of the foregoing information.
  • the processing unit 33 is configured to obtain the information according to the obtaining unit 32.
  • the at least two hash values described above store the above information or do not store the above information.
  • the functions of the network storage device in the embodiments corresponding to the foregoing FIG. 1 and FIG. 2 can be implemented by the information processing device provided in this embodiment.
  • the bitmap should be stored, and the above information is stored or not stored according to the above bitmap.
  • the processing unit 33 compares the bitmap with the bitmap of the at least one information previously received by the network storage device, and if the location corresponding to the bitmap is in the stored bitmap, the information is not stored; The corresponding location is not in the bitmap stored above, and the above information is stored.
  • the processing unit 33 in this embodiment may further use a bitmap corresponding to the hash value of the one information as a reference bitmap, and store the data storage device; For at least two pieces of information, the processing unit 33 in this embodiment may further perform or operate on the bitmap corresponding to the hash value of the at least two pieces of information, and use the obtained bitmap as a reference bitmap and store the bitmap. The corresponding bitmap is compared to the reference bitmap.
  • the information processing device in this embodiment may further clear the bits in the expired bitmap or the bitmap in an instant.
  • the processing unit 33 may be further configured to perform an exclusive OR operation on the bitmap of the information within the selected range and the reference, and perform or operate with a bitmap of the information outside the selected range to obtain a new bit.
  • the map is used as a reference bitmap after the update, and is stored, so as to satisfy a huge amount of information backup, and some information is time-effective (for example: a short message about a product promotion issued by a certain brand group, the effective time of the short message) When the promotion is stopped, it indicates that the short message has time validity), which saves the memory overhead occupied by the bitmap.
  • the obtaining unit performs a hash operation on the information received by the receiving unit to obtain at least two hash values of the information, so that the processing unit can obtain the information according to the obtaining unit.
  • the foregoing at least two hash values store the foregoing information or do not store the foregoing information, which can avoid the existence of a large amount of the same information in the network storage device caused by the same information being backed up in the network storage device multiple times in the prior art.
  • the problem is to improve the utilization of network storage devices and the efficiency of information maintenance and management.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in various embodiments of the present invention may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional units are stored in a storage medium and include a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform part of the steps of the method of the various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and the like.
  • the medium of the program code includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and the like.

Abstract

An information processing method comprises: the network storage equipment receives information; the network storage equipment carries out Hash operation on the information, and obtains at least two Hash values of the information; according to the at least two Hash values, the network storage equipment stores or does not store the information. And an information processing equipment includes: a receiving unit, used to receive information; obtaining unit, used to carry out Hash operation on the information and obtain at least two Hash values of the information; processing unit, used to store or not store the information according to the at least two Hash values. With the invention, the reduction of the utilization rate of the network storage equipment and the efficiency of information maintenance and management are enhanced.

Description

信息处理方法及设备  Information processing method and device
本申请要求于 2011 年 12 月 14 日提交中国专利局、 申请号为 201110416964.0、 发明名称为 "信息处理方法及设备" 的中国专利申请的优先 权, 其全部内容通过引用结合在本申请中。  The present application claims priority to Chinese Patent Application No. 201110416964.0, entitled "Information Processing Method and Apparatus", filed on Dec. 14, 2011, the entire contents of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及信息处理技术, 尤其涉及一种信息处理方法及设备。  The present invention relates to information processing technologies, and in particular, to an information processing method and device.
背景技术 Background technique
随着通信技术的发展,终端设备或网管系统可以定时自动将上述终端设备 上的大量信息备份在位于网络侧的网络备份设备中, 或者, 用户 /网络管理员 还可以根据需要手动将上述终端设备上的大量信息备份在位于网络侧的网络 备份设备中。  With the development of the communication technology, the terminal device or the network management system can periodically back up a large amount of information on the terminal device to the network backup device located on the network side, or the user/network administrator can manually manually use the terminal device as needed. A large amount of information is backed up in a network backup device located on the network side.
然而, 由于信息备份方式的多样化,可能会出现同样一个信息在网络存储 设备中备份了多次,使得网络存储设备中存在大量相同的信息,从而导致了网 络存储设备的利用率的降低, 以及信息维护和管理的效率的降低。  However, due to the diversification of information backup methods, the same information may be backed up multiple times in the network storage device, so that a large amount of the same information exists in the network storage device, thereby causing a decrease in the utilization rate of the network storage device, and Reduced efficiency of information maintenance and management.
发明内容 Summary of the invention
本发明提供一种信息处理方法及设备,用以提高网络存储设备的利用率的 降低, 以及信息维护和管理的效率。  The present invention provides an information processing method and device for improving the utilization of network storage devices and the efficiency of information maintenance and management.
一方面提供了一种信息处理方法, 包括:  On the one hand, it provides an information processing method, including:
网络存储设备接收信息;  The network storage device receives the information;
所述网络存储设备对所述信息进行哈希运算,获得所述信息的至少两个哈 希值;  The network storage device performs a hash operation on the information to obtain at least two hash values of the information;
所述网络存储设备根据所述至少两个哈希值,存储所述信息或者不存储所 述信息。  The network storage device stores the information or does not store the information according to the at least two hash values.
可选的, 所述网络存储设备根据所述至少两个哈希值,存储所述信息或者 不存储所述信息, 包括:  Optionally, the storing, by the network storage device, the information according to the at least two hash values, or not storing the information, includes:
所述网络存储设备获得与所述至少两个哈希值对应的位图; 信息或者不存储所述信息。 存储所述信息或者不存储所述信息, 包括: 存储设备之前接收的至少一个信息的位图进行比较,若所述与所述至少两个哈 希值对应的位图对应的位置在所述存储的位图中,所述网络存储设备不存储所 述信息;若所述与所述至少两个哈希值对应的位图对应的位置不在所述存储的 位图中, 所述网络存储设备存储所述信息。 The network storage device obtains a bitmap corresponding to the at least two hash values; the information does not store the information. Storing the information or not storing the information, comprising: comparing, by a bitmap of the at least one information received by the storage device, if the location corresponding to the bitmap corresponding to the at least two hash values is in the storage The network storage device does not store the information; if the location corresponding to the bitmap corresponding to the at least two hash values is not in the stored bitmap, the network storage device stores The information.
可选的, 所述网络存储设备根据所述位图, 存储所述信息之后, 还包括: 存储所述与所述至少两个哈希值对应的位图。 述网络存储设备之前接收的至少一个信息的位图进行比较之前, 还包括:  Optionally, after the network storage device stores the information according to the bitmap, the method further includes: storing the bitmap corresponding to the at least two hash values. Before comparing the bitmap of at least one piece of information received by the network storage device, the method further includes:
如果网络存储设备存储了一个信息,所述网络存储设备将所述一个信息的 哈希值对应的位图作为基准位图, 并进行存储;  If the network storage device stores a message, the network storage device uses a bitmap corresponding to the hash value of the information as a reference bitmap, and stores the bitmap;
如果网络存储设备存储了至少两个信息,所述网络存储设备对所述至少两 个信息的哈希值对应的位图进行或操作, 将得到的位图作为基准位图, 并进行 存储; 存储设备之前接收的至少一个信息的位图进行比较, 包括: 位图进行比较。  If the network storage device stores at least two pieces of information, the network storage device performs or operates a bitmap corresponding to the hash value of the at least two pieces of information, and uses the obtained bitmap as a reference bitmap and stores the data; A bitmap of at least one piece of information received by the device is compared, including: Bitmaps for comparison.
可选的, 所述方法还包括:  Optionally, the method further includes:
所述网络存储设备对选定范围之内的信息的位图与所述基准位图进行异 或操作, 并与所述选定范围之外的信息的位图进行或操作,得到新的位图作为 更新之后的基准位图, 并进行存储。  The network storage device performs an exclusive OR operation on the bitmap of the information within the selected range and the reference bitmap, and performs or operates with a bitmap of the information outside the selected range to obtain a new bitmap. As the reference bitmap after the update, and store it.
另一方面提供了一种信息处理设备, 包括:  Another aspect provides an information processing apparatus, including:
接收单元, 用于接收信息;  a receiving unit, configured to receive information;
获得单元, 用于对所述信息进行哈希运算, 获得所述信息的至少两个哈希 值;  And an obtaining unit, configured to perform hash operation on the information, to obtain at least two hash values of the information;
处理单元, 用于根据所述至少两个哈希值,存储所述信息或者不存储所述 信息。 可选的, 所述处理单元具体用于 And a processing unit, configured to store the information according to the at least two hash values or not to store the information. Optionally, the processing unit is specifically configured to:
获得与所述至少两个哈希值对应的位图,以及根据所述与所述至少两个哈 希值对应的位图, 存储所述信息或者不存储所述信息。  Obtaining a bitmap corresponding to the at least two hash values, and storing the information or not storing the information according to the bitmap corresponding to the at least two hash values.
可选的, 所述处理单元具体用于  Optionally, the processing unit is specifically configured to:
对所述与所述至少两个哈希值对应的位图与所述网络存储设备之前接收 的至少一个信息的位图进行比较,若所述与所述至少两个哈希值对应的位图对 应的位置在所述存储的位图中, 不存储所述信息; 若所述与所述至少两个哈希 值对应的位图对应的位置不在所述存储的位图中, 存储所述信息。  Comparing the bitmap corresponding to the at least two hash values with a bitmap of the at least one information previously received by the network storage device, if the bitmap corresponding to the at least two hash values The corresponding location is in the stored bitmap, the information is not stored; if the location corresponding to the bitmap corresponding to the at least two hash values is not in the stored bitmap, the information is stored .
可选的, 所述处理单元还用于  Optionally, the processing unit is further configured to:
如果网络存储设备存储了一个信息,所述网络存储设备将所述一个信息的 哈希值对应的位图作为基准位图, 并进行存储;  If the network storage device stores a message, the network storage device uses a bitmap corresponding to the hash value of the information as a reference bitmap, and stores the bitmap;
如果网络存储设备存储了至少两个信息,所述网络存储设备对所述至少两 个信息的哈希值对应的位图进行或操作, 将得到的位图作为基准位图, 并进行 存储;  If the network storage device stores at least two pieces of information, the network storage device performs or operates a bitmap corresponding to the hash value of the at least two pieces of information, and uses the obtained bitmap as a reference bitmap and stores the bitmap;
所述处理单元具体用于  The processing unit is specifically configured to
对所述与所述至少两个哈希值对应的位图与所述基准位图进行比较。  Comparing the bitmap corresponding to the at least two hash values with the reference bitmap.
可选的, 所述处理单元还用于  Optionally, the processing unit is further configured to:
对选定范围之内的信息的位图与所述基准位图进行异或操作,并与所述选 定范围之外的信息的位图进行或操作,得到新的位图作为更新之后的基准位图, 并进行存储。  Performing an exclusive OR operation on the bitmap of the information within the selected range and the reference bitmap, and performing or operating on the bitmap of the information outside the selected range to obtain a new bitmap as a reference after the update Bitmap, and store it.
由上述技术方案可知, 网络存储设备接收信息之后,通过对上述信息进行 哈希运算, 获得上述信息的至少两个哈希值,使得上述网络存储设备能够根据 上述至少两个哈希值,存储上述信息或者不存储上述信息, 能够避免现有技术 中由于同样一个信息在网络存储设备中可能会备份多次而导致的网络存储设 备中存在大量相同的信息的问题, 从而提高了网络存储设备的利用率的降低, 以及信息维护和管理的效率。  According to the foregoing technical solution, after receiving the information, the network storage device obtains at least two hash values of the information by performing a hash operation on the foregoing information, so that the network storage device can store the foregoing according to the at least two hash values. The information does not store the above information, which can avoid the problem that a large amount of the same information exists in the network storage device due to the fact that the same information may be backed up multiple times in the network storage device in the prior art, thereby improving the utilization of the network storage device. Reduced rates, as well as the efficiency of information maintenance and management.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作一筒单地介绍,显而易见地, 下面描 述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出 创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly introduced below. The drawings in the above are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明一实施例提供的信息处理方法的流程示意图;  1 is a schematic flowchart of an information processing method according to an embodiment of the present invention;
图 2为本发明另一实施例提供的信息处理方法的流程示意图;  2 is a schematic flowchart of an information processing method according to another embodiment of the present invention;
图 3为本发明另一实施例提供的信息处理设备的结构示意图。  FIG. 3 is a schematic structural diagram of an information processing device according to another embodiment of the present invention.
具体实施方式 detailed description
为使本发明实施例的目的、技术方案和优点更加清楚, 下面将结合本发明 实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。基于本发明中 的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其 他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明一实施例提供的信息处理方法的流程示意图,如图 1所示,本 实施例的信息处理方法可以包括:  FIG. 1 is a schematic flowchart of an information processing method according to an embodiment of the present invention. As shown in FIG. 1, the information processing method in this embodiment may include:
101、 网络存储设备接收信息;  101. The network storage device receives the information.
其中, 上述信息可以包括但不限于短消息、 彩信、 邮件或即时消息。 The foregoing information may include, but is not limited to, a short message, a multimedia message, a mail, or an instant message.
102、 上述网络存储设备对上述信息进行哈希运算, 获得上述信息的至少 两个哈希值; 102. The network storage device performs a hash operation on the foregoing information to obtain at least two hash values of the foregoing information.
例如: 上述网络存储设备对信息 (即信息的内容) 进行 MD5或 CityHash 等哈希运算, 利用至少两个哈希函数,将信息的二进制值映射为至少两个固定 长度的较小的二进制值即哈希值。 为了进一步减小开销, 可以进行非加密的哈 希运算, 例如: CityHash等哈希运算。  For example: the network storage device performs a hash operation such as MD5 or CityHash on the information (that is, the content of the information), and uses at least two hash functions to map the binary value of the information into at least two fixed length smaller binary values. Hash value. To further reduce overhead, non-encrypted hash operations can be performed, such as: CityHash and other hash operations.
103、 上述网络存储设备根据上述至少两个哈希值, 存储上述信息或者不 存储上述信息。  103. The network storage device stores the foregoing information or does not store the information according to the at least two hash values.
本实施例中,网络存储设备接收信息之后,通过对上述信息进行哈希运算, 获得上述信息的至少两个哈希值,使得上述网络存储设备能够根据上述至少两 个哈希值,存储上述信息或者不存储上述信息, 能够避免现有技术中由于同样 一个信息在网络存储设备中可能会备份多次而导致的网络存储设备中存在大 量相同的信息的问题,从而提高了网络存储设备的利用率的降低, 以及信息维 护和管理的效率。 图 2为本发明另一实施例提供的信息处理方法的流程示意图, 本实施例为 图 1对应的实施例的一个具体实施例。如图 2所示,本实施例的信息处理方法可 以包括: In this embodiment, after receiving the information, the network storage device obtains at least two hash values of the information by performing a hash operation on the foregoing information, so that the network storage device can store the information according to the at least two hash values. Or not storing the foregoing information, which can avoid the problem that a large amount of the same information exists in the network storage device caused by the same information being backed up in the network storage device multiple times in the prior art, thereby improving the utilization rate of the network storage device. The reduction, as well as the efficiency of information maintenance and management. FIG. 2 is a schematic flowchart of an information processing method according to another embodiment of the present invention. This embodiment is a specific embodiment of the embodiment corresponding to FIG. 1. As shown in FIG. 2, the information processing method in this embodiment may include:
201、 网络存储设备接收信息;  201. The network storage device receives the information.
其中, 上述信息可以包括但不限于短消息、 彩信、 邮件或即时消息。  The foregoing information may include, but is not limited to, a short message, a multimedia message, a mail, or an instant message.
202、 上述网络存储设备对上述信息进行哈希运算, 获得上述信息的至少 两个哈希值;  202. The foregoing network storage device performs a hash operation on the foregoing information to obtain at least two hash values of the foregoing information.
例如: 上述网络存储设备对信息 (即信息的内容) 进行 MD5或 CityHash 等哈希运算, 利用至少两个哈希函数,将信息的二进制值映射为至少两个固定 长度的较小的二进制值即哈希值。 为了进一步减小开销, 可以进行非加密的哈 希运算, 例如: CityHash等哈希运算。  For example: the network storage device performs a hash operation such as MD5 or CityHash on the information (that is, the content of the information), and uses at least two hash functions to map the binary value of the information into at least two fixed length smaller binary values. Hash value. To further reduce overhead, non-encrypted hash operations can be performed, such as: CityHash and other hash operations.
203、 上述网络存储设备获得与上述至少两个哈希值对应的位图; 例如: 如果 202中, 网络存储设备对上述信息进行哈希运算, 获得上述信 息的三个哈希值, 分别为 2、 6和 14, 可以假设哈希值对应的位为 1 , 则上述哈 希值对应的位图可以为 010001000000010000。  203. The network storage device obtains a bitmap corresponding to the at least two hash values. For example, if the network storage device performs a hash operation on the information, the three hash values of the foregoing information are respectively obtained as 2 6, and 14 can be assumed that the bit corresponding to the hash value is 1, and the bitmap corresponding to the hash value can be 010001000000010000.
204、 上述网络存储设备根据上述位图, 存储上述信息或者不存储上述信  204. The foregoing network storage device stores the foregoing information or does not store the foregoing information according to the bitmap.
网络存储设备之前接收的至少一个信息的位图进行比较,若上述与上述至少两 个哈希值对应的位图对应的位置在上述存储的位图中,上述网络存储设备不存 储上述信息;若上述与上述至少两个哈希值对应的位图对应的位置不在上述存 储的位图中, 上述网络存储设备存储上述信息。 Comparing the bitmaps of the at least one information received by the network storage device, if the location corresponding to the bitmap corresponding to the at least two hash values is in the stored bitmap, the network storage device does not store the information; The location corresponding to the bitmap corresponding to the at least two hash values is not in the stored bitmap, and the network storage device stores the information.
进一步地,在网络存储设备存储上述信息之后,还可以进一步存储上述与 上述至少两个哈希值对应的位图。在本发明实施例的一个应用场景中, 网络存 储设备可以在每次存储一个信息之后,都存储该信息的位图。在本发明实施例 的另一个应用场景中, 网络存储设备还可以在每次存储一个信息之后,将该信 息的位图存储到之前存储的信息的位图中, 例如: 将该信息的位图与之前存储 的信息的位图进行或操作, 将得到的位图作为基准位图, 并存储基准位图。  Further, after the network storage device stores the foregoing information, the bitmap corresponding to the at least two hash values may be further stored. In an application scenario of the embodiment of the present invention, the network storage device may store a bitmap of the information after storing one piece of information each time. In another application scenario of the embodiment of the present invention, the network storage device may further store the bitmap of the information into a bitmap of the previously stored information after storing one information each time, for example: a bitmap of the information. Perform or operate with a bitmap of previously stored information, use the resulting bitmap as a reference bitmap, and store the reference bitmap.
可选地,在上述网络存储设备对上述位图与上述网络存储设备之前接收的 至少一个信息的位图进行比较之前,如果网络存储设备存储了一个信息,上述 网络存储设备则可以进一步将上述一个信息的哈希值对应的位图作为基准位 图, 并进行存储; 如果网络存储设备存储了至少两个信息, 上述网络存储设备 则可以进一步对上述至少两个信息的哈希值对应的位图进行或操作,将得到的 位图作为基准位图, 并进行存储。 这样, 使得上述网络存储设备能够对上述与 上述至少两个哈希值对应的位图与上述基准位图进行比较,若上述与上述至少 两个哈希值对应的位图对应的位置在上述存储的基准位图中,上述网络存储设 备不存储上述信息;若上述与上述至少两个哈希值对应的位图对应的位置不在 上述存储的基准位图中, 上述网络存储设备存储上述信息。 Optionally, before the foregoing network storage device receives the bitmap and the network storage device, Before the bitmap of the at least one information is compared, if the network storage device stores a message, the network storage device may further use the bitmap corresponding to the hash value of the above information as the reference bitmap and store the data; if the network storage The device stores at least two pieces of information, and the network storage device may further perform or operate on the bitmap corresponding to the hash value of the at least two pieces of information, and use the obtained bitmap as a reference bitmap and store the bitmap. In this way, the network storage device can compare the bitmap corresponding to the at least two hash values with the reference bitmap, if the location corresponding to the bitmap corresponding to the at least two hash values is stored in the foregoing In the reference bitmap, the network storage device does not store the information; if the location corresponding to the bitmap corresponding to the at least two hash values is not in the stored reference bitmap, the network storage device stores the information.
可选地,本实施例中的网络存储设备还可以进一步即时清除过期的位图或 者位图中的位。例如: 网络存储设备可以对选定范围之内的信息的位图与上述 基准位图进行异或操作, 并与所述选定范围之外的信息的位图进行或操作,得 到新的位图作为更新之后的基准位图, 并进行存储,从而可以满足海量的信息 备份、 以及某些信息具有时间有效性(例如: 某个品牌群发的关于商品促销的 短消息, 该短消息的有效时间截止为促销停止时, 则说明该短消息具有时间有 效性) 的需求, 节省了位图所占用的内存开销。  Optionally, the network storage device in this embodiment may further clear the bits in the expired bitmap or bitmap in an instant. For example: the network storage device may perform an exclusive OR operation on the bitmap of the information within the selected range and the above reference bitmap, and perform or operate with a bitmap of the information outside the selected range to obtain a new bitmap. As the reference bitmap after the update, and stored, it can meet a huge amount of information backup, and some information is time-effective (for example: a short message about a product promotion issued by a certain brand group, the effective time limit of the short message When the promotion is stopped, the short message has a time validity requirement, which saves the memory overhead occupied by the bitmap.
本实施例中,网络存储设备接收信息之后,通过对上述信息进行哈希运算, 获得上述信息的至少两个哈希值, 并获得与上述至少两个哈希值对应的位图, 使得上述网络存储设备能够根据上述位图,存储上述信息或者不存储上述信息 , 能够避免现有技术中由于同样一个信息在网络存储设备中可能会备份多次而 导致的网络存储设备中存在大量相同的信息的问题,从而提高了网络存储设备 的利用率的降低, 以及信息维护和管理的效率。  In this embodiment, after receiving the information, the network storage device obtains at least two hash values of the foregoing information by performing a hash operation on the foregoing information, and obtains a bitmap corresponding to the at least two hash values, so that the network is configured. The storage device can store the foregoing information or not store the foregoing information according to the foregoing bitmap, and can avoid a large amount of the same information in the network storage device caused by the same information being backed up in the network storage device multiple times in the prior art. The problem is to improve the utilization of network storage devices and the efficiency of information maintenance and management.
为使得本发明实施例提供的方法更加清楚,下面将以 18比特的位图作为举 例。 假设网络存储设备当前没有存储任何信息。  In order to make the method provided by the embodiment of the present invention clearer, an 18-bit bitmap will be exemplified below. Suppose the network storage device does not currently store any information.
第一个周期 T1内  The first cycle is within T1
网络存储设备存储信息 A , 获得信息 A对应的至少两个哈希值所对应的位 图为 A位图 =010001000000010000, 并存储到内存中;  The network storage device stores information A, and obtains the bitmap corresponding to at least two hash values corresponding to A. The bitmap is A bitmap =010001000000010000, and is stored in the memory;
网络存储设备接收信息 B , 获得信息 B对应的至少两个哈希值所对应的位 图为 B位图 =000010000001000010, 经过比较, B位图与 A位图不相同, 网络存储 设备则存储信息 B; The network storage device receives the information B, and the bitmap corresponding to the at least two hash values corresponding to the information B is B bitmap=000010000001000010. After comparison, the B bitmap is different from the A bitmap, and the network storage The device stores information B;
此时, 网络存储设备对 B位图和 A位图进行或操作, 得到基准位图 T1位图 =01001 1000001010010, 并存储到内存中;  At this time, the network storage device performs or operates on the B bitmap and the A bitmap to obtain a reference bitmap T1 bitmap =01001 1000001010010, and stores it in the memory;
当 T1结束时, 将 T1位图作为 T1内的网络存储设备存储信息的位图 S1位图, 并存储到磁盘中。  When T1 ends, the T1 bitmap is used as a bitmap S1 bitmap of the network storage device in T1 and stored in the disk.
第二个周期 T2内  The second cycle is within T2
网络存储设备接收信息 C , 获得信息 C对应的至少两个哈希值所对应的位 图为 C位图 =000101000001000000, 经过比较, C位图与 T1位图不相同, 网络存 储设备则存储信息 C;  The network storage device receives the information C, and the bitmap corresponding to the at least two hash values corresponding to the information C is C bitmap = 000101000001000000. After comparison, the C bitmap is different from the T1 bitmap, and the network storage device stores the information C. ;
此时, 网络存储设备对 C位图和 T1位图进行或操作, 得到基准位图 T2位图 At this point, the network storage device performs or operates on the C bitmap and the T1 bitmap to obtain the reference bitmap T2 bitmap.
=0101 1 1000001010010, 并存储到内存中; =0101 1 1000001010010, and stored in the memory;
网络存储设备接收信息 D , 获得信息 D对应的至少两个哈希值所对应的位 图为 D位图 =000101000001000000, 经过比较, D位图在 T2位图之中, 说明网络 存储设备已经存储过一个与信息 D相同的信息, 信息 D是一个重复信息, 网络 存储设备则不再存储信息 D;  The network storage device receives the information D, and the bitmap corresponding to the at least two hash values corresponding to the information D is D bitmap=000101000001000000. After comparison, the D bitmap is in the T2 bitmap, indicating that the network storage device has been stored. a message identical to the information D, the information D is a duplicate information, and the network storage device no longer stores the information D;
当 T2结束时, 将 C位图作为 T2内的网络存储设备存储信息的位图 S2位图, 并存储到磁盘中;  When T2 ends, the C bitmap is used as a bitmap S2 bitmap of the network storage device in T2, and stored in the disk;
第三个周期 T3内  The third cycle is within T3
网络存储设备接收信息 E , 获得信息 E对应的至少两个哈希值所对应的位 图为 E位图 =00001 1000001000000, 经过比较, E位图在 T2位图之中, 说明网络 存储设备已经存储过一个与信息 E相同的信息, 信息 E是一个重复信息, 网络 存储设备则不再存储信息 E;  The network storage device receives the information E, and the bitmap corresponding to the at least two hash values corresponding to the information E is the E bitmap 00001 1000001000000. After comparison, the E bitmap is in the T2 bitmap, indicating that the network storage device has been stored. After the same information as the information E, the information E is a duplicate information, and the network storage device no longer stores the information E;
网络存储设备接收信息 F , 获得信息 F对应的至少两个哈希值所对应的位 图为 F位图 =100000000000010001 , 经过比较, F位图与 T2位图不相同, 网络存 储设备则存储信息 F;  The network storage device receives the information F, and the bitmap corresponding to the at least two hash values corresponding to the information F is F bitmap=100000000000010001. After comparison, the F bitmap is different from the T2 bitmap, and the network storage device stores the information F. ;
此时, 网络存储设备对 F位图和 T2位图进行或操作, 得到基准位图 T3位图 =1 101 1 100000101001 1 , 并存储到内存中;  At this time, the network storage device performs or operates on the F bitmap and the T2 bitmap to obtain a reference bitmap T3 bitmap =1 101 1 100000101001 1 and stores it in the memory;
当 T3结束时, 将 F位图作为 T3内的网络存储设备存储信息的位图 S3位图, 并存储到磁盘中。 如果需要清除 T1内的信息的位图, 网络存储设备则可以对 Τ1内的信息的 位图即 S1位图与上述至少一个信息的位图即 Τ3位图进行异或操作, 并且与 S2位 图和 S3位图进行或操作, 得到新的位图作为上述至少一个信息的位图 Τ更新 =1 00101000001010001。 When T3 ends, the F bitmap is taken as a bitmap S3 bitmap of the network storage device in T3 and stored in the disk. If it is necessary to clear the bitmap of the information in T1, the network storage device may perform an exclusive OR operation on the bitmap of the information in Τ1, that is, the S1 bitmap and the bitmap of the at least one information, that is, the 位3 bitmap, and the S2 bitmap. Performing or operating with the S3 bitmap to obtain a new bitmap as a bitmap of the at least one piece of information Τ update=1 00101000001010001.
需要说明的是: 对于前述的各方法实施例, 为了筒单描述, 故将其都表述 为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的 动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。 其次, 本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施 例, 所涉及的动作和模块并不一定是本发明所必须的。  It should be noted that, for each of the foregoing method embodiments, for the description of the package, it is expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重, 某个实施例中没有详 述的部分, 可以参见其他实施例的相关描述。  In the above embodiments, the descriptions of the various embodiments are different, and the details are not described in the specific embodiments. For details, refer to related descriptions of other embodiments.
图 3为本发明另一实施例提供的信息处理设备的结构示意图, 如图 3所示, 本实施例的信息处理设备可以包括接收单元 31、 获得单元 32和处理单元 33。 其中, 接收单元 31用于接收信息; 获得单元 32用于对接收单元 31接收的上述 信息进行哈希运算,获得上述信息的至少两个哈希值;处理单元 33用于根据获 得单元 32获得的上述至少两个哈希值, 存储上述信息或者不存储上述信息。  FIG. 3 is a schematic structural diagram of an information processing device according to another embodiment of the present invention. As shown in FIG. 3, the information processing device of this embodiment may include a receiving unit 31, an obtaining unit 32, and a processing unit 33. The receiving unit 31 is configured to receive information, and the obtaining unit 32 is configured to perform hash operation on the information received by the receiving unit 31 to obtain at least two hash values of the foregoing information. The processing unit 33 is configured to obtain the information according to the obtaining unit 32. The at least two hash values described above store the above information or do not store the above information.
上述图 1和图 2对应的实施例中网络存储设备的功能均可以由本实施例提 供的信息处理设备实现。 应的位图, 以及根据上述位图, 存储上述信息或者不存储上述信息。 例如: 处 理单元 33对上述位图与上述网络存储设备之前接收的至少一个信息的位图进 行比较, 若上述位图对应的位置在上述存储的位图中, 不存储上述信息; 若上 述位图对应的位置不在上述存储的位图中, 存储上述信息。  The functions of the network storage device in the embodiments corresponding to the foregoing FIG. 1 and FIG. 2 can be implemented by the information processing device provided in this embodiment. The bitmap should be stored, and the above information is stored or not stored according to the above bitmap. For example, the processing unit 33 compares the bitmap with the bitmap of the at least one information previously received by the network storage device, and if the location corresponding to the bitmap is in the stored bitmap, the information is not stored; The corresponding location is not in the bitmap stored above, and the above information is stored.
进一步地,如果网络存储设备存储了一个信息,本实施例中的处理单元 33 还可以进一步将所述一个信息的哈希值对应的位图作为基准位图,并进行存储; 如果网络存储设备存储了至少两个信息,本实施例中的处理单元 33还可以进一 步对所述至少两个信息的哈希值对应的位图进行或操作,将得到的位图作为基 准位图, 并进行存储。 对应的位图与所述基准位图进行比较。 Further, if the network storage device stores an information, the processing unit 33 in this embodiment may further use a bitmap corresponding to the hash value of the one information as a reference bitmap, and store the data storage device; For at least two pieces of information, the processing unit 33 in this embodiment may further perform or operate on the bitmap corresponding to the hash value of the at least two pieces of information, and use the obtained bitmap as a reference bitmap and store the bitmap. The corresponding bitmap is compared to the reference bitmap.
可选地,本实施例中的信息处理设备还可以进一步即时清除过期的位图或 者位图中的位。例如: 处理单元 33还可以进一步用于对选定范围之内的信息的 位图与上述基准进行异或操作,并与上述选定范围之外的信息的位图进行或操 作, 得到新的位图作为更新之后的基准位图, 并进行存储, 从而可以满足海量 的信息备份、 以及某些信息具有时间有效性(例如: 某个品牌群发的关于商品 促销的短消息, 该短消息的有效时间截止为促销停止时, 则说明该短消息具有 时间有效性) 的需求, 节省了位图所占用的内存开销。  Optionally, the information processing device in this embodiment may further clear the bits in the expired bitmap or the bitmap in an instant. For example, the processing unit 33 may be further configured to perform an exclusive OR operation on the bitmap of the information within the selected range and the reference, and perform or operate with a bitmap of the information outside the selected range to obtain a new bit. The map is used as a reference bitmap after the update, and is stored, so as to satisfy a huge amount of information backup, and some information is time-effective (for example: a short message about a product promotion issued by a certain brand group, the effective time of the short message) When the promotion is stopped, it indicates that the short message has time validity), which saves the memory overhead occupied by the bitmap.
本实施例中,信息处理设备由接收单元接收信息之后,通过获得单元对接 收单元接收的上述信息进行哈希运算, 获得上述信息的至少两个哈希值,使得 处理单元能够根据获得单元获得的上述至少两个哈希值,存储上述信息或者不 存储上述信息,能够避免现有技术中由于同样一个信息在网络存储设备中可能 会备份多次而导致的网络存储设备中存在大量相同的信息的问题,从而提高了 网络存储设备的利用率的降低, 以及信息维护和管理的效率。  In this embodiment, after the information processing device receives the information by the receiving unit, the obtaining unit performs a hash operation on the information received by the receiving unit to obtain at least two hash values of the information, so that the processing unit can obtain the information according to the obtaining unit. The foregoing at least two hash values store the foregoing information or do not store the foregoing information, which can avoid the existence of a large amount of the same information in the network storage device caused by the same information being backed up in the network storage device multiple times in the prior art. The problem is to improve the utilization of network storage devices and the efficiency of information maintenance and management.
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描述 的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and the cleaning of the description, the specific working processes of the system, the device and the unit described above can be referred to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另 外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或 一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直 接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能 单元的形式实现。 In addition, each functional unit in various embodiments of the present invention may be integrated in one processing unit. It is also possible that each unit physically exists alone, or two or more units may be integrated in one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可 读取存储介质中。上述软件功能单元存储在一个存储介质中, 包括若干指令用 以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行 本发明各个实施例所述方法的部分步骤。 而前述的存储介质包括: U盘、 移动 硬盘、 只读存储器 ( Read-Only Memory, 筒称 ROM ) 、 随机存取存储器 ( Random Access Memory, 筒称 RAM ) 、 磁碟或者光盘等各种可以存储程 序代码的介质。  The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional units are stored in a storage medium and include a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform part of the steps of the method of the various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and the like. The medium of the program code.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其限 制; 尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员 应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其 中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的 本质脱离本发明各实施例技术方案的精神和范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种信息处理方法, 其特征在于, 包括:  An information processing method, comprising:
网络存储设备接收信息;  The network storage device receives the information;
所述网络存储设备对所述信息进行哈希运算,获得所述信息的至少两个哈 希值;  The network storage device performs a hash operation on the information to obtain at least two hash values of the information;
所述网络存储设备根据所述至少两个哈希值,存储所述信息或者不存储所 述信息。  The network storage device stores the information or does not store the information according to the at least two hash values.
2、根据权利要求 1所述的方法, 其特征在于, 所述网络存储设备根据所述 至少两个哈希值, 存储所述信息或者不存储所述信息, 包括:  The method according to claim 1, wherein the storing, by the network storage device, the information or not storing the information according to the at least two hash values comprises:
所述网络存储设备获得与所述至少两个哈希值对应的位图; 信息或者不存储所述信息。  The network storage device obtains a bitmap corresponding to the at least two hash values; the information does not store the information.
3、根据权利要求 2所述的方法, 其特征在于, 所述网络存储设备根据所述 与所述至少两个哈希值对应的位图,存储所述信息或者不存储所述信息,包括: 存储设备之前接收的至少一个信息的位图进行比较,若所述与所述至少两个哈 希值对应的位图对应的位置在所述存储的位图中,所述网络存储设备不存储所 述信息;若所述与所述至少两个哈希值对应的位图对应的位置不在所述存储的 位图中, 所述网络存储设备存储所述信息。  The method according to claim 2, wherein the storing, by the network storage device, the information or not storing the information according to the bitmap corresponding to the at least two hash values comprises: Comparing the bitmaps of the at least one information received by the storage device, if the location corresponding to the bitmap corresponding to the at least two hash values is in the stored bitmap, the network storage device does not store the location The network storage device stores the information if the location corresponding to the bitmap corresponding to the at least two hash values is not in the stored bitmap.
4、根据权利要求 3所述的方法, 其特征在于, 所述网络存储设备根据所述 位图, 存储所述信息之后, 还包括:  The method of claim 3, wherein the network storage device, after storing the information according to the bitmap, further includes:
存储所述与所述至少两个哈希值对应的位图。  And storing the bitmap corresponding to the at least two hash values.
5、 根据权利要求 3或 4所述的方法, 其特征在于, 所述网络存储设备对所 述与所述至少两个哈希值对应的位图与所述网络存储设备之前接收的至少一 个信息的位图进行比较之前, 还包括:  The method according to claim 3 or 4, wherein the network storage device pairs the bitmap corresponding to the at least two hash values with at least one information previously received by the network storage device Before the bitmap is compared, it also includes:
如果网络存储设备存储了一个信息,所述网络存储设备将所述一个信息的 哈希值对应的位图作为基准位图, 并进行存储;  If the network storage device stores a message, the network storage device uses a bitmap corresponding to the hash value of the information as a reference bitmap, and stores the bitmap;
如果网络存储设备存储了至少两个信息,所述网络存储设备对所述至少两 个信息的哈希值对应的位图进行或操作, 将得到的位图作为基准位图, 并进行 存储; 存储设备之前接收的至少一个信息的位图进行比较, 包括: 位图进行比较。 If the network storage device stores at least two pieces of information, the network storage device performs or operates on a bitmap corresponding to the hash value of the at least two pieces of information, and uses the obtained bitmap as a reference bitmap, and performs Storage; comparing bitmaps of at least one piece of information received by the storage device, including: Bitmaps for comparison.
6、 根据权利要求 5所述的方法, 其特征在于, 所述方法还包括: 所述网络存储设备对选定范围之内的信息的位图与所述基准位图进行异 或操作, 并与所述选定范围之外的信息的位图进行或操作,得到新的位图作为 更新之后的基准位图, 并进行存储。  The method according to claim 5, wherein the method further comprises: the network storage device performing an exclusive-OR operation on the bitmap of the information within the selected range and the reference bitmap, and A bitmap of the information outside the selected range is ORed to obtain a new bitmap as a reference bitmap after the update and stored.
7、 一种信息处理设备, 其特征在于, 包括:  7. An information processing device, comprising:
接收单元, 用于接收信息;  a receiving unit, configured to receive information;
获得单元, 用于对所述信息进行哈希运算, 获得所述信息的至少两个哈希 值;  And an obtaining unit, configured to perform hash operation on the information, to obtain at least two hash values of the information;
处理单元, 用于根据所述至少两个哈希值,存储所述信息或者不存储所述 信息。  And a processing unit, configured to store the information according to the at least two hash values or not to store the information.
8、 根据权利要求 7所述的设备, 其特征在于, 所述处理单元具体用于 获得与所述至少两个哈希值对应的位图,以及根据所述与所述至少两个哈 希值对应的位图, 存储所述信息或者不存储所述信息。  The device according to claim 7, wherein the processing unit is specifically configured to obtain a bitmap corresponding to the at least two hash values, and according to the at least two hash values The corresponding bitmap stores the information or does not store the information.
9、 根据权利要求 8所述的设备, 其特征在于, 所述处理单元具体用于 对所述与所述至少两个哈希值对应的位图与所述网络存储设备之前接收 的至少一个信息的位图进行比较,若所述与所述至少两个哈希值对应的位图对 应的位置在所述存储的位图中, 不存储所述信息; 若所述与所述至少两个哈希 值对应的位图对应的位置不在所述存储的位图中, 存储所述信息。  The device according to claim 8, wherein the processing unit is configured to: use the bitmap corresponding to the at least two hash values and at least one information previously received by the network storage device The bitmap is compared, if the location corresponding to the bitmap corresponding to the at least two hash values is in the stored bitmap, the information is not stored; if the at least two are The location corresponding to the bitmap corresponding to the hash value is not in the stored bitmap, and the information is stored.
10、 根据权利要求 9所述的设备, 其特征在于, 所述处理单元还用于 如果网络存储设备存储了一个信息,所述网络存储设备将所述一个信息的 哈希值对应的位图作为基准位图, 并进行存储;  The device according to claim 9, wherein the processing unit is further configured to: if the network storage device stores a piece of information, the network storage device uses a bitmap corresponding to a hash value of the one piece of information as Reference bitmap, and store it;
如果网络存储设备存储了至少两个信息,所述网络存储设备对所述至少两 个信息的哈希值对应的位图进行或操作, 将得到的位图作为基准位图, 并进行 存储; 所述处理单元具体用于 If the network storage device stores at least two pieces of information, the network storage device performs or operates a bitmap corresponding to the hash value of the at least two pieces of information, and uses the obtained bitmap as a reference bitmap and stores the bitmap; The processing unit is specifically configured to
对所述与所述至少两个哈希值对应的位图与所述基准位图进行比较。  Comparing the bitmap corresponding to the at least two hash values with the reference bitmap.
1 1、 根据权利要求 9或 10任一权利要求所述的设备, 其特征在于, 所述处 理单元还用于  1 1. The device according to any one of claims 9 or 10, wherein the processing unit is further used for
对选定范围之内的信息的位图与所述基准位图进行异或操作,并与所述选 定范围之外的信息的位图进行或操作,得到新的位图作为更新之后的基准位图, 并进行存储。  Performing an exclusive OR operation on the bitmap of the information within the selected range and the reference bitmap, and performing or operating on the bitmap of the information outside the selected range to obtain a new bitmap as a reference after the update Bitmap, and store it.
PCT/CN2012/080274 2011-12-14 2012-08-17 Information processing method and equipment WO2013086867A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110416964.0 2011-12-14
CN201110416964.0A CN102523112B (en) 2011-12-14 2011-12-14 Information processing method and equipment

Publications (1)

Publication Number Publication Date
WO2013086867A1 true WO2013086867A1 (en) 2013-06-20

Family

ID=46293911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/080274 WO2013086867A1 (en) 2011-12-14 2012-08-17 Information processing method and equipment

Country Status (2)

Country Link
CN (1) CN102523112B (en)
WO (1) WO2013086867A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523112B (en) * 2011-12-14 2015-09-09 华为技术有限公司 Information processing method and equipment
CN105760404A (en) * 2014-12-19 2016-07-13 富士通株式会社 Data integration method and device
CN110335125A (en) * 2019-07-12 2019-10-15 政采云有限公司 A kind of information reporting method and device
CN112330398B (en) * 2020-10-30 2024-04-09 京东科技控股股份有限公司 Object processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100312752A1 (en) * 2009-06-08 2010-12-09 Symantec Corporation Source Classification For Performing Deduplication In A Backup Operation
US20110093439A1 (en) * 2009-10-16 2011-04-21 Fanglu Guo De-duplication Storage System with Multiple Indices for Efficient File Storage
CN102194002A (en) * 2011-05-25 2011-09-21 中兴通讯股份有限公司 Table entry adding, deleting and searching method of hash table and hash table storage device
CN102523112A (en) * 2011-12-14 2012-06-27 华为技术有限公司 Information processing method and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2102751B1 (en) * 2006-12-22 2013-11-20 Commvault Systems, Inc. System and method for storing redundant information
CN101882141A (en) * 2009-05-08 2010-11-10 北京众志和达信息技术有限公司 Method and system for implementing repeated data deletion
CN102184128B (en) * 2011-05-26 2013-04-10 成都易我科技开发有限责任公司 Fast disc incremental backup method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100312752A1 (en) * 2009-06-08 2010-12-09 Symantec Corporation Source Classification For Performing Deduplication In A Backup Operation
US20110093439A1 (en) * 2009-10-16 2011-04-21 Fanglu Guo De-duplication Storage System with Multiple Indices for Efficient File Storage
CN102194002A (en) * 2011-05-25 2011-09-21 中兴通讯股份有限公司 Table entry adding, deleting and searching method of hash table and hash table storage device
CN102523112A (en) * 2011-12-14 2012-06-27 华为技术有限公司 Information processing method and equipment

Also Published As

Publication number Publication date
CN102523112A (en) 2012-06-27
CN102523112B (en) 2015-09-09

Similar Documents

Publication Publication Date Title
WO2021164178A1 (en) Cloud technology-based file fragment uploading method and apparatus, and device and storage medium
US10387255B2 (en) Data reconstruction method in distributed storage system, apparatus, and system
CN109949111B (en) Electronic bill identification distribution method, electronic bill generation method, device and system
CN110569309B (en) Apparatus, method, system, and medium for implementing blockchain
US10298436B2 (en) Arbitration processing method after cluster brain split, quorum storage apparatus, and system
WO2018076759A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
TWI669620B (en) Database switching method, server, storage medium, electronic device and product
US8375200B2 (en) Embedded device and file change notification method of the embedded device
CN110377570B (en) Node switching method and device, computer equipment and storage medium
KR20160139493A (en) Method and apparatus for managing encryption keys for cloud service
CN103403731B (en) The data encryption treating apparatus of cloud storage system and method
US10943010B2 (en) Generation of a random value for a child process
WO2016177231A1 (en) Dual-control-based active-backup switching method and device
WO2021121407A1 (en) Capacity changing method and apparatus for virtual machine
US20160085588A1 (en) Distributed storage data repair air via partial data rebuild within an execution path
CN111880967A (en) File backup method, device, medium and electronic equipment in cloud scene
WO2013086867A1 (en) Information processing method and equipment
CN111338834B (en) Data storage method and device
CN115934414A (en) Data backup method, data recovery method, device, equipment and storage medium
CN110442601B (en) Openstack mirror image data parallel acceleration method and device
CN111857609A (en) Method and device for uploading cloud printing log and computer storage medium
CN114637611A (en) Information processing method and device based on message queue and computer equipment
WO2014107836A1 (en) Network alarm method and device
EP4142258A1 (en) Edge computing network, data transmission method and apparatus, device and storage medium
US20120331040A1 (en) Validating download success

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12857167

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12857167

Country of ref document: EP

Kind code of ref document: A1