unreliable-connection

Two generals' agreement

妖精的绣舞 提交于 2019-12-21 20:50:35
问题 I am trying to figure an agreement protocol on an unreliable channel. Basically two parties (A and B) have to agree to do something, so it's the two generals' problem. Since there is no bullet-proof solution, I am trying to do this. A continuously sends a message with sequence 1 When B receives seq 1 it continuously replies with sequence 2 At this point A receives seq 2 so it starts sending seq 3 ... My question. When can the two parties conclude that they can take the action ? Obviously I

Are there any programs that can simulate an unstable network connection? [closed]

泪湿孤枕 提交于 2019-12-18 19:22:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . We need to simulate an unstable network connection to try to debug some connectivity issues in our server/client application and I was wondering if there are any programs out there that can simulate those conditions such as on a faint wireless network. I'm not just referring to reducing bandwidth, but also

Strategies for Java ORM with Unreliable Network and Low Bandwidth

梦想与她 提交于 2019-12-10 12:57:18
问题 I am looking at Hibernate for a system which needs to work in an unreliable network. There is a single central database that we need read-write access to, but it is available over a pretty patchy wi-fi network. In addition, there may be power losses which do not shutdown the application cleanly, so any solution must have a persistent cache which can survive power-cycles. Lastly this is an embedded system with only modest memory, and disk space so for example doing full blown replication of

Two generals' agreement

旧城冷巷雨未停 提交于 2019-12-04 11:57:52
I am trying to figure an agreement protocol on an unreliable channel. Basically two parties (A and B) have to agree to do something, so it's the two generals' problem . Since there is no bullet-proof solution, I am trying to do this. A continuously sends a message with sequence 1 When B receives seq 1 it continuously replies with sequence 2 At this point A receives seq 2 so it starts sending seq 3 ... My question. When can the two parties conclude that they can take the action ? Obviously I can't set a condition: " do it after receiving 10 messages " since the last sender won't have any

Are there any programs that can simulate an unstable network connection? [closed]

吃可爱长大的小学妹 提交于 2019-11-30 18:16:32
We need to simulate an unstable network connection to try to debug some connectivity issues in our server/client application and I was wondering if there are any programs out there that can simulate those conditions such as on a faint wireless network. I'm not just referring to reducing bandwidth, but also reducing reliability, frequent on and off, short bursts of disconnectedness, etc. I used a tool called netem that runs on linux. It allows you to increase packet loss at a given percentage, introduce delays within packets and handle packet re-ordering. Basically it's designed to emulate