What could be good list of failure scenaros for testing a reliable udp layer?
I have thought of the below cases:
- Drop Data packets
- Drop ACK, NAK Packets
- Send packets in out of sequence.
- Drop intial hand shaking packets
- Drop close / shutdown packets
- Duplicate packets
Please help in identifying other cases that reliable udp ne...
I want to program in Java some application that would use sockets, specially UDP sockets, do you have by chance any good website where I can find some resources ?
...
Hi all,
I am looking for solution that can proxy my udp packets. I have one client sending udp packets to a server. Connection between them is very bad and I get lot of packet loss. One solution is to have a new proxy server that will just redirect all packets from client to destination server. The new proxy server has good connection...
Hi Guys,
For a project, I'm trying to send UDP packets from Linux kernel-space. I'm currently 'hard-coding' my code into the kernel (which I appreciate isn't the best/neatest way) but I'm trying to get a simple test to work (sending "TEST"). It should be mentioned I'm a newbie to kernel hacking - I'm not that clued up on many principles...
Hello. I have seen applications send a packet through UDP to an IP on some port and receiving a response. Which port does the response go to? (Btw, how can the router know that the response is for my PC, if there are no ports forwarded to my PC?)
Greetings, Neo_b
...
I am doing some maintenance on software and have a problem that I do not understand.
Application was developed using Microsoft Visual C++ 6 and runs on Windows XP. It consists of 21 applications that communicate to each other via UDP sockets. It is a simulation of an embedded avionics system used to debug the system in a PC environment....
I'm working on a homework problem for class. I want to start a UDP Server that listens for a file request. It opens the file and sends it back to the requesting client with UDP.
Heres the server code.
// Create UDP Socket
if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
perror("Can't create socket");
exit(-1);
...
I have a UDP Server that should sit and wait for a client to connect to it, and send it a string of a filename. Right now I just want it to echo back the filename to the client. Here is my code
Server
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/s...
Hi,
what is the size of an empty UDP datagram? And that of an empty TCP packet?
I can only find infos about the MTU, but I want to know what is the "base" size of these, in order to estimate bandwidth consumption for protocols on top of them.
Thanks in advance for infos.
...
I am trying to send my struct over a UDP socket.
struct Packet {
int seqnum;
char data[BUFFERSIZE];
};
So on the sender I have
bytes = sizeof(packet);
char sending[bytes];
bzero(sending, bytes);
memcpy((void *) sending, (void *) &packet, sizeof(bytes));
bytes = sendto(sockfd, sending, sizeof(sending), 0,
(struct sockaddr *...
Hi!
I currently participate in a project where we/the applicaition need to be able to discover other instances of the application with the same application name running on a LAN (henceforth called Node).
Prerequisites:
All Nodes know their own IP address and TCP port number
All Nodes have a name
All Nodes have access to the LAN
What I...
Hi, I have an application bound to eth0, sending UDP packets on port A to 255.255.255.255. At the same time, I have a UDP server bound to eth0, 0.0.0.0 and port A.
What I want to do is to make sure that the server won't receive messages generated by the application (handled purely in software by the kernel) but it will receive messages ...
When running a C# app I created on XP it runs just fine, but under Windows 7, I get the following error:
"An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full"
I am doing the following:
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolTy...
How do I pass following message format from a UDP client to a UDP server?
-----------------------------
|Ver|p|fff| length| checksum|
----------------------------
| Customer id |
-----------------------------
| Amount |
-----------------------------
|other |
-------------------------...
Possible duplicates: UDP Response or Receiving a response through UDP
I've been writing a udp server-client setup over the last month and have a working server. This server is meant to be a communications program to retrieve data about the computer it's hosted on that was requested by a remote client machine. The general idea is outline...
My problem is quite infuriating, actually. I'll show you the code first.
/*
** listener.c -- a datagram sockets "server" demo
*/
//Original Code: Brian Hall ([email protected])
//Commented and modified by Vishal Kotcherlakota (PID A07124450)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#i...
I have the beginnings of a small multiplayer game that I'm writing in python as a learning exercise. Currently the server runs at 10 fps, while the clients run at whatever rate they like. This works well to conserve bandwidth, but unless the client tells the server when its input happened, all input gets quantized to 100ms intervals. How...
How do I connect 2 different subnet’ed computers? For example sake let’s say the following:
192.168.1.92 connected to externally visible 222.251.155.20.
192.168.1.102 connected to externally visible 223.251.156.23.
Now there is middle man server that both machines are connected to so they can negotiate each other’s internal and externa...
Hello All,
Which binding should I use to make my WCF application communicate through UDP instead of TCP?
Can someone point me to the right direction so that I could use UDP with WCF?
Thanks
...
I'm learning about the various networking technologies, specifically the protocols UDP and TCP.
I've read numerous times that games like Quake use UDP because, "it doesn't matter if you miss a position update packet for a missile or the like, because the next packet will put the missile where it needs to be."
This thought process is al...