2011-06-08 7 views
0

我創建使用本地主機對這一計劃在vb.net..m控制檯中的TCP客戶機/服務器的聊天軟件是指發送數據包,並從相同的網絡接口卡接收.. 現在我捕獲的數據包從這個軟件在Wireshark ..我想繪製從wireshark上捕獲的數據的TCp吞吐量圖,但我有這個問題..很好地幫助我..! 也教我在x軸和y軸應該採取哪個值..?TCP吞吐量圖

這裏是我的Wireshark的捕獲,因爲我無法發送和接收pckets區分數據..!

No.,"Time","Source","Destination","Protocol","Info","New Column","New Column" 
1,"0.000000","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [PSH, ACK] Seq=1 Ack=1 Win=65510 Len=3","1","9050" 


2,"0.441512","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] pda-data > versiera [PSH, ACK] Seq=1 Ack=1 Win=65510 Len=3","2","9050" 


3,"0.442643","115.186.111.66","115.186.111.66","TCP","versiera > pda-data [PSH, ACK] Seq=1 Ack=4 Win=65532 Len=3","3","3253" 

4,"0.829213","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] versiera > pda-data [PSH, ACK] Seq=1 Ack=4 Win=65532 Len=3","4","3253" 

5,"0.949875","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [ACK] Seq=4 Ack=4 Win=65507 Len=0","5","9050" 

6,"1.259930","115.186.111.66","115.186.111.66","TCP","[TCP Dup ACK 5#1] pda-data > versiera [ACK] Seq=4 Ack=4 Win=65507 Len=0","6","9050" 

7,"6.755535","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [PSH, ACK] Seq=4 Ack=4 Win=65507 Len=3","7","9050" 

8,"7.119189","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] pda-data > versiera [PSH, ACK] Seq=4 Ack=4 Win=65507 Len=3","8","9050" 

9,"7.119833","115.186.111.66","115.186.111.66","TCP","versiera > pda-data [PSH, ACK] Seq=4 Ack=7 Win=65529 Len=3","9","3253" 

10,"7.467483","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] versiera > pda-data [PSH, ACK] Seq=4 Ack=7 Win=65529 Len=3","10","3253" 

11,"7.588601","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [ACK] Seq=7 Ack=7 Win=65504 Len=0","11","9050" 

12,"7.931341","115.186.111.66","115.186.111.66","TCP","[TCP Dup ACK 11#1] pda-data > versiera [ACK] Seq=7 Ack=7 Win=65504 Len=0","12","9050" 

13,"11.311228","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [PSH, ACK] Seq=7 Ack=7 Win=65504 Len=3","13","9050" 

14,"11.650297","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] pda-data > versiera [PSH, ACK] Seq=7 Ack=7 Win=65504 Len=3","14","9050" 

15,"11.650931","115.186.111.66","115.186.111.66","TCP","versiera > pda-data [PSH, ACK] Seq=7 Ack=10 Win=65526 Len=3","15","3253" 

16,"11.953358","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] versiera > pda-data [PSH, ACK] Seq=7 Ack=10 Win=65526 Len=3","16","3253" 

17,"12.114983","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [ACK] Seq=10 Ack=10 Win=65501 Len=0","17","9050" 

18,"12.388906","115.186.111.66","115.186.111.66","TCP","[TCP Dup ACK 17#1] pda-data > versiera [ACK] Seq=10 Ack=10 Win=65501 Len=0","18","9050" 

19,"18.455431","115.186.111.66","115.186.111.66","TCP","pda-data > versiera [PSH, ACK] Seq=10 Ack=10 Win=65501 Len=3","19","9050" 

20,"18.699858","115.186.111.66","115.186.111.66","TCP","[TCP Retransmission] pda-data > versiera [PSH, ACK] Seq=10 Ack=10 Win=65501 Len=3","20","9050" 

對不起,我找不到比這更好的方式,張貼在這裏我wirehsrak數據:-O

+0

如果你要繪製的吞吐量,它是一個軸將是「吞吐量」打賭...... – 2011-06-08 22:24:34

回答

0

既然你正在監視你的電腦和自己,是的,這將使它很難之間的對話。一般來說,如果你是來源,那麼你發送,如果你是目的地,那麼你正在接收。

我建議X軸是時間,Y軸是吞吐量。

+0

它不應該是那麼難。您應該能夠通過匹配wireshark報告的TCP端口號來識別客戶端和服務器。 – 2011-06-08 22:26:27

+0

但我在兩個程序中都使用相同的(9050)端口。你想讓我改變它們中的任何一個然後捕獲包嗎? – Madiha 2011-06-08 22:28:56

+0

不,但是,如果你有兩臺測試機器來驗證你的想法,爲什麼你要監控自己的交通情況,這會更混亂?從技術上講,它永遠不會離開。端口號有幫助,但通常你會一直在看2臺不同的機器? – BugFinder 2011-06-08 22:30:32