One网络模拟器探索之四:结果分析工具
通常,在仿真主要是为了验证自己的路由算法或者其他相关改进能够使网络的传输效率更高或者开销更低,因此会反复进行修改,这个阶段或者可以直接通过查看one生成的报告文件即可。但当原创算法或者改进算法产生理想的效果之后,需要形成文章时,就需要专门的工具来表现仿真的结果了。我这里使用的是origin和graphviz两个软件,当然写文章的话,最好就用latex了。
origin是一个专门通过数据画图的工具,比如,要展现缓存大小对路由成功率的影响,那么首先需要拿到不同缓存大小的条件下,相应的消息传递成功率,将这些数据直接输入给origin,就可以将结果以二维曲线或者折线的方式展现出来。
当然这里有一个问题就是ONE生成的报告文件都是txt文件,其中每一列之间通过若干空格分隔,这样就导致从txt报告文件到qtiplot之间的录入需要手工转换,但又不可能挨个单元格复制。最开始我用了最麻烦的方法,自己写了一个java程序读one生成的报告文件内容,然后通过字符串处理,分别输出自己需要的那列。后来,在了解脚本语言的过程中,发现awk被列为文本处理脚本语言,果断尝试,原来一条命令就能够输出任何想要的一列数据。例如
awk '{print $num}' filename
如果输出第一列num为1,第二列num为2,以此类推。然后将输出的结果直接复制到qtiplot中即可。
1 1.3 0.0007 2 5.9 0.0014 3 7.7 0.0021 4 14.7 0.0027 5 18.2 0.0034 6 23.7 0.0041 7 24.6 0.0048 8 26.6 0.0055 9 28.4 0.0062 10 43.3 0.0068 11 43.3 0.0075 12 45.3 0.0082 13 47.5 0.0089 14 50.4 0.0096 15 51 0.0103 16 52.9 0.011 17 55.6 0.0116 18 64.2 0.0123 19 71.2 0.013 20 75.4 0.0137 21 83.9 0.0144 22 89.5 0.0151 23 89.6 0.0157 24 94.4 0.0164 25 95.9 0.0171 26 97.2 0.0178 27 98 0.0185 28 100.1 0.0192 29 104.2 0.0198 30 104.4 0.0205 31 109.3 0.0212 32 110.7 0.0219 33 119.8 0.0226 34 123.3 0.0233 35 123.6 0.024 36 125.9 0.0246 37 126.2 0.0253 38 127 0.026 39 127.5 0.0267 40 134.5 0.0274 41 137 0.0281 42 139.3 0.0287 43 143.9 0.0294 44 150.8 0.0301 45 151.8 0.0308 46 154.8 0.0315 47 163.3 0.0322 48 165.6 0.0329 49 169.4 0.0335 50 171 0.0342 51 173.3 0.0349 52 174 0.0356 53 175 0.0363 54 177.6 0.037 55 181.1 0.0376 56 185.5 0.0383 57 186.3 0.039 58 186.9 0.0397 59 187 0.0404 60 189.8 0.0411 61 193.6 0.0418 62 194.9 0.0424 63 202.6 0.0431 64 203.4 0.0438 65 203.7 0.0445 66 205.8 0.0452 67 207.7 0.0459 68 213.7 0.0465 69 215.9 0.0472 70 216.1 0.0479 71 219.7 0.0486 72 220.2 0.0493 73 220.3 0.05 74 220.8 0.0507 75 228.4 0.0513 76 229.7 0.052 77 229.8 0.0527 78 232.6 0.0534 79 236.5 0.0541 80 236.8 0.0548 81 237.8 0.0554 82 241.1 0.0561 83 241.5 0.0568 84 241.6 0.0575 85 241.8 0.0582 86 242.4 0.0589 87 242.7 0.0595 88 247.7 0.0602 89 247.7 0.0609 90 248.6 0.0616 91 250.7 0.0623 92 250.7 0.063 93 250.9 0.0637 94 252.5 0.0643 95 253 0.065 96 255.3 0.0657 97 256.6 0.0664 98 257.2 0.0671 99 257.2 0.0678 100 260.5 0.0684 101 261.3 0.0691 102 261.9 0.0698 103 264.6 0.0705 104 265.2 0.0712 105 267.3 0.0719 106 268.7 0.0726 107 271.2 0.0732 108 271.2 0.0739 109 271.3 0.0746 110 274 0.0753 111 274.6 0.076 112 275.5 0.0767 113 275.6 0.0773 114 276.2 0.078 115 279 0.0787 116 279.9 0.0794 117 280.4 0.0801 118 282.3 0.0808 119 285.1 0.0815 120 286.6 0.0821 121 286.9 0.0828 122 287.2 0.0835 123 287.6 0.0842 124 289.1 0.0849 125 290.8 0.0856 126 291.3 0.0862 127 291.9 0.0869 128 293.8 0.0876 129 294.6 0.0883 130 295.8 0.089 131 296.3 0.0897 132 296.5 0.0903 133 296.8 0.091 134 297.5 0.0917 135 297.7 0.0924 136 298 0.0931 137 301.4 0.0938 138 301.5 0.0945 139 302.7 0.0951 140 305.6 0.0958 141 305.9 0.0965 142 309.7 0.0972 143 310.1 0.0979 144 314.2 0.0986 145 314.3 0.0992 146 314.5 0.0999 147 316.2 0.1006 148 317.5 0.1013 149 318.3 0.102 150 318.5 0.1027 151 319.4 0.1034 152 321.3 0.104 153 321.5 0.1047 154 321.6 0.1054 155 322.1 0.1061 156 322.6 0.1068 157 324 0.1075 158 324.3 0.1081 159 324.6 0.1088 160 325.3 0.1095 161 325.9 0.1102 162 326.7 0.1109 163 328.1 0.1116 164 328.6 0.1123 165 329.5 0.1129 166 330.1 0.1136 167 330.1 0.1143 168 331.1 0.115 169 332.1 0.1157 170 334.2 0.1164 171 334.5 0.117 172 336.4 0.1177 173 337 0.1184 174 338.4 0.1191 175 339 0.1198 176 340.3 0.1205 177 340.5 0.1211 178 340.9 0.1218 179 341 0.1225 180 342.4 0.1232 181 342.6 0.1239 182 346.2 0.1246 183 347.1 0.1253 184 347.6 0.1259 185 349.4 0.1266 186 349.4 0.1273 187 349.4 0.128 188 350.8 0.1287 189 351.3 0.1294 190 352 0.13 191 353.9 0.1307 192 354.3 0.1314 193 359 0.1321 194 359.9 0.1328 195 360 0.1335 196 360.7 0.1342 197 362.2 0.1348 198 362.6 0.1355 199 362.9 0.1362 200 364.2 0.1369 201 364.3 0.1376 202 364.7 0.1383 203 365.2 0.1389 204 368.2 0.1396 205 368.8 0.1403 206 368.9 0.141 207 372.6 0.1417 208 373 0.1424 209 373.1 0.1431 210 375.1 0.1437 211 375.2 0.1444 212 375.7 0.1451 213 376.6 0.1458 214 377 0.1465 215 379.6 0.1472 216 379.8 0.1478 217 381.2 0.1485 218 382.5 0.1492 219 382.7 0.1499 220 384.2 0.1506 221 385.3 0.1513 222 386.4 0.152 223 388.9 0.1526 224 390 0.1533 225 390 0.154 226 390.5 0.1547 227 390.5 0.1554 228 391.3 0.1561 229 391.9 0.1567 230 392 0.1574 231 392.3 0.1581 232 392.5 0.1588 233 393.1 0.1595 234 393.9 0.1602 235 394.5 0.1608 236 394.7 0.1615 237 395.7 0.1622 238 396 0.1629 239 397.6 0.1636 240 398.1 0.1643 241 399.8 0.165 242 400.6 0.1656 243 401.1 0.1663 244 401.2 0.167 245 401.7 0.1677 246 404 0.1684 247 404.7 0.1691 248 405.2 0.1697 249 405.2 0.1704 250 405.2 0.1711 251 407.6 0.1718 252 408.4 0.1725 253 409.2 0.1732 254 409.5 0.1739 255 409.5 0.1745 256 410 0.1752 257 411.1 0.1759 258 411.6 0.1766 259 413.2 0.1773 260 414.1 0.178 261 415.8 0.1786 262 416 0.1793 263 418.3 0.18 264 418.6 0.1807 265 418.8 0.1814 266 419.9 0.1821 267 420.5 0.1828 268 421.2 0.1834 269 422.2 0.1841 270 422.6 0.1848 271 423.4 0.1855 272 423.5 0.1862 273 423.6 0.1869 274 424.1 0.1875 275 424.3 0.1882 276 424.9 0.1889 277 425.6 0.1896 278 426.3 0.1903 279 426.4 0.191 280 426.9 0.1916 281 427.2 0.1923 282 428.9 0.193 283 428.9 0.1937 284 429.1 0.1944 285 429.6 0.1951 286 429.9 0.1958 287 430.7 0.1964 288 431.4 0.1971 289 432.1 0.1978 290 432.2 0.1985 291 432.3 0.1992 292 432.4 0.1999 293 432.6 0.2005 294 434.2 0.2012 295 434.7 0.2019 296 435.6 0.2026 297 436.3 0.2033 298 436.6 0.204 299 437.6 0.2047 300 438.1 0.2053 301 438.7 0.206 302 439.1 0.2067 303 439.9 0.2074 304 440.6 0.2081 305 440.9 0.2088 306 441.1 0.2094 307 442.5 0.2101 308 442.6 0.2108 309 443.3 0.2115 310 443.6 0.2122 311 443.8 0.2129 312 444.4 0.2136 313 445.7 0.2142 314 446.6 0.2149 315 446.6 0.2156 316 447 0.2163 317 447.2 0.217 318 447.9 0.2177 319 448.2 0.2183 320 448.3 0.219 321 448.4 0.2197 322 448.7 0.2204 323 449.6 0.2211 324 451.7 0.2218 325 452.6 0.2225 326 453.7 0.2231 327 454 0.2238 328 454.2 0.2245 329 454.4 0.2252 330 454.7 0.2259 331 455.4 0.2266 332 455.6 0.2272 333 458.6 0.2279 334 460.3 0.2286 335 460.5 0.2293 336 461.6 0.23 337 461.7 0.2307 338 463 0.2313 339 463.2 0.232 340 464.1 0.2327 341 464.5 0.2334 342 464.7 0.2341 343 465.2 0.2348 344 466.1 0.2355 345 467.3 0.2361 346 467.8 0.2368 347 469.4 0.2375 348 470.1 0.2382 349 470.5 0.2389 350 471 0.2396 351 472 0.2402 352 472.1 0.2409 353 472.8 0.2416 354 474.3 0.2423 355 474.7 0.243 356 474.9 0.2437 357 475 0.2444 358 475.8 0.245 359 476.2 0.2457 360 476.6 0.2464 361 477.4 0.2471 362 478.2 0.2478 363 479.2 0.2485 364 479.6 0.2491 365 480.3 0.2498 366 481.8 0.2505 367 482.3 0.2512 368 483.1 0.2519 369 483.8 0.2526 370 484.1 0.2533 371 486.5 0.2539 372 487 0.2546 373 488.4 0.2553 374 489.8 0.256 375 490.2 0.2567 376 490.6 0.2574 377 491.3 0.258 378 491.4 0.2587 379 492.2 0.2594 380 492.6 0.2601 381 493.6 0.2608 382 493.8 0.2615 383 494.3 0.2621 384 494.4 0.2628 385 494.5 0.2635 386 494.7 0.2642 387 495.1 0.2649 388 495.9 0.2656 389 495.9 0.2663 390 497 0.2669 391 498 0.2676 392 498.2 0.2683 393 499.6 0.269 394 499.7 0.2697 395 499.9 0.2704 396 501.5 0.271 397 503.5 0.2717 398 504.3 0.2724 399 506.6 0.2731 400 507.5 0.2738 401 507.9 0.2745 402 508.3 0.2752 403 509.2 0.2758 404 512.2 0.2765 405 513.1 0.2772 406 516.6 0.2779 407 516.9 0.2786 408 517.1 0.2793 409 523.2 0.2799 410 525.5 0.2806 411 525.8 0.2813 412 526.5 0.282 413 526.6 0.2827 414 527.2 0.2834 415 527.6 0.2841 416 528.2 0.2847 417 528.2 0.2854 418 528.5 0.2861 419 529.1 0.2868 420 529.8 0.2875 421 530.5 0.2882 422 531.3 0.2888 423 531.4 0.2895 424 531.5 0.2902 425 531.7 0.2909 426 531.7 0.2916 427 532.3 0.2923 428 533.1 0.293 429 533.3 0.2936 430 534.1 0.2943 431 535.6 0.295 432 537.6 0.2957 433 538 0.2964 434 538.4 0.2971 435 539.3 0.2977 436 539.3 0.2984 437 539.4 0.2991 438 539.5 0.2998 439 539.8 0.3005 440 541.2 0.3012 441 542 0.3018 442 542.1 0.3025 443 542.3 0.3032 444 542.8 0.3039 445 543.4 0.3046 446 543.4 0.3053 447 543.8 0.306 448 544.2 0.3066 449 546 0.3073 450 547.4 0.308 451 547.4 0.3087 452 549.4 0.3094 453 549.5 0.3101 454 549.6 0.3107 455 549.6 0.3114 456 549.8 0.3121 457 550.6 0.3128 458 551.5 0.3135 459 551.7 0.3142 460 551.7 0.3149 461 552 0.3155 462 552.2 0.3162 463 552.5 0.3169 464 553 0.3176 465 553.1 0.3183 466 553.6 0.319 467 553.8 0.3196 468 554.9 0.3203 469 555 0.321 470 555.1 0.3217 471 555.2 0.3224 472 555.6 0.3231 473 556.1 0.3238 474 556.7 0.3244 475 558 0.3251 476 558.5 0.3258 477 560.9 0.3265 478 562.6 0.3272 479 564.6 0.3279 480 564.9 0.3285 481 567.5 0.3292 482 567.6 0.3299 483 569.2 0.3306 484 569.8 0.3313 485 570.6 0.332 486 574.6 0.3326 487 575.4 0.3333 488 576.5 0.334 489 577.5 0.3347 490 578.5 0.3354 491 579.1 0.3361 492 580.8 0.3368 493 581.5 0.3374 494 582.3 0.3381 495 582.8 0.3388 496 583.3 0.3395 497 584.1 0.3402 498 586.1 0.3409 499 586.5 0.3415 500 586.7 0.3422 501 587.2 0.3429 502 587.3 0.3436 503 587.5 0.3443 504 587.6 0.345 505 587.8 0.3457 506 588 0.3463 507 588.3 0.347 508 589.6 0.3477 509 590.3 0.3484 510 590.7 0.3491 511 591.3 0.3498 512 591.4 0.3504 513 591.4 0.3511 514 591.8 0.3518 515 592.3 0.3525 516 594.1 0.3532 517 594.5 0.3539 518 594.6 0.3546 519 594.8 0.3552 520 595.4 0.3559 521 596.6 0.3566 522 597.5 0.3573 523 597.8 0.358 524 598.2 0.3587 525 600.7 0.3593 526 601.1 0.36 527 601.2 0.3607 528 601.5 0.3614 529 602.1 0.3621 530 602.7 0.3628 531 603.3 0.3634 532 603.5 0.3641 533 604.3 0.3648 534 604.6 0.3655 535 604.9 0.3662 536 605.5 0.3669 537 606.1 0.3676 538 606.5 0.3682 539 606.5 0.3689 540 607.1 0.3696 541 608.3 0.3703 542 609.2 0.371 543 610.2 0.3717 544 611.2 0.3723 545 613.4 0.373 546 614.6 0.3737 547 615.5 0.3744 548 615.6 0.3751 549 616.5 0.3758 550 616.6 0.3765 551 617.3 0.3771 552 617.6 0.3778 553 618.3 0.3785 554 618.6 0.3792 555 618.7 0.3799 556 618.7 0.3806 557 620.4 0.3812 558 620.6 0.3819 559 620.7 0.3826 560 621.9 0.3833 561 622.1 0.384 562 622.5 0.3847 563 622.6 0.3854 564 622.6 0.386 565 622.7 0.3867 566 624.1 0.3874 567 624.7 0.3881 568 625.2 0.3888 569 625.4 0.3895 570 626.9 0.3901 571 627 0.3908 572 628.1 0.3915 573 628.3 0.3922 574 628.8 0.3929 575 629.6 0.3936 576 629.8 0.3943 577 631.9 0.3949 578 632.1 0.3956 579 633 0.3963 580 634.1 0.397 581 634.6 0.3977 582 635 0.3984 583 635.6 0.399 584 635.6 0.3997 585 636.1 0.4004 586 636.5 0.4011 587 636.8 0.4018 588 637.9 0.4025 589 638.6 0.4031 590 638.7 0.4038 591 639.7 0.4045 592 640.1 0.4052 593 640.2 0.4059 594 640.4 0.4066 595 640.5 0.4073 596 640.7 0.4079 597 641.1 0.4086 598 643.4 0.4093 599 644.4 0.41 600 644.6 0.4107 601 644.7 0.4114 602 644.9 0.412 603 645.2 0.4127 604 645.3 0.4134 605 646.4 0.4141 606 647.3 0.4148 607 647.4 0.4155 608 647.7 0.4162 609 648.7 0.4168 610 649.1 0.4175 611 650.7 0.4182 612 651.4 0.4189 613 651.6 0.4196 614 652.1 0.4203 615 652.9 0.4209 616 653.3 0.4216 617 654.6 0.4223 618 655.6 0.423 619 656.8 0.4237 620 657.6 0.4244 621 658.2 0.4251 622 658.7 0.4257 623 659.3 0.4264 624 659.6 0.4271 625 660 0.4278 626 660 0.4285 627 660.2 0.4292 628 660.8 0.4298 629 660.9 0.4305 630 662.1 0.4312 631 662.1 0.4319 632 662.2 0.4326 633 662.3 0.4333 634 662.9 0.4339 635 663.2 0.4346 636 663.3 0.4353 637 663.4 0.436 638 664.3 0.4367 639 664.4 0.4374 640 664.8 0.4381 641 664.8 0.4387 642 665.9 0.4394 643 666.8 0.4401 644 668.2 0.4408 645 668.3 0.4415 646 669.7 0.4422 647 669.8 0.4428 648 670.3 0.4435 649 670.9 0.4442 650 671.3 0.4449 651 671.4 0.4456 652 673 0.4463 653 673.1 0.447 654 674.1 0.4476 655 674.4 0.4483 656 674.5 0.449 657 674.5 0.4497 658 675.4 0.4504 659 675.6 0.4511 660 676.9 0.4517 661 677 0.4524 662 677.5 0.4531 663 677.6 0.4538 664 678.5 0.4545 665 678.6 0.4552 666 679.1 0.4559 667 679.2 0.4565 668 679.7 0.4572 669 680.3 0.4579 670 680.8 0.4586 671 680.9 0.4593 672 681.2 0.46 673 682.6 0.4606 674 684.2 0.4613 675 686.5 0.462 676 687.1 0.4627 677 687.3 0.4634 678 688.6 0.4641 679 688.9 0.4648 680 689 0.4654 681 690.9 0.4661 682 692 0.4668 683 694.7 0.4675 684 695 0.4682 685 695.1 0.4689 686 695.1 0.4695 687 695.5 0.4702 688 695.6 0.4709 689 695.8 0.4716 690 696.8 0.4723 691 697.5 0.473 692 697.5 0.4736 693 697.9 0.4743 694 698.1 0.475 695 699.4 0.4757 696 701.5 0.4764 697 701.6 0.4771 698 701.9 0.4778 699 702.5 0.4784 700 702.6 0.4791 701 702.8 0.4798 702 702.9 0.4805 703 703 0.4812 704 703.1 0.4819 705 703.2 0.4825 706 703.6 0.4832 707 703.9 0.4839 708 706.1 0.4846 709 706.1 0.4853 710 706.2 0.486 711 707.7 0.4867 712 709.3 0.4873 713 712 0.488 714 713.3 0.4887 715 713.9 0.4894 716 714.3 0.4901 717 714.6 0.4908 718 715.4 0.4914 719 716.2 0.4921 720 716.9 0.4928 721 717.7 0.4935 722 717.8 0.4942 723 718.3 0.4949 724 718.8 0.4956 725 719.6 0.4962 726 719.7 0.4969 727 720 0.4976 728 720.2 0.4983 729 720.7 0.499 730 722.5 0.4997 731 722.6 0.5003 732 723.1 0.501 733 724.1 0.5017 734 724.1 0.5024 735 724.6 0.5031 736 725.3 0.5038 737 725.4 0.5044 738 725.6 0.5051 739 726.3 0.5058 740 727.1 0.5065 741 727.4 0.5072 742 727.6 0.5079 743 728.2 0.5086 744 728.3 0.5092 745 730.3 0.5099 746 732.6 0.5106 747 732.7 0.5113 748 733.7 0.512 749 733.9 0.5127 750 735.4 0.5133 751 736.2 0.514 752 736.3 0.5147 753 736.4 0.5154 754 736.5 0.5161 755 737.6 0.5168 756 738.5 0.5175 757 740.5 0.5181 758 740.7 0.5188 759 741.2 0.5195 760 742 0.5202 761 742.2 0.5209 762 743 0.5216 763 743.4 0.5222 764 744.4 0.5229 765 744.7 0.5236 766 746.3 0.5243 767 746.9 0.525 768 750 0.5257 769 751.3 0.5264 770 752.6 0.527 771 752.6 0.5277 772 752.9 0.5284 773 753.1 0.5291 774 753.2 0.5298 775 753.5 0.5305 776 754 0.5311 777 755.6 0.5318 778 755.8 0.5325 779 755.9 0.5332 780 758.8 0.5339 781 759.7 0.5346 782 759.9 0.5352 783 760.2 0.5359 784 760.6 0.5366 785 760.8 0.5373 786 761.1 0.538 787 762.4 0.5387 788 762.6 0.5394 789 764.8 0.54 790 764.9 0.5407 791 765.6 0.5414 792 766.1 0.5421 793 768.7 0.5428 794 768.9 0.5435 795 769.2 0.5441 796 770.5 0.5448 797 770.5 0.5455 798 772.5 0.5462 799 772.7 0.5469 800 772.7 0.5476 801 772.9 0.5483 802 774.5 0.5489 803 774.8 0.5496 804 775 0.5503 805 775.2 0.551 806 776.1 0.5517 807 776.6 0.5524 808 777.1 0.553 809 781.8 0.5537 810 782.1 0.5544 811 782.5 0.5551 812 783.1 0.5558 813 784.4 0.5565 814 784.4 0.5572 815 784.7 0.5578 816 786.2 0.5585 817 786.4 0.5592 818 787.3 0.5599 819 787.4 0.5606 820 788.1 0.5613 821 788.8 0.5619 822 789.9 0.5626 823 790.6 0.5633 824 791.1 0.564 825 791.2 0.5647 826 791.4 0.5654 827 791.6 0.5661 828 791.9 0.5667 829 793.3 0.5674 830 793.4 0.5681 831 793.6 0.5688 832 796.6 0.5695 833 797.1 0.5702 834 797.5 0.5708 835 797.8 0.5715 836 797.8 0.5722 837 797.8 0.5729 838 799.1 0.5736 839 799.8 0.5743 840 799.9 0.5749 841 800.5 0.5756 842 801.8 0.5763 843 801.9 0.577 844 802.2 0.5777 845 802.3 0.5784 846 803.5 0.5791 847 803.7 0.5797 848 804.6 0.5804 849 804.7 0.5811 850 806.4 0.5818 851 806.6 0.5825 852 807 0.5832 853 807.8 0.5838 854 809.4 0.5845 855 809.5 0.5852 856 809.7 0.5859 857 812.2 0.5866 858 812.8 0.5873 859 813.1 0.588 860 813.3 0.5886 861 813.3 0.5893 862 814.5 0.59 863 815.1 0.5907 864 815.4 0.5914 865 817.2 0.5921 866 817.9 0.5927 867 818.4 0.5934 868 819 0.5941 869 819.4 0.5948 870 819.5 0.5955 871 819.9 0.5962 872 820.4 0.5969 873 820.7 0.5975 874 820.8 0.5982 875 821.1 0.5989 876 822.1 0.5996 877 823 0.6003 878 823.5 0.601 879 823.9 0.6016 880 825 0.6023 881 826.1 0.603 882 826.9 0.6037 883 828.4 0.6044 884 829.1 0.6051 885 829.5 0.6057 886 829.9 0.6064 887 831.7 0.6071 888 832.7 0.6078 889 833.1 0.6085 890 834.8 0.6092 891 836.6 0.6099 892 839.5 0.6105 893 840.3 0.6112 894 840.4 0.6119 895 840.8 0.6126 896 841.2 0.6133 897 841.4 0.614 898 841.5 0.6146 899 841.5 0.6153 900 842.7 0.616 901 844.1 0.6167 902 844.6 0.6174 903 845.6 0.6181 904 846.7 0.6188 905 847.6 0.6194 906 848.6 0.6201 907 849.1 0.6208 908 852.5 0.6215 909 854 0.6222 910 854.4 0.6229 911 854.5 0.6235 912 855.4 0.6242 913 857.3 0.6249 914 858.4 0.6256 915 858.8 0.6263 916 860.4 0.627 917 862.3 0.6277 918 863.1 0.6283 919 863.3 0.629 920 863.7 0.6297 921 863.9 0.6304 922 864.8 0.6311 923 865.9 0.6318 924 866.3 0.6324 925 867.8 0.6331 926 868.7 0.6338 927 869.5 0.6345 928 869.5 0.6352 929 870.2 0.6359 930 870.6 0.6366 931 872.5 0.6372 932 873.3 0.6379 933 873.3 0.6386 934 873.8 0.6393 935 877.1 0.64 936 877.3 0.6407 937 877.7 0.6413 938 877.8 0.642 939 879.2 0.6427 940 879.5 0.6434 941 880.1 0.6441 942 880.4 0.6448 943 880.7 0.6454 944 880.8 0.6461 945 881.1 0.6468 946 881.6 0.6475 947 881.9 0.6482 948 882.1 0.6489 949 882.5 0.6496 950 882.8 0.6502 951 883.2 0.6509 952 883.5 0.6516 953 884.5 0.6523 954 884.8 0.653 955 884.9 0.6537 956 885.7 0.6543 957 885.8 0.655 958 886.6 0.6557 959 886.9 0.6564 960 887 0.6571 961 889.6 0.6578 962 890.2 0.6585 963 890.4 0.6591 964 892 0.6598 965 892.9 0.6605 966 893.7 0.6612 967 894.6 0.6619 968 894.7 0.6626 969 895 0.6632 970 895 0.6639 971 895.1 0.6646 972 896.5 0.6653 973 897.3 0.666 974 898.7 0.6667 975 906 0.6674 976 906.4 0.668 977 908 0.6687 978 908.4 0.6694 979 908.5 0.6701 980 909.1 0.6708 981 909.2 0.6715 982 909.7 0.6721 983 909.7 0.6728 984 911.4 0.6735 985 912 0.6742 986 912.6 0.6749 987 913.5 0.6756 988 914.8 0.6762 989 915.4 0.6769 990 915.7 0.6776 991 917.7 0.6783 992 918.1 0.679 993 918.6 0.6797 994 920.9 0.6804 995 921.3 0.681 996 922.1 0.6817 997 923.3 0.6824 998 923.5 0.6831 999 924.3 0.6838 1000 925.1 0.6845 1001 927.8 0.6851 1002 930.1 0.6858 1003 930.7 0.6865 1004 932.1 0.6872 1005 934.4 0.6879 1006 934.8 0.6886 1007 934.8 0.6893 1008 934.8 0.6899 1009 936.9 0.6906 1010 937.9 0.6913 1011 938.1 0.692 1012 939.8 0.6927 1013 940.7 0.6934 1014 942.4 0.694 1015 943 0.6947 1016 944 0.6954 1017 944.7 0.6961 1018 945.2 0.6968 1019 946.3 0.6975 1020 946.3 0.6982 1021 949.3 0.6988 1022 950.9 0.6995 1023 955.4 0.7002 1024 958 0.7009 1025 959.5 0.7016 1026 960.6 0.7023 1027 961.9 0.7029 1028 962.5 0.7036 1029 963.7 0.7043 1030 965.1 0.705 1031 966.8 0.7057 1032 967 0.7064 1033 968.6 0.707 1034 969.3 0.7077 1035 971.9 0.7084 1036 974.2 0.7091 1037 974.4 0.7098 1038 975.3 0.7105 1039 975.4 0.7112 1040 975.8 0.7118 1041 977.8 0.7125 1042 978 0.7132 1043 979.1 0.7139 1044 979.4 0.7146 1045 980.2 0.7153 1046 981.6 0.7159 1047 982.2 0.7166 1048 984.8 0.7173 1049 988 0.718 1050 988.7 0.7187 1051 989 0.7194 1052 990.1 0.7201 1053 993.5 0.7207 1054 994 0.7214 1055 994.3 0.7221 1056 994.5 0.7228 1057 996.1 0.7235 1058 997.3 0.7242 1059 998.4 0.7248 1060 998.5 0.7255 1061 998.7 0.7262 1062 1,001.3 0.7269 1063 1,002 0.7276 1064 1,003 0.7283 1065 1,003.1 0.729 1066 1,004.6 0.7296 1067 1,007.5 0.7303 1068 1,008.1 0.731 1069 1,009.9 0.7317 1070 1,010.5 0.7324 1071 1,013 0.7331 1072 1,014.2 0.7337 1073 1,016.7 0.7344 1074 1,016.7 0.7351 1075 1,018.7 0.7358 1076 1,019.2 0.7365 1077 1,020 0.7372 1078 1,020.8 0.7379 1079 1,022.6 0.7385 1080 1,023.7 0.7392 1081 1,024.3 0.7399 1082 1,024.8 0.7406 1083 1,026.9 0.7413 1084 1,027.1 0.742 1085 1,027.4 0.7426 1086 1,027.7 0.7433 1087 1,028.2 0.744 1088 1,029.6 0.7447 1089 1,031.4 0.7454 1090 1,042 0.7461 1091 1,045.4 0.7467 1092 1,046.1 0.7474 1093 1,049.2 0.7481 1094 1,049.3 0.7488 1095 1,049.7 0.7495 1096 1,052.4 0.7502 1097 1,052.7 0.7509 1098 1,055.3 0.7515 1099 1,055.8 0.7522 1100 1,057.3 0.7529 1101 1,057.7 0.7536 1102 1,058.7 0.7543 1103 1,059.6 0.755 1104 1,059.8 0.7556 1105 1,062.4 0.7563 1106 1,063.6 0.757 1107 1,064 0.7577 1108 1,064.1 0.7584 1109 1,064.3 0.7591 1110 1,064.6 0.7598 1111 1,066.7 0.7604 1112 1,068 0.7611 1113 1,070.2 0.7618 1114 1,072.3 0.7625 1115 1,072.4 0.7632 1116 1,076.5 0.7639 1117 1,077.9 0.7645 1118 1,080.7 0.7652 1119 1,080.8 0.7659 1120 1,081.2 0.7666 1121 1,081.3 0.7673 1122 1,082.5 0.768 1123 1,083 0.7687 1124 1,084.4 0.7693 1125 1,086.2 0.77 1126 1,088.4 0.7707 1127 1,091.1 0.7714 1128 1,094.1 0.7721 1129 1,094.1 0.7728 1130 1,096.1 0.7734 1131 1,096.7 0.7741 1132 1,098 0.7748 1133 1,098.8 0.7755 1134 1,099 0.7762 1135 1,100.2 0.7769 1136 1,103.4 0.7775 1137 1,105.8 0.7782 1138 1,106.4 0.7789 1139 1,106.6 0.7796 1140 1,106.9 0.7803 1141 1,112.8 0.781 1142 1,113.3 0.7817 1143 1,114.4 0.7823 1144 1,117.4 0.783 1145 1,117.9 0.7837 1146 1,119.4 0.7844 1147 1,120.7 0.7851 1148 1,121.4 0.7858 1149 1,121.9 0.7864 1150 1,123.1 0.7871 1151 1,124.1 0.7878 1152 1,125.9 0.7885 1153 1,127.9 0.7892 1154 1,130 0.7899 1155 1,131.2 0.7906 1156 1,132.1 0.7912 1157 1,134 0.7919 1158 1,134.8 0.7926 1159 1,136.9 0.7933 1160 1,140.5 0.794 1161 1,145.3 0.7947 1162 1,145.3 0.7953 1163 1,146.8 0.796 1164 1,146.9 0.7967 1165 1,147.2 0.7974 1166 1,147.6 0.7981 1167 1,149.2 0.7988 1168 1,149.8 0.7995 1169 1,150.8 0.8001 1170 1,152.1 0.8008 1171 1,152.9 0.8015 1172 1,153.1 0.8022 1173 1,153.4 0.8029 1174 1,154.6 0.8036 1175 1,155.4 0.8042 1176 1,156.2 0.8049 1177 1,158.6 0.8056 1178 1,159.5 0.8063 1179 1,159.8 0.807 1180 1,162.1 0.8077 1181 1,165.2 0.8084 1182 1,166.1 0.809 1183 1,168.8 0.8097 1184 1,169.8 0.8104 1185 1,175.9 0.8111 1186 1,176.4 0.8118 1187 1,177.4 0.8125 1188 1,178.5 0.8131 1189 1,178.7 0.8138 1190 1,179.7 0.8145 1191 1,179.7 0.8152 1192 1,180.1 0.8159 1193 1,182.7 0.8166 1194 1,183.8 0.8172 1195 1,184.2 0.8179 1196 1,186.2 0.8186 1197 1,187.5 0.8193 1198 1,189 0.82 1199 1,190.7 0.8207 1200 1,192.9 0.8214 1201 1,194.3 0.822 1202 1,196.5 0.8227 1203 1,196.5 0.8234 1204 1,197 0.8241 1205 1,205.1 0.8248 1206 1,206.4 0.8255 1207 1,211.4 0.8261 1208 1,212.2 0.8268 1209 1,212.9 0.8275 1210 1,216.8 0.8282 1211 1,217.6 0.8289 1212 1,220.1 0.8296 1213 1,220.2 0.8303 1214 1,220.6 0.8309 1215 1,220.9 0.8316 1216 1,221.2 0.8323 1217 1,221.3 0.833 1218 1,222.1 0.8337 1219 1,224 0.8344 1220 1,226.1 0.835 1221 1,226.7 0.8357 1222 1,227 0.8364 1223 1,228.1 0.8371 1224 1,229.1 0.8378 1225 1,229.6 0.8385 1226 1,230.3 0.8392 1227 1,238.3 0.8398 1228 1,238.4 0.8405 1229 1,239.1 0.8412 1230 1,240 0.8419 1231 1,240.5 0.8426 1232 1,242 0.8433 1233 1,243.4 0.8439 1234 1,248.3 0.8446 1235 1,252.2 0.8453 1236 1,254.2 0.846 1237 1,255.4 0.8467 1238 1,259.1 0.8474 1239 1,260.5 0.848 1240 1,265.5 0.8487 1241 1,268.7 0.8494 1242 1,268.7 0.8501 1243 1,270.1 0.8508 1244 1,272.8 0.8515 1245 1,273 0.8522 1246 1,273.3 0.8528 1247 1,274.2 0.8535 1248 1,276.7 0.8542 1249 1,278 0.8549 1250 1,278.7 0.8556 1251 1,280.3 0.8563 1252 1,282.9 0.8569 1253 1,283.7 0.8576 1254 1,283.9 0.8583 1255 1,285 0.859 1256 1,288 0.8597 1257 1,290.6 0.8604 1258 1,292.9 0.8611 1259 1,296.9 0.8617 1260 1,301.6 0.8624 1261 1,304.5 0.8631 1262 1,306.5 0.8638 1263 1,306.9 0.8645 1264 1,316 0.8652 1265 1,316.6 0.8658 1266 1,318.7 0.8665 1267 1,318.7 0.8672 1268 1,320.5 0.8679 1269 1,324.9 0.8686 1270 1,324.9 0.8693 1271 1,327.7 0.87 1272 1,328.4 0.8706 1273 1,329.1 0.8713 1274 1,330.6 0.872 1275 1,331.2 0.8727 1276 1,332.2 0.8734 1277 1,335.2 0.8741 1278 1,336.6 0.8747 1279 1,337.5 0.8754 1280 1,339 0.8761 1281 1,340.7 0.8768 1282 1,346.3 0.8775 1283 1,346.5 0.8782 1284 1,348.7 0.8789 1285 1,349.1 0.8795 1286 1,354 0.8802 1287 1,359.3 0.8809 1288 1,363.6 0.8816 1289 1,369.2 0.8823 1290 1,370.9 0.883 1291 1,372 0.8836 1292 1,374.1 0.8843 1293 1,375.3 0.885 1294 1,380.2 0.8857 1295 1,382.9 0.8864 1296 1,388.6 0.8871 1297 1,394.5 0.8877 1298 1,394.6 0.8884 1299 1,394.8 0.8891 1300 1,396.5 0.8898 1301 1,402.4 0.8905 1302 1,404.7 0.8912 1303 1,407.7 0.8919 1304 1,412.7 0.8925 1305 1,412.9 0.8932 1306 1,414 0.8939 1307 1,414.3 0.8946 1308 1,421.8 0.8953 1309 1,431.5 0.896 1310 1,436.4 0.8966 1311 1,437.4 0.8973 1312 1,441.5 0.898 1313 1,448.6 0.8987 1314 1,448.7 0.8994 1315 1,448.8 0.9001 1316 1,449.8 0.9008 1317 1,450.2 0.9014 1318 1,454.4 0.9021 1319 1,454.5 0.9028 1320 1,455.2 0.9035 1321 1,457 0.9042 1322 1,458.9 0.9049 1323 1,471.8 0.9055 1324 1,472.2 0.9062 1325 1,473.6 0.9069 1326 1,475.3 0.9076 1327 1,475.6 0.9083 1328 1,491.9 0.909 1329 1,500.1 0.9097 1330 1,506 0.9103 1331 1,509.9 0.911 1332 1,511.3 0.9117 1333 1,515.8 0.9124 1334 1,519.5 0.9131 1335 1,522.1 0.9138 1336 1,525.9 0.9144 1337 1,532.4 0.9151 1338 1,546.3 0.9158 1339 1,547.9 0.9165 1340 1,550.4 0.9172 1341 1,551.1 0.9179 1342 1,553.2 0.9185 1343 1,555.1 0.9192 1344 1,556.3 0.9199 1345 1,556.8 0.9206 1346 1,557.2 0.9213 1347 1,564 0.922 1348 1,573.9 0.9227 1349 1,574.5 0.9233 1350 1,585.5 0.924 1351 1,586.6 0.9247 1352 1,588.5 0.9254 1353 1,591.7 0.9261 1354 1,592.3 0.9268 1355 1,598.4 0.9274 1356 1,600.4 0.9281 1357 1,603.4 0.9288 1358 1,608.7 0.9295 1359 1,618.2 0.9302 1360 1,630.5 0.9309 1361 1,636.2 0.9316 1362 1,637.3 0.9322 1363 1,638.7 0.9329 1364 1,640.4 0.9336 1365 1,646.1 0.9343 1366 1,647 0.935 1367 1,655.5 0.9357 1368 1,656.8 0.9363 1369 1,659.3 0.937 1370 1,661.2 0.9377 1371 1,661.4 0.9384 1372 1,672.4 0.9391 1373 1,685.1 0.9398 1374 1,688.5 0.9405 1375 1,695.3 0.9411 1376 1,704.3 0.9418 1377 1,709.7 0.9425 1378 1,710.7 0.9432 1379 1,713.7 0.9439 1380 1,716 0.9446 1381 1,719.6 0.9452 1382 1,728.8 0.9459 1383 1,738 0.9466 1384 1,748.3 0.9473 1385 1,767.9 0.948 1386 1,773.3 0.9487 1387 1,778.2 0.9493 1388 1,792.2 0.95 1389 1,817.4 0.9507 1390 1,825.9 0.9514 1391 1,832.6 0.9521 1392 1,833.1 0.9528 1393 1,836.7 0.9535 1394 1,839.5 0.9541 1395 1,840.3 0.9548 1396 1,859.7 0.9555 1397 1,863.3 0.9562 1398 1,864.8 0.9569 1399 1,870.9 0.9576 1400 1,872.2 0.9582 1401 1,877.3 0.9589 1402 1,881.2 0.9596 1403 1,892.4 0.9603 1404 1,899.4 0.961 1405 1,923.4 0.9617 1406 1,939.9 0.9624 1407 1,974.8 0.963 1408 1,975.7 0.9637 1409 1,999.1 0.9644 1410 2,016.8 0.9651 1411 2,059.1 0.9658 1412 2,065.9 0.9665 1413 2,100.9 0.9671 1414 2,115.9 0.9678 1415 2,129.7 0.9685 1416 2,129.7 0.9692 1417 2,133.8 0.9699 1418 2,138.3 0.9706 1419 2,143.3 0.9713 1420 2,185.7 0.9719 1421 2,202.8 0.9726 1422 2,205.2 0.9733 1423 2,225.4 0.974 1424 2,226.7 0.9747 1425 2,237.1 0.9754 1426 2,247.2 0.976 1427 2,435.2 0.9767 1428 2,512.1 0.9774 1429 2,518.9 0.9781 1430 2,545 0.9788 1431 2,612.3 0.9795 1432 2,765.2 0.9802 1433 2,767.9 0.9808 1434 3,121.1 0.9815 1435 3,121.6 0.9822 1436 3,666.8 0.9829
生成的图形,如下
如果在仿真配置文件中的report部分选择了GraphvizReport,那么one仿真结果中会产生一个文件名以
MessageGraphvizReport结尾的文件,这个文件的内容形式如下:
digraph msggraph {
w88->c47->w91;
c46->c47->c78;
c57->p22->t121->t120->p11;
c76->c41->w110;
c52->c78->w89->c62;
c54->w86->c77->w83;
c75->c70->w85->c72->p23;
p8->c70->w95->w81->p20;
c40->p3->t120->c58->p13;
c43->t121;
t122->w86->w105->p34->w98->c71->w91;
p33->c62->p27->c40->c51->w90;
w115->c75;
w92->c73;
p14->p28->w116->c41->p6->w88->c60->p13;
p16->p15;
w109->w90->c47->c76;
p2->p16->p22->w104->c48;
c76->c53->p0->w81;
bp27->c40->p38->p23->c78;
}
通过命令: dot -Tgif -oMessageGraphvizReport.gif MessageGraphvizReport.txt
可以直接得到相应的gif图文件,这个文件的内容主要是展现了每个传递成功的消息在传递过程中经过的每个节点及其先后顺序,如下所示。
1 Usage: dot [-Vv?] [-(GNE)name=val] [-(KTlso)<val>] <dot files> 2 (additional options for neato) [-x] [-n<v>] 3 (additional options for fdp) [-L(gO)] [-L(nUCT)<val>] 4 (additional options for memtest) [-m] 5 (additional options for config) [-cv] 6 7 -V - Print version and exit 8 -v - Enable verbose mode 9 -Gname=val - Set graph attribute 'name' to 'val' 10 -Nname=val - Set node attribute 'name' to 'val' 11 -Ename=val - Set edge attribute 'name' to 'val' 12 -Tv - Set output format to 'v' 13 -Kv - Set layout engine to 'v' (overrides default based on command name) 14 -lv - Use external library 'v' 15 -ofile - Write output to 'file' 16 -O - Automatically generate an output filename based on the input filename with a .'format' appended. (Causes all -ofile options to be ignored.) 17 -P - Internally generate a graph of the current plugins. 18 -q[l] - Set level of message suppression (=1) 19 -s[v] - Scale input by 'v' (=72) 20 -y - Invert y coordinate in output 21 22 -n[v] - No layout mode 'v' (=1) 23 -x - Reduce graph 24 25 -Lg - Don't use grid 26 -LO - Use old attractive force 27 -Ln<i> - Set number of iterations to i 28 -LU<i> - Set unscaled factor to i 29 -LC<v> - Set overlap expansion factor to v 30 -LT[*]<v> - Set temperature (temperature factor) to v 31 32 -m - Memory test (Observe no growth with top. Kill when done.) 33 34 -c - Configure plugins (Writes $prefix/lib/graphviz/config 35 with available plugin information. Needs write privilege.) 36 -v - Enable verbose mode