Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
424a6d9e
Commit
424a6d9e
authored
18 years ago
by
Robert Ricci
Browse files
Options
Downloads
Patches
Plain Diff
Simple script to get pairwise latency predictions from iplane
parent
448e377b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pelab/iplane/iplane_pairwise.rb
+47
-0
47 additions, 0 deletions
pelab/iplane/iplane_pairwise.rb
with
47 additions
and
0 deletions
pelab/iplane/iplane_pairwise.rb
0 → 100644
+
47
−
0
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
}
"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment