Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Ping Measurements
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Connecting Machines == === Idea === In order for the computer's to talk to each other, a network needs to be established between the two machines. This can be done by establishing a manual IP configuration that allows for the two computers to transfer information between each other. In this case, we will be using a Linux system utility called ''ping'' which broadcasts a small (usually less than 100 bytes) IP packet to another machine on a specified network (our manually configured network). Once the packet is sent, the second computer acts as a mirror by identifying what was sent and rebroadcasting back to the first machine. ''Ping'' will then report the the total round trip time. '''Simplified Model:''' By using the ping function, the first computer will send a signal to the second computer. The signal will travel through an ethernet cable to the other computer. Then, the second computer will receive the signal and sent it back to the first computer. Finally, the signal will reach the first computer and the elapsed time is recorded by the first machine. The ping information will be stored in a file and saved to a flash drive so the data can be transferred to a computer for analysis. == Method == === IP Configuration === 1. Allow the computer to boot into the GUI [[File:desktopUbuntu.png|thumb |alt=Example alt text |GUI for Ubuntu]] 2. Load the Network Connections Assistant (Each OS will varry. For Ubuntu, you can simply search for ''Network Connections'') 3. Now select the edit options within the network settings and choose '''IPv4 Settings''' [[File:netcon.png|thumb |alt=Example alt text |Network Connection Program]] 4. Change the method type from '''DHCP''' to '''Manual''' [[File:con.png|thumb |alt=Example alt text |Edit IP Configuration Settings]] 5. The IP Address, Netmask, and Gateway need to be manually entered 6. One computer will have the following configuration : '''Address''' :: 192.168.1.1 ; '''Netmask''' :: 255.255.255.0 ; '''Gateway''' :: 192.168.1.1 7. The second computer will have the following configuration : '''Address''' :: 192.168.1.2 ; '''Netmask''' :: 255.255.255.0 ; '''Gateway''' :: 192.168.1.2 8. To test if this was done properly, use the first computer to ping the second using the command ''ping 192.168.1.2'' == Ping Testing/Data Capture == === How to Ping using Linux? === From a terminal window simply type ''ping'' followed by the address you want to ping. For example, ''ping 192.168.1.1'' will continually ping a connected computer until the user tells it to stop. To end the ping test press '''crtl+c'''. Another useful ability of ping is the '''-i''' and '''-c''' functions. '''-i''' will allow you to set the "pinging" rate and '''-c''' will set the amount of pings that are sent. Below are the steps for completing a ping test using these functions: 1. Run the computer in Single User Mode and activate a Superuser 2. Connect both computers using a crossover ethernet cable 3. Choose a time interval and a number of times you wish to ping 4. Type ''ping -i '''rate''' -c '''amount''' '''address''''' For instance, ''ping -i 0.01 -c 10000 192.168.1.2'' 5. If you wish to save the ping test: ''ping -i '''rate''' -c '''amount''' '''address''' > '''file name''''' For instance, ''ping -i 0.01 -c 10000 192.168.1.2 > test_1.txt'' For additional help or other ping functions: http://linux.about.com/od/commands/l/blcmdl8_ping.htm http://www.wikihow.com/Ping-in-Linux '''Example:''' The ping command can be manipulated to send 10000 signals at set interval rates. For example, the command written in single-user mode: ''ping -i 0.01 -c 10000 192.168.1.2''. This command prompts the computer to send 10000 signals to that IP address (which was the second computer's) at a rate of one signal every 0.01 seconds. After each of the signals are sent, the round trip time is recorded and stored.
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)