-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path121058_lab2.txt
2534 lines (2436 loc) · 110 KB
/
121058_lab2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
total used free shared buffers cached
Mem: 3854 1053 2801 0 71 550
-/+ buffers/cache: 431 3423
Swap: 8189 0 8189
Linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010
Command line: ro root=LABEL=/ rhgb quiet
BIOS-provided physical RAM map:
BIOS-e820: 0000000000010000 - 000000000009d800 (usable)
BIOS-e820: 000000000009d800 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
BIOS-e820: 0000000020000000 - 0000000020200000 (reserved)
BIOS-e820: 0000000020200000 - 0000000040000000 (usable)
BIOS-e820: 0000000040000000 - 0000000040200000 (reserved)
BIOS-e820: 0000000040200000 - 00000000baaa7000 (usable)
BIOS-e820: 00000000baaa7000 - 00000000baaf0000 (ACPI NVS)
BIOS-e820: 00000000baaf0000 - 00000000baaf8000 (ACPI data)
BIOS-e820: 00000000baaf8000 - 00000000bab0e000 (reserved)
BIOS-e820: 00000000bab0e000 - 00000000bab10000 (usable)
BIOS-e820: 00000000bab10000 - 00000000bab1e000 (ACPI NVS)
BIOS-e820: 00000000bab1e000 - 00000000bab6f000 (reserved)
BIOS-e820: 00000000bab6f000 - 00000000babb2000 (ACPI NVS)
BIOS-e820: 00000000babb2000 - 00000000bae2e000 (usable)
BIOS-e820: 00000000bae2e000 - 00000000bae34000 (reserved)
BIOS-e820: 00000000bae34000 - 00000000bae44000 (usable)
BIOS-e820: 00000000bae44000 - 00000000baff4000 (reserved)
BIOS-e820: 00000000baff4000 - 00000000bb000000 (usable)
BIOS-e820: 00000000bbe00000 - 00000000c0000000 (reserved)
BIOS-e820: 00000000fed1c000 - 00000000fed20000 (reserved)
BIOS-e820: 00000000ff000000 - 0000000100000000 (reserved)
BIOS-e820: 0000000100000000 - 000000013f800000 (usable)
DMI 2.6 present.
ACPI: RSDP (v002 HPQOEM ) @ 0x00000000000f0420
ACPI: XSDT (v001 HPQOEM SLIC-CPC 0x01072009 AMI 0x00010013) @ 0x00000000baaf0070
ACPI: FADT (v004 HPQOEM SLIC-CPC 0x01072009 AMI 0x00010013) @ 0x00000000baaf7338
ACPI: MADT (v003 HPQOEM SLIC-CPC 0x01072009 AMI 0x00010013) @ 0x00000000baaf7430
ACPI: SSDT (v001 HPQOEM SLIC-CPC 0x00000001 MSFT 0x03000001) @ 0x00000000baaf74a8
ACPI: MCFG (v001 HPQOEM SLIC-CPC 0x01072009 MSFT 0x00000097) @ 0x00000000baaf75b0
ACPI: HPET (v001 HPQOEM SLIC-CPC 0x01072009 AMI. 0x00000004) @ 0x00000000baaf75f0
ACPI: DBGP (v001 HPQOEM SLIC-CPC 0x01072009 AMI 0x00010013) @ 0x00000000baaf7628
ACPI: SSDT (v001 HPQOEM SLIC-CPC 0x00000001 MSFT 0x03000001) @ 0x00000000baaf7660
ACPI: DSDT (v002 HPQOEM SLIC-CPC 0x00000006 INTL 0x20051117) @ 0x0000000000000000
No NUMA configuration found
Faking a node at 0000000000000000-000000013f800000
Bootmem setup node 0 0000000000000000-000000013f800000
Memory for crash kernel (0x0 to 0x0) notwithin permissible range
disabling kdump
On node 0 totalpages: 1005010
DMA zone: 2621 pages, LIFO batch:0
DMA32 zone: 745849 pages, LIFO batch:31
Normal zone: 256540 pages, LIFO batch:31
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 6:10 APIC version 21
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2 6:10 APIC version 21
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x04] enabled)
Processor #4 6:10 APIC version 21
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x06] enabled)
Processor #6 6:10 APIC version 21
ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Setting APIC routing to physical flat
ACPI: HPET id: 0x8086a701 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Nosave address range: 000000000009d000 - 000000000009e000
Nosave address range: 000000000009e000 - 00000000000a0000
Nosave address range: 00000000000a0000 - 00000000000e0000
Nosave address range: 00000000000e0000 - 0000000000100000
Nosave address range: 0000000020000000 - 0000000020200000
Nosave address range: 0000000040000000 - 0000000040200000
Nosave address range: 00000000baaa7000 - 00000000baaf0000
Nosave address range: 00000000baaf0000 - 00000000baaf8000
Nosave address range: 00000000baaf8000 - 00000000bab0e000
Nosave address range: 00000000bab10000 - 00000000bab1e000
Nosave address range: 00000000bab1e000 - 00000000bab6f000
Nosave address range: 00000000bab6f000 - 00000000babb2000
Nosave address range: 00000000bae2e000 - 00000000bae34000
Nosave address range: 00000000bae44000 - 00000000baff4000
Nosave address range: 00000000bb000000 - 00000000bbe00000
Nosave address range: 00000000bbe00000 - 00000000c0000000
Nosave address range: 00000000c0000000 - 00000000fed1c000
Nosave address range: 00000000fed1c000 - 00000000fed20000
Nosave address range: 00000000fed20000 - 00000000ff000000
Nosave address range: 00000000ff000000 - 0000000100000000
Allocating PCI resources starting at c4000000 (gap: c0000000:3ed1c000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
Built 1 zonelists. Total pages: 1005010
Kernel command line: ro root=LABEL=/ rhgb quiet
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Console: colour VGA+ 80x25
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Checking aperture...
ACPI: DMAR not present
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing software IO TLB between 0x163c000 - 0x563c000
Memory: 3944644k/5234688k available (2577k kernel code, 152180k reserved, 1305k data, 212k init)
Calibrating delay loop (skipped), value calculated using timer frequency.. 6186.22 BogoMIPS (lpj=3093113)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 6144K
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM1)
SMP alternatives: switching to UP code
ACPI: Core revision 20060707
Using local APIC timer interrupts.
Detected 6.236 MHz APIC timer.
SMP alternatives: switching to SMP code
Booting processor 1/4 APIC 0x2
Initializing CPU#1
Calibrating delay using timer specific routine.. 6185.89 BogoMIPS (lpj=3092945)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 6144K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU1: Thermal monitoring enabled (TM1)
Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz stepping 07
SMP alternatives: switching to SMP code
Booting processor 2/4 APIC 0x4
Initializing CPU#2
Calibrating delay using timer specific routine.. 6185.77 BogoMIPS (lpj=3092887)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 6144K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
CPU2: Thermal monitoring enabled (TM1)
Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz stepping 07
SMP alternatives: switching to SMP code
Booting processor 3/4 APIC 0x6
Initializing CPU#3
Calibrating delay using timer specific routine.. 6185.91 BogoMIPS (lpj=3092956)
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 6144K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
CPU3: Thermal monitoring enabled (TM1)
Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz stepping 07
Brought up 4 CPUs
testing NMI watchdog ... OK.
time.c: Using 14.318180 MHz WALL HPET GTOD HPET/TSC timer.
time.c: Detected 3093.113 MHz processor.
sizeof(vma)=176 bytes
sizeof(page)=56 bytes
sizeof(inode)=560 bytes
sizeof(dentry)=216 bytes
sizeof(ext3inode)=760 bytes
sizeof(buffer_head)=96 bytes
sizeof(skbuff)=248 bytes
migration_cost=23
checking if image is initramfs... it is
Freeing initrd memory: 2642k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: BIOS Bug: MCFG area at e0000000 is not E820-reserved
PCI: Not using MMCONFIG.
PCI: Using configuration type 1
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: No dock devices found.
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Transparent bridge - 0000:05:00.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX2._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX3._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX4._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEX5._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs *3 4 5 6 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14 15) *0
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *0
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *10 11 12 14 15)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 14 devices
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
hpet0: at MMIO 0xfed00000 (virtual 0xffffffffff5fe000), IRQs 2, 8, 0, 0, 0, 0, 0, 0
hpet0: 8 64-bit timers, 14318180 Hz
ACPI: DMAR not present
PCI-GART: No AMD northbridge found.
pnp: 00:02: ioport range 0xa00-0xa1f has been reserved
pnp: 00:02: ioport range 0xa30-0xa3f has been reserved
pnp: 00:02: ioport range 0xa20-0xa2f has been reserved
pnp: 00:0b: ioport range 0x400-0x453 could not be reserved
pnp: 00:0b: ioport range 0x458-0x47f has been reserved
pnp: 00:0b: ioport range 0x1180-0x119f has been reserved
pnp: 00:0b: ioport range 0x500-0x57f has been reserved
pnp: 00:0c: ioport range 0x454-0x457 has been reserved
PCI: Bridge: 0000:00:01.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.1
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.2
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:05:00.0
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.3
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.4
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.5
IO window: e000-efff
MEM window: fe400000-fe4fffff
PREFETCH window 0x00000000d0000000-0x00000000d00fffff
GSI 16 sharing vector 0xA9 and IRQ 16
ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:01.0 to 64
GSI 17 sharing vector 0xB1 and IRQ 17
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:00:1c.0 to 64
ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.1 to 64
GSI 18 sharing vector 0xB9 and IRQ 18
ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 185
PCI: Setting latency timer of device 0000:00:1c.2 to 64
GSI 19 sharing vector 0xC1 and IRQ 19
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 193
PCI: Setting latency timer of device 0000:00:1c.3 to 64
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 19 (level, low) -> IRQ 193
PCI: Setting latency timer of device 0000:05:00.0 to 64
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:00:1c.4 to 64
ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.5 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1422021790.576:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
SELinux: Registering netfilter hooks
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 78CCFEAA9428026A
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Boot video device is 0000:00:02.0
PCI: Setting latency timer of device 0000:00:01.0 to 64
PCI: Setting latency timer of device 0000:00:1c.0 to 64
PCI: Setting latency timer of device 0000:00:1c.1 to 64
PCI: Setting latency timer of device 0000:00:1c.2 to 64
PCI: Setting latency timer of device 0000:00:1c.3 to 64
PCI: Setting latency timer of device 0000:00:1c.4 to 64
PCI: Setting latency timer of device 0000:00:1c.5 to 64
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI (exconfig-0456): Dynamic SSDT Load - OemId [ AMI] OemTableId [ IST] [20060707]
ACPI (exconfig-0456): Dynamic SSDT Load - OemId [ AMI] OemTableId [ CST] [20060707]
ACPI: CPU0 (power states: C1[C1] C2[C3] C3[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: CPU1 (power states: C1[C1] C2[C3] C3[C3])
ACPI: Processor [CPU1] (supports 1 throttling states)
ACPI: CPU2 (power states: C1[C1] C2[C3] C3[C3])
ACPI: Processor [CPU2] (supports 1 throttling states)
ACPI: CPU3 (power states: C1[C1] C2[C3] C3[C3])
ACPI: Processor [CPU3] (supports 1 throttling states)
Real Time Clock Driver v1.12ac
hpet_resources: 0xfed00000 is busy
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Probing IDE interface ide1...
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI: (supports S0 S1 S3 S4 S5)
Initalizing network drop monitor service
Freeing unused kernel memory: 212k freed
Write protecting the kernel read-only data: 504k
ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1a.0 to 64
ehci_hcd 0000:00:1a.0: EHCI Host Controller
ehci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1a.0: debug port 2
PCI: cache line size of 32 is not supported by device 0000:00:1a.0
ehci_hcd 0000:00:1a.0: irq 169, io mem 0xfe507000
ehci_hcd 0000:00:1a.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
GSI 20 sharing vector 0x4A and IRQ 20
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 74
PCI: Setting latency timer of device 0000:00:1d.0 to 64
ehci_hcd 0000:00:1d.0: EHCI Host Controller
ehci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
ehci_hcd 0000:00:1d.0: debug port 2
PCI: cache line size of 32 is not supported by device 0000:00:1d.0
ehci_hcd 0000:00:1d.0: irq 74, io mem 0xfe506000
ehci_hcd 0000:00:1d.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
SCSI subsystem initialized
libata version 3.00 loaded.
ahci 0000:00:1f.2: version 3.0
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 193
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 2-1: new high speed USB device using ehci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 6 ports detected
usb 2-1.2: new low speed USB device using ehci_hcd and address 3
usb 2-1.2: configuration #1 chosen from 1 choice
input: Logitech USB Optical Mouse as /class/input/input0
input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.0-1.2
ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 4 ports 3 Gbps 0x33 impl SATA mode
ahci 0000:00:1f.2: flags: 64bit ncq sntf pm led clo pio slum part ems
PCI: Setting latency timer of device 0000:00:1f.2 to 64
scsi0 : ahci
scsi1 : ahci
scsi2 : ahci
scsi3 : ahci
scsi4 : ahci
scsi5 : ahci
ata1: SATA max UDMA/133 abar m2048@0xfe505000 port 0xfe505100 irq 82
ata2: SATA max UDMA/133 abar m2048@0xfe505000 port 0xfe505180 irq 82
ata3: DUMMY
ata4: DUMMY
ata5: SATA max UDMA/133 abar m2048@0xfe505000 port 0xfe505300 irq 82
ata6: SATA max UDMA/133 abar m2048@0xfe505000 port 0xfe505380 irq 82
usb 2-1.3: new low speed USB device using ehci_hcd and address 4
usb 2-1.3: configuration #1 chosen from 1 choice
input: CHICONY HP Basic USB Keyboard as /class/input/input1
input: USB HID v1.11 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:1d.0-1.3
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: Hitachi HDS721050CLA660, JP2OA41A, max UDMA/133
ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
ata2: SATA link down (SStatus 0 SControl 300)
ata5: SATA link down (SStatus 0 SControl 300)
ata6: SATA link down (SStatus 0 SControl 300)
Vendor: ATA Model: Hitachi HDS72105 Rev: JP2O
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
sd 0:0:0:0: Attached scsi disk sda
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: [email protected]
device-mapper: dm-raid45: initialized v0.2594l
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
kjournald starting. Commit interval 5 seconds
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: Disabled at runtime.
SELinux: Unregistering netfilter hooks
type=1404 audit(1422021823.037:2): selinux=0 auid=4294967295 ses=4294967295
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
input: PC Speaker as /class/input/input2
r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
ACPI: PCI Interrupt 0000:08:00.0[A] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:08:00.0 to 64
r8169 0000:08:00.0: unknown MAC, using family default
eth0: RTL8168b/8111b at 0xffffc20000034000, ac:16:2d:0b:bd:4f, XID 0c200000 IRQ 90
sd 0:0:0:0: Attached scsi generic sg0 type 0
usb 2-1.3: USB disconnect, address 4
floppy0: no floppy controllers found
lp: driver loaded but no devices found
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
mtrr: type mismatch for c3fe0000,10000 old: write-back new: write-combining
mtrr: type mismatch for c3fc0000,20000 old: write-back new: write-combining
mtrr: type mismatch for c3f80000,40000 old: write-back new: write-combining
mtrr: type mismatch for c3f00000,80000 old: write-back new: write-combining
mtrr: type mismatch for c3e00000,100000 old: write-back new: write-combining
mtrr: type mismatch for c3c00000,200000 old: write-back new: write-combining
mtrr: type mismatch for c3800000,400000 old: write-back new: write-combining
mtrr: type mismatch for c3000000,800000 old: write-back new: write-combining
mtrr: type mismatch for c2000000,1000000 old: write-back new: write-combining
mtrr: type mismatch for c0000000,2000000 old: write-back new: write-combining
usb 2-1.3: new high speed USB device using ehci_hcd and address 5
usb 2-1.3: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
ACPI: Mapper loaded
dell-wmi: No known WMI GUID found
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
device-mapper: multipath: version 1.0.5 loaded
loop: loaded (max 8 devices)
EXT3 FS on sda7, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 8385888k swap on /dev/sda6. Priority:-1 extents:1 across:8385888k
IA-32 Microcode Update Driver: v1.14a <[email protected]>
usb 2-1.3: USB disconnect, address 5
Loading iSCSI transport class v2.0-871.
802.1Q VLAN Support v1.8 Ben Greear <[email protected]>
All bugs added by David S. Miller <[email protected]>
cxgb3i: tag itt 0x1fff, 13 bits, age 0xf, 4 bits.
iscsi: registered transport (cxgb3i)
Broadcom NetXtreme II CNIC Driver cnic v2.1.0 (Oct 10, 2009)
Broadcom NetXtreme II iSCSI Driver bnx2i v2.1.0 (Dec 06, 2009)
iscsi: registered transport (bnx2i)
iscsi: registered transport (tcp)
iscsi: registered transport (iser)
iscsi: registered transport (be2iscsi)
r8169: eth0: link up
r8169: eth0: link up
Bluetooth: Core ver 2.10
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
eth0: no IPv6 routers present
mtrr: type mismatch for c3fe0000,10000 old: write-back new: write-combining
mtrr: type mismatch for c3fc0000,20000 old: write-back new: write-combining
mtrr: type mismatch for c3f80000,40000 old: write-back new: write-combining
mtrr: type mismatch for c3f00000,80000 old: write-back new: write-combining
mtrr: type mismatch for c3e00000,100000 old: write-back new: write-combining
mtrr: type mismatch for c3c00000,200000 old: write-back new: write-combining
mtrr: type mismatch for c3800000,400000 old: write-back new: write-combining
mtrr: type mismatch for c3000000,800000 old: write-back new: write-combining
mtrr: type mismatch for c2000000,1000000 old: write-back new: write-combining
mtrr: type mismatch for c0000000,2000000 old: write-back new: write-combining
usb 2-1.3: new low speed USB device using ehci_hcd and address 6
usb 2-1.3: configuration #1 chosen from 1 choice
input: CHICONY HP Basic USB Keyboard as /class/input/input3
input: USB HID v1.11 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:1d.0-1.3
usb 2-1.2: USB disconnect, address 3
usb 2-1.2: new low speed USB device using ehci_hcd and address 7
usb 2-1.2: configuration #1 chosen from 1 choice
input: USB Optical Mouse as /class/input/input4
input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:00:1d.0-1.2
usb 2-1.3: USB disconnect, address 6
usb 2-1.3: new low speed USB device using ehci_hcd and address 8
usb 2-1.3: configuration #1 chosen from 1 choice
input: CHICONY HP Basic USB Keyboard as /class/input/input5
input: USB HID v1.11 Keyboard [CHICONY HP Basic USB Keyboard] on usb-0000:00:1d.0-1.3
usb 2-1.2: USB disconnect, address 7
usb 2-1.2: new low speed USB device using ehci_hcd and address 9
usb 2-1.2: configuration #1 chosen from 1 choice
input: Logitech USB Optical Mouse as /class/input/input6
input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.0-1.2
usb 2-1.2: USB disconnect, address 9
usb 2-1.2: new low speed USB device using ehci_hcd and address 10
usb 2-1.2: configuration #1 chosen from 1 choice
input: Logitech USB Optical Mouse as /class/input/input7
input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.0-1.2
usb 2-1.2: USB disconnect, address 10
usb 2-1.2: new low speed USB device using ehci_hcd and address 11
usb 2-1.2: configuration #1 chosen from 1 choice
input: Logitech USB Optical Mouse as /class/input/input8
input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.0-1.2
$ns at 5.0 "finish"
#Print CBR packet size and interval
puts "CBR packet size = [$cbr set packet_size_]"
puts "CBR interval = [$cbr set interval_]"
#Run the simulation
$ns run
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
#Create a simulator object #Create a simulator object
set ns [new Simulator] set ns [new Simulator]
#Define different colors for data flows (for NAM) #Define different colors for data flows (for NAM)
$ns color 1 Blue $ns color 1 Blue
$ns color 2 Red $ns color 2 Red
#Open the NAM trace file #Open the NAM trace file
set nf [open out.nam w] set nf [open out.nam w]
$ns namtrace-all $nf $ns namtrace-all $nf
#Define a 'finish' procedure #Define a 'finish' procedure
proc finish {} { proc finish {} {
global ns nf global ns nf
$ns flush-trace $ns flush-trace
#Close the NAM trace file #Close the NAM trace file
close $nf close $nf
#Execute NAM on the trace file #Execute NAM on the trace file
exec nam out.nam & exec nam out.nam &
exit 0 exit 0
} }
#Create four nodes #Create four nodes
set n1 [$ns node] set n1 [$ns node]
set n2 [$ns node] set n2 [$ns node]
set n3 [$ns node] set n3 [$ns node]
set n4 [$ns node] set n4 [$ns node]
set n5 [$ns node] set n5 [$ns node]
#Create links between the nodes #Create links between the nodes
$ns duplex-link $n1 $n2 2Mb 10ms DropTail $ns duplex-link $n1 $n2 2Mb 10ms DropTail
$ns duplex-link $n4 $n3 2Mb 10ms DropTail $ns duplex-link $n4 $n3 2Mb 10ms DropTail
$ns duplex-link $n3 $n5 1.7Mb 20ms DropTail $ns duplex-link $n3 $n5 1.7Mb 20ms DropTail
$ns duplex-link $n1 $n3 1.7Mb 20ms DropTail $ns duplex-link $n1 $n3 1.7Mb 20ms DropTail
#Set Queue Size of link (n2-n3) to 10 #Set Queue Size of link (n2-n3) to 10
$ns queue-limit $n1 $n3 10 $ns queue-limit $n1 $n3 10
$ns queue-limit $n3 $n5 10 $ns queue-limit $n3 $n5 10
#Give node position (for NAM) #Give node position (for NAM)
$ns duplex-link-op $n1 $n2 orient left-down $ns duplex-link-op $n1 $n2 orient left-down
$ns duplex-link-op $n1 $n3 orient right-down $ns duplex-link-op $n1 $n3 orient right-down
$ns duplex-link-op $n3 $n4 orient left-down $ns duplex-link-op $n3 $n4 orient left-down
$ns duplex-link-op $n3 $n5 orient right-down $ns duplex-link-op $n3 $n5 orient right-down
#Monitor the queue for link (n2-n3). (for NAM) #Monitor the queue for link (n2-n3). (for NAM)
#$ns duplex-link-op $n1 $n3 queuePos 0.5 #$ns duplex-link-op $n1 $n3 queuePos 0.5
$ns duplex-link-op $n3 $n5 queuePos 0.5 $ns duplex-link-op $n3 $n5 queuePos 0.5
#Setup a TCP connection #Setup a TCP connection
set tcp [new Agent/TCP] set tcp [new Agent/TCP]
$tcp set class_ 2 $tcp set class_ 2
$ns attach-agent $n2 $tcp $ns attach-agent $n2 $tcp
set sink [new Agent/TCPSink] set sink [new Agent/TCPSink]
$ns attach-agent $n5 $sink $ns attach-agent $n5 $sink
$ns connect $tcp $sink $ns connect $tcp $sink
$tcp set fid_ 1 $tcp set fid_ 1
#Setup a FTP over TCP connection #Setup a FTP over TCP connection
set ftp [new Application/FTP] set ftp [new Application/FTP]
$ftp attach-agent $tcp $ftp attach-agent $tcp
$ftp set type_ FTP $ftp set type_ FTP
#Setup a UDP connection #Setup a UDP connection
set udp [new Agent/UDP] set udp [new Agent/UDP]
$ns attach-agent $n4 $udp $ns attach-agent $n4 $udp
set null [new Agent/Null] set null [new Agent/Null]
$ns attach-agent $n5 $null $ns attach-agent $n5 $null
$ns connect $udp $null $ns connect $udp $null
$udp set fid_ 2 $udp set fid_ 2
#Setup a CBR over UDP connection #Setup a CBR over UDP connection
set cbr [new Application/Traffic/CBR] set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp $cbr attach-agent $udp
$cbr set type_ CBR $cbr set type_ CBR
$cbr set packet_size_ 1000 $cbr set packet_size_ 1000
$cbr set rate_ 1mb $cbr set rate_ 1mb
$cbr set random_ false $cbr set random_ false
#Schedule events for the CBR and FTP agents #Schedule events for the CBR and FTP agents
$ns at 0.1 "$cbr start" $ns at 0.1 "$cbr start"
$ns at 1.0 "$ftp start" $ns at 1.0 "$ftp start"
$ns at 4.0 "$ftp stop" $ns at 4.0 "$ftp stop"
$ns at 4.5 "$cbr stop" $ns at 4.5 "$cbr stop"
#Detach tcp and sink agents (not really necessary) #Detach tcp and sink agents (not really necessary)
$ns at 4.5 "$ns detach-agent $n2 $tcp ; $ns detach-agent $n5 $ns at 4.5 "$ns detach-agent $n2 $tcp ; $ns detach-agent $n5
#Call the finish procedure after 5 seconds of simulation time #Call the finish procedure after 5 seconds of simulation time
$ns at 5.0 "finish" $ns at 5.0 "finish"
#Print CBR packet size and interval #Print CBR packet size and interval
puts "CBR packet size = [$cbr set packet_size_]" puts "CBR packet size = [$cbr set packet_size_]"
puts "CBR interval = [$cbr set interval_]" puts "CBR interval = [$cbr set interval_]"
#Run the simulation #Run the simulation
$ns run $ns run
total used free shared buffers cached
Mem: 3947500 1078744 2868756 0 72960 564220
-/+ buffers/cache: 441564 3505936
Swap: 8385888 0 8385888
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
system boot 2015-01-23 19:33
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 migration/0
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 watchdog/0
5 ? 00:00:00 migration/1
6 ? 00:00:00 ksoftirqd/1
7 ? 00:00:00 watchdog/1
8 ? 00:00:00 migration/2
9 ? 00:00:00 ksoftirqd/2
10 ? 00:00:00 watchdog/2
11 ? 00:00:00 migration/3
12 ? 00:00:00 ksoftirqd/3
13 ? 00:00:00 watchdog/3
14 ? 00:00:00 events/0
15 ? 00:00:00 events/1
16 ? 00:00:00 events/2
17 ? 00:00:00 events/3
18 ? 00:00:00 khelper
59 ? 00:00:00 kthread
66 ? 00:00:00 kblockd/0
67 ? 00:00:00 kblockd/1
68 ? 00:00:00 kblockd/2
69 ? 00:00:00 kblockd/3
70 ? 00:00:00 kacpid
201 ? 00:00:00 cqueue/0
202 ? 00:00:00 cqueue/1
203 ? 00:00:00 cqueue/2
204 ? 00:00:00 cqueue/3
207 ? 00:00:00 khubd
209 ? 00:00:00 kseriod
301 ? 00:00:00 khungtaskd
302 ? 00:00:00 pdflush
303 ? 00:00:00 pdflush
304 ? 00:00:00 kswapd0
305 ? 00:00:00 aio/0
306 ? 00:00:00 aio/1
307 ? 00:00:00 aio/2
308 ? 00:00:00 aio/3
453 ? 00:00:00 kpsmoused
501 ? 00:00:00 ata/0
502 ? 00:00:00 ata/1
503 ? 00:00:00 ata/2
504 ? 00:00:00 ata/3
505 ? 00:00:00 ata_aux
511 ? 00:00:00 scsi_eh_0
512 ? 00:00:00 scsi_eh_1
513 ? 00:00:00 scsi_eh_2
514 ? 00:00:00 scsi_eh_3
515 ? 00:00:00 scsi_eh_4
516 ? 00:00:00 scsi_eh_5
532 ? 00:00:00 kstriped
553 ? 00:00:00 kjournald
579 ? 00:00:00 kauditd
616 ? 00:00:00 udevd
1808 ? 00:00:00 kmpathd/0
1809 ? 00:00:00 kmpathd/1
1810 ? 00:00:00 kmpathd/2
1811 ? 00:00:00 kmpathd/3
1812 ? 00:00:00 kmpath_handlerd
1883 ? 00:00:00 kjournald
2076 ? 00:00:00 iscsi_eh
2112 ? 00:00:00 iw_cxgb3
2154 ? 00:00:00 ib_addr
2165 ? 00:00:00 ib_mcast
2166 ? 00:00:00 ib_inform
2167 ? 00:00:00 local_sa
2173 ? 00:00:00 iw_cm_wq
2179 ? 00:00:00 ib_cm/0
2180 ? 00:00:00 ib_cm/1
2181 ? 00:00:00 ib_cm/2
2182 ? 00:00:00 ib_cm/3
2188 ? 00:00:00 rdma_cm
2210 ? 00:00:00 brcm_iscsiuio
2216 ? 00:00:00 iscsid
2217 ? 00:00:00 iscsid
2463 ? 00:00:00 dhclient
2519 ? 00:00:00 auditd
2521 ? 00:00:00 audispd
2543 ? 00:00:00 syslogd
2546 ? 00:00:00 klogd
2595 ? 00:00:00 kondemand/0
2596 ? 00:00:00 kondemand/1
2597 ? 00:00:00 kondemand/2
2599 ? 00:00:00 kondemand/3
2613 ? 00:00:00 irqbalance
2659 ? 00:00:00 rpciod/0
2661 ? 00:00:00 rpciod/1
2662 ? 00:00:00 rpciod/2
2663 ? 00:00:00 rpciod/3
2672 ? 00:00:00 rpc.statd
2696 ? 00:00:00 rpc.idmapd
2726 ? 00:00:00 hcid
2732 ? 00:00:00 sdpd
2761 ? 00:00:00 krfcommd
2799 ? 00:00:00 pcscd
2809 ? 00:00:00 acpid
2819 ? 00:00:00 hald-runner
2860 ? 00:00:00 hidd
2887 ? 00:00:00 automount
2904 ? 00:00:00 hpiod
2909 ? 00:00:00 python
2922 ? 00:00:00 sshd
2931 ? 00:00:00 cupsd
2945 ? 00:00:00 xinetd
3000 ? 00:00:00 sendmail
3018 ? 00:00:00 gpm
3027 ? 00:00:00 crond
3073 ? 00:00:00 atd
3115 ? 00:00:00 cimserver
3182 ? 00:00:00 smartd
3187 tty1 00:00:00 mingetty
3188 tty2 00:00:00 mingetty
3191 tty3 00:00:00 mingetty
3194 tty4 00:00:00 mingetty
3197 tty5 00:00:00 mingetty
3198 tty6 00:00:00 mingetty
3201 ? 00:00:00 gdm-binary
3295 ? 00:00:00 gdm-binary
3297 ? 00:00:00 gdm-rh-security
3300 tty7 00:02:09 Xorg
3312 ? 00:00:00 yum-updatesd
3317 ? 00:00:00 gam_server
3408 ? 00:00:00 gnome-session
3447 ? 00:00:00 ssh-agent
3480 ? 00:00:00 dbus-launch
3481 ? 00:00:00 dbus-daemon
3487 ? 00:00:00 gconfd-2
3490 ? 00:00:00 gnome-keyring-d
3492 ? 00:00:00 gnome-settings-
3512 ? 00:00:02 metacity
3516 ? 00:00:00 gnome-panel
3518 ? 00:00:02 nautilus
3522 ? 00:00:00 bonobo-activati
3524 ? 00:00:00 eggcups
3529 ? 00:00:00 gnome-volume-ma
3530 ? 00:00:00 gnome-vfs-daemo
3539 ? 00:00:00 bt-applet
3544 ? 00:00:00 nm-applet
3554 ? 00:00:00 puplet
3556 ? 00:00:00 pam-panel-icon
3559 ? 00:00:00 pam_timestamp_c
3560 ? 00:00:00 escd
3562 ? 00:00:00 gnome-power-man
3569 ? 00:00:00 wnck-applet
3571 ? 00:00:00 trashapplet
3590 ? 00:00:00 nm-system-setti
3596 ? 00:00:00 mapping-daemon
3607 ? 00:00:00 mixer_applet2
3609 ? 00:00:00 notification-ar
3611 ? 00:00:00 clock-applet
3617 ? 00:00:00 gnome-screensav
4081 ? 00:00:00 run-mozilla.sh
4098 ? 00:01:05 firefox
4657 ? 00:00:01 gnome-terminal
4660 ? 00:00:00 gnome-pty-helpe
4661 pts/1 00:00:00 bash
27455 pts/1 00:00:00 man
27477 pts/1 00:00:00 sh
27479 pts/1 00:00:00 less
27798 pts/1 00:00:00 screen
27799 ? 00:00:00 screen
27800 pts/2 00:00:00 bash
27853 pts/3 00:00:00 bash
27917 pts/4 00:00:00 bash
28348 pts/4 00:00:00 ps
eth0 Link encap:Ethernet HWaddr AC:16:2D:0B:BD:4F
inet addr:10.20.4.97 Bcast:10.20.7.255 Mask:255.255.248.0
inet6 addr: fe80::ae16:2dff:fe0b:bd4f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:813475 errors:0 dropped:0 overruns:0 frame:0
TX packets:5380 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:153040062 (145.9 MiB) TX bytes:763518 (745.6 KiB)
Interrupt:90 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1298 errors:0 dropped:0 overruns:0 frame:0
TX packets:1298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4652099 (4.4 MiB) TX bytes:4652099 (4.4 MiB)
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the NAM trace file
close $nf
#Execute NAM on the trace file
exec nam out.nam &
exit 0
}
#Create four nodes
set n1 [$ns node]
set n2 [$ns node]
set n3 [$ns node]
set n4 [$ns node]
set n5 [$ns node]
#Create links between the nodes
$ns duplex-link $n1 $n2 2Mb 10ms DropTail
$ns duplex-link $n4 $n3 2Mb 10ms DropTail
$ns duplex-link $n3 $n5 1.7Mb 20ms DropTail
$ns duplex-link $n1 $n3 1.7Mb 20ms DropTail
#Set Queue Size of link (n2-n3) to 10
$ns queue-limit $n1 $n3 10
$ns queue-limit $n3 $n5 10
#Give node position (for NAM)
$ns duplex-link-op $n1 $n2 orient left-down
$ns duplex-link-op $n1 $n3 orient right-down
$ns duplex-link-op $n3 $n4 orient left-down
$ns duplex-link-op $n3 $n5 orient right-down
#Monitor the queue for link (n2-n3). (for NAM)
#$ns duplex-link-op $n1 $n3 queuePos 0.5
$ns duplex-link-op $n3 $n5 queuePos 0.5
#Setup a TCP connection
set tcp [new Agent/TCP]
$tcp set class_ 2
$ns attach-agent $n2 $tcp
set sink [new Agent/TCPSink]
$ns attach-agent $n5 $sink
$ns connect $tcp $sink
$tcp set fid_ 1
#Setup a FTP over TCP connection
set ftp [new Application/FTP]
$ftp attach-agent $tcp
$ftp set type_ FTP
#Setup a UDP connection
set udp [new Agent/UDP]
$ns attach-agent $n4 $udp
set null [new Agent/Null]
$ns attach-agent $n5 $null
$ns connect $udp $null
$udp set fid_ 2
#Setup a CBR over UDP connection
set cbr [new Application/Traffic/CBR]
$cbr attach-agent $udp
$cbr set type_ CBR
$cbr set packet_size_ 1000
$cbr set rate_ 1mb
$cbr set random_ false
#Schedule events for the CBR and FTP agents
$ns at 0.1 "$cbr start"
$ns at 1.0 "$ftp start"
$ns at 4.0 "$ftp stop"
$ns at 4.5 "$cbr stop"
#Detach tcp and sink agents (not really necessary)
$ns at 4.5 "$ns detach-agent $n2 $tcp ; $ns detach-agent $n5 $sink"
#Call the finish procedure after 5 seconds of simulation time
$ns at 5.0 "finish"
#Print CBR packet size and interval
puts "CBR packet size = [$cbr set packet_size_]"
puts "CBR interval = [$cbr set interval_]"
#Run the simulation
$ns run
}
#Call the finish procedure after 5 seconds of simulation time
$cbr attach-agent $udp
$cbr set packet_size_ 1000
$cbr set random_ false
$cbr set rate_ 1mb
$cbr set type_ CBR
close $nf
#Close the NAM trace file
#Create a simulator object
#Create four nodes
#Create links between the nodes
#Define a 'finish' procedure
#Define different colors for data flows (for NAM)
#Detach tcp and sink agents (not really necessary)
exec nam out.nam &
#Execute NAM on the trace file
exit 0
$ftp attach-agent $tcp
$ftp set type_ FTP
#Give node position (for NAM)
global ns nf
#Monitor the queue for link (n2-n3). (for NAM)
$ns at 0.1 "$cbr start"
$ns at 1.0 "$ftp start"
$ns at 4.0 "$ftp stop"
$ns at 4.5 "$cbr stop"
$ns at 4.5 "$ns detach-agent $n2 $tcp ; $ns detach-agent $n5 $sink"
$ns at 5.0 "finish"
$ns attach-agent $n2 $tcp
$ns attach-agent $n4 $udp
$ns attach-agent $n5 $null
$ns attach-agent $n5 $sink
$ns color 1 Blue