CN114124883A - Data access method and device based on cloud storage address, computer equipment and medium - Google Patents

Data access method and device based on cloud storage address, computer equipment and medium Download PDF

Info

Publication number
CN114124883A
CN114124883A CN202111187538.4A CN202111187538A CN114124883A CN 114124883 A CN114124883 A CN 114124883A CN 202111187538 A CN202111187538 A CN 202111187538A CN 114124883 A CN114124883 A CN 114124883A
Authority
CN
China
Prior art keywords
address
cloud storage
initial
type
conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111187538.4A
Other languages
Chinese (zh)
Other versions
CN114124883B (en
Inventor
陈旃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cormorant Technology Shenzhen Co ltd
Original Assignee
Cormorant Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cormorant Technology Shenzhen Co ltd filed Critical Cormorant Technology Shenzhen Co ltd
Priority to CN202111187538.4A priority Critical patent/CN114124883B/en
Publication of CN114124883A publication Critical patent/CN114124883A/en
Application granted granted Critical
Publication of CN114124883B publication Critical patent/CN114124883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data access method and device based on a cloud storage address, computer equipment and a storage medium, wherein the method comprises the following steps: when an access request of a client is received, an initial address contained in the access request is obtained, the initial address is analyzed to obtain an address type corresponding to the initial address, the initial address is converted according to a preset address conversion mode based on the address type to obtain a conversion address, an address matched with the conversion address is obtained from a stored cloud storage server address list to serve as a target address, access of cloud storage data is carried out based on the target address, quick response of the access request of different types of cloud storage addresses is achieved, and data access efficiency is improved.

Description

Data access method and device based on cloud storage address, computer equipment and medium
Technical Field
The invention relates to the field of data processing, in particular to a data access method and device based on a cloud storage address, computer equipment and a medium.
Background
With the rapid development of computer technology, more and more transactions are processed through a network to access the internet to obtain information, which is a common thing in daily life, and data access is performed through the network, mainly through a client accessing an appointed domain name or an IP address, and then corresponding data resources are obtained from a storage server corresponding to the appointed domain name or IP address to obtain corresponding information. At present, a plurality of protocols for accessing are provided, different cloud storage service application providers are often selected according to actual needs of the cloud storage service application providers, and in the existing mode, address conversion needs to be configured for each provider, so that the efficiency of accessing cloud storage resources is low.
Disclosure of Invention
The embodiment of the invention provides a data access method and device based on cloud storage, computer equipment and a storage medium, so as to improve the efficiency of data access based on cloud storage.
In order to solve the above technical problem, an embodiment of the present application provides a data access method based on a cloud storage address, including:
when an access request of a client is received, an initial address contained in the access request is obtained;
analyzing the initial address to obtain an address type corresponding to the initial address, wherein the address type comprises a physical path address and a virtual host address;
converting the initial address according to a preset address conversion mode based on the address type to obtain a conversion address;
and acquiring an address matched with the conversion address from a stored cloud storage server address list to serve as a target address, and accessing cloud storage data based on the target address.
Optionally, the analyzing the initial address to obtain the address type corresponding to the initial address includes:
analyzing the initial address based on a simple storage service S3 protocol to obtain an HTTP Host Header packet head in the initial address;
determining a storage segment name in the HTTP Host Header through dynamic global Host analysis;
and determining the address type corresponding to the initial address according to the stored segment name and a preset type judgment condition.
Optionally, the address type is a physical path address, and the converting the initial address according to a preset address conversion manner based on the address type to obtain a converted address includes:
acquiring an access object name from a storage segment corresponding to the storage segment name;
and combining the domain name corresponding to the initial address, the storage segment name and the access object name in sequence to generate the conversion address.
Optionally, the address type is a virtual host address, and the converting the initial address according to a preset address conversion manner based on the address type to obtain a converted address includes:
acquiring an access object name from a storage segment corresponding to the storage segment name;
and combining the storage segment name, the domain name corresponding to the initial address and the access object name in sequence to generate the conversion address.
Optionally, the obtaining, from a stored cloud storage server address list, an address matching the conversion address, as a target address, includes:
performing hash calculation on the converted address to obtain a hash result;
and acquiring a preset hash mapping table, and determining the address of the hash result as the target address based on the hash result and the preset mapping relation table.
In order to solve the foregoing technical problem, an embodiment of the present application further provides a data access apparatus based on a cloud storage address, including:
the client side comprises a request receiving module, a request sending module and a request receiving module, wherein the request receiving module is used for acquiring an initial address contained in an access request when the access request of the client side is received;
the type analysis module is used for analyzing the initial address to obtain an address type corresponding to the initial address, wherein the address type comprises a physical path address and a virtual host address;
the address conversion module is used for converting the initial address according to a preset address conversion mode based on the address type to obtain a conversion address;
and the address matching module is used for acquiring an address matched with the conversion address from a stored cloud storage server address list, taking the address as a target address, and accessing cloud storage data based on the target address.
Optionally, the type parsing module includes:
the address analysis unit is used for analyzing the initial address based on a simple storage service S3 protocol to obtain an HTTP Host Header packet head in the initial address;
the field identification unit is used for determining a storage field name in the HTTP Host Header through dynamic global Host analysis;
and the type judging unit is used for determining the address type corresponding to the initial address according to the stored segment name and a preset type judging condition.
Optionally, the address type is a physical path address, and the address translation module includes:
the first reading unit is used for acquiring an access object name from a storage segment corresponding to the storage segment name;
and the first combination unit is used for combining the domain name corresponding to the initial address, the storage segment name and the access object name in sequence to generate the conversion address.
Optionally, the address type is a virtual host address, and the address translation module includes:
the second reading unit is used for acquiring an access object name from the storage segment corresponding to the storage segment name;
and the second combination unit is used for combining the storage segment names, the domain names corresponding to the initial addresses and the access object names in sequence to generate the conversion addresses.
Optionally, the address matching module includes:
the Hash calculation unit is used for carrying out Hash calculation on the conversion address to obtain a Hash result;
and the address matching unit is used for acquiring a preset hash mapping table, and determining the address of the hash result as the target address based on the hash result and the preset mapping relation table.
In order to solve the technical problem, an embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the data access method based on the cloud storage address when executing the computer program.
In order to solve the technical problem, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the data access method based on the cloud storage address.
According to the data access method and device based on the cloud storage address, the computer equipment and the storage medium, when an access request of a client is received, an initial address contained in the access request is obtained, the initial address is analyzed to obtain an address type corresponding to the initial address, the initial address is converted based on the address type according to a preset address conversion mode to obtain a converted address, an address matched with the converted address is obtained from a stored cloud storage server address list to serve as a target address, access of cloud storage data is conducted based on the target address, quick response of the access request of different types of cloud storage addresses is achieved, and data access efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic diagram of an application environment of the present application;
FIG. 2 is a flow diagram of one embodiment of a cloud storage address based data access method of the present application;
FIG. 3 is a schematic block diagram of one embodiment of a cloud storage address based data access device according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a computer device according to the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, as shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, motion Picture experts compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, motion Picture experts compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
The data access method based on the cloud storage address provided by the embodiment of the application is executed by the server, and accordingly, the data access device based on the cloud storage address is arranged in the server.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. Any number of terminal devices, networks and servers may be provided according to implementation needs, and the terminal devices 101, 102 and 103 in this embodiment may specifically correspond to an application system in actual production.
Referring to fig. 2, fig. 2 shows a data access method based on a cloud storage address according to an embodiment of the present invention, which is detailed as follows:
s201: when an access request of a client is received, an initial address contained in the access request is obtained.
S202: and analyzing the initial address to obtain an address type corresponding to the initial address, wherein the address type comprises a physical path address and a virtual host address.
In a specific optional implementation manner, that is, in step S202, resolving the initial address to obtain an address type corresponding to the initial address includes:
analyzing the initial address based on a simple storage service S3 protocol to obtain an HTTP Host Header packet head in the initial address;
determining a storage segment name in an HTTP Host Header through dynamic global Host analysis;
and determining the address type corresponding to the initial address according to the stored segment name and a preset type judgment condition.
Among them, the Simple Storage Service (Simple Storage Service) S3 protocol is theoretically a global Storage Area Network (SAN) protocol, which represents an ultra-large hard disk in which digital assets can be stored and retrieved, and the assets stored and retrieved through S3 are referred to as objects. The object is stored in a bucket. You can analogize with the hard disk: an object is like a file and a memory segment is like a folder (or directory). Like hard disks, objects and memory segments can also be looked up by Uniform Resource Identifiers (URIs).
S203: and converting the initial address according to a preset address conversion mode based on the address type to obtain a conversion address.
In a specific optional implementation manner, the address type is a physical path address, and the converting the initial address according to a preset address conversion manner based on the address type to obtain the converted address includes:
acquiring an access object name from a storage segment corresponding to the storage segment name;
and combining the sequence of the domain name corresponding to the initial address, the storage segment name and the access object name to generate the conversion address.
In a specific optional embodiment, the address type is a virtual host address, and the converting the initial address according to a preset address conversion manner based on the address type to obtain the conversion address includes:
acquiring an access object name from a storage segment corresponding to the storage segment name;
and combining the storage segment name, the domain name corresponding to the initial address and the access object name in sequence to generate the conversion address.
S204: and acquiring an address matched with the conversion address from the stored cloud storage server address list to serve as a target address, and accessing the cloud storage data based on the target address.
Specifically, acquiring an address matched with the conversion address from a stored cloud storage server address list, and taking the address as a target address includes:
performing hash calculation on the converted address to obtain a hash result;
and acquiring a preset hash mapping table, and determining the address of the hash result as a target address based on the hash result and the preset mapping relation table.
In this embodiment, the hash mapping table corresponding to each cloud storage server address is preset in advance, and after a hash result is obtained, the corresponding cloud storage server address can be determined according to the value of the hash result, and the hash mapping table is used as a target address.
Further, when the target address is IPv4, the IPv6 address translation may be performed on the target address according to actual needs, and specifically includes:
carrying out hexadecimal conversion on the target address to obtain an intermediate address, wherein the intermediate address comprises four groups;
combining the first group and the second group of the intermediate address to be used as an updated first group, combining the third group and the fourth group of the intermediate address to obtain an updated second group, and sequentially combining the updated first group and the updated second group to obtain an updated intermediate address;
and performing zero padding processing on the first 96 bits of the updated intermediate address to obtain the IPv6 address.
In a specific example, the address type of a target address is IPv4 type, specifically 135.75.43.52, hexadecimal conversion is performed on the target address to obtain a converted address of 87.4b.2b.34, and the obtained converted address of 87.4b.2b.34 is also 8 bits in one group, so two groups of synthesis are required, the first group and the second group of the converted address are combined to obtain 874B, the third group and the fourth group of the converted address are combined to obtain 2B34, and the 2 b.2b34 is sequentially combined to obtain an updated converted address 874b.2b34, and further zero padding processing is performed on the first 96 bits to obtain 0000:0000:0000:0000: 874: 2B34 or: 874B:2B 34.
It should be noted that, by converting the target address from IPv4 to IPv6, it is beneficial to improve the compatibility of data access.
In this embodiment, when an access request of a client is received, an initial address included in the access request is obtained, the initial address is analyzed to obtain an address type corresponding to the initial address, the initial address is converted according to a preset address conversion mode based on the address type to obtain a conversion address, an address matched with the conversion address is obtained from a stored cloud storage server address list to serve as a target address, access of cloud storage data is performed based on the target address, quick response of access requests of different types of cloud storage addresses is achieved, and data access efficiency is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 3 is a schematic block diagram of a cloud storage address-based data access device in one-to-one correspondence with the cloud storage address-based data access method according to the foregoing embodiment. As shown in fig. 3, the data access apparatus based on the cloud storage address includes a node status determination module 31, a valid node acquisition module 32, a performance score calculation module 33, a target node determination module 34, and a data distribution processing module 35. The functional modules are explained in detail as follows:
a request receiving module 31, configured to, when receiving an access request from a client, obtain an initial address included in the access request;
the type analyzing module 32 is configured to analyze the initial address to obtain an address type corresponding to the initial address, where the address type includes a physical path address and a virtual host address;
the address translation module 33 is configured to translate the initial address according to a preset address translation manner based on the address type to obtain a translated address;
and the address matching module 34 is configured to obtain an address matched with the conversion address from the stored cloud storage server address list, use the address as a target address, and access the cloud storage data based on the target address.
Optionally, the type resolution module 32 includes:
the address analysis unit is used for analyzing the initial address based on a simple storage service S3 protocol to obtain an HTTP Host Header packet head in the initial address;
the field identification unit is used for determining a storage field name in an HTTP Host Header through dynamic global Host analysis;
and the type judging unit is used for determining the address type corresponding to the initial address according to the stored segment name and a preset type judging condition.
Optionally, the address type is a physical path address, and the address translation module 33 includes:
the first reading unit is used for acquiring an access object name from a storage segment corresponding to the storage segment name;
and the first combination unit is used for combining the domain name corresponding to the initial address, the storage segment name and the access object name in sequence to generate the conversion address.
Optionally, the address type is a virtual host address, and the address translation module 33 further includes:
the second reading unit is used for acquiring the access object name from the storage segment corresponding to the storage segment name;
and the second combination unit is used for combining the storage segment names, the domain names corresponding to the initial addresses and the access object names in sequence to generate the conversion addresses.
Optionally, the address matching module 35 includes:
the Hash calculation unit is used for carrying out Hash calculation on the conversion address to obtain a Hash result;
and the address matching unit is used for acquiring a preset hash mapping table and determining the address of the hash result as the target address based on the hash result and the preset mapping relation table.
For specific definition of the data access device based on the cloud storage address, reference may be made to the above definition of the data access method based on the cloud storage address, and details are not repeated here. The modules in the data access device based on the cloud storage address can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 4 comprises a memory 41, a processor 42, a network interface 43 communicatively connected to each other via a system bus. It is noted that only the computer device 4 having the components connection memory 41, processor 42, network interface 43 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 41 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or D interface display memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or a memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 4. Of course, the memory 41 may also include both internal and external storage devices of the computer device 4. In this embodiment, the memory 41 is generally used for storing an operating system installed in the computer device 4 and various types of application software, such as program codes for controlling electronic files. Further, the memory 41 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 42 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 42 is typically used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is configured to execute the program code stored in the memory 41 or process data, for example, execute the program code for data access.
The network interface 43 may comprise a wireless network interface or a wired network interface, and the network interface 43 is generally used for establishing communication connection between the computer device 4 and other electronic devices.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing a data access program, which is executable by at least one processor to cause the at least one processor to perform the steps of the cloud storage address-based data access method as described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A data access method based on a cloud storage address is characterized by comprising the following steps:
when an access request of a client is received, an initial address contained in the access request is obtained;
analyzing the initial address to obtain an address type corresponding to the initial address, wherein the address type comprises a physical path address and a virtual host address;
converting the initial address according to a preset address conversion mode based on the address type to obtain a conversion address;
and acquiring an address matched with the conversion address from a stored cloud storage server address list to serve as a target address, and accessing cloud storage data based on the target address.
2. The data access method based on the cloud storage address as claimed in claim 1, wherein the parsing the initial address to obtain the address type corresponding to the initial address includes:
analyzing the initial address based on a simple storage service S3 protocol to obtain an HTTP Host Header packet head in the initial address;
determining a storage segment name in the HTTP Host Header through dynamic global Host analysis;
and determining the address type corresponding to the initial address according to the stored segment name and a preset type judgment condition.
3. The data access method based on the cloud storage address as claimed in claim 2, wherein the address type is a physical path address, and the converting the initial address according to a preset address conversion manner based on the address type to obtain a converted address includes:
acquiring an access object name from a storage segment corresponding to the storage segment name;
and combining the domain name corresponding to the initial address, the storage segment name and the access object name in sequence to generate the conversion address.
4. The data access method based on the cloud storage address as claimed in claim 2, wherein the address type is a virtual host address, and the converting the initial address according to a preset address conversion manner based on the address type to obtain a converted address includes:
acquiring an access object name from a storage segment corresponding to the storage segment name;
and combining the storage segment name, the domain name corresponding to the initial address and the access object name in sequence to generate the conversion address.
5. The data access method based on the cloud storage address as claimed in any one of claims 1 to 4, wherein the obtaining, from the stored cloud storage server address list, an address matching the translation address as a target address comprises:
performing hash calculation on the converted address to obtain a hash result;
and acquiring a preset hash mapping table, and determining the address of the hash result as the target address based on the hash result and the preset mapping relation table.
6. A cloud storage address-based data access apparatus, the cloud storage address-based data access apparatus comprising:
the client side comprises a request receiving module, a request sending module and a request receiving module, wherein the request receiving module is used for acquiring an initial address contained in an access request when the access request of the client side is received;
the type analysis module is used for analyzing the initial address to obtain an address type corresponding to the initial address, wherein the address type comprises a physical path address and a virtual host address;
the address conversion module is used for converting the initial address according to a preset address conversion mode based on the address type to obtain a conversion address;
and the address matching module is used for acquiring an address matched with the conversion address from a stored cloud storage server address list, taking the address as a target address, and accessing cloud storage data based on the target address.
7. The cloud storage address-based data access apparatus of claim 6, wherein the type resolution module comprises:
the address analysis unit is used for analyzing the initial address based on a simple storage service S3 protocol to obtain an HTTP Host Header packet head in the initial address;
the field identification unit is used for determining a storage field name in the HTTP Host Header through dynamic global Host analysis;
and the type judging unit is used for determining the address type corresponding to the initial address according to the stored segment name and a preset type judging condition.
8. The cloud storage address-based data access apparatus of claim 6, wherein the address matching module comprises:
the Hash calculation unit is used for carrying out Hash calculation on the conversion address to obtain a Hash result;
and the address matching unit is used for acquiring a preset hash mapping table, and determining the address of the hash result as the target address based on the hash result and the preset mapping relation table.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the cloud storage address-based data access method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the cloud storage address-based data access method according to any one of claims 1 to 5.
CN202111187538.4A 2021-10-12 2021-10-12 Data access method and device based on cloud storage address, computer equipment and medium Active CN114124883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111187538.4A CN114124883B (en) 2021-10-12 2021-10-12 Data access method and device based on cloud storage address, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111187538.4A CN114124883B (en) 2021-10-12 2021-10-12 Data access method and device based on cloud storage address, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN114124883A true CN114124883A (en) 2022-03-01
CN114124883B CN114124883B (en) 2023-09-12

Family

ID=80441864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111187538.4A Active CN114124883B (en) 2021-10-12 2021-10-12 Data access method and device based on cloud storage address, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN114124883B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708579A (en) * 2023-08-04 2023-09-05 浪潮电子信息产业股份有限公司 Data access method, device, electronic equipment and computer readable storage medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658172A (en) * 2004-02-19 2005-08-24 国际商业机器公司 Apparatus and method for providing pre-translated segments for page translations in segmented operating systems
CN106127075A (en) * 2016-06-27 2016-11-16 湖南大学 The encryption method of can search for based on secret protection under a kind of cloud storage environment
US20180107604A1 (en) * 2016-10-14 2018-04-19 Arm Limited Apparatus and method for maintaining address translation data within an address translation cache
CN107948086A (en) * 2016-10-12 2018-04-20 北京金山云网络技术有限公司 A kind of data packet sending method, device and mixed cloud network system
CN108021513A (en) * 2016-11-02 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of date storage method and device
US20180267901A1 (en) * 2015-11-19 2018-09-20 Huawei Technologies Co., Ltd. Method for accessing stored data, and related controller, device, host, and system
US20190042764A1 (en) * 2017-11-10 2019-02-07 Intel Corporation Cryptographic Memory Ownership Table For Secure Public Cloud
US10296451B1 (en) * 2018-11-01 2019-05-21 EMC IP Holding Company LLC Content addressable storage system utilizing content-based and address-based mappings
CN109947671A (en) * 2019-03-05 2019-06-28 龙芯中科技术有限公司 A kind of address conversion method, device, electronic equipment and storage medium
CN110086895A (en) * 2019-04-11 2019-08-02 天津字节跳动科技有限公司 Domain name analytic method, device, medium and electronic equipment
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN111095903A (en) * 2017-09-14 2020-05-01 国际商业机器公司 Storage system using cloud storage as module
CN111338988A (en) * 2020-02-20 2020-06-26 西安芯瞳半导体技术有限公司 Memory access method and device, computer equipment and storage medium
US20200250144A1 (en) * 2019-02-04 2020-08-06 EMC IP Holding Company LLC Storage system utilizing content-based and address-based mappings for deduplicatable and non-deduplicatable types of data
CN111698221A (en) * 2020-05-20 2020-09-22 北京吉安金芯信息技术有限公司 Message processing method, entry, device, storage medium and processor
CN113242331A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Different types of address translation methods, different types of address translation devices, different types of computer equipment and different types of storage media
CN113239396A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Data access system, method, device, computer equipment and medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658172A (en) * 2004-02-19 2005-08-24 国际商业机器公司 Apparatus and method for providing pre-translated segments for page translations in segmented operating systems
US20180267901A1 (en) * 2015-11-19 2018-09-20 Huawei Technologies Co., Ltd. Method for accessing stored data, and related controller, device, host, and system
CN106127075A (en) * 2016-06-27 2016-11-16 湖南大学 The encryption method of can search for based on secret protection under a kind of cloud storage environment
CN107948086A (en) * 2016-10-12 2018-04-20 北京金山云网络技术有限公司 A kind of data packet sending method, device and mixed cloud network system
US20180107604A1 (en) * 2016-10-14 2018-04-19 Arm Limited Apparatus and method for maintaining address translation data within an address translation cache
CN108021513A (en) * 2016-11-02 2018-05-11 杭州海康威视数字技术股份有限公司 A kind of date storage method and device
CN111095903A (en) * 2017-09-14 2020-05-01 国际商业机器公司 Storage system using cloud storage as module
CN109783188A (en) * 2017-11-10 2019-05-21 英特尔公司 Encryption memory ownership table for safe public cloud
US20190042764A1 (en) * 2017-11-10 2019-02-07 Intel Corporation Cryptographic Memory Ownership Table For Secure Public Cloud
US10296451B1 (en) * 2018-11-01 2019-05-21 EMC IP Holding Company LLC Content addressable storage system utilizing content-based and address-based mappings
US20200250144A1 (en) * 2019-02-04 2020-08-06 EMC IP Holding Company LLC Storage system utilizing content-based and address-based mappings for deduplicatable and non-deduplicatable types of data
CN109947671A (en) * 2019-03-05 2019-06-28 龙芯中科技术有限公司 A kind of address conversion method, device, electronic equipment and storage medium
CN110086895A (en) * 2019-04-11 2019-08-02 天津字节跳动科技有限公司 Domain name analytic method, device, medium and electronic equipment
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN111338988A (en) * 2020-02-20 2020-06-26 西安芯瞳半导体技术有限公司 Memory access method and device, computer equipment and storage medium
CN111698221A (en) * 2020-05-20 2020-09-22 北京吉安金芯信息技术有限公司 Message processing method, entry, device, storage medium and processor
CN113242331A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Different types of address translation methods, different types of address translation devices, different types of computer equipment and different types of storage media
CN113239396A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Data access system, method, device, computer equipment and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
KYUNG-HWA KIM: "Flexible network address mapping for container-based clouds", 《PROCEEDINGS OF THE 2015 1ST IEEE CONFERENCE ON NETWORK SOFTWARIZATION (NETSOFT)》 *
卢学远: "基于内存云的自适应数据恢复策略", 东北师大学报(自然科学版) *
张千里;姜彩萍;王继龙;李星;: "IPv6地址结构标准化研究综述", 计算机学报, no. 06 *
张文迪;赵政;高潮;: "业务支撑网资源池改造方案研究", 科学家, no. 16 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116708579A (en) * 2023-08-04 2023-09-05 浪潮电子信息产业股份有限公司 Data access method, device, electronic equipment and computer readable storage medium
CN116708579B (en) * 2023-08-04 2024-01-12 浪潮电子信息产业股份有限公司 Data access method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN114124883B (en) 2023-09-12

Similar Documents

Publication Publication Date Title
CN110519401B (en) Method, device, equipment and storage medium for improving network access success rate
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
US8250466B2 (en) Computer and method for converting a web page
CN106534268B (en) Data sharing method and device
CN110798445B (en) Public gateway interface testing method and device, computer equipment and storage medium
CN113259342A (en) Login verification method, device, computer equipment and medium
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN112416458A (en) Preloading method and device based on ReactNative, computer equipment and storage medium
CN112631910A (en) Front-end testing method and device, computer equipment and storage medium
CN113242331B (en) Different types of address conversion method, device, computer equipment and storage medium
CN113890879A (en) Load balancing method and device for data access, computer equipment and medium
CN110677506B (en) Network access method, device, computer equipment and storage medium
CN115794437A (en) Calling method and device of microservice, computer equipment and storage medium
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
CN114143191A (en) Distributed gateway-based micro-service arranging method and device and related equipment
CN112367195B (en) Network configuration method, system and device
CN112436943B (en) Request deduplication method, device, equipment and storage medium based on big data
US11271875B2 (en) System and method for contextually based fulfillment of communication requests via a telephony platform
CN111641690B (en) Session message processing method and device and electronic equipment
CN111552663A (en) File consistency verification method and device, computer equipment and storage medium
CN110737861A (en) webpage data processing method, device, equipment and storage medium
WO2023066258A1 (en) Data processing method and apparatus for private data, computer device and medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN111488286B (en) Method and device for independently developing Android modules

Legal Events

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