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
1
vote
3 answers

Go-Back N protocol ACK

I am trying to understand the working of Go-Back N using this website:- http://www.ccs-labs.org/teaching/rn/animations/gbn_sr/ Here, suppose we are sending frames 1,2,3,4,5,6 (window size 4) and in the current window we have frames 1,2,3,4. Now…
Zephyr
  • 1,521
  • 3
  • 22
  • 42
1
vote
1 answer

How to yield multiple promises in for loop with vo.js?

Based on this example - vo/examples/9-pipeline-composition.js, how would I return yield a promise for each iteration of this for loop? At the moment the loop runs once and yields a single promise. function * get (urls) { for (var i =…
Edan
  • 593
  • 1
  • 8
  • 23
1
vote
2 answers

How is HTTP/2 hop-by-hop flow control accomplished?

As the spec says: Flow control is specific to a connection. Both types of flow control are between the endpoints of a single hop and not over the entire end-to-end path. And in 6.9 WINDOW_UPDATE Both types of flow control are hop by hop, that…
laike9m
  • 18,344
  • 20
  • 107
  • 140
1
vote
1 answer

Hardware flow control with termios (CRTSCTS) for UART Device

right now I'm communicating with a device over UART in C++ on a Udoo Neo. For this I'm using termios to set up the connection and write data to the device. For this purpose I want to use hardware flow control and have set the flag (CRTSCTS) with…
Dingodoodl
  • 21
  • 1
  • 4
1
vote
1 answer

Generating Pause Frames to test hardware

I have put together a media converter that converts from 100Mbps ethernet on one side and 100BASE-FX fiber on the other. The application that this converter goes into uses Full Duplex / Pause Frame flow control to handle data overloads. I have…
mikenycz
  • 81
  • 1
  • 1
  • 5
1
vote
1 answer

Scapy set tcp flow window bigger then 65535

When using scapy, how can I set a tcp packet with flow control window bigger than 65535? I know that writing in scapy: packet1[TCP].window=65535 will set the window to 65535; But if there is a need to set windows size bigger then 65535, it should…
Ron
  • 511
  • 1
  • 5
  • 14
1
vote
1 answer

Use goto statements to explicitly show the flow control through the loop

I am supposed to take the following program fragment and use goto statements to show the flow control through the the loop: for ( int i = n; i > 0; i-- ) { if ( x != A[i] ) break; } I realize that goto statements should be avoided, but this…
1
vote
2 answers

Perl elsif not being evaluated

Anyone see anything wrong with this code? When we execute it (on Linux), we get taken straight to the "Error: Unknown host" block. Perl is version 5.8.6 $hostname = "host2"; if ($hostname eq "host1") { $dbhost = 'dbi:Oracle:dbhost1'; } elsif…
wadesworld
  • 13,535
  • 14
  • 60
  • 93
1
vote
0 answers

Spring websockets tcp -> flow controll interface

I have a spring boot app that is leveraging websockets. I have build my own protocol that is being transported over websockets in binary. Now in that protocol after certain even has occurred I would like to use flow control in order to signalize the…
Tito
  • 2,234
  • 6
  • 31
  • 65
1
vote
0 answers

Planning to implement stop and wait algorithm in c

The algorithm I considered is as follows. 1) sender sends data using sendto(). 2) waits for ACK packet from the receiver. 3-1) sends the same packet if ACK for the next packet hasn't arrived within timeout. 3-2) sends the next one if ACK for the…
Yeongchan Jeon
  • 499
  • 3
  • 18
1
vote
1 answer

Is there a less vertical way to do a select case in python other than elifs?

So I can do a Select Case in python with if integer == 1: case0() elif integer == 2: case2() elif integer == 3: case3() .... elif integer == N: caseN() Some times I use a list using the index as a selector. selectCase =…
probiner
  • 91
  • 9
1
vote
1 answer

Holding data processing for incomplete data sets with Mule and a collection-aggregator

I need to collect and process sets of files generated by another organization. For simplicity, say that the set consists of two files, a summary file and a detail file named like: SUM20150701.dat and DTL20150701.dat, which would constitute a set…
dlb
  • 357
  • 3
  • 13
1
vote
2 answers

What does `x = x.then()` do in promises?

I am trying to understand some code that has a novel approach to promises: var sequence = Promise.resolve(); sequence = sequence.then( function() { // success function } ); sequence = sequence.then( function(keyPair) { …
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
1
vote
5 answers

how to combine switch and if else statements

I'm taking an online java class and the teacher has asked for the following: Write a menu program that ask a user for a number indicating the four basic math equations(addition, subtraction, multiplication, division). Using a if/else structure to do…
jjason89
  • 39
  • 1
  • 2
  • 6
1
vote
0 answers

Window-based Flow Control with HornetQ/STOMP

I'm wondering how to pull a single message from queue when using HornetQ/STOMP. According to this http://docs.jboss.org/hornetq/2.4.0.Final/docs/user-manual/html/flow-control.html#d0e4023 , it seems possible to achieve it with consumer-window-size…
jj1
  • 155
  • 1
  • 7