Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

flosstein

macrumors newbie
Original poster
May 10, 2007
7
0
NJ
Can the packet size be changed from 64bytes to 1024 Kb. If so how do I change this. and if not is there a program that I can use that will allow me to do this

Thanx
 
Don't you just use the -s option?

-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.

So you would need to put in 1048576 - 8 = 1048568, I guess?
 
Don't you just use the -s option?



So you would need to put in 1048576 - 8 = 1048568, I guess?

I'm not to familiar with terminal to be honest. I'm at work and a customer is experiencing packet loss. So I've tried the network utility and it does not allow me to chage packet size. how do you enter that in terminal?
Thanx for the help
 
That makes me wonder what I was originally wondering... is a packet of 1024kb even possible to begin with? Or did you want 1024 *bytes*? In which case you would pass 1016 to the ping command.
 
If you look at man ping with terminal, you will see that you use ping -s (as mkrisnan said), so to ping my website (for example) you would use the following:

Code:
ping -s 1024 www.matthewhutton.com
 
That makes me wonder what I was originally wondering... is a packet of 1024kb even possible to begin with? Or did you want 1024 *bytes*? In which case you would pass 1016 to the ping command.

that's what I need sorry for the mixup. how do I enter that in terminal
 
I think it might actually be 1016 per my previous post, and not 1024. When you get the ping results back, you'll see the "actual" number -- like when you use 56, you get 64 (56 data bytes and 8 header bytes). So if you get 1032 instead of 1024, then you should be using ping -s 1016 hostname. :)

Good luck!
 
It is 1024 not 1016. The packet header is included in the actual packet size. So no need to subtract to create custom packets, which by the way will still have the header information in a smaller packet size.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.