New Reply

Average distance for network topologies.

 
Share Thread
Jan20-11, 12:39 PM   #1
 

Average distance for network topologies.


1. The problem statement, all variables and given/known data
I want to derive a general formula to calculate the average distance of the nodes in a network topology. The topologies can be line(linear), ring, mesh etc. The different nodes are numbered 0,1,2.. N-1. I understand the diameter of the network etc.

2. Relevant equations
None.


3. The attempt at a solution
I am doing self study and the book simply provides the formula without any proofs. I am not sure what are the techniques or where to start to solve it.
PhysOrg.com science news on PhysOrg.com

>> Leading 3-D printer firms to merge in $403M deal (Update)
>> LA to give every student an iPad; $30M order
>> CIA faulted for choosing Amazon over IBM on cloud contract
Jan20-11, 01:50 PM   #2
 
Perhaps the formula is intuitively understandable?
Jan21-11, 10:19 AM   #3
 
Well the book says the average distance is roughly (2/3)N for a linear bi directional linked network. Its does not seem intuitive for me. Can you please provide some hints?
Jan21-11, 02:53 PM   #4
 

Average distance for network topologies.


Hmm. In case of unidirectional link the average distance of a ring I think I could derive as follows:

The sum of distance of a node to all other nodes : 0+1+2+3..+n-1 = n(n-1)/2
Total number of distances : (n-1).
Average distance : n(n-1)/2 /n-1) = n/2.

Please verify.

Now got to figure out bidirectional links and linear array.
Jan21-11, 05:52 PM   #5
 
I'm thinking that in a unidirectional ring, the round-trip distance is the whole ring, so the average round-trip distance is the whole ring, or N. In a bidirectional ring, every node is like the center node in a bidirectional linear network. That case should be easier to understand than the linear case.

I'll think some more about this. (You're right, it isn't intuitive.)
Jan21-11, 06:31 PM   #6
 
Have you got enough to go on? The linear case becomes much easier to understand if you experiment with small numbers of nodes.
Jan24-11, 05:50 AM   #7
 
Have you got enough to go on?
I am not sure. The only thing I am going with is the (sum of distances)/(number of distances).
In case of linear link is there any hint I can use? The smaller sums tend to be the following:

For a 3 node linear link:
Distances from
1 {1,2}
2 {1,1}
3 {2,1}

Generalizing
1 {1..n-1}
2 {1,1..n-2}
3 {2,1,.., n-3}
.
.
n {n-1,.. 1}

Turns out the distances form a symmetric matrix. Now is there any properties of matrices I can use to get the sum of the distances?
Jan24-11, 07:09 AM   #8
 
I don't want to say too much because I think you can solve this, but I'll give a hint:

2 nodes: 11

3 nodes: 12, 11, 21
or 11, 2112

4 nodes: 123, 112, 211, 321
or 11, 2112, 321123
Jan24-11, 01:01 PM   #9
 
Am I in the right path if I do this?

(1+1) + (2+1+1+2) + (3+2+1+1+2+3)

i.e. 2 * n * (n-1)/2 = n*(n-1).

Hence the sequence n(n-1) + (n-1)(n-2)+....
n*n2 - n[1+3+5] + [2 + 6 + 12...]
Jan24-11, 02:57 PM   #10
 
Do you recall that you were trying to find the average distance? If you know the sum of distances, then...
Jan25-11, 12:54 AM   #11
 
Quote by vertigo View Post
Do you recall that you were trying to find the average distance? If you know the sum of distances, then...
Shouldn't I find a generic formula to find the sum of the distances?

In case of 4 nodes then the average distance is 20/12.
(The total number of distances will be n*(n-1))
Jan25-11, 06:24 AM   #12
 
Quote by nascentmind View Post
Shouldn't I find a generic formula to find the sum of the distances?

In case of 4 nodes then the average distance is 20/12.
(The total number of distances will be n*(n-1))
It's not a matter of should or shouldn't. If you want to, then do that. I'm being obtuse just because that is what you wanted, given that you said you wanted to derive (yourself) a formula for average distance between nodes in a network.

So the rest is up to you. The last hurdle was the number of nodes but you have a formula for that, so you have all the ingredients. Now just find the answer, what is the average distance versus N nodes?
Jan25-11, 06:54 AM   #13
 
I am sorry , I am confused. I am not able to find the sum of the distances for N nodes. I have distances for 2,3,4.. nodes. I am failing to see how I have enough ingredients here :(
Jan25-11, 07:05 AM   #14
 
You don't need a generic formula for N nodes. Find the average distance for 2,3,4,...

(You'll see, it works out pretty nicely.)
Jan25-11, 08:01 AM   #15
 
I think I can see it now. 1,1.3,1.6.. difference is ~ 0.3

So the formula would be 0.7 + 0.3n ?
Jan27-11, 01:03 PM   #16
 
Vertigo,
Am I right? If not can you provide me some more hints?
Jan27-11, 04:21 PM   #17
 
That formula is not correct. It works only for small numbers of nodes. Can you see why?
New Reply

Tags
average, distance, network, topology

Similar discussions for: Average distance for network topologies.
Thread Forum Replies
Physic average distance Introductory Physics Homework 1
Average distance between two points on sphere! Calculus & Beyond Homework 0
Average distance between water molecules Introductory Physics Homework 3
average velocity with respect to distance Introductory Physics Homework 2
average distance at STP Introductory Physics Homework 5