C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 06-05-2005, 10:09 PM   #1
Registered User
 
Join Date: Jun 2005
Posts: 1
How to send Jumbo frames ?

Hi all,
I intend to develope a small utility that can send Jumbo Frames (frames that have size larger than 1500 octets).
I can send normal frame only.
I appreciate any suggestions.
Thanks for reading the message.
thaipham is offline   Reply With Quote
Old 06-06-2005, 05:34 AM   #2
Registered User
 
Join Date: Jan 2002
Location: Cardiff
Posts: 2,219
what are you talking about
Brian is offline   Reply With Quote
Old 06-06-2005, 09:21 AM   #3
Registered User
 
eth0's Avatar
 
Join Date: Dec 2003
Posts: 164
perhaps this should be in networking
and I'm assuming that by larger than 1500, you mean packets like Ethernet which have a larger data section ?? (MTU is 1500 for TCP)
__________________
Open source isn't a matter of life or death......
.......its much more important than that!!


SuSE Linux - GCC 3.4.2
XP Pro - Visual Studio 2005 TS, MinGW 3.4.2

Last edited by eth0; 06-06-2005 at 10:44 AM.
eth0 is offline   Reply With Quote
Old 06-08-2005, 03:58 PM   #4
Registered User
 
Join Date: Sep 2004
Posts: 197
Yea, GigE can handle jumbo frames, but this has nothing to do with the program, Ill explain.

As a programmer, you simply work with the API given, normally Sockets or Winsock depending on platoform, and at that level, all you care about is Layer 3 and up (IP mainly). When you send something via sockets, the OS will determine how its sent at layer 2 (Gigabit Ethernet in this case I would say), now if your NIC and Switch supports jumboframes, as well as the destination, the OS will determin weather or not jumbo frames is usable (at least this is my understanding). Basicly its not up to you, but up to the OS and its implementation of IP and the Ethernet standard. Plus, if the packet is going outside of the LAN, it should default to the normal MTU size (1500).

Basicly, don't worry about trying to use Jumbo frames, the OS will take care of that.
__________________
If any part of my post is incorrect, please correct me.

This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.
Xipher is offline   Reply With Quote
Old 06-09-2005, 03:10 PM   #5
Registered User
 
eth0's Avatar
 
Join Date: Dec 2003
Posts: 164
Whatever technique you use, your jumbo frames will be fragmented anyway when they hit the WAN, as ATM can't handle anything over 53 bytes, and cuts them down.

(note, when I said "MTU is 1500 for TCP", I meant ethernet)
__________________
Open source isn't a matter of life or death......
.......its much more important than that!!


SuSE Linux - GCC 3.4.2
XP Pro - Visual Studio 2005 TS, MinGW 3.4.2
eth0 is offline   Reply With Quote
Old 06-10-2005, 09:44 AM   #6
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
eth, what about MPLS? how much can it handle?
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 06-16-2005, 07:27 AM   #7
Registered User
 
crepincdotcom's Avatar
 
Join Date: Oct 2003
Posts: 94
The network stack takes care of frame size for you. If you allow jumbo frames, as root type:

ifconfig eth0 mtu 9000

Remember that only other computers with jumbos enable can receve what you send.

-Jack Carrozzo
http://www.crepinc.com/
crepincdotcom is offline   Reply With Quote
Old 06-20-2005, 09:14 AM   #8
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
Quote:
Originally Posted by crepincdotcom
The network stack takes care of frame size for you. If you allow jumbo frames, as root type:

ifconfig eth0 mtu 9000

Remember that only other computers with jumbos enable can receve what you send.

-Jack Carrozzo
http://www.crepinc.com/

I think you're forgetting something very simple, like the network itself!
The fact that you can set your system's mtu path means nothing,
that's why it's usually recommended to either use the default ethernet setting, or allow the mtu value to be set by the dhcp.

In shot, unless you connect the two computers with a crossover cable you get nothing by setting the mtu size to 9000, since the network devices are most likely ethernet based.
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Old 06-21-2005, 09:32 AM   #9
Registered User
 
crepincdotcom's Avatar
 
Join Date: Oct 2003
Posts: 94
But a managed switch can be changed to allow a larger MTU.
__________________
-Jack C
jack {at} crepinc.com
http://www.crepinc.com
crepincdotcom is offline   Reply With Quote
Old 06-21-2005, 10:36 AM   #10
* Death to Visual Basic *
 
Devil Panther's Avatar
 
Join Date: Aug 2001
Posts: 768
Well yes, of course! But why should you?!
Also, it will get fragmented once it gets out of your adminitrative network, it's not like you have a closed huge network like the CIA or something

Plus I don't think that thaipham is a network administrator.
__________________
"I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

http://www.Bloodware.net - Developing free software for the community.
Devil Panther is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tuncated uint8_t Coens C Programming 14 11-24-2008 07:57 AM
sending n no of char data uning send() function, thebrighter Windows Programming 1 08-22-2007 12:26 PM
Jumbo Frames - sort of working bj00 Networking/Device Communication 1 07-23-2007 10:29 AM
pointers InvariantLoop C Programming 13 02-04-2005 09:32 AM
LISP (DrScheme) any one? Jeremy G A Brief History of Cprogramming.com 5 03-31-2004 12:52 PM


All times are GMT -6. The time now is 10:44 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22