Return-Path: lccheung@usc.edu Delivery-Date: Tue Apr 24 15:08:16 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3OM8GMj010201 for ; Tue, 24 Apr 2007 15:08:16 -0700 Received: from [204.57.0.121] by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JH000HQNW6ASLE0@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Tue, 24 Apr 2007 15:08:34 -0700 (PDT) Date: Tue, 24 Apr 2007 15:08:34 -0700 From: Leslie Cheung Subject: Re: CSCI551 HW3 question In-reply-to: <200704242153.l3OLr3Kq026053@flpvm23.prodigy.net> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <462E7FE2.8080707@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <200704242153.l3OLr3Kq026053@flpvm23.prodigy.net> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) Someone wrote: > Can you please clarify one of the questions in HW3 below? > > > > 2. Other [than] indicating the location of each node in our scripts, > what else means can we use to set node locations and movements? > > > First, please go through the following ns tutorial on simulating wireless network. http://www.isi.edu/nsnam/ns/tutorial/ In this homework, you are supposed to specify movement of the node in the tcl script. The tutorial describes another way to specify node movement. This method is very useful when you have many nodes in your network, and does not require you to specify node movement in the tcl script. You are supposed describe this method in a couple of sentences for question 2. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Sat Apr 21 20:48:23 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3M3mNdH016358 for ; Sat, 21 Apr 2007 20:48:23 -0700 Received: from [204.57.0.90] by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPA id <0JGV006CSRX6E6E0@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Sat, 21 Apr 2007 20:48:43 -0700 (PDT) Date: Sat, 21 Apr 2007 20:48:36 -0700 From: Leslie Cheung Subject: Re: cs551: hw3 In-reply-to: Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <462ADB14.2020301@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 1.5.0.5 (X11/20060808) Someone wrote: > How do we set the radio range of the nodes to 250m. I cant seem to find anything on the internet. > As far as I know, the default value for the radio range is 250m. That is, you don't need to do anything special to set the radio range to 250m. I'll need to look it up, and I'll send out an email if you need to do something to set the radio range. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Apr 12 15:44:21 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3CMiLem007769 for ; Thu, 12 Apr 2007 15:44:21 -0700 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JGE00A21PULLGE0@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Thu, 12 Apr 2007 15:44:45 -0700 (PDT) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JGE004CEPULGDD0@msg-store1.usc.edu> for cs551@merlot.usc.edu; Thu, 12 Apr 2007 15:44:46 -0700 (PDT) Received: from [128.125.137.2] (Forwarded-For: [128.125.3.204]) by msg-store1.usc.edu (mshttpd); Thu, 12 Apr 2007 15:44:45 -0700 Date: Thu, 12 Apr 2007 15:44:45 -0700 From: Leslie Cheung Subject: Re: cs551 office hour, Apr 17 and Apr 19 In-reply-to: To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-7.05 (built Sep 5 2006) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal References: Sorry for flooding everyone again. On Apr 17 and Apr 19, I'll hold office hour 2-3pm. I have a meeting scheduled on Apr 17 at 3pm, and I am going to a talk on Apr 19 (which I believe is relevant to the class!). --Leslie ----- Original Message ----- From: Leslie Cheung Date: Thursday, April 12, 2007 3:29 pm Subject: office hour, Apr 17 To: cs551@merlot.usc.edu > Hi class, > > On Apr 17, I'll hold office hour 2-3pm in SAL 211 because I have a > meeting scheduled at 3pm. Sorry for any inconvenience caused. > > --Leslie > > Return-Path: lccheung@usc.edu Delivery-Date: Thu Apr 12 15:28:45 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3CMSjXl006445 for ; Thu, 12 Apr 2007 15:28:45 -0700 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JGE00A4XP4MLGC0@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Thu, 12 Apr 2007 15:29:10 -0700 (PDT) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JGE0040UP4MGD50@msg-store1.usc.edu> for cs551@merlot.usc.edu; Thu, 12 Apr 2007 15:29:10 -0700 (PDT) Received: from [128.125.137.2] (Forwarded-For: [128.125.3.204]) by msg-store1.usc.edu (mshttpd); Thu, 12 Apr 2007 15:29:10 -0700 Date: Thu, 12 Apr 2007 15:29:10 -0700 From: Leslie Cheung Subject: office hour, Apr 17 To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-7.05 (built Sep 5 2006) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Hi class, On Apr 17, I'll hold office hour 2-3pm in SAL 211 because I have a meeting scheduled at 3pm. Sorry for any inconvenience caused. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Tue Apr 10 15:55:54 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l3AMtsUi006477 for ; Tue, 10 Apr 2007 15:55:54 -0700 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JGB00F6S11W3B00@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Tue, 10 Apr 2007 15:56:20 -0700 (PDT) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JGB00A8Z11WQWI0@msg-store1.usc.edu> for cs551@merlot.usc.edu; Tue, 10 Apr 2007 15:56:20 -0700 (PDT) Received: from [128.125.137.3] (Forwarded-For: [128.125.3.205]) by msg-store1.usc.edu (mshttpd); Tue, 10 Apr 2007 15:56:20 -0700 Date: Tue, 10 Apr 2007 15:56:20 -0700 From: Leslie Cheung Subject: cs551: final project part 2 To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-7.05 (built Sep 5 2006) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Hi class, If you have not implemented the following in your part 1 submission, please implement them. (1) status neighbors (We need to make sure you have the correct topology, please also make sure the output is readable by Nam) (2) Hello (3) logging For the purpose of part 2, if you have not implemented "Join" and "Check", don't worry about them, but please document this in the README of your part 2 submission. For non-beacon nodes, you can assume you have an init_neighbor_list in the node's home directory, and send "Hello" to right away (you can skip the "Join" phase). If init_neighbor_list is not found, or any nodes in the list are not up, you can shutdown the node and print an error message. Please do not let your node gives any seg faults if this happens. For part 2, it is very important to get "status files" working, or else there is no way we can check if you are storing/caching files correctly. In this case, we will assume you did not store/cache files correctly and you will lose quite a few points. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Mar 29 19:26:02 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l2U2Q2Zu020070 for ; Thu, 29 Mar 2007 19:26:02 -0700 Received: from [192.168.1.2] ([71.130.171.11]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JFP009FW2RYLZB0@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Thu, 29 Mar 2007 19:26:23 -0700 (PDT) Date: Thu, 29 Mar 2007 19:26:02 -0700 From: Leslie Cheung Subject: Re: HW2 In-reply-to: <200703292256.l2TMuR7P006628@bourbon.usc.edu> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <460C753A.4020205@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <200703291751.l2THpMCl001700@bourbon.usc.edu> <200703292256.l2TMuR7P006628@bourbon.usc.edu> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) Someone wrote: > I have a doubt in HW2. Do we need to create a nam file also so as to see in n > etwork animator for HW2 or just the Xgraph > from a trace file is enough?? Please create a nam file as well as trace file for xgraph. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Wed Mar 28 22:32:21 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l2T5WKMO016100 for ; Wed, 28 Mar 2007 22:32:20 -0700 Received: from [192.168.1.2] ([69.231.23.63]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JFN0047ZGQHST30@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Wed, 28 Mar 2007 22:32:42 -0700 (PDT) Date: Wed, 28 Mar 2007 22:32:29 -0700 From: Leslie Cheung Subject: Re: hw2 doubt In-reply-to: <200703290320.l2T3KU6w023843@bourbon.usc.edu> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <460B4F6D.40308@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <200703281702.l2SH28U1015361@bourbon.usc.edu> <200703290320.l2T3KU6w023843@bourbon.usc.edu> User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) Someone wrote: > In homework#2, after I am done with writing tcl script what is the file forma > t thar xgraph takes as input and how do I generate that file format to generat > e the plot. You can check the ns2 tutorial at http://www.isi.edu/nsnam/ns/tutorial/ As for xgraph format, please see my email with timestamp "Thu 22 Feb 14:32". --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Tue Mar 27 15:24:21 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l2RMOLet030117 for ; Tue, 27 Mar 2007 15:24:21 -0700 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JFL008V2296OQ10@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Tue, 27 Mar 2007 15:24:42 -0700 (PDT) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JFL00AVQ2964NH0@msg-store1.usc.edu> for cs551@merlot.usc.edu; Tue, 27 Mar 2007 15:24:42 -0700 (PDT) Received: from [128.125.137.4] (Forwarded-For: [128.125.3.205]) by msg-store1.usc.edu (mshttpd); Tue, 27 Mar 2007 15:24:42 -0700 Date: Tue, 27 Mar 2007 15:24:42 -0700 From: Leslie Cheung Subject: office hour, week of Apr 2 To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-7.05 (built Sep 5 2006) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Hi class, I have to move my office hour on Apr 5 (Thu) so that I can attend Prof Lazowska's lecture. So next week I will hold office hour on Apr 3 (Tue) 3-5pm. Thanks. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Fri Mar 23 03:08:20 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l2NA8K19003822 for ; Fri, 23 Mar 2007 03:08:20 -0700 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JFC00FM9PDQV130@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Fri, 23 Mar 2007 03:05:50 -0700 (PDT) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JFC000EBPDQBP50@msg-store1.usc.edu> for cs551@merlot.usc.edu; Fri, 23 Mar 2007 03:05:51 -0700 (PDT) Received: from [128.125.137.4] (Forwarded-For: [71.130.127.95]) by msg-store1.usc.edu (mshttpd); Fri, 23 Mar 2007 03:05:50 -0700 Date: Fri, 23 Mar 2007 03:05:50 -0700 From: Leslie Cheung Subject: office hour To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-7.05 (built Sep 5 2006) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Hi class, I will hold office hour on Fri (Mar 23) 3-4pm at SAL 211 for those of you who have last-minute questions about final project part 1. Thanks. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Tue Mar 20 14:47:20 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l2KLlKIU009018 for ; Tue, 20 Mar 2007 14:47:20 -0700 Received: from LesliePC ([71.130.127.95]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JF8002EW1QS06A0@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Tue, 20 Mar 2007 14:44:52 -0700 (PDT) Date: Tue, 20 Mar 2007 14:44:10 -0700 From: Leslie Cheung Subject: moving office hour Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <0JF8002EX1QS06A0@msg-mx0.usc.edu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.0.6000.16386 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Thread-index: AcdrOOThWANMSZjGRSWqek4N4HgpwQ== Hi class, I am running late... Let me move my office hour today to 3:30pm - 4:30pm. Sorry about the (very) short notice! --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Mar 15 00:43:40 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l2F7he51024809 for ; Thu, 15 Mar 2007 00:43:40 -0700 Received: from LesliePC ([71.130.127.95]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JEX00916PCQEL20@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Thu, 15 Mar 2007 00:41:14 -0700 (PDT) Date: Thu, 15 Mar 2007 00:41:11 -0700 From: Leslie Cheung Subject: RE: cs551 nam file In-reply-to: <92e7c4b70703142349t7f54e697n9355e2de565da9a5@mail.gmail.com> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <0JEX00917PCQEL20@msg-mx5.usc.edu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.0.6000.16386 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Thread-index: AcdmziE4zluO5WaAT9i8jpGKGqGVkQABPDsg Someone wrote: > Do you know a good tutorial on nam file construction? I don't really have any tutorial on nam traces. One good starting point is the "status.out" example in the spec. Let me elaborate on the example here. V -t * -v 1.0a5 This first line is an initialization command. Just keep this as the first line in your nam output. n -t * -s 3 -c red -i black n -t * -s 4 -c red -i black Each of these lines creates a node. "n" means node. "-t *" indicates time. You can just keep it this way. "-s 3" means source id. This should represent the well-known port of the nodes. (You can assume all nodes run on nunki, and hence using port number alone can identify a node.) "-c red" means color of the node is red. "-I black" means color of the label (port number) is black. l -t * -s 3 -d 4 -c blue This line creates a link. "l" means link". "-t *" indicates time. "-s 3" means source id, and "-d 4" means destination id. In the context of our project, since all we care is who is connected to who, it doesn't matter which node is the source, and which node is the destination. So, "-s 3 -d 4" is the same as "-s 4 -d 3". Again, you can use port number as id. "c blue" means the color of the link is blue. There is documentation on Nam traces in the Ns manual. You can go to http://www.isi.edu/nsnam/ns/doc/index.html and search for "Nam Traces" (Subsection 46). --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Sun Feb 25 23:17:05 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l1Q7H5HR024370 for ; Sun, 25 Feb 2007 23:17:05 -0800 Received: from lesliee502e195 ([71.133.246.86]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JE200DAN6SOAK50@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Sun, 25 Feb 2007 23:14:48 -0800 (PST) Date: Sun, 25 Feb 2007 23:14:44 -0800 From: Leslie Cheung Subject: RE: cs551 HW1 problem In-reply-to: <92e7c4b70702252239s20bbf7f7yb51bd3fdc19bb88c@mail.gmail.com> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <0JE200DAO6SOAK50@msg-mx0.usc.edu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Thread-index: AcdZcOqSdoLxR379Skm9GTo5h4ucDgABLllA Someone wrote: >I encountered a problem in HW1 when creating a UDP Sink. >Based on class slides, I wrote "set udpdst [new Agent/NULL]". >Ns complained this statement is wrong, with error message: > >invalid command name "Agent/NULL" > >Do you have an idea about the mistake? Thanks for your time! Try "Agent/Null" (capitalized only the "N" in Null"). --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Feb 22 14:37:38 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l1MMbcp1014529 for ; Thu, 22 Feb 2007 14:37:38 -0800 Received: from [204.57.0.90] by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPA id <0JDV00AEAYQR3T60@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Thu, 22 Feb 2007 14:35:23 -0800 (PST) Date: Thu, 22 Feb 2007 14:32:26 -0800 From: Leslie Cheung Subject: cs551: hw2 xgraph format Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <45DE19FA.8070109@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5.0.5 (X11/20060808) Hi class, I got a question during my office hour regarding hw2 (you might want to check back when you start working on hw2). In hw2, you are asked to plot size of the TCP congestion window using xgraph. A student asked me how you should format your data and plot it using xgraph. You need to write a Tcl script to tell ns-2 output the data in the following format. [time1] [congestion window size at time1] [time2] [congestion window size at time2] ... For example, 0 1 0.005 1 0.010 1 0.015 2 0.020 2 ... --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Mon Feb 19 02:46:52 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l1JAkqZh022977 for ; Mon, 19 Feb 2007 02:46:52 -0800 Received: from lesliee502e195 ([71.133.127.148]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JDP0077DHUEDI50@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Mon, 19 Feb 2007 02:44:39 -0800 (PST) Date: Mon, 19 Feb 2007 02:44:29 -0800 From: Leslie Cheung Subject: cs551: grader's office hour Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <0JDP0077EHUEDI50@msg-mx5.usc.edu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Thread-index: AcdUEu5pilp8CI0sQlG/IeQA1YWcSA== Hi class, The grader is going to hold office hour for warmup1 on Tue, Feb 20 2-4pm in SAL 211. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Feb 15 16:05:52 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l1G05qPQ026583 for ; Thu, 15 Feb 2007 16:05:52 -0800 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JDJ003J84651JA0@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Thu, 15 Feb 2007 16:03:41 -0800 (PST) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-5.02 (built Dec 1 2005)) with ESMTP id <0JDJ00A5C465N6G0@msg-store1.usc.edu> for cs551@merlot.usc.edu; Thu, 15 Feb 2007 16:03:41 -0800 (PST) Received: from [128.125.137.4] (Forwarded-For: [128.125.3.205]) by msg-store1.usc.edu (mshttpd); Thu, 15 Feb 2007 16:03:41 -0800 Date: Thu, 15 Feb 2007 16:03:41 -0800 From: Leslie Cheung Subject: Re: cs551: looking for project partner In-reply-to: <02a601c7514e$c0bf2600$6d01a8c0@YASH> To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-5.02 (built Dec 1 2005) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal References: <0JDH009JHY0ZXX90@msg-mx5.usc.edu> <02a601c7514e$c0bf2600$6d01a8c0@YASH> Someone wrote: > I am lookng for a project partner. Can you please email me @ > xxxxx@usc.eduif there is anyone who is looking similarly.. If you are looking for a project partner, please send me an email by Saturday (Feb 17 11:59pm). I'll then let you know what is also looking for a partner, so that you can meet. Please be aware that you'll get the same score as your partner no matter what happens (e.g., your partner drops the class, or does not work on the project as hard as you do, etc). And no extension will be given if you have problems with your partner. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Feb 15 00:55:35 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l1F8tZ50019688 for ; Thu, 15 Feb 2007 00:55:35 -0800 Received: from lesliee502e195 ([71.133.127.148]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JDH009JGY0ZXX90@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Thu, 15 Feb 2007 00:53:24 -0800 (PST) Date: Thu, 15 Feb 2007 00:53:18 -0800 From: Leslie Cheung Subject: RE: CS551 : Final Project : Working in groups In-reply-to: <005201c750da$434b7620$a8357d80@AARONBFERNANDES> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <0JDH009JHY0ZXX90@msg-mx5.usc.edu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=iso-8859-1 Thread-index: AcdQ2kKYIfdXLJdZRl+HjAGWGgVylQAA1egg Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by merlot.usc.edu id l1F8tZ50019688 Someone wrote:   > Just wanted to confirm... Working in groups, for the final project, is entirely optional. > is that correct? This is correct. You can work alone if you prefer so. We grade group projects and individual projects in the exact same way. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Tue Feb 13 15:31:47 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx5.usc.edu (msg-mx5.usc.edu [128.125.137.10]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l1DNVlL8023233 for ; Tue, 13 Feb 2007 15:31:47 -0800 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx5.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JDF00DXRD9CQN90@msg-mx5.usc.edu> for cs551@merlot.usc.edu; Tue, 13 Feb 2007 15:29:36 -0800 (PST) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-5.02 (built Dec 1 2005)) with ESMTP id <0JDF0096HD9CYX20@msg-store1.usc.edu> for cs551@merlot.usc.edu; Tue, 13 Feb 2007 15:29:36 -0800 (PST) Received: from [128.125.137.2] (Forwarded-For: [128.125.3.205]) by msg-store1.usc.edu (mshttpd); Tue, 13 Feb 2007 15:29:36 -0800 Date: Tue, 13 Feb 2007 15:29:36 -0800 From: Leslie Cheung Subject: cs551 final project To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-5.02 (built Dec 1 2005) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Hi class, As you might already know, the final project is HUGE. Even though you have more than a month to work on part 1, please start your final project ASAP! Writing code for a project of this size takes a lot of time. Debugging takes even longer, especially if you are not very familiar with C/C++. I had students who had spent more than a week just to hunt down a memory bug. Last semester, I noticed that some groups did not do well because they did not have enough time to integrate the code from both partners. So if you are working with a partner, be prepared to spend a week to integrate your code with your partner's code. If you plan to do your coding on other platform (we don't recommend), please be prepared to spend another week to port your code. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Thu Jan 25 15:52:56 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l0PNquo1012548 for ; Thu, 25 Jan 2007 15:52:56 -0800 Received: from [204.57.0.121] by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JCG0017S7KVHI90@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Thu, 25 Jan 2007 15:50:56 -0800 (PST) Date: Thu, 25 Jan 2007 15:51:11 -0800 From: Leslie Cheung Subject: Re: cs551 TA office phone number In-reply-to: <45B7EBDC.4050702@usc.edu> Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <45B9426F.2050604@usc.edu> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <45B6AA51.8070701@usc.edu> <45B6B83A.1030808@usc.edu> <45B6B9F6.3070502@usc.edu> <45B7EBDC.4050702@usc.edu> User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Someone wrote: > Do you have a phone in SAL 211? (213) 740 4508 I am only in my TA office during my office hour, so if you want to call, please call during my office hour. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Wed Jan 24 23:56:41 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l0P7ufwJ031276 for ; Wed, 24 Jan 2007 23:56:41 -0800 Received: from lesliee502e195 ([71.130.125.254]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTPSA id <0JCE007FAZB1O380@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Wed, 24 Jan 2007 23:54:40 -0800 (PST) Date: Wed, 24 Jan 2007 23:54:30 -0800 From: Leslie Cheung Subject: warmup project 1 Sender: lccheung@usc.edu To: cs551@merlot.usc.edu Message-id: <0JCE007FBZB2O380@msg-mx0.usc.edu> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Thread-index: AcdAVgrP5yTyQYzES36BcbuG6rrE/Q== Hi all, Here are answers to some questions I answered during my office hour, and I think this might be of interest to the rest of the class... 1. README Things I expect in README are (a) any design decisions you made that is not in the spec (e.g., how do you choose a timeout value, how do you handle malicious clients/servers, etc); (b) Known bugs (not required, but it's nice to have so the grader knows what to expect); (c) any deviation from the spec (e.g., the grader need to type something other than "make server" to create an executable file for the server); and (d) References (e.g., you use some code you find on a web site) Please note that by putting design decisions README does not exempt you from losing points. For example, if you set the timeout value to 2 hours and you put that in README, the grader might think this is not a good decision, and takes points off for those test cases. If you want to put additional info in the README for your own references (e.g., what this project does), that's ok. You can assume that the grader has a copy of the spec, so you don't have to repeat what's in the spec. 2. Separate Compilation (a) Please do not put any "implementation" of any function in .h files. This is considered "putting the bulk of your code in a .h file". What you should do is to put only function or variable declarations in a .h file (hello.h), and put the implementation of the functions in the corresponding .c file (hello.c). (b) You are required to divide server code into multiple .c files (for example, server.c and server_functions.c). If you put all the server code in one file (server.c), you'll lose 5 points. The files do not have to be of "similar" size. For example, you can put most of the code in "server.c", and just one function in "server_functions.c". We are requiring you to divide code into multiple files to make sure you understand separate compilation, and how to create an executable from multiple .c files. This also applies to client code. (c) For each .c files, you have to generate a .o file (using the "-c" option of gcc), and then link all the .o files to create an executable for server/client. 3. Getting filesize In one of the test cases in our grading guideline (/etc/shadow), you do not have read access to the file, but you are able to get the filesize. If you try to open the file and count the number of bytes, you'll get "Permission denied" and not able to get the filesize. You should use "stat" of "fstat" to get the size of the file. See the man page on nunki for details ("man -s 2 stat"). I hope this helps. --Leslie Return-Path: lccheung@usc.edu Delivery-Date: Tue Jan 23 16:06:53 2007 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by merlot.usc.edu (8.13.5/8.13.5) with ESMTP id l0O06q5Q006841 for ; Tue, 23 Jan 2007 16:06:52 -0800 Received: from msg-store1.usc.edu ([128.125.137.12]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTP id <0JCC0028SIW54R50@msg-mx0.usc.edu> for cs551@merlot.usc.edu; Tue, 23 Jan 2007 16:04:53 -0800 (PST) Received: from usc.edu (localhost.usc.edu [127.0.0.1]) by msg-store1.usc.edu (Sun Java System Messaging Server 6.2-5.02 (built Dec 1 2005)) with ESMTP id <0JCC0042EIW5RGK0@msg-store1.usc.edu> for cs551@merlot.usc.edu; Tue, 23 Jan 2007 16:04:53 -0800 (PST) Received: from [128.125.137.4] (Forwarded-For: [128.125.3.204]) by msg-store1.usc.edu (mshttpd); Tue, 23 Jan 2007 16:04:53 -0800 Date: Tue, 23 Jan 2007 16:04:53 -0800 From: Leslie Cheung Subject: office hour To: cs551@merlot.usc.edu Message-id: MIME-version: 1.0 X-Mailer: Sun Java(tm) System Messenger Express 6.2-5.02 (built Dec 1 2005) Content-type: text/plain; charset=us-ascii Content-language: en Content-transfer-encoding: 7BIT Content-disposition: inline X-Accept-Language: en Priority: normal Hi all, I'll extend my office hour on Thu (1/25) to 3pm - 5pm since warmup1 is due on the next day. If you need help earlier, you can make an appointment with me tomorrow. I am available until 3pm. --Leslie