Questions tagged [flow-control]

Flow control is the process of managing the rate of data transmission between two nodes to prevent a fast sender from outrunning a slow receiver.

Flow control is the process of managing the rate of data transmission between two nodes to prevent a fast sender from outrunning a slow receiver. It provides a mechanism for the receiver to control the transmission speed, so that the receiving node is not overwhelmed with data from transmitting node.

166 questions
4
votes
2 answers

Python flow control with Flag?

Matching a file in this form. It always begins with InvNo, ~EOR~ is End Of Record. InvNo: 123 Tag1: rat cake Media: d234 Tag2: rat pudding ~EOR~ InvNo: 5433 Tag1: strawberry tart Tag5: 's got some rat in it ~EOR~ InvNo: 345 Tag2: 5 Media:…
RolfBly
  • 3,612
  • 5
  • 32
  • 46
4
votes
1 answer

tmux flow control

I'm ssh'ing into a machine running Ubuntu 12.04, and using tmux 1.6, on an ADSL link (8Mbps/1Mbps down/up). When there's lots of fast terminal output, the link gets saturated and completely unresponsive, and I can't switch tmux windows or anything,…
purple51
  • 319
  • 1
  • 8
4
votes
2 answers

nodeJS (express,connect) - Dynamically add middleware in current flow

I am currently working on formBuilder (client javascript <=> JSON <=> node), so i need effective way to handle JSON data on server. All forms are bind on one route, catched by middleware, so i need something like this: Code is simplified (no regexs,…
3
votes
1 answer

UDP flow control with Python Twisted

I have a class that inherits from twisted.internet.protocol.DatagramProtocol class. In my startProtocol() implementation I call startWriting(), so that socket gets notified each time I can write to it without blocking. Two questions: Which method…
user389238
  • 1,656
  • 3
  • 19
  • 40
3
votes
1 answer

I am unable to update Flow control window in HTTP2 implementation, so the client is unable to send the rest of the data

I am implementing simple asyncio HTTP2 server and client in Python 3.6. It requires to implement Flow control. I have set the flow control window to 2048 bytes on client side with function self.outbound_flow_control_window=2048, after the clients…
abbas
  • 35
  • 3
3
votes
3 answers

Flow control in data link layer vs flow control in transport layer

I'm trying to understand the OSI layer model. I often read that flow control in mainly handelt in Data Link Layer (L2) and Transport Layer (L4). But I cant find what methods thay use. Does the Transport layer uses flow control by TCP by useing…
Chill3er
  • 41
  • 1
  • 1
  • 5
3
votes
3 answers

How will a socket act when the data is sent faster than it can be processed?

I am not quite clear some detail mechanisms of TCP and sockets. One client connects to a server through TCP, and sends data to server. What happens if the speed of sending is far greater than the speed of processing? For example, if the client…
Jun
  • 35
  • 1
  • 8
3
votes
2 answers

Is there a difference between nested "if"'s and using "if x and y and z and .." regarding speed?

I got a short question. Is there any difference in VBA between if x1 and x2 and x3 and ... and x10 then foo end if and if x1 then if x2 then if x3 then ... foo end if end if end if regarding speed? More specifically: I…
frrrt
  • 89
  • 8
2
votes
1 answer

TCP Send Buffer not doing anything

So i am experimenting with socket buffer sizes and have created 2 test cases Case 1[server sends data to client] First we have a server which sends 100 bytes of data to a client public static void main(String[] args)throws Exception { …
Sync it
  • 1,180
  • 2
  • 11
  • 29
2
votes
1 answer

Ramifications of setting the maxOutstandingElementCount in FlowControlSettings to be null?

In later versions of the Google PubSub client Java API, they have added a maxOutstandingElementCount value which defaults to 1000. maxOutstandingElementCount -- The maximum number of elements that can be outstanding before data flow is restricted,…
Gray
  • 115,027
  • 24
  • 293
  • 354
2
votes
0 answers

Serial write() stops sending when RTS/CTS flow control is on

I'm trying to repeatedly send data via serial port (/dev/ttyS0) from my Ubuntu machine to an RS232-CAN adapter. The message contains 19 bytes of data and is sent approximately 4 times per second. Everything behaves correctly for the first 5-20…
Corapi
  • 21
  • 2
2
votes
1 answer

Why do I get TCP Window Update WITHOUT ZeroWindow

The documentation says that TCP Window Update is usually due to previous Zero Window. I can't find a previous zero window. What else might it be? Transmission Control Protocol, Src Port: 5431, Dst Port: 703, Seq: 1, Ack: 38529, Len: 0 Source…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
2
votes
0 answers

Collectd multiple write_http plugin with rule chain

I am trying to setup a collectd configuration that sends metrics to two separate http server endpoints. My setup has Client (C) with collectd plugin running on it. Of all the metrics it collects, all of the metrics need to be sent to Server (A);…
sujitv
  • 135
  • 1
  • 12
2
votes
1 answer

Set serial port flow control lines from bash script?

Is it possible to manually control the handshaking/flow control lines of a serial port from a bash script? I'm referring to RTS, CTS, DTR and DSR. I don't want to enable automatic flow control, but manually manipulate these signals. In my…
Jon
  • 407
  • 1
  • 3
  • 11
2
votes
1 answer

Flow control in pushtechnology diffusion server delaying publishing client updates

We have control client sending 100 updates each sized 200-250 bytes, per 2 sec to clients through diffusion for different topics(one update per topic in 2 sec). the issue is once after sending these for around 20-30 minutes, flow control starts and…
Ark
  • 35
  • 5
1
2
3
11 12