Question: Consider two switches A and B with two parallel resources ( we call them channels frequency chunks in FDM or time slots in TDM )
Consider two switches A and B with two parallel resources we call them channels frequency chunks in FDM or time slots in TDM that go from A to B We will call the minimum time it takes for a user called Alice to use the resource once some margin in time as a time period T Write a short simulation in R that works as follows:
There are N users in the system. Each user is independently active ie needs access to one of the two resources in each time period T with probability p
What is the average number of users that are active in a time period?
Each user draws a random integer between and If more than two users are active in a time period, the two users with the lowest numbers get access to the resources. For N and and p and your simulation should run for time periods. You will create N users, and with given p you will see if they are active. In each time period, you will check to see how many users are blocked from using resources they can use it if any one resource is free Note that a user is blocked if the user is active, and the user is also not one
of the two with the lowest picked numbers. So the number of blocked users in a time period may be through N Compute the average number of blocked users over the time periods. Create a table with the average fraction of blocked users average number blockedN for each N and p from your simulation. How does it compare to your number in the question under
Attach your code as a text file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
