Sponsored Content
Full Discussion: TCP MSS Issue
Special Forums IP Networking TCP MSS Issue Post 302882525 by DGPickett on Tuesday 7th of January 2014 03:15:55 PM
Old 01-07-2014
MSS is related to MTU. I wrote it up very nicely years ago, so look here (come bits are AIX, but much is general):
http://davidgpickett.home.comcast.net/~davidgpickett/tips/
especially:
http://davidgpickett.home.comcast.net/~davidgpickett/tips/tcp_tuning.970513.txt

More modern TCP packets have extended headers, so you get less than 1460 payload from 1500 MTU. The extended header can do buffers over 65K and swap timestamps for tuning. Sometimes a TCP header carries an MTU setting, at least at first.
 

6 More Discussions You Might Find Interesting

1. Cybersecurity

Tcp/ip

!HELLO , What is the maximum number of hosts on a TCP/IP internet? plz can u help me. :rolleyes: (2 Replies)
Discussion started by: smdakram
2 Replies

2. Programming

How to set the MSS programatically.

I'm sending a SYN packet and now I want to specify the MSS (The maximum segment size option in a TCP packet ) through it. How can I do that? Also, I'm not getting a SYN-ACK back from the remote host. TCPDUMP tells me that my packet is good and is a SYN. Then, why don't I get back the SYN-ACK? I... (0 Replies)
Discussion started by: zampya
0 Replies

3. Linux

Security issue with TCP SYN packets on Linux

Hi all, A security scanner has been done on a linux server and have found that The remote host does not discard RCP SYN packets which have the FIN flag set. It tells that I need to request a patch which I haven't found yet. I have Red Hat Linux release 7.0 (Guinness) Kernel 2.2.16-22... (2 Replies)
Discussion started by: bert.n
2 Replies

4. IP Networking

Tcp\ip

I have written a TCP/IP client and server program. The client sends a message to the server and then the server sends a file back to the client. The client reads the buffer and stores it another file in the client side. I need to know what are the various exceptions that I need to handle in... (0 Replies)
Discussion started by: Rajeshsu
0 Replies

5. IP Networking

Could a tcp issue be causing a null pointer exception?

The client's app gets a 'suspend error' which they say is due to a null pointer exception. Application people say nothing's wrong with the app. Network people say the network's fine. I'm supposed to see what's wrong with the system to be causing this error. I checked the NIC card settings, which... (1 Reply)
Discussion started by: pmichner
1 Replies

6. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies
ZMQ_TCP(7)							    0MQ Manual								ZMQ_TCP(7)

NAME
zmq_tcp - 0MQ unicast transport using TCP SYNOPSIS
TCP is an ubiquitous, reliable, unicast transport. When connecting distributed applications over a network with 0MQ, using the TCP transport will likely be your first choice. ADDRESSING
A 0MQ address string consists of two parts as follows: transport://endpoint. The transport part specifies the underlying transport protocol to use, and for the TCP transport shall be set to tcp. The meaning of the endpoint part for the TCP transport is defined below. Assigning a local address to a socket When assigning a local address to a socket using zmq_bind() with the tcp transport, the endpoint shall be interpreted as an interface followed by a colon and the TCP port number to use. An interface may be specified by either of the following: o The wild-card *, meaning all available interfaces. o The primary IPv4 address assigned to the interface, in its numeric representation. o The interface name as defined by the operating system. Note Interface names are not standardised in any way and should be assumed to be arbitrary and platform dependent. On Win32 platforms no short interface names exist, thus only the primary IPv4 address may be used to specify an interface. Connecting a socket When connecting a socket to a peer address using zmq_connect() with the tcp transport, the endpoint shall be interpreted as a peer address followed by a colon and the TCP port number to use. A peer address may be specified by either of the following: o The DNS name of the peer. o The IPv4 address of the peer, in its numeric representation. WIRE FORMAT
0MQ messages are transmitted over TCP in frames consisting of an encoded payload length, followed by a flags field and the message body. The payload length is defined as the combined length in octets of the message body and the flags field. For frames with a payload length not exceeding 254 octets, the payload length shall be encoded as a single octet. The minimum valid payload length of a frame is 1 octet, thus a payload length of 0 octets is invalid and such frames SHOULD be ignored. For frames with a payload length exceeding 254 octets, the payload length shall be encoded as a single octet with the value 255 followed by the payload length represented as a 64-bit unsigned integer in network byte order. The flags field consists of a single octet containing various control flags: Bit 0 (MORE): More message parts to follow. A value of 0 indicates that there are no more message parts to follow; or that the message being sent is not a multi-part message. A value of 1 indicates that the message being sent is a multi-part message and more message parts are to follow. Bits 1-7: Reserved. Bits 1-7 are reserved for future expansion and MUST be set to zero. The following ABNF grammar represents a single frame: frame = (length flags data) length = OCTET / (escape 8OCTET) flags = OCTET escape = %xFF data = *OCTET The following diagram illustrates the layout of a frame with a payload length not exceeding 254 octets: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload length| Flags | Message body ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Message body ... +-+-+-+-+-+-+- ... The following diagram illustrates the layout of a frame with a payload length exceeding 254 octets: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 0xff | Payload length ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload length ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload length| Flags | Message body ... | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Message body ... +-+-+-+-+-+-+-+ ... EXAMPLES
Assigning a local address to a socket. /* TCP port 5555 on all available interfaces */ rc = zmq_bind(socket, "tcp://*:5555"); assert (rc == 0); /* TCP port 5555 on the local loop-back interface on all platforms */ rc = zmq_bind(socket, "tcp://127.0.0.1:5555"); assert (rc == 0); /* TCP port 5555 on the first Ethernet network interface on Linux */ rc = zmq_bind(socket, "tcp://eth0:5555"); assert (rc == 0); Connecting a socket. /* Connecting using an IP address */ rc = zmq_connect(socket, "tcp://192.168.1.1:5555"); assert (rc == 0); /* Connecting using a DNS name */ rc = zmq_connect(socket, "tcp://server1:5555"); assert (rc == 0); SEE ALSO
zmq_bind(3) zmq_connect(3) zmq_pgm(7) zmq_ipc(7) zmq_inproc(7) zmq(7) AUTHORS
This manual page was written by the 0MQ community. 0MQ 2.2.0 04/04/2012 ZMQ_TCP(7)
All times are GMT -4. The time now is 12:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy