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
0
votes
1 answer

What is a good local heuristic for dynamic discrete node flow control?

Suppose you have a set of nodes. Some nodes are producers, some are consumers, and some are routers. Each node has a maximum throughput which defines the maximum number of units it can accept per day, and also the maximum number of units it can send…
Craig Gidney
  • 17,763
  • 5
  • 68
  • 136
0
votes
0 answers

In what way can you interrupt Angular navigation events?

Background My team is working on an Angular application that has a long-running process - the details of this process are thoroughly unimportant to this question - that can be triggered from one of its screens. Because of the nature of this…
Andrew Gray
  • 3,756
  • 3
  • 39
  • 75
0
votes
1 answer

pyserial read to USB-to-UART device fails with hw flow control on Windows 10

I have a Silicon Labs CP2102 USB to UART Bridge device. I am writing some python to script writing/reading data to a serial device with pyserial on Windows 10. It works fine without flow control. However, it fails to read and times out if I enable…
user97576
  • 1
  • 1
0
votes
0 answers

Javascript implicit timeout?

I need to send a lot of requests to a server whose flow limits are unclear. To combat this, I decided to send requests repeatedly until I receive a successful status - using he following code: function sendRequest(url, body, isGood) { …
Ozz
  • 79
  • 6
0
votes
2 answers

How to calculate the network bandwidth of the device?

To achieve effective data transfer mechanism, I need to find out how many bits can fill up a network link. Let me explain the situation, Once I send a data(application protocol) it will reply a ACK after it process the data (in application layer) .…
Hari E
  • 526
  • 2
  • 14
0
votes
1 answer

add new constraint in next iteration in opl cplex

I am writing code in opl cplex. I want to add new constraints like the following constraint to the model in each iteration; x[1][2]==1. How can I change the main block or post-processing? THANKYOU
yalan
  • 17
  • 4
0
votes
2 answers

save output and use it for next iteration

I'm trying to solve MIP problem with IBM ILOG CPLEX Optimization studio. All the parameters have been defined. I want to save the output from the first iteration and use this output as input for the next iteration and change some data too. I have 14…
yalan
  • 17
  • 4
0
votes
0 answers

How to disable XOFF and XON in ubuntu_20.04 with i3-wm?

OS: Ubuntu 20.04 focal machine: virtualbox (virtual machine) x86-64 DE: no desktop environment WM: i3-wm shell: GNU bash 5.0.17 My question is: I want the ^S and ^Q available for programs like vim, and I don't want ^S freezing up my display. What…
pj Liu
  • 1
0
votes
1 answer

C# Serial Port, wait for correct Response before allowing a new message

First I'd like to say sorry for doubleposting. I'm afraid the context and questions I posted before didn't clearify it enough and although one of the solutions worked I am still struggling to grasp the concept, that's why I decided to make a new…
Traxan
  • 45
  • 7
0
votes
2 answers

Array is cleared when adding a new element

I've implemented a Video rental service. VideoStore class maintains an array of Video objects. When am trying to add a new video to the inventory it inserts the new element successfully. But all elements that were previously added are no longer…
shield
  • 53
  • 1
  • 1
  • 6
0
votes
1 answer

Compiler thinks variable is not assigned, but if statements cover all values

In this code there is a compile time error. "Example.java:17: error: variable y might not have been initialized". Can anyone explain what's the reason for this error and how to fix it? import java.util.*; class Example{ public static void main…
0
votes
1 answer

How flow is controlled in the posted assembly code?

I am learning about assembly code. Here is a piece of code I do not fully understand 0: move %rdi, %rax 3: jmp 8 5: sar %rax 8: test %rax, %rax b: jg 5 d: repz retq So a CPU runs line 0 first, then it jumps to line 8…
Quan Zhou
  • 307
  • 1
  • 12
0
votes
1 answer

How do I run an inputted value on a imported file

celsius to fahrenheit file fahrenheit to celsius file I created these two scripts (c2f.py and f2c.py) converting an input value to fahrenheit or celsius depending what scripts you use and it works fine, but i created a third tempconversion.py file…
Pablo
  • 1
0
votes
1 answer

Go-back-n, with an ACK loss and a packet loss

While refreshing some old theory, and solving couple of problems, one instance had me confused: "7 packages (0 to 6) with window size 3 are sent. Packet no. 2 ACK is lost the first time it is sent, and packet number 4 gets lost the first time it is…
Saurus
  • 79
  • 1
  • 7
0
votes
1 answer

How to set larger intervals in flow control in CPLEX

I am currently learning to use flow control in CPLEX. I wonder if I want to change the change interval for capflour to 100 at each time in the following case, how can I do that? Thanks! enter image description here Blockquote main { …