[twsocket] Implementing STUN, RFC3489
Francois PIETTE wrote in Re: [twsocket] UDP Concept doubt: 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 So how can I ever work around those problems? I want to write a simple STUN client component but UDP is the proto :( except upon SSL conections. Never done anything in UDP so far. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Implementing STUN, RFC3489
Simply ignore all problems ? If they should be taken into account, the the STUN protocol should have provision for that. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 15, 2006 7:41 PM Subject: [twsocket] Implementing STUN, RFC3489 Francois PIETTE wrote in Re: [twsocket] UDP Concept doubt: 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 So how can I ever work around those problems? I want to write a simple STUN client component but UDP is the proto :( except upon SSL conections. Never done anything in UDP so far. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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] Implementing STUN, RFC3489
I dunno nothing about STUN Client but you can do several things to gurantee order and single packet receival from UDP protocol usage. For instance: - To maintain order: On the receiver you have to keep a list wich receives the packets and puts them in order (you're gonna have to have a Packet ID or something for comparison). - To avoid duplicates: Simply dispose the packets that have their Packet ID's less or equal to the last processed packet ID (this implies you are gonna have to process all the packets that are in order and that have their predecessors already been processed - oh, you can remove all the processed packets from the Packet List to save resources). Just an idea, please correct me if I'm wrong. Marcelo Grossi - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, August 15, 2006 2:41 PM Subject: [twsocket] Implementing STUN, RFC3489 Francois PIETTE wrote in Re: [twsocket] UDP Concept doubt: 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 So how can I ever work around those problems? I want to write a simple STUN client component but UDP is the proto :( except upon SSL conections. Never done anything in UDP so far. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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