LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-29-2014, 06:59 AM   #1
-Jiten-
LQ Newbie
 
Registered: Oct 2014
Location: India
Distribution: Ubuntu
Posts: 5

Rep: Reputation: Disabled
Question Query regarding ping command #2 [Ubuntu]


Hi, Please find my question below:

Through ping command we can get info regarding packet received, sent, loss, duplication.

Ques 1: Is there any way we can send Packet data of different sizes, one after another ?

Ques 2: If Yes can we implement reordering scenario in it.

Ques 3: Also can we limit bandwidth usage while sending packets ?


Thanks
 
Old 10-29-2014, 02:22 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Is this homework? Please note the LQ rule concerning homework. I repeat it here for your convenience.
Quote:
Do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and searches) and we'll do our best to help. Keep in mind that your instructor might also be an LQ member.
Have you tried the command
Code:
man ping
on a terminal? That may help you get some answers for your assignment.
jdk
 
Old 10-30-2014, 01:39 AM   #3
-Jiten-
LQ Newbie
 
Registered: Oct 2014
Location: India
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by jdkaye View Post
Is this homework? Please note the LQ rule concerning homework. I repeat it here for your convenience.

Have you tried the command
Code:
man ping
on a terminal? That may help you get some answers for your assignment.
jdk
No. Its just for my knowledge. I want to know whether i can do more with ping command or not & if there is any other tool or command for the same, i would like to know that too.

# Yes i already tried man ping .. but there is no options to perform reordering or limit bandwidth
 
Old 10-30-2014, 01:50 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by -Jiten- View Post
No. Its just for my knowledge. I want to know whether i can do more with ping command or not & if there is any other tool or command for the same, i would like to know that too.

# Yes i already tried man ping .. but there is no options to perform reordering or limit bandwidth
I don't understand what you're looking for. For example you can do this with your ping command:
Quote:
-s packetsize
Specifies the number of data bytes to be sent. The default is 56, which translates
into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data.
There are many other things you can do listed in the man entry.
So that answers your question, correct?
jdk

Last edited by jdkaye; 10-30-2014 at 01:56 AM.
 
Old 10-30-2014, 06:59 AM   #5
-Jiten-
LQ Newbie
 
Registered: Oct 2014
Location: India
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by jdkaye View Post
I don't understand what you're looking for. For example you can do this with your ping command:

There are many other things you can do listed in the man entry.
So that answers your question, correct?
jdk
What iam asking is while sending packets from 1 PC to another, can we limit the bandwidth ?
& for reordering , suppose i want to send 4 packets 1,2,3,4. can i change the order in which they received by 2nd PC ?
 
Old 10-30-2014, 07:30 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,039

Rep: Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347Reputation: 7347
ping is originally used to measure the line, and there was no reason to restrict it. So ping itself is not able to limit bandwidth and also cannot handle reordering. I think you need to find another tool (or implement something) for that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Query regarding ping command [Ubuntu] -Jiten- Linux - Newbie 3 10-29-2014 06:19 AM
Ping command hangs indefinitely i.e.system(ping -w 10 [ip address]) Anshu Tomar Linux - Newbie 4 07-05-2012 07:16 AM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
Sharing an XP net connection with a Ubuntu box - Ubuntu config query. uncle-c Linux - Newbie 2 11-06-2007 10:09 AM
Simple question about command syntax ping/log ping results ohalnet Linux - Networking 1 07-25-2006 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration