TCP congestion control algorithm
古いコメントを表示
Hi,
Is there anyone who could help me to have some suggestion regarding TCP congestion control algorithm. There have different types of TCP like Reno, Westood, Vegas, bandwidth and RTT detection based, Jersey etc. I do have idea about the slow start, congestion avoidance, fast retransmit and fast recovery phases which are the algorithms used in TCP. I know how these algorithms work but as I do not have very good hand on coding so I do not know how to code these algorithm by MATLAB. As well as I am not understanding how to start or from where to start. TCP works like,
- Measures the Smoothed RTT,
- increases/decreases congestion window based on the phases,
- sets the slow start threshold
More specifically, if we take the link parameters like,
- Data Rate (10 Mbps)
- Propagation Delay (250 ms)
- Loss Rate (1%)
Then,
- How I can send a packet from source to destination dynamically?
- How to receive acknowledgement to the sender? and
- how to specify these packet sending and receiving time and record them accordingly?
Moreover, How can I specify a source node and destionation node based on who will do these packet transferring between them.
I got some idea about it but those are coded by 'C' as well as in 'NS-2' which is Linux based. It is quite tough for me to learn this linux based simulation now as it is my final year of graduation.
If anybody could assist me to start the coding, it would be a great help for me. Please help me out.
Thank you in advance.
5 件のコメント
Walter Roberson
2020 年 2 月 9 日
The steps you discuss are simulations of sending information, so they are algorithm questions outside the scope of MATLAB Answers. AS opposed to constructing raw packets under MATLAB control and wanting to know how to send the raw packets to an actual Ethernet interface. (MATLAB does not have a built-in way to send raw packets. Also, sending raw packets typically requires elevated privileges.)
Mohmmad Abu Yousuf
2020 年 2 月 12 日
Walter Roberson
2020 年 2 月 12 日
MATLAB is a Turing-Equivalent programming language. Any deterministic computation can be programmed in MATLAB provided that it can be made to fit within 2^48 bytes of memory. The computation might take a long long time of course.
The question you should be asking is about the tools that MATLAB provides to make it easier to implement what you want to simulate. I have not encountered any raw-packet-level construction tools, or ethernet-layer simulation tools in MATLAB; the only place I would expect raw-packet-level tools would be USRP. It is tempting to think of the 5G toolbox in this connection, but I don't think it simulates at the right level for your purposes.
My expectation is that you would have to write the simulation software. Stateflow might make it easier to do so.
Walter Roberson
2020 年 2 月 13 日
Question is effectively duplicated by https://www.mathworks.com/matlabcentral/answers/505199-tcp-congestion-control-algorithm
Mohmmad Abu Yousuf
2020 年 2 月 15 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Automotive についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!