Skip to contentSkip to conversation

MTU limited to 672

Bluez-devel Jim Wyllie 2 participants 3 messages Feb 21, 2006 Bluetooth drivers

lore
Share & tools
lore

Jim Wyllie

author
#0 lore raw

I am implementing a protocol over L2CAP and would like to increase the MTU over 672 bytes. However, attempting a connection with the requisite size will fail in connect() with "Connection Reset by Peer". I am also unable to get an actual MTU over 672 using l2test.

I was unable to find the location in the kernel where this functionality was implemented. Could someone let me know if it's the case that one can't get an MTU over 672 with the current kernel and libraries, and if so, if there are any workarounds?

Thank you for your time,
Jim

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

The Limitation of a maximum MTU size of 672 is a limitation enforced by the Bluetooth specification. You can not use an MTU larger than 672.

Ciao,

Peter

Quoted 14 lines · Jim Wyllie

I am implementing a protocol over L2CAP and would like to increase the MTU over 672 bytes. However, attempting a connection with the requisite size will fail in connect() with "Connection Reset by Peer". I am also unable to get an actual MTU over 672 using l2test.

I was unable to find the location in the kernel where this functionality was implemented. Could someone let me know if it's the case that one can't get an MTU over 672 with the current kernel and libraries, and if so, if there are any workarounds?

Thank you for your time,
Jim

Quoted 10 lines

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

|	Peter Wippich 			Voice: +49 30 46776411		|
|	G&W Instruments GmbH		fax:   +49 30 46776419		|
|	Gustav-Meyer-Allee 25, Geb. 12	Email: [email protected]	|
|	D-13355 Berlin  / Germany					|

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
In reply to Jim Wyllie

Sorry, MTU size larger than 672 is possible in general. But it is not guaranteed that the remote device will support it. The minimum MTU is 48 Bytes. Most devices support MTU sizes up to 672 bytes (the default value).

Maximum MTU size is negotiated during L2CAP connection setup. See L2CAP specification. So what happens is that you tried to connect to a remote device with an MTU size larger than the remote device supports.

You should check L2CAP implementation and HCI.

Ciao,

Peter

Quoted 14 lines · Jim Wyllie

I am implementing a protocol over L2CAP and would like to increase the MTU over 672 bytes. However, attempting a connection with the requisite size will fail in connect() with "Connection Reset by Peer". I am also unable to get an actual MTU over 672 using l2test.

I was unable to find the location in the kernel where this functionality was implemented. Could someone let me know if it's the case that one can't get an MTU over 672 with the current kernel and libraries, and if so, if there are any workarounds?

Thank you for your time,
Jim

Quoted 10 lines

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

|	Peter Wippich 			Voice: +49 30 46776411		|
|	G&W Instruments GmbH		fax:   +49 30 46776419		|
|	Gustav-Meyer-Allee 25, Geb. 12	Email: [email protected]	|
|	D-13355 Berlin  / Germany					|

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel