CN103873376B - Communicator based on flow speed control and method - Google Patents

Communicator based on flow speed control and method Download PDF

Info

Publication number
CN103873376B
CN103873376B CN201210550467.4A CN201210550467A CN103873376B CN 103873376 B CN103873376 B CN 103873376B CN 201210550467 A CN201210550467 A CN 201210550467A CN 103873376 B CN103873376 B CN 103873376B
Authority
CN
China
Prior art keywords
data
time
communicator
flow speed
speed control
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
CN201210550467.4A
Other languages
Chinese (zh)
Other versions
CN103873376A (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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201210550467.4A priority Critical patent/CN103873376B/en
Publication of CN103873376A publication Critical patent/CN103873376A/en
Application granted granted Critical
Publication of CN103873376B publication Critical patent/CN103873376B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes communicator and method based on flow speed control.Wherein, methods described includes:The communication link that the transmitter of communicator is set up based on the data sending request of the caller receiving and safeguarded and related external system between, and send the data to be sent being associated with described data sending request in the way of data message sequence;The communication link and related external system between is set up and is safeguarded in the data receiver instruction based on the caller receiving for the receptor of communicator, and receives the data from external system in the way of data message sequence.Communicator based on flow speed control disclosed in this invention and method have application-level flow speed controller system.

Description

Communicator based on flow speed control and method
Technical field
The present invention relates to communicator and method, more particularly, to the communicator based on flow speed control and method.
Background technology
At present, with the becoming increasingly abundant of class of business of the increasingly extensive of network application and different field, by network Between two or more network nodes, data message transmission becomes more and more important.Wherein, due to volume of transmitted data increasingly Increase, congestion control mechanism becomes the key link making network communicating system run well.
Existing network service congestion control mechanism usually relies on the congestion control scheme of ICP/IP protocol, and great majority Application based on network service is all using being implemented as described below form:(1)Judge whether network has data to be received and/or whether have number According to be sent and to be received and/or have data to be sent if there are data, then execution step(2), otherwise continue waiting for;(2) The reception of execution data and/or send operation, and return to step after the completion of executing(1).
However, existing network service congestion control mechanism there are the following problems:(1)There is no the flow speed control of application layer Scheme, that is, because ICP/IP protocol is the agreement based on streaming, therefore cannot carry out the control of flow velocity for single message; (2)When there being mass data to be read on network, network node ceaselessly can read data, thus pole can be caused to its own system Big pressure, additionally, when leading to have mass data will be sent to peer-to-peer system when its own system appearance is abnormal, also can give other side Cause very big pressure, result even in and method, system is shut down due to processing.
Accordingly, there exist following demand:Communicator and the method with application-level flow speed controller is provided.
Content of the invention
In order to solve the problems of above-mentioned prior art, the present invention proposes with application-level flow speed controller The communicator of system and method.
The purpose of the present invention is achieved through the following technical solutions:
A kind of communicator based on flow speed control, described is included based on the communicator of flow speed control:
Main control module, described main control module receives the data sending request of caller, and please by described data is activation Ask and be sent to data transmission blocks, and receive the data receiver instruction of caller, and the instruction of described data receiver is sent to Data reception module, and process described data reception module received data and the data after processing is sent to correlation Caller;
Data transmission blocks, described data transmission blocks set up based on the described data sending request receiving and safeguard with Communication link between related external system, and sent related to described data sending request in the way of data message sequence The data to be sent of connection;
Data reception module, described data reception module set up based on the described data receiver instruction receiving and safeguard with Communication link between related external system, and receive the data from external system in the way of data message sequence;
Wherein, described data reception module executes flow control operation after receiving each data message, and described Next data message is continued to, described data transmission blocks are sending each data after the completion of flow control operation execution Execute flow control operation after message, and continue to send next data message after the completion of the execution of described flow control operation.
It is preferable that described flow control operation comprises the following steps in scheme disclosed above:(1)Obtain current The maximum value receiving/send message number M, and calculated with equation below averagely receive every time/send dormancy after data maximum when Between T_A:T_A = 1000000 / M;(2)Obtain present system time T_C;(3)Present system time is calculated with equation below Time difference T with a front network operation time of origin:T = T_C – T_P ;(4)Judge whether T is less than T_A, and if T is less than T_A, then execution step(5), otherwise, current operation dormancy time T_S is set to 0 and direct execution step(7); (5)Current operation dormancy time T_S is calculated with equation below:T_S = T_A – T;(6)Dormancy T_S microsecond;(7)Obtain current System time, and the value of a front network operation time of origin T_P is set to present system time.
It is preferable that described main control module can be based on dynamic from gerentocratic instruction in scheme disclosed above The described current maximum value receiving/send message number M of state ground adjustment.
It is preferable that described main control module can increase based on from gerentocratic instruction in scheme disclosed above Plus communication link and/or deleting communication link and/or modification communication link.
In scheme disclosed above it is preferable that described main control module can control described data reception module and/ Or described data transmission blocks stop network operation and/or recover communication link.
The purpose of the present invention can also be achieved through the following technical solutions:
A kind of communication means based on flow speed control, described is comprised the following steps based on the communication means of flow speed control:
(A1)The transmitter of communicator set up based on the data sending request of the caller receiving and safeguard to related External system between communication link, and sent in the way of data message sequence and be associated with described data sending request Data to be sent;
(A2)The receptor of communicator based on the caller receiving data receiver instruction set up and safeguard to related External system between communication link, and receive the data from external system in the way of data message sequence;
Wherein, described receptor executes flow control operation after receiving each data message, and in described flow velocity control Next data message is continued to, described transmitter executes stream after having sent each data message after the completion of system operation execution Fast control operation, and continue to send next data message after the completion of the execution of described flow control operation.
Communicator disclosed in this invention and method have advantages below:(1)Its own system can be protected from correlation Contact system(I.e. external system)Abnormal impact;(2)Associated system can be protected(I.e. external system)Different from its own system Normal impact;(3)There is high motility and versatility, you can with the demand based on external system and by adjust M value and Coutroi velocity.
Brief description
In conjunction with accompanying drawing, the technical characteristic of the present invention and advantage will be more fully understood by those skilled in the art, wherein:
Fig. 1 is the schematic diagram of the communicator based on flow speed control according to an embodiment of the invention;
Fig. 2 is the flow chart of the communication means based on flow speed control according to an embodiment of the invention.
Specific embodiment
Fig. 1 is the schematic diagram of the communicator based on flow speed control according to an embodiment of the invention.As Fig. 1 institute Show, disclosed in this invention main control module 1 is included based on the communicator of flow speed control, data reception module 2 data is sent out Send module 3.Wherein, described main control module 1 receives caller(For example various types of network applications)Data send out Send request, and described data sending request is sent to data transmission blocks 3, and receive caller(For example various types of Network application)Data receiver instruction, and by described data receiver instruction be sent to data reception module 2, and place Manage described data reception module 2 received data and the data after processing is sent to the caller of correlation.Described data is sent out Module 3 is sent to set up based on the described data sending request receiving and safeguard the communication link and related external system between, And send the data to be sent being associated with described data sending request in the way of data message sequence.Described data reception Block 2 is set up and is safeguarded the communication link and related external system between based on the described data receiver instruction receiving, and with The mode of data message sequence receives the data from external system.Wherein, described data reception module 2 is receiving every number Execute flow control operation according to after message, and continue to next datagram after the completion of the execution of described flow control operation Literary composition, described data transmission blocks 3 execute flow control operation after having sent each data message, and in described flow speed control behaviour Continue after the completion of executing to send next data message.
Preferably, disclosed in this invention based in the communicator of flow speed control, described flow control operation includes The following step:(1)Obtain currently maximum reception/transmission message number M(Exemplarily, it can be adjusted by way of configuring Whole)Value, and calculated with equation below and averagely receive/send the maximum time T_A of dormancy after data every time(Unit is microsecond): T_A = 1000000 / M(Exemplarily, described T_A is integer);(2)Obtain present system time T_C(Unit is microsecond, Its initial value is 0);(3)Present system time and a front network operation time of origin are calculated with equation below(I.e. previous number of times Send the time of origin of operation according to message or previous secondary data message receives the time that operation occurs, its initial value is 0)Time Difference T:T = T_C – T_P ;(4)Judge whether T is less than T_A, and if T is less than T_A, then execution step(5), otherwise, Current operation dormancy time T_S is set to 0 and direct execution step(7);(5)Current operation dormancy is calculated with equation below Time T_S:T_S = T_A – T;(6)Dormancy T_S microsecond;(7)Obtain present system time, and by a front network operation The value of time of origin T_P is set to present system time.
Preferably, disclosed in this invention based in the communicator of flow speed control, described main control module 1 being capable of base In the value dynamically adjusting described current maximum reception/transmission message number M from gerentocratic instruction(Exemplarily, for gold For melting the reception of transaction message and the transmission system in field, the value of described current maximum reception/transmission message number M can be 600).
Preferably, disclosed in this invention based in the communicator of flow speed control, described main control module 1 being capable of base In from gerentocratic instruction increase communication link and/or deleting communication link and/or modification communication link.
Preferably, disclosed in this invention based in the communicator of flow speed control, described main control module 1 can be controlled Make described data reception module 2 and/or described data transmission blocks 3 stop network operation and/or recover communication link.
Therefore, disclosed in this invention had the advantage that based on the communicator of flow speed control:(1)Can protect Its own system is from associated system(I.e. external system)Abnormal impact;(2)Associated system can be protected(I.e. outside system System)From the impact that its own system is abnormal;(3)There is high motility and versatility, you can with the demand based on external system And by adjusting the value of M and coutroi velocity.
Fig. 2 is the flow chart of the communication means based on flow speed control according to an embodiment of the invention.As shown in Fig. 2 this Disclosed being comprised the following steps based on the communication means of flow speed control of invention:(A1)The transmitter of communicator is based on and receives Caller(For example various types of network applications)Data sending request set up and safeguard and related outside system Communication link between system, and send the number to be sent being associated with described data sending request in the way of data message sequence According to;(A2)The receptor of communicator is based on the caller receiving(For example various types of network applications)Data Receive the communication link that instruction is set up and safeguarded and related external system between, and receive in the way of data message sequence Data from external system.Wherein, described receptor executes flow control operation after receiving each data message, and in institute Next data message is continued to, described transmitter is sending each data message after the completion of stating flow control operation execution Execute flow control operation afterwards, and continue to send next data message after the completion of the execution of described flow control operation.
Preferably, disclosed in this invention based in the communication means of flow speed control, described flow control operation includes The following step:(1)Obtain currently maximum reception/transmission message number M(Exemplarily, it can be adjusted by way of configuring Whole)Value, and calculated with equation below and averagely receive/send the maximum time T_A of dormancy after data every time(Unit is microsecond): T_A = 1000000 / M(Exemplarily, described T_A is integer);(2)Obtain present system time T_C(Unit is microsecond, Its initial value is 0);(3)Present system time and a front network operation time of origin are calculated with equation below(I.e. previous number of times Send the time of origin of operation according to message or previous secondary data message receives the time that operation occurs, its initial value is 0)Time Difference T:T = T_C – T_P ;(4)Judge whether T is less than T_A, and if T is less than T_A, then execution step(5), otherwise, Current operation dormancy time T_S is set to 0 and direct execution step(7);(5)Current operation dormancy is calculated with equation below Time T_S:T_S = T_A – T;(6)Dormancy T_S microsecond;(7)Obtain present system time, and by a front network operation The value of time of origin T_P is set to present system time.
Preferably, disclosed in this invention based in the communication means of flow speed control, described communicator can be based on Dynamically adjust the described current maximum value receiving/send message number M from gerentocratic instruction(Exemplarily, for finance For the reception of the transaction message in field and transmission system, the value of described current maximum reception/transmission message number M can be 600).
Preferably, disclosed in this invention based in the communication means of flow speed control, described communicator can be based on Increase communication link and/or deleting communication link and/or modification communication link from gerentocratic instruction.
Preferably, disclosed in this invention based in the communication means of flow speed control, described communicator can control Described receptor and/or described transmitter stop network operation and/or recover communication link.
Therefore, disclosed in this invention had the advantage that based on the communication means of flow speed control:(1)Can protect One side of communication is from associated system(The other each side communicating)Abnormal impact;(2)Associated system can be protected(I.e. The other each side of communication)From the impact that a side of communication is abnormal;(3)There is high motility and versatility, you can be based on The demand of external system by adjusting the value of M and coutroi velocity.
Although the present invention is to be described by above-mentioned preferred implementation, its way of realization is not limited to Above-mentioned embodiment.It should be realized that:In the case of without departing from spirit and scope of the present invention, those skilled in the art are permissible The present invention is made with different changing and modifications.

Claims (5)

1. a kind of communicator based on flow speed control, described is included based on the communicator of flow speed control:
Main control module, described main control module receives the data sending request of caller, and described data sending request is passed Deliver to data transmission blocks, and the data receiver instruction of reception caller, and the instruction of described data receiver is sent to data Receiver module, and process described data reception module received data and the data after processing is sent to calling of correlation Person;
Data transmission blocks, described data transmission blocks set up based on the described data sending request receiving and safeguard to related External system between communication link, and sent in the way of data message sequence and be associated with described data sending request Data to be sent;
Data reception module, described data reception module set up based on the described data receiver instruction receiving and safeguard to related External system between communication link, and receive the data from external system in the way of data message sequence;
Wherein, described data reception module executes flow control operation after receiving each data message, and in described flow velocity Next data message is continued to, described data transmission blocks are sending each data message after the completion of control operation execution Execute flow control operation afterwards, and continue to send next data message after the completion of the execution of described flow control operation;
Wherein, described flow control operation comprises the following steps:(1) obtain the currently maximum value receiving/send message number M, and Calculate the maximum time T_A averagely receiving/send dormancy after data every time with equation below:T_A=1000000/M;(2) obtain Present system time T_C;(3) time difference of present system time and a front network operation time of origin is calculated with equation below T:T=T_C T_P;(4) judge whether T is less than T_A, and if T is less than T_A, then execution step (5), otherwise, will currently grasp Make dormancy time T_S and be set to 0 and direct execution step (7);(5) current operation dormancy time T_S is calculated with equation below: T_S=T_A T;(6) dormancy T_S microsecond;(7) obtain present system time, and by a front network operation time of origin T_P Value be set to present system time.
2. the communicator based on flow speed control according to claim 1 is it is characterised in that described main control module can Dynamically adjust the described current maximum value receiving/send message number M based on from gerentocratic instruction.
3. the communicator based on flow speed control according to claim 2 is it is characterised in that described main control module can Increase communication link and/or deleting communication link and/or modification communication link based on from gerentocratic instruction.
4. the communicator based on flow speed control according to claim 3 is it is characterised in that described main control module can Described data reception module and/or described data transmission blocks are controlled to stop network operation and/or recover communication link.
5. a kind of communication means based on flow speed control, described is comprised the following steps based on the communication means of flow speed control:
(A1) transmitter of communicator is set up based on the data sending request of the caller receiving and is safeguarded outer to related Communication link between portion's system, and sent pending with what described data sending request was associated in the way of data message sequence Send data;
(A2) the data receiver instruction based on the caller receiving for the receptor of communicator set up and safeguard with related outward Communication link between portion's system, and receive the data from external system in the way of data message sequence;
Wherein, described receptor executes flow control operation after receiving each data message, and in described flow speed control behaviour Next data message is continued to, described transmitter executes flow velocity control after having sent each data message after the completion of executing System operation, and continue to send next data message after the completion of the execution of described flow control operation;
Wherein, described flow control operation comprises the following steps:(1) obtain the currently maximum value receiving/send message number M, and Calculate the maximum time T_A averagely receiving/send dormancy after data every time with equation below:T_A=1000000/M;(2) obtain Present system time T_C;(3) time difference of present system time and a front network operation time of origin is calculated with equation below T:T=T_C T_P;(4) judge whether T is less than T_A, and if T is less than T_A, then execution step (5), otherwise, will currently grasp Make dormancy time T_S and be set to 0 and direct execution step (7);(5) current operation dormancy time T_S is calculated with equation below: T_S=T_A T;(6) dormancy T_S microsecond;(7) obtain present system time, and by a front network operation time of origin T_P Value be set to present system time.
CN201210550467.4A 2012-12-18 2012-12-18 Communicator based on flow speed control and method Active CN103873376B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210550467.4A CN103873376B (en) 2012-12-18 2012-12-18 Communicator based on flow speed control and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210550467.4A CN103873376B (en) 2012-12-18 2012-12-18 Communicator based on flow speed control and method

Publications (2)

Publication Number Publication Date
CN103873376A CN103873376A (en) 2014-06-18
CN103873376B true CN103873376B (en) 2017-03-01

Family

ID=50911515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210550467.4A Active CN103873376B (en) 2012-12-18 2012-12-18 Communicator based on flow speed control and method

Country Status (1)

Country Link
CN (1) CN103873376B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4771391A (en) * 1986-07-21 1988-09-13 International Business Machines Corporation Adaptive packet length traffic control in a local area network
DE10108146A1 (en) * 2001-02-20 2002-08-29 Siemens Ag Data transmission method
CN101212401B (en) * 2006-12-29 2010-06-09 中兴通讯股份有限公司 Grid-oriented configurable data transmission method and system
JP4399016B2 (en) * 2007-08-20 2010-01-13 株式会社エヌ・ティ・ティ・ドコモ Mobile communication terminal, communication apparatus, mobile communication method and communication method
CN101242358B (en) * 2008-02-20 2011-06-01 华为技术有限公司 A flow shaping method and device
CN101431469A (en) * 2008-10-08 2009-05-13 东南大学 P2P system rate control method based on game theory
CN101645834B (en) * 2009-08-28 2012-02-22 北京星网锐捷网络技术有限公司 Ethernet flow control method, device and network device

Also Published As

Publication number Publication date
CN103873376A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
WO2009023996A1 (en) Method for implementing network interconnect via link aggregation
KR101419579B1 (en) Method for enabling faster recovery of client applications in the event of server failure
CN102970157B (en) Link failure processing method, IRF member device and data communication equipment
EP2928108B1 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
CN103248452A (en) Data sending device, data receiving device, terminal and data transmission method
US9571409B2 (en) Maximum transmission unit negotiation method and data terminal
CN102148662A (en) Adjusting method and device for data transmitting speed
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
KR20150007623A (en) Method and appratus for protection switching in packet transport system
CN109313842A (en) The transmission of low energy consumption audio streaming
CN106850805A (en) A kind of data transmission method and device
CN103795518A (en) Method, device, and system for synchronizing port modes between devices
CN104270344A (en) Quintillion gatekeeper
CN102780621B (en) A kind of upstream data packet transmission method, device and the network equipment
CN102891850A (en) Method for preventing parameter resetting in IPSec (IP Security) channel updating
CN103338158A (en) GOOSE message transmission delay jitter suppression method
US20130278707A1 (en) Video communication method and terminal
JP5578023B2 (en) Station side device, home side device, optical communication system, and control method of optical communication system
CN103873376B (en) Communicator based on flow speed control and method
CN105162657A (en) Network testing performance optimization method
US10972442B1 (en) Distributed predictive packet quantity threshold reporting
JP2011044800A (en) Communication device, communication system and communication method
CN102694727A (en) Method and device for realizing transmission acceleration of network data packets
CN102035733A (en) Method for establishing serial data transparent transmission channel by Ethernet
CN100394740C (en) Method for transmitting control message and a station apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant