What are the sizes of packet sizes and headers of various protocols ?

October 28, 2007 · Filed Under Networks, Placement Questions 



Don't want to miss a single bit? Subscribe By Email for Daily Jobs

Enter your email address :

All the latest from JobsAdda on Jobsadda.com delivered to your mailbox everyday.

I Haven’t heard any company asking this question but still its better to know a thing or two about them. Here is a Good Advice - Even if you don’t know the header size of what the interviewer is asking, tell the size of thsoe headers which youi know. This will make him feel that you know a thing or two

* TCP/ IP has a total header length of 40 bytes (20 bytes for IP and 20 bytes for TCP).

* UDP/IP has a total header length of 44 bytes (12 bytes for MQe, 12 bytes for UDP and 20 bytes for IP). When creating the packets, the MQe UDP/IP adapter will take into account its own header information so all that needs to be taken into account are the UDP and IP headers, amounting to 32 bytes. If the MTU of the network is 532, the packet size should be set to 500. If the packet size is less then 30, the default packet size will be used.

* HTTP is a little more difficult to quantify as the amount of data put into the HTTP header by MQe will vary depending on whether a proxy is being used or if a servlet is being accessed and the length of data being sent. The minimum added by MQe is 116 bytes of data which assumes the length will fit into 3 bytes for its string representation. Additional bytes need to be allowed for if proxies or servlets are being used.

* Ethernet has a 14 byte header.

Related Articles


Get Latest JobsAdda.com Jobs, news & updates  via Email