Tai lieu ve OBS va mo phong WDM dua tren ns-2 thi co the search tren mang. Hien nay cau dang hoc truong nao, toi se chi cho cau cach mo phong?
Announcement
Collapse
No announcement yet.
Hướng dẫn cài đặt NS-2 để mô phỏng MPLS-TE
Collapse
X
-
ban oi.giup minh voi.minh dang cai them goi patch de mo phong giao thuc rsvp.minh cai goi ns-2.32.khi cai xong thi minh khi danh lenh doc file .tcl thi no bao loi ns : command not found.khong biet vi sao.luc chua cai file patch thi minh chay cac chuong trinh mo phong ldp van chay tot.khi cai them goi patch thi no lai bao loi.nho cac dai ca chi dum em.em cam on nhieu
Comment
-
Minh hien dang hoc o truong DHKHTN Tp.HCM
Neu co ban giup do thi tot qua. Co cach nao lien lac duoc voi ban o?
Tai lieu minh cung tim duoc mot so nhung ma cung khong ro rang cho lam, neu ban co tai lieu thi share cho minh. Thanks. mail cua minh tieuhung1984@yahoo.comLast edited by tieuhung; 23-09-2008, 11:42 PM.
Comment
-
Originally posted by hdphuong86 View PostHi all!Cho minh hoi muon mo phong giao thuc dinh tuyen ospf trong mpls bang ns-2.Thì minh can phai lam nhu the nao vay.mong cac bac giup do.Thanks
Xem manual ở đây: http://netgroup.iet.unipi.it/software/ospf-te_ns/
Test file: http://netgroup.iet.unipi.it/softwar...pf_te_test.tclLast edited by huonglan32; 25-09-2008, 07:09 PM.
Comment
-
Originally posted by thanh22 View Postsao khong ai post len cho minh het vay.Minh dang can rat gap.Code mo phong CR-LDP va RSVP.Mong cac ban som hoi am cho minh.Cam on nhieu.
Comment
-
# Create a FAST Tcp connection
proc create_tcp_fast { idx src dst start stop } {
global tcps
global ftps
global ns
global sinks
global tcps_start
global tcps_stop
puts "New TCP connection";
# set source agent and application
set tcps($idx) [new Agent/TCP/Fast]
$tcps($idx) set class_ 2
$tcps($idx) set window_ 100000
$tcps($idx) set alpha_ 200
$tcps($idx) set beta_ 200
$ns attach-agent $src $tcps($idx)
set ftps($idx) [new Application/FTP]
$ftps($idx) attach-agent $tcps($idx)
# set sink
set sinks($idx) [new Agent/TCPSink/Sack1]
$ns attach-agent $dst $sinks($idx)
$ns connect $tcps($idx) $sinks($idx)
set tcps_start($idx) [expr $start]
set tcps_stop($idx) [expr $stop]
$ns at $start "$ftps($idx) start"
$ns at $stop "$ftps($idx) stop"
}
# Record Procedure
proc record {} {
global tcps ntcps
global f0
global queueMoniF queueMoniB
global tcps_start tcps_stop
#get an instance of the simulator
set ns [Simulator instance]
#set the time afterwhich the procedure should be called again
set time 0.005
set now [$ns now]
set queueF [$queueMoniF set pkts_]
set queueB [$queueMoniB set pkts_]
set rate 0
for {set i 0} {$i < $ntcps} {incr i} {
if { ($now > $tcps_start($i)) && ($now < $tcps_stop($i)) } {
set window [expr [$tcps($i) set cwnd_]];
set rtt [expr [$tcps($i) set avgRTT_]];
set bRTT [expr [$tcps($i) set baseRTT_]];
set old_window [expr [$tcps($i) set avg_cwnd_last_RTT_]];
set total_pkt_num [expr [$tcps($i) set t_seqno_]]
if { $rtt > 0 } {
set rate [expr $window/$rtt]
}
if { $bRTT < 9999999 } {
puts $f0 "$i $now $queueF $queueB $rate $window $rtt $bRTT $old_window $total_pkt_num"
}
}
}
# Re-schedule the procedure
$ns at [expr $now+$time] "record"
}
# Define 'finish' procedure (include post-simulation processes)
proc finish {} {
global ns
global f0
global f_all
$ns flush-trace
close $f_all
close $f0
puts "Finished."
exit 0
}
# ------ SIMULATION SPECIFIC SCRIPT -----------
# The preamble
set ns [new Simulator]
$ns use-scheduler Heap
# Predefine tracing
set Name "fast-test1-record.dat";
set Q1 "fast-test1-queue1.dat";
set Q2 "fast-test1-queue2.dat";
set f0 [open $Name w]
set f1 [open $Q1 w]
set f2 [open $Q2 w]
set f_all [open nstrace.dat w]
#$ns trace-all $f_all
# Define the topology
set Cap 100
set Del 50
set r1 [$ns node]
set r2 [$ns node]
set r3 [$ns node]
$ns duplex-link $r1 $r2 [expr $Cap]Mbps [expr $Del]ms DropTail
set botqF [[$ns link $r1 $r2] queue]
set botqB [[$ns link $r2 $r1] queue]
$ns queue-limit $r1 $r2 2000000;
$ns queue-limit $r2 $r1 2000000;
# Create Sources and Start & Stop times
set ntcps 3;
set SimDuration 100;
create_tcp_fast 0 $r1 $r2 0 100
create_tcp_fast 1 $r1 $r2 20 80
create_tcp_fast 2 $r1 $r2 40 60
#$ns create-connection TCP $r1 TCPSink $r2 1
set starttime 0.0
set finishtime $SimDuration
# Monitor the queue between source switch and destination switch
set queueMoniF [$ns monitor-queue $r1 $r2 $f1 0.1]
set queueMoniB [$ns monitor-queue $r2 $r1 $f2 0.1]
# Run the Simulation
$ns at 0.0 "record"
$ns at $SimDuration "finish"
puts "Simulating $SimDuration Secs."
$ns run
Comment
-
Thank huonglan rat nhieu.ban co the cho minh biet ro hon y nghia cua cac tham so :
<Admission control> <Estimator> trong cau lenh:
$ns duplex-rsvp-link <Node1> <Node2> <Bandwidth> <Latency> <Res-Bandwidth> <RSVP-Bandwidth> <Queue-limit> <Admission control> <Estimator>
va giup minh phan biet <FID> va <TID> trong cau lenh:
<LSRmpls> create-erlsp-ospfte <Src> <Egress> <SID> <FID> <TID>
Cam on moi nguoi ra nhieu!
Comment
-
Hi moi nguoi.Minh co thu cai mo phong ospf te.nhung khi minh ve mo hinh topology mang theo cach cua ban huonglan.thi no bao loi nhu sau:
unable to dispatch method oriented while executing oriented right.
Nhu vay la sao ha ban.Lam sao khac phuc duoc no vay.
ah cho minh hoi them y nghia cua cau lenh sau la gi vay:er-dump;lib-dump;pft-dump.
Cam on moi nguoi nhieu.
Comment
-
Originally posted by hdphuong86 View PostThank huonglan rat nhieu.ban co the cho minh biet ro hon y nghia cua cac tham so :
<Admission control> <Estimator> trong cau lenh:
$ns duplex-rsvp-link <Node1> <Node2> <Bandwidth> <Latency> <Res-Bandwidth> <RSVP-Bandwidth> <Queue-limit> <Admission control> <Estimator>
va giup minh phan biet <FID> va <TID> trong cau lenh:
<LSRmpls> create-erlsp-ospfte <Src> <Egress> <SID> <FID> <TID>
Cam on moi nguoi ra nhieu!
<FID> : Flow ID - là số nhận dạng luồng data cần truyền (khi ta tạo src và sink đã có khai báo số này)
<TID> : tunnel ID - số nhận dạng của LSP cần thiết lập. Khi bind FID vào TID thì luồng data mang số FID sẽ đi trên LSP mang số TID.
Originally posted by lovelygirl View PostHi moi nguoi.Minh co thu cai mo phong ospf te.nhung khi minh ve mo hinh topology mang theo cach cua ban huonglan.thi no bao loi nhu sau:
unable to dispatch method oriented while executing oriented right.
Nhu vay la sao ha ban.Lam sao khac phuc duoc no vay.
ah cho minh hoi them y nghia cua cau lenh sau la gi vay:er-dump;lib-dump;pft-dump.
Cam on moi nguoi nhieu.
er-dump : xuất bảng er (explicit route) ra màn hình
lib-dump: xuất bảng lib (label infomation base)
pft-dump: xuất bảng pft
Comment
-
Chao bạn huonglan32!Không biết mình có thể liên lạc trực tiếp với bạn bằng cách nao?
Hiện tại mình đang nghiên cứu NS, tuy nhiên có một số lỗi, khi mình cài đặt xong và bật cygwin để đánh dòng lệnh test : ns /ns-allinone-2.32/ns-2.32/tcl/ex/mns_v2.0/test-constraint-routing.tcl, thì nhận thông báo bash:ns: command not found, có cách nào giải quyết vấn đề này mong bạn giúp cho, thanks, để tiện liên lạc bạn có thể gửi mail lại cho mình :nam_ptit@yahoo.com.
Mình cảm ơn nhé!
Comment
Comment