tcpip

Improving UDP message handling

I've got a PC program receiving data from 20 custom hardware boxes via UDP. Each of these boxes continually sends UDP messages to a single UDP socket on the PC. The messages all contain 10 - 150 bytes of data, and each unit sends about 20 messages in 12 seconds. Testing shows that some messages are being missed by the PC. Fewer boxes on...

.NET External Communication

I used the term "External Communication" simply because I do not mind which method I need to use to be able to send a simple message like "hey, how's it going?" to another person on a different computer who's also running my application. I've tried literally hundreds of samples, edited them, corrected various errors, came up with some o...

Handling dropped TCP packets in C#

Hi, I'm sending a large amount of data in one go between a client and server written C#. It works fine when I run the client and server on my local machine but when I put the server on a remote computer on the internet it seems to drop data. I send 20000 strings using the socket.Send() method and receive them using a loop which does s...

PowerShell Script to Disable/Re-enable a TCP/IP Port

Is there a way to disable and re-enable a known TCP/IP port in PowerShell? ...

Are there any protocols/standards on top of TCP optimized for high throughput and low latency?

Are there any protocols/standards that work over TCP that are optimized for high throughput and low latency? The only one I can think of is FAST. At the moment I have devised just a simple text-based protocol delimited by special characters. I'd like to adopt a protocol which is designed for fast transfer and supports perhaps compress...

Which format for transmitting data over TCP?

Hi, I'd like some advice on which format to use for transmitting data over TCP. Currently, I have devised a simple text-protocol with delimited strings. I'm thinking I should use something out there that already exists such as XML, JSON, or XMPP? What data formats do people use for transmitting over TCP? I would like to optimize for...

Windows Server 2008: connection acceptance policy

Hi, I'm currently testing a webservice on Windows Server 2008. The test program creates hundreds on concurrent threaded connections via 127.0.0.1 to the webservice in order to collect some performance metrics. From the client side most of the connection are established, the SOAP data of the request is also successfully sent, however th...

Handling Partial return from recv() TCP in C

I've been reading through beejs guide to networking to get a handle on TCP connections. In one of the samples the Client code for a simple TCP stream client looks like: if ((numbytes = recv(sockfd, buf, MAXDATASIZE-1, 0)) == -1) { perror("recv"); exit(1); } buf[numbytes] = '\0'; printf("client: received '%s'\n",buf); cl...

Determining if .NET socket is currently connected bug?

Hi, I'm trying to find out whether a Socket is currently connected - according to the MSDN docs for Socket.Connected - I should do the following: // This is how you can determine whether a socket is still connected. bool blockingState = client.Blocking; try { byte [] tmp = new byte[1]; client.Blocking = false; client.Send(...

Maximum number of TCP connections on Windows Server 2003

Are there any statistics on the maximum number of open TCP connections that a Windows Server 2003 machine with a specific configuration can have at any given time? ...

Still need checksum in application protocol when tcp/ip already has it?

I am designing an application protocol, and i am wondering if i still need include checksum in the protocol since tcp/ip already has checksum. what's your opinion? ...

Is it possible to force a packet to be fragmented in Java?

Hi, I have a bug which is caused by fragmented packets. I would like test this bug by creating a fragmented packet in the test and sending it to the software containing the bug. How would I go about doing this? Any guidance or alternative approaches appreciated, thanks. ...

Good tools to understand / reverse engineer a top layer network protocol

Hi Guys, There is an interesting problem at hand. I have a role-playing MMOG running through a client application (not a browser) which sends the actions of my player to a server which keeps all the players in sync by sending packets back. Now, the game uses a top layer protocol over TCP/IP to send the data. However, wireshark does not...

TCP server (php)

I have a gps simulator, which sends continuous location data (nmea strings) through tcpip to 192.168.0.178:2323. How do I get that data using tcp socket and write to DB (php & mysql)? Thanks! ...

Is it possible to fake blocking Connect with Silverlight sockets?

Hi, In Silverlight all socket calls are restricted to being Async - I have an API which I share between .NET and Silverlight and its based around blocking socket calls. Is there any way to fake or wrap the async socket calls in Silverlight to make them behave like blocking sockets? ...

Design for wire between server and access point and RF to endpoint device

We're about to design an inhouse industry network consisting basically of the following: 1 server connected via wire to up to 100 proprietary RF access points (basically embedded devices), which each can be connected via radio to up to 100 endpoint embedded devices. Something like this: Now, I'm wondering about some design decisions t...

SQL 2005 Job Execution: TCP/IP vs Named Pipes

Good day, I've got 2 jobs on a SQL 2005 instance that run one identical T-SQL step. That step executes a cross server query to a remote 2005 instance. The only difference between the jobs is one is owned by a sysadmin and one is not. The job that is owned by a sysadmin executes under the Agent's startup account and the one that is not...

Application design advice

I’m looking for some advice for an application I currently developing. I’ll try to keep this as brief as possible so if additional info is need just let me know. I’m developing an Winforms based event tracking system using VB.Net (VS 2008 Pro). The application collects data via serial bar code scanners and stores this data within a MS...

How many concurrent outbound HttpWebRequest calls can be made in ASP.NET / IIS7?

I'm writing an ASP.NET web application which will run on Windows Server 2008 (IIS7). Each page's codebehind will need to make at least one synchronous web service call to an external server using HttpWebRequest and GET. My question - is there any limit to the number of outbound HttpWebRequest calls I can make? (assume that the server I...

How do I open a socket back to port 80 in Silverlight?

Is there a way to open a TCP Socket back to a non-standard Silverlight port such as port 80? I don't quite understand the restrictions on Silverlight ports. I would like to open a connection back to the server of origin using any port. I can serve a policy file from port 943 if needed. ...