CN111988282B - Data transmission system, method, electronic device and medium based on TCP - Google Patents

Data transmission system, method, electronic device and medium based on TCP Download PDF

Info

Publication number
CN111988282B
CN111988282B CN202010747883.8A CN202010747883A CN111988282B CN 111988282 B CN111988282 B CN 111988282B CN 202010747883 A CN202010747883 A CN 202010747883A CN 111988282 B CN111988282 B CN 111988282B
Authority
CN
China
Prior art keywords
transmission
channel
server
data transmission
port
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
CN202010747883.8A
Other languages
Chinese (zh)
Other versions
CN111988282A (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.)
Hangzhou Super Technology Co ltd
Original Assignee
Hangzhou Super 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 Hangzhou Super Technology Co ltd filed Critical Hangzhou Super Technology Co ltd
Priority to CN202010747883.8A priority Critical patent/CN111988282B/en
Publication of CN111988282A publication Critical patent/CN111988282A/en
Application granted granted Critical
Publication of CN111988282B publication Critical patent/CN111988282B/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
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • 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/148Migration or transfer of 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/50Network services
    • H04L67/56Provisioning of proxy services

Abstract

The invention discloses a data transmission system based on TCP, which relates to the technical field of data transmission and comprises a client, a node pool and a source server, wherein the node pool is provided with a plurality of transfer servers; each transfer server is in communication connection with the client and the source server to obtain a transmission channel from the client to the source server through the corresponding transfer server; recording a transmission channel for data transmission as a current channel, recording a transfer server corresponding to the current channel as a current node, and switching the current channel to other transmission channels by a client or a source server when the current node is abnormal in communication so as to continue data transmission. The invention switches the transmission channel when the current node communication is abnormal, so that the data can be quickly recovered to be transmitted, and the time delay of the data interrupted in transmission is reduced. The invention also discloses a data transmission method based on the TCP, electronic equipment and a computer readable storage medium.

Description

Data transmission system, method, electronic device and medium based on TCP
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a TCP-based data transmission system, a TCP-based data transmission method, an electronic device, and a medium.
Background
The TCP/IP protocol is the most basic transmission protocol for network data transmission, and can establish a transmission channel between different devices by taking IP as a target address to realize data transmission and sharing. Specifically, before data transmission, after 3-way handshake with the peer device is required, a connection transmission channel is established, and data can be transmitted afterwards.
In the transmission process, when network abnormality is caused by client network failure, server network fluctuation or hacking, etc., a transmission channel is disconnected, so that the transmission of data is interrupted. After the transmission is interrupted, the client and the server need to be reconnected, but in the process of reconnection, the data transmission is still in an interrupted state, and the data transmission is resumed after the reconnection is successful, but the problem of transmission delay still occurs, so that the client experience is poor.
Disclosure of Invention
In order to overcome the defects of the prior art, an object of the present invention is to provide a TCP-based data transmission system, which performs transmission channel switching when a network is abnormal, so as to enable data to be quickly recovered from transmission, thereby reducing the delay of data with interrupted transmission.
One of the purposes of the invention is realized by adopting the following technical scheme:
a data transmission method based on TCP comprises a client, a node pool and a source server, wherein the node pool is provided with a plurality of transit servers; each transfer server is in communication connection with the client and the source server to obtain a transmission channel from the client to the source server through the corresponding transfer server;
recording a transmission channel for data transmission as a current channel, recording a transfer server corresponding to the current channel as a current node, and switching the current channel to other transmission channels by the client or the source server to continue data transmission when the current node is abnormal in communication.
Further, the client side is provided with a real port and a disguise port, the real port corresponds to the disguise port and is in communication connection with the disguise port, the disguise port is also in communication connection with the node pool, and the disguise port is used for executing data forwarding between the real port and the corresponding transmission channel.
Furthermore, the disguised ports correspond to the transit service terminals one to one and are in communication connection.
Another object of the present invention is to provide a TCP-based data transmission method, which performs transmission channel switching when a network is abnormal, so as to quickly resume transmission of data, thereby reducing the delay of data interrupted by transmission.
The second purpose of the invention is realized by adopting the following technical scheme:
establishing a plurality of transmission channels, wherein each transmission channel corresponds to a transfer server, and any transmission channel is in communication connection with a source server from a client through the corresponding transfer server;
selecting a transmission channel and recording the transmission channel as a current channel for data transmission, and recording a transfer server corresponding to the current channel as a current node;
and when the communication of the current node is abnormal, switching the current channel to other transmission channels to continue data transmission.
Further, the method also comprises the following steps:
acquiring a real port;
inquiring an idle port and recording as a covering port;
and the disguise port corresponds to the real port and establishes communication connection, and the disguise port is matched with a node pool in communication connection, wherein the node pool is provided with a plurality of transfer service terminals.
Further, selecting a transmission channel and recording as the current channel comprises the following steps:
sending a first signal to a corresponding relay server through each transmission channel, wherein any relay server responds to the first signal to generate feedback information, and the feedback information comprises the receiving time t2 of the first signal;
receiving feedback information sent by each transfer server through a transmission channel;
inquiring the sending time T1 of each first signal, and determining the transmission time length T of each first signal according to the sending time T1 and the receiving time T2 of each first signal;
and selecting the transmission channel corresponding to the shortest transmission time T as the current channel for continuing data transmission.
Further, the feedback information further includes a communication state of the relay server, and when the communication state of the relay server is abnormal, the relay server prohibits sending the feedback information or prohibits the corresponding transmission channel from being selected.
Further, switching the current channel to another transmission channel includes the following steps:
inquiring a transmission channel which is connected normally and recording as an effective channel;
inquiring the transmission time length T of each effective channel;
and selecting the transmission channel with the shortest transmission time T from the effective channels as a current channel.
It is a further object of the present invention to provide an electronic device comprising a processor, a storage medium, and a computer program stored in the storage medium, which when executed by the processor implements the above-mentioned TCP based data transmission method.
It is a fourth object of the present invention to provide a computer-readable storage medium storing one of the objects of the invention, having a computer program stored thereon, which when executed by a processor, implements the above-described TCP-based data transmission method.
Compared with the prior art, the invention has the beneficial effects that: by establishing a plurality of transmission channels, each transmission channel can be regarded as being connected in parallel between the client and the source server, when the client transmits data by using the current channel, the data is output by the client firstly and then is forwarded to the source server by the transfer server, so that the data transmission is realized; when the communication between the current node and the client or the source service is abnormal, the transmission channel cannot bear the data transmission, so that the client or the source service can switch the current channel to other transmission channels to quickly recover and continue the data transmission between the client and the source service, thereby reducing the delay of the data with interrupted transmission.
Drawings
Fig. 1 is a block diagram of a data transmission system according to an embodiment;
fig. 2 is a flowchart of a data transmission method according to a second embodiment;
FIG. 3 is a partial flowchart of step S20 according to the third embodiment;
FIG. 4 is a partial flowchart of step S30 according to the third embodiment;
fig. 5 is a block diagram of an electronic device according to a fourth embodiment.
In the figure: 1. a client; 2. a node pool; 21. a transfer server; 3. a source server side; 4. an electronic device; 41. a processor; 42. a memory; 43. an input device; 44. and an output device.
Detailed Description
The present invention will now be described in more detail with reference to the accompanying drawings, in which the description of the invention is given by way of illustration and not of limitation. The various embodiments may be combined with each other to form other embodiments not shown in the following description.
Example one
The embodiment provides a data transmission system based on TCP, and aims to solve the problem that in the existing TCP transmission process, once a client and a server are disconnected, data transmission is interrupted. Specifically, referring to fig. 1, the data transmission system includes a client 1, a node pool 2, and a source server 3.
The client 1 is used by a client, and needs to perform data interaction with the source server 3, and the client 1 supports environments such as a PC, an IOS, an Android, an HTML5, and the like, and may be, but not limited to, any one of a mobile phone, a tablet, a notebook, a server, and a processor.
The node pool 2 includes a plurality of transit servers 21. For any transit server 21, it is communicatively connected to the client 1 and also to the source server 3. The client 1 can realize the communication connection with the transit server 21 by means of three-way handshake. Correspondingly, the transit server 21 may also implement a communication connection with the source server 3 by means of three-way handshake. It can be noted that the number of the node pool 2 is not limited herein, and may be increased or decreased according to actual situations. The transit server 21 may be, but is not limited to, any one of an entity server, a cloud server, and a processor. It should be noted that, after receiving the data sent by the client 1/the source server 3, each transit server 21 stores the data to avoid data loss.
The source server 3 is in communication connection with each transit server 21, so that the client 1, the transit servers 21 and the source server 3 in the system are in a one-to-many, many-to-one architecture. The source server 3 may be, but is not limited to, any one of an entity server, a cloud server, and a processor.
It is worth mentioning here that the client 1, a transit server 21, and the source server 3 may obtain a transmission channel, which transmits data based on the TCP/IP protocol. Since the node pool 2 has a plurality of transit servers 21, the system has a plurality of transmission channels, and preferably 20 to 30.
It should be noted that, in general, the system has only one transmission channel to transmit data, and of course, multiple transmission channels may also transmit data. However, the system prefers one current channel in view of resource saving. Correspondingly, the transit server 21 corresponding to the current channel is recorded as the current node.
When the connection between the current node and the client 1 and/or the source server 3 is abnormal, that is, when the communication of the current node is abnormal, the client 1 and/or the source server 3 switches the current channel to another transmission channel to continue data transmission. The cause of the communication abnormality is not limited to one or more combinations of network fluctuation, disconnection, hacking, and the like.
The specific operation process of the technical scheme can refer to the following description, when the client 1 uses the current channel to transmit data, the data is output by the client 1, and then is forwarded to the source server 3 through the relay server 21, so that the data transmission is realized; when the connection between the current node and the client 1 and/or the source service is abnormal, the client 1 switches the current channel to another transmission channel to continue data transmission between the client 1 and the source service 3.
It should be further noted that, when capturing the data transmission IP, a hacker attack can only capture the corresponding transit server 21, but cannot obtain the IP of the source server 3, so that the security of the source server 3 is ensured, and the defense effect of the system is better improved in combination with the switching of the current channel.
In summary, by establishing a plurality of transmission channels, and all the other transmission channels are standby channels, the transmission channels are switched when the network is abnormal, so that the data can be quickly recovered from transmission, thereby reducing the delay of the data interrupted by transmission, and further improving the user experience.
As an optional solution, the client 1 further has a real port and a disguised port. The real port is a virtual port, which is a port for the client 1 to issue data; the disguised port is a free virtual port which is randomly obtained, the number of the real ports is the same as that of the disguised port, and then the client 1 corresponds the real ports to the disguised port and establishes communication connection, so that the real ports are prevented from being attacked by hackers.
The virtual port is connected with the node pool 2 in a matching way. It should be noted that the number of the real ports may be one or more, and since the masquerade ports correspond to the real ports one to one, the masquerade ports may be one or more. When there is one hidden port, the hidden port and the transit service 21 are "one-to-many", and when there are a plurality of hidden ports, there may be "one-to-many" between the hidden port and the transit service 21, or "one-to-one" between the hidden port and the transit service 21. And are not limited herein.
For a specific operation process of the technical solution, reference may be made to the following description, when the client 1 issues the data a, the data a sequentially passes through the real port, the disguised port, and the transit server 21. Similarly, the source server 3 may also be configured with a real port and a masquerade port, and the source server 3 issues the data b, and the data b sequentially passes through the masquerade port-real port 1-transit server 2.
Further, the disguised port is arranged in one-to-one correspondence with the transit server 21, that is, the real port, the disguised port and the transit server 21 are arranged in one-to-one correspondence, so that when the disguised port and the transit server 21 are attacked, the switching of the transmission channel is performed, and the real port and the client are protected.
Example two
The embodiment provides a data transmission method based on TCP, and aims to solve the problem that in the existing TCP transmission process, once a client is disconnected with a server, data transmission is interrupted. Specifically, referring to fig. 2, the data transmission method includes the following steps S10 to S30.
Step S10, establishing a plurality of transmission channels, wherein each transmission channel corresponds to a transfer server, and any server is connected to a source server from a client through the corresponding transfer server;
step S20, selecting a transmission channel and recording as the current channel for data transmission, and recording the transit server corresponding to the current channel as the current node;
and step S30, when the communication of the current node is abnormal, switching the current channel to other transmission channels to continue data transmission.
The execution device of the data transmission method can be a client or a source server. The method and the device perform switching of transmission channels when the network is abnormal so that data can be quickly recovered to be transmitted, and therefore delay of data interrupted in transmission is reduced. For specific description, reference may be made to the related description in the first embodiment, which is not repeated herein.
As an optional technical solution, the data transmission method further includes the following steps: acquiring a real port;
inquiring an idle port and recording as a covering port; and the disguise port corresponds to the real port and establishes communication connection, and the disguise port is matched with the real port to be connected with a node pool in a communication mode, wherein the node pool is provided with a plurality of transfer service terminals. Therefore, the defense capability of the system is improved, and the specific description of the step may refer to the related description in the first embodiment, which is not described herein again.
Furthermore, the disguise port and the transit server are arranged in a one-to-one correspondence manner, namely, the real port, the disguise port and the transit server are arranged in a one-to-one correspondence manner, so that when the disguise port and the transit server are attacked, the switching of the transmission channel is carried out, and the real port is protected.
Further, when the execution device is a client, the source server may also refer to the relevant settings of the client with respect to the real port and the disguise port, that is, the source server is also provided with the disguise port corresponding to the real port, and the disguise port is in communication connection with the node pool, so as to realize that data is transmitted in the "real port of the client-the virtual port of the client-the transit server-the disguise port of the source server-the real port of the source server", thereby improving the defense of the member server and improving the stability of the system; conversely, when the execution device is the source server, the client may refer to the above setting.
EXAMPLE III
The embodiment provides a data transmission method based on TCP, which is performed on the basis of the second embodiment. Specifically, referring to fig. 3, the step S20 of "selecting a transmission channel and recording as the current channel" includes steps S201 to S204.
Step S201, sending a first signal to a corresponding relay server via each transmission channel. The first signal may be a random packet. When the corresponding execution device outputs the first signal, it saves the transmission time t1 of the first signal.
The relay server receives the first signal, responds to the first signal to generate feedback information, and then sends the feedback information to the execution equipment. Wherein the feedback information includes the receiving time t2 of the first signal of the transit server.
Step S202, feedback information sent by each transfer server is received through a transmission channel.
Step S203, querying the sending time T1 of each first signal, and determining the transmission time length T of each first signal according to the sending time T1 and the receiving time T2 of the first signal, that is, T2-T1.
Step S204, selecting the transmission channel corresponding to the shortest transmission duration T as the current channel for data transmission. The shortest transmission time length T is selected to enable the speed of the current channel to be higher, so that the data transmission efficiency is improved.
It should be noted that, in the technical solution, each transmission channel may be opened, then a random data packet is sent to each transmission channel, and the transmission duration T corresponding to each transmission channel is determined according to steps S201 to S203, which may affect each other due to more opened transmission channels, so that the calculated transmission duration T is deviated from the actual transmission duration of data transmission after the current channel is opened, but the time spent in step S20 in the technical solution is short; in this technical solution, only one transmission channel may be opened, after receiving the feedback information, the transmission channel is closed and the next transmission channel is opened, and this is repeated until each transmission channel corresponds to the transmission duration T, and this technical solution simulates an actual process of data transmission, so that the calculated transmission duration T is closer to the actual transmission duration, but the time taken in step S20 is longer.
It can be understood that the execution device of the method is further provided with a duration threshold, and if the corresponding feedback information is not received within the duration threshold after the first signal is sent, the corresponding feedback information is abandoned and the next corresponding step is directly started, and the corresponding transmission duration can be recorded as zero. The duration threshold may be set by itself, and is not limited herein.
As an optional technical solution, the feedback information further includes a connection state of the relay server, and when the communication state of the relay server is abnormal, the relay server prohibits sending the feedback information or prohibits the corresponding transmission channel from being selected. The communication state of the transit server comprises the following steps: when any one of the connections is abnormal, the communication state of the transit server is considered to be abnormal, and the corresponding transmission channel should prohibit data transmission.
As an alternative solution, referring to fig. 4, the step S30 of "switching the current channel to another transmission channel" includes steps S301 to S303.
Step S301, inquiring and recording the transmission channel which is normally connected as an effective channel, namely, the corresponding transit server is normally connected with the client and the source server, and data can be transmitted.
It should be noted that, after the current channel is abnormal and switched, the previous current channel is reconnected to the client and the source server after the abnormal condition disappears, so as to be converted into an effective channel.
Step S302, inquiring the transmission time length T of each effective channel. The transmission time length T may be obtained in step S203 or may be updated. For example: after the selection of the current channel is completed, the execution device may also perform step S201 to step S203 individually to update each transmission duration T, so that the switching may be performed directly when the current channel is abnormal. The execution device may also perform step S201 to step S203 individually when the current channel is abnormal, so as to update each transmission duration T, and then perform switching of the transmission channels, which may ensure that the switched current channel is normal in operation, but may prolong the switching time.
Step S303, selecting the transmission channel with the shortest transmission time T from the effective channels as the current channel. By the technical scheme, the switching of the current channel is realized, and the reliability of the switched current channel is higher.
Example four
The electronic device 4 may be a desktop computer, a notebook computer, a server (a physical server or a cloud server), or even a mobile phone or a tablet computer,
fig. 5 is a schematic structural diagram of an electronic apparatus according to a fourth embodiment of the present invention, and as shown in fig. 5, the electronic apparatus 4 includes a processor 41, a memory 42, an input device 43, and an output device 44; the number of processors 41 in the computer device may be one or more, and one processor 41 is taken as an example in fig. 5; the processor 41, the memory 42, the input device 43 and the output device 44 in the electronic apparatus 4 may be connected by a bus or other means, and the bus connection is exemplified in fig. 5.
The memory 42, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules. The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. The memory 42 may be further configured to include memory remotely located from the processor 41 and connectable to the electronic device 4 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It is worth mentioning that the input means 43 may be used for receiving the acquired relevant data. The output device 44 may include a document or a display screen or the like display device. Specifically, when the output device 44 is a document, the corresponding information can be recorded in the document according to a specific format, so that data storage is realized, and data integration is also realized; when the output device 44 is a display device such as a display screen, the corresponding information is directly placed on the display device so that the user can conveniently view the information in real time.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, which contains computer-executable instructions, when executed by a computer processor, for performing the above TCP-based data transmission method, where the method includes:
establishing a plurality of transmission channels, wherein each transmission channel corresponds to a transfer server, and any transmission channel is in communication connection with a source server from a client through the corresponding transfer server;
selecting a transmission channel and recording the transmission channel as a current channel for data transmission, and recording a transfer server corresponding to the current channel as a current node;
and when the communication of the current node is abnormal, switching the current channel to other transmission channels to continue data transmission.
Of course, the embodiments of the present invention provide a computer-readable storage medium whose computer-executable instructions are not limited to the above method operations.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, and the computer software product may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FlASH Memory (FlASH), a hard disk or an optical disk of a computer, and includes several instructions to enable an electronic device (which may be a mobile phone, a personal computer, a server, or a network device) to execute the TCP-based data transmission method according to any embodiment or combination of embodiments of the second to third embodiments of the present invention.
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 (8)

1. A data transmission system based on TCP is characterized by comprising a client, a node pool and a source server, wherein the node pool is provided with a plurality of transit servers; each transfer server is in communication connection with the client and the source server to obtain a transmission channel from the client to the source server through the corresponding transfer server;
recording a transmission channel for data transmission as a current channel, recording a transfer server corresponding to the current channel as a current node, and switching the current channel to other transmission channels by the client or the source server to continue data transmission when the current node is abnormal in communication;
the client or the source server selects any current channel, including:
sending a first signal to a corresponding transit server through each transmission channel, wherein any transit server responds to the first signal to generate feedback information, the feedback information comprises the receiving time t2 of the first signal, the feedback information further comprises the communication state of the transit server, and when the communication state of the transit server is abnormal, the transit server prohibits sending the feedback information or the corresponding transmission channel from being selected;
receiving feedback information sent by each transfer server through a transmission channel, wherein if the corresponding feedback information is not received within a time threshold after the first signal is sent out, the corresponding feedback information is abandoned;
inquiring the sending time T1 of each first signal, and determining the transmission time length T of each first signal according to the sending time T1 and the receiving time T2 of each first signal;
and selecting the transmission channel corresponding to the shortest transmission time T as the current channel for continuing data transmission.
2. The TCP based data transmission system according to claim 1, wherein the client has a real port and a masquerade port, the real port is corresponding to and communicatively connected to the masquerade port, the masquerade port is further communicatively connected to the node pool, and is configured to perform data forwarding between the real port and a corresponding transmission channel.
3. The TCP-based data transmission system of claim 2, wherein the disguised ports are one-to-one and communicatively connected to the transit server.
4. A data transmission method based on TCP is characterized by comprising the following steps:
establishing a plurality of transmission channels, wherein each transmission channel corresponds to a transfer server, and any transmission channel is in communication connection with a source server from a client through the corresponding transfer server;
selecting a transmission channel and recording the transmission channel as a current channel for data transmission, and recording a transfer server corresponding to the current channel as a current node;
when the communication of the current node is abnormal, switching the current channel to other transmission channels to continue data transmission;
selecting a transmission channel and recording as a current channel, comprising the following steps:
sending a first signal to a corresponding transit server through each transmission channel, wherein any transit server responds to the first signal to generate feedback information, the feedback information comprises the receiving time t2 of the first signal, the feedback information further comprises the communication state of the transit server, and when the communication state of the transit server is abnormal, the transit server prohibits sending the feedback information or the corresponding transmission channel from being selected;
receiving feedback information sent by each transfer server through a transmission channel, wherein if the corresponding feedback information is not received within a time threshold after the first signal is sent out, the corresponding feedback information is abandoned;
inquiring the sending time T1 of each first signal, and determining the transmission time length T of each first signal according to the sending time T1 and the receiving time T2 of each first signal;
and selecting the transmission channel corresponding to the shortest transmission time T as the current channel for continuing data transmission.
5. The TCP-based data transmission method according to claim 4, further comprising the steps of:
acquiring a real port;
inquiring an idle port and recording as a covering port;
and the disguise port corresponds to the real port and establishes communication connection, and the disguise port is matched with a node pool in communication connection, wherein the node pool is provided with a plurality of transfer service terminals.
6. The TCP-based data transmission method according to claim 4, wherein switching the current channel to another transmission channel comprises the steps of:
inquiring a transmission channel which is connected normally and recording as an effective channel;
inquiring the transmission time length T of each effective channel;
and selecting the transmission channel with the shortest transmission time T from the effective channels as a current channel.
7. An electronic device comprising a processor, a storage medium, and a computer program, the computer program being stored in the storage medium, wherein the computer program, when executed by the processor, implements the TCP based data transmission method of any of claims 4 to 6.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the TCP based data transmission method according to any one of claims 4 to 6.
CN202010747883.8A 2020-07-30 2020-07-30 Data transmission system, method, electronic device and medium based on TCP Active CN111988282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010747883.8A CN111988282B (en) 2020-07-30 2020-07-30 Data transmission system, method, electronic device and medium based on TCP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010747883.8A CN111988282B (en) 2020-07-30 2020-07-30 Data transmission system, method, electronic device and medium based on TCP

Publications (2)

Publication Number Publication Date
CN111988282A CN111988282A (en) 2020-11-24
CN111988282B true CN111988282B (en) 2021-09-07

Family

ID=73445821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010747883.8A Active CN111988282B (en) 2020-07-30 2020-07-30 Data transmission system, method, electronic device and medium based on TCP

Country Status (1)

Country Link
CN (1) CN111988282B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037755B (en) * 2021-03-10 2023-06-16 海能达通信股份有限公司 Method and equipment for defending network connection attack

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360054A (en) * 2008-09-26 2009-02-04 腾讯科技(深圳)有限公司 Data transmission system and method
CN104683165A (en) * 2013-11-27 2015-06-03 北京天地超云科技有限公司 Monitor method for virtual machine network data in Xen virtual environment
CN105763618A (en) * 2016-03-31 2016-07-13 网宿科技股份有限公司 Method and device for data transmission

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310161B (en) * 2012-03-14 2016-08-03 北京海泰方圆科技股份有限公司 A kind of means of defence for Database Systems and system
CN106295387A (en) * 2015-06-05 2017-01-04 北京壹人壹本信息科技有限公司 A kind of safety protecting method and device
CN105306388A (en) * 2015-11-06 2016-02-03 西安交大捷普网络科技有限公司 Port data mirroring implementation method based on netfilter framework

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360054A (en) * 2008-09-26 2009-02-04 腾讯科技(深圳)有限公司 Data transmission system and method
CN104683165A (en) * 2013-11-27 2015-06-03 北京天地超云科技有限公司 Monitor method for virtual machine network data in Xen virtual environment
CN105763618A (en) * 2016-03-31 2016-07-13 网宿科技股份有限公司 Method and device for data transmission

Also Published As

Publication number Publication date
CN111988282A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
JP6081031B2 (en) Attack observation device and attack observation method
US9231907B2 (en) Method for establishing connection between communication apparatuses, communication apparatus, and server apparatus
US9054923B2 (en) Communication terminal, communication method, and program
EP2991292A1 (en) Network collaborative defense method, device and system
US9800593B2 (en) Controller for software defined networking and method of detecting attacker
CN105491060A (en) Method and device for defending attack of distribution denial of service (DDOS), client and defense device
JP6193185B2 (en) Communication device, terminal device, and program
CN111970334A (en) Data transmission method and device based on TCP, electronic equipment and medium
EP3089435B1 (en) Service processing method and network device
CN110177128B (en) Data transmission system and method for establishing VPN connection, terminal and VPN proxy thereof
CN109257392B (en) Command processing method, device, server and storage medium
CN111988282B (en) Data transmission system, method, electronic device and medium based on TCP
JP5937709B1 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
CN111405560B (en) Communication method, device, equipment and storage medium
WO2012107983A1 (en) Relay server and relay communication system
CN103227822A (en) Method for establishing P2P communication connection and equipment
US9455911B1 (en) In-band centralized control with connection-oriented control protocols
JP5937708B1 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
KR101730405B1 (en) Method of managing network route and network entity enabling the method
JP2011160286A (en) Call control server, relay server, vpn device, vpn communication system, vpn networking method, program, and storage medium
JP6426118B2 (en) Relay apparatus, relay method and relay program
EP3253004B1 (en) Communication control device, communication control method, and communication control program
CN107005840B (en) Device discovery using discovery nodes
KR101538667B1 (en) Network system and method for controlling network
KR101242765B1 (en) Security appratus and method for processing asymmetric traffic

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