NAS (Network Attached Storage) data gateway system, device and method
Through the IPv4/IPv6 dual-stack communication system of the central gateway and edge gateway, the multi-location access and security conflicts of the NAS server in the local area network are solved, and NAS file sharing and secure access of users in multiple locations are realized, using double encryption and network links. Ensure the security of NAS servers.
Patent Information
- Application Number
- CN202310275308.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
When a NAS server provides file sharing services within a local area network, it is difficult to achieve access from multiple user computers. At the same time, security must be ensured to avoid illegal user access.
A data communication system composed of a central gateway and an edge gateway is used to establish a secure data bridge through IPv4 and IPv6 dual-stack communication, allowing user computers in multiple locations to access the NAS server, and dually protecting the NAS through encrypted data communication links and network links. Server security.
It realizes NAS file sharing reading and writing of user computers in multiple places, ensuring the security of NAS servers. Users only need to simply connect the edge gateway IPv4 address to access remote NAS servers. It supports multiple operating systems and multi-platform terminal devices. The central gateway and The edge gateway's double encryption and network links ensure the security of the NAS server.
Smart Images

Figure CN118694630A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of network communication technology and NAS network storage technology, and in particular to a NAS data gateway system, device and method. Background Art
[0002] NAS connects storage devices to an existing network to provide data and file services. NAS servers are generally composed of storage hardware, operating systems, and file systems on them. NAS directly connects to disk storage arrays through the network, and the magnetic array has the characteristics of high capacity, high performance, and high reliability. NAS connects storage devices through a standard network topology structure, and can directly access the Internet without a server. It does not rely on a general operating system, but uses a simplified operating system designed for users and specifically for data storage. It has built-in protocols required for network connection, making the management and setup of the entire system relatively simple. NAS solutions are usually configured as devices for file services, and files are accessed by workstations or servers through network protocols (such as TCP / IP) and applications (such as network file systems NFS or common Internet file systems CIFS). NAS itself can support a variety of TCP / IP-based extension protocols (such as SAMBA, NFS, CIFS, FTP, HTTP, etc.), and can support various operating systems. NAS devices can be intuitively and conveniently managed through a browser.
[0003] Gateway is also called network connector or protocol converter. The default gateway realizes network interconnection above the network layer. It is the most complex network interconnection device and is only used for interconnection between two networks with different high-level protocols. The structure of the gateway is similar to that of the router, except for the interconnection layer. The gateway can be used for both wide area network interconnection and local area network interconnection.
[0004] NAS servers are deployed inside the local area network and can be accessed and used by user computers in the local area network. NAS servers generally provide users with web services based on the http protocol, file sharing services based on the samba protocol, file upload and download services based on the ftp protocol, etc. These protocols are all services provided based on IP addresses. For security and economic considerations, NAS servers generally only have IP addresses within the local area network and cannot be connected by users in other local area networks to share data on the NAS, which brings about a contradiction between safe use and convenient use of NAS servers. If there is a network communication device that allows user computers in multiple local area networks to access NAS servers to achieve NAS file data sharing, and can prevent NAS servers from being accessed by illegal users to ensure their security, it will be a good solution to the pain point between convenient use and safe use. Summary of the invention
[0005] In view of the pain points of the above NAS applications, the goal of the present invention is to provide a NAS data gateway system, method, and device to solve the pain points mentioned in the above background technology. Through the NAS data gateway system of the present invention, a secure data bridge is built between the NAS server and the user on the Internet, which allows multi-user computers in multiple local area networks to access the NAS server for file sharing, reading and writing, and prevents the NAS server from being accessed by illegal users to ensure its security.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: a NAS data gateway system, a data communication system consisting of a central gateway device and one or more edge gateway devices.
[0007] The system comprises the following steps:
[0008] Step S1: The central gateway and the NAS server are in the same local area network, and the central gateway binds the NAS server IPv4 address to establish a data communication link.
[0009] Step S2: The edge gateway and the user computer are in the same local area network, and the user computer can connect to access the edge gateway IPv4 address.
[0010] Step S3: The edge gateway and the central gateway establish an IPv6 communication link to realize data exchange between the edge gateway and the central gateway.
[0011] Step S4: The data of the user computer connecting to access the IPv4 address of the edge gateway is automatically forwarded to the central gateway through the IPv6 communication link between the edge gateway and the central gateway.
[0012] Step S5: After receiving the edge gateway data, the central gateway parses and re-packages it, and automatically forwards the newly packaged data to the NAS server, so that the user computer can finally access the remote NAS server by accessing the local edge gateway IPv4 address.
[0013] Furthermore, the process of the communication method between the central gateway and the edge gateway includes:
[0014] Process 1: The central gateway and the edge gateway start IPv4 / IPv6 dual-stack communication and can send and receive IPv4 / IPv6 data packets at the same time.
[0015] Process 2: Bind the central gateway to the NAS server IPv4 address.
[0016] Process 3: The edge gateway connects to the central gateway IPv6 address and passes the central gateway identity authentication to establish an IPv6 data exchange communication link.
[0017] Process 4: The edge gateway starts the IPv4 address and listens to the same TCP / UDP port number as the NAS server, waiting for the user computer to connect and access.
[0018] Process 5: The edge gateway receives the data packet accessed by the user computer IPv4 connection, parses out the TCP / UDP protocol, port number, data payload, and re-encapsulates the data packet according to the TCP / UDP protocol + port number + data payload + checksum.
[0019] Process 6: The edge gateway forwards the encapsulated data packet to the central gateway via the IPv6 data link.
[0020] Process 7: The central gateway receives the IPv6 data packet sent by the edge gateway, determines whether the data is legal, parses the legal data packet, and obtains the TCP / UDP protocol, port number, and data payload of the user computer connecting to the edge gateway.
[0021] Process 8: The central gateway re-encapsulates the IPv4 data packet according to the TCP / UDP protocol, port number, and data payload of the user computer connecting to the edge gateway, and sends the data packet to the NAS server IPv4 address.
[0022] Process 9: The process of the NAS server sending data to the user's computer is consistent with the above process.
[0023] In summary, the advantages of the NAS data gateway system, device, and method of the present invention are that the edge gateway and central gateway devices are easy to install and use, and users can use them by simply making a simple network connection. The data communication of the user computer connecting to access the remote NAS server is automatically completed between the gateways. For the user, the gateway is a transparent device, and the user connects to access the edge gateway IPv4 address, which is equivalent to accessing the IPv4 address of the remote NAS server.
[0024] The central gateway can establish connections with multiple edge gateways. Each edge gateway can be accessed by multiple user computers, allowing multiple users in multiple locations to remotely access the NAS server and achieve data sharing. The NAS server supports multiple operating systems and multiple platforms, and can support access from multiple terminal devices through the gateway.
[0025] The central gateway and the edge gateway establish an encrypted data communication link through IPv6. The NAS service does not access other local area networks or the Internet, and cannot be connected by other users except the central gateway. The security of the NAS server is doubly guaranteed by the network link and its data encryption. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 The network connection topology diagram of the present invention
[0028] Figure 2 The communication method flow chart of the present invention is DETAILED DESCRIPTION
[0029] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the technical scheme in the specific implementation mode of the present invention is clearly and completely described below to further illustrate the present invention. Obviously, the specific implementation mode described is only a part of the implementation mode of the present invention, rather than all styles.
[0030] Please refer to Figure 1 As shown, the present invention provides a NAS data gateway system, device, and method, and its system embodiment includes: a user local area network A and a NAS local area network B.
[0031] The user local area network A includes a user computer A-1, a user network A-2, an edge gateway A-4, an edge gateway IPv4 address A-3, and an edge gateway IPv6 address A-5.
[0032] The NAS local area network B includes a NAS server B-1, a NAS network B-3, a central gateway B-4, a NAS server IPv4 address B-2, and a central gateway IPv6 address B-5.
[0033] The edge gateway and the central gateway establish an IPv6 communication link. When the user computer A-1 connects to access the edge gateway IPv4 address A-3, the data is automatically forwarded to the central gateway B-4. Since the central gateway B-4 establishes an IPv4 communication link with the NAS server IPv4 address B-2, after the central gateway B-4 receives the data from the user computer, it parses and converts the data packet, re-encapsulates the data packet, and forwards the new data packet to the NAS server B-1. Finally, the user computer A-1 can access the local network edge gateway IPv4 address A-3 to access the remote NAS server B-1.
[0034] Please refer to Figure 2 As shown, the present invention provides a NAS data gateway system, device, and method, and its embodiments include: a process of a communication method between a central gateway and an edge gateway.
[0035] The central gateway and the edge gateway start IPv4 / IPv6 dual stack communication when powered on, and can send and receive IPv4 / IPv6 data packets at the same time.
[0036] The central gateway is bound to the NAS server IPv4 address.
[0037] The edge gateway is connected to the central gateway IPv6 address.
[0038] The central gateway authenticates whether the edge gateway is legal. If it is an illegal connection, the edge gateway connection is forcibly disconnected. If it is a legal connection, an IPv6 data exchange communication link is established.
[0039] The edge gateway listens to the same TCP / UDP port number as the NAS server, waiting for the user computer to connect and access.
[0040] The edge gateway receives the data packet accessed by the user computer IPv4 connection, parses out the TCP / UDP protocol, port number, data payload, and re-encapsulates the data packet according to the TCP / UDP protocol+port number+data payload+check value.
[0041] The edge gateway forwards the encapsulated data packet to the central gateway via the IPv6 data link.
[0042] The central gateway receives the IPv6 data packet sent by the edge gateway.
[0043] The data packet is checked to see if it is legal, and if it is illegal, it is discarded.
[0044] The central gateway parses the data packet to obtain the TCP / UDP protocol, port number, and data payload of the user computer connecting to the edge gateway.
[0045] The central gateway re-encapsulates the IPv4 data packet according to the TCP / UDP protocol, port number, and data payload of the user computer connecting to access the edge gateway.
[0046] The central gateway sends the simulated data packet to the NAS server IPv4 address.
[0047] After the above process, user computer A-1 can finally access the local network edge gateway IPv4 address A-3 to access the remote NAS server B-1.
[0048] The present invention has been shown and described in detail through the accompanying drawings and embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review methods in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.
Claims
1. A NAS data gateway system, device, and method, characterized in that A data communication system composed of a central gateway device and one or more edge gateway devices thereof, the system comprising the following steps: Step S1: The central gateway and the NAS server are in the same local area network, and the central gateway binds the NAS server IPv4 address to establish a data communication link. Step S2: The edge gateway and the user computer are in the same local area network, and the user computer can connect to access the edge gateway IPv4 address. Step S3: The edge gateway and the central gateway establish an IPv6 communication link to achieve data exchange between the edge gateway and the central gateway. Step S4: The data of the user computer connecting to access the edge gateway IPv4 address is automatically forwarded to the central gateway through the edge gateway and the central gateway IPv6 communication link. Step S5: After receiving the edge gateway data, the central gateway parses and re-packages it, and automatically forwards the newly packaged data to the NAS server, and finally realizes that the user computer can access the local edge gateway IPv4 address to achieve access to the remote NAS server.
2. As claimed in claim 1, a data communication system consisting of a central gateway device and one or more edge gateway devices, characterized in that The central gateway can establish connections with multiple edge gateways. Each edge gateway can be accessed by multiple user computers, allowing multiple users in multiple locations to remotely access the NAS server and achieve data sharing. The NAS server supports multiple operating systems and multiple platforms, and can support access from multiple terminal devices through the gateway.
3. As described in claim 1, a NAS data gateway system, device, and method, characterized in that The process of the communication method between the central gateway and the edge gateway includes: process 1: the central gateway and the edge gateway start IPv4 / IPv6 dual stack communication, and can send and receive IPv4 / IPv6 data packets at the same time. Process 2: the central gateway binds the IPv4 address of the NAS server. Process 3: the edge gateway connects to the IPv6 address of the central gateway, and establishes an IPv6 data exchange communication link through the central gateway identity authentication. Process 4: the edge gateway starts the IPv4 address and listens to the same TCP / UDP port number as the NAS server, waiting for the user computer to connect and access. Process 5: the edge gateway receives the data packet accessed by the user computer IPv4 connection, and parses out the TCP / UDP protocol, port number, and data payload, and re-encapsulates the data packet according to the TCP / UDP protocol + port number + data payload + check value. Process 6: the edge gateway forwards the encapsulated data packet to the central gateway through the IPv6 data link. Process 7: the central gateway receives the IPv6 data packet sent by the edge gateway, determines whether the data is legal, parses the legal data packet, and obtains the TCP / UDP protocol, port number, and data payload of the user computer to connect and access the edge gateway. Process 8: The central gateway re-encapsulates the IPv4 data packet according to the TCP / UDP protocol, port number, and data payload of the user computer connecting to the edge gateway, and sends the data packet to the NAS server IPv4 address.
4. As described in claims 1 and 3, a NAS data gateway system, device, and method, characterized in that The central gateway and the edge gateway establish an encrypted data communication link through IPv6. The NAS service does not access other local area networks or the Internet, and cannot be connected by other users except the central gateway. The security of the NAS server is doubly guaranteed by the network link and its data encryption.
