network-protocols

Basic questions about SNMP

Hi, I'm learning about SNMP, and writing some applications using it. I have some basic questions about the protocol: Do the agents store its state on the device itself? If there is a trap set on an agent, can you do a poll on the same OID to get the same information? Without using a mib file, is there a way to query a device for all o...

How to fake source ip-address of a udp-packet?

Hi everyone! Think about the following: Your ISP offers you a dynamic ip-address (for example 123.123.123.123). My question is simple (the answer may not be): Is it possible to send a single udp-packet with an outer source-ip (for example 124.124.124.124) to a fixed-ip server? I don't need to get a answer from the server. I just want ...

How to send raw data over a network?

Hi everyone! I've same data stored in a byte-array. The data contains a IPv4 packet (which contains a udp-packet). I want to send these array raw over the network using C# (preferred) or C++. I don't want to use C#'s udp-client for example. Does anyone know how to perform this? Sorry for my bad English and thanks for your help in adv...

Good books for learning advanced network topics (eg VOIP, MPLS, VPN, QoS) ?

Not sure if this is an appropriate question as it isn't directly programming related, but since understanding those is sometimes necessary for programmers, I believe it is a valid question, so I'm posting it. Anyway, I want to learn some of the more advanced topics that you normally don't find in introductory network books, such as the ...

check if remote host is up in python

How would I check if the remote host is up without having a port number? Is there any other way I could check other then using regular ping. There is a possibility that the remote host might drop ping packets ...

NET USE command And Network Provider interface.

When we command "net use" on command prompt, the result has four columns. Status Local Remote Network OK Z: \\10.x.x.x\Public Microsoft Windows Network X: \\10.y.y.y\Public My Network Redirector The Microsoft Windows Network(SMB)'s Status has OK value, but we don't. It's just empty. ...

Should i need to open port for outgoing request ?

Hey can any one tell me should i need open a port for outgoing request on http? ...

Inform me when site (server) is online again

When I ping one site it returns "Request timed out". I want to make little program that will inform me (sound beep or something like that) when this server is online again. No matter in which language. I think it should be very simple script with a several lines of code. So how to write it? ...

Middleware with generic communication media layer

Greetings all, I'm trying to implement middleware (driver) for an embedded device with generic communication media layer. Not sure what is the best way to do it so I'm seeking an advice from more experienced stackoverflow users:). Basically we've got devices around the country communicating with our servers (or a pda/laptop in used in f...

Issuing multiple requests using HTTP/1.1 Pipelining

When using HTTP/1.1 Pipelining what does the standard say about issuing multiple requests without waiting for each request to complete? What do servers do in practice? I ask because I once tried writing a client which would issue a batch of GET requests for multiple files and remember getting errors. I wasn't sure if it was due to me ...

Request time out error

Hi Today i came across strange problem whenever i try to pingging to my server works properly but whenever i send http reuest from browser the request time out happens. can anybody help me to resolve this issue. ...

Streaming audio - where to start?

I need to develop an embedded audio streaming server. Requirements: Voice quality or better Intended for low power wifi transmission Broad support in existing software and devices (ie, windows media player, quicktime, vlc, iPhone, Android, etc). Royalty/patent free, or cheap to license Preferences: Low overhead TCP/IP based stre...

How to maintain a persistant network-connection between two applications over a network?

I was recently approached by my management with an interesting problem - where I am pretty sure I am telling my bosses the correct information but I really want to make sure I am telling them the correct stuff. I am being asked to develop some software that has this function: An application at one location is constantly processing rea...

TCP Slow Start, Congestion Avoidance & Determining Bandwidth

Is there a formula someplace which can be used to determine the minimum number of segments / bytes which need to be transfered across a TCP connection to determine it's bandwidth and which takes into account Slow Start and Congestion Avoidance? I'm aware of the pathrate tool, but I want if possible something a bit simpler that I can inc...

Implementation of Z-modem protocol in Java

Hi, I want to send a file from serial port and I have to use the Z-modem protocol in Java. I saw the protocol and it looks defficult for me and I can't buy a commercial solution. Any Idea how can I get it easyer? Thank you for the help. ...

XmlSerializer.Deserialize blocks over NetworkStream

I'm trying to sends XML serializable objects over a network stream. I've already used this on an UDP broadcast server, where it receive UDP messages from the local network. Here a snippet of the server side: while (mServiceStopFlag == false) { if (mSocket.Available > 0) { IPEndPoint ipEndPoint = new IPEndPoint(IPAddress.Any...

Best way to parse XMPP-like XML streams?

I am working on a server application which receives data over a TCP socket in an XMPP-like XML format, i.e. every child of the <root> element essentially represents one separate request (stanza). The connection is closed as soon as </root> is received. I do know that I must use a stream parser like SAX, somehow. Though, for convenience, ...

How to design a high-level application protocol and data format for metadata syncing between devices and server?

I am looking for guidance on how to best think about designing a high-level application protocol to sync metadata between end-user devices and a server. My goal: the user can interact with the application data on any device, or on the web. The purpose of this protocol is to communicate changes made on one endpoint to other endpoints thr...

flow-tools protocol numbers

When using flow-print to print the netflows into ASCII, I get 3 different values for protocols, ie protocol 1,6,17 ? What does that mean ? Thanks ...

Implement a vpn

I want to build an application client(client.exe) - server to do the following: when the clients run it they are thrown in a VPN and they can communicate each other within 1 applicataion. For example : clients run client.exe and they can see each other in LAN ONLY in Starcraft. From what i have read the right type of vpn for this situati...