Access method and device for cloud network additional storage, equipment, medium and product
Through the access method of cloud network additional storage, the cloud gateway is used to connect with terminal gateway and cloud network additional storage, which solves the problems of limited storage capacity in the terminal and complex configuration of local network additional storage, and realizes the expansion and simplification of storage capacity. Provides a hard drive-like operating experience.
Patent Information
- Application Number
- CN202411418979.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-01-10
AI Technical Summary
The prior art cannot meet the storage needs of users, the storage capacity in the terminal is limited and not suitable for expansion, and the local network additional storage configuration is complex and the usage threshold is high, which cannot meet the actual needs of users.
Through the access method of cloud network additional storage, cloud gateways are used to connect with terminal gateways and cloud network additional storage, access traffic is processed based on preset forwarding rules, user isolation is realized and read and write operations are performed, and efficient data storage and download experience is provided.
It achieves the expansion of storage capacity and simplification of configuration, provides a hard disk-like operating experience, meets the actual needs of users, and solves the limitations of local storage through cloud storage.
Smart Images

Figure CN119299474A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a method, device, equipment, medium and product for accessing cloud network attached storage. Background Art
[0002] Currently, digital assets have become important wealth. With the development of smart homes, high-definition videos, and new media services for universal information, the number of terminal video works has increased, and the amount of storage data required by individual and home users has increased dramatically.
[0003] Currently, common user data storage methods include in-terminal storage and local network attached storage. However, the storage capacity of in-terminal storage is limited and not easy to expand. Local network attached storage is a professional device with complex configuration and high threshold for use. Both of the above solutions cannot meet the actual needs of users. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment, medium and product for accessing cloud network attached storage, which can increase storage capacity and simplify configuration to meet the actual usage needs of users.
[0005] On the one hand, an embodiment of the present application provides a method for accessing a cloud network attached storage, which is applied to a cloud gateway, wherein the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively; the method comprises:
[0006] Receiving access traffic generated and sent by the terminal gateway for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one;
[0007] Based on a preset forwarding rule, the access traffic is sent to the cloud network attached storage; so that the cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result;
[0008] Receiving the execution result returned by the cloud network attached storage;
[0009] The execution result is sent to the terminal gateway.
[0010] On the other hand, the identity includes QinQ information;
[0011] The step of sending the access traffic to the cloud network attached storage based on a preset forwarding rule includes:
[0012] Obtaining the QinQ information in the access traffic;
[0013] In a case where the QinQ information indicates that the terminal gateway has opened a cloud network attached storage service, the access traffic is sent to the cloud network attached storage.
[0014] On the other hand, the QinQ information corresponds to the source address one by one;
[0015] After obtaining the QinQ information in the access traffic, the method further includes:
[0016] Convert the QinQ information into the corresponding source address;
[0017] The sending the access traffic to the cloud network attached storage includes:
[0018] The access traffic including the source address is sent to the cloud-based network-attached storage, so that the cloud-based network-attached storage matches a corresponding storage location based on the source address.
[0019] On the other hand, the cloud gateway includes: an access gateway and a plurality of service gateways; the access gateway is connected to each of the service gateways via a corresponding first virtual extended local area network;
[0020] The access gateway is also connected to the terminal gateway and the Internet respectively, and the service gateway includes a cloud network attached storage service gateway and a green Internet access service gateway;
[0021] The receiving access traffic generated and sent by the terminal gateway and directed to the cloud network attached storage includes:
[0022] Receiving the access traffic sent by the terminal gateway through the access gateway;
[0023] Correspondingly, sending the access traffic to the cloud network attached storage based on the preset forwarding rule includes:
[0024] forwarding the access traffic from the access gateway to the cloud network attached storage service gateway via the first virtual extended local area network;
[0025] The access traffic is sent to the cloud-based network-attached storage through the cloud-based network-attached storage service gateway.
[0026] On the other hand, the cloud gateway is connected to the terminal gateway via an optical line terminal, and the terminal gateway is connected to the optical line terminal via a second virtual extended local area network;
[0027] The receiving access traffic generated and sent by the terminal gateway and directed to the cloud network attached storage includes:
[0028] The access traffic forwarded by the optical line terminal is received; and the terminal gateway generates the access traffic and sends it to the optical line terminal.
[0029] On the other hand, before receiving the access traffic generated and sent by the terminal gateway and directed to the cloud network attached storage, the method further includes:
[0030] Receiving a request for activating the cloud network attached storage service sent by the terminal gateway;
[0031] The activation request is sent to the cloud network attached storage.
[0032] On the other hand, an embodiment of the present application provides a method for accessing a cloud network attached storage, which is applied to a terminal gateway, the terminal gateway is connected to a cloud gateway, and the cloud gateway is connected to the cloud network attached storage; the method includes:
[0033] Based on the access requirements, generating access traffic for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one;
[0034] The access traffic is sent to the cloud gateway, so that the cloud gateway forwards the access traffic to the cloud network attached storage based on a preset forwarding rule; the cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result;
[0035] Receive the execution result returned by the cloud network attached storage through the cloud gateway.
[0036] On the other hand, an embodiment of the present application provides a method for accessing a cloud network attached storage, which is applied to a cloud network attached storage, wherein the cloud network attached storage is connected to a cloud gateway, and the cloud gateway is connected to the terminal gateway; the method comprises:
[0037] Receiving access traffic sent by the cloud gateway based on a preset forwarding rule; the access traffic is generated by the terminal gateway and sent to the cloud gateway, and the access traffic includes an identity identifier corresponding to the terminal gateway one by one;
[0038] Based on the identity in the access traffic, performing a read operation and / or a write operation on a corresponding storage location to obtain an execution result;
[0039] The execution result is returned to the terminal gateway through the cloud gateway.
[0040] On the other hand, an embodiment of the present application provides a cloud network attached storage access device, which is applied to a cloud gateway, and the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively; the device includes:
[0041] A first receiving module is used to receive access traffic generated and sent by the terminal gateway for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one;
[0042] A first sending module is used to send the access traffic to the cloud network attached storage based on a preset forwarding rule, so that the cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result;
[0043] A second receiving module, used for receiving the execution result returned by the cloud network attached storage;
[0044] The second sending module is used to send the execution result to the terminal gateway.
[0045] In yet another aspect, an embodiment of the present application provides a cloud network attached storage access device, the device comprising: a processor and a memory storing computer program instructions;
[0046] When the processor executes the computer program instructions, the cloud network attached storage access method as described above is implemented.
[0047] On the other hand, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the cloud network attached storage access method described above is implemented.
[0048] On the other hand, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the above-mentioned method for accessing cloud network attached storage.
[0049] A method for accessing a cloud network attached storage in an embodiment of the present application is applied to a cloud gateway, and the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively. The cloud gateway first receives the access traffic for the cloud network attached storage generated and sent by the user through the terminal gateway, and then sends the access traffic to the cloud network attached storage based on a preset forwarding rule. The access traffic includes an identity identifier corresponding to the terminal gateway one by one; the cloud network attached storage can perform a read operation and / or a write operation on the corresponding storage location based on the identity identifier in the access traffic to obtain an execution result. Different users correspond to different storage locations, and user isolation is achieved. Then, the cloud gateway receives the execution result returned by the cloud network attached storage, and finally sends the execution result to the terminal gateway, so as to achieve fast data upload and download, create the effect of a home local area network, and enable users to obtain an operation experience similar to a hard disk. The present application adopts a cloud network attached storage, which has a large storage capacity and is easy to expand, and does not require additional local equipment, and has a simple configuration, which can meet the actual needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0051] Figure 1 A schematic diagram of a process flow of an access method applied to a cloud gateway provided by an embodiment of the present application is shown;
[0052] Figure 2 A schematic diagram of a network system architecture provided by an embodiment of the present application is shown;
[0053] Figure 3 A schematic diagram of a process flow of an access method applied to a terminal gateway provided by an embodiment of the present application is shown;
[0054] Figure 4 A schematic diagram of a process flow of an access method applied to a cloud network attached storage provided by an embodiment of the present application is shown;
[0055] Figure 5 A schematic diagram of the structure of an access device applied to a cloud gateway provided in an embodiment of the present application is shown;
[0056] Figure 6 A schematic diagram of the structure of an access device applied to a terminal gateway provided in an embodiment of the present application is shown;
[0057] Figure 7 A schematic diagram of the structure of an access device applied to a cloud network attached storage provided in an embodiment of the present application is shown;
[0058] Figure 8 A schematic diagram of the hardware structure of a cloud network attached storage access device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0059] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "include..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0061] In order to solve the problems of the traditional solution, the embodiments of the present application provide a method, device, equipment, medium and product for accessing a cloud network attached storage. The following first introduces the method for accessing a cloud network attached storage provided by the embodiments of the present application. The method is applied to a cloud gateway, and the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively. Figure 1 A schematic diagram of a process for accessing a cloud network attached storage provided by an embodiment of the present application is shown; Figure 1 As shown, the method comprises the following steps:
[0062] S101: receiving access traffic generated and sent by a terminal gateway for a cloud network attached storage.
[0063] The access traffic is generated and sent by the terminal gateway to access the cloud network attached storage, so that the user corresponding to the terminal gateway can use the cloud network attached storage to save data. Because multiple users share a cloud network attached storage, user isolation is required, and different users use different storage locations to save their own data. Therefore, the access traffic includes an identity identifier that corresponds to the terminal gateway one by one, which is used to distinguish different terminal gateways, that is, to achieve user isolation.
[0064] Normally, users need to submit a request for the cloud network attached storage service in advance and save their own identity information in the cloud gateway and cloud network attached storage, and then they can use the storage service by issuing access traffic.
[0065] S102: Based on a preset forwarding rule, the access traffic is sent to the cloud network attached storage.
[0066] In actual applications, the role of the cloud gateway is not only to serve as a transit node for cloud network attached storage access traffic, but also to forward Internet traffic, etc. Therefore, after receiving a flow, the cloud gateway will determine whether the flow is the access traffic of the cloud network attached storage, and only forward it to the cloud network attached storage if it receives the access traffic.
[0067] The specific preset forwarding rule can be to determine where to forward the traffic by determining the destination Internet Protocol (IP) address of the traffic. After receiving the access traffic, the cloud gateway determines that the corresponding destination IP is the service IP of the cloud network attached storage, and then forwards the access traffic to the cloud network attached storage.
[0068] In addition, the cloud gateway will identify the identity in the access traffic and send the access traffic to the cloud network attached storage only after confirming that the identity is valid.
[0069] S103: Receive the execution result returned by the cloud network attached storage.
[0070] The cloud network attached storage will find the storage location of the user corresponding to the identity identifier based on the access traffic, and then perform a read operation and / or a write operation on the storage location to obtain an execution result. In the case of a read operation, the execution result is the read data, and in the case of a write operation, the execution result is an indicator of whether the write operation is successful.
[0071] S104: Send the execution result to the terminal gateway.
[0072] After executing the action and obtaining the execution result, the cloud network attached storage returns the execution result to the cloud gateway, and the cloud gateway then sends the execution result to the corresponding terminal gateway. At this point, an access is completed.
[0073] Network attached storage is a device that is connected to the network and has storage functions. It does not need to be connected to a specific computer and exists independently on the network. It supports users to switch operations between multiple terminals that support sharing protocols, such as mobile phones, computers, and TVs. Traditional local network attached storage is a professional device with complex configuration and high threshold for use.
[0074] Therefore, the embodiment of the present application proposes an idea of cloud network attached storage, which is illustrated here with a specific example. The terminal gateway completes the photoelectric conversion, and the cloud gateway is responsible for the virtualization of the hardware gateway function to the cloud. User dial-up, downstream terminal management, and Internet traffic scheduling will all be completed in the cloud gateway. User access network traffic is accessed through the terminal gateway and upstream to the cloud gateway. The cloud gateway completes the Point-to-Point Protocol Over Ethernet (PPPoE) dial-up authentication on Ethernet and forwards the user's Internet access traffic to Internet access. For traffic accessing the edge cloud (such as cloud network attached storage), the cloud gateway will forward it to the designated edge cloud service according to the forwarding strategy. This networking solution extends all computing power to edge cloud processing and can be expanded as needed. It is no longer limited by the computing power bottleneck of the physical gateway hardware, and provides customers with rich value-added services. At the same time, the rate at which users access edge services is not limited by the contracted bandwidth, and directly reaches the network technology peak of the passive optical network, enabling edge cloud applications to experience a home LAN.
[0075] This solution fully considers the existing networking conditions and network equipment. For the existing home smart terminal gateway, the Remote Management System (RMS) sends configuration to the terminal gateway to enable PPPoE dial-up. A new Wide Area Network (WAN) can be created to connect the terminal gateway to the cloud gateway and forward user traffic to the new WAN connection. For new users, a white box gateway can also be deployed directly on the user side. The white box gateway will simplify the hardware functions and only needs to complete the photoelectric conversion, which can greatly reduce the hardware cost.
[0076] Figure 2 FIG. 1 shows a schematic diagram of a network system architecture provided by an embodiment of the present application. It should be noted that: Figure 2 The solution shown is only one of the implementation solutions of the present application and does not limit other solutions of the present application. Figure 2As shown, it includes a white box gateway 201, a cloud gateway 202, a cloud network attached storage 203, a broadband access server 204 and the Internet 205. The white box gateway 201 is connected to the cloud gateway 202 through an optical network, and cloud-to-cloud communication is achieved between the cloud gateway 202 and the cloud network attached storage 203. The cloud gateway 202 is also connected to the broadband access server 204 through PPPoE, and then connected to the Internet 205.
[0077] A method for accessing a cloud network attached storage in an embodiment of the present application is applied to a cloud gateway, and the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively. The cloud gateway first receives the access traffic for the cloud network attached storage generated and sent by the user through the terminal gateway, and then sends the access traffic to the cloud network attached storage based on a preset forwarding rule. The access traffic includes an identity identifier corresponding to the terminal gateway one by one; the cloud network attached storage can perform a read operation and / or a write operation on the corresponding storage location based on the identity identifier in the access traffic to obtain an execution result. Different users correspond to different storage locations, and user isolation is achieved. Then, the cloud gateway receives the execution result returned by the cloud network attached storage, and finally sends the execution result to the terminal gateway, so as to achieve fast data upload and download, create the effect of a home local area network, and enable users to obtain an operation experience similar to a hard disk. The present application adopts a cloud network attached storage, which has a large storage capacity and is easy to expand, and does not require additional local equipment, and has a simple configuration, which can meet the actual needs of users.
[0078] In the scheme of the application embodiment, the cloud network attached storage is deployed in Multi-Access Edge Computing (MEC), and the cloud gateway directly transfers the traffic of users accessing the cloud network attached storage to the cloud network attached storage center. The home network attached storage cloud storage solution based on the cloud gateway architecture utilizes edge cloud resources, based on home optical broadband, aggregates home data, devices and content, and combines the characteristics of cloud gateway intranet extension dual-speed network and cloud security to provide home users with more efficient, secure and convenient home storage services.
[0079] In the specific implementation, the cloud gateway includes an access gateway and multiple service gateways; the access gateway is connected to each service gateway through the corresponding first virtual extended LAN; the access gateway is also connected to the terminal gateway and the Internet respectively, and the service gateway includes a cloud network attached storage service gateway and a green Internet access service gateway.
[0080] Therefore, the cloud gateway specifically receives the access traffic sent by the terminal gateway through the access gateway; then forwards the access traffic from the access gateway to the cloud network attached storage service gateway through the first virtual extended LAN; finally, sends the access traffic to the cloud network attached storage through the cloud network attached storage service gateway.
[0081] In the embodiment of the present application, the cloud gateway includes two components: an access gateway and a service gateway. The access gateway is responsible for accessing the user traffic transferred in through the virtual extended LAN of the optical line terminal and transferring the traffic to the Internet or the service gateway according to the rules; the service gateway is responsible for connecting to different services, such as network attached storage, green Internet access, etc., and transferring the service traffic transferred in by the access gateway to the corresponding service server. One service gateway carries one service, and one access gateway can connect to multiple different service gateways. For example, access gateway A is connected to service gateways B1 and B2, B1 carries the network attached storage service, and B2 carries the green Internet access service.
[0082] The access gateway and the service gateway are directly connected through the virtual extended LAN. Different virtual extended LAN tunnels are bound to different types of service gateways. For example, there is a virtual extended LAN tunnel C1 between A and B1, and a virtual extended LAN tunnel C2 between A and B2. Access gateway A only needs to transfer the traffic accessing the network attached storage to the virtual extended LAN tunnel C1. The access gateway configures the preset forwarding rules based on MEC-IP to forward the specified traffic. The preset forwarding rules mainly include the destination IP and service type information. For example, the service IP of the service type network attached storage is the destination IP. The access gateway matches the virtual extended LAN tunnel according to the service type in the preset forwarding rule, and binds the preset forwarding rule to the specified virtual extended LAN. For example, if the IP address of the cloud network attached storage service is 10.10.10.10, the access gateway will configure the preset forwarding rules of MEC-IP, where the service type is network attached storage and the destination IP is 10.10.10.10. The access gateway A will bind the preset forwarding rule to the virtual extended LAN tunnel C1, and the tunnel will be responsible for forwarding the traffic for accessing the network attached storage to the service gateway B1.
[0083] The cloud gateway is configured with preset forwarding rules based on MEC-IP. After the home terminal (such as home computer, mobile phone and TV) automatically discovers the cloud network attached storage center, when it needs to access the cloud network attached storage, the access gateway will identify the destination IP of the access and forward the traffic to the designated business gateway according to the preset forwarding rules. The business gateway forwards the traffic to the cloud network attached storage service according to the route, which takes a different path from the user's normal Internet traffic, creating the effect of a home LAN and realizing fast data upload and download functions.
[0084] In an embodiment of the present application, the cloud gateway includes an access gateway and multiple service gateways. The access gateway can forward the traffic of the terminal gateway to different objects through different channels, thereby achieving Internet access and access to cloud network attached storage through one cloud gateway at the same time.
[0085] In order to ensure data security, home users can only access their own storage space based on their own accounts. If there is no binding between the account and the link, as long as the home network that has activated the cloud network attached storage service can access the network attached storage service, there will be a problem. If user A can log in to user A's account at user B's home, he can access user A's stored data, which obviously poses a security risk. Therefore, this solution needs to solve the one-to-one binding relationship between the cloud network attached storage account and the home broadband account. User A can only log in to user A's network attached storage account at home to access user A's stored data.
[0086] The above embodiment does not limit the specific content of the identity in the access traffic. This embodiment provides a specific solution, and the identity is specifically QinQ information; QinQ information, namely 802.1Q-in-802.1Q, adds another layer of 802.1Q tag on the basis of the original 802.1Q message.
[0087] Based on the preset forwarding rules, the access traffic is sent to the cloud network attached storage, including: obtaining QinQ information in the access traffic, and sending the access traffic to the cloud network attached storage when the QinQ information indicates that the terminal gateway has opened the cloud network attached storage service.
[0088] In order to isolate users, this solution uses QinQ as a unique identity to isolate users. After a user activates the cloud network attached storage service, the user's QinQ information will be bound to the forwarding rules of the MEC-IP. After the user's access to the network attached storage traffic passes through the access gateway, the access gateway parses the traffic packet to identify the user's QinQ information and the destination IP for access. If the user has activated the network attached storage service, the QinQ information will match the MEC-IP forwarding rule with the service type of cloud network attached storage and the destination IP of 10.10.10.10. It will also match the virtual extended LAN tunnel C1, and forward the user's access to the network attached storage traffic to the tunnel C1 so that it can be received by the service gateway B1.
[0089] The embodiment of the present application uses the QinQ information in the access traffic as the identity identifier of different terminal gateways, so as to distinguish different users and ensure the security of user data.
[0090] As mentioned above, using QinQ information as the identity of the terminal gateway, the service gateway can distinguish users based on the QinQ information in the traffic message, but when forwarding to the network attached storage service, the QinQ information in the message header needs to be stripped. Therefore, for the service side, in order to better distinguish users, the service gateway needs to perform network address translation (NAT) after forwarding the traffic to obtain the Nat IP (source address).
[0091] Specifically, the QinQ information is matched with the source address in advance; after obtaining the QinQ information in the access traffic, the QinQ information is converted into the corresponding source address; correspondingly, the cloud gateway will send the access traffic containing the source address to the cloud network attached storage, so that the cloud network attached storage can match the corresponding storage location based on the source address.
[0092] In order to ensure the data security of the home broadband account, the cloud gateway will not directly transmit the home broadband account to the cloud network attached storage service. The cloud gateway is based on the Nat IP binding home broadband account for user isolation. The cloud gateway will assign a Nat IP to each home broadband account that has been opened through the cloud network attached storage, and synchronize the IP to the cloud network attached storage service and bind it to the account of the cloud network attached storage service. When the user accesses the network attached storage service, access is allowed only when the account of the network attached storage service is consistent with the Nat IP, thereby ensuring the security of home data.
[0093] Different users' QinQ information will be bound to different source addresses (NAT IP), and the service gateway will convert different QinQ information into different source addresses when doing NAT. Cloud network attached storage will also match user information according to the source address to ensure data security.
[0094] Since most terminal gateways do not support virtual extended LAN configuration, terminal modification is required and it cannot be implemented quickly. In addition, the newly installed plug-in runs on the gateway's operating system, and now the home gateway already has a variety of plug-ins running, and the remaining computing power is limited, so there is no condition to add new plug-ins.
[0095] In the face of existing industry pain points and the growing demand for home storage, new solutions are needed, especially for the problems in cloud-based network-attached storage solutions that virtually extend the local area network from the terminal gateway. The new solution should not only enable home terminals to access network-attached storage services, but also ensure that the changes to the existing home network (especially home terminals) are minimal, so as to achieve rapid implementation.
[0096] Therefore, the embodiment of the present application proposes a solution, where the cloud gateway is connected to the terminal gateway via an optical line terminal, and the terminal gateway is connected to the optical line terminal via a second virtual extended local area network. The terminal gateway generates access traffic and sends it to the optical line terminal, and the cloud gateway receives the access traffic forwarded by the optical line terminal.
[0097] The embodiment of the present application deploys a terminal gateway on the user side, which can be done by modifying the existing home smart terminal gateway configuration or directly installing a new white box gateway to support the cloud gateway mode. User traffic passes through the terminal gateway to the optical line terminal, and a virtual extended LAN tunnel is created in the optical line terminal to import traffic to the access gateway.
[0098] This solution is based on the existing terminal gateway functions and does not require terminal modification, which can achieve rapid expansion and implementation of network attached storage services. This solution deploys cloud gateways and network attached storage service centers in the home edge cloud resource pool; old users can implement PPPoE, NAT, value-added service plug-ins and other functions in the cloud gateway by configuring and modifying the terminal gateway working mode, while new users can implement them through the white box gateway. The terminal gateway functions are greatly streamlined, and the service is no longer restricted by hardware interfaces and systems. User traffic goes directly to the cloud gateway after passing through the terminal gateway. The cloud gateway will forward the access traffic of the cloud network attached storage to the network attached storage service center according to the forwarding rules of MEC-IP, thereby providing home users with more efficient, secure and convenient home storage services.
[0099] Because most of the current home terminal gateways do not have the function of virtual extended LAN, they can only be installed in a new way, which will increase the construction cost. However, the embodiment of the present application uses an optical line terminal network device to create a virtual extended LAN. The optical line terminal network device supports the function of virtual extended LAN. Only new configuration is required, which will not increase the construction cost. In addition, only part of the traffic is uploaded to the cloud in the terminal side diversion of the terminal gateway, which is not conducive to centralized management for operators. However, this embodiment is more conducive to centralized management through optical line terminal diversion.
[0100] In addition, before using the cloud network attached storage service, the user needs to activate the service first. After the cloud gateway receives the cloud network attached storage service activation request sent by the terminal gateway, it sends the activation request to the cloud network attached storage.
[0101] This embodiment provides a specific example. Samba runs on the TCP / IP communication protocol. Using Samba allows the network attached storage service to be seen in the Windows Network Neighborhood at the user's home, which is the process of service self-discovery. In order to achieve Samba service self-discovery, the cloud gateway will first configure the network attached storage service and forward the network attached storage service discovery request to the corresponding cloud network attached storage center based on the port, such as Samba's listening ports 139 and 445. It can be seen that in order to achieve service self-discovery, the network attached storage service discovery request is forwarded to the corresponding cloud network attached storage center based on the port protocol forwarding rule in this solution.
[0102] In order to solve the above technical problems, the embodiment of the present application also provides a method for accessing a cloud network attached storage, which is applied to a terminal gateway, the terminal gateway is connected to a cloud gateway, and the cloud gateway is connected to the cloud network attached storage; Figure 3 FIG. 1 is a flow chart of an access method applied to a terminal gateway provided by an embodiment of the present application. Figure 3 As shown, the method comprises the following steps:
[0103] S301: Generate access traffic for cloud network attached storage based on access requirements.
[0104] The access traffic includes an identity tag that corresponds one-to-one with the terminal gateway;
[0105] S302: Send the access traffic to the cloud gateway, so that the cloud gateway forwards the access traffic to the cloud network attached storage based on a preset forwarding rule.
[0106] The cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result;
[0107] S303: Receive the execution result returned by the cloud network attached storage through the cloud gateway.
[0108] In order to solve the above technical problems, the embodiment of the present application also provides a method for accessing a cloud network attached storage, which is applied to the cloud network attached storage, the cloud network attached storage is connected to a cloud gateway, and the cloud gateway is connected to a terminal gateway; Figure 4 A schematic diagram of a process flow of a method for accessing a cloud network attached storage provided by an embodiment of the present application is shown. Figure 4 As shown, the method comprises the following steps:
[0109] S401: Receive access traffic sent by the cloud gateway based on preset forwarding rules.
[0110] The access traffic is generated by the terminal gateway and sent to the cloud gateway. The access traffic includes an identity that corresponds one-to-one with the terminal gateway.
[0111] S402: Based on the identity in the access traffic, perform a read operation and / or a write operation on a corresponding storage location to obtain an execution result.
[0112] S403: Return the execution result to the terminal gateway through the cloud gateway.
[0113] In order to solve the above technical problems, the embodiment of the present application also provides a cloud network attached storage access device, which is applied to a cloud gateway, and the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively; Figure 5 The schematic diagram of the structure of the access device applied to the cloud gateway provided by the embodiment of the present application is shown. Figure 5 As shown, the device includes the following modules:
[0114] The first receiving module 501 is used to receive access traffic generated and sent by the terminal gateway for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one;
[0115] The first sending module 502 is used to send the access traffic to the cloud network attached storage based on a preset forwarding rule, so that the cloud network attached storage performs a read operation and / or a write operation on the corresponding storage location based on the identity in the access traffic to obtain an execution result;
[0116] The second receiving module 503 is used to receive the execution result returned by the cloud network attached storage;
[0117] The second sending module 504 is used to send the execution result to the terminal gateway.
[0118] In some embodiments, the identity includes QinQ information;
[0119] The first sending module 502 is specifically configured to:
[0120] Obtain QinQ information in access traffic;
[0121] When the QinQ information indicates that the terminal gateway has opened the cloud network attached storage service, the access traffic is sent to the cloud network attached storage.
[0122] In some embodiments, the QinQ information corresponds to the source address one by one; the source address is obtained by NAT operation;
[0123] The access device for the cloud network attached storage further includes: a conversion module, which is used to convert the QinQ information into a corresponding source address after obtaining the QinQ information in the access traffic;
[0124] The first sending module 502 is specifically used to send the access traffic containing the source address to the cloud network attached storage, so that the cloud network attached storage matches the corresponding storage location based on the source address.
[0125] In some embodiments, the cloud gateway includes: an access gateway and a plurality of service gateways; the access gateway is connected to each service gateway via a corresponding first virtual extended local area network;
[0126] The access gateway is also connected to the terminal gateway and the Internet respectively. The service gateway includes the cloud network attached storage service gateway and the green Internet access service gateway;
[0127] The first receiving module 501 is specifically configured to receive access traffic sent by a terminal gateway through an access gateway;
[0128] The first sending module 502 is specifically configured to:
[0129] forwarding access traffic from the access gateway to the cloud network attached storage service gateway via the first virtual extended local area network;
[0130] The access traffic is sent to the cloud-based network-attached storage through the cloud-based network-attached storage service gateway.
[0131] In some embodiments, the cloud gateway is connected to the terminal gateway via an optical line terminal, and the terminal gateway is connected to the optical line terminal via a second virtual extended local area network;
[0132] The first receiving module 501 is specifically configured to receive access traffic forwarded by the optical line terminal; the terminal gateway generates access traffic and sends it to the optical line terminal.
[0133] In some embodiments, the first receiving module 501 is further configured to receive a request for opening a cloud network attached storage service sent by the terminal gateway before receiving access traffic generated and sent by the terminal gateway for the cloud network attached storage;
[0134] The first sending module 502 is further configured to send the activation request to the cloud network attached storage.
[0135] The access device for cloud network attached storage provided in the embodiment of the present application is applied to a cloud gateway and is the same as the method in the above embodiment. Therefore, the two have the same embodiments and beneficial effects, which will not be repeated here.
[0136] In order to solve the above technical problems, the embodiment of the present application also provides a cloud network attached storage access device, which is applied to a terminal gateway. Figure 6 FIG. 1 shows a schematic diagram of the structure of an access device applied to a terminal gateway provided in an embodiment of the present application. Figure 6 As shown, the device includes the following modules:
[0137] The generating module 601 is used to generate access traffic for the cloud network attached storage based on the access demand; the access traffic includes an identity identifier corresponding to the terminal gateway one by one;
[0138] The third sending module 602 is used to send the access traffic to the cloud gateway, so that the cloud gateway forwards the access traffic to the cloud network attached storage based on a preset forwarding rule.
[0139] The cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain the execution result.
[0140] The third receiving module 603 is used to receive the execution result returned by the cloud network attached storage through the cloud gateway.
[0141] The access device for cloud network attached storage provided in the embodiment of the present application is applied to the terminal gateway and is the same as the method in the above embodiment. Therefore, the two have the same embodiments and beneficial effects, which will not be repeated here.
[0142] In order to solve the above technical problems, the embodiment of the present application further provides a cloud network attached storage access device, which is applied to the cloud network attached storage. Figure 7 The schematic diagram of the structure of the access device applied to the cloud network attached storage provided by the embodiment of the present application is shown. Figure 7 As shown, the device includes the following modules:
[0143] The fourth receiving module 701 is used to receive access traffic sent by the cloud gateway based on a preset forwarding rule.
[0144] The access traffic is generated by the terminal gateway and sent to the cloud gateway. The access traffic includes an identity that corresponds one-to-one with the terminal gateway.
[0145] The execution module 702 is used to perform a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result.
[0146] The fourth sending module 703 is used to return the execution result to the terminal gateway through the cloud gateway.
[0147] The cloud network attached storage access device provided in the embodiment of the present application is applied to the cloud network attached storage and is the same as the method in the above embodiment. Therefore, the two have the same embodiments and beneficial effects, which will not be repeated here.
[0148] Figure 8 The hardware structure diagram of the access device of the cloud network attached storage provided by the embodiment of the present application is shown. Figure 8As shown, the cloud network attached storage access device may include a processor 801 and a memory 802 storing computer program instructions.
[0149] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0150] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.
[0151] The memory 802 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0152] The processor 801 implements any one of the cloud network attached storage access methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .
[0153] In one example, the cloud network attached storage access device may further include a communication interface 803 and a bus 804. The processor 801, the memory 802, and the communication interface 803 are connected via the bus 804 and communicate with each other.
[0154] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0155] The bus 804 includes hardware, software or both, coupling the components of the access device of the cloud network attached storage to each other. By way of example and not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus 804 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application considers any suitable bus or interconnect.
[0156] In addition, in combination with the cloud network attached storage access method in the above embodiment, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the cloud network attached storage access methods in the above embodiment is implemented.
[0157] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed, implements any one of the cloud network attached storage access methods in the above embodiments.
[0158] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0159] The functional blocks shown in the block diagram above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0160] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0161] The above describes various aspects of the present disclosure with reference to the flowcharts and / or block diagrams of a method, device, equipment, medium and product for accessing cloud network attached storage according to an embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0162] The above contents are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application.
Claims
1. A method for accessing cloud network attached storage, characterized in that: Applied to a cloud gateway, the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively; the method comprises: Receiving access traffic generated and sent by the terminal gateway for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one; Based on a preset forwarding rule, the access traffic is sent to the cloud network attached storage; so that the cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result; Receiving the execution result returned by the cloud network attached storage; The execution result is sent to the terminal gateway.
2. The method for accessing cloud network attached storage according to claim 1, characterized in that: The identity includes QinQ information; The step of sending the access traffic to the cloud network attached storage based on a preset forwarding rule includes: Obtaining the QinQ information in the access traffic; In a case where the QinQ information indicates that the terminal gateway has opened a cloud network attached storage service, the access traffic is sent to the cloud network attached storage.
3. The method for accessing cloud network attached storage according to claim 2, characterized in that: The QinQ information corresponds to the source address one by one; After obtaining the QinQ information in the access traffic, the method further includes: Convert the QinQ information into the corresponding source address; The sending the access traffic to the cloud network attached storage includes: The access traffic including the source address is sent to the cloud-based network-attached storage, so that the cloud-based network-attached storage matches a corresponding storage location based on the source address.
4. The method for accessing a cloud network attached storage according to any one of claims 1 to 3, characterized in that: The cloud gateway includes: an access gateway and a plurality of service gateways; the access gateway is connected to each of the service gateways via a corresponding first virtual extended local area network; The access gateway is also connected to the terminal gateway and the Internet respectively, and the service gateway includes a cloud network attached storage service gateway and a green Internet access service gateway; The receiving access traffic generated and sent by the terminal gateway and directed to the cloud network attached storage includes: Receiving the access traffic sent by the terminal gateway through the access gateway; Correspondingly, sending the access traffic to the cloud network attached storage based on the preset forwarding rule includes: forwarding the access traffic from the access gateway to the cloud network attached storage service gateway via the first virtual extended local area network; The access traffic is sent to the cloud-based network-attached storage through the cloud-based network-attached storage service gateway.
5. The method for accessing cloud network attached storage according to claim 4, characterized in that: The cloud gateway is connected to the terminal gateway via an optical line terminal, and the terminal gateway is connected to the optical line terminal via a second virtual extended local area network; The receiving access traffic generated and sent by the terminal gateway and directed to the cloud network attached storage includes: receiving the access traffic forwarded by the optical line terminal; The terminal gateway generates the access traffic and sends it to the optical line terminal.
6. The method for accessing cloud network attached storage according to claim 1, characterized in that: Before receiving the access traffic generated and sent by the terminal gateway and directed to the cloud network attached storage, the method further includes: Receiving a request for opening a cloud network attached storage service sent by the terminal gateway; The activation request is sent to the cloud network attached storage.
7. A method for accessing cloud network attached storage, characterized in that: Applied to a terminal gateway, the terminal gateway is connected to a cloud gateway, and the cloud gateway is connected to a cloud network attached storage; the method comprises: Based on the access requirements, generating access traffic for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one; The access traffic is sent to the cloud gateway, so that the cloud gateway forwards the access traffic to the cloud network attached storage based on a preset forwarding rule; the cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result; Receive the execution result returned by the cloud network attached storage through the cloud gateway.
8. A method for accessing cloud network attached storage, characterized in that: Applied to cloud network attached storage, the cloud network attached storage is connected to a cloud gateway, and the cloud gateway is connected to a terminal gateway; the method comprises: Receiving access traffic sent by the cloud gateway based on a preset forwarding rule; the access traffic is generated by the terminal gateway and sent to the cloud gateway, and the access traffic includes an identity identifier corresponding to the terminal gateway one by one; Based on the identity in the access traffic, performing a read operation and / or a write operation on a corresponding storage location to obtain an execution result; The execution result is returned to the terminal gateway through the cloud gateway.
9. A cloud network attached storage access device, characterized in that: Applied to a cloud gateway, the cloud gateway is connected to a terminal gateway and a cloud network attached storage respectively; the device comprises: A first receiving module is used to receive access traffic generated and sent by the terminal gateway for the cloud network attached storage; the access traffic includes an identity identifier corresponding to the terminal gateway one by one; A first sending module is used to send the access traffic to the cloud network attached storage based on a preset forwarding rule, so that the cloud network attached storage performs a read operation and / or a write operation on a corresponding storage location based on the identity in the access traffic to obtain an execution result; A second receiving module, used for receiving the execution result returned by the cloud network attached storage; The second sending module is used to send the execution result to the terminal gateway.
10. A cloud network attached storage access device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for accessing the cloud network attached storage as described in any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for accessing the cloud network attached storage as claimed in any one of claims 1 to 8 is implemented.
12. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the cloud network attached storage access method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Tenant isolation method, network virtual switching system and storage medium
CN114422283A
Government and enterprise business access method and system
CN114760294A
NAS service system, implementation method, electronic equipment and storage medium
CN115174603A
Method and device for providing secure access to cloud service, and medium
CN115189900A
Edge cloud gateway system
CN115987719A