From owner-freebsd-ipfw@FreeBSD.ORG Thu Nov 25 15:31:18 2010 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA10F1065674 for ; Thu, 25 Nov 2010 15:31:18 +0000 (UTC) (envelope-from nangergong@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 386178FC08 for ; Thu, 25 Nov 2010 15:31:17 +0000 (UTC) Received: by bwz2 with SMTP id 2so1028651bwz.13 for ; Thu, 25 Nov 2010 07:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=4UKGuN6JN7ojXlOKrGt9qR6Hd66zJfcWQLHCtWYgx+0=; b=oGOLJGIk21JMVNTxppBPY9/7+l1XXCXyn9gXNIXykPZE3RhDVP+5GcTBQos6oKkeUZ Y1YNXxUyb7MsiicvOPuJtSwKNnXN8KQYo1tJWO5W6Y0iOyMD7Lsb5mVgqlm59UrguGva IMOWS0DzGZHaOcgUwa+/at9WyCs2X/Vtv7Qvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=nEOFqk6vQ8NtMeysZ8Fy7VJRvnPSLog6EaeCaGWNwONscNABZbZ9usDBPaOZ0gK5nQ ER1u+sF4LtTu0wkPS8WOTAgbMzLmpxJkXGXJ498bld4F1LjjRfoldGOvs62uC7b+Oxy7 EENymX/YhvN1LcLoNp7Gdj4/cdeH1YHSo1YMw= MIME-Version: 1.0 Received: by 10.204.123.141 with SMTP id p13mr792867bkr.189.1290699076792; Thu, 25 Nov 2010 07:31:16 -0800 (PST) Received: by 10.204.154.81 with HTTP; Thu, 25 Nov 2010 07:31:16 -0800 (PST) Date: Thu, 25 Nov 2010 15:31:16 +0000 Message-ID: From: nangergong To: freebsd-ipfw@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: two questions:1 relationship between dummynet and wireshark 2 how to add latency for each packet to be sent X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2010 15:31:18 -0000 Hi, all: 1 relationship between dummynet and wireshark I have a question on the relationship between dummynet and wireshark. Does wireshark capture packets before dummynet starts working or after? Which of the following charts is right? (1) send packets capture add pkt loss, delay.. A------------------> wireshark --------------------> dummynet---------------------------> add pkt loss,delay... capture network----------------->dummynet -------------------------> wireshark-------------> B or (2) send packets add delay,loss capture A------------------> dummynet --------------------> wireshakr---------------------------> add pkt loss,delay... capture network----------------->dummynet -------------------------> wireshark-------------> B At first, I think (1) is right, and I did a test using "ping". However during my following test, it seems that (2) is the fact: I have two machines, A and B. When I play music on A, the RTP packets flow from A to B. I added a pipe with packet loss and bandwidth limitation, which regulates the flow from A to B. Then I captured packets on A using wireshark. If the chart (1) is right, then the packets I captured on A should be the same to the music I played on A, however, this is not the truth. 2 how to add latency for each packet to be sent I want to vary the delays(latencies) for different packets. So, is there a way to add latency for for each packet to be sent. For example, bind one pipe to one packet. Thank you!