473,388 Members | 1,322 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Exceeding MTU which serialized tcp messages

Hi, I am writing a client/server application that has quite complex
messages that can only reasonably be handled by parsing serialized
message class objects using a networkstream and binaryformatter. when
the message objects are less than the MTU (1500b) then message is
correctly deserialized at the recieving end. when the message exceeds
1500b the packet is completely dropped and only 1byte is received at
the other end. Ethereal confirms the dropped packet.

i would have thought .Net sockets class would hand splitting the data
transmittion into packets that do not exceed the MTU but it doesn't by
default. is there anything i need to set to make this happen because
the application works beautifully when client and server run on the
same machine and it would be a lot of work to re-write the messages to
make them less than 1500b.

Thanks in advance for any help with this.

Regards,
Matthew

Jun 28 '06 #1
2 2034
Hi Matthew,
Sounds like you might have a "black hole router" problem. You might
want to read this:
http://groups.google.com/group/micro...c02620cf76eb2a

Another option is to try this (this worked for me in a similar
situation):

1) Run Regedit
2) Navigate to:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ TCPIP \
Parameters \ Interfaces \

Highlight the correct interface by looking for the active IP Address,
add a REG_DWORD with value MTU and add decimal data 1492

Reboot after change. Depending on the type of network connection, you
might need to do smaller MTU values (e.g. 1472).

You can test the MTU along a path by using PING to see how low you have
to go:
ping -f -l 1472 x.x.x.x

This is not a .NET problem, it's lower down.

Hope that helps,
John

M4tt wrote:
Hi, I am writing a client/server application that has quite complex
messages that can only reasonably be handled by parsing serialized
message class objects using a networkstream and binaryformatter. when
the message objects are less than the MTU (1500b) then message is
correctly deserialized at the recieving end. when the message exceeds
1500b the packet is completely dropped and only 1byte is received at
the other end. Ethereal confirms the dropped packet.

i would have thought .Net sockets class would hand splitting the data
transmittion into packets that do not exceed the MTU but it doesn't by
default. is there anything i need to set to make this happen because
the application works beautifully when client and server run on the
same machine and it would be a lot of work to re-write the messages to
make them less than 1500b.

Thanks in advance for any help with this.

Regards,
Matthew


Jun 28 '06 #2
Thanks John. We will try this out.

John Duval wrote:
Hi Matthew,
Sounds like you might have a "black hole router" problem. You might
want to read this:
http://groups.google.com/group/micro...c02620cf76eb2a

Another option is to try this (this worked for me in a similar
situation):

1) Run Regedit
2) Navigate to:
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ TCPIP \
Parameters \ Interfaces \

Highlight the correct interface by looking for the active IP Address,
add a REG_DWORD with value MTU and add decimal data 1492

Reboot after change. Depending on the type of network connection, you
might need to do smaller MTU values (e.g. 1472).

You can test the MTU along a path by using PING to see how low you have
to go:
ping -f -l 1472 x.x.x.x

This is not a .NET problem, it's lower down.

Hope that helps,
John

M4tt wrote:
Hi, I am writing a client/server application that has quite complex
messages that can only reasonably be handled by parsing serialized
message class objects using a networkstream and binaryformatter. when
the message objects are less than the MTU (1500b) then message is
correctly deserialized at the recieving end. when the message exceeds
1500b the packet is completely dropped and only 1byte is received at
the other end. Ethereal confirms the dropped packet.

i would have thought .Net sockets class would hand splitting the data
transmittion into packets that do not exceed the MTU but it doesn't by
default. is there anything i need to set to make this happen because
the application works beautifully when client and server run on the
same machine and it would be a lot of work to re-write the messages to
make them less than 1500b.

Thanks in advance for any help with this.

Regards,
Matthew


Jun 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: PeterF | last post by:
Hello, following problem: I use a mysql query string like $arg= " insert into ".$sometable; $arg.=" (id, col1) "; $arg.="values ( '$this->id', '$data' ) "; ^^^^^^ $data is a product of...
1
by: T.S.Negi | last post by:
Hi, A query is exceeding the length of varchar and nvarchar variable. Because I'm picking the data from each record from table and giving it to the query. suggest me some way to do it. ...
0
by: Ray Mitchell | last post by:
Hello, The result of auto-converting some Java code to C# yielded the following upgrade issue regarding the original Java call to "reset()": public virtual void writeObj(Object obj) {...
0
by: Wim Hollebrandse | last post by:
Here's the scenario. I'm serializing a particular object, which contains other objects as properties. I have this particular enum type that won't get included in the serialized XML. For...
0
by: Pierre | last post by:
Hi, I'm trying to select specific nodes from a XmlDocument filled with a serialized object and to insert these nodes into another XmlDocument. The object is well serialized (see below). From a...
7
by: Neal Andrews | last post by:
Hi All, Does anyone know how to stop Events from being serialized in a class that uses the <Serializable()> attribute? I have tried using the <NonSerialized()> attribute but for some bizarre...
5
by: EqDev | last post by:
I have a class that is a control derived from UserControl. I want to use serialization and deserialization with this calss but I get an exception "Cannot serialize member...
0
by: bharathreddy | last post by:
Before going to that i want to say few thing on serialization : Serialization is the process of converting an object into a form that can be readily transported. For example, you can serialize an...
9
by: PI | last post by:
Hi Guys, I need some assistance with the following scenario please. I know this might be more of a MySQL post than a PHP one, but it is likely some developer has been here before and would be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.