[Cse461] source and destination ports

From: Evan Martin (martine_at_danga.com)
Date: Mon Feb 16 2004 - 18:12:26 PST

  • Next message: Kelly Jensen: "[Cse461] pack string error msg"

    The source port and destination port in the transport header of your
    packets should always correspond to the source and destination of the
    packet, regardless of the direction of the "connection" that these
    transport packets are providing.

    That is to say, if I have a connection open from host A port a, to host
    B port b, all packets should either be:
      src: A srcport: a
      dst: B dstport: b
    or
      src: B srcport: b
      dst: A dstport: a

    Another way of saying this is that all packets from a given host along
    a the connection should have the same host:port pair, regardless of
    the packet's function.

    (There is an alternative way of looking at this that reverses things,
    which is what prompted this email. I won't write it out here because I
    don't want to confuse you. :)
    If this email seems to contradict what you're implementing, please come
    see me and I will try to explain it further.)

    -- 
    Evan Martin
    martine_at_danga.com
    http://neugierig.org
    _______________________________________________
    Cse461 mailing list
    Cse461_at_cs.washington.edu
    http://mailman.cs.washington.edu/mailman/listinfo/cse461
    

  • Next message: Kelly Jensen: "[Cse461] pack string error msg"

    This archive was generated by hypermail 2.1.6 : Mon Feb 16 2004 - 18:12:39 PST