[twsocket] UDP Concept doubt
Hello Everyone! I´m in doubt in some aspects of UDP. Do UDP suffers from fragmentation like TCP? what I mean is that in TCP if I send a chunck of data, it is not guaranteed that this data will be received in a single event correct? It is guaranteed that it will be delivered completed and in order, so we have to implement packet boundaries on the application protocol. I would like to know if I send packets of data in UDP it will be fragmented too, because if it is, than an application protocol that will use UDP as underling layer will have to implement some packet boundaries mechanism. I´m asking this because of the RTP (Real Time Protocol) protocol, I´m currently developing an application that will have to parse RTP packets, but on RTP specification there is no packet boundaries. On the specification is only said that one RTP packet should be sent on one UDP packet, but I´m thinking if UDP packet will be fragmented and will be received in one or more events on ICS Thanks a lot Éric Fleming Bonilha -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] UDP Concept doubt
UDP packets can be fragmented at the IP level, but once you do a receive you will receive the full datagram so you don't have to worry about it. A problem you may run into though is that of WSockets default buffer not being big enough for a full size UDP packet... you might have to set the buffer higher than the default if you arent receiving the full datagrams. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Fleming Bonilha Sent: 03 July 2006 13:42 To: twsocket@elists.org Subject: [twsocket] UDP Concept doubt Hello Everyone! I´m in doubt in some aspects of UDP. Do UDP suffers from fragmentation like TCP? what I mean is that in TCP if I send a chunck of data, it is not guaranteed that this data will be received in a single event correct? It is guaranteed that it will be delivered completed and in order, so we have to implement packet boundaries on the application protocol. I would like to know if I send packets of data in UDP it will be fragmented too, because if it is, than an application protocol that will use UDP as underling layer will have to implement some packet boundaries mechanism. I´m asking this because of the RTP (Real Time Protocol) protocol, I´m currently developing an application that will have to parse RTP packets, but on RTP specification there is no packet boundaries. On the specification is only said that one RTP packet should be sent on one UDP packet, but I´m thinking if UDP packet will be fragmented and will be received in one or more events on ICS Thanks a lot Éric Fleming Bonilha -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] UDP Concept doubt
Thanks Dan!!! Now I got it Thanks!!! - Original Message - From: "Dan" <[EMAIL PROTECTED]> To: "'ICS support mailing'" Sent: Monday, July 03, 2006 7:11 PM Subject: Re: [twsocket] UDP Concept doubt UDP packets can be fragmented at the IP level, but once you do a receive you will receive the full datagram so you don't have to worry about it. A problem you may run into though is that of WSockets default buffer not being big enough for a full size UDP packet... you might have to set the buffer higher than the default if you aren't receiving the full datagrams. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Éric Fleming Bonilha Sent: 03 July 2006 13:42 To: twsocket@elists.org Subject: [twsocket] UDP Concept doubt Hello Everyone! I´m in doubt in some aspects of UDP. Do UDP suffers from fragmentation like TCP? what I mean is that in TCP if I send a chunck of data, it is not guaranteed that this data will be received in a single event correct? It is guaranteed that it will be delivered completed and in order, so we have to implement packet boundaries on the application protocol. I would like to know if I send packets of data in UDP it will be fragmented too, because if it is, than an application protocol that will use UDP as underling layer will have to implement some packet boundaries mechanism. I´m asking this because of the RTP (Real Time Protocol) protocol, I´m currently developing an application that will have to parse RTP packets, but on RTP specification there is no packet boundaries. On the specification is only said that one RTP packet should be sent on one UDP packet, but I´m thinking if UDP packet will be fragmented and will be received in one or more events on ICS Thanks a lot Éric Fleming Bonilha -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] UDP Concept doubt
> Now I got it UDP packets are not fragmented at the application level, but you may get duplicates, or miss some packet, recieve the packets in incorrect order. Those conditions are very difficult to reproduce on a small LAN. You have to have a large LAN with different speed in different subnet and have several routes between points A and B. You are likely to get the problems on the internet when communicating between systems with long routes between them (Use tracert to know). It is much easier to deal with TCP fargmentation than to deal with the unreliable (by design !) UDP protocol. The only interesting features are broadcast and multicast capabilities UDP has an TCP lacks. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Éric Fleming Bonilha" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Tuesday, July 04, 2006 1:44 PM Subject: Re: [twsocket] UDP Concept doubt > Thanks Dan!!! > > Now I got it > > Thanks!!! > > - Original Message - > From: "Dan" <[EMAIL PROTECTED]> > To: "'ICS support mailing'" > Sent: Monday, July 03, 2006 7:11 PM > Subject: Re: [twsocket] UDP Concept doubt > > > UDP packets can be fragmented at the IP level, but once you do a receive > you > will receive the full datagram so you don't have to worry about it. A > problem you may run into though is that of WSockets default buffer not > being > big enough for a full size UDP packet... you might have to set the buffer > higher than the default if you aren't receiving the full datagrams. > > Dan > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Éric Fleming Bonilha > Sent: 03 July 2006 13:42 > To: twsocket@elists.org > Subject: [twsocket] UDP Concept doubt > > Hello Everyone! > > I´m in doubt in some aspects of UDP. > > Do UDP suffers from fragmentation like TCP? what I mean is that in TCP if > I > send a chunck of data, it is not guaranteed that this data will be > received > in a single event correct? It is guaranteed that it will be delivered > completed and in order, so we have to implement packet boundaries on the > application protocol. > > I would like to know if I send packets of data in UDP it will be > fragmented > too, because if it is, than an application protocol that will use UDP as > underling layer will have to implement some packet boundaries mechanism. > > I´m asking this because of the RTP (Real Time Protocol) protocol, I´m > currently developing an application that will have to parse RTP packets, > but > on RTP specification there is no packet boundaries. On the specification > is > only said that one RTP packet should be sent on one UDP packet, but I´m > thinking if UDP packet will be fragmented and will be received in one or > more events on ICS > > Thanks a lot > > Éric Fleming Bonilha > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be