CN108551477A - Data transmission channel establishment system, network storage device, server and method - Google Patents
Data transmission channel establishment system, network storage device, server and method Download PDFInfo
- Publication number
- CN108551477A CN108551477A CN201810266585.XA CN201810266585A CN108551477A CN 108551477 A CN108551477 A CN 108551477A CN 201810266585 A CN201810266585 A CN 201810266585A CN 108551477 A CN108551477 A CN 108551477A
- Authority
- CN
- China
- Prior art keywords
- server
- network storage
- storage device
- intelligent network
- terminal device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 134
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000013507 mapping Methods 0.000 claims description 77
- 230000004044 response Effects 0.000 claims description 25
- 230000006854 communication Effects 0.000 claims description 17
- 238000004891 communication Methods 0.000 claims description 16
- 208000000044 Amnesia Diseases 0.000 abstract description 6
- 208000026139 Memory disease Diseases 0.000 abstract description 6
- 230000006984 memory degeneration Effects 0.000 abstract description 6
- 208000023060 memory loss Diseases 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 11
- 230000003993 interaction Effects 0.000 description 10
- 239000002699 waste material Substances 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种数据传输通道建立系统、网络存储设备、服务器及方法。系统包括:控制服务器、智能网络存储设备以及终端设备;控制服务器接收智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给智能网络存储设备以及终端设备APP;智能网络存储设备以及终端设备APP根据最佳TS服务器地址与对应的最佳TS服务器建立连接,最佳TS服务器为智能网络存储设备以及终端设备APP建立数据传输通道。本发明提供的数据传输通道建立系统及方法通过调度规则选择最佳TS服务器,并通过该最佳TS服务器建立数据传输通道,使得智能网络存储设备以及终端设备APP在数据传输通道中并在TS服务器的协助下完成数据传输,节约带宽,降低内存损耗。
The invention discloses a system for establishing a data transmission channel, a network storage device, a server and a method. The system includes: control server, intelligent network storage device and terminal device; the control server receives the TS server address request information of the intelligent network storage device and terminal device APP, and feeds back the best TS server address to the intelligent network storage device and terminal device according to the scheduling rules APP; the intelligent network storage device and the terminal device APP establish a connection with the corresponding optimal TS server according to the optimal TS server address, and the optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP. The data transmission channel establishment system and method provided by the present invention select the best TS server through scheduling rules, and establish a data transmission channel through the best TS server, so that the intelligent network storage device and the terminal device APP are in the data transmission channel and in the TS server Data transmission is completed with the assistance of , saving bandwidth and reducing memory loss.
Description
技术领域technical field
本发明涉及数据通信,尤其涉及一种数据传输通道建立系统、网络存储设备、服务器及方法。The invention relates to data communication, in particular to a system for establishing a data transmission channel, a network storage device, a server and a method.
背景技术Background technique
目前,新一代智能硬件、或者也称之为网络存储设备,又或者也可以称之为“可赚钱的移动云盘”。这种新一代智能硬件很难直接与终端进行数据传输,只能借助TS服务器来协助两者之间来完成数据交互,但是,该新一代智能硬件与TS服务器进行上电连接时,会极大地浪费内存,另外,当终端设备APP发出下载请求时,因为带宽有限而出现数据下载缓慢的问题。At present, a new generation of smart hardware, or also known as network storage devices, or can also be called "money-making mobile cloud disk". It is difficult for this new generation of intelligent hardware to directly transmit data with the terminal, and the TS server can only be used to assist the two to complete data interaction. However, when the new generation of intelligent hardware is powered on and connected to the TS server, it will greatly It wastes memory. In addition, when the terminal device APP sends a download request, the problem of slow data download occurs due to limited bandwidth.
发明内容Contents of the invention
有鉴于此,本发明提供的一种数据传输通道建立系统及方法能够解决现有技术中TS服务器内存浪费、下载缓慢以及新一代智能硬件不能与终端设备APP不能直接数据交互的技术问题。In view of this, the system and method for establishing a data transmission channel provided by the present invention can solve the technical problems of TS server memory waste, slow downloading and the inability of the new generation of intelligent hardware to directly interact with the terminal device APP in the prior art.
为了实现上述目的,本发明实施例提供了一种数据传输通道建立系统,具体包括:In order to achieve the above purpose, an embodiment of the present invention provides a system for establishing a data transmission channel, which specifically includes:
控制服务器、智能网络存储设备以及终端设备;Control servers, intelligent network storage devices and terminal devices;
所述智能网络存储设备以及终端设备分别与所述控制服务器通信连接;The intelligent network storage device and the terminal device are respectively connected in communication with the control server;
所述控制服务器用于接收所述智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备以及终端设备APP;The control server is used to receive the TS server address request information of the intelligent network storage device and the terminal device APP, and feed back the best TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rule;
所述智能网络存储设备以及终端设备APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备以及终端设备APP建立数据传输通道。The intelligent network storage device and the terminal device APP establish a connection with the corresponding optimal TS server according to the optimal TS server address, and the optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP.
优选的,所述控制服务器用于接收所述智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备以及终端设备APP,具体包括:Preferably, the control server is used to receive the TS server address request information of the intelligent network storage device and the terminal device APP, and feed back the best TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rules, specifically include:
所述终端设备APP向所述控制服务器发送获取TS服务器地址的请求;The terminal device APP sends a request to the control server to obtain the address of the TS server;
所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述终端设备APP,并下发会话识别码给所述终端设备APP;The control server feeds back the optimal TS server address to the terminal device APP according to the scheduling rule, and sends a session identification code to the terminal device APP;
所述智能网络存储设备向所述控制服务器发送获取TS服务器地址的请求;The intelligent network storage device sends a request to the control server to obtain the address of the TS server;
所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述智能网络存储设备,并下发相同的所述会话识别码给所述智能网络存储设备。The control server feeds back the optimal TS server address to the intelligent network storage device according to the scheduling rule, and issues the same session identification code to the intelligent network storage device.
优选的,所述智能网络存储设备以及终端设备APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备以及终端设备APP建立数据传输通道,具体包括:Preferably, the intelligent network storage device and the terminal device APP establish a connection with the corresponding best TS server according to the address of the best TS server, and the best TS server establishes data for the smart network storage device and the terminal device APP Transmission channels, specifically including:
所述智能网络存储设备以及终端设备APP分别与所述最佳TS服务器建立TCP三次握手;The intelligent network storage device and the terminal device APP respectively establish a TCP three-way handshake with the best TS server;
所述最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接;The optimal TS server establishes a mapping connection to the intelligent network storage device and the terminal device APP according to the allocation request of the intelligent network storage device and the terminal device APP;
所述最佳TS服务器根据所述映射连接关系为所述智能网络存储设备以及终端设备APP建立数据传输通道。The optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship.
优选的,所述最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接,具体包括:Preferably, the optimal TS server establishes a mapping connection to the intelligent network storage device and the terminal device APP according to the allocation request of the intelligent network storage device and the terminal device APP, specifically including:
所述智能网络存储设备以及终端设备APP分别发送所述分配请求给所述最佳TS服务器,其中,所述分配请求包括通用唯一识别码;The intelligent network storage device and the terminal device APP respectively send the allocation request to the best TS server, wherein the allocation request includes a universal unique identification code;
所述最佳TS服务器接收到所述分配请求后,为所述智能网络存储设备以及终端设备APP分配映射端口,并将所述映射端口存储在Key-Value关联结构中;After the optimal TS server receives the allocation request, it allocates a mapping port for the intelligent network storage device and the terminal device APP, and stores the mapping port in the Key-Value association structure;
所述终端设备APP发送连接请求给所述最佳TS服务器,其中,所述连接请求包括所述会话识别码;The terminal device APP sends a connection request to the optimal TS server, wherein the connection request includes the session identification code;
所述最佳TS服务器在Key-Value关联结构中查找所要建立映射关系的端口地址,并发起所述智能网络存储设备以及终端设备APP对所述映射端口的TCP连接;The best TS server looks up the port address of the mapping relationship to be established in the Key-Value association structure, and initiates the TCP connection of the intelligent network storage device and the terminal device APP to the mapping port;
所述最佳TS服务器向所述终端设备APP发送连接响应请求,使得映射关系成功建立,其中,所述连接响应请求包括连接识别码属性字段。The optimal TS server sends a connection response request to the terminal device APP, so that the mapping relationship is successfully established, wherein the connection response request includes a connection identification code attribute field.
优选的,所述最佳TS服务器根据所述映射连接关系为所述智能网络存储设备以及终端设备APP建立数据传输通道,具体包括:Preferably, the optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship, specifically including:
所述最佳TS服务器向所述智能网络存储设备发送尝试连接请求,其中,所述尝试连接请求包括所述连接识别码属性字段;The optimal TS server sends a connection attempt request to the intelligent network storage device, wherein the connection attempt request includes the connection identification code attribute field;
所述智能网络存储设备响应所述尝试连接请求,并根据所述映射连接关系并通过所述最佳TS服务器与所述终端设备APP建立TCP三次握手连接,建立数据传输通道。The intelligent network storage device responds to the attempted connection request, and establishes a TCP three-way handshake connection with the terminal device APP through the best TS server according to the mapped connection relationship, and establishes a data transmission channel.
此外,为实现上述目的,本发明实施例还提供了一种数据传输通道建立方法,具体包括:In addition, in order to achieve the above purpose, the embodiment of the present invention also provides a method for establishing a data transmission channel, which specifically includes:
所述控制服务器接收所述智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备以及终端设备APP;The control server receives the TS server address request information of the intelligent network storage device and the terminal device APP, and feeds back the best TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rule;
所述智能网络存储设备以及终端设备APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备以及终端设备APP建立数据传输通道。The intelligent network storage device and the terminal device APP establish a connection with the corresponding optimal TS server according to the optimal TS server address, and the optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP.
优选的,所述控制服务器用于接收所述智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备以及终端设备APP的方法,具体包括:Preferably, the control server is used to receive the TS server address request information of the intelligent network storage device and the terminal device APP, and feed back the best TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rules , including:
所述终端设备APP向所述控制服务器发送获取TS服务器地址的请求;The terminal device APP sends a request to the control server to obtain the address of the TS server;
所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述终端设备APP,并下发会话识别码给所述终端设备APP;The control server feeds back the optimal TS server address to the terminal device APP according to the scheduling rule, and sends a session identification code to the terminal device APP;
所述智能网络存储设备向所述控制服务器发送获取TS服务器地址的请求;The intelligent network storage device sends a request to the control server to obtain the address of the TS server;
所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述智能网络存储设备,并下发相同的所述会话识别码给所述智能网络存储设备。The control server feeds back the optimal TS server address to the intelligent network storage device according to the scheduling rule, and issues the same session identification code to the intelligent network storage device.
优选的,所述智能网络存储设备以及终端设备APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备以及终端设备APP建立数据传输通道的方法,具体包括:Preferably, the intelligent network storage device and the terminal device APP establish a connection with the corresponding best TS server according to the address of the best TS server, and the best TS server establishes data for the smart network storage device and the terminal device APP The method of transmission channel, specifically including:
所述智能网络存储设备以及终端设备APP分别与所述最佳TS服务器建立TCP三次握手;The intelligent network storage device and the terminal device APP respectively establish a TCP three-way handshake with the best TS server;
所述最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接;The optimal TS server establishes a mapping connection to the intelligent network storage device and the terminal device APP according to the allocation request of the intelligent network storage device and the terminal device APP;
所述最佳TS服务器根据所述映射连接关系为所述智能网络存储设备以及终端设备APP建立数据传输通道。The optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship.
优选的,所述最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接的方法,具体包括:Preferably, the optimal TS server establishes a mapping connection method for the intelligent network storage device and the terminal device APP according to the allocation request of the intelligent network storage device and the terminal device APP, specifically comprising:
所述智能网络存储设备以及终端设备APP分别发送所述分配请求给所述最佳TS服务器,其中,所述分配请求包括通用唯一识别码;The intelligent network storage device and the terminal device APP respectively send the allocation request to the best TS server, wherein the allocation request includes a universal unique identification code;
所述最佳TS服务器接收到所述分配请求后,为所述智能网络存储设备以及终端设备APP分配映射端口,并将所述映射端口存储在Key-Value关联结构中;After the optimal TS server receives the allocation request, it allocates a mapping port for the intelligent network storage device and the terminal device APP, and stores the mapping port in the Key-Value association structure;
所述终端设备APP发送连接请求给所述最佳TS服务器,其中,所述连接请求包括所述会话识别码;The terminal device APP sends a connection request to the optimal TS server, wherein the connection request includes the session identification code;
所述最佳TS服务器在Key-Value关联结构中查找所要建立映射关系的端口地址,并发起所述智能网络存储设备以及终端设备APP对所述映射端口的TCP连接;The best TS server looks up the port address of the mapping relationship to be established in the Key-Value association structure, and initiates the TCP connection of the intelligent network storage device and the terminal device APP to the mapping port;
所述最佳TS服务器向所述终端设备APP发送连接响应请求,使得映射关系成功建立,其中,所述连接响应请求包括连接识别码属性字段。The optimal TS server sends a connection response request to the terminal device APP, so that the mapping relationship is successfully established, wherein the connection response request includes a connection identification code attribute field.
优选的,所述最佳TS服务器根据所述映射连接关系为所述智能网络存储设备以及终端设备APP建立数据传输通道的方法,具体包括:Preferably, the method for the best TS server to establish a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship specifically includes:
所述最佳TS服务器向所述智能网络存储设备发送尝试连接请求,其中,所述尝试连接请求包括所述连接识别码属性字段;The optimal TS server sends a connection attempt request to the intelligent network storage device, wherein the connection attempt request includes the connection identification code attribute field;
所述智能网络存储设备响应所述尝试连接请求,并根据所述映射连接关系并通过所述最佳TS服务器与所述终端设备APP建立TCP三次握手连接,建立数据传输通道。The intelligent network storage device responds to the attempted connection request, and establishes a TCP three-way handshake connection with the terminal device APP through the best TS server according to the mapped connection relationship, and establishes a data transmission channel.
本发明实施例提供的一种数据传输通道建立系统及方法通过调度规则选择最佳TS服务器,并通过该最佳TS服务器为智能网络存储设备以及终端设备APP建立数据传输通道,使得智能网络存储设备以及终端设备APP能够通过该数据传输通道在最佳TS服务器的协助下快速的进行数据传输,提升了TS服务器性能,节约带宽,降低内存损耗。A system and method for establishing a data transmission channel provided by an embodiment of the present invention selects the optimal TS server through scheduling rules, and establishes a data transmission channel for the intelligent network storage device and the terminal device APP through the optimal TS server, so that the intelligent network storage device And the terminal device APP can quickly transmit data through the data transmission channel with the assistance of the best TS server, which improves the performance of the TS server, saves bandwidth, and reduces memory loss.
此外,为了实现上述目的,本发明实施例还提供了一种智能网络存储设备,包括:In addition, in order to achieve the above object, an embodiment of the present invention also provides an intelligent network storage device, including:
地址请求模块,用于向控制服务器发送TS服务器地址请求信息;An address request module, configured to send TS server address request information to the control server;
接收模块,用于接收控制服务器反馈的最佳TS服务器地址以及下发的会话识别码;A receiving module, configured to receive the best TS server address fed back by the control server and the issued session identification code;
连接模块,用于根据所述最佳TS服务器地址以及下发的会话识别码与所述最佳TS服务器建立通信连接;A connection module, configured to establish a communication connection with the best TS server according to the address of the best TS server and the issued session identification code;
传输模块,用于通过最佳TS服务器建立的数据传输通道与终端设备进行数据传输。The transmission module is used for data transmission with the terminal equipment through the data transmission channel established by the optimal TS server.
优选的,所述连接模块包括分配请求模块、映射响应模块、连接响应模块,其中:Preferably, the connection module includes an allocation request module, a mapping response module, and a connection response module, wherein:
分配请求模块,用于发送所述分配请求给所述最佳TS服务器;An allocation request module, configured to send the allocation request to the best TS server;
映射响应模块,用于接收所述最佳TS服务器分配的映射端口,并在进行端口映射时响应所述最近TS服务器;A mapping response module, configured to receive the mapped port assigned by the best TS server, and respond to the nearest TS server when port mapping is performed;
连接响应模块,用于在接收到最佳TS服务器得尝试连接请求时,根据映射关系响应所述最近TS服务器。The connection response module is configured to respond to the nearest TS server according to the mapping relationship when receiving the connection attempt request of the best TS server.
此外,为了实现上述目的,本发明实施例还提供了控制服务器,用于接收智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备以及终端设备APP。In addition, in order to achieve the above object, the embodiment of the present invention also provides a control server, which is used to receive the TS server address request information of the intelligent network storage device and the terminal device APP, and feed back the best TS server address to the intelligent network according to the scheduling rule Storage device and terminal device APP.
本发明实施例提供的智能网络存储设备能够在TS服务器的协助下与终端设备在数据传输通道中快速的进行数据传输。The intelligent network storage device provided by the embodiment of the present invention can quickly perform data transmission with the terminal device in the data transmission channel with the assistance of the TS server.
本发明实施例提供的控制服务器能够通过调度TS服务器,使得TS服务器来建立数据传输通道使得智能网络存储设备以及终端设备APP能够通过该数据传输通道在最佳TS服务器的协助下快速的进行数据传输。The control server provided by the embodiment of the present invention can schedule the TS server so that the TS server can establish a data transmission channel so that the intelligent network storage device and the terminal device APP can quickly perform data transmission through the data transmission channel with the assistance of the best TS server .
附图说明Description of drawings
图1为本发明数据传输通道建立系统一实施方式的结构框图;Fig. 1 is a structural block diagram of an embodiment of the data transmission channel establishment system of the present invention;
图2为图1中数据传输通道建立系统进行数据传输通道建立一实施方式的数据通信交互图;FIG. 2 is a data communication interaction diagram of an implementation mode of establishing a data transmission channel by the data transmission channel establishment system in FIG. 1;
图3为本发明数据传输通道建立方法第一实施例的流程示意图;FIG. 3 is a schematic flowchart of a first embodiment of a method for establishing a data transmission channel according to the present invention;
图4为本发明数据传输通道建立方法第二实施例的流程示意图;4 is a schematic flowchart of a second embodiment of the method for establishing a data transmission channel according to the present invention;
图5为本发明数据传输通道建立方法第三实施例的流程示意图;5 is a schematic flowchart of a third embodiment of a method for establishing a data transmission channel according to the present invention;
图6为本发明数据传输通道建立方法第四实施例的流程示意图;6 is a schematic flowchart of a fourth embodiment of a method for establishing a data transmission channel according to the present invention;
图7为本发明智能网络存储设备一实施方式的结构框图;FIG. 7 is a structural block diagram of an embodiment of an intelligent network storage device according to the present invention;
图8为图7中连接模块的子模块一实施方式的结构框图。Fig. 8 is a structural block diagram of an embodiment of a sub-module of the connection module in Fig. 7 .
具体实施方式Detailed ways
下面,结合附图以及具体实施方式,对本发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。Below, the present invention will be further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of not conflicting, the various embodiments described below or the technical features can be combined arbitrarily to form new embodiments. .
参阅图1,图1为本发明数据传输通道建立系统一实施方式的结构框图。Referring to FIG. 1 , FIG. 1 is a structural block diagram of an embodiment of a system for establishing a data transmission channel according to the present invention.
在本实施方式中,数据传输通道建立系统包括控制服务器10、智能网络存储设备20以及终端设备30。In this embodiment, the data transmission channel establishment system includes a control server 10 , an intelligent network storage device 20 and a terminal device 30 .
进一步地,所述控制服务器10可以为远场控制服务器组,如接入服务器(Interface Services,IS)、运输管理系统服务器(Transportation Management System,TMS服务器)等。所述智能网络存储设备20可以为新一代智能硬件、或者移动云盘,如玩客云。所述终端设备为移动智能通信终端、PC终端或者请其他智能终端。Further, the control server 10 may be a group of far-field control servers, such as an access server (Interface Services, IS), a transportation management system server (Transportation Management System, TMS server) and the like. The intelligent network storage device 20 can be a new generation of intelligent hardware, or a mobile cloud disk, such as the Wanke cloud. The terminal equipment is a mobile intelligent communication terminal, a PC terminal or other intelligent terminals.
具体的,所述智能网络存储设备20以及终端设备30分别与所述控制服务器10通信连接;Specifically, the intelligent network storage device 20 and the terminal device 30 are respectively connected in communication with the control server 10;
所述控制服务器10用于接收所述智能网络存储设备20以及终端设备30的应用程序APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备20以及终端设备30的应用程序APP。The control server 10 is used to receive the TS server address request information of the application program APP of the intelligent network storage device 20 and the terminal device 30, and feed back the optimal TS server address to the intelligent network storage device 20 and the terminal according to the scheduling rules The application program APP of the device 30 .
具体的,所述最佳TS服务器不仅仅是一个,也可以是多个,所述调度规则可以依据TS服务器所处的区域、网卡能力、CPU占用率以及内存使用率等多个因素根据其设定的权重选择权重最大的或者设定权重范围内的TS服务器。Specifically, there may be more than one optimal TS server, and the scheduling rule may be set according to multiple factors such as the area where the TS server is located, network card capability, CPU occupancy rate, and memory usage rate. The specified weight selects the TS server with the highest weight or within the set weight range.
所述智能网络存储设备20以及终端设备30的应用程序APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备20以及终端设备30的应用程序APP建立数据传输通道。The application program APP of the intelligent network storage device 20 and the terminal device 30 establishes a connection with the corresponding optimal TS server according to the optimal TS server address, and the optimal TS server is the intelligent network storage device 20 and the terminal device The application program APP of 30 establishes a data transmission channel.
所述数据传输通道为TS服务器建立的中转通道,所述智能网络存储设备20以及终端设备30的应用程序APP可以通过该中转通道快速的进行数据交互,从而提高终端设备30的使用者的使用体验,提高了人机交互好感度。The data transmission channel is a transfer channel established by the TS server, and the application program APP of the intelligent network storage device 20 and the terminal device 30 can quickly perform data interaction through the transfer channel, thereby improving the user experience of the terminal device 30 , improving the favorability of human-computer interaction.
具体的数据传输通道建立过程请参阅图2,图2为图1中数据传输通道建立系统进行数据传输通道建立一实施方式的数据通信交互图。For the specific data transmission channel establishment process, please refer to FIG. 2 . FIG. 2 is a data communication interaction diagram of an implementation mode for establishing a data transmission channel by the data transmission channel establishment system in FIG. 1 .
在本数据通信交互图中,当需要建立数据传输通道时,所述终端设备APP向所述控制服务器发送获取TS服务器地址的请求,同时,所述智能网络存储设备向所述控制服务器发送获取TS服务器地址的请求。In this data communication interaction diagram, when a data transmission channel needs to be established, the terminal device APP sends a request to the control server to obtain the TS server address, and at the same time, the intelligent network storage device sends a request to the control server to obtain the TS server address. The request server address.
所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述终端设备APP,并下发会话识别码给所述终端设备APP,同时,所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述智能网络存储设备,并下发相同的所述会话识别码给所述智能网络存储设备。The control server feeds back the optimal TS server address to the terminal device APP according to the scheduling rule, and sends a session identification code to the terminal device APP, and at the same time, the control server feeds back the best TS server address according to the scheduling rule. The optimal TS server address is sent to the intelligent network storage device, and the same session identification code is issued to the intelligent network storage device.
具体的,所述最佳TS服务器不仅仅是一个,也可以是多个,所述调度规则可以依据TS服务器所处的区域、网卡能力、CPU占用率以及内存使用率等多个因素根据其设定的权重选择权重最大的或者设定权重范围内的TS服务器。Specifically, there may be more than one optimal TS server, and the scheduling rule may be set according to multiple factors such as the area where the TS server is located, network card capability, CPU occupancy rate, and memory usage rate. The specified weight selects the TS server with the highest weight or within the set weight range.
进一步地,所述会话识别码为唯一经过加密的密钥,会话识别码可以为UUID(Universally Unique Identifier)),该UUID为控制服务器为终端设备APP以及智能网络存储设备分配的全局唯一的UUID,该UUID为身份识别码,下发相同的UUID即可让终端设备APP以及智能网络存储设备能够匹配。Further, the session identification code is a unique encrypted key, and the session identification code may be a UUID (Universally Unique Identifier)), which is a globally unique UUID assigned by the control server to the terminal device APP and the intelligent network storage device, The UUID is an identification code, and the same UUID can be issued so that the terminal device APP and the intelligent network storage device can match.
控制服务器分配好最佳TS服务器给终端设备APP以及智能网络存储设备后,所述最佳TS服务器为所述智能网络存储设备20以及终端设备30的应用程序APP建立数据传输通道,具体包括:After the control server assigns the best TS server to the terminal device APP and the intelligent network storage device, the best TS server establishes a data transmission channel for the application program APP of the intelligent network storage device 20 and the terminal device 30, specifically including:
首先,所述智能网络存储设备以及终端设备APP分别与所述最佳TS服务器建立TCP三次握手。具体而言,通过TCP三次握手建立连接,以保证智能网络存储设备、终端设备APP以及最佳TS服务器后续的通信交互正常运行。First, the intelligent network storage device and the terminal device APP respectively establish a TCP three-way handshake with the optimal TS server. Specifically, the connection is established through the TCP three-way handshake to ensure the normal operation of subsequent communication interactions between the intelligent network storage device, the terminal device APP, and the best TS server.
然后,所述最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接,具体包括:Then, the optimal TS server establishes a mapping connection to the intelligent network storage device and the terminal device APP according to the allocation request of the intelligent network storage device and the terminal device APP, specifically including:
步骤一、所述智能网络存储设备以及终端设备APP分别发送分配请求给所述最佳TS服务器,其中,所述分配请求包括通用唯一识别码。具体而言,该通用唯一识别码(Universally Unique Identifier,UUID)拥有唯一的辨识资讯,该分配请求包含通用唯一识别码以保证分配请求的独特性,防止混淆。Step 1. The intelligent network storage device and the terminal device APP respectively send distribution requests to the optimal TS server, wherein the distribution requests include a universal unique identification code. Specifically, the Universally Unique Identifier (UUID) has unique identification information, and the distribution request includes the UUID to ensure the uniqueness of the distribution request and prevent confusion.
步骤二、所述最佳TS服务器接收到所述分配请求后,为所述智能网络存储设备以及终端设备APP分配映射端口,并将所述映射端口存储在Key-Value关联结构中。需要说明的是,当智能网络存储设备以及终端设备APP被分配映射端口后,即可通过该映射端口来请求数据传输通道的建立。Step 2: After receiving the allocation request, the optimal TS server allocates mapping ports for the intelligent network storage device and the terminal device APP, and stores the mapping ports in the Key-Value association structure. It should be noted that, after the intelligent network storage device and the terminal device APP are assigned a mapping port, they can request the establishment of a data transmission channel through the mapping port.
步骤三、所述终端设备APP发送连接请求给所述最佳TS服务器,其中,所述连接请求包括所述会话识别码,该会话识别码(UUID)为所述控制服务器为终端设备APP以及智能网络存储设备分配的全局唯一的UUID。Step 3, the terminal device APP sends a connection request to the best TS server, wherein the connection request includes the session identification code, and the session identification code (UUID) is that the control server is the terminal device APP and the smart phone A globally unique UUID assigned by a network storage device.
显然的,根据该会话识别码(UUID)可以识别出当前终端设备APP以及智能网络存储设备。Obviously, the current terminal device APP and the intelligent network storage device can be identified according to the session identification code (UUID).
步骤四,所述最佳TS服务器在Key-Value关联结构中查找所要建立映射关系的端口地址,并发起所述智能网络存储设备以及终端设备APP对所述映射端口的TCP连接,使得映射关系成功建立。显然的,该Key-Value关联结构存储有该映射端口。Step 4, the best TS server searches the Key-Value association structure for the port address to establish the mapping relationship, and initiates the TCP connection between the intelligent network storage device and the terminal device APP to the mapping port, so that the mapping relationship is successful Establish. Obviously, the Key-Value association structure stores the mapping port.
具体的,最佳TS服务器与所述智能网络存储设备的映射端口的TCP连接属于被动连接,即一旦确定了映射端口,当发生数据传输时,通过该端口进行TCP连接,而最佳TS服务器与所述终端设备APP的映射端口的TCP连接属于主动连接,需要终端设备APP发出请求,然后最佳TS服务器在Key-Value关联结构中查找所要建立映射关系的端口地址,继而进行映射端口的TCP连接。Specifically, the TCP connection between the best TS server and the mapped port of the intelligent network storage device is a passive connection, that is, once the mapped port is determined, when data transmission occurs, a TCP connection is made through this port, and the best TS server and The TCP connection of the mapped port of the terminal device APP is an active connection, and the terminal device APP needs to send a request, and then the best TS server searches the Key-Value association structure for the port address to establish the mapping relationship, and then performs the TCP connection of the mapped port .
步骤五,所述最佳TS服务器向所述终端设备APP发送连接响应请求,使得映射关系成功建立,其中,所述连接响应请求包括连接识别码属性字段。具体而言,所述连接识别码属性字段为所述最佳TS服务器分配给终端设备APP用于识别请求信息的属性字段,为后续与智能网络存储设备进行唯一识别提供标识。Step 5, the best TS server sends a connection response request to the terminal device APP, so that the mapping relationship is successfully established, wherein the connection response request includes a connection identification code attribute field. Specifically, the attribute field of the connection identification code is an attribute field assigned by the best TS server to the terminal device APP for identifying request information, and provides an identifier for subsequent unique identification with the intelligent network storage device.
这样,最佳TS服务器成功为所述智能网络存储设备以及终端设备APP建立映射连接。In this way, the optimal TS server successfully establishes a mapping connection for the intelligent network storage device and the terminal device APP.
最后,所述最佳TS服务器根据所述映射连接关系为所述智能网络存储设备以及终端设备APP建立数据传输通道,这一通信过程具体包括如下:Finally, the optimal TS server establishes a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship, and this communication process specifically includes the following:
步骤一,所述最佳TS服务器向所述智能网络存储设备发送尝试连接请求,其中,所述尝试连接请求包括所述连接识别码属性字段,其中,所述连接识别码属性字段为上述最佳TS服务器分配给终端设备APP的连接识别码属性字段相同,通过相同的连接识别码使得智能网络存储设备与终端设备APP能够匹配。Step 1, the best TS server sends a connection attempt request to the intelligent network storage device, wherein the connection attempt request includes the connection identification code attribute field, wherein the connection identification code attribute field is the above-mentioned best The attribute field of the connection identification code assigned by the TS server to the terminal device APP is the same, and the intelligent network storage device and the terminal device APP can be matched through the same connection identification code.
步骤二、所述智能网络存储设备响应所述尝试连接请求,并根据所述映射连接关系并通过所述最佳TS服务器与所述终端设备APP建立TCP三次握手连接,建立数据传输通道,其中,当智能网络存储设备与终端设备APP通过相同的连接识别码匹配后,可以通过TCP三次握手建立虚连接,并建立数据传输通道。Step 2: The intelligent network storage device responds to the attempted connection request, and establishes a TCP three-way handshake connection with the terminal device APP through the best TS server according to the mapped connection relationship, and establishes a data transmission channel, wherein, After the intelligent network storage device and the terminal device APP match through the same connection identification code, a virtual connection can be established through the TCP three-way handshake, and a data transmission channel can be established.
这样最佳TS服务器成功的为所述智能网络存储设备以及终端设备APP建立了数据传输通道。In this way, the optimal TS server successfully establishes a data transmission channel for the intelligent network storage device and the terminal device APP.
当数据传输通道建立之后,智能网络存储设备以及终端设备APP的数据传输过程包括如下:After the data transmission channel is established, the data transmission process of the intelligent network storage device and the terminal device APP includes the following:
所述智能网络存储设备以及终端设备APP分别发送绑定请求给所述最佳TS服务器,且所述绑定请求包括所述连接识别码属性字段,显然的,该连接识别码属性字段也与上述最佳TS服务器分配给终端设备APP的连接识别码属性字段相同。The intelligent network storage device and the terminal device APP respectively send a binding request to the best TS server, and the binding request includes the connection identification code attribute field. Obviously, the connection identification code attribute field is also the same as the above-mentioned The attribute field of the connection identification code assigned by the optimal TS server to the APP of the terminal device is the same.
所述最佳TS服务器根据所述映射连接与所述数据传输通道进行绑定,得到所述智能网络存储设备以及终端设备APP进行数据通信的单一数据传输通道。其中,当绑定成功后,该数据传输通道即可作为中转通道使得智能网络存储设备以及终端设备APP在TS服务器的协助下完成数据传输。The optimal TS server binds the data transmission channel according to the mapping connection, and obtains a single data transmission channel for data communication between the intelligent network storage device and the terminal device APP. Among them, when the binding is successful, the data transmission channel can be used as a transit channel to enable the intelligent network storage device and the terminal device APP to complete data transmission with the assistance of the TS server.
当智能网络存储设备以及终端设备APP经过绑定后,即可在不需要发送其他请求要求的前提下在TS服务器的协助下完成数据传输。After the intelligent network storage device and the terminal device APP are bound, data transmission can be completed with the assistance of the TS server without sending other requests.
本发明实施例提供的一种数据传输通道建立系统通过调度规则选择最佳TS服务器,并通过该最佳TS服务器为智能网络存储设备以及终端设备APP建立数据传输通道,使得智能网络存储设备以及终端设备APP通过该数据传输通道并在TS服务器的协助下完成快速的数据传输,提升了TS服务器性能,节约带宽,降低内存损耗。A system for establishing a data transmission channel provided by an embodiment of the present invention selects the best TS server through scheduling rules, and establishes a data transmission channel for the smart network storage device and the terminal device APP through the best TS server, so that the smart network storage device and the terminal The device APP completes fast data transmission through the data transmission channel and with the assistance of the TS server, which improves the performance of the TS server, saves bandwidth, and reduces memory loss.
参阅图3,图3为本发明建立数据传输通道方法第一实施例的流程示意图。Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a first embodiment of a method for establishing a data transmission channel according to the present invention.
在步骤S301,控制服务器接收智能网络存储设备以及终端设备APP的TS服务器地址请求信息,并根据调度规则反馈最佳TS服务器地址给所述智能网络存储设备以及终端设备APP。In step S301, the control server receives the TS server address request information of the intelligent network storage device and the terminal device APP, and feeds back the optimal TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rule.
具体的,所述最佳TS服务器不仅仅是一个,也可以是多个,所述调度规则可以依据TS服务器所处的区域、网卡能力、CPU占用率以及内存使用率等多个因素根据其设定的权重选择权重最大的或者设定权重范围内的TS服务器。Specifically, there may be more than one optimal TS server, and the scheduling rule may be set according to multiple factors such as the area where the TS server is located, network card capability, CPU occupancy rate, and memory usage rate. The specified weight selects the TS server with the highest weight or within the set weight range.
在步骤S302,所述智能网络存储设备以及终端设备APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备以及终端设备APP建立数据传输通道。In step S302, the smart network storage device and the terminal device APP establish a connection with the corresponding best TS server according to the address of the best TS server, and the best TS server establishes a connection for the smart network storage device and the terminal device APP Data transmission channel.
具体的,当需要建立数据传输通道时,所述终端设备APP向所述控制服务器发送获取TS服务器地址的请求,同时,所述智能网络存储设备向所述控制服务器发送获取TS服务器地址的请求。Specifically, when a data transmission channel needs to be established, the terminal device APP sends a request to the control server to obtain the address of the TS server, and at the same time, the intelligent network storage device sends a request to the control server to obtain the address of the TS server.
所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述终端设备APP,并下发会话识别码给所述终端设备APP,同时,所述控制服务器根据所述调度规则反馈所述最佳TS服务器地址给所述智能网络存储设备,并下发相同的所述会话识别码给所述智能网络存储设备。The control server feeds back the optimal TS server address to the terminal device APP according to the scheduling rule, and sends a session identification code to the terminal device APP, and at the same time, the control server feeds back the best TS server address according to the scheduling rule. The optimal TS server address is sent to the intelligent network storage device, and the same session identification code is issued to the intelligent network storage device.
进一步地,所述会话识别码为唯一经过加密的密钥,会话识别码可以为UUID,该UUID为控制服务器为终端设备APP以及智能网络存储设备分配的全局唯一的UUID,该UUID为身份识别码,下发相同的UUID即可让终端设备APP以及智能网络存储设备能够匹配。Further, the session identification code is a unique encrypted key, and the session identification code may be a UUID, which is a globally unique UUID assigned by the control server to the terminal device APP and the intelligent network storage device, and the UUID is an identity identification code , issuing the same UUID allows the terminal device APP and smart network storage device to match.
所述数据传输通道为TS服务器建立的中转通道,所述智能网络存储设备20以及终端设备30的应用程序APP可以通过该中转通道快速的进行数据交互,从而提高终端设备30的使用者的使用体验,提高了人机交互好感度。The data transmission channel is a transfer channel established by the TS server, and the application program APP of the intelligent network storage device 20 and the terminal device 30 can quickly perform data interaction through the transfer channel, thereby improving the user experience of the terminal device 30 , improving the favorability of human-computer interaction.
本发明实施例提供的一种数据传输通道建立方法通过调度规则选择最佳TS服务器,并通过该最佳TS服务器为智能网络存储设备以及终端设备APP建立数据传输通道,使得智能网络存储设备以及终端设备APP通过该数据传输通道并在TS服务器的协助下完成快速的数据传输,提升了TS服务器性能,节约带宽,降低内存损耗。A method for establishing a data transmission channel provided by an embodiment of the present invention selects the best TS server through scheduling rules, and establishes a data transmission channel for the smart network storage device and the terminal device APP through the best TS server, so that the smart network storage device and the terminal The device APP completes fast data transmission through the data transmission channel and with the assistance of the TS server, which improves the performance of the TS server, saves bandwidth, and reduces memory loss.
参阅图4,图4为本发明建立数据传输通道方法第二实施例的流程示意图。具体的,图4为图3中所述智能网络存储设备以及终端设备APP根据所述最佳TS服务器地址与对应的最佳TS服务器建立连接,所述最佳TS服务器为所述智能网络存储设备以及终端设备APP数据传输通道建立具体流程示意图。Referring to FIG. 4 , FIG. 4 is a schematic flowchart of a second embodiment of a method for establishing a data transmission channel according to the present invention. Specifically, Fig. 4 shows that the intelligent network storage device and the terminal device APP in Fig. 3 establish a connection with the corresponding optimal TS server according to the address of the optimal TS server, and the optimal TS server is the intelligent network storage device And a schematic diagram of the specific process for establishing the APP data transmission channel of the terminal device.
在步骤S401,所述智能网络存储设备以及终端设备APP分别与所述最佳TS服务器建立TCP三次握手。In step S401, the intelligent network storage device and the terminal device APP respectively establish a TCP three-way handshake with the optimal TS server.
具体而言,通过建立TCP三次握手来建立虚连接,以保证智能网络存储设备、终端设备APP以及最佳TS服务器后续的通信交互正常运行。Specifically, a virtual connection is established by establishing a TCP three-way handshake to ensure the normal operation of subsequent communication interactions between the intelligent network storage device, the terminal device APP, and the best TS server.
在步骤S402,所述最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接。In step S402, the optimal TS server establishes a mapping connection to the intelligent network storage device and the terminal device APP according to the allocation request of the intelligent network storage device and the terminal device APP.
具体而言,映射连接可以通过端口映射进行连接。Specifically, mapped connections can be connected through port mapping.
在步骤S403,所述终端设备APP根据所述映射连接关系与所述智能网络存储设备进行TCP三次握手,建立数据传输通道。In step S403, the terminal device APP performs a TCP three-way handshake with the intelligent network storage device according to the mapping connection relationship, and establishes a data transmission channel.
具体的,可以通过TCP三次握手建立虚连接,并建立数据传输通道Specifically, a virtual connection can be established through the TCP three-way handshake, and a data transmission channel can be established
优选的,所述智能网络存储设备以及终端设备APP分别发送绑定请求给所述最佳TS服务器,且所述绑定请求包括所述连接识别码属性字段,显然的,该连接识别码属性字段也与上述最佳TS服务器分配给终端设备APP的连接识别码属性字段相同。Preferably, the intelligent network storage device and the terminal APP respectively send a binding request to the best TS server, and the binding request includes the connection identification code attribute field, obviously, the connection identification code attribute field It is also the same as the attribute field of the connection identification code assigned to the terminal device APP by the above-mentioned optimal TS server.
所述最佳TS服务器根据所述映射连接与所述数据传输通道进行绑定,得到所述智能网络存储设备以及终端设备APP进行数据通信的单一数据传输通道。其中,当绑定成功后,该数据传输通道即可作为中转通道使得智能网络存储设备以及终端设备APP在TS服务器的协助下完成数据传输。The optimal TS server binds the data transmission channel according to the mapping connection, and obtains a single data transmission channel for data communication between the intelligent network storage device and the terminal device APP. Among them, when the binding is successful, the data transmission channel can be used as a transit channel to enable the intelligent network storage device and the terminal device APP to complete data transmission with the assistance of the TS server.
当智能网络存储设备以及终端设备APP经过绑定后,即可在不需要发送其他请求要求的前提下在TS服务器的协助下完成数据传输。After the intelligent network storage device and the terminal device APP are bound, data transmission can be completed with the assistance of the TS server without sending other requests.
本发明实施例提供的一种数据传输通道建立方法通过调度规则选择最佳TS服务器并通过该最佳TS服务器为智能网络存储设备以及终端设备APP建立数据传输通道,使得智能网络存储设备以及终端设备APP通过该数据传输通道并在TS服务器的协助下完成快速的数据传输,提升了TS服务器性能,节约带宽,降低内存损耗。A method for establishing a data transmission channel provided by an embodiment of the present invention selects the best TS server through scheduling rules and establishes a data transmission channel for the smart network storage device and the terminal device APP through the best TS server, so that the smart network storage device and the terminal device The APP completes fast data transmission through the data transmission channel and with the assistance of the TS server, which improves the performance of the TS server, saves bandwidth, and reduces memory loss.
参阅图5,图5为本发明建立数据传输通道方法第三实施例的流程示意图。具体的,图5为图4中最佳TS服务器根据所述智能网络存储设备以及终端设备APP的分配请求,对所述智能网络存储设备以及终端设备APP建立映射连接的流程示意图。Referring to FIG. 5 , FIG. 5 is a schematic flowchart of a third embodiment of a method for establishing a data transmission channel according to the present invention. Specifically, FIG. 5 is a schematic flow diagram of establishing a mapping connection for the intelligent network storage device and the terminal device APP by the optimal TS server in FIG. 4 according to the allocation request of the intelligent network storage device and the terminal device APP.
在步骤S501,所述智能网络存储设备以及终端设备APP分别发送所述分配请求给所述最佳TS服务器,其中,所述分配请求包括通用唯一识别码。In step S501, the intelligent network storage device and the terminal device APP respectively send the distribution request to the optimal TS server, wherein the distribution request includes a universal unique identification code.
具体而言,该通用唯一识别码(Universally Unique Identifier,UUID)拥有唯一的辨识资讯,该分配请求包含通用唯一识别码以保证分配请求的独特性,防止混淆。Specifically, the Universally Unique Identifier (UUID) has unique identification information, and the distribution request includes the UUID to ensure the uniqueness of the distribution request and prevent confusion.
在步骤S502,所述最佳TS服务器接收到所述分配请求后,为所述智能网络存储设备以及终端设备APP分配映射端口,并将所述映射端口存储在Key-Value关联结构中。In step S502, after receiving the assignment request, the best TS server assigns mapped ports to the intelligent network storage device and the terminal device APP, and stores the mapped ports in the Key-Value association structure.
需要说明的是,当智能网络存储设备以及终端设备APP被分配映射端口后,即可通过该映射端口来请求数据传输通道的建立。It should be noted that, after the intelligent network storage device and the terminal device APP are assigned a mapping port, they can request the establishment of a data transmission channel through the mapping port.
在步骤S503,所述终端设备APP发送连接请求给所述最佳TS服务器,其中,所述连接请求包括所述会话识别码。In step S503, the terminal device APP sends a connection request to the optimal TS server, wherein the connection request includes the session identification code.
该会话识别码(UUID)为之前控制服务器为终端设备APP以及智能网络存储设备分配的全局唯一的UUID。The session identification code (UUID) is the globally unique UUID assigned by the control server to the terminal device APP and the intelligent network storage device before.
显然的,根据该会话识别码(UUID)可以识别出当前终端设备APP以及智能网络存储设备。Obviously, the current terminal device APP and the intelligent network storage device can be identified according to the session identification code (UUID).
在步骤S504,所述最佳TS服务器在Key-Value关联结构中查找所要建立映射关系的端口地址,并发起所述智能网络存储设备以及终端设备APP对所述映射端口的TCP连接。显然的,该Key-Value关联结构存储有该映射端口。In step S504, the optimal TS server searches the Key-Value association structure for the port address to be mapped, and initiates a TCP connection between the intelligent network storage device and the terminal device APP to the mapped port. Obviously, the Key-Value association structure stores the mapping port.
具体的,最佳TS服务器与所述智能网络存储设备的映射端口的TCP连接属于被动连接,即一旦确定了映射端口,当发生数据传输时,通过该端口进行TCP连接,而最佳TS服务器与所述终端设备APP的映射端口的TCP连接属于主动连接,需要终端设备APP发出请求,然后最佳TS服务器在Key-Value关联结构中查找所要建立映射关系的端口地址,继而进行映射端口的TCP连接。Specifically, the TCP connection between the best TS server and the mapped port of the intelligent network storage device is a passive connection, that is, once the mapped port is determined, when data transmission occurs, a TCP connection is made through this port, and the best TS server and The TCP connection of the mapped port of the terminal device APP is an active connection, and the terminal device APP needs to send a request, and then the best TS server searches the Key-Value association structure for the port address to establish the mapping relationship, and then performs the TCP connection of the mapped port .
在步骤S505,所述最佳TS服务器向所述终端设备APP发送连接响应请求,使得映射关系成功建立,其中,所述连接响应请求包括连接识别码属性字段。In step S505, the optimal TS server sends a connection response request to the terminal device APP, so that the mapping relationship is successfully established, wherein the connection response request includes a connection identification code attribute field.
具体而言,所述连接识别码属性字段为所述最佳TS服务器分配给终端设备APP用于识别请求信息的属性字段,为后续与智能网络存储设备进行唯一识别提供标识。Specifically, the attribute field of the connection identification code is an attribute field assigned by the best TS server to the terminal device APP for identifying request information, and provides an identifier for subsequent unique identification with the intelligent network storage device.
参阅图6,图6为本发明建立数据传输通道方法第四实施例的流程示意图。具体的,图6为图4中所述最佳TS服务器根据所述映射连接关系为所述智能网络存储设备以及终端设备APP建立数据传输通道的流程示意图。Referring to FIG. 6 , FIG. 6 is a schematic flowchart of a fourth embodiment of a method for establishing a data transmission channel according to the present invention. Specifically, FIG. 6 is a schematic flowchart of the best TS server in FIG. 4 establishing a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship.
在步骤S601,所述最佳TS服务器向所述智能网络存储设备发送尝试连接请求,其中,所述尝试连接请求包括所述连接识别码属性字段。其中,所述连接识别码属性字段为上述最佳TS服务器分配给终端设备APP的连接识别码属性字段相同,通过相同的连接识别码使得智能网络存储设备与终端设备APP能够匹配。In step S601, the optimal TS server sends a connection attempt request to the intelligent network storage device, wherein the connection attempt request includes the connection identification code attribute field. Wherein, the attribute field of the connection identification code is the same as the attribute field of the connection identification code assigned to the terminal device APP by the above-mentioned optimal TS server, and the intelligent network storage device and the terminal device APP can be matched through the same connection identification code.
在步骤S602,所述智能网络存储设备以及终端设备APP分别发送TCP三次握手,建立数据传输通道。其中,当智能网络存储设备与终端设备APP通过相同的连接识别码匹配后,可以通过TCP三次握手建立虚连接,并建立数据传输通道。In step S602, the intelligent network storage device and the terminal device APP respectively send a TCP three-way handshake to establish a data transmission channel. Among them, when the intelligent network storage device and the terminal device APP are matched through the same connection identification code, a virtual connection can be established through the TCP three-way handshake, and a data transmission channel can be established.
优选的,所述智能网络存储设备以及终端设备APP分别发送绑定请求给所述最佳TS服务器,且所述绑定请求包括所述连接识别码属性字段,显然的,该连接识别码属性字段也与上述最佳TS服务器分配给终端设备APP的连接识别码属性字段相同。Preferably, the intelligent network storage device and the terminal APP respectively send a binding request to the best TS server, and the binding request includes the connection identification code attribute field, obviously, the connection identification code attribute field It is also the same as the attribute field of the connection identification code assigned to the terminal device APP by the above-mentioned optimal TS server.
所述最佳TS服务器根据所述映射连接与所述数据传输通道进行绑定,得到所述智能网络存储设备以及终端设备APP进行数据通信的单一数据传输通道。其中,当绑定成功后,该数据传输通道即可作为中转通道使得智能网络存储设备以及终端设备APP在TS服务器的协助下完成数据传输。The optimal TS server binds the data transmission channel according to the mapping connection, and obtains a single data transmission channel for data communication between the intelligent network storage device and the terminal device APP. Among them, when the binding is successful, the data transmission channel can be used as a transit channel to enable the intelligent network storage device and the terminal device APP to complete data transmission with the assistance of the TS server.
当智能网络存储设备以及终端设备APP经过绑定后,即可在不需要发送其他请求要求的前提下在TS服务器的协助下完成数据传输。After the intelligent network storage device and the terminal device APP are bound, data transmission can be completed with the assistance of the TS server without sending other requests.
本发明实施例提供的一种数据传输通道建立方法通过调度规则选择最佳TS服务器,并通过该最佳TS服务器为智能网络存储设备以及终端设备APP建立数据传输通道,使得智能网络存储设备以及终端设备APP通过该数据传输通道并在TS服务器的协助下完成快速的数据传输,提升了TS服务器性能,节约带宽,降低内存损耗。A method for establishing a data transmission channel provided by an embodiment of the present invention selects the best TS server through scheduling rules, and establishes a data transmission channel for the smart network storage device and the terminal device APP through the best TS server, so that the smart network storage device and the terminal The device APP completes fast data transmission through the data transmission channel and with the assistance of the TS server, which improves the performance of the TS server, saves bandwidth, and reduces memory loss.
参阅图7,图7为本发明智能网络存储设备一实施方式的结构框图。Referring to FIG. 7 , FIG. 7 is a structural block diagram of an embodiment of an intelligent network storage device according to the present invention.
在本实施方式中,智能网络存储设备包括地址请求模块700、接收模块702、连接模块704以及传输模块706。In this embodiment, the intelligent network storage device includes an address request module 700 , a receiving module 702 , a connection module 704 and a transmission module 706 .
地址请求模块700用于向控制服务器发送TS服务器地址请求信息。The address request module 700 is configured to send TS server address request information to the control server.
接收模块702用于接收控制服务器反馈的最佳TS服务器地址以及下发的会话识别码。The receiving module 702 is configured to receive the optimal TS server address fed back by the control server and the issued session identification code.
连接模块704用于根据所述最佳TS服务器地址以及下发的会话识别码与所述最佳TS服务器建立通信连接。The connection module 704 is configured to establish a communication connection with the best TS server according to the address of the best TS server and the issued session identification code.
具体的,所述最佳TS服务器不仅仅是一个,也可以是多个,所述调度规则可以依据TS服务器所处的区域、网卡能力、CPU占用率以及内存使用率等多个因素根据其设定的权重选择权重最大的或者设定权重范围内的TS服务器。Specifically, there may be more than one optimal TS server, and the scheduling rule may be set according to multiple factors such as the area where the TS server is located, network card capability, CPU occupancy rate, and memory usage rate. The specified weight selects the TS server with the highest weight or within the set weight range.
传输模块706用于通过最佳TS服务器建立的数据传输通道与终端设备进行数据传输。The transmission module 706 is configured to perform data transmission with the terminal device through the data transmission channel established by the optimal TS server.
进一步地,参阅图8,图8为图7中连接模块的子模块一实施方式的结构框图。Further, referring to FIG. 8 , FIG. 8 is a structural block diagram of an embodiment of a sub-module of the connection module in FIG. 7 .
具体的,连接模块704包括分配请求模块7040、映射响应模块7042以及连接响应模块7044。Specifically, the connection module 704 includes an allocation request module 7040 , a mapping response module 7042 and a connection response module 7044 .
分配请求模块7040用于发送所述分配请求给所述最佳TS服务器。The allocation request module 7040 is configured to send the allocation request to the optimal TS server.
一般而言,所述分配请求包括通用唯一识别码。最佳TS服务器接收到所述分配请求后,为所述智能网络存储设备分配映射端口,并将所述映射端口存储在关联数组中。Typically, the assignment request includes a UUID. After receiving the allocation request, the optimal TS server allocates a mapped port for the intelligent network storage device, and stores the mapped port in an associated array.
映射响应模块7042用于接收所述最佳TS服务器分配的映射端口,并在进行端口映射时响应所述最近TS服务器。The mapping response module 7042 is configured to receive the mapping port assigned by the best TS server, and respond to the closest TS server when performing port mapping.
具体的,最佳TS服务器在关联数组中查找所要建立映射关系的端口地址,并发起所述智能网络存储设备对所述映射端口的TCP连接。Specifically, the optimal TS server looks up the port address to establish a mapping relationship in the associative array, and initiates a TCP connection between the intelligent network storage device and the mapped port.
连接响应模块7044用于在接收到最佳TS服务器得尝试连接请求时,根据映射关系响应所述最近TS服务器。The connection response module 7044 is configured to respond to the closest TS server according to the mapping relationship when receiving the connection attempt request of the best TS server.
具体的,最佳TS服务器向所述移动设备APP发送连接响应请求,使得映射关系成功建立。Specifically, the optimal TS server sends a connection response request to the mobile device APP, so that the mapping relationship is successfully established.
本发明实施例提供的智能网络存储设备能够在TS服务器的协助下与终端设备在数据传输通道中快速的进行数据传输。The intelligent network storage device provided by the embodiment of the present invention can quickly perform data transmission with the terminal device in the data transmission channel with the assistance of the TS server.
本发明实施例提供的控制服务器能够通过调度TS服务器,使得TS服务器来建立数据传输通道使得智能网络存储设备以及终端设备APP能够通过该数据传输通道在最佳TS服务器的协助下快速的进行数据传输。The control server provided by the embodiment of the present invention can schedule the TS server so that the TS server can establish a data transmission channel so that the intelligent network storage device and the terminal device APP can quickly perform data transmission through the data transmission channel with the assistance of the best TS server .
上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The above-mentioned embodiment is only a preferred embodiment of the present invention, and cannot be used to limit the protection scope of the present invention. Any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention belong to the scope of the present invention. Scope of protection claimed.
Claims (13)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810266585.XA CN108551477B (en) | 2018-03-28 | 2018-03-28 | Data transmission channel establishment system, network storage device, server and method |
PCT/CN2018/092321 WO2019184107A1 (en) | 2018-03-28 | 2018-06-22 | System and method for establishing data transmission channel, network storage apparatus, server, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810266585.XA CN108551477B (en) | 2018-03-28 | 2018-03-28 | Data transmission channel establishment system, network storage device, server and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108551477A true CN108551477A (en) | 2018-09-18 |
CN108551477B CN108551477B (en) | 2020-11-20 |
Family
ID=63517170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810266585.XA Active CN108551477B (en) | 2018-03-28 | 2018-03-28 | Data transmission channel establishment system, network storage device, server and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108551477B (en) |
WO (1) | WO2019184107A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109413191A (en) * | 2018-11-07 | 2019-03-01 | 深圳市网心科技有限公司 | Data transmission method, electronic equipment and storage medium |
WO2019184107A1 (en) * | 2018-03-28 | 2019-10-03 | 深圳市网心科技有限公司 | System and method for establishing data transmission channel, network storage apparatus, server, and storage medium |
CN113033565A (en) * | 2021-03-10 | 2021-06-25 | 大象慧云信息技术有限公司 | Electronic invoice data processing method and system |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674538A (en) * | 2004-03-25 | 2005-09-28 | 联想(北京)有限公司 | Network storing system based on local network and its method for reading and writing data |
CN101115016A (en) * | 2007-08-23 | 2008-01-30 | 创新科存储技术(深圳)有限公司 | A method and system for implementing application server load balancing |
CN102118389A (en) * | 2010-12-28 | 2011-07-06 | 深圳市创新科信息技术有限公司 | Method for accessing storage device through internet small computer system interface (iSCSI) in multipath manner and storage device |
CN102625420A (en) * | 2011-01-31 | 2012-08-01 | 中兴通讯股份有限公司 | Network access method and system |
US8370302B2 (en) * | 2009-06-02 | 2013-02-05 | Hitachi, Ltd. | Method and apparatus for block based volume backup |
US8951127B2 (en) * | 2012-10-02 | 2015-02-10 | Nextbit Systems Inc. | Game state synchronization and restoration across multiple devices |
CN104581333A (en) * | 2015-01-30 | 2015-04-29 | 重庆邮电大学 | Intelligent television remote control system and control method based on cloud platform |
CN104967590A (en) * | 2014-09-18 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method, apparatus and system for transmitting communication message |
CN105025053A (en) * | 2014-04-24 | 2015-11-04 | 苏宁云商集团股份有限公司 | Distributed file upload method based on cloud storage technology and system |
CN105530666A (en) * | 2014-09-29 | 2016-04-27 | 中国电信股份有限公司 | Session binding method and session binding system |
CN106657291A (en) * | 2016-12-05 | 2017-05-10 | 乐视控股(北京)有限公司 | Data transmission method, system and electronic equipment |
CN106789952A (en) * | 2016-11-30 | 2017-05-31 | 用友优普信息技术有限公司 | A kind of LAN services interconnect the method and system of networking |
CN106878453A (en) * | 2017-03-14 | 2017-06-20 | 崔传荣 | Shared cloud storage method and system |
CN206533403U (en) * | 2017-03-14 | 2017-09-29 | 崔传荣 | shared cloud storage system |
CN107295290A (en) * | 2016-04-05 | 2017-10-24 | 中兴通讯股份有限公司 | A kind of recorded broadcast control method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685373B (en) * | 2012-09-10 | 2016-12-28 | 联想(北京)有限公司 | Data uploading device and data uploading method |
RU2659455C2 (en) * | 2014-03-17 | 2018-07-02 | Общество С Ограниченной Ответственностью "Яндекс" | File downloading managing in the cloud storage service method and device |
CN106790471A (en) * | 2016-12-12 | 2017-05-31 | 暴风集团股份有限公司 | The method and system that data are transmitted between client and cloud disk based on LAN |
CN108551477B (en) * | 2018-03-28 | 2020-11-20 | 深圳市网心科技有限公司 | Data transmission channel establishment system, network storage device, server and method |
-
2018
- 2018-03-28 CN CN201810266585.XA patent/CN108551477B/en active Active
- 2018-06-22 WO PCT/CN2018/092321 patent/WO2019184107A1/en active Application Filing
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1674538A (en) * | 2004-03-25 | 2005-09-28 | 联想(北京)有限公司 | Network storing system based on local network and its method for reading and writing data |
CN101115016A (en) * | 2007-08-23 | 2008-01-30 | 创新科存储技术(深圳)有限公司 | A method and system for implementing application server load balancing |
US8370302B2 (en) * | 2009-06-02 | 2013-02-05 | Hitachi, Ltd. | Method and apparatus for block based volume backup |
CN102118389A (en) * | 2010-12-28 | 2011-07-06 | 深圳市创新科信息技术有限公司 | Method for accessing storage device through internet small computer system interface (iSCSI) in multipath manner and storage device |
CN102625420A (en) * | 2011-01-31 | 2012-08-01 | 中兴通讯股份有限公司 | Network access method and system |
US8951127B2 (en) * | 2012-10-02 | 2015-02-10 | Nextbit Systems Inc. | Game state synchronization and restoration across multiple devices |
CN105025053A (en) * | 2014-04-24 | 2015-11-04 | 苏宁云商集团股份有限公司 | Distributed file upload method based on cloud storage technology and system |
CN104967590A (en) * | 2014-09-18 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method, apparatus and system for transmitting communication message |
CN105530666A (en) * | 2014-09-29 | 2016-04-27 | 中国电信股份有限公司 | Session binding method and session binding system |
CN104581333A (en) * | 2015-01-30 | 2015-04-29 | 重庆邮电大学 | Intelligent television remote control system and control method based on cloud platform |
CN107295290A (en) * | 2016-04-05 | 2017-10-24 | 中兴通讯股份有限公司 | A kind of recorded broadcast control method and device |
CN106789952A (en) * | 2016-11-30 | 2017-05-31 | 用友优普信息技术有限公司 | A kind of LAN services interconnect the method and system of networking |
CN106657291A (en) * | 2016-12-05 | 2017-05-10 | 乐视控股(北京)有限公司 | Data transmission method, system and electronic equipment |
CN106878453A (en) * | 2017-03-14 | 2017-06-20 | 崔传荣 | Shared cloud storage method and system |
CN206533403U (en) * | 2017-03-14 | 2017-09-29 | 崔传荣 | shared cloud storage system |
Non-Patent Citations (1)
Title |
---|
王晓勤: "基于云存储的网盘客户端的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019184107A1 (en) * | 2018-03-28 | 2019-10-03 | 深圳市网心科技有限公司 | System and method for establishing data transmission channel, network storage apparatus, server, and storage medium |
CN109413191A (en) * | 2018-11-07 | 2019-03-01 | 深圳市网心科技有限公司 | Data transmission method, electronic equipment and storage medium |
CN113033565A (en) * | 2021-03-10 | 2021-06-25 | 大象慧云信息技术有限公司 | Electronic invoice data processing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN108551477B (en) | 2020-11-20 |
WO2019184107A1 (en) | 2019-10-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9537786B2 (en) | Method, device, and system for information processing based on distributed buses | |
CN105025044B (en) | A device control method and system | |
CN101499995B (en) | A business scheduling method, system and device for business scheduling | |
CN106790420B (en) | A kind of more session channel method for building up and system | |
CN107528891B (en) | Websocket-based automatic clustering method and system | |
CN113691575B (en) | Communication method, device and system | |
CN110830574B (en) | Method for realizing intranet load balance based on docker container | |
CN113361913A (en) | Communication service arranging method, device, computer equipment and storage medium | |
CN115915289A (en) | Method, device, network element and medium for determining strategy or allocating resources of computing task | |
CN112968919B (en) | Data processing method, device, equipment and storage medium | |
CN108551477B (en) | Data transmission channel establishment system, network storage device, server and method | |
CN107465633A (en) | Method for managing resource and device based on software defined network | |
CN101720085B (en) | Application method and device of intelligent card | |
CN112737827A (en) | Resource allocation method, device and system | |
CN117615042A (en) | Data communication method, device, computer equipment and storage medium | |
WO2023035777A1 (en) | Network configuration method, proxy component, controller, electronic device and storage medium | |
CN111240867B (en) | Information communication system and method | |
KR102119160B1 (en) | Method for generating of access controllr based of virtualization annd server thereof | |
CN111294221B (en) | Network isolation configuration method and device based on haproxy | |
CN109257227B (en) | Coupling management method, device and system in data transmission | |
JP2010146246A (en) | Framework computer program for multi-agent system, network system and inter-agent communication method | |
KR101662801B1 (en) | Device redirection system for providing virtualization service | |
US9380085B2 (en) | Server and method for providing collaboration service, and sociality management server | |
CN114443317B (en) | Data sharing control method and system thereof | |
CN114650183B (en) | Resource management method, device, server and storage medium |
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 |