Please read the specification attached with this bid, Please be sure about the work to be done before bidding here.
## Deliverables
Three sources are connected to 3 destinations via a router, and i have to simulate "Equation Based Congestion Control for Unicast Apllications"
Can u help in the code, i want to know how to implement it in c++
This is the Figure
The above figure shows three sources and three receivers. Assume that S
i transmits to Ri. Each
source always has packets for its respective receiver. However, its transmission rate is
dependent on the given equation. After every time interval, each receiver informs its sender
the packet loss rate, which the sender then uses to calculate its transmission rate.
The router has a limited size queue, and can transmit one packet every tic. Once a queue is full,
any subsequent packets will be discarded. To be realistic, you can set the link speed to M
Mbit/s, and simulate transmission delays.
Each source has an application that generates packets as follows:
1. Given a load
*p* (0<= p <=1).
2. Generate a random number R in the range 0<= R <=1.
3. If R>p, generate a packet in the current time interval.
4. Otherwise, do nothing.
The above network can then be simulated as follows:
Initialization
Set the router's queue size to N, meaning it can hold up to N packets.
For each sender, set an initial transmission rate, and determine the time when the first packet is
to be generated.
Body
FOR t=1 to SIM_TIME DO
{
1. IF the router's queue is not empty then dequeue a packet, and enqueue that packet in
the corresponding receiver's queue.
2. IF a sender has a packet to send THEN
-
Check if the router's queue is full. If not, enqueue the sender's packet. Otherwise,
discard the packet.
3. Determine whether any packet loss rate messages are generated by receivers. If yes,
then re
-compute the sender's transmission rate. Determine the new time when the
next packet will be generated. I.e, t+k, where k is the time interval until the next packet
arrives.
4. Collect all required statistics.
}