Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r423 committed - Added Message structure of the NDTP-Control protocol.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r423 committed - Added Message structure of the NDTP-Control protocol.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r423 committed - Added Message structure of the NDTP-Control protocol.
  • Date: Thu, 28 Jul 2011 14:02:15 +0000

Revision: 423
Author:

Date: Thu Jul 28 07:01:50 2011
Log: Added Message structure of the NDTP-Control protocol.
http://code.google.com/p/ndt/source/detail?r=423

Modified:
/wiki/NDTProtocol.wiki

=======================================
--- /wiki/NDTProtocol.wiki Thu Jul 28 04:54:19 2011
+++ /wiki/NDTProtocol.wiki Thu Jul 28 07:01:50 2011
@@ -74,6 +74,55 @@
All multi-octet quantities defined in this document are represented as unsigned integers in network byte order unless specified otherwise.

== NDTP-Control ==
+
+The type of each NDTP-Control message can be found after reading the first octet. The length of each NDTP-Control message can be computed upon reading its fixed-size part. No message is shorter than 3 octets.
+
+An implementation SHOULD expunge unused state to prevent denial-of-service attacks, or unbounded memory usage, on the server. For example, if the full control message is not received within some number of minutes after it is expected, the TCP connection associated with the NDTP-Control session SHOULD be dropped. In absence of other considerations, 10 minutes seems like a reasonable upper bound.
+
+=== Message structure ===
+
+Each of the NDTP-Control messages always has the following format:
+
+{{{
+ 0 1 2 3
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | TYPE | LENTGH | |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
+ | |
+ | |
+ . .
+ . .
+ . .
+ | |
+ | |
+ | |
+ | Message (up to 65545 octets) |
+ | |
+ | |
+ | |
+ | |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+}}}
+
+=== Message types ===
+
+=== Connection Setup ===
+
+Before Client can start test sessions, it has to establish a connection to the server.
+
+First, a client opens a TCP connection to the server on a well-known port 3001 and sends a LOGIN message:
+
+{{{
+ 0 1 2 3
+ 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+ | 2 | 1 | TESTS |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+}}}
+
+Where TESTS is a bitwise OR of the tests' ids that should be run in a requested test-suite.
+
== NDTP-Tests ==
=== Middlebox test ===
=== Simple firewall test ===


  • [ndt-dev] [ndt] r423 committed - Added Message structure of the NDTP-Control protocol., ndt, 07/28/2011

Archive powered by MHonArc 2.6.16.

Top of Page