Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
424a6d9e
Commit
424a6d9e
authored
Dec 18, 2006
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple script to get pairwise latency predictions from iplane
parent
448e377b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
pelab/iplane/iplane_pairwise.rb
pelab/iplane/iplane_pairwise.rb
+47
-0
No files found.
pelab/iplane/iplane_pairwise.rb
0 → 100644
View file @
424a6d9e
#!/usr/bin/ruby
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# All rights reserved.
#
#
# Get pairwise predictions from iplane
#
# To run:
# iplane_query_client iplane.cs.washington.edu 1 iplane_pairwise.rb
# 'space seperated list of IP addresses'
#
require
'iplane'
#
# Get pairwise information for all nodes passed on the command line
#
nodes
=
ARGV
iplane
=
IPlane
.
new
#
# For now, query one-way only - the upper right corner of the NxN matrix
#
nodes
.
each_index
{
|
n1
|
(
n1
+
1
..
nodes
.
length
()
-
1
).
each
{
|
n2
|
puts
"Adding path
#{
nodes
[
n1
]
}
to
#{
nodes
[
n2
]
}
"
iplane
.
addPath
(
nodes
[
n1
],
nodes
[
n2
])
}
}
#
# Run the query on iplane
#
puts
"Getting responses..."
responses
=
iplane
.
queryPendingPaths
puts
"Got Respnses!"
#
# And, simply print the data we care about from the responses
#
responses
.
each
{
|
r
|
puts
"src=
#{
r
.
src
}
dst=
#{
r
.
dst
}
lat=
#{
r
.
lat
}
predicted?=
#{
r
.
predicted_flag
}
"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment