CN111835721A - Communication method and communication equipment based on link active state addressing - Google Patents
Communication method and communication equipment based on link active state addressing Download PDFInfo
- Publication number
- CN111835721A CN111835721A CN202010523357.3A CN202010523357A CN111835721A CN 111835721 A CN111835721 A CN 111835721A CN 202010523357 A CN202010523357 A CN 202010523357A CN 111835721 A CN111835721 A CN 111835721A
- Authority
- CN
- China
- Prior art keywords
- link
- tcp
- active
- active state
- data
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 52
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000005540 biological transmission Effects 0.000 claims description 16
- 230000009191 jumping Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 3
- 206010033799 Paralysis Diseases 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Security & Cryptography (AREA)
- Communication Control (AREA)
Abstract
The invention provides a communication method based on link active state addressing, which is applied to communication equipment with a plurality of TCP links. The active state of the corresponding TCP link can be determined on the local equipment through data receiving and sending statistics of the TCP link, the current active TCP link is preferentially selected for data sending, the risk of data congestion is greatly reduced, and meanwhile, the current existing TCP link is still selected for data sending when no active TCP link exists, so that data is not lost, and the robustness of the system is improved; the compatibility of the local communication equipment can be greatly improved, and when a part of TCP links of the opposite side communication equipment enter an error state, the service data among the communication equipment can still be kept uninterrupted.
Description
Technical Field
The present invention relates to the field of information communication, and in particular, to a communication method and a communication device based on link active state addressing.
Background
In the field of information communication, more and more communication devices communicate with each other based on the Transmission Control Protocol (TCP). In order to improve the throughput rate of the traffic between the devices and increase the reliability, a plurality of parallel TCP links are often established between the devices, as shown in fig. 1.
The multiple parallel TCP links bring high performance communication efficiency and also present a safety hazard. As shown in fig. 2, since the opposite-side network device does not properly manage a plurality of parallel TCP links, data transceiving operations are performed only on part of the links (TCP link 1, TCP link 2) after a plurality of connections are created, and network data (TCP link 3) of the remaining TCP links is not collected. And the developer of the local device cannot know the link management condition of the opposite side device, and when data is sent, because the TCP link 3 is normal, the data is still sent to the TCP link 3, and the sending fails all the time after the channel is blocked. As shown in the figure, the data transmission failure of the local device may be involved, and the dead loop that the data is not received by the opposite device may result in that the data communication between the two devices may not be performed normally.
Disclosure of Invention
In order to solve the problem of abnormal communication and improve the flexibility and reliability of local communication equipment, the invention provides a method for searching a link according to the active state of the link, which greatly reduces the risk of network paralysis caused by processing errors of opposite side communication equipment, improves the compatibility and reliability of the local communication equipment and further improves the reliability of the whole service system.
The technical scheme adopted by the invention is as follows: a communication method based on link active state addressing is applied to communication equipment with a plurality of TCP links, and comprises the steps of initializing all the TCP links, judging the active state of the TCP links, and selecting the TCP links by the communication equipment according to the active state to carry out data transmission.
Further, the initializing specifically includes: at link initialization, the state of all links is set to the active state.
Further, the method for determining the active state comprises: counting the receiving and sending data states of each parallel TCP link in real time; and determining the active state of the link according to the statistical information of the link state of each TCP.
Further, the specific method for determining the active state of the link includes: when data is successfully received or data is successfully written into the link, the active state is set to be active; the active state is set to inactive when an error code for which a link is not available is returned for a long time.
Further, the communication device preferentially selects an active TCP link for data transmission.
Further, when there is no active TCP link, selecting a link from all currently established TCP links to transmit data, so as to ensure that no packet is lost.
Further, in the method, the data sending process includes:
s1, searching for active TCP links from the TCP link list, and directly jumping to S3 after the active TCP links are searched successfully;
s2, searching an inactive TCP link from the TCP link list;
s3, writing data into the searched TCP link, and jumping to S5 after the writing fails; otherwise, go to S4;
s4, updating the link state to be an active state;
s5, when the error code indicating that the link is temporarily unavailable is returned for a long time, the link state is updated to the inactive state, and the process proceeds to step S1 to continue the execution.
The invention also provides communication equipment for executing the communication method based on the link active state addressing to transmit data.
Compared with the prior art, the beneficial effects of adopting the technical scheme are as follows: by adopting the technology of the invention, the active state of the corresponding TCP link can be determined on the local equipment through the data receiving and sending statistics of the TCP link, and the current active TCP link is preferentially selected for data transmission, so that the risk of data congestion is greatly reduced, and meanwhile, the current existing TCP link is still selected for data transmission when no active TCP link exists, so that data packet loss is avoided, and the robustness of the system is improved; the compatibility of the local communication equipment can be greatly improved, and when a part of TCP links of the opposite side communication equipment enter an error state, the service data among the communication equipment can still be kept uninterrupted.
Drawings
Fig. 1 is a schematic diagram of communication of a network device in the prior art.
Fig. 2 is a schematic diagram illustrating a communication failure of a network device in the prior art.
Fig. 3 is a schematic diagram illustrating an update of a link active state according to the present invention.
Fig. 4 is a flow chart of a communication method of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
The invention can determine the active state of the corresponding TCP link on the local equipment through the data receiving and sending statistics of the TCP link, preferentially selects the current active TCP link for data transmission, and greatly reduces the risk of data congestion. Meanwhile, when no active TCP link exists, the current existing TCP link is still selected for data transmission, so that data is not lost, and the robustness of the system is improved. The specific technical scheme is as follows:
a communication method based on link active state addressing is applied to communication equipment with a plurality of TCP links, and comprises the steps of initializing all the TCP links, judging the active state of the TCP links, and selecting the TCP links by the communication equipment according to the active state to carry out data transmission.
As shown in fig. 3, specifically, the initializing specifically includes: at link initialization, the state of all links is set to the active state.
The method for determining the active state comprises the following steps: counting the receiving and sending data states of each parallel TCP link in real time; and determining the active state of the link according to the statistical information of the link state of each TCP.
The specific method for determining the active state of the link comprises the following steps: when data is successfully received or data is successfully written into the link, the active state is set to be active; the active state is set to inactive when an error code for which a link is not available is returned for a long time.
The communication device preferentially selects the active TCP link for data transmission.
The communication method based on the link active state addressing further comprises the step of selecting one link from all currently established TCP links for data transmission when no active TCP link exists, so that data are ensured not to be lost.
As shown in fig. 4, in the method, the data sending process includes:
s1, searching for active TCP links from the TCP link list, and directly jumping to S3 after the active TCP links are searched successfully;
s2, searching an inactive TCP link from the TCP link list;
s3, writing data into the searched TCP link, and jumping to S5 after the writing fails; otherwise, go to S4;
s4, updating the link state to be an active state;
s5, when the error code indicating that the link is temporarily unavailable is returned for a long time, the link state is updated to the inactive state, and the process proceeds to step S1 to continue the execution.
The invention also provides communication equipment for executing the communication method.
The communication method of the invention for addressing in the link active state can be applied to communication equipment with a plurality of redundant TCP links. The communication equipment realized by the method of the invention can improve the compatibility and reliability of the equipment after being deployed on the network.
The invention is not limited to the foregoing embodiments. The invention extends to any novel feature or any novel combination of features disclosed in this specification and any novel method or process steps or any novel combination of features disclosed. Those skilled in the art to which the invention pertains will appreciate that insubstantial changes or modifications can be made without departing from the spirit of the invention as defined by the appended claims.
All of the features disclosed in this specification, or all of the steps in any method or process so disclosed, may be combined in any combination, except combinations of features and/or steps that are mutually exclusive.
Any feature disclosed in this specification may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.
Claims (8)
1. A communication method based on link active state addressing is characterized in that the communication method is applied to communication equipment with a plurality of TCP links, all the TCP links are initialized, active state judgment is carried out on the TCP links, and the communication equipment selects the TCP links to carry out data transmission according to the active state.
2. The method of claim 1, wherein the initialization process comprises: at link initialization, the state of all links is set to the active state.
3. The method of claim 2, wherein the method for determining the active status comprises: counting the receiving and sending data states of each parallel TCP link in real time; and determining the active state of the link according to the statistical information of the link state of each TCP.
4. The communication method according to claim 3, wherein the specific method for determining the active status of the link is: when data is successfully received or data is successfully written into the link, the active state is set to be active; the active state is set to inactive when an error code for which a link is not available is returned for a long time.
5. The link active state addressing-based communication method according to claim 1, wherein the communication device preferentially selects an active TCP link for data transmission.
6. The communication method according to claim 1, further comprising, when there is no active TCP link, selecting a link from all currently established TCP links for data transmission, so as to ensure that no data is lost.
7. The method according to claim 6, wherein the data transmission procedure comprises:
s1, searching for active TCP links from the TCP link list, and directly jumping to S3 after the active TCP links are searched successfully;
s2, searching an inactive TCP link from the TCP link list;
s3, writing data into the searched TCP link, and jumping to S5 after the writing fails; otherwise, go to S4;
s4, updating the link state to be an active state;
s5, when the error code indicating that the link is temporarily unavailable is returned for a long time, the link state is updated to the inactive state, and the process proceeds to step S1 to continue the execution.
8. A communication device, characterized in that it performs the communication method according to any of claims 1-7 based on link active state addressing for data transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010523357.3A CN111835721A (en) | 2020-06-10 | 2020-06-10 | Communication method and communication equipment based on link active state addressing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010523357.3A CN111835721A (en) | 2020-06-10 | 2020-06-10 | Communication method and communication equipment based on link active state addressing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111835721A true CN111835721A (en) | 2020-10-27 |
Family
ID=72898685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010523357.3A Pending CN111835721A (en) | 2020-06-10 | 2020-06-10 | Communication method and communication equipment based on link active state addressing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111835721A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116366535A (en) * | 2023-03-24 | 2023-06-30 | 展讯通信(上海)有限公司 | TCP-based data link aggregation method and device, readable storage medium and terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567919A (en) * | 2003-07-02 | 2005-01-19 | 西安大唐电信有限公司 | A method for primary and standby machine to take turns on TCP connection |
CN1842076A (en) * | 2005-03-30 | 2006-10-04 | 华为技术有限公司 | Data transmission method of multi transmission channel |
US20090316581A1 (en) * | 2008-06-24 | 2009-12-24 | International Business Machines Corporation | Methods, Systems and Computer Program Products for Dynamic Selection and Switching of TCP Congestion Control Algorithms Over a TCP Connection |
CN103326831A (en) * | 2013-06-04 | 2013-09-25 | 华为终端有限公司 | Link processing method and mobile terminal in multichannel transmission control protocol |
CN105141539A (en) * | 2015-07-28 | 2015-12-09 | 浪潮电子信息产业股份有限公司 | Method and device for weightedscheduling based on link table switching |
CN106612233A (en) * | 2016-12-29 | 2017-05-03 | 广州华多网络科技有限公司 | Multi-channel network switching method and system |
CN106714294A (en) * | 2015-07-15 | 2017-05-24 | 普天信息技术有限公司 | Synchronization method for multi-channel TCP/IP head compression applied to smart grid |
-
2020
- 2020-06-10 CN CN202010523357.3A patent/CN111835721A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567919A (en) * | 2003-07-02 | 2005-01-19 | 西安大唐电信有限公司 | A method for primary and standby machine to take turns on TCP connection |
CN1842076A (en) * | 2005-03-30 | 2006-10-04 | 华为技术有限公司 | Data transmission method of multi transmission channel |
US20090316581A1 (en) * | 2008-06-24 | 2009-12-24 | International Business Machines Corporation | Methods, Systems and Computer Program Products for Dynamic Selection and Switching of TCP Congestion Control Algorithms Over a TCP Connection |
CN103326831A (en) * | 2013-06-04 | 2013-09-25 | 华为终端有限公司 | Link processing method and mobile terminal in multichannel transmission control protocol |
CN106714294A (en) * | 2015-07-15 | 2017-05-24 | 普天信息技术有限公司 | Synchronization method for multi-channel TCP/IP head compression applied to smart grid |
CN105141539A (en) * | 2015-07-28 | 2015-12-09 | 浪潮电子信息产业股份有限公司 | Method and device for weightedscheduling based on link table switching |
CN106612233A (en) * | 2016-12-29 | 2017-05-03 | 广州华多网络科技有限公司 | Multi-channel network switching method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116366535A (en) * | 2023-03-24 | 2023-06-30 | 展讯通信(上海)有限公司 | TCP-based data link aggregation method and device, readable storage medium and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8018844B2 (en) | Reliable message transfer over an unreliable network | |
US7725774B2 (en) | Methods, systems, and media to correlate errors associated with a cluster | |
CN111164923B (en) | Design for unidirectional data transmission | |
US9258230B2 (en) | In flight TCP window adjustment to improve network performance | |
US7835272B1 (en) | Backhaul path diversity for wireless networks | |
EP0464014A2 (en) | Communications systems using a fault tolerant protocol | |
CN109582335A (en) | It is a kind of without interrupt storage cluster node online upgrading method, device and equipment | |
CN105827419A (en) | Forwarding equipment fault processing method, equipment and controller | |
CN115152192B (en) | PCE controlled network reliability | |
US8644135B2 (en) | Routing and topology management | |
CN111835721A (en) | Communication method and communication equipment based on link active state addressing | |
US7593323B2 (en) | Apparatus and methods for managing nodes on a fault tolerant network | |
CN110798399A (en) | Network automatic link backup method and network system | |
EP1696609B1 (en) | Network, router device, route updating suppression method used for the same, and program thereof | |
CN115412483B (en) | Method and system for cross-device link aggregation keep-alive message interaction | |
CN101102231B (en) | An automatic discovery method and device of PPP link routing device | |
CN112543113A (en) | Method, device, equipment and medium for flexible Ethernet to respond to link failure | |
CN112422428B (en) | Link state acquisition method and device, electronic equipment and readable storage medium | |
US20220150180A1 (en) | Communication apparatus, communication system, communication method, and non-transitory computer readable medium storing program | |
US6891804B2 (en) | Method and apparatus for desirable network components | |
KR0136507B1 (en) | Communication error detection method between signal exchange and management system of common line (No.7) signal network | |
US7159148B2 (en) | Method for performance and fault management in a telecommunication network | |
KR102404112B1 (en) | Network device and method for handling failure of sdn controller server in software defined network enviroment | |
EP3200403A1 (en) | Packet forwarding method and device, sdn and system | |
JP2001156849A (en) | Communication network system, radio communication terminal, and communication control method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201027 |