noshot 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- noshot/__init__.py +1 -0
- noshot/data/AIDS CN NLP/AIDS/1. Implement Basic Search Strategies/(A) Breadth First Search.ipynb +112 -0
- noshot/data/AIDS CN NLP/AIDS/1. Implement Basic Search Strategies/(B) Depth First Search.ipynb +111 -0
- noshot/data/AIDS CN NLP/AIDS/1. Implement Basic Search Strategies/(C) Uniform Cost Search.ipynb +134 -0
- noshot/data/AIDS CN NLP/AIDS/1. Implement Basic Search Strategies/(D) Depth Limites Search.ipynb +115 -0
- noshot/data/AIDS CN NLP/AIDS/1. Implement Basic Search Strategies/(E) Iterative Deepening DFS.ipynb +123 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/2_ANOVA.csv +769 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/One Way ANOVA (Repeated Measure).ipynb +126 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/One Way ANOVA.ipynb +134 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/Sample 1 Way ANOVA Test.ipynb +119 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/Two Way ANOVA.ipynb +138 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/reaction_time.csv +5 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/sample_data.csv +16 -0
- noshot/data/AIDS CN NLP/AIDS/10. ANOVA/sleep_deprivation.csv +4 -0
- noshot/data/AIDS CN NLP/AIDS/11. Linear Regression/3_Linear.csv +4802 -0
- noshot/data/AIDS CN NLP/AIDS/11. Linear Regression/Linear Regression LAB.ipynb +113 -0
- noshot/data/AIDS CN NLP/AIDS/11. Linear Regression/Linear Regression New- sklearn.ipynb +118 -0
- noshot/data/AIDS CN NLP/AIDS/11. Linear Regression/Linear Regression.ipynb +148 -0
- noshot/data/AIDS CN NLP/AIDS/11. Linear Regression/house_rate.csv +22 -0
- noshot/data/AIDS CN NLP/AIDS/12. Logistic Regression/Logistic Regression New- sklearn.ipynb +128 -0
- noshot/data/AIDS CN NLP/AIDS/12. Logistic Regression/Logistic Regression.ipynb +145 -0
- noshot/data/AIDS CN NLP/AIDS/12. Logistic Regression/default.csv +1001 -0
- noshot/data/AIDS CN NLP/AIDS/12. Logistic Regression/hours_scores_records.csv +101 -0
- noshot/data/AIDS CN NLP/AIDS/2. Implement A Star And MA Star/(A) Astar.ipynb +256 -0
- noshot/data/AIDS CN NLP/AIDS/2. Implement A Star And MA Star/(B) IDAstar.ipynb +157 -0
- noshot/data/AIDS CN NLP/AIDS/2. Implement A Star And MA Star/(C) SMAstar.ipynb +178 -0
- noshot/data/AIDS CN NLP/AIDS/3. Genetic Algorithm/Genetic.ipynb +95 -0
- noshot/data/AIDS CN NLP/AIDS/4. Simulated Annealing/Simulated Annealing.ipynb +74 -0
- noshot/data/AIDS CN NLP/AIDS/4. Simulated Annealing/Sudoku Simulated Annealing.ipynb +103 -0
- noshot/data/AIDS CN NLP/AIDS/5. Alpha Beta Pruning/AlphaBetaPruning.ipynb +182 -0
- noshot/data/AIDS CN NLP/AIDS/6. Consraint Satisfaction Problems (CSP)/(A) CSP House Allocation.ipynb +120 -0
- noshot/data/AIDS CN NLP/AIDS/6. Consraint Satisfaction Problems (CSP)/(B) CSP Map Coloring.ipynb +125 -0
- noshot/data/AIDS CN NLP/AIDS/7. Random Sampling/Random Sampling.ipynb +73 -0
- noshot/data/AIDS CN NLP/AIDS/7. Random Sampling/height_weight_bmi.csv +8389 -0
- noshot/data/AIDS CN NLP/AIDS/8. Z Test/Z Test Hash Function.ipynb +141 -0
- noshot/data/AIDS CN NLP/AIDS/8. Z Test/Z Test.ipynb +151 -0
- noshot/data/AIDS CN NLP/AIDS/8. Z Test/height_weight_bmi.csv +8389 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/1_heart.csv +304 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/Independent T Test.ipynb +119 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/Paired T Test.ipynb +118 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/T Test Hash Function.ipynb +142 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/T Test.ipynb +158 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/height_weight_bmi.csv +8389 -0
- noshot/data/AIDS CN NLP/AIDS/9. T Test/iq_test.csv +0 -0
- noshot/data/AIDS CN NLP/AIDS/Others (AllinOne)/All In One.ipynb +4581 -0
- noshot/data/AIDS CN NLP/CN/1. Chat Application/chat.java +81 -0
- noshot/data/AIDS CN NLP/CN/1. Chat Application/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/1. Chat Application/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/10. Ethernet LAN IEEE 802.3/LAN.tcl +65 -0
- noshot/data/AIDS CN NLP/CN/10. Ethernet LAN IEEE 802.3/analysis.awk +44 -0
- noshot/data/AIDS CN NLP/CN/10. Ethernet LAN IEEE 802.3/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/10. Ethernet LAN IEEE 802.3/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/11. Wireless LAN IEEE 802.11/complexdcf.tcl +229 -0
- noshot/data/AIDS CN NLP/CN/11. Wireless LAN IEEE 802.11/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/11. Wireless LAN IEEE 802.11/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/2. File Transfer/file_to_send.txt +2 -0
- noshot/data/AIDS CN NLP/CN/2. File Transfer/filetransfer.java +119 -0
- noshot/data/AIDS CN NLP/CN/2. File Transfer/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/2. File Transfer/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/3. RMI (Remote Method Invocation)/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/3. RMI (Remote Method Invocation)/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/3. RMI (Remote Method Invocation)/rmi.java +56 -0
- noshot/data/AIDS CN NLP/CN/4. Wired Network/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/4. Wired Network/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/4. Wired Network/wired.awk +25 -0
- noshot/data/AIDS CN NLP/CN/4. Wired Network/wired.tcl +81 -0
- noshot/data/AIDS CN NLP/CN/5. Wireless Network/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/5. Wireless Network/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/5. Wireless Network/wireless.awk +27 -0
- noshot/data/AIDS CN NLP/CN/5. Wireless Network/wireless.tcl +153 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Sack And Vegas/analysis.awk +27 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Sack And Vegas/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Sack And Vegas/sack.tcl +86 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Sack And Vegas/vegas.tcl +86 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Tahoe And Reno/analysis.awk +28 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Tahoe And Reno/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Tahoe And Reno/reno.tcl +78 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Congestion Control/Tahoe And Reno/tahoe.tcl +79 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Flow Control/analysis.awk +27 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Flow Control/flow.tcl +163 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/TCP Flow Control/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/6. TCP Flow And Congestion Control/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/7. Link State And Distance Vector Routing/DV.tcl +111 -0
- noshot/data/AIDS CN NLP/CN/7. Link State And Distance Vector Routing/LS.tcl +106 -0
- noshot/data/AIDS CN NLP/CN/7. Link State And Distance Vector Routing/analysis.awk +36 -0
- noshot/data/AIDS CN NLP/CN/7. Link State And Distance Vector Routing/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/7. Link State And Distance Vector Routing/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/8. Multicast And Broadcast Routing/analysis.awk +20 -0
- noshot/data/AIDS CN NLP/CN/8. Multicast And Broadcast Routing/broadcast.tcl +76 -0
- noshot/data/AIDS CN NLP/CN/8. Multicast And Broadcast Routing/multicast.tcl +103 -0
- noshot/data/AIDS CN NLP/CN/8. Multicast And Broadcast Routing/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/8. Multicast And Broadcast Routing/procedure.png +0 -0
- noshot/data/AIDS CN NLP/CN/9. DHCP/DHCP.java +125 -0
- noshot/data/AIDS CN NLP/CN/9. DHCP/output.png +0 -0
- noshot/data/AIDS CN NLP/CN/9. DHCP/procedure.png +0 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/1-Prereqs.py +18 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/2-Chi2test.py +83 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/2-T-test.py +79 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/3-WSD-nb.py +53 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/4-Hindle-Rooth.py +53 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/5-HMM-Trellis.py +82 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/6-HMM-Viterbi.py +16 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/7-PCFG-parsetree.py +15 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Chi2test.ipynb +285 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Hindle-Rooth.ipynb +179 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Lab 10 - Text generator using LSTM.ipynb +1461 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Lab 11 NMT.ipynb +2307 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/PCFG.ipynb +134 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Prereqs.ipynb +131 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/T test.ipynb +252 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/TFIDF BOW.ipynb +171 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Trellis.ipynb +244 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/WSD.ipynb +645 -0
- noshot/data/AIDS CN NLP/NLP/NLP 1/Word2Vec.ipynb +93 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab01(tokenizer)/tokenizer.ipynb +370 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab01(tokenizer)/training_tokenizer.txt +6 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab02(stemming)/exp0.ipynb +274 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab02(stemming)/lab2.ipynb +905 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab02(stemming)/test.txt +1 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab02(stemming)/tokenizing.ipynb +272 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab03(parse-tree)/collocation.ipynb +332 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab03(parse-tree)/lab3.ipynb +549 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab03(parse-tree)/nlp.txt +1 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab04(collocation)/Lab4-NLP-Exp-2.ipynb +817 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab04(collocation)/collocation.ipynb +332 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab05(WSD)/NLP-Lab-5-Exp3.ipynb +231 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab05(WSD)/word-sense-disambiguation.ipynb +507 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab06(additional-exercise)/lab6.ipynb +134 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab07(HMM,Viterbi)/NLP Exp 4.ipynb +255 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab07(HMM,Viterbi)/NLP_Exp_5.ipynb +159 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab08(PCFG)/PCFG.ipynb +282 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab09-Hindle-rooth&MLP/Lab 9 - MLP classifier.ipynb +670 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab09-Hindle-rooth&MLP/MLP-alternative-code.ipynb +613 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab09-Hindle-rooth&MLP/hindle-rooth-algorithm.ipynb +74 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab10(LSTM)/Lab_10_Text_generator_using_LSTM.ipynb +480 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab11(Viterbi-PCFG,Machine-translation)/Machine-translation.ipynb +445 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab11(Viterbi-PCFG,Machine-translation)/Viterbi-PCFG.ipynb +105 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab11(Viterbi-PCFG,Machine-translation)/corpora_tools.py +87 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab11(Viterbi-PCFG,Machine-translation)/data_utils.py +11 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab11(Viterbi-PCFG,Machine-translation)/train_translator.py +83 -0
- noshot/data/AIDS CN NLP/NLP/NLP 2/Lab12(Information-Extraction)/Information_Extraction.ipynb +201 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/Backtrack-without-Verbitri.ipynb +185 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/Backward-Procedure.ipynb +597 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/Bag_of.ipynb +1422 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/CYK-algorithm.ipynb +1067 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/Forward-Procedure.ipynb +477 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/LSTM.ipynb +1290 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/Lab 10 - Text generator using LSTM.ipynb +1461 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/Lab 11 NMT.ipynb +2307 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/NLP-LAB-4.ipynb +216 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/NLP-LAB-5.ipynb +216 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/abc.txt +6 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/ex-1-nltk.ipynb +711 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/ex-2-nlp.ipynb +267 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/exp8&9.ipynb +305 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/hind.ipynb +287 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/lab66.ipynb +752 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/leb_3.ipynb +612 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/naive_bayes_classifier.pkl +0 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/nlp_leb_1.ipynb +3008 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/nlp_leb_2.ipynb +3095 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/nlplab-9.ipynb +295 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/nltk-ex-4.ipynb +506 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/text1.txt +48 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/text2.txt +8 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/text3.txt +48 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/translation-rnn.ipynb +812 -0
- noshot/data/AIDS CN NLP/NLP/NLP 3/word2vector.ipynb +173 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Backward Procedure Algorithm.ipynb +179 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Chi Square Collocation.ipynb +208 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Collocation (T test).ipynb +188 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Experiment 1.ipynb +437 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Forward Procedure Algorithm.ipynb +132 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Hindle Rooth.ipynb +414 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/MachineTranslation.ipynb +368 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Multi Layer Perceptron using MLPClassifier.ipynb +86 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Multi Layer Perceptron using Tensorflow.ipynb +112 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/PCFG Inside Probability.ipynb +451 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Text Generation using LSTM.ipynb +297 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Viterbi.ipynb +310 -0
- noshot/data/AIDS CN NLP/NLP/NLP 4/Word Sense Disambiguation.ipynb +335 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/10.Text Generation using LSTM.ipynb +316 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/11.Machine Translation.ipynb +868 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/2.T and Chi2 Test.ipynb +204 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/3.Word Sense Diambiguation.ipynb +234 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/4.Hinddle and Rooth.ipynb +128 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/5.Forward and Backward.ipynb +149 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/6.Viterbi.ipynb +111 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/7.PCFG Parse Tree.ipynb +134 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/7.PCFG using cyk.ipynb +101 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/8.Bag of words and TF-IDF.ipynb +310 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/9.Word2Vector.ipynb +78 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/NLP ALL In One.ipynb +2619 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/sample1.txt +15 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/sample2.txt +4 -0
- noshot/data/AIDS CN NLP/NLP/NLP 5/word2vec_model.bin +0 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/1. Tokenize, Tagging, NER, Parse Tree.ipynb +312 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/2. T Test and Chi2 Test.ipynb +185 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/3. Naive Bayes WSD.ipynb +199 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/4. Hinddle and Rooth.ipynb +151 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/5 and 6 FWD, BWD, Viterbi.ipynb +164 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/7. PCFG using CYK.ipynb +383 -0
- noshot/data/AIDS CN NLP/NLP/NLP 6/8. BOW and TF-IDF.ipynb +252 -0
- noshot/data/AIDS CN NLP/Ubuntu CN Lab.iso +0 -0
- noshot/main.py +47 -0
- noshot-0.1.0.dist-info/LICENSE.txt +21 -0
- noshot-0.1.0.dist-info/METADATA +65 -0
- noshot-0.1.0.dist-info/RECORD +210 -0
- noshot-0.1.0.dist-info/WHEEL +5 -0
- noshot-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,81 @@
|
|
1
|
+
#How to run
|
2
|
+
#==========
|
3
|
+
#save this file as wired.tcl in desktop folder
|
4
|
+
#also save wired.awk file in the same location
|
5
|
+
#open desktop right-click and choose 'Open in Terminal'
|
6
|
+
#run this command
|
7
|
+
#ns wired.tcl
|
8
|
+
|
9
|
+
#both nam and awk file will be executed automatically
|
10
|
+
|
11
|
+
#create a simulator object
|
12
|
+
set ns [new Simulator]
|
13
|
+
|
14
|
+
#create a trace file, this file is for logging purpose
|
15
|
+
set tracefile [open wired.tr w]
|
16
|
+
$ns trace-all $tracefile
|
17
|
+
|
18
|
+
#create a animation infomration or NAM file creation
|
19
|
+
set namfile [open wired.nam w]
|
20
|
+
$ns namtrace-all $namfile
|
21
|
+
|
22
|
+
#create nodes
|
23
|
+
set n0 [$ns node]
|
24
|
+
set n1 [$ns node]
|
25
|
+
set n2 [$ns node]
|
26
|
+
set n3 [$ns node]
|
27
|
+
set n4 [$ns node]
|
28
|
+
set n5 [$ns node]
|
29
|
+
|
30
|
+
#creation of link between nodes with DropTail Queue
|
31
|
+
#Droptail means Dropping the tail.
|
32
|
+
$ns duplex-link $n0 $n1 5Mb 2ms DropTail
|
33
|
+
$ns duplex-link $n2 $n1 10Mb 5ms DropTail
|
34
|
+
$ns duplex-link $n1 $n4 3Mb 10ms DropTail
|
35
|
+
$ns duplex-link $n4 $n3 100Mb 2ms DropTail
|
36
|
+
$ns duplex-link $n4 $n5 4Mb 10ms DropTail
|
37
|
+
|
38
|
+
#creation of Agents
|
39
|
+
#node 0 to Node 3
|
40
|
+
set udp [new Agent/UDP]
|
41
|
+
set null [new Agent/Null]
|
42
|
+
$ns attach-agent $n0 $udp
|
43
|
+
$ns attach-agent $n3 $null
|
44
|
+
$ns connect $udp $null
|
45
|
+
|
46
|
+
#creation of TCP Agent
|
47
|
+
set tcp [new Agent/TCP]
|
48
|
+
set sink [new Agent/TCPSink]
|
49
|
+
$ns attach-agent $n2 $tcp
|
50
|
+
$ns attach-agent $n5 $sink
|
51
|
+
$ns connect $tcp $sink
|
52
|
+
|
53
|
+
#creation of Application CBR, FTP
|
54
|
+
#CBR - Constant Bit Rate (Example nmp3 files that have a CBR or 192kbps, 320kbps, etc.)
|
55
|
+
#FTP - File Transfer Protocol (Ex: To download a file from a network)
|
56
|
+
set cbr [new Application/Traffic/CBR]
|
57
|
+
$cbr attach-agent $udp
|
58
|
+
|
59
|
+
set ftp [new Application/FTP]
|
60
|
+
$ftp attach-agent $tcp
|
61
|
+
|
62
|
+
#Start the traffic
|
63
|
+
$ns at 1.0 "$cbr start"
|
64
|
+
$ns at 2.0 "$ftp start"
|
65
|
+
|
66
|
+
$ns at 10.0 "finish"
|
67
|
+
|
68
|
+
#the following procedure will be called at 10.0 seconds
|
69
|
+
proc finish {} {
|
70
|
+
global ns tracefile namfile
|
71
|
+
$ns flush-trace
|
72
|
+
close $tracefile
|
73
|
+
close $namfile
|
74
|
+
puts "Executing nam file"
|
75
|
+
exec nam wired.nam &
|
76
|
+
exec awk -f wired.awk wired.tr &
|
77
|
+
exit 0
|
78
|
+
}
|
79
|
+
|
80
|
+
puts "Simulation is starting..."
|
81
|
+
$ns run
|
Binary file
|
Binary file
|
@@ -0,0 +1,27 @@
|
|
1
|
+
BEGIN {
|
2
|
+
rec=sen=drp=0
|
3
|
+
res=start=end=0.0
|
4
|
+
}
|
5
|
+
|
6
|
+
{
|
7
|
+
if($1 == "s")sen++
|
8
|
+
if($1 == "r"){
|
9
|
+
if(rec==0)start = $2
|
10
|
+
rec++
|
11
|
+
res += $8
|
12
|
+
end = $2
|
13
|
+
}
|
14
|
+
if($1 == "D")drp++
|
15
|
+
}
|
16
|
+
|
17
|
+
END {
|
18
|
+
print("")
|
19
|
+
print("Wireless-Network")
|
20
|
+
print("Number Of Packets Sent : ", sen)
|
21
|
+
print("Number Of Packets Recieved : ", rec)
|
22
|
+
print("Number Of Packets Dropped : ", drp)
|
23
|
+
print("Start Of Simulation (in sec) : ", start)
|
24
|
+
print("End Of Simulation (in sec) : ", end)
|
25
|
+
print("Total Throughput : ",((res*8) / ((end-start)*1000000))," Mbps")
|
26
|
+
print("Packet Delivery Ratio: ",rec*100/sen,"%")
|
27
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
#How to run
|
2
|
+
#==========
|
3
|
+
#save this file as wireless.tcl in desktop folder
|
4
|
+
#also save wireless.awk file in the same location
|
5
|
+
#open desktop right-click and choose 'Open in Terminal'
|
6
|
+
#run this command
|
7
|
+
#ns wireless.tcl
|
8
|
+
|
9
|
+
#both nam and awk file will be executed automatically
|
10
|
+
|
11
|
+
|
12
|
+
#Example of Wireless networks
|
13
|
+
#Step 1 initialize variables
|
14
|
+
#Step 2 - Create a Simulator object
|
15
|
+
#step 3 - Create Tracing and animation file
|
16
|
+
#step 4 - topography
|
17
|
+
#step 5 - GOD - General Operations Director
|
18
|
+
#step 6 - Create nodes
|
19
|
+
#Step 7 - Create Channel (Communication PATH)
|
20
|
+
#step 8 - Position of the nodes (Wireless nodes needs a location)
|
21
|
+
#step 9 - Any mobility codes (if the nodes are moving)
|
22
|
+
#step 10 - TCP, UDP Traffic
|
23
|
+
#run the simulation
|
24
|
+
|
25
|
+
#initialize the variables
|
26
|
+
set val(chan) Channel/WirelessChannel ;#Channel Type
|
27
|
+
set val(prop) Propagation/TwoRayGround ;# radio-propagation model
|
28
|
+
set val(netif) Phy/WirelessPhy ;# network interface type WAVELAN DSSS 2.4GHz
|
29
|
+
set val(mac) Mac/802_11 ;# MAC type
|
30
|
+
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
|
31
|
+
set val(ll) LL ;# link layer type
|
32
|
+
set val(ant) Antenna/OmniAntenna ;# antenna model
|
33
|
+
set val(ifqlen) 50 ;# max packet in ifq
|
34
|
+
set val(nn) 6 ;# number of mobilenodes
|
35
|
+
set val(rp) AODV ;# routing protocol
|
36
|
+
set val(x) 500 ;# in metres
|
37
|
+
set val(y) 500 ;# in metres
|
38
|
+
#Adhoc OnDemand Distance Vector
|
39
|
+
|
40
|
+
#creation of Simulator
|
41
|
+
set ns [new Simulator]
|
42
|
+
|
43
|
+
#creation of Trace and namfile
|
44
|
+
set tracefile [open wireless.tr w]
|
45
|
+
$ns trace-all $tracefile
|
46
|
+
|
47
|
+
#Creation of Network Animation file
|
48
|
+
set namfile [open wireless.nam w]
|
49
|
+
$ns namtrace-all-wireless $namfile $val(x) $val(y)
|
50
|
+
|
51
|
+
#create topography
|
52
|
+
set topo [new Topography]
|
53
|
+
$topo load_flatgrid $val(x) $val(y)
|
54
|
+
|
55
|
+
#GOD Creation - General Operations Director
|
56
|
+
create-god $val(nn)
|
57
|
+
|
58
|
+
set channel1 [new $val(chan)]
|
59
|
+
set channel2 [new $val(chan)]
|
60
|
+
set channel3 [new $val(chan)]
|
61
|
+
|
62
|
+
#configure the node
|
63
|
+
$ns node-config -adhocRouting $val(rp) -llType $val(ll) -macType $val(mac) -ifqType $val(ifq) -ifqLen $val(ifqlen) -antType $val(ant) -propType $val(prop) -phyType $val(netif) -topoInstance $topo -agentTrace ON -macTrace ON -routerTrace ON -movementTrace ON -channel $channel1
|
64
|
+
|
65
|
+
set n0 [$ns node]
|
66
|
+
set n1 [$ns node]
|
67
|
+
set n2 [$ns node]
|
68
|
+
set n3 [$ns node]
|
69
|
+
set n4 [$ns node]
|
70
|
+
set n5 [$ns node]
|
71
|
+
|
72
|
+
$n0 random-motion 0
|
73
|
+
$n1 random-motion 0
|
74
|
+
$n2 random-motion 0
|
75
|
+
$n3 random-motion 0
|
76
|
+
$n4 random-motion 0
|
77
|
+
$n5 random-motion 0
|
78
|
+
|
79
|
+
$ns initial_node_pos $n0 20
|
80
|
+
$ns initial_node_pos $n1 20
|
81
|
+
$ns initial_node_pos $n2 20
|
82
|
+
$ns initial_node_pos $n3 20
|
83
|
+
$ns initial_node_pos $n4 20
|
84
|
+
$ns initial_node_pos $n5 50
|
85
|
+
|
86
|
+
#initial coordinates of the nodes
|
87
|
+
$n0 set X_ 10.0
|
88
|
+
$n0 set Y_ 20.0
|
89
|
+
$n0 set Z_ 0.0
|
90
|
+
|
91
|
+
$n1 set X_ 210.0
|
92
|
+
$n1 set Y_ 230.0
|
93
|
+
$n1 set Z_ 0.0
|
94
|
+
|
95
|
+
$n2 set X_ 100.0
|
96
|
+
$n2 set Y_ 200.0
|
97
|
+
$n2 set Z_ 0.0
|
98
|
+
|
99
|
+
$n3 set X_ 150.0
|
100
|
+
$n3 set Y_ 230.0
|
101
|
+
$n3 set Z_ 0.0
|
102
|
+
|
103
|
+
$n4 set X_ 430.0
|
104
|
+
$n4 set Y_ 320.0
|
105
|
+
$n4 set Z_ 0.0
|
106
|
+
|
107
|
+
$n5 set X_ 270.0
|
108
|
+
$n5 set Y_ 120.0
|
109
|
+
$n5 set Z_ 0.0
|
110
|
+
#Dont mention any values above than 500 because in this example, we use X and Y as 500,500
|
111
|
+
|
112
|
+
#mobility of the nodes
|
113
|
+
#At what Time? Which node? Where to? at What Speed?
|
114
|
+
$ns at 1.0 "$n1 setdest 490.0 340.0 25.0"
|
115
|
+
$ns at 1.0 "$n4 setdest 300.0 130.0 5.0"
|
116
|
+
$ns at 1.0 "$n5 setdest 190.0 440.0 15.0"
|
117
|
+
#the nodes can move any number of times at any location during the simulation (runtime)
|
118
|
+
$ns at 20.0 "$n5 setdest 100.0 200.0 30.0"
|
119
|
+
|
120
|
+
#creation of agents
|
121
|
+
set tcp [new Agent/TCP]
|
122
|
+
set sink [new Agent/TCPSink]
|
123
|
+
$ns attach-agent $n0 $tcp
|
124
|
+
$ns attach-agent $n5 $sink
|
125
|
+
$ns connect $tcp $sink
|
126
|
+
set ftp [new Application/FTP]
|
127
|
+
$ftp attach-agent $tcp
|
128
|
+
$ns at 1.0 "$ftp start"
|
129
|
+
|
130
|
+
set udp [new Agent/UDP]
|
131
|
+
set null [new Agent/Null]
|
132
|
+
$ns attach-agent $n2 $udp
|
133
|
+
$ns attach-agent $n3 $null
|
134
|
+
$ns connect $udp $null
|
135
|
+
set cbr [new Application/Traffic/CBR]
|
136
|
+
$cbr attach-agent $udp
|
137
|
+
$ns at 1.0 "$cbr start"
|
138
|
+
|
139
|
+
$ns at 30.0 "finish"
|
140
|
+
|
141
|
+
proc finish {} {
|
142
|
+
global ns tracefile namfile
|
143
|
+
$ns flush-trace
|
144
|
+
close $tracefile
|
145
|
+
close $namfile
|
146
|
+
puts "Executing nam file"
|
147
|
+
exec nam wireless.nam &
|
148
|
+
exec awk -f wireless.awk wireless.tr &
|
149
|
+
exit 0
|
150
|
+
}
|
151
|
+
|
152
|
+
puts "Starting Simulation"
|
153
|
+
$ns run
|
@@ -0,0 +1,27 @@
|
|
1
|
+
BEGIN{
|
2
|
+
st1=ft1=0
|
3
|
+
throughput1=0
|
4
|
+
delay1=flag1=data1=0
|
5
|
+
}
|
6
|
+
|
7
|
+
{
|
8
|
+
if($1=="r"&&$4==5){
|
9
|
+
data1+=$6
|
10
|
+
if(flag1==0){
|
11
|
+
st1=$2
|
12
|
+
flag1=1}
|
13
|
+
if(flag1==1){
|
14
|
+
ft1=$2}}
|
15
|
+
}
|
16
|
+
|
17
|
+
END{
|
18
|
+
delay1=ft1-st1
|
19
|
+
throughput1=data1/delay1
|
20
|
+
print("")
|
21
|
+
print("**********HTTP***********")
|
22
|
+
print("Start time =",st1)
|
23
|
+
print("End time =",ft1)
|
24
|
+
print("Data:",data1)
|
25
|
+
print("Throughput:",throughput1)
|
26
|
+
print("Delay:",delay1)
|
27
|
+
}
|
Binary file
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#How to run
|
2
|
+
#==========
|
3
|
+
#save this file as sack.tcl in desktop folder
|
4
|
+
#open desktop right-click and choose 'Open in Terminal'
|
5
|
+
#run this command
|
6
|
+
#ns sack.tcl
|
7
|
+
|
8
|
+
#nam file, xgraph and awk file will be executed automatically
|
9
|
+
|
10
|
+
#creating a simulator object
|
11
|
+
set ns [ new Simulator ]
|
12
|
+
$ns color 3 Green
|
13
|
+
#creating trace file
|
14
|
+
set tf [open sack.tr w]
|
15
|
+
$ns trace-all $tf
|
16
|
+
|
17
|
+
#creating nam file
|
18
|
+
set nf [open sack.nam w]
|
19
|
+
$ns namtrace-all $nf
|
20
|
+
|
21
|
+
set ft3 [open sack_Sender_throughput w]
|
22
|
+
|
23
|
+
#finish procedure to call nam and xgraph
|
24
|
+
proc finish {} {
|
25
|
+
global ns nf ft3
|
26
|
+
$ns flush-trace
|
27
|
+
close $nf
|
28
|
+
close $ft3
|
29
|
+
exec xgraph sack_Sender_throughput &
|
30
|
+
puts "running nam..."
|
31
|
+
exec nam sack.nam &
|
32
|
+
exec awk -f analysis.awk sack.tr &
|
33
|
+
exit 0
|
34
|
+
}
|
35
|
+
#record procedure to calculate total bandwidth and throughput
|
36
|
+
proc record {} {
|
37
|
+
global null3 ft3
|
38
|
+
global http1
|
39
|
+
set ns [Simulator instance]
|
40
|
+
set time 0.1
|
41
|
+
set now [$ns now]
|
42
|
+
set bw2 [$null3 set bytes_]
|
43
|
+
puts $ft3 "$now [expr $bw2/$time*8/1000000]"
|
44
|
+
$null3 set bytes_ 0
|
45
|
+
$ns at [expr $now+$time] "record"
|
46
|
+
}
|
47
|
+
#creating 10 nodes
|
48
|
+
for {set i 0} {$i < 6} {incr i} {
|
49
|
+
set n($i) [$ns node]
|
50
|
+
}
|
51
|
+
#creating duplex links
|
52
|
+
$ns duplex-link $n(0) $n(1) 10Kb 10ms DropTail
|
53
|
+
$ns duplex-link $n(0) $n(3) 100Kb 10ms RED
|
54
|
+
$ns duplex-link $n(1) $n(2) 50Kb 10ms DropTail
|
55
|
+
$ns duplex-link $n(2) $n(5) 200Kb 10ms RED
|
56
|
+
$ns duplex-link $n(3) $n(4) 70Kb 10ms DropTail
|
57
|
+
$ns duplex-link $n(4) $n(5) 100Kb 10ms DropTail
|
58
|
+
|
59
|
+
#orienting links
|
60
|
+
$ns duplex-link-op $n(0) $n(1) orient right
|
61
|
+
$ns duplex-link-op $n(1) $n(2) orient right-down
|
62
|
+
$ns duplex-link-op $n(0) $n(3) orient left-down
|
63
|
+
$ns duplex-link-op $n(3) $n(4) orient right-down
|
64
|
+
$ns duplex-link-op $n(4) $n(5) orient right
|
65
|
+
$ns duplex-link-op $n(2) $n(5) orient left-down
|
66
|
+
|
67
|
+
|
68
|
+
set tcp3 [new Agent/TCP/Sack1]
|
69
|
+
set null3 [new Agent/TCPSink]
|
70
|
+
$ns attach-agent $n(0) $tcp3
|
71
|
+
$ns attach-agent $n(5) $null3
|
72
|
+
$ns connect $tcp3 $null3
|
73
|
+
set http1 [new Application/Traffic/Exponential]
|
74
|
+
$http1 attach-agent $tcp3
|
75
|
+
|
76
|
+
|
77
|
+
#scheduling events
|
78
|
+
$ns at 0.5 "record"
|
79
|
+
$ns at 0.2 "$ns trace-annotate \"Starting HTTP from 0 to 5\""
|
80
|
+
$ns at 0.2 "$n(0) color \"green\""
|
81
|
+
$ns at 0.2 "$n(5) color \"green\""
|
82
|
+
$ns at 0.2 "$http1 start"
|
83
|
+
$ns at 3.2 "$http1 stop"
|
84
|
+
$ns at 5.0 "finish"
|
85
|
+
$ns run
|
86
|
+
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#How to run
|
2
|
+
#==========
|
3
|
+
#save this file as vegas.tcl in desktop folder
|
4
|
+
#open desktop right-click and choose 'Open in Terminal'
|
5
|
+
#run this command
|
6
|
+
#ns vegas.tcl
|
7
|
+
|
8
|
+
#nam file, xgraph and awk file will be executed automatically
|
9
|
+
|
10
|
+
#creating a simulator object
|
11
|
+
set ns [ new Simulator ]
|
12
|
+
$ns color 3 Green
|
13
|
+
#creating trace file
|
14
|
+
set tf [open vegas.tr w]
|
15
|
+
$ns trace-all $tf
|
16
|
+
|
17
|
+
#creating nam file
|
18
|
+
set nf [open vegas.nam w]
|
19
|
+
$ns namtrace-all $nf
|
20
|
+
|
21
|
+
set ft3 [open vegas_Sender_throughput w]
|
22
|
+
|
23
|
+
#finish procedure to call nam and xgraph
|
24
|
+
proc finish {} {
|
25
|
+
global ns nf ft3
|
26
|
+
$ns flush-trace
|
27
|
+
close $nf
|
28
|
+
close $ft3
|
29
|
+
exec xgraph vegas_Sender_throughput &
|
30
|
+
puts "running nam..."
|
31
|
+
exec nam vegas.nam &
|
32
|
+
exec awk -f analysis.awk vegas.tr &
|
33
|
+
exit 0
|
34
|
+
}
|
35
|
+
#record procedure to calculate total bandwidth and throughput
|
36
|
+
proc record {} {
|
37
|
+
global null3 ft3
|
38
|
+
global http1
|
39
|
+
set ns [Simulator instance]
|
40
|
+
set time 0.1
|
41
|
+
set now [$ns now]
|
42
|
+
set bw2 [$null3 set bytes_]
|
43
|
+
puts $ft3 "$now [expr $bw2/$time*8/1000000]"
|
44
|
+
$null3 set bytes_ 0
|
45
|
+
$ns at [expr $now+$time] "record"
|
46
|
+
}
|
47
|
+
#creating 10 nodes
|
48
|
+
for {set i 0} {$i < 6} {incr i} {
|
49
|
+
set n($i) [$ns node]
|
50
|
+
}
|
51
|
+
#creating duplex links
|
52
|
+
$ns duplex-link $n(0) $n(1) 10Kb 10ms DropTail
|
53
|
+
$ns duplex-link $n(0) $n(3) 100Kb 10ms RED
|
54
|
+
$ns duplex-link $n(1) $n(2) 50Kb 10ms DropTail
|
55
|
+
$ns duplex-link $n(2) $n(5) 200Kb 10ms RED
|
56
|
+
$ns duplex-link $n(3) $n(4) 70Kb 10ms DropTail
|
57
|
+
$ns duplex-link $n(4) $n(5) 100Kb 10ms DropTail
|
58
|
+
|
59
|
+
#orienting links
|
60
|
+
$ns duplex-link-op $n(0) $n(1) orient right
|
61
|
+
$ns duplex-link-op $n(1) $n(2) orient right-down
|
62
|
+
$ns duplex-link-op $n(0) $n(3) orient left-down
|
63
|
+
$ns duplex-link-op $n(3) $n(4) orient right-down
|
64
|
+
$ns duplex-link-op $n(4) $n(5) orient right
|
65
|
+
$ns duplex-link-op $n(2) $n(5) orient left-down
|
66
|
+
|
67
|
+
|
68
|
+
set tcp3 [new Agent/TCP/Vegas]
|
69
|
+
set null3 [new Agent/TCPSink]
|
70
|
+
$ns attach-agent $n(0) $tcp3
|
71
|
+
$ns attach-agent $n(5) $null3
|
72
|
+
$ns connect $tcp3 $null3
|
73
|
+
set http1 [new Application/Traffic/Exponential]
|
74
|
+
$http1 attach-agent $tcp3
|
75
|
+
|
76
|
+
|
77
|
+
#scheduling events
|
78
|
+
$ns at 0.5 "record"
|
79
|
+
$ns at 0.2 "$ns trace-annotate \"Starting HTTP from 0 to 5\""
|
80
|
+
$ns at 0.2 "$n(0) color \"green\""
|
81
|
+
$ns at 0.2 "$n(5) color \"green\""
|
82
|
+
$ns at 0.2 "$http1 start"
|
83
|
+
$ns at 3.2 "$http1 stop"
|
84
|
+
$ns at 5.0 "finish"
|
85
|
+
$ns run
|
86
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
BEGIN{
|
2
|
+
start = end = th = dly = 0
|
3
|
+
flag = data = 0
|
4
|
+
}
|
5
|
+
|
6
|
+
{
|
7
|
+
if($1=="r"&&$4==5){
|
8
|
+
data+=$6
|
9
|
+
if(flag==0){
|
10
|
+
start=$2
|
11
|
+
flag=1
|
12
|
+
}
|
13
|
+
if(flag==1)
|
14
|
+
end=$2
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
END{
|
19
|
+
dly = end - start
|
20
|
+
th = data/dly
|
21
|
+
print("")
|
22
|
+
print("**********HTTP***********")
|
23
|
+
print("Start time:",start)
|
24
|
+
print("End time:",end)
|
25
|
+
print("Data =",data)
|
26
|
+
print("Throughput =",th)
|
27
|
+
print("Delay =",dly)
|
28
|
+
}
|
Binary file
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#How to run
|
2
|
+
#==========
|
3
|
+
#save this file as reno.tcl in desktop folder
|
4
|
+
#also save analysis.awk file in the same location
|
5
|
+
#open desktop right-click and choose 'Open in Terminal'
|
6
|
+
#run this command
|
7
|
+
#ns reno.tcl
|
8
|
+
|
9
|
+
#both nam and awk file will be executed automatically
|
10
|
+
|
11
|
+
set ns [ new Simulator ]
|
12
|
+
$ns color 3 Green
|
13
|
+
set tf [open reno.tr w]
|
14
|
+
$ns trace-all $tf
|
15
|
+
|
16
|
+
set nf [open reno.nam w]
|
17
|
+
$ns namtrace-all $nf
|
18
|
+
|
19
|
+
set ft3 [open reno_Sender_throughput w]
|
20
|
+
|
21
|
+
proc finish {} {
|
22
|
+
global ns nf ft3
|
23
|
+
$ns flush-trace
|
24
|
+
close $nf
|
25
|
+
close $ft3
|
26
|
+
exec xgraph reno_Sender_throughput &
|
27
|
+
puts "running nam..."
|
28
|
+
exec nam reno.nam &
|
29
|
+
exec awk -f analysis.awk reno.tr &
|
30
|
+
exit 0
|
31
|
+
}
|
32
|
+
|
33
|
+
proc record {} {
|
34
|
+
global null3 ft3
|
35
|
+
global http1
|
36
|
+
set ns [Simulator instance]
|
37
|
+
set time 0.1
|
38
|
+
set now [$ns now]
|
39
|
+
set bw2 [$null3 set bytes_]
|
40
|
+
puts $ft3 "$now [expr $bw2/$time*8/1000000]"
|
41
|
+
$null3 set bytes_ 0
|
42
|
+
$ns at [expr $now+$time] "record"
|
43
|
+
}
|
44
|
+
|
45
|
+
for {set i 0} {$i < 6} {incr i} {
|
46
|
+
set n($i) [$ns node]
|
47
|
+
}
|
48
|
+
|
49
|
+
$ns duplex-link $n(0) $n(1) 10Kb 10ms DropTail
|
50
|
+
$ns duplex-link $n(0) $n(3) 100Kb 10ms RED
|
51
|
+
$ns duplex-link $n(1) $n(2) 50Kb 10ms DropTail
|
52
|
+
$ns duplex-link $n(2) $n(5) 200Kb 10ms RED
|
53
|
+
$ns duplex-link $n(3) $n(4) 70Kb 10ms DropTail
|
54
|
+
$ns duplex-link $n(4) $n(5) 100Kb 10ms DropTail
|
55
|
+
|
56
|
+
$ns duplex-link-op $n(0) $n(1) orient right
|
57
|
+
$ns duplex-link-op $n(1) $n(2) orient right-down
|
58
|
+
$ns duplex-link-op $n(0) $n(3) orient left-down
|
59
|
+
$ns duplex-link-op $n(3) $n(4) orient right-down
|
60
|
+
$ns duplex-link-op $n(4) $n(5) orient right
|
61
|
+
$ns duplex-link-op $n(2) $n(5) orient left-down
|
62
|
+
|
63
|
+
set tcp3 [new Agent/TCP/Reno]
|
64
|
+
set null3 [new Agent/TCPSink]
|
65
|
+
$ns attach-agent $n(0) $tcp3
|
66
|
+
$ns attach-agent $n(5) $null3
|
67
|
+
$ns connect $tcp3 $null3
|
68
|
+
set http1 [new Application/Traffic/Exponential]
|
69
|
+
$http1 attach-agent $tcp3
|
70
|
+
|
71
|
+
$ns at 0.5 "record"
|
72
|
+
$ns at 0.2 "$ns trace-annotate \"Starting HTTP from 0 to 5\""
|
73
|
+
$ns at 0.2 "$n(0) color \"green\""
|
74
|
+
$ns at 0.2 "$n(5) color \"green\""
|
75
|
+
$ns at 0.2 "$http1 start"
|
76
|
+
$ns at 3.2 "$http1 stop"
|
77
|
+
$ns at 5.0 "finish"
|
78
|
+
$ns run
|
@@ -0,0 +1,79 @@
|
|
1
|
+
#How to run
|
2
|
+
#==========
|
3
|
+
#save this file as tahoe.tcl in desktop folder
|
4
|
+
#also save analysis.awk file in the same location
|
5
|
+
#open desktop right-click and choose 'Open in Terminal'
|
6
|
+
#run this command
|
7
|
+
#ns tahoe.tcl
|
8
|
+
|
9
|
+
#both nam and awk file will be executed automatically
|
10
|
+
|
11
|
+
set ns [ new Simulator ]
|
12
|
+
$ns color 3 Green
|
13
|
+
set tf [open tahoe.tr w]
|
14
|
+
$ns trace-all $tf
|
15
|
+
|
16
|
+
set nf [open tahoe.nam w]
|
17
|
+
$ns namtrace-all $nf
|
18
|
+
|
19
|
+
set ft3 [open tahoe_Sender_throughput w]
|
20
|
+
|
21
|
+
proc finish {} {
|
22
|
+
global ns nf ft3
|
23
|
+
$ns flush-trace
|
24
|
+
close $nf
|
25
|
+
close $ft3
|
26
|
+
exec xgraph tahoe_Sender_throughput &
|
27
|
+
puts "running nam..."
|
28
|
+
exec nam tahoe.nam &
|
29
|
+
exec awk -f analysis.awk tahoe.tr &
|
30
|
+
exit 0
|
31
|
+
}
|
32
|
+
|
33
|
+
proc record {} {
|
34
|
+
global null3 ft3
|
35
|
+
global http1
|
36
|
+
set ns [Simulator instance]
|
37
|
+
set time 0.1
|
38
|
+
set now [$ns now]
|
39
|
+
set bw2 [$null3 set bytes_]
|
40
|
+
puts $ft3 "$now [expr $bw2/$time*8/1000000]"
|
41
|
+
$null3 set bytes_ 0
|
42
|
+
$ns at [expr $now+$time] "record"
|
43
|
+
}
|
44
|
+
|
45
|
+
for {set i 0} {$i < 6} {incr i} {
|
46
|
+
set n($i) [$ns node]
|
47
|
+
}
|
48
|
+
|
49
|
+
$ns duplex-link $n(0) $n(1) 10Kb 10ms DropTail
|
50
|
+
$ns duplex-link $n(0) $n(3) 100Kb 10ms RED
|
51
|
+
$ns duplex-link $n(1) $n(2) 50Kb 10ms DropTail
|
52
|
+
$ns duplex-link $n(2) $n(5) 200Kb 10ms RED
|
53
|
+
$ns duplex-link $n(3) $n(4) 70Kb 10ms DropTail
|
54
|
+
$ns duplex-link $n(4) $n(5) 100Kb 10ms DropTail
|
55
|
+
|
56
|
+
$ns duplex-link-op $n(0) $n(1) orient right
|
57
|
+
$ns duplex-link-op $n(1) $n(2) orient right-down
|
58
|
+
$ns duplex-link-op $n(0) $n(3) orient left-down
|
59
|
+
$ns duplex-link-op $n(3) $n(4) orient right-down
|
60
|
+
$ns duplex-link-op $n(4) $n(5) orient right
|
61
|
+
$ns duplex-link-op $n(2) $n(5) orient left-down
|
62
|
+
|
63
|
+
|
64
|
+
set tcp3 [new Agent/TCP]
|
65
|
+
set null3 [new Agent/TCPSink]
|
66
|
+
$ns attach-agent $n(0) $tcp3
|
67
|
+
$ns attach-agent $n(5) $null3
|
68
|
+
$ns connect $tcp3 $null3
|
69
|
+
set http1 [new Application/Traffic/Exponential]
|
70
|
+
$http1 attach-agent $tcp3
|
71
|
+
|
72
|
+
$ns at 0.5 "record"
|
73
|
+
$ns at 0.2 "$ns trace-annotate \"Starting HTTP from 0 to 5\""
|
74
|
+
$ns at 0.2 "$n(0) color \"green\""
|
75
|
+
$ns at 0.2 "$n(5) color \"green\""
|
76
|
+
$ns at 0.2 "$http1 start"
|
77
|
+
$ns at 3.2 "$http1 stop"
|
78
|
+
$ns at 5.0 "finish"
|
79
|
+
$ns run
|
@@ -0,0 +1,27 @@
|
|
1
|
+
BEGIN{
|
2
|
+
st1=ft1=0
|
3
|
+
throughput1=0
|
4
|
+
delay1=flag1=data1=0
|
5
|
+
}
|
6
|
+
|
7
|
+
{
|
8
|
+
if($1=="r"&&$4==5){
|
9
|
+
data1+=$6
|
10
|
+
if(flag1==0){
|
11
|
+
st1=$2
|
12
|
+
flag1=1}
|
13
|
+
if(flag1==1){
|
14
|
+
ft1=$2}}
|
15
|
+
}
|
16
|
+
|
17
|
+
END{
|
18
|
+
delay1=ft1-st1
|
19
|
+
throughput1=data1/delay1
|
20
|
+
print("")
|
21
|
+
print("**********HTTP***********")
|
22
|
+
print("Start time =",st1)
|
23
|
+
print("End time =",ft1)
|
24
|
+
print("Data:",data1)
|
25
|
+
print("Throughput:",throughput1)
|
26
|
+
print("Delay:",delay1)
|
27
|
+
}
|