Return-Path: william@bourbon.usc.edu Delivery-Date: Sun Oct 26 13:31:27 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m9QKVRit009654 for ; Sun, 26 Oct 2008 13:31:27 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m9QKg8Zl021405 for ; Sun, 26 Oct 2008 13:42:09 -0700 Message-Id: <200810262042.m9QKg8Zl021405@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: final project - routing table Date: Sun, 26 Oct 2008 13:42:08 -0700 From: Bill Cheng Someone wrote: > Is there any format we should conform when creating routing table? It's not part of the spec. You can do anything you want. > When will a node delete its routing table entry? For a message, if you put it in the routing table at time X, at time X+MsgLiftime, you can remove it. It doesn't have to be precisely X+MsgLifetime. > And, when a node receive a join message, > it will flood to all the nodes except from the receiving node, > what is this action when we write to the logfile? (send or forward) "send" is only for the node that *initiated* the message. For all other nodes, it should be "forward". > Also, I know we have to decrement the TTL when receiving a message, > but what is the TTL value when writing to logfile? > Is the TTL value we received or updated TTL value (TTL-1)? If the message is "received", then it should be the TTL on the received message. If the message is "forwarded", it should be the TTL on the out-going message. -- Bill Cheng // bill.cheng@usc.edu