Harshith Mulky <harshith.mu...@outlook.com> writes: > How do i calculate the PDU for SIP for a INVITE message like this? > > INVITE sip:C1@122.166.57.88:5060 SIP/2.0 > [...]
The SIP message itself is 773 bytes. (I measured that within your e-mail message.) If it was sent via UDP over IPv4 (which is common), there is a UDP header prefixed to the SIP message. UDP headers are 8 bytes. There is an IPv4 header prefixed to the UDP header. IPv4 headers are a minimum of 32 bytes. So far, that accounts for 813 bytes. But then, what medium is the IPv4 packet sent over? As far as I can tell, the commonest type of "Ethernet" (802.3) adds a 20 byte header containing the MAC addresses and adds a 4 byte frame check sequence at the end. That brings the total to 837 bytes. The critical question is which PDU you are asking about, at the SIP layer, the UDP layer, the IP layer, or the 802.3 layer? Dale _______________________________________________ Sip-implementors mailing list Sip-implementors@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/sip-implementors