CN103873376A - Stream velocity control-based communication device and method - Google Patents

Stream velocity control-based communication device and method Download PDF

Info

Publication number
CN103873376A
CN103873376A CN201210550467.4A CN201210550467A CN103873376A CN 103873376 A CN103873376 A CN 103873376A CN 201210550467 A CN201210550467 A CN 201210550467A CN 103873376 A CN103873376 A CN 103873376A
Authority
CN
China
Prior art keywords
data
flow control
communication link
data message
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210550467.4A
Other languages
Chinese (zh)
Other versions
CN103873376B (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

Images

Abstract

The invention discloses a stream velocity control-based communication device and a stream velocity control-based communication method. The method comprises the following steps that a transmitter of the communication device establishes and maintains a communication link with a related external system based on a data transmission request received from a caller, and transmits data to be transmitted associated with the data transmission request in form of data message sequence; a receiver of the communication device establishes and maintains a communication link with the related external system based on a data receiving instruction received from the caller, and receives data from the external system in form of data message sequence. The stream velocity control-based communication device and the stream velocity control-based communication method have an application layer stream velocity control mechanism.

Description

Communicator based on flow control and method
Technical field
The present invention relates to communicator and method, more specifically, relate to communicator and method based on flow control.
Background technology
At present, along with becoming increasingly abundant of the class of business of the increasingly extensive and different field of network application, become more and more important by network data message transmission between two or more network nodes.Wherein, due to the increase day by day of volume of transmitted data, congestion control mechanism becomes the key link that network communicating system is run well.
Existing network service congestion control mechanism relies on the congestion control scheme of ICP/IP protocol conventionally, and the application of most of communications Network Based all adopts following way of realization: (1) judges whether network has data to wait to receive and/or whether have data to be sent, and if having data to wait to receive and/or have data to be sent, execution step (2), otherwise continue to wait for; (2) reception of executing data and/or transmit operation, and after complete, return to step (1).
But there are the following problems for existing network service congestion control mechanism: (1) does not have the flow control scheme of application layer, because ICP/IP protocol is the agreement based on flow transmission, therefore cannot carry out for independent message the control of flow velocity; (2) in the time having mass data to be read on network; network node is reading out data ceaselessly; thereby can cause great pressure to self system; in addition; when self system occurs abnormal and while causing having mass data to send to peer-to-peer system; also can cause very large pressure to the other side, even can cause method, system to be shut down owing to processing.
Therefore, there is following demand: provide communicator and the method with application-level flow speed controller system.
Summary of the invention
In order to solve the existing problem of above-mentioned prior art scheme, the present invention proposes communicator and the method with application-level flow speed controller system.
The object of the invention is to be achieved through the following technical solutions:
Based on a communicator for flow control, the described communicator based on flow control comprises:
Main control module, described main control module receives the data sending request of caller, and described data sending request is sent to data transmission blocks, and the data receiver instruction of reception caller, and described data receiver instruction is sent to data reception module, and the data that receive of processing said data receiver module and data after treatment are sent to relevant caller;
Data transmission blocks, communication link between the described data sending request foundation of described data transmission blocks based on receiving maintenance and relevant external system, and send the data to be sent that are associated with described data sending request in the mode of data message sequence;
Data reception module, the communication link between the described data receiver instruction foundation of described data reception module based on receiving maintenance and relevant external system, and receive the data from external system in the mode of data message sequence;
Wherein, described data reception module is carried out flow control operation receiving after each data message, and accept a data message in the complete follow-up continued access of described flow control operation, described data transmission blocks is carried out flow control operation sending after each data message, and send next data message at the complete follow-up supervention of described flow control operation.
In the above in disclosed scheme, preferably, the operation of described flow control comprises the following steps: that (1) obtains the current maximum value that message is counted M that receives/send, and calculates average each maximum time T_A:T_A=1000000/M that receives/send dormancy after data with following formula; (2) obtain current system time T _ C; (3) calculate time difference T:T=T_C – T_P of current system time and front primary network operation time of origin with following formula; (4) judge whether T is less than T_A, and if T is less than T_A, execution step (5), otherwise current operation dormancy time T_S is set to 0 and direct execution step (7); (5) calculate current operation dormancy time T_S:T_S=T_A – T with following formula; (6) dormancy T_S microsecond; (7) obtain the current system time, and the value of front primary network operation time of origin T_P is set to the current system time.
In disclosed scheme, preferably, described main control module can be based on dynamically adjust the described current maximum value that message is counted M that receives/send from gerentocratic instruction in the above.
In disclosed scheme, preferably, described main control module can be based on increase communication link and/or deleting communication link and/or amendment communication link from gerentocratic instruction in the above.
In disclosed scheme, preferably, described main control module can control described data reception module and/or described data transmission blocks stops network operation and/or recovers communication link in the above.
Object of the present invention also can be achieved through the following technical solutions:
Based on a communication means for flow control, the described communication means based on flow control comprises the following steps:
(A1) communication link between the data sending request foundation of the caller of the transmitter of communicator based on receiving maintenance and relevant external system, and send the data to be sent that are associated with described data sending request in the mode of data message sequence;
(A2) communication link between the data receiver instruction foundation of the caller of the receiver of communicator based on receiving maintenance and relevant external system, and receive the data from external system in the mode of data message sequence;
Wherein, described receiver is carried out flow control operation receiving after each data message, and accept a data message in the complete follow-up continued access of described flow control operation, described transmitter is carried out flow control operation sending after each data message, and send next data message at the complete follow-up supervention of described flow control operation.
Communicator disclosed in this invention and method have the following advantages: (1) can protect self system to avoid the abnormal impact of associated system (being external system); (2) can protect associated system (being external system) to avoid the impact of self system exception; (3) there is high flexibility and versatility, demand that can be based on external system the coutroi velocity by adjusting the value of M.
Brief description of the drawings
By reference to the accompanying drawings, technical characterictic of the present invention and advantage will be understood better by those skilled in the art, wherein:
Fig. 1 is the schematic diagram of the communicator based on flow control according to an embodiment of the invention;
Fig. 2 is the flow chart of the communication means based on flow control according to an embodiment of the invention.
Embodiment
Fig. 1 is the schematic diagram of the communicator based on flow control according to an embodiment of the invention.As shown in Figure 1, the communicator based on flow control disclosed in this invention comprises main control module 1, data reception module 2 and data transmission blocks 3.Wherein, described main control module 1 receives the data sending request of caller (for example various types of network application), and described data sending request is sent to data transmission blocks 3, and the data receiver instruction of reception caller (for example various types of network application), and described data receiver instruction is sent to data reception module 2, and the data that receive of processing said data receiver module 2 and data after treatment are sent to relevant caller.Communication link between the described data sending request foundation of described data transmission blocks 3 based on receiving maintenance and relevant external system, and send the data to be sent that are associated with described data sending request in the mode of data message sequence.Communication link between the described data receiver instruction foundation of described data reception module 2 based on receiving maintenance and relevant external system, and receive the data from external system in the mode of data message sequence.Wherein, described data reception module 2 is carried out flow control operation receiving after each data message, and accept a data message in the complete follow-up continued access of described flow control operation, described data transmission blocks 3 is carried out flow control operation sending after each data message, and send next data message at the complete follow-up supervention of described flow control operation.
Preferably, in the communicator based on flow control disclosed in this invention, described flow control operation comprises the following steps: that (1) obtains current maximum reception/transmission message and counts M(exemplarily, its can by configuration mode be adjusted) value, and be microsecond with the maximum time T_A(unit of dormancy after the average each reception/transmission of following formula calculating data): exemplarily, described T_A is integer to T_A=1000000/M(); (2) obtaining current system time T _ C(unit is microsecond, and its initial value is 0); (3) calculate time difference T:T=T_C – T_P of current system time and front primary network operation time of origin (time of origin or the last secondary data message that are the transmit operation of last secondary data message receive the time that operation occurs, and its initial value is 0) with following formula; (4) judge whether T is less than T_A, and if T is less than T_A, execution step (5), otherwise current operation dormancy time T_S is set to 0 and direct execution step (7); (5) calculate current operation dormancy time T_S:T_S=T_A – T with following formula; (6) dormancy T_S microsecond; (7) obtain the current system time, and the value of front primary network operation time of origin T_P is set to the current system time.
Preferably, in the communicator based on flow control disclosed in this invention, described main control module 1 can describedly currently maximum receive/send value that message counts M (exemplarily based on dynamically adjusting from gerentocratic instruction, for reception and the transmitting system of the transaction message in financial field, the value that described current maximum reception/transmission message is counted M can be 600).
Preferably, in the communicator based on flow control disclosed in this invention, described main control module 1 can be based on increase communication link and/or deleting communication link and/or amendment communication link from gerentocratic instruction.
Preferably, in the communicator based on flow control disclosed in this invention, described main control module 1 can control described data reception module 2 and/or described data transmission blocks 3 stops network operation and/or recovers communication link.
Therefore the communicator tool based on flow control disclosed in this invention has the following advantages: (1) can protect self system to avoid the abnormal impact of associated system (being external system); (2) can protect associated system (being external system) to avoid the impact of self system exception; (3) there is high flexibility and versatility, demand that can be based on external system the coutroi velocity by adjusting the value of M.
Fig. 2 is the flow chart of the communication means based on flow control according to an embodiment of the invention.As shown in Figure 2, for example, communication link between the data sending request foundation of the caller (various types of network application) of the transmitter that the communication means based on flow control disclosed in this invention comprises the following steps: (A1) communicator based on receiving maintenance and relevant external system, and send the data to be sent that are associated with described data sending request in the mode of data message sequence; (A2) for example, communication link between the data receiver instruction foundation of the caller (various types of network application) of the receiver of communicator based on receiving maintenance and relevant external system, and receive the data from external system in the mode of data message sequence.Wherein, described receiver is carried out flow control operation receiving after each data message, and accept a data message in the complete follow-up continued access of described flow control operation, described transmitter is carried out flow control operation sending after each data message, and send next data message at the complete follow-up supervention of described flow control operation.
Preferably, in the communication means based on flow control disclosed in this invention, described flow control operation comprises the following steps: that (1) obtains current maximum reception/transmission message and counts M(exemplarily, its can by configuration mode be adjusted) value, and be microsecond with the maximum time T_A(unit of dormancy after the average each reception/transmission of following formula calculating data): exemplarily, described T_A is integer to T_A=1000000/M(); (2) obtaining current system time T _ C(unit is microsecond, and its initial value is 0); (3) calculate time difference T:T=T_C – T_P of current system time and front primary network operation time of origin (time of origin or the last secondary data message that are the transmit operation of last secondary data message receive the time that operation occurs, and its initial value is 0) with following formula; (4) judge whether T is less than T_A, and if T is less than T_A, execution step (5), otherwise current operation dormancy time T_S is set to 0 and direct execution step (7); (5) calculate current operation dormancy time T_S:T_S=T_A – T with following formula; (6) dormancy T_S microsecond; (7) obtain the current system time, and the value of front primary network operation time of origin T_P is set to the current system time.
Preferably, in the communication means based on flow control disclosed in this invention, described communicator can describedly currently maximum receive/send value that message counts M (exemplarily based on dynamically adjusting from gerentocratic instruction, for reception and the transmitting system of the transaction message in financial field, the value that described current maximum reception/transmission message is counted M can be 600).
Preferably, in the communication means based on flow control disclosed in this invention, described communicator can be based on increase communication link and/or deleting communication link and/or amendment communication link from gerentocratic instruction.
Preferably, in the communication means based on flow control disclosed in this invention, described communicator can control described receiver and/or described transmitter stops network operation and/or recovers communication link.
Therefore the communication means tool based on flow control disclosed in this invention has the following advantages: (1) can protect a side of communication to avoid the abnormal impact of associated system (i.e. the other each side of communication); (2) can protect associated system (i.e. the other each side of communication) to avoid the abnormal impact of a side of communication; (3) there is high flexibility and versatility, demand that can be based on external system the coutroi velocity by adjusting the value of M.
Although the present invention is described by above-mentioned preferred implementation, its way of realization is not limited to above-mentioned execution mode.Should be realized that: in the situation that not departing from purport of the present invention and scope, those skilled in the art can make different variations and amendment to the present invention.

Claims (6)

1. the communicator based on flow control, the described communicator based on flow control comprises:
Main control module, described main control module receives the data sending request of caller, and described data sending request is sent to data transmission blocks, and the data receiver instruction of reception caller, and described data receiver instruction is sent to data reception module, and the data that receive of processing said data receiver module and data after treatment are sent to relevant caller;
Data transmission blocks, communication link between the described data sending request foundation of described data transmission blocks based on receiving maintenance and relevant external system, and send the data to be sent that are associated with described data sending request in the mode of data message sequence;
Data reception module, the communication link between the described data receiver instruction foundation of described data reception module based on receiving maintenance and relevant external system, and receive the data from external system in the mode of data message sequence;
Wherein, described data reception module is carried out flow control operation receiving after each data message, and accept a data message in the complete follow-up continued access of described flow control operation, described data transmission blocks is carried out flow control operation sending after each data message, and send next data message at the complete follow-up supervention of described flow control operation.
2. the communicator based on flow control according to claim 1, it is characterized in that, the operation of described flow control comprises the following steps: that (1) obtains the current maximum value that message is counted M that receives/send, and calculates average each maximum time T_A:T_A=1000000/M that receives/send dormancy after data with following formula; (2) obtain current system time T _ C; (3) calculate time difference T:T=T_C – T_P of current system time and front primary network operation time of origin with following formula; (4) judge whether T is less than T_A, and if T is less than T_A, execution step (5), otherwise current operation dormancy time T_S is set to 0 and direct execution step (7); (5) calculate current operation dormancy time T_S:T_S=T_A – T with following formula; (6) dormancy T_S microsecond; (7) obtain the current system time, and the value of front primary network operation time of origin T_P is set to the current system time.
3. the communicator based on flow control according to claim 2, is characterized in that, described main control module can be based on dynamically adjust the described current maximum value that message is counted M that receives/send from gerentocratic instruction.
4. the communicator based on flow control according to claim 3, is characterized in that, described main control module can be based on increase communication link and/or deleting communication link and/or amendment communication link from gerentocratic instruction.
5. the communicator based on flow control according to claim 4, is characterized in that, described main control module can control described data reception module and/or described data transmission blocks stops network operation and/or recovers communication link.
6. the communication means based on flow control, the described communication means based on flow control comprises the following steps:
(A1) communication link between the data sending request foundation of the caller of the transmitter of communicator based on receiving maintenance and relevant external system, and send the data to be sent that are associated with described data sending request in the mode of data message sequence;
(A2) communication link between the data receiver instruction foundation of the caller of the receiver of communicator based on receiving maintenance and relevant external system, and receive the data from external system in the mode of data message sequence;
Wherein, described receiver is carried out flow control operation receiving after each data message, and accept a data message in the complete follow-up continued access of described flow control operation, described transmitter is carried out flow control operation sending after each data message, and send next data message at the complete follow-up supervention of described flow control operation.
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 true CN103873376A (en) 2014-06-18
CN103873376B 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)

Citations (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
US20020159482A1 (en) * 2001-02-20 2002-10-31 Martin Hans Data transmission method and system
CN101212401A (en) * 2006-12-29 2008-07-02 中兴通讯股份有限公司 Grid-oriented configurable data transmission method and system
CN101242358A (en) * 2008-02-20 2008-08-13 华为技术有限公司 A flow shaping method and device
CN101374156A (en) * 2007-08-20 2009-02-25 株式会社Ntt都科摩 Mobile communication terminal, communication device, mobile communication method and communication method
CN101431469A (en) * 2008-10-08 2009-05-13 东南大学 P2P system rate control method based on game theory
CN101645834A (en) * 2009-08-28 2010-02-10 北京星网锐捷网络技术有限公司 Ethernet flow control method, device and network device

Patent Citations (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
US20020159482A1 (en) * 2001-02-20 2002-10-31 Martin Hans Data transmission method and system
CN101212401A (en) * 2006-12-29 2008-07-02 中兴通讯股份有限公司 Grid-oriented configurable data transmission method and system
CN101374156A (en) * 2007-08-20 2009-02-25 株式会社Ntt都科摩 Mobile communication terminal, communication device, mobile communication method and communication method
CN101242358A (en) * 2008-02-20 2008-08-13 华为技术有限公司 A flow shaping method and device
CN101431469A (en) * 2008-10-08 2009-05-13 东南大学 P2P system rate control method based on game theory
CN101645834A (en) * 2009-08-28 2010-02-10 北京星网锐捷网络技术有限公司 Ethernet flow control method, device and network device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭伟: "串口通信中的流控设置", 《工业控制计算机》 *

Also Published As

Publication number Publication date
CN103873376B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
CN102685839B (en) Method, gateway, terminal and system for communication of Internet of things
US9515919B2 (en) Method and apparatus for protection switching in packet transport system
US9571409B2 (en) Maximum transmission unit negotiation method and data terminal
CN101984573A (en) Method and system for distributed realization of LACP standard state machine
CN102075343A (en) An out-of-band management realization method, a system for the same and an out-of-band management switch
CN105656708A (en) Single-board testing method and device
CN102771103A (en) High-speed communication system and high-speed communication method
CN103746938A (en) Method and device for transmitting data packet
CN101719850B (en) Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN104317762A (en) Method for adaptively controlling transmitting and receiving directions of RS485 chip by aid of FPGA (field programmable gate array)
CN102984081A (en) Method and system of message processing in network equipment
CN103338158A (en) GOOSE message transmission delay jitter suppression method
CN102811451B (en) Method and device for controlling connection of control and provisioning of wireless access points (Capwap) tunnel
KR102120945B1 (en) Base station, member node of transmitting data based on cooperation of member node under multicast group and methodes thereof
CN106789709B (en) Load balancing method and device
JP2017092692A (en) Data transmission control system and method, and data transmission control program
CN104660638A (en) Data transmission method and system
CN103873376A (en) Stream velocity control-based communication device and method
EP2740249B1 (en) Event-based keep alive times in communication networks
CN102263808B (en) Session control service method, device and system
CN104426866A (en) Data transmission method and apparatus
CN103581064A (en) Message reassembly method applicable to communication of substation monitoring system
CN103636157A (en) Method and device for sending ACK information
CN113949706B (en) Method and system for selecting mobile edge computing node
CN104618021A (en) Optical fiber based data transmission method, device and system

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