Questions tagged [network-protocols]

A network protocol defines rules and conventions for communication between network devices.

Network protocols include mechanisms for devices to identify and make connections with each other, as well as formatting rules that specify how data is packaged into messages sent and received. Some protocols also support message acknowledgement and data compression designed for reliable and/or high-performance network communication. Hundreds of different computer network protocols have been developed each designed for specific purposes and environments.

1232 questions
458
votes
8 answers

What is the largest TCP/IP network port number allowable for IPv4?

What is the highest port number one can use?
username
  • 18,800
  • 11
  • 41
  • 45
322
votes
4 answers

In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?

I am building a small chat application for friends, but unsure about how to get information in a timely manner that is not as manual or as rudimentary as forcing a page refresh. Currently, I am implementing this using simple AJAX, but this has the…
somdow
  • 6,268
  • 10
  • 40
  • 58
105
votes
1 answer

Adding a new network bearer to Android

I'd like to add new bearer(s) to Android (rooted/custom build), to be a peer with Wifi and GPRS. I have done some Android development and I am aware that (in Android 2.2) there are constants for WIFI and GPRS. Does this mean that I will need to be…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
102
votes
9 answers

Java HTTP Client Request with defined timeout

I would like to make BIT (Built in tests) to a number of server in my cloud. I need the request to fail on large timeout. How should I do this with java? Trying something like the below does not seem to work. public class TestNodeAliveness { public…
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
102
votes
1 answer

Why is network-byte-order defined to be big-endian?

As written in the heading, my question is, why does TCP/IP use big endian encoding when transmitting data and not the alternative little-endian scheme?
Neji
  • 6,591
  • 5
  • 43
  • 66
78
votes
7 answers

Setting TIME_WAIT TCP

We're trying to tune an application that accepts messages via TCP and also uses TCP for some of its internal messaging. While load testing, we noticed that response time degrades significantly (and then stops altogether) as more simultaneous…
Vinnie
  • 12,400
  • 15
  • 59
  • 80
68
votes
2 answers

TCP vs UDP - What is a TCP connection?

What exactly is a TCP connection? I understand there isn't a physical connection from the client to server. Is this connection just the client's socket being linked with the new socket created by the server after the three-way-handshake? Thereafter…
Cheese
  • 1,429
  • 3
  • 16
  • 17
66
votes
10 answers

Throughput and bandwidth difference?

The throughput of a channel is a measure of amount of data actually moves through the channel. Why is it substantially less than the bandwidth of the channel?
Sameera Liaynage
  • 821
  • 2
  • 10
  • 12
61
votes
3 answers

SQL Server Express cannot connect error: 28 - Server doesn't support requested protocol

I cannot connect to my local SQL Server Express (2012, but the version shouldn't matter) from my server (Windows 2008 R2) to use a tool on it (APEX SQL Data Diff if you are wondering). I can browse the network servers fine, and select my local…
Watki02
  • 4,696
  • 7
  • 34
  • 36
57
votes
4 answers

Connecting P2P over NAT?

I started to explore the option of connecting with other using a p2p connection, so I coded a simple socket program in JAVA for android devices in which the users can share simple messages p2p (I didn't have any idea about NAT then). I got to know…
user3439988
  • 593
  • 1
  • 6
  • 9
51
votes
3 answers

How to do network tracking or debugging WebRTC peer-to-peer connection

I am wondering that there is the tool or any method I can see what underlying WebRTC peer-to-peer connection? For simple example, if I am implementing video chat using webrtc, all connection (offer, answer, ice) are established but I can't see the…
A-letubby
  • 8,474
  • 8
  • 38
  • 48
45
votes
2 answers

Which encoding is used by the HTTP protocol?

When a browser sends an HTTP request to a web server, what encoding is used to encode the HTTP protocol on the wire? Is it ASCII? UTF8? or UTF16? Or does it specify which encoding it uses in a predefined format (before any decoding takes…
skinner
42
votes
4 answers

Difference between message-oriented protocols and stream-oriented protocols

I am trying to understand the difference between these two computer networking terminologies. I searched over the internet but coudn't get a good idea. Could anybody please explain me or give a link to a page that explains this? Thank you...
bala1486
  • 1,039
  • 2
  • 14
  • 19
41
votes
7 answers

stateless protocol and stateful protocol

How to understand stateless protocol and stateful protocol? HTTP is a stateless protocol and FTP is a stateful protocol. For the web applications requiring a lot of interactions, the underlying protocol should be stateful ones. Is my understanding…
user288609
  • 12,465
  • 26
  • 85
  • 127
41
votes
2 answers

WebSockets not closing on IE if closing handshake is never made

I've been implementing a WebSocket with JavaScript and I have this one problem: The endpoint that my web-application is connected to doesn't send back a close control frame when I'm sending it one. This isn't that bad because browsers close the…
1
2 3
82 83