WO2016127314A1 - 家庭云服务系统的数据传输方法及装置 - Google Patents

家庭云服务系统的数据传输方法及装置 Download PDF

Info

Publication number
WO2016127314A1
WO2016127314A1 PCT/CN2015/072658 CN2015072658W WO2016127314A1 WO 2016127314 A1 WO2016127314 A1 WO 2016127314A1 CN 2015072658 W CN2015072658 W CN 2015072658W WO 2016127314 A1 WO2016127314 A1 WO 2016127314A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission protocol
server
transmission
penetration
data
Prior art date
Application number
PCT/CN2015/072658
Other languages
English (en)
French (fr)
Inventor
王玉满
李展
严映军
吴嘎
Original Assignee
深圳好视网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳好视网络科技有限公司 filed Critical 深圳好视网络科技有限公司
Priority to PCT/CN2015/072658 priority Critical patent/WO2016127314A1/zh
Publication of WO2016127314A1 publication Critical patent/WO2016127314A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the invention belongs to the field of cloud storage technologies, and in particular relates to a data transmission method and device of a home cloud service system.
  • the home cloud service system often performs data transfer through the server, and when faced with a large amount of household data, the server is under great pressure, and the transmission efficiency and stability of the data transmission are also affected.
  • the prior art home cloud service system cannot guarantee data transmission efficiency and transmission stability.
  • the purpose of the embodiments of the present invention is to provide a data transmission method for a home cloud service system, which aims to solve the problem that the prior art home cloud service system cannot guarantee data transmission efficiency and transmission stability.
  • the embodiment of the present invention is implemented in this manner.
  • the first aspect of the embodiments of the present invention provides a data transmission method of a home cloud service system, where the home cloud service system includes a control end, a server, and a device end, where
  • the first transmission protocol heartbeat message is sent to the server, so that the server obtains the first transmission protocol message address of the device according to the first transmission protocol heartbeat message.
  • the second transmission protocol heartbeat message is sent to the server, so that the server acquires the second transmission protocol message address of the control terminal according to the second transmission protocol heartbeat message;
  • the method includes:
  • the server sends a penetration instruction to the server, so that the server sends the second transmission protocol message address of the control terminal to the device according to the penetration instruction, and sends the message to the control terminal.
  • the first transmission protocol message address of the device end;
  • the data is transmitted using the transmission protocol and the device side;
  • the server forwards the data transmission with the device side;
  • the data that needs to be transmitted between the control terminal and the device end is transmitted by using a transmission protocol, specifically:
  • a transmission protocol packet encrypted by the first key pair and the second key pair is transmitted between the control terminal and the device end by using a transmission protocol, the first key pair and the second key.
  • the key pair is dynamically generated by the server and sent to the control terminal and the device end, where the data to be transmitted between the control terminal and the device end is divided into multiple transport protocol data packets, and the first key is adopted.
  • the header of each of the transport protocol data packets is encrypted, and the data portion of each of the transport protocol data packets is encrypted using the second key pair.
  • a second aspect of the embodiments of the present invention provides a data transmission device of a home cloud service system, where the home cloud service system includes a control end, a server, and a device end, where
  • the first transmission protocol heartbeat message is sent to the server, so that the server obtains the first transmission protocol message address of the device according to the first transmission protocol heartbeat message.
  • the second transmission protocol heartbeat message is sent to the server, so that the server acquires the second transmission protocol message address of the control terminal according to the second transmission protocol heartbeat message;
  • the device includes:
  • a sending unit configured to send a penetration instruction to the server when the data transmission needs to be performed with the device, so that the server sends the second transmission protocol message of the control terminal to the device end according to the penetration instruction Addressing, sending, to the control terminal, a first transmission protocol message address of the device end;
  • control end sends a second transmission protocol message to the device according to the first transmission protocol message address of the device end, and receives the first transmission sent by the device end according to the second transmission protocol address message of the control terminal a protocol message to achieve penetration between the control terminal and the device end;
  • a first transmission unit configured to perform data transmission with the device end by using a transmission protocol when the penetration is successful
  • a second transmission unit configured to perform data transmission with the device end by using a server to forward when the penetration fails
  • the first transmission unit is configured to: when the penetration succeeds, transmit, by using a transmission protocol, the transmission protocol data packet encrypted by the first key pair and the second key pair between the control end and the device end,
  • the first key pair and the second key pair are dynamically generated by the server and sent to the control end and the device end, wherein the data to be transmitted between the control end and the device end is divided into multiple transmissions.
  • a protocol data packet wherein the first key pair is used to encrypt a header of each of the transport protocol data packets, and the second key pair is used to encrypt a data portion of each of the transport protocol data packets.
  • the transmission protocol is used to transmit data that needs to be transmitted between the control end and the device end, when the penetration is performed.
  • the server is used to forward data that needs to be transmitted between the control terminal and the device end.
  • the data transmission efficiency between the control end and the device end is improved, and the pressure on the server side is also alleviated, and the forwarding function of the server also ensures that the control end can log in and control access under any network condition, thereby improving the stability of the system. .
  • FIG. 1 is a structural diagram of a home cloud service system according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of an implementation of a data transmission method of a home cloud service system according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of an implementation of a data transmission method of a home cloud service system according to Embodiment 2 of the present invention.
  • FIG. 4 is a flowchart of an implementation of a data transmission method of a home cloud service system according to Embodiment 3 of the present invention.
  • FIG. 5 is a structural diagram of a home cloud service system according to Embodiment 6 of the present invention.
  • FIG. 6 is a structural diagram of a data transmission apparatus of a home cloud service system according to Embodiment 7 of the present invention.
  • FIG. 7 is a structural diagram of a data transmission apparatus of a home cloud service system according to Embodiment 8 of the present invention.
  • the embodiment of the present invention provides for the penetration between the control end and the device end.
  • the transmission protocol is used to transmit data with the device end.
  • the server forwards and uses Data transmission is performed on the device side to achieve efficient and stable data transmission between the control end and the device end.
  • FIG. 1 is a schematic structural diagram of a home cloud service system according to the embodiment, where the system includes: a control end, a server, and a device end, and the control end may be a system of platforms such as android, iOS, and windows system, wherein the control In any place where you can access the Internet, you can log in and authenticate through the service server, and then communicate with the device to control the download and file management functions of the device.
  • the server is deployed on the Internet to provide login authentication and permission control.
  • the device is configured to be installed in a home-private device at the home. The device is in standby for a long time. After each startup, the server is automatically searched for a server deployed in the Internet to perform an online action.
  • FIG. 2 is a flowchart showing an implementation of a data transmission method of a home cloud service system according to Embodiment 1 of the present invention, which is described in detail as follows:
  • the first transmission protocol heartbeat message is sent to the server, so that the server acquires the first transmission protocol message address of the device according to the first transmission protocol heartbeat message; the control After the terminal authentication succeeds, the second transmission protocol heartbeat message is sent to the server, so that the server acquires the second transmission protocol message address of the control terminal according to the second transmission protocol heartbeat message.
  • the transmission protocol may be a UDP transmission protocol, or another transmission protocol having an equivalent function.
  • control end first authenticates to the server, and after the authentication succeeds, the heartbeat message sent by the service can be obtained to ensure security.
  • the method specifically includes:
  • the device end sends a first transmission protocol message to the control end according to the second transmission protocol message address of the control end, and the control end sends the first transmission protocol message to the device according to the first transmission protocol message address of the device end. Transmitting a protocol message to achieve penetration between the control terminal and the device end;
  • the control end receives the first transmission protocol message sent by the device end (or the control end), and the first A transmission protocol message is that the second (or first) transmission protocol address message is correctly responded according to a predetermined policy, and the transmission protocol is considered to be successfully penetrated; if the predetermined time is exceeded, the penetration failure is considered.
  • the S203 can be implemented in the following manner:
  • the data to be transmitted encrypted by the key pair is transmitted between the control terminal and the device end by using a transmission protocol, and the key pair is dynamically generated by the server and sent to the control terminal and
  • key encryption can ensure the security of data transmission.
  • the security of the system can be further ensured by dynamically generating a key through the server.
  • the key can be generated by the server after the control terminal and the device end are online. And sent to the control terminal and the device end respectively.
  • the S203 can also be implemented in the following manner:
  • the first key pair and the second key pair is dynamically generated by the server and sent to the control end and the device end, wherein the data to be transmitted between the control end and the device end is divided into multiple transport protocol data packets, and the first
  • the key pair encrypts a header of each of the transport protocol data packets, and encrypts a data portion of each of the transport protocol data packets by using the second key pair, by using a plurality of key pair data packets Encryption in different parts can further ensure the reliability of data transmission and protect data transmission security.
  • the server is used to forward data that needs to be transmitted between the control end and the device end.
  • the transmission protocol is used to transmit data that needs to be transmitted between the control end and the device end, when the penetration is performed.
  • the server is used to forward data that needs to be transmitted between the control terminal and the device end.
  • the data transmission efficiency between the control end and the device end is improved, and the pressure on the server is also alleviated, and the forwarding function of the server also ensures that the mobile terminal can log in and control access under any network condition, thereby improving the stability of the system. Sex.
  • the embodiment of the present invention is a method for the control end corresponding to the home cloud service system
  • FIG. 3 is a flowchart of implementing the data transmission method of the home cloud service system according to the second embodiment of the present invention.
  • Sending a first transmission protocol heartbeat message to the server so that the server acquires a first transmission protocol message address of the device end according to the first transmission protocol heartbeat message; after the control terminal successfully authenticates, the server sends a message to the server.
  • Transmitting a protocol heartbeat message so that the server acquires a second transport protocol message address of the control end according to the second transport protocol heartbeat message;
  • the method specifically includes:
  • the control terminal when it is required to perform data transmission with the device, the control terminal sends a penetration instruction to the server, so that the server sends the second transmission protocol message address of the control terminal to the device end according to the penetration instruction. Sending, by the control end, a first transport protocol message address of the device end;
  • control end sends a second transport protocol message to the device according to the first transport protocol message address of the device, and receives the first transport protocol message sent by the device according to the second transport protocol address message of the control end.
  • the S303 can be implemented in the following manner:
  • the key pair encrypted data to be transmitted is transmitted between the control terminal and the device end by using a transmission protocol, and the key pair is dynamically generated by the server and sent to the control.
  • the end and the device end can ensure the security of data transmission by using key encryption.
  • the S303 can also be implemented in the following manner:
  • the first key pair and the second key pair is dynamically generated by the server and sent to the control end and the device end, wherein the data to be transmitted between the control end and the device end is divided into multiple transport protocol data packets, and the first
  • the key pair encrypts a header of each of the transport protocol data packets, and encrypts a data portion of each of the transport protocol data packets by using the second key pair, by using a plurality of key pair data packets Encryption in different parts can further ensure the reliability of data transmission and protect data transmission security.
  • the control end when data transmission needs to be performed with the device, the control end sends a penetration instruction to the server, so that the server sends the second transmission protocol message of the control terminal to the device end according to the penetration instruction.
  • An address, the first transmission protocol message address of the device end is sent to the control end, and the control end sends a second transmission protocol message to the device end according to the first transmission protocol message address of the device end, and the receiving device end a first transmission protocol message sent by the second transmission protocol address message of the control terminal to implement penetration between the control terminal and the device end, and when the penetration is successful, using a transmission protocol and the device end
  • the server forwards the data transmission with the device side, improves the data transmission efficiency between the control end and the device end, and also reduces the pressure on the server side, and the forwarding function of the server is also guaranteed.
  • the console can log in and control access under any network conditions, which improves the stability of the system.
  • FIG. 4 is a flowchart showing an implementation of a data transmission method of a home cloud service system according to Embodiment 3 of the present invention, which is described in detail as follows:
  • the first transmission protocol heartbeat message is sent to the server, so that the server acquires the first transmission protocol message address of the device according to the first transmission protocol heartbeat message; the control After the terminal is successfully authenticated, the second transmission protocol heartbeat message is sent to the server, so that the server obtains the second transmission protocol message address of the control terminal according to the second transmission protocol heartbeat message.
  • the method specifically includes:
  • the device end sends a first transmission protocol message to the control end according to the second transmission protocol message address of the control end, and receives a second transmission protocol message sent by the control end according to the first transmission protocol address message of the device end.
  • the server needs to forward the data that needs to be transmitted between the device end and the control end, and when the penetration is successful, use The transmission protocol and the control end perform data transmission.
  • the server when the penetration between the control end and the device end is performed, when the penetration fails, the server needs to forward the data that needs to be transmitted between the device end and the control end, and when the penetration occurs.
  • the transmission protocol and the control terminal are used for data transmission, which improves the data transmission efficiency between the control terminal and the device end, and also reduces the pressure on the server, and the forwarding function of the server also ensures that the control terminal is in any network condition. Enables login and control access, improving system stability.
  • FIG. 5 is a structural diagram of a home cloud service system according to Embodiment 4 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the home cloud service system includes a control terminal 51 and a server 52. And the device end 53, wherein the device end 53 is successfully sent to the server 52, and sends a first transport protocol heartbeat message to the server 52, so that the server 52 obtains the device end 53 according to the first transport protocol heartbeat message.
  • a first transmission protocol message address after the authentication end 51 is successfully authenticated, the second transmission protocol heartbeat message is sent to the server 52, so that the server 52 acquires the control terminal 51 according to the second transmission protocol heartbeat message.
  • Second transmission protocol message address is a structural diagram of a home cloud service system according to Embodiment 4 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
  • the home cloud service system includes a control terminal 51 and a server 52. And the device end 53, wherein the device end
  • the control terminal 51 is configured to send a penetration command to the server 52 when data transmission needs to be performed with the device end 53, and when the penetration is successful, use the transmission protocol to transmit data with the device end 53 when the penetration fails.
  • the server 52 is used to forward the data transmission with the device end 53;
  • the server 52 is configured to send a second transmission protocol message address of the control terminal 51 to the device end 53 according to the penetration instruction sent by the control terminal 51, and send the device to the control terminal 51.
  • the device end 53 is configured to send a first transmission protocol message to the control terminal 51 according to the second transmission protocol message address of the control terminal 51, and the receiving control terminal 51 is configured according to the first transmission protocol address of the device terminal 53.
  • the second transmission protocol message sent by the message is implemented to achieve penetration between the control terminal 51 and the device end 53.
  • the home cloud service system provided by the embodiment of the present invention corresponds to the first embodiment of the data transmission method of the foregoing home cloud service system. For details, refer to the description of the first embodiment, and details are not described herein again.
  • FIG. 6 is a structural diagram of a data transmission apparatus of a home cloud service system according to Embodiment 5 of the present invention.
  • the home cloud service system includes a control end.
  • the server and the device end wherein after the device is successfully online, sending a first transmission protocol heartbeat message to the server, so that the server acquires the first transmission protocol of the device according to the first transmission protocol heartbeat message a message address; after the control end is successfully authenticated, the second transmission protocol heartbeat message is sent to the server, so that the server acquires the second transmission protocol message address of the control end according to the second transmission protocol heartbeat message;
  • the apparatus includes a transmitting unit 61, a penetrating unit 62, a first transmitting unit 63, and a second transmitting unit 64.
  • the sending unit 61 is configured to: when the data transmission needs to be performed with the device, the control end sends a penetration instruction to the server, so that the server sends the second transmission protocol of the control terminal to the device end according to the penetration instruction. Sending, by the message address, the first transmission protocol message address of the device end to the control terminal;
  • the penetrating unit 62 the control end sends a second transmission protocol message to the device according to the first transmission protocol message address of the device end, and the first device sends the first message according to the second transmission protocol address message of the control terminal. Transmitting a protocol message to achieve penetration between the control terminal and the device end;
  • the first transmission unit 63 is configured to perform data transmission with the device end by using a transmission protocol when the penetration is successful;
  • the second transmission unit 64 is configured to perform data transmission with the device end by using the server to forward when the penetration fails.
  • the first transmission unit 63 is configured to: when the penetration succeeds, transmit, by using a transmission protocol, the key pair encrypted data that needs to be transmitted between the control end and the device end, the secret
  • the key pair is dynamically generated by the server and sent to the console and the device.
  • the first transmission unit 63 is configured to: when the penetration succeeds, use the transmission protocol to transmit the first key pair and the second key pair encrypted between the control end and the device end. Transmitting a protocol data packet, the first key pair and the second key pair are dynamically generated by the server, and sent to the control end and the device end, where the control end and the device end need to be transmitted. Dividing the data into a plurality of transport protocol data packets, encrypting a header of each of the transport protocol data packets by using the first key pair, and using the second key pair to data of each of the transport protocol data packets Partially encrypted.
  • the data transmission device of the home cloud service system provided by the embodiment of the present invention corresponds to the second embodiment of the data transmission method of the home cloud service system.
  • the data transmission device of the home cloud service system corresponds to the second embodiment of the data transmission method of the home cloud service system.
  • FIG. 7 is a structural diagram of a data transmission apparatus of a home cloud service system according to Embodiment 6 of the present invention.
  • the home cloud service system includes a control end.
  • the server and the device end wherein after the device is successfully online, sending a first transmission protocol heartbeat message to the server, so that the server acquires the first transmission protocol of the device according to the first transmission protocol heartbeat message a message address; after the control end is successfully authenticated, the second transmission protocol heartbeat message is sent to the server, so that the server acquires the second transmission protocol message address of the control end according to the second transmission protocol heartbeat message;
  • the device includes:
  • the first processing unit 71 is configured to send, by the device end, a first transmission protocol message to the control end according to the second transmission protocol message address of the control end, and the receiving control end sends the message according to the first transmission protocol address message of the device end. Transmitting a protocol message to implement penetration between the control terminal and the device end;
  • the second processing unit 72 is configured to forward, by the server, data that needs to be transmitted between the device end and the control end when the penetration fails, and perform data transmission using the transmission protocol and the control end when the penetration is successful.
  • the data transmission device of the home cloud service system provided by the embodiment of the present invention corresponds to the third embodiment of the data transmission method of the home cloud service system.
  • the data transmission device of the home cloud service system corresponds to the third embodiment of the data transmission method of the home cloud service system.
  • the third embodiment corresponds to the description of the third embodiment, and details are not described herein again.
  • each unit included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding function can be implemented;
  • the specific names are also for convenience of distinguishing from each other and are not intended to limit the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明属于云存储技术领域,提供了一种家庭云服务系统的数据传输方法及装置,所述方法包括:当需要与设备端进行数据传输时,向服务器发送穿透指令,以使服务器根据所述穿透指令,向设备端发送所述控制端的第二传输协议消息地址,向控制端发送所述设备端的第一传输协议消息地址;根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;当穿透成功时,则使用传输协议与设备端进行数据传输;当穿透失败时,则采用服务器转发与设备端进行数据传输本发明提高了控制端和设备端之间的数据传输效率及稳定性。

Description

家庭云服务系统的数据传输方法及装置 技术领域
本发明属于云存储技术领域,尤其涉及一种家庭云服务系统的数据传输方法及装置。
背景技术
在宽带普及以及数据爆炸时代,许多用户的家中会产生大量的家庭数据、个人数据。对大量的家庭数据存储、管理、备份、恢复、跨互联网的数据同步、数据的便捷分享等问题是我们不得不面对的问题,也是用户当前需求强烈的地方。
目前的家庭云服务系统往往通过服务器进行数据中转,而当面对大量的家庭数据时,服务器压力很大,同时数据传输的传输效率和稳定性也收到影响。
现有技术的家庭云服务系统无法保证数据传输效率和传输稳定性。
技术问题
本发明实施例的目的在于提供一种家庭云服务系统的数据传输方法,旨在解决现有技术家庭云服务系统无法保证数据传输效率和传输稳定性的问题。
技术解决方案
本发明实施例是这样实现的,本发明实施例的第一方面提供了一种家庭云服务系统的数据传输方法,所述家庭云服务系统包括控制端、服务器以及设备端,其中,
所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;
所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
所述方法包括:
当需要与设备端进行数据传输时,向服务器发送穿透指令,以使服务器根据所述穿透指令,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
当穿透成功时,则使用传输协议与设备端进行数据传输;
当穿透失败时,则采用服务器转发与设备端进行数据传输;
所述当穿透成功时,则使用传输协议传输所述控制端和设备端之间需要传输的数据具体为:
当穿透成功时,使用传输协议在所述控制端和设备端之间传输经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密。
本发明实施例的第二方面提供了一种家庭云服务系统的数据传输装置,所述家庭云服务系统包括控制端、服务器以及设备端,其中,
所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;
所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
所述装置包括:
发送单元,用于当需要与设备端进行数据传输时,控制端向服务器发送穿透指令,以使服务器根据所述穿透指令时,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
穿透单元,所述控制端根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
第一传输单元,用于当穿透成功时,则使用传输协议与设备端进行数据传输;
第二传输单元,用于当穿透失败时,则采用服务器转发与设备端进行数据传输;
所述第一传输单元,用于当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密。
有益效果
本实施例中,通过在控制端和和所述设备端之间进行穿透,且当穿透成功时,则使用传输协议传输所述控制端和设备端之间需要传输的数据,当穿透失败时,则采用服务器转发所述控制端和设备端之间需要传输的数据。提高了控制端和设备端之间的数据传输效率,且也减轻了服务端压力,同时服务器的转发功能也保证控制端在任何网络状况下都能进行登录和控制访问,提高了系统的稳定性。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例一提供的家庭云服务系统的结构图;
图2是本发明实施例一提供的家庭云服务系统的数据传输方法的实现的流程图;
图3是本发明实施例二提供的家庭云服务系统的数据传输方法的实现的流程图;
图4是本发明实施例三提供的家庭云服务系统的数据传输方法的实现的流程图;
图5是本发明实施例六提供的家庭云服务系统的结构图;
图6是本发明实施例七提供的家庭云服务系统的数据传输装置的结构图;
图7是本发明实施例八提供的家庭云服务系统的数据传输装置的结构图。
本发明的实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明实施例提通过在所述控制端和所述设备端之间进行穿透,当穿透成功时,则使用传输协议与设备端进行数据传输,当穿透失败时,则采用服务器转发与设备端进行数据传输,实现控制端和设备端之间的高效和稳定性的数据传输。
以下结合具体实施例对本发明的实现进行详细描述:
实施例一
图1是本实施例家庭云服务系统的结构图示意图,所述系统包括:控制端、服务器和设备端,所述控制端可以是android、iOS和windows系统等平台的系统,其中,所述控制端在任何可以访问到互联网的地方,通过业务服务器进行登录认证,然后与设备端进行通信,控制设备端的下载和文件管理等功能;所述服务端部署在互联网中,提供登录认证和权限控制等功能;所述设备端为设置在家中的家庭私有的设备端,所述设备端长时间待机,每次启动后,自动寻找部署在互联网中的服务器,进行上线动作。在系统运行过程中,控制端软件访问资源服务器后台,获得资源应用信息和详细的资源信息,通知家中的私有设备端进行下载,并实时的监控下载进度和下载状态;同时控制端也能查看设备端上所有资源和文件的信息并进行管理,查询设备端的设备基本信息等。以下通过实施例进行说明,图2示出了本发明实施例一提供的家庭云服务系统的数据传输方法的实现的流程图,详述如下:
其中,所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址。
本实施例中,所述的传输协议可以为UDP传输协议,或其他具有等同功能的传输协议。
本实施例中,所述控制端首先向服务器进行认证,认证成功后,才能获取服务发送的心跳消息,以确保安全性。
所述方法具体包括:
S201,当服务器收到穿透指令时,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
S202,所述设备端根据所述控制端的第二传输协议消息地址,向控制端发送第一传输协议消息,同时所述控制端根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
具体可以为:在预设的时间内(例如,30秒),所述控制端(或所述设备端)收到所述设备端(或控制端)发送的第一传输协议消息,并且该第一传输协议消息是按照预定策略正确响应第二(或第一)传输协议地址消息,则认为此次传输协议穿透成功;如果超过预定时间,则认为穿透失败。
S203,当穿透成功时,则使用传输协议传输所述控制端和设备端之间需要传输的数据;
可选的,所述S203可以采用以下方式实现:
当穿透成功时,使用传输协议在所述控制端和设备端之间传输经过密钥对加密的需要传输的数据,所述密钥对由服务器端动态生成,并发送到所述控制端和设备端,通过采用密钥加密,可以保证数据传输的安全性,同时通过服务器动态生成密钥可以进一步保证系统的安全性,所述密钥可以在控制端和设备端上线后,由服务器生成,并分别发送到所述控制端和设备端。
可选的,所述S203还可以采用以下方式实现:
当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密,通过采用多个密钥对数据包的不同部分进行加密,可以进一步保证数据传输的可靠性,保护数据传输安全。
S204,当穿透失败时,则采用服务器转发所述控制端和设备端之间需要传输的数据。
本实施例中,通过在控制端和和所述设备端之间进行穿透,且当穿透成功时,则使用传输协议传输所述控制端和设备端之间需要传输的数据,当穿透失败时,则采用服务器转发所述控制端和设备端之间需要传输的数据。提高了控制端和设备端之间的的数据传输效率,且也减轻了服务端压力,同时服务器的转发功能也保证移动终端在任何网络状况下都能进行登录和控制访问,提高了系统的稳定性。
实施例二
本发明实施例为家庭云服务系统中控制端对应的方法,图3示出了本发明实施例二提供的家庭云服务系统的数据传输方法的实现流程图,其中,所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
所述方法具体包括:
S301,当需要与设备端进行数据传输时,控制端向服务器发送穿透指令,以使服务器根据所述穿透指令时,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
S302,所述控制端根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
S303,当穿透成功时,则使用传输协议与设备端进行数据传输;
可选的,所述S303可以采用以下方式实现:
当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过密钥对加密的需要传输的数据,所述密钥对由服务器端动态生成,并发送到所述控制端和设备端,通过采用密钥加密,可以保证数据传输的安全性。
可选的,所述S303还可以采用以下方式实现:
当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密,通过采用多个密钥对数据包的不同部分进行加密,可以进一步保证数据传输的可靠性,保护数据传输安全。
S 304,当穿透失败时,则采用服务器转发与设备端进行数据传输。
本实施例中,当需要与设备端进行数据传输时,控制端向服务器发送穿透指令,以使服务器根据所述穿透指令时,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址,所述控制端根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透,当穿透成功时,则使用传输协议与设备端进行数据传输,当穿透失败时,则采用服务器转发与设备端进行数据传输,提高了控制端和设备端之间的的数据传输效率,且也减轻了服务端压力,同时服务器的转发功能也保证控制端在任何网络状况下都能进行登录和控制访问,提高了系统的稳定性。
实施例三
本发明实施例为家庭云服务系统中设备端对应的方法,图4示出了本发明实施例三提供的家庭云服务系统的数据传输方法的实现的流程图,详述如下:
其中,所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址,
所述方法具体包括:
S401,所述设备端根据所述控制端的第二传输协议消息地址,向控制端发送第一传输协议消息,同时接收控制端根据所述设备端的第一传输协议地址消息发送的第二传输协议消息,以实现在所述控制端和所述设备端之间进行穿透,当穿透失败时,由服务器转发所述设备端与控制端之间需要传输的数据,以及当穿透成功时,使用传输协议与控制端进行数据传输。
本发明实施例中,通过在所述控制端和所述设备端之间进行穿透,当穿透失败时,由服务器转发所述设备端与控制端之间需要传输的数据,以及当穿透成功时,使用传输协议与控制端进行数据传输,提高了控制端和设备端之间的数据传输效率,且也减轻了服务端压力,同时服务器的转发功能也保证控制端在任何网络状况下都能进行登录和控制访问,提高了系统的稳定性。
实施例四
图5示出了本发明实施例四提供的家庭云服务系统的结构图,为了便于说明,仅示出了与本发明实施例相关的部分,所述家庭云服务系统包括控制端51、服务器52以及设备端53,其中,所述设备端53上线成功后,向服务器52发送第一传输协议心跳消息,以使所述服务器52根据所述第一传输协议心跳消息,获取所述设备端53的第一传输协议消息地址,所述控制端51认证成功后,向服务器52发送第二传输协议心跳消息,以使所述服务器52根据所述第二传输协议心跳消息,获取所述控制端51的第二传输协议消息地址;
所述控制端51,用于当需要与设备端53进行数据传输时,向服务器52发送穿透指令,以及穿透成功时,则使用传输协议与设备端53进行数据传输,当穿透失败时,则采用服务器52转发与设备端53进行数据传输;
所述服务器52,用于根据所述控制端51发送的穿透指令时,向所述设备端53发送所述控制端51的第二传输协议消息地址,向所述控制端51发送所述设备端53的第一传输协议消息地址;
所述设备端53,用于根据所述控制端51的第二传输协议消息地址,向控制端51发送第一传输协议消息,同时接收控制端51根据所述设备端53的第一传输协议地址消息发送的第二传输协议消息,以实现在所述控制端51和所述设备端53之间进行穿透。
本发明实施例提供的家庭云服务系统与前述家庭云服务系统的数据传输方法的实施例一对应,详情参见上述实施例一的描述,在此不再赘述。
实施例五
图6示出了本发明实施例五提供的家庭云服务系统的数据传输装置的结构图,为了便于说明,仅示出了与本发明实施例相关的部分,所述家庭云服务系统包括控制端、服务器以及设备端,其中,所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
所述装置包括:发送单元61、穿透单元62、第一传输单元63以及第二传输单元64。
发送单元61,用于当需要与设备端进行数据传输时,控制端向服务器发送穿透指令,以使服务器根据所述穿透指令时,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
穿透单元62,所述控制端根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
第一传输单元63,用于当穿透成功时,则使用传输协议与设备端进行数据传输;
第二传输单元64,用于当穿透失败时,则采用服务器转发与设备端进行数据传输。
可选的,所述第一传输单元63,用于当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过密钥对加密的需要传输的数据,所述密钥对由服务器端动态生成,并发送到所述控制端和设备端。
可选的,所述第一传输单元63,用于当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密。
本发明实施例提供的家庭云服务系统的数据传输装置与前述家庭云服务系统的数据传输方法的实施例二对应,详情参见上述实施例二的描述,在此不再赘述。
实施例六
图7示出了本发明实施例六提供的家庭云服务系统的数据传输装置的结构图,为了便于说明,仅示出了与本发明实施例相关的部分,所述家庭云服务系统包括控制端、服务器以及设备端,其中,所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
所述装置包括:
第一处理单元71,用于所述设备端根据所述控制端的第二传输协议消息地址,向控制端发送第一传输协议消息,接收控制端根据所述设备端的第一传输协议地址消息发送的第二传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
第二处理单元72,用于当穿透失败时,由服务器转发所述设备端与控制端之间需要传输的数据,以及当穿透成功时,使用传输协议与控制端进行数据传输。
本发明实施例提供的家庭云服务系统的数据传输装置与前述家庭云服务系统的数据传输方法的实施例三对应,详情参见上述实施例三的描述,在此不再赘述。
值得注意的是,上述装置和系统实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。
另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (2)

  1. 一种家庭云服务系统的数据传输方法,其特征在于,所述家庭云服务系统包括控制端、服务器以及设备端,其中,
    所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;
    所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
    所述方法包括:
    当需要与设备端进行数据传输时,向服务器发送穿透指令,以使服务器根据所述穿透指令,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
    根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
    当穿透成功时,则使用传输协议与设备端进行数据传输;
    当穿透失败时,则采用服务器转发与设备端进行数据传输;
    所述当穿透成功时,则使用传输协议传输所述控制端和设备端之间需要传输的数据具体为:
    当穿透成功时,使用传输协议在所述控制端和设备端之间传输经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密。
  2. 一种家庭云服务系统的数据传输装置,其特征在于,所述家庭云服务系统包括控制端、服务器以及设备端,其中,
    所述设备端上线成功后,向服务器发送第一传输协议心跳消息,以使所述服务器根据所述第一传输协议心跳消息,获取所述设备端的第一传输协议消息地址;
    所述控制端认证成功后,向服务器发送第二传输协议心跳消息,以使所述服务器根据所述第二传输协议心跳消息,获取所述控制端的第二传输协议消息地址;
    所述装置包括:
    发送单元,用于当需要与设备端进行数据传输时,控制端向服务器发送穿透指令,以使服务器根据所述穿透指令时,向所述设备端发送所述控制端的第二传输协议消息地址,向所述控制端发送所述设备端的第一传输协议消息地址;
    穿透单元,所述控制端根据所述设备端的第一传输协议消息地址,向设备端发送第二传输协议消息,同时接收设备端根据所述控制端的第二传输协议地址消息发送的第一传输协议消息,以实现在所述控制端和所述设备端之间进行穿透;
    第一传输单元,用于当穿透成功时,则使用传输协议与设备端进行数据传输;
    第二传输单元,用于当穿透失败时,则采用服务器转发与设备端进行数据传输;
    所述第一传输单元,用于当穿透成功时,使用传输协议在所述控制端和设备端之间传输所述经过第一密钥对和第二密钥对加密的传输协议数据包,所述第一密钥对和第二密钥对由服务器端动态生成,并发送到所述控制端和设备端,其中,将所述控制端和设备端之间需要传输的数据分成多个传输协议数据包,采用所述第一密钥对对所述每个传输协议数据包的首部进行加密,采用所述第二密钥对对所述每个传输协议数据包的数据部分进行加密。
PCT/CN2015/072658 2015-02-10 2015-02-10 家庭云服务系统的数据传输方法及装置 WO2016127314A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/072658 WO2016127314A1 (zh) 2015-02-10 2015-02-10 家庭云服务系统的数据传输方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/072658 WO2016127314A1 (zh) 2015-02-10 2015-02-10 家庭云服务系统的数据传输方法及装置

Publications (1)

Publication Number Publication Date
WO2016127314A1 true WO2016127314A1 (zh) 2016-08-18

Family

ID=56614989

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072658 WO2016127314A1 (zh) 2015-02-10 2015-02-10 家庭云服务系统的数据传输方法及装置

Country Status (1)

Country Link
WO (1) WO2016127314A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000998A (zh) * 2020-09-08 2020-11-27 四川铁集共联科技股份有限公司 一种防止数据丢失的方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815159A (zh) * 2009-12-31 2010-08-25 深圳创维-Rgb电子有限公司 一种智能家居电视控制系统
CN101873343A (zh) * 2010-06-03 2010-10-27 罗李敏 物联网组网方法及其系统
CN103346938A (zh) * 2013-06-25 2013-10-09 重庆邮电大学 一种基于云计算服务的智能家居系统
CN103942946A (zh) * 2013-12-31 2014-07-23 海尔集团公司 用于家电控制的云服务器
CN104243210A (zh) * 2014-09-17 2014-12-24 湖北盛天网络技术股份有限公司 远程访问路由器管理页面的方法和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815159A (zh) * 2009-12-31 2010-08-25 深圳创维-Rgb电子有限公司 一种智能家居电视控制系统
CN101873343A (zh) * 2010-06-03 2010-10-27 罗李敏 物联网组网方法及其系统
CN103346938A (zh) * 2013-06-25 2013-10-09 重庆邮电大学 一种基于云计算服务的智能家居系统
CN103942946A (zh) * 2013-12-31 2014-07-23 海尔集团公司 用于家电控制的云服务器
CN104243210A (zh) * 2014-09-17 2014-12-24 湖北盛天网络技术股份有限公司 远程访问路由器管理页面的方法和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000998A (zh) * 2020-09-08 2020-11-27 四川铁集共联科技股份有限公司 一种防止数据丢失的方法及系统

Similar Documents

Publication Publication Date Title
US11792169B2 (en) Cloud storage using encryption gateway with certificate authority identification
CN107018134B (zh) 一种配电终端安全接入平台及其实现方法
JP4746333B2 (ja) コンピューティングシステムの効率的かつセキュアな認証
US20170012949A1 (en) Dynamic identity verification and authentication continuous, dynamic one-time-pad/one-time passwords and dynamic distributed key infrastructure for secure communications with a single key for any key-based network security controls
US20180302269A1 (en) Failover in a Media Access Control Security Capable Device
US20180375644A1 (en) Introducing middleboxes into secure communications between a client and a server
WO2014063455A1 (zh) 即时通信方法和系统
WO2018231519A1 (en) Cloud storage using encryption gateway with certificate authority identification
JP4245972B2 (ja) 無線通信方法、無線通信装置、通信制御プログラム、通信制御装置、鍵管理プログラム、無線lanシステム、および記録媒体
CN113329012A (zh) 一种可信执行环境的快速认证方法及系统
WO2022179304A1 (zh) 一种用于dc互联的安全通信方法、装置及系统
CN109981271B (zh) 一种网络多媒体安全防护加密方法
CN211352206U (zh) 基于量子密钥分发的IPSec VPN密码机
US20030002676A1 (en) Method and apparatus to secure network communications
WO2007030989A1 (fr) Un systeme de gestion de reseau et le procede correspondant
CN100376092C (zh) 防火墙与入侵检测系统联动的方法
WO2016127314A1 (zh) 家庭云服务系统的数据传输方法及装置
JP2005020215A (ja) セキュア通信における障害復旧方法及びシステム
WO2016127316A1 (zh) 家庭云服务系统的数据传输方法、装置及家庭云服务系统
WO2019045424A1 (ko) 보안을 위한 보안 소켓 계층 복호화 방법
WO2016127315A1 (zh) 一种私有云系统的资源共享方法及装置
CN111490971B (zh) 一种通用医院信息化基础设施安全运维与审计方法
KR101239217B1 (ko) 고가용성 시스템, 고가용성 시스템의 장치 동기화 방법, 및 고가용성 시스템의 장치 관리 방법
WO2016127317A1 (zh) 一种私有云系统的资源共享方法及装置
Ahmat et al. Muses: Mobile user secured session

Legal Events

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

Ref document number: 15881476

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/01/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15881476

Country of ref document: EP

Kind code of ref document: A1