CN108551477B - Data transmission channel establishing system, network storage device, server and method - Google Patents

Data transmission channel establishing system, network storage device, server and method Download PDF

Info

Publication number
CN108551477B
CN108551477B CN201810266585.XA CN201810266585A CN108551477B CN 108551477 B CN108551477 B CN 108551477B CN 201810266585 A CN201810266585 A CN 201810266585A CN 108551477 B CN108551477 B CN 108551477B
Authority
CN
China
Prior art keywords
server
network storage
optimal
intelligent network
app
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810266585.XA
Other languages
Chinese (zh)
Other versions
CN108551477A (en
Inventor
李斌琦
米超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201810266585.XA priority Critical patent/CN108551477B/en
Priority to PCT/CN2018/092321 priority patent/WO2019184107A1/en
Publication of CN108551477A publication Critical patent/CN108551477A/en
Application granted granted Critical
Publication of CN108551477B publication Critical patent/CN108551477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers 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

The invention discloses a data transmission channel establishing system, a network storage device, a server and a method. The system comprises: the system comprises a control server, intelligent network storage equipment and terminal equipment; the control server receives TS server address request information of the intelligent network storage device and the terminal device APP, and feeds back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule; and the intelligent network storage equipment and the terminal equipment APP establish 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 equipment and the terminal equipment APP. The data transmission channel establishing system and the data transmission channel establishing method select the optimal TS server through the scheduling rule and establish the data transmission channel through the optimal TS server, so that the intelligent network storage device and the terminal device APP finish data transmission in the data transmission channel and with the help of the TS server, the bandwidth is saved, and the memory loss is reduced.

Description

Data transmission channel establishing system, network storage device, server and method
Technical Field
The present invention relates to data communication, and in particular, to a data transmission channel establishing system, a network storage device, a server, and a method.
Background
At present, a new generation of intelligent hardware, also referred to as network storage devices, also referred to as "earnable mobile cloud drives" is available. The new generation of intelligent hardware is difficult to directly transmit data with the terminal and can only assist the TS server to finish data interaction between the new generation of intelligent hardware and the terminal, but when the new generation of intelligent hardware is electrically connected with the TS server, memory can be greatly wasted, and in addition, when a terminal device APP sends a downloading request, the problem of slow data downloading occurs because of limited bandwidth.
Disclosure of Invention
In view of this, the data transmission channel establishing system and method provided by the invention can solve the technical problems in the prior art that the memory of the TS server is wasted, the downloading is slow, and the new generation of intelligent hardware cannot directly interact with the data of the terminal device APP.
In order to achieve the above object, an embodiment of the present invention provides a system for establishing a data transmission channel, which specifically includes:
the system comprises a control server, intelligent network storage equipment and terminal equipment;
the intelligent network storage device and the terminal device are respectively in communication connection with the control server;
the control server is used for receiving TS server address request information of the intelligent network storage device and the terminal device APP and feeding back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule;
and the intelligent network storage equipment and the terminal equipment APP establish 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 equipment and the terminal equipment APP.
Preferably, the control server is configured to receive TS server address request information of the intelligent network storage device and the terminal device APP, and feed back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule, and specifically includes:
the terminal device APP sends a request for obtaining a TS server address to the control server;
the control server feeds back the optimal TS server address to the terminal equipment APP according to the scheduling rule, and issues a session identification code to the terminal equipment APP;
the intelligent network storage equipment sends a request for acquiring a TS server address to the control server;
and the control server feeds back the optimal TS server address to the intelligent network storage equipment according to the scheduling rule, and issues the same session identification code to the intelligent network storage equipment.
Preferably, 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, which specifically includes:
the intelligent network storage device and the terminal device APP establish TCP three-way handshake with the optimal TS server respectively;
the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP;
and the optimal TS server establishes a data transmission channel for the intelligent network storage equipment and the terminal equipment APP according to the mapping connection relation.
Preferably, the optimal TS server establishes mapping connection 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, and specifically includes:
the intelligent network storage device and the terminal device APP respectively send the distribution request to the optimal TS server, wherein the distribution request comprises a universal unique identification code;
after receiving the distribution request, the optimal TS server distributes mapping ports for the intelligent network storage device and the terminal device APP, and stores the mapping ports in a Key-Value association structure;
the terminal device APP sends a connection request to the optimal TS server, wherein the connection request comprises the session identification code;
the optimal TS server searches a port address of a mapping relation to be established in a Key-Value association structure, and initiates TCP connection of the intelligent network storage equipment and the terminal equipment APP to the mapping port;
and the optimal TS server sends a connection response request to the terminal equipment APP so as to successfully establish a mapping relation, wherein the connection response request comprises a connection identification code attribute field.
Preferably, the establishing, by the optimal TS server, a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship specifically includes:
the optimal TS server sends an attempted connection request to the intelligent network storage device, wherein the attempted connection request comprises the connection identification code attribute field;
and the intelligent network storage equipment responds to the connection attempt request, establishes TCP three-way handshake connection with the terminal equipment APP through the optimal TS server according to the mapping connection relation, and establishes a data transmission channel.
In addition, to achieve the above object, an embodiment of the present invention further provides a method for establishing a data transmission channel, which specifically includes:
the control server receives TS server address request information of the intelligent network storage device and the terminal device APP, and feeds back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule;
and the intelligent network storage equipment and the terminal equipment APP establish 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 equipment and the terminal equipment APP.
Preferably, the method for the control server to receive TS server address request information of the intelligent network storage device and the terminal device APP and feed back an optimal TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rule specifically includes:
the terminal device APP sends a request for obtaining a TS server address to the control server;
the control server feeds back the optimal TS server address to the terminal equipment APP according to the scheduling rule, and issues a session identification code to the terminal equipment APP;
the intelligent network storage equipment sends a request for acquiring a TS server address to the control server;
and the control server feeds back the optimal TS server address to the intelligent network storage equipment according to the scheduling rule, and issues the same session identification code to the intelligent network storage equipment.
Preferably, the method for establishing the data transmission channel for the intelligent network storage device and the terminal device APP by the optimal TS server includes:
the intelligent network storage device and the terminal device APP establish TCP three-way handshake with the optimal TS server respectively;
the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP;
and the optimal TS server establishes a data transmission channel for the intelligent network storage equipment and the terminal equipment APP according to the mapping connection relation.
Preferably, the method for the optimal TS server to establish the mapping connection between 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 includes:
the intelligent network storage device and the terminal device APP respectively send the distribution request to the optimal TS server, wherein the distribution request comprises a universal unique identification code;
after receiving the distribution request, the optimal TS server distributes mapping ports for the intelligent network storage device and the terminal device APP, and stores the mapping ports in a Key-Value association structure;
the terminal device APP sends a connection request to the optimal TS server, wherein the connection request comprises the session identification code;
the optimal TS server searches a port address of a mapping relation to be established in a Key-Value association structure, and initiates TCP connection of the intelligent network storage equipment and the terminal equipment APP to the mapping port;
and the optimal TS server sends a connection response request to the terminal equipment APP so as to successfully establish a mapping relation, wherein the connection response request comprises a connection identification code attribute field.
Preferably, the method for establishing the data transmission channel for the intelligent network storage device and the terminal device APP by the optimal TS server according to the mapping connection relationship specifically includes:
the optimal TS server sends an attempted connection request to the intelligent network storage device, wherein the attempted connection request comprises the connection identification code attribute field;
and the intelligent network storage equipment responds to the connection attempt request, establishes TCP three-way handshake connection with the terminal equipment APP through the optimal TS server according to the mapping connection relation, and establishes a data transmission channel.
The data transmission channel establishing system and method provided by the embodiment of the invention select the optimal TS server through the scheduling rule, and establish the 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 rapidly transmit data through the data transmission channel under the assistance of the optimal TS server, the TS server performance is improved, the bandwidth is saved, and the memory loss is reduced.
In addition, in order to achieve the above object, an embodiment of the present invention further provides an intelligent network storage device, including:
the address request module is used for sending TS server address request information to the control server;
the receiving module is used for receiving the optimal TS server address fed back by the control server and the issued session identification code;
the connection module is used for establishing communication connection with the optimal TS server according to the optimal TS server address and the issued session identification code;
and the transmission module is used for carrying out data transmission with the terminal equipment through a 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, where:
the distribution request module is used for sending the distribution request to the optimal TS server;
the mapping response module is used for receiving the mapping port distributed by the optimal TS server and responding to the optimal TS server when port mapping is carried out;
and the connection response module is used for responding to the optimal TS server according to the mapping relation when receiving the request of trying to connect the optimal TS server.
In addition, in order to achieve the above object, an embodiment of the present invention further provides a control server, configured to receive TS server address request information of the intelligent network storage device and the terminal device APP, and feed back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule.
The intelligent network storage device provided by the embodiment of the invention can rapidly transmit data with the terminal device in the data transmission channel with the help of the TS server.
The control server provided by the embodiment of the invention can enable the TS server to establish the data transmission channel by scheduling the TS server, so that the intelligent network storage device and the terminal device APP can rapidly transmit data through the data transmission channel with the help of the optimal TS server.
Drawings
FIG. 1 is a block diagram of a data transmission channel establishment system according to an embodiment of the present invention;
fig. 2 is a data communication interaction diagram of an embodiment of the data transmission channel establishing system in fig. 1 for establishing a data transmission channel;
fig. 3 is a flowchart illustrating a data transmission channel establishing method according to a first embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data transmission channel establishing method according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a data transmission channel establishing method according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating a fourth embodiment of a data transmission channel establishing method according to the present invention;
FIG. 7 is a block diagram of an embodiment of an intelligent network storage device according to the invention;
fig. 8 is a block diagram of an embodiment of a sub-module of the connection module of fig. 7.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
Referring to fig. 1, fig. 1 is a block diagram illustrating a data transmission channel establishment system according to an embodiment of the present invention.
In the present embodiment, the data transmission channel establishment system includes a control server 10, an intelligent network storage device 20, and a terminal device 30.
Further, the control server 10 may be a far-field control server group, such as an access server (IS), a Transportation Management System server (TMS server), and the like. The intelligent network storage device 20 may be a new generation of intelligent hardware, or a mobile cloud disk, such as a player cloud. The terminal equipment is a mobile intelligent communication terminal, a PC terminal or other intelligent terminals.
Specifically, the intelligent network storage device 20 and the terminal device 30 are respectively in communication connection with the control server 10;
the control server 10 is configured to receive TS server address request information of the application APPs of the intelligent network storage device 20 and the terminal device 30, and feed back an optimal TS server address to the application APPs of the intelligent network storage device 20 and the terminal device 30 according to a scheduling rule.
Specifically, the optimal TS server may be not only one, but also multiple, and the scheduling rule may select the TS server with the largest weight or within a set weight range according to multiple factors such as an area where the TS server is located, network card capability, CPU occupancy rate, memory usage rate, and the like, according to the set weight.
And the applications APP of the intelligent network storage device 20 and the terminal device 30 establish 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 applications APP of the intelligent network storage device 20 and the terminal device 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 perform data interaction rapidly through the transfer channel, so that the use experience of a user of the terminal device 30 is improved, and the human-computer interaction sensitivity is improved.
Referring to fig. 2, fig. 2 is a data communication interaction diagram of an embodiment of the data transmission channel establishing system in fig. 1 for establishing a data transmission channel.
In the data communication interaction diagram, when a data transmission channel needs to be established, the terminal device APP sends a request for obtaining a TS server address to the control server, and meanwhile, the intelligent network storage device sends a request for obtaining the TS server address to the control server.
And the control server feeds back the optimal TS server address to the terminal equipment APP according to the scheduling rule and issues a session identification code to the terminal equipment APP, and meanwhile, the control server feeds back the optimal TS server address to the intelligent network storage equipment according to the scheduling rule and issues the same session identification code to the intelligent network storage equipment.
Specifically, the optimal TS server may be not only one, but also multiple, and the scheduling rule may select the TS server with the largest weight or within a set weight range according to multiple factors such as an area where the TS server is located, network card capability, CPU occupancy rate, memory usage rate, and the like, according to the set weight.
Further, the session identifier is a Unique encrypted key, the session identifier may be a UUID (universally Unique identifier)), the UUID is a globally Unique UUID allocated by the control server for the terminal device APP and the intelligent network storage device, the UUID is an identity identifier, and the terminal device APP and the intelligent network storage device can be matched by issuing the same UUID.
After the control server allocates the optimal TS server to the terminal device APP and the intelligent network storage device, the optimal TS server establishes a data transmission channel for the application program APP of the intelligent network storage device 20 and the terminal device 30, which specifically includes:
firstly, the intelligent network storage device and the terminal device APP establish TCP three-way handshake with the optimal TS server respectively. Specifically, connection is established through TCP three-way handshake, so that normal operation of subsequent communication interaction of the intelligent network storage device, the terminal device APP and the optimal TS server is guaranteed.
Then, the optimal TS server establishes mapping connection 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, and specifically includes:
step one, the intelligent network storage device and the terminal device APP respectively send distribution requests to the optimal TS server, wherein the distribution requests comprise universal unique identification codes. Specifically, the Universally Unique Identifier (UUID) has Unique identification information, and the allocation request includes the Universally Unique Identifier to ensure uniqueness of the allocation request and prevent confusion.
And step two, after receiving the distribution request, the optimal TS server distributes mapping ports for the intelligent network storage equipment and the terminal equipment APP, and stores the mapping ports in a Key-Value association structure. It should be noted that, after the intelligent network storage device and the terminal device APP are allocated with the mapping port, the establishment of the data transmission channel may be requested through the mapping port.
And step three, the terminal equipment APP sends a connection request to the optimal TS server, wherein the connection request comprises the session identification code, and the session identification code (UUID) is a globally unique UUID distributed by the control server for the terminal equipment APP and the intelligent network storage equipment.
Obviously, the current terminal device APP and the intelligent network storage device can be identified according to the session identifier (UUID).
And fourthly, the optimal TS server searches a port address of the mapping relation to be established in a Key-Value association structure, and initiates TCP connection of the intelligent network storage equipment and the terminal equipment APP to the mapping port, so that the mapping relation is established successfully. Obviously, the Key-Value association structure stores the mapping port.
Specifically, once the mapping port is determined, when data transmission occurs, TCP connection is performed through the port, and the TCP connection between the mapping port of the optimal TS server and the mapping port of the terminal device APP belongs to active connection, which requires the terminal device APP to send a request, and then the optimal TS server searches for a port address to be mapped in a Key-Value association structure, and then performs TCP connection of the mapping port.
And step five, the optimal TS server sends a connection response request to the terminal device APP, so that the mapping relation is successfully established, wherein the connection response request comprises a connection identification code attribute field. Specifically, the connection identification code attribute field is an attribute field which is allocated by the optimal TS server to the terminal device APP and is used for identifying request information, and provides an identifier for unique identification with the intelligent network storage device subsequently.
In this way, the optimal TS server successfully establishes mapping connection for the intelligent network storage device and the terminal device 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 the communication process specifically includes the following steps:
step one, 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, the connection identification code attribute field is the same as the connection identification code attribute field allocated to the terminal device APP by the optimal TS server, and the intelligent network storage device and the terminal device APP can be matched through the same connection identification code.
And step two, the intelligent network storage device responds to the connection attempt request, establishes TCP three-way handshake connection with the terminal device APP through the optimal TS server according to the mapping connection relation, and establishes a data transmission channel, wherein after the intelligent network storage device is matched with the terminal device APP through the same connection identification code, virtual connection can be established through TCP three-way handshake, and the data transmission channel is established.
Therefore, the optimal TS server successfully establishes a data transmission channel for the intelligent network storage device and the terminal device APP.
After the data transmission channel is established, the data transmission process of the intelligent network storage device and the terminal device APP comprises the following steps:
the intelligent network storage device and the terminal device APP respectively send binding requests to the optimal TS server, and the binding requests include the connection identifier attribute field, which is obviously the same as the connection identifier attribute field allocated to the terminal device APP by the optimal TS server.
And the optimal TS server is bound with the data transmission channel according to the mapping connection to obtain a single data transmission channel for data communication of the intelligent network storage device and the terminal device APP. After the binding is successful, the data transmission channel can be used as a transfer channel, so that the intelligent network storage device and the terminal device APP finish data transmission under the assistance of the TS server.
After the intelligent network storage device and the terminal device APP are bound, data transmission can be completed under the assistance of the TS server on the premise that other request requirements do not need to be sent.
The data transmission channel establishing system provided by the embodiment of the invention selects the optimal TS server through the scheduling rule, and establishes the 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 complete rapid data transmission through the data transmission channel and with the help of the TS server, the TS server performance is improved, the bandwidth is saved, and the memory loss is reduced.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for establishing a data transmission channel according to a first embodiment of the present invention.
In step S301, the control server receives TS server address request information of the intelligent network storage device and the terminal device APP, and feeds back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule.
Specifically, the optimal TS server may be not only one, but also multiple, and the scheduling rule may select the TS server with the largest weight or within a set weight range according to multiple factors such as an area where the TS server is located, network card capability, CPU occupancy rate, memory usage rate, and the like, according to the set weight.
In step S302, the intelligent network storage device and the terminal device APP establish a connection with a 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.
Specifically, when a data transmission channel needs to be established, the terminal device APP sends a request for obtaining a TS server address to the control server, and meanwhile, the intelligent network storage device sends a request for obtaining a TS server address to the control server.
And the control server feeds back the optimal TS server address to the terminal equipment APP according to the scheduling rule and issues a session identification code to the terminal equipment APP, and meanwhile, the control server feeds back the optimal TS server address to the intelligent network storage equipment according to the scheduling rule and issues the same session identification code to the intelligent network storage equipment.
Further, the session identification code is a unique encrypted key, the session identification code may be a UUID, the UUID is a globally unique UUID allocated by the control server for the terminal device APP and the intelligent network storage device, the UUID is an identification code, and the terminal device APP and the intelligent network storage device can be matched by issuing the same UUID.
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 perform data interaction rapidly through the transfer channel, so that the use experience of a user of the terminal device 30 is improved, and the human-computer interaction sensitivity is improved.
According to the data transmission channel establishing method provided by the embodiment of the invention, the optimal TS server is selected through the scheduling rule, and the data transmission channel is established 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 complete rapid data transmission through the data transmission channel and with the help of the TS server, the TS server performance is improved, the bandwidth is saved, and the memory loss is reduced.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of a method for establishing a data transmission channel according to the present invention. Specifically, fig. 4 is a schematic diagram of a specific flow process in which 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 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.
In step S401, the intelligent network storage device and the terminal device APP establish a TCP three-way handshake with the optimal TS server, respectively.
Specifically, virtual connection is established by establishing TCP three-time handshake so as to ensure normal operation of subsequent communication interaction of the intelligent network storage device, the terminal device APP and the optimal TS server.
In step S402, the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP.
In particular, a mapped connection may be connected through a port map.
In step S403, the terminal device APP performs TCP three-way handshake with the intelligent network storage device according to the mapping connection relationship, and establishes a data transmission channel.
Specifically, virtual connection can be established through TCP three-way handshake, and a data transmission channel is established
Preferably, the intelligent network storage device and the terminal device APP send binding requests to the optimal TS server, and the binding requests include the connection identifier attribute field, which is obviously the same as the connection identifier attribute field allocated to the terminal device APP by the optimal TS server.
And the optimal TS server is bound with the data transmission channel according to the mapping connection to obtain a single data transmission channel for data communication of the intelligent network storage device and the terminal device APP. After the binding is successful, the data transmission channel can be used as a transfer channel, so that the intelligent network storage device and the terminal device APP finish data transmission under the assistance of the TS server.
After the intelligent network storage device and the terminal device APP are bound, data transmission can be completed under the assistance of the TS server on the premise that other request requirements do not need to be sent.
According to the data transmission channel establishing method provided by the embodiment of the invention, the optimal TS server is selected through the scheduling rule, and the data transmission channel is established 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 complete rapid data transmission through the data transmission channel and with the help of the TS server, the TS server performance is improved, the bandwidth is saved, and the memory loss is reduced.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for establishing a data transmission channel according to a third embodiment of the present invention. Specifically, fig. 5 is a schematic flow chart illustrating that the optimal TS server in fig. 4 establishes mapping connection 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.
In step S501, the intelligent network storage device and the terminal device APP respectively send the allocation request to the optimal TS server, where the allocation request includes a universal unique identifier.
Specifically, the Universally Unique Identifier (UUID) has Unique identification information, and the allocation request includes the Universally Unique Identifier to ensure uniqueness of the allocation request and prevent confusion.
In step S502, after receiving the allocation request, the optimal TS server allocates mapping ports to the intelligent network storage device and the terminal device APP, and stores the mapping ports in a Key-Value association structure.
It should be noted that, after the intelligent network storage device and the terminal device APP are allocated with the mapping port, the establishment of the data transmission channel may be requested through the mapping port.
In step S503, the terminal device APP sends a connection request to the optimal TS server, where the connection request includes the session identification code.
The session identification code (UUID) is a globally unique UUID previously allocated by the control server to the terminal device APP and the intelligent network storage device.
Obviously, the current terminal device APP and the intelligent network storage device can be identified according to the session identifier (UUID).
In step S504, the optimal TS server searches for a port address where a mapping relationship is to be established in a Key-Value association structure, and initiates TCP connection of the intelligent network storage device and the terminal device APP to the mapping port. Obviously, the Key-Value association structure stores the mapping port.
Specifically, once the mapping port is determined, when data transmission occurs, TCP connection is performed through the port, and the TCP connection between the mapping port of the optimal TS server and the mapping port of the terminal device APP belongs to active connection, which requires the terminal device APP to send a request, and then the optimal TS server searches for a port address to be mapped in a Key-Value association structure, and then performs TCP connection of the mapping port.
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, where the connection response request includes a connection identity attribute field.
Specifically, the connection identification code attribute field is an attribute field which is allocated by the optimal TS server to the terminal device APP and is used for identifying request information, and provides an identifier for unique identification with the intelligent network storage device subsequently.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fourth embodiment of a method for establishing a data transmission channel according to the present invention. Specifically, fig. 6 is a schematic flow chart illustrating that the optimal TS server in fig. 4 establishes a data transmission channel for the intelligent network storage device and the terminal device APP according to the mapping connection relationship.
At step S601, the optimal TS server sends an attempt connection request to the intelligent network storage device, wherein the attempt connection request includes the connection identifier attribute field. The connection identification code attribute field is the same as the connection identification code attribute field allocated to the terminal device APP by the optimal TS server, and the intelligent network storage device and the terminal device APP can be matched through the same connection identification code.
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. After the intelligent network storage device is matched with the terminal device APP through the same connection identification code, virtual connection can be established through TCP three-way handshake, and a data transmission channel is established.
Preferably, the intelligent network storage device and the terminal device APP send binding requests to the optimal TS server, and the binding requests include the connection identifier attribute field, which is obviously the same as the connection identifier attribute field allocated to the terminal device APP by the optimal TS server.
And the optimal TS server is bound with the data transmission channel according to the mapping connection to obtain a single data transmission channel for data communication of the intelligent network storage device and the terminal device APP. After the binding is successful, the data transmission channel can be used as a transfer channel, so that the intelligent network storage device and the terminal device APP finish data transmission under the assistance of the TS server.
After the intelligent network storage device and the terminal device APP are bound, data transmission can be completed under the assistance of the TS server on the premise that other request requirements do not need to be sent.
According to the data transmission channel establishing method provided by the embodiment of the invention, the optimal TS server is selected through the scheduling rule, and the data transmission channel is established 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 complete rapid data transmission through the data transmission channel and with the help of the TS server, the TS server performance is improved, the bandwidth is saved, and the memory loss is reduced.
Referring to fig. 7, fig. 7 is a block diagram of an embodiment of an intelligent network storage device according to the present invention.
In this embodiment, the intelligent network storage device includes an address requesting module 700, a receiving module 702, a connecting module 704, and a transmitting module 706.
The address request module 700 is used for sending TS server address request information to the control server.
The receiving module 702 is configured to receive the optimal TS server address fed back by the control server and the delivered session identifier.
The connection module 704 is configured to establish a communication connection with the optimal TS server according to the optimal TS server address and the delivered session identifier.
Specifically, the optimal TS server may be not only one, but also multiple, and the scheduling rule may select the TS server with the largest weight or within a set weight range according to multiple factors such as an area where the TS server is located, network card capability, CPU occupancy rate, memory usage rate, and the like, according to the set weight.
The transmission module 706 is configured to perform data transmission with the terminal device through a data transmission channel established by the optimal TS server.
Further, referring to fig. 8, fig. 8 is a block diagram illustrating a sub-module of the connection module shown in fig. 7.
Specifically, the connection module 704 includes an allocation request module 7040, a mapping response module 7042, and a connection response module 7044.
The allocation request module 7040 is configured to send the allocation request to the optimal TS server.
Generally, the allocation request includes a universally unique identification code. And after receiving the distribution request, the optimal TS server distributes mapping ports for the intelligent network storage equipment and stores the mapping ports in an associated array.
The mapping response module 7042 is configured to receive the mapping port allocated by the optimal TS server, and respond to the optimal TS server when performing port mapping.
Specifically, the optimal TS server searches for a port address to be mapped in the association array, and initiates a TCP connection of the intelligent network storage device to the mapping port.
The connection response module 7044 is configured to, when receiving a connection attempt request from the optimal TS server, respond to the optimal TS server according to the mapping relationship.
Specifically, the optimal TS server sends a connection response request to the mobile device APP, so that the mapping relationship is successfully established.
The intelligent network storage device provided by the embodiment of the invention can rapidly transmit data with the terminal device in the data transmission channel with the help of the TS server.
The control server provided by the embodiment of the invention can enable the TS server to establish the data transmission channel by scheduling the TS server, so that the intelligent network storage device and the terminal device APP can rapidly transmit data through the data transmission channel with the help of the optimal TS server.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

Claims (10)

1. A data transmission channel establishment system, comprising:
the system comprises a control server, intelligent network storage equipment and terminal equipment;
the intelligent network storage device and the terminal device are respectively in communication connection with the control server;
the control server is used for receiving TS server address request information of the intelligent network storage device and the terminal device APP and feeding back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule; the scheduling rule selects the TS server with the maximum weight or within a set weight range according to the area where the TS server is located, the network card capability, the CPU occupancy rate and the memory utilization rate;
the intelligent network storage device and the terminal device APP establish 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 connection between the intelligent network storage device and the terminal device APP and the corresponding optimal TS server is established according to the optimal TS server address, and the connection method comprises the following steps:
the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP;
wherein, the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP, and comprises:
the intelligent network storage device and the terminal device APP respectively send the distribution request to the optimal TS server;
after receiving the distribution request, the optimal TS server distributes mapping ports for the intelligent network storage device and the terminal device APP, and stores the mapping ports in a Key-Value association structure;
the terminal device APP sends a connection request to the optimal TS server;
the optimal TS server searches a port address of a mapping relation to be established in a Key-Value association structure, and initiates TCP connection of the intelligent network storage equipment and the terminal equipment APP to the mapping port;
and the optimal TS server sends a connection response request to the terminal equipment APP, so that the mapping relation is successfully established.
2. The system according to claim 1, wherein the control server is configured to receive TS server address request information of the intelligent network storage device and the terminal device APP, and feed back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule, and specifically includes:
the terminal device APP sends a request for obtaining a TS server address to the control server;
the control server feeds back the optimal TS server address to the terminal equipment APP according to the scheduling rule, and issues a session identification code to the terminal equipment APP;
the intelligent network storage equipment sends a request for acquiring a TS server address to the control server;
and the control server feeds back the optimal TS server address to the intelligent network storage equipment according to the scheduling rule, and issues the same session identification code to the intelligent network storage equipment.
3. The system according to claim 2, wherein the intelligent network storage device and the terminal device APP establish a connection with a 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, and specifically includes:
the intelligent network storage device and the terminal device APP establish TCP three-way handshake with the optimal TS server respectively;
the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP;
and the optimal TS server establishes a data transmission channel for the intelligent network storage equipment and the terminal equipment APP according to the mapping connection relation.
4. A data transmission channel establishing system according to claim 3, wherein said allocation request includes a universally unique identifier, said connection request includes said session identifier, and said connection response request includes a connection identifier attribute field.
5. The system for establishing a data transmission channel according to claim 4, wherein 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 specifically includes:
the optimal TS server sends an attempted connection request to the intelligent network storage device, wherein the attempted connection request comprises the connection identification code attribute field;
and the intelligent network storage equipment responds to the connection attempt request, establishes TCP three-way handshake connection with the terminal equipment APP through the optimal TS server according to the mapping connection relation, and establishes a data transmission channel.
6. A method for establishing a data transmission channel, the method comprising:
the control server receives TS server address request information of the intelligent network storage device and the terminal device APP, and feeds back an optimal TS server address to the intelligent network storage device and the terminal device APP according to a scheduling rule; the scheduling rule selects the TS server with the maximum weight or within a set weight range according to the area where the TS server is located, the network card capability, the CPU occupancy rate and the memory utilization rate;
the intelligent network storage device and the terminal device APP establish 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 connection between the intelligent network storage device and the terminal device APP and the corresponding optimal TS server is established according to the optimal TS server address, and the connection method comprises the following steps:
the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP;
wherein, the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP, and comprises:
the intelligent network storage device and the terminal device APP respectively send the distribution request to the optimal TS server;
after receiving the distribution request, the optimal TS server distributes mapping ports for the intelligent network storage device and the terminal device APP, and stores the mapping ports in a Key-Value association structure;
the terminal device APP sends a connection request to the optimal TS server;
the optimal TS server searches a port address of a mapping relation to be established in a Key-Value association structure, and initiates TCP connection of the intelligent network storage equipment and the terminal equipment APP to the mapping port;
and the optimal TS server sends a connection response request to the terminal equipment APP, so that the mapping relation is successfully established.
7. The method according to claim 6, wherein the method for the control server to receive TS server address request information of the intelligent network storage device and the terminal device APP and to feed back an optimal TS server address to the intelligent network storage device and the terminal device APP according to the scheduling rule specifically includes:
the terminal device APP sends a request for obtaining a TS server address to the control server;
the control server feeds back the optimal TS server address to the terminal equipment APP according to the scheduling rule, and issues a session identification code to the terminal equipment APP;
the intelligent network storage equipment sends a request for acquiring a TS server address to the control server;
and the control server feeds back the optimal TS server address to the intelligent network storage equipment according to the scheduling rule, and issues the same session identification code to the intelligent network storage equipment.
8. The method according to claim 7, wherein the intelligent network storage device and the terminal device APP establish a connection with a 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, specifically comprising:
the intelligent network storage device and the terminal device APP establish TCP three-way handshake with the optimal TS server respectively;
the optimal TS server establishes mapping connection for the intelligent network storage device and the terminal device APP according to the allocation requests of the intelligent network storage device and the terminal device APP;
and the optimal TS server establishes a data transmission channel for the intelligent network storage equipment and the terminal equipment APP according to the mapping connection relation.
9. A data transmission channel establishing method according to claim 8, wherein the allocation request includes a universally unique identifier, the connection request includes the session identifier, and the connection response request includes a connection identifier attribute field.
10. The method according to claim 9, wherein 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 specifically includes:
the optimal TS server sends an attempted connection request to the intelligent network storage device, wherein the attempted connection request comprises the connection identification code attribute field;
and the intelligent network storage equipment responds to the connection attempt request, establishes TCP three-way handshake connection with the terminal equipment APP through the optimal TS server according to the mapping connection relation, and establishes a data transmission channel.
CN201810266585.XA 2018-03-28 2018-03-28 Data transmission channel establishing system, network storage device, server and method Active CN108551477B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810266585.XA CN108551477B (en) 2018-03-28 2018-03-28 Data transmission channel establishing 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 establishing system, network storage device, server and method

Publications (2)

Publication Number Publication Date
CN108551477A CN108551477A (en) 2018-09-18
CN108551477B true 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 establishing system, network storage device, server and method

Country Status (2)

Country Link
CN (1) CN108551477B (en)
WO (1) WO2019184107A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551477B (en) * 2018-03-28 2020-11-20 深圳市网心科技有限公司 Data transmission channel establishing system, network storage device, server and method
CN109413191A (en) * 2018-11-07 2019-03-01 深圳市网心科技有限公司 Data transmission method, electronic equipment and storage medium
CN113033565B (en) * 2021-03-10 2021-11-19 大象慧云信息技术有限公司 Electronic invoice data processing method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 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
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
CN107295290A (en) * 2016-04-05 2017-10-24 中兴通讯股份有限公司 A kind of recorded broadcast control method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
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
CN102625420B (en) * 2011-01-31 2017-03-15 中兴通讯股份有限公司 Method for network access and system
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
CN106789952B (en) * 2016-11-30 2020-05-15 用友优普信息技术有限公司 Method and system for serving local area network into internet
CN106657291A (en) * 2016-12-05 2017-05-10 乐视控股(北京)有限公司 Data transmission method, system and electronic equipment
CN106790471A (en) * 2016-12-12 2017-05-31 暴风集团股份有限公司 The method and system that data are transmitted between client and cloud disk based on LAN
CN206533403U (en) * 2017-03-14 2017-09-29 崔传荣 shared cloud storage system
CN106878453B (en) * 2017-03-14 2023-10-31 上海直真视通科技有限公司 Shared cloud storage method and system
CN108551477B (en) * 2018-03-28 2020-11-20 深圳市网心科技有限公司 Data transmission channel establishing system, network storage device, server and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115016A (en) * 2007-08-23 2008-01-30 创新科存储技术(深圳)有限公司 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
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

Also Published As

Publication number Publication date
CN108551477A (en) 2018-09-18
WO2019184107A1 (en) 2019-10-03

Similar Documents

Publication Publication Date Title
US9537786B2 (en) Method, device, and system for information processing based on distributed buses
JP2019537356A (en) Method of updating location area of user terminal, access network entity, user terminal and core network entity
CN108551477B (en) Data transmission channel establishing system, network storage device, server and method
US10560929B2 (en) Resource request method and system, device, and network side node
CN112367711B (en) Resource allocation method, device and system for network slice
KR101332813B1 (en) Wireless communication apparatus and method for generating wireless access channel thereof
CN114077480B (en) Method, device, equipment and medium for sharing memory between host and virtual machine
WO2015157949A1 (en) Wireless local area network (wlan) access method, terminal and server
EP2394222B1 (en) Method for transmitting virtualized data in cloud computing environment
US20130091502A1 (en) System and method of providing virtual machine using device cloud
CN110808948B (en) Remote procedure calling method, device and system
CN107528891B (en) Websocket-based automatic clustering method and system
KR102329095B1 (en) Network access method, related devices and systems
CN112689316B (en) Binding method and device of intelligent equipment, storage medium and electronic device
CN109862119A (en) Memory capacity sharing method, device, service server, user terminal and system
JP2021519465A (en) Access methods, Internet of Things platforms, applied equipment and service equipment
CN104734823A (en) Communication system, communication terminal, transfer tables and handshake communication method
US11265807B2 (en) Method for network sharing on a terminal, apparatus, air conditioner and storage medium
CN109088918A (en) A kind of exchange method, client device and server device
CN105451228A (en) Information processing method and device
CN101720085B (en) Application method and device of intelligent card
CN113900976B (en) DMA connection establishment method in federal learning
CN115550108A (en) USB data communication method and device based on hybrid network and computer equipment
CN115412329A (en) Information processing method and related device for Internet of things
CN114138895A (en) Data synchronization method and device for multiple data sources, computer equipment 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