Changes between Version 1 and Version 2 of Internal/PacketServer


Ignore:
Timestamp:
Feb 12, 2013, 4:00:57 PM (12 years ago)
Author:
nilanjan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/PacketServer

    v1 v2  
    11= Packet server =
    22
    3 The short synopsis:
     3== Packet source ==
    44
    55A TCP based packet source is available on idb2:5123 generates random packets prepended with a CRC and Seq#.
    66Clients can request packets from server with the following handshaking process after a TCP socket connection has been established:
    7 1) client sends server the request packet size (byte 4 word)
    8 2) server sends client packet of requested size with the following fields (4 byte each):
     7 1. client sends server the request packet size (byte 4 word)
     8 2. server sends client packet of requested size with the following fields (4 byte each):
    99
    1010    | CRC - Seq# - pyld[0] - ... - pyld[pkt-size-3]  |
     
    2424The above handshake process [t1,t2] will repeat for 120 seconds after which the connection will be terminated.
    2525
     26== Packet sink ==
     27
    2628Similary a TCP based packet sink available on idb2:5125 which receive packets from client. and verifies the crc. As of right now this packet sink is best used for looping back data from the packet server. Clients can send data to server after a connection has been established:
    27 1) server sends client a ready packet (4 byte word)
    28 2) client sends server data with the following field (4 byte each):
     29 1. server sends client a ready packet (4 byte word)
     30 2. client sends server data with the following field (4 byte each):
    2931
    3032    | CRC - Seq#- pyld[0] - pyld[1] - ... - pyld[pkt-size-3]  |