CN112637367B - File sharing method, device, equipment and storage medium based on home network - Google Patents

File sharing method, device, equipment and storage medium based on home network Download PDF

Info

Publication number
CN112637367B
CN112637367B CN202110253707.3A CN202110253707A CN112637367B CN 112637367 B CN112637367 B CN 112637367B CN 202110253707 A CN202110253707 A CN 202110253707A CN 112637367 B CN112637367 B CN 112637367B
Authority
CN
China
Prior art keywords
file
home network
sharing
user equipment
information
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.)
Active
Application number
CN202110253707.3A
Other languages
Chinese (zh)
Other versions
CN112637367A (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.)
Wuhan Greenet Information Service Co Ltd
Original Assignee
Wuhan Greenet Information Service 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 Wuhan Greenet Information Service Co Ltd filed Critical Wuhan Greenet Information Service Co Ltd
Priority to CN202110253707.3A priority Critical patent/CN112637367B/en
Publication of CN112637367A publication Critical patent/CN112637367A/en
Application granted granted Critical
Publication of CN112637367B publication Critical patent/CN112637367B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • 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/25Mapping addresses of the same type

Abstract

The application provides a file sharing method, device, equipment and storage medium based on a home network, comprising the following steps: receiving file sharing message information about the home network sent by user equipment of the home network, wherein the file sharing message information comprises an ip address and message identification information of the user equipment; performing network address conversion on the file sharing message information according to the ip address of the user equipment and the message identification information to obtain converted file sharing message information; and sending the converted file sharing message information to resource management equipment of the data center server so as to access a family sharing file database corresponding to the family network, wherein the family sharing file database is stored in the resource management equipment. According to the method and the device, the access to the shared resources is realized, the storage resources of the home network are released, and the sharing efficiency of the shared resources is improved.

Description

File sharing method, device, equipment and storage medium based on home network
Technical Field
The present application relates to the field of communications technologies, and in particular, to a file sharing method and apparatus based on a home network, a computer device, and a storage medium.
Background
For a long time, file sharing between home terminals has been limited to a single home, i.e. within a certain local area network. The concept of the home cloud is based on the evolution, and it generally refers to that a host is used as a core, and the device which can be networked in the home is accessed through a wired network and a wireless network in the home, and is connected with the internet through a broadband, and meanwhile, other devices in the home can access the host through the wired network or the wireless network. The mode well solves the problem of file sharing, particularly the real-time playing of streaming media (firstly, a cloud host downloads videos to the local at idle, then playing equipment such as a television and the like finds cloud equipment through a Samba protocol, and then a user selects a certain resource on the equipment to play). However, the current mode has three implicit disadvantages, namely, hardware investment is required, namely, the hardware investment of the cloud host; secondly, file resources still need to be downloaded in advance and stored locally; and thirdly, the resources downloaded to the local can only be shared in the home network, and even if the resources in the home network can be accessed from the external network by some technical means, the speed is often unacceptable, because the uploading bandwidth is far less than the downloading bandwidth for the home broadband user.
Disclosure of Invention
The application provides a file sharing method and device based on a home network, computer equipment and a storage medium, wherein a home routing device is set to be in a direct mode, and a new gateway device is deployed under a Broadband Access Server (BRAS), so that an operator can control each terminal in the home network, and the terminal in the home can discover resource management equipment, thereby realizing Access to shared resources, releasing storage resources of the home network, and improving the sharing efficiency of the shared resources.
According to an aspect of the present application, a file sharing method based on a home network is provided, which is applied to a gateway device, the gateway device is disposed in a data center server, the gateway device establishes a communication connection with a routing device corresponding to the home network, the communication connection only includes a two-layer network function based on a pass-through mode of the routing device, and the method includes:
receiving file sharing message information about the home network sent by user equipment of the home network, wherein the file sharing message information comprises an ip address and message identification information of the user equipment;
performing network address conversion on the file sharing message information according to the ip address of the user equipment and the message identification information to obtain converted file sharing message information;
and sending the converted file sharing message information to resource management equipment of the data center server so as to access a family sharing file database corresponding to the family network, wherein the family sharing file database is stored in the resource management equipment.
According to an aspect of the present application, a file sharing apparatus based on a home network is provided, which is characterized in that the apparatus is applied to a gateway device, the gateway device is disposed in a data center server, the gateway device establishes a communication connection with a routing device of the home network, the communication connection only includes a two-layer network function based on a direct mode of the routing device, and the apparatus includes:
the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving file sharing message information about the home network sent by user equipment of the home network, and the file sharing message information comprises an ip address and message identification information of the user equipment;
the conversion module is used for carrying out network address conversion on the file sharing message information according to the ip address of the user equipment and the message identification information to obtain converted file sharing message information;
and the access module is used for sending the converted file sharing message information to resource management equipment of the data center server so as to access a family sharing file database corresponding to the family network, wherein the family sharing file database is stored in the resource management equipment.
According to an aspect of the present application, there is also provided a file sharing apparatus based on a home network, the apparatus including:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to perform the operations of any of the methods described above.
According to an aspect of the application, there is also provided a computer-readable storage medium having stored thereon a computer program, which is loaded by a processor to perform the operations of any of the methods described above.
According to the method and the device, the home routing equipment is set to be in the direct-through mode, and the new gateway equipment is deployed under the broadband access server, so that an operator can control each terminal in the home network, the terminals in the home can discover the resource management equipment, access to shared resources is achieved, storage resources of the home network are released, and the sharing efficiency of the shared resources is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view illustrating a file sharing scenario based on a home network according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart illustrating a file sharing method based on a home network according to an embodiment of the present application;
fig. 3 illustrates functional modules of a file sharing apparatus provided in an embodiment of the present application;
FIG. 4 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
It should be noted that, since the method in the embodiment of the present application is executed in the computing device, the processing objects of each computing device exist in the form of data or information, for example, time, which is substantially time information, it can be understood that, in the subsequent embodiments, if the size, the number, the position, and the like are mentioned, corresponding data exist, so that the electronic device performs processing, and details are not described herein.
In a typical configuration of the present application, a terminal or a trusted party, etc. includes one or more processors, such as a Central Processing Unit (CPU), an input/output interface, a network interface, and a memory. The Memory may include forms of volatile Memory, Random Access Memory (RAM), and/or non-volatile Memory in a computer-readable medium, such as Read Only Memory (ROM) or Flash Memory. Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device.
The device referred to in this application includes, but is not limited to, a user device, a network device, or a device formed by integrating a user device and a network device through a network. The user equipment includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an Android operating system, an iOS operating system, etc. The network Device includes an electronic Device capable of automatically performing numerical calculation and 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 Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded Device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
The application provides a file sharing method based on a home network, which is mainly applied to gateway equipment, wherein the gateway equipment is arranged on a data center server, and the data center server specifically comprises an operator server, such as an edge data center and the like, and is mainly used for performing functions of information transmission, forwarding, storage, processing and the like. The gateway device includes, but is not limited to, a physical gateway device, a virtual gateway device, and the like. Without limitation, as shown in fig. 1, the corresponding user equipment in the home network includes an intelligent home device, a personal terminal, and the like, the user equipment establishes a communication connection with the data center server through the routing device, and the routing device is set to a direct mode, so that the message information sent by the user equipment can be directly sent to the data center server and forwarded to the gateway device through the switch, and the gateway device sends the message information to the resource management device based on corresponding processing, thereby implementing access of the user equipment to the resource management device. The resource management device (such as a resource server) is used for storing shared resources of the home network, including but not limited to multimedia files such as shared pictures, videos, documents and the like.
The gateway shown in fig. 1 may be disposed in a computer device, and a corresponding file sharing apparatus is integrated in the computer device. In this embodiment, the computer device may be an independent server, or may be a server network or a server cluster composed of servers, for example, the computer device described in this embodiment includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud server composed of a plurality of servers. Among them, the Cloud server is constituted by a large number of computers or web servers based on Cloud Computing (Cloud Computing).
Those skilled in the art can understand that the application environment shown in fig. 1 is only one application scenario of the present application scheme, and does not constitute a limitation on the application scenario of the present application scheme, and as a person skilled in the art knows, with the evolution of a corresponding scenario and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Fig. 2 shows a home network-based file sharing method according to an aspect of the present application, which is applicable to the scenario shown in fig. 1, and is applied to a gateway device, where the gateway device is disposed in a data center server, and the gateway device establishes a communication connection with a routing device corresponding to a home network, where the communication connection only includes a two-layer network function based on a direct mode of the routing device, and the method includes step S101, step S102, and step S103. In step S101, receiving file sharing packet information about the home network sent by a user device of the home network, where the file sharing packet information includes an ip address and packet identification information of the user device; in step S102, performing network address conversion on the file sharing message information according to the ip address of the user equipment and the message identification information to obtain converted file sharing message information; in step S103, the converted file sharing message information is sent to a resource management device of the data center server to access a family sharing file database corresponding to the family network, where the family sharing file database is stored in the resource management device. The pass-through mode of the routing device can be set based on the operation of a user on a webpage interface corresponding to the routing device. For example, a port mapping is performed on the egress routing device to access the resources of the home network on the external network, similar to the case where the intranet server of the company can be accessed by the external network, or a remote control software is installed on the intranet device, and the external network can be remotely connected to the device.
Specifically, in step S101, file sharing packet information about the home network, which is sent by the user equipment of the home network, is received, where the file sharing packet information includes an ip address and packet identification information of the user equipment. For example, user devices of a home network include, but are not limited to, a personal terminal, a smart home, and the like, and each user device may send an access request related to a resource management device to a gateway device through a routing device for accessing a shared resource, thereby performing file sharing or acquiring a shared file. The file sharing message information includes header data, request data, and the like, where the header data includes an ip address of the user equipment, a destination ip address, and message identification information (e.g., a virtual local area network VLAN ID number). To enable a device to distinguish messages of different VLANs, a field for identifying VLAN information needs to be added to the message. The IEEE 802.1Q protocol specifies that a 4-byte VLAN Tag (also called VLAN Tag, Tag for short) is added after the destination MAC address and source MAC address fields and before the protocol type field of an ethernet data frame, and the protocol field itself needs to be filled with 0x8100, indicating that this is a VLAN packet. The user equipment is currently establishing a communication connection with the home network.
In step S102, network address conversion is performed on the file sharing packet information according to the ip address of the user equipment and the packet identification information, so as to obtain converted file sharing packet information. For example, after receiving the file sharing message information, the gateway device performs Network Address Translation (NAT) on the file sharing message information according to the ip Address of the user device and the message identification information, so as to obtain the converted file sharing message information. If the IP address of the A family device is 192.168.1.2, the VLAN ID is 1 when the A family device reaches the access gateway; the IP address of the device B of the family A is 192.168.1.3, and the VLAN ID is 1 when the device B reaches the access gateway; the IP address of the third device of the family B is 192.168.1.2, and the VLAN ID when the third device reaches the access gateway is 2; the IP address of the d device in the B family is 192.168.1.3, and the VLAN ID is 2 when the access gateway is reached. Firstly, when the gateway transfers the shared message information to the data center server, the gateway must make a source address NAT, for example, the IP address of the data center server is 202.111.22.xx, which is a public network address, while the IP address of the user equipment is 192.168.1.x, which is a private address of the local area network and can only be used in the local area network. Ordinary NAT, only map one IP address to another IP address, under the present circumstances, the IP address of the user may be duplicated, then VLAN ID must be added to uniquely identify the user device, such as 192.168.1.2/VLAN:1 mapping to 202.111.22.2, 192.168.1.3/2 mapping to 202.111.22.3,192.168.1.2/2 mapping to 202.111.22.4,192.168.1.3/2 mapping to 202.111.22.5, etc., each file sharing message information is mapped to a unique destination IP address, and a corresponding IP address mapping table is established, which is synchronously updated to the resource management device, so that when the resource management device returns a message, 192.168.1.x and a corresponding VLAN number, etc. can be mapped back according to the destination IP address.
Of course, those skilled in the art will appreciate that the above-described NAT translation is merely exemplary, and that other existing or future NAT translations, as applicable to the present application, are also intended to be encompassed within the scope of the present application and are hereby incorporated by reference.
In step S103, the converted file sharing message information is sent to a resource management device of the data center server to access a family sharing file database corresponding to the family network, where the family sharing file database is stored in the resource management device. For example, after acquiring the converted file sharing message information, the gateway device sends the data packet after NAT to the resource management device of the data center server, so that the SMB request message of the user device reaches the resource management device to be accessed finally, and a subsequent interaction process may perform interaction through a normal Samba protocol, such as uploading a shared file or downloading a shared file in a shared resource from the resource management device. Here, the gateway device, as a three-layer device, may isolate other broadcast messages, only the broadcast message in the home network may be able to access the home shared file database, and the broadcast message in the other home network may never be sent to the home network.
In some embodiments, the data center server is deployed with an agent of samba service; in step S103, the converted file sharing message information is sent to the resource management device of the data center server, so as to access the family sharing file database corresponding to the family network through the agent. For example, Samba services are an open source implementation of SMB, and some of the main functions of SMB are as follows: 1) sharing files through an SMB protocol; 2) print sharing via SMB protocol (we can provide print services for window by configuring the print server on linux via SMB); 3) adding a windows2000/2003/2008 domain environment, and the like. Here, we mainly use the file sharing function of the samba service to set a corresponding agent program of the samba service in the data center server, so that the user equipment can access the shared file of the resource management device. Specifically, for example, a Dynamic Host Configuration Protocol (DHCP) and a samba proxy server are combined, so that a proxy function of the samba service is implemented. The agent program may be deployed in the resource management device, or may be deployed in the gateway device, or the like. The family shared file database is used for storing shared files uploaded by each user device in the family network and the like.
In some embodiments, the method further includes step S104 (not shown), in step S104, receiving a sharing query request about the home network sent by the user equipment; and responding to the sharing inquiry request, and returning sharing list information about the home network to the user equipment. For example, a user holds corresponding user equipment, and sends a sharing query request about shared resources of a home network to a corresponding data center server through the user equipment, where the sharing query request is used to query shared resources of a home shared file database corresponding to the home network, such as shared files displayed in a corresponding list. After receiving the sharing query request, the gateway device determines, in response to the sharing query request, a home network to which the user device belongs according to device identification information of the user device, and returns shared list information about the home network to the user device, where the shared list information may be device list information of the home network, and each device list information includes a shared file shared by the device; the shared list information may also be a list of all shared files of the family shared file database, etc.
In some embodiments, the sharing query request includes family identification information of the home network; in step S104, whether the user equipment holds a sharing right is queried according to the family identification information; and if so, returning sharing list information about the home network to the user equipment. For example, the sharing query request includes home identification information of the home network, such as a network identifier for identifying uniqueness of the home network, and the sharing list information corresponding to the home network device may be queried through the home identification information. In some cases, for a home network, only by opening related services, sharing can be performed in a data center server, so that file sharing and the like are realized. For example, the gateway device may query, according to the home identification information, whether the home network opens the sharing service in a service mapping table, where the home identification information of the home network that has opened the sharing service is stored in the service mapping table. If the shared service of the home network is opened, further inquiring whether the device identification information of the user equipment belongs to a shared device list of the home network, wherein the corresponding relation between the corresponding home identification information and the device identification information of the shared device is stored in the service mapping table. If yes, determining that the user equipment has the sharing authority of the home network, and returning sharing list information about the home network to the user equipment. As in some embodiments, if so, returning to the user equipment shared list information about the home network, including: and if so, generating sharing list information according to the identification information of the user equipment participating in the home network and the identification information of the resource service equipment, and returning the sharing list information to the user equipment. For example, the shared list information includes device identification information (such as a name and a MAC address) of a shared device of the home network and a name of the resource management device, and each device identification information of the shared list information corresponds to a favorite folder and includes a shared file shared by the devices. After receiving the sharing request sent by the user equipment, the gateway equipment generates sharing list information based on the collected names of the equipment connected in the current home network, the names of the resource management equipment and the like, and returns the sharing list information to the user equipment.
In some embodiments, if yes, returning shared list information about the home network to the user equipment, further comprising: if yes, returning server ip address information of the resource management equipment according to the equipment identification information of the user equipment; receiving file sharing message information about the home network sent by user equipment of the home network, including: and receiving file sharing message information about the home network sent by the user equipment of the home network based on the server ip address information. For example, if the user equipment selects to access the resource management device, the user equipment sends a broadcast message to inquire the IP address of the resource management device (such as a resource server); the access gateway identifies the user equipment according to the IP address VLAN ID number of the user equipment, different user equipment returns different server IP addresses, the specific process is similar to the process of the IP address mapping table, and the detailed description is omitted.
In some embodiments, the method further includes step S105 (not shown) of receiving a shared file uploaded by a user device of the home network, where the shared file includes corresponding device identification information and file identification information; and sending the shared file to the resource management equipment, wherein the shared file is used for establishing or updating the family file database, the family file database comprises one or more shared file records, and each shared file record comprises file identification information and equipment identification information of the corresponding shared file. For example, each user device in the home network may upload a shared file based on an operation of a corresponding user, where the shared file includes corresponding device identification information (e.g., a device name, etc.) and file identification information (e.g., a file name, a type, etc.); the gateway device receives the shared file and then sends the shared file to the resource management device, and the resource management device creates or updates a family file database according to the shared file, wherein the family file database comprises one or more shared file records, and each shared file record comprises file identification information and device identification information of the corresponding shared file. The device identification information includes, but is not limited to, a device name, a MAC address, or a device serial number of each user equipment. If the shared file record 1 comprises user equipment 1 and video 1, storing the video in a folder 1; the shared file record 2 comprises the user device 2, the picture 1, is stored in a folder 2, etc.
The foregoing mainly introduces an embodiment of a file sharing method based on a home network according to the present application, and in addition, the present application further provides a device capable of implementing the foregoing embodiments, which is described below with reference to fig. 3.
Fig. 3 shows a home network-based file sharing apparatus 100 according to an aspect of the present application, which is suitable for the scenario shown in fig. 1, and is applied to a gateway device, where the gateway device is disposed in a data center server, and the gateway device establishes a communication connection with a routing device corresponding to a home network, where the communication connection only includes a two-layer network function based on a direct mode of the routing device, and the apparatus 100 includes a receiving module 101, a converting module 102, and an accessing module 103. A receiving module 101, configured to receive file sharing packet information that is sent by a user equipment of the home network and related to the home network, where the file sharing packet information includes an ip address and packet identification information of the user equipment; a conversion module 102, configured to perform network address conversion on the file sharing packet information according to the ip address of the user equipment and the packet identification information, so as to obtain converted file sharing packet information; the access module 103 is configured to send the converted file sharing message information to a resource management device of the data center server to access a family sharing file database corresponding to the family network, where the family sharing file database is stored in the resource management device. In some embodiments, the data center server is deployed with an agent of samba service; the access module 103 is configured to send the converted file sharing message information to a resource management device of the data center server, so as to access a home sharing file database corresponding to the home network through the agent.
Here, the specific implementation of the receiving module 101, the converting module 102 and the accessing module 103 shown in fig. 3 is the same as or similar to the foregoing embodiment of step S101, step S102 and step S103 shown in fig. 2, and is included herein by reference, so that the detailed description is omitted and is included herein by reference.
In some embodiments, the apparatus further includes a query module (not shown) configured to receive a sharing query request sent by the user equipment about the home network; and responding to the sharing inquiry request, and returning sharing list information about the home network to the user equipment. In some embodiments, the sharing query request includes family identification information of the home network; the query module is used for querying whether the user equipment has the sharing authority or not according to the family identification information; and if so, returning sharing list information about the home network to the user equipment. In some embodiments, if yes, returning shared list information about the home network to the user equipment, further comprising: if yes, returning server ip address information of the resource management equipment according to the equipment identification information of the user equipment; receiving file sharing message information about the home network sent by user equipment of the home network, including: and receiving file sharing message information about the home network sent by the user equipment of the home network based on the server ip address information. Here, the specific implementation of the query module is the same as or similar to the embodiment of the step S104, and is included herein by reference, so that the detailed description is omitted and is included herein by reference.
In some embodiments, the apparatus further includes an upload module (not shown) configured to receive a shared file uploaded by a user device of the home network, where the shared file includes corresponding device identification information and file identification information; and sending the shared file to the resource management equipment, wherein the shared file is used for establishing or updating the family file database, the family file database comprises one or more shared file records, and each shared file record comprises file identification information and equipment identification information of the corresponding shared file. Here, the specific implementation of the upload module is the same as or similar to the embodiment of the step S105, and is included herein by reference, so that the detailed description is omitted and is included herein by reference.
In addition to the methods and apparatus described in the embodiments above, the present application also provides a computer-readable storage medium storing computer code that, when executed, performs the method described in any of the preceding claims.
The present application also provides a computer program product, which when executed by a computer device, performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
FIG. 4 illustrates an exemplary system that can be used to implement the various embodiments described herein;
in some embodiments, as illustrated in FIG. 4, the system 400 can be implemented as any of the devices described in the various embodiments. In some embodiments, system 400 may include one or more computer-readable media (e.g., system Memory or non-volatile Memory (non-volatile Memory) NVM/storage 420) having instructions and one or more processors (e.g., processor(s) 405) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 410 may include any suitable interface controllers to provide any suitable interface to at least one of the processor(s) 405 and/or any suitable device or component in communication with system control module 410.
The system control module 410 may include a memory controller module 430 to provide an interface to the system memory 415. The memory controller module 430 may be a hardware module, a software module, and/or a firmware module.
System memory 415 may be used, for example, to load and store data and/or instructions for system 400. For one embodiment, system memory 415 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, system memory 415 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 410 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 420 and communication interface(s) 425.
For example, NVM/storage 420 may be used to store data and/or instructions. NVM/storage 420 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drive(s) (HDD (s)), one or more Compact Disc (CD) Drive(s), and/or one or more Digital Versatile Disc (DVD) Drive (s)).
NVM/storage 420 may include storage resources that are physically part of the device on which system 400 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 420 may be accessed over a network via communication interface(s) 425.
Communication interface(s) 425 may provide an interface for system 400 to communicate over one or more networks and/or with any other suitable device. System 400 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 405 may be packaged together with logic for one or more controller(s) of the system control module 410, such as memory controller module 430. For one embodiment, at least one of the processor(s) 405 may be packaged together with logic for one or more controller(s) of the System control module 410 to form a System in a Package (SiP). For one embodiment, at least one of the processor(s) 405 may be integrated on the same die with logic for one or more controller(s) of the system control module 410. For one embodiment, at least one of the processor(s) 405 may be integrated on the same die with logic for one or more controller(s) of the System control module 410 to form a System on Chip (SoC).
In various embodiments, system 400 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 400 may have more or fewer components and/or different architectures. For example, in some embodiments, system 400 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen Display), a non-volatile memory port, a plurality of antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and a speaker.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and nonvolatile memories such as flash memories, various read only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic (MRAM)/Ferroelectric memories ferro electric RAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware.
The method, the device, the computer equipment and the storage medium for sharing the file based on the home network provided by the embodiment of the application are described in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. The file sharing method based on the home network is applied to a gateway device, the gateway device is arranged on a data center server, the gateway device establishes communication connection with a routing device corresponding to the home network, the communication connection is based on a pass-through mode of the routing device, wherein the pass-through mode only includes two-layer network functions, and the method includes:
receiving file sharing message information about the home network sent by user equipment of the home network, wherein the file sharing message information comprises an ip address and message identification information of the user equipment;
performing network address conversion on the file sharing message information according to the ip address of the user equipment and the message identification information to obtain converted file sharing message information;
and sending the converted file sharing message information to resource management equipment of the data center server so as to access a family sharing file database corresponding to the family network, wherein the family sharing file database is stored in the resource management equipment.
2. The method according to claim 1, wherein the data center server is deployed with an agent of samba service; the sending the converted file sharing message information to the resource management device of the data center server to access the family sharing file database corresponding to the family network includes:
and sending the converted file sharing message information to resource management equipment of the data center server so as to access a family sharing file database corresponding to the family network through the agent program.
3. The method of claim 1, further comprising:
receiving a sharing inquiry request about the home network sent by the user equipment;
and responding to the sharing inquiry request, and returning sharing list information about the home network to the user equipment.
4. The method of claim 3, wherein the sharing query request includes family identification information of the home network; wherein the returning, in response to the sharing query request, the shared list information about the home network to the user equipment includes:
inquiring whether the user equipment has sharing authority or not according to the family identification information;
and if so, returning sharing list information about the home network to the user equipment.
5. The method of claim 4, wherein if so, returning shared list information about the home network to the user equipment comprises:
and if so, generating sharing list information according to the identification information of the user equipment participating in the home network and the identification information of the resource service equipment, and returning the sharing list information to the user equipment.
6. The method according to claim 4 or 5, wherein if yes, returning the shared list information about the home network to the user equipment, further comprising:
if yes, returning server ip address information of the resource management equipment according to the equipment identification information of the user equipment;
receiving file sharing message information about the home network sent by user equipment of the home network, including:
and receiving file sharing message information about the home network sent by the user equipment of the home network based on the server ip address information.
7. The method of claim 1, further comprising:
receiving a shared file uploaded by user equipment of the home network, wherein the shared file comprises corresponding equipment identification information and file identification information;
and sending the shared file to the resource management equipment, wherein the shared file is used for establishing or updating the family file database, the family file database comprises one or more shared file records, and each shared file record comprises file identification information and equipment identification information of the corresponding shared file.
8. The utility model provides a file sharing device based on home network which characterized in that is applied to gateway equipment, gateway equipment sets up in data center server, gateway equipment with routing device of home network establishes communication connection, communication connection is based on the through mode of routing device, and wherein through mode includes two-layer network function only, the device includes:
the system comprises a receiving module, a sending module and a sending module, wherein the receiving module is used for receiving file sharing message information about the home network sent by user equipment of the home network, and the file sharing message information comprises an ip address and message identification information of the user equipment;
the conversion module is used for carrying out network address conversion on the file sharing message information according to the ip address of the user equipment and the message identification information to obtain converted file sharing message information;
and the access module is used for sending the converted file sharing message information to resource management equipment of the data center server so as to access a family sharing file database corresponding to the family network, wherein the sharing file database is stored in the resource management equipment.
9. A file sharing apparatus based on a home network, the apparatus comprising:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to perform operations of the method of any of claims 1-7 by the processor.
10. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor to perform operations of the method according to any one of claims 1 to 7.
CN202110253707.3A 2021-03-09 2021-03-09 File sharing method, device, equipment and storage medium based on home network Active CN112637367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110253707.3A CN112637367B (en) 2021-03-09 2021-03-09 File sharing method, device, equipment and storage medium based on home network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110253707.3A CN112637367B (en) 2021-03-09 2021-03-09 File sharing method, device, equipment and storage medium based on home network

Publications (2)

Publication Number Publication Date
CN112637367A CN112637367A (en) 2021-04-09
CN112637367B true CN112637367B (en) 2021-05-14

Family

ID=75297755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110253707.3A Active CN112637367B (en) 2021-03-09 2021-03-09 File sharing method, device, equipment and storage medium based on home network

Country Status (1)

Country Link
CN (1) CN112637367B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709100B (en) * 2021-07-16 2022-12-27 苏州浪潮智能科技有限公司 Shared file access control method, device, equipment and readable storage medium
CN117008838A (en) * 2021-12-28 2023-11-07 上海右云信息技术有限公司 Method and device for storing custom data information

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008085202A1 (en) * 2006-12-29 2008-07-17 Prodea Systems, Inc. File sharing through multi-services gateway device at user premises
CN102611728A (en) * 2010-09-14 2012-07-25 富士通株式会社 Method and System for Facilitating Remote Downloading
CN104346109A (en) * 2013-08-09 2015-02-11 华为终端有限公司 Method and device for home shared printing
CN104378410A (en) * 2014-09-30 2015-02-25 东莞市联讯系统科技有限公司 Minitype private cloud storage and transmission system and method
CN206023845U (en) * 2016-08-01 2017-03-15 无锡职业技术学院 A kind of family's the resources of movie & TV storage and management system
CN107710695A (en) * 2016-03-30 2018-02-16 华为技术有限公司 A kind of method, corresponding intrument and system for accessing family's NAS device
CN107959701A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 Data sharing method, cloud terminal, cloud desktop virtual machine and pass-through proxy server
CN109962903A (en) * 2017-12-26 2019-07-02 中移(杭州)信息技术有限公司 A kind of home gateway method for safety monitoring, device, system and medium
CN111107119A (en) * 2018-10-29 2020-05-05 杭州海康威视系统技术有限公司 Data access method, device and system based on cloud storage system and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008085202A1 (en) * 2006-12-29 2008-07-17 Prodea Systems, Inc. File sharing through multi-services gateway device at user premises
CN102611728A (en) * 2010-09-14 2012-07-25 富士通株式会社 Method and System for Facilitating Remote Downloading
CN104346109A (en) * 2013-08-09 2015-02-11 华为终端有限公司 Method and device for home shared printing
CN104378410A (en) * 2014-09-30 2015-02-25 东莞市联讯系统科技有限公司 Minitype private cloud storage and transmission system and method
CN107710695A (en) * 2016-03-30 2018-02-16 华为技术有限公司 A kind of method, corresponding intrument and system for accessing family's NAS device
CN206023845U (en) * 2016-08-01 2017-03-15 无锡职业技术学院 A kind of family's the resources of movie & TV storage and management system
CN107959701A (en) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 Data sharing method, cloud terminal, cloud desktop virtual machine and pass-through proxy server
CN109962903A (en) * 2017-12-26 2019-07-02 中移(杭州)信息技术有限公司 A kind of home gateway method for safety monitoring, device, system and medium
CN111107119A (en) * 2018-10-29 2020-05-05 杭州海康威视系统技术有限公司 Data access method, device and system based on cloud storage system and storage medium

Also Published As

Publication number Publication date
CN112637367A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US11044593B2 (en) Method and devices for managing constrained devices
WO2016070628A1 (en) Power line carrier communication terminal control device, system and method
CN112637367B (en) File sharing method, device, equipment and storage medium based on home network
US8526352B2 (en) Method of controlling an entity of a remote network from a local network
EP3223498A1 (en) Method and apparatus for interconnection between networks
CN112350918B (en) Service traffic scheduling method, device, equipment and storage medium
JP2015095894A (en) Management server and management method thereof for managing cloud appliances in virtual local area networks
KR20140110058A (en) Cloud computing controlled gateway for communication networks
US10855648B2 (en) Methods and apparatus for operating and managing a constrained device within
WO2019128273A1 (en) Method, device and system for determining connection relation of network devices
CN112968844A (en) Method and device for sending fragment message
WO2020038443A1 (en) Bridging communication method and device
JP6511624B2 (en) Multimedia sharing method, registration method, server and proxy server
WO2024012001A1 (en) Method and system for implementing access to open source community in multi-modal network
US20130064250A1 (en) Remotely accessing and controlling user equipment in a private network
Belimpasakis et al. Remote access to universal plug and play (UPnP) devices utilizing the Atom publishing protocol
US9451049B2 (en) Sharing media among remote access clients in a universal plug and play environment
CN103414713A (en) Method, device and DLNA device with access to cloud medium resource
JP2010114721A (en) Content transmitting method and system for transmitting content from terminal in home network to wide area network
WO2017113302A1 (en) Media service proxy method, device and system thereof
CN108566441B (en) Method for processing data by NAS device, NAS device and medium
CN114401429B (en) Remote screen projection method and electronic equipment
CN110830594B (en) Method, system, device and storage medium for expanding IP address of cloud mobile phone
KR101782884B1 (en) System and method for detecting bottleneck
CN106656718B (en) VxLAN gateway and method for accessing host to internet based on VxLAN gateway

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