Flow control method and related device

A technology of flow control and flow control window, which is applied in the field of communication, and can solve problems such as failure to process in time, failure of normal communication between client and server, etc.

Active Publication Date: 2019-10-29
HUAWEI TECH CO LTD
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] This application provides a flow control method and related devices, which can prevent the message sent by the sender from being sent too fast when the client and the server transmit messages, causing the receiver to be unable to process the message sent by the sender in time, causing the The problem that the normal communication between the client and the server cannot be carried out

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Flow control method and related device
  • Flow control method and related device
  • Flow control method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In the case of no conflict, each embodiment in the present application and different features in each embodiment can be combined with each other.

[0042] The embodiment of the present application is applicable to a network architecture in which data is transmitted between the server and the client through the MQTT protocol. figure 1 It is a schematic diagram of a network architecture applicable to this embodiment of the application. Such as figure 1 As shown, the MQTT server 101 serves as the server, and the sensors (sensor) 103, 104, 105 and IoT terminal 106 serve as the clients. The client can be directly connected to the server, such as the sensor 105 and the IoT terminal 106, and the two devices are directly connected to the MQTT server 101. The client can also be connected to the server through a gateway, such as the sensor 103 and the sensor 104 , both of which are connected to the MQTT server 101 through the IoT gateway 102 . The IoT gateway 102 is an access ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a flow control method and a related device. When a server receives a published message sent by a client, the server queries a window value of a flow control window of the client and compares the window value with a preset window threshold; when the window value is equal to the window threshold, the published message is refused to receive; and when the window value is greater than the window threshold, the window value is decreased by a preset value, and the published message is processed. When the client needs to send a published message to the server, the client queries a window value of a flow control window of the client and compares the window value with a preset window threshold; when the window value is equal to the window threshold, the published message is paused to send to the server; and when the window value is greater than the window threshold, the window value is decreased by a preset value, and a published message is sent to the server. According to the application, the problem that the server cannot process the message sent by the client in time and cannot communicate normally due to the fact that the message sending speed of the client is toohigh when the message is transmitted between the client and the server can be avoided.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular, to a flow control method and a related device. Background technique [0002] The Message Queue Telemetry Transport (MQTT) protocol is a message transmission protocol in the publish / subscribe mode of the client-server architecture, which is lightweight, open, simple, standardized, and easy to implement. The MQTT protocol can be applied to many scenarios, such as machine-to-machine communication, and the Internet of Things environment (Internet of Things, IoT) and so on. [0003] The MQTT protocol runs on Transmission Control Protocol (Transmission Control Protocol, TCP) / Internet Protocol (Internet Protocol, IP), or other network connections that provide orderly, reliable, and bidirectional connections. However, the current MQTT protocol does not have a flow control (flow control) mechanism, which means that when transmitting messages between the client and the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/801H04L47/2466H04L47/2475H04L47/27H04L47/32
CPCH04L47/10H04L67/12H04L47/39H04L47/32H04L47/2475H04L67/55H04L43/10H04L47/12H04L47/2466H04L47/2483
Inventor 许金川谭嘉杰
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products