네트워크 실험 5주차 결과 레포트
- 최초 등록일
- 2014.01.19
- 최종 저작일
- 2013.10
- 7페이지/ 한컴오피스
- 가격 2,000원
소개글
네트워크 실험 레포트입니다. (A학점)
목차
1. TCP RENO 코드 및 주석
2. TCP TAHOE 코드 및 주석
3. 실험(4)의 코드와 주석
4. 실험 결과 분석
본문내용
1. TCP RENO 코드 및 주석
set ns [new Simulator]
$ns rtproto DV
# nam 만들기
set nf [open tcp_reno_out_drop7.nam w]
$ns namtrace-all $nf
set f [open tcp_reno_out_drop7.tr w]
$ns trace-all $f
# Node network 설정
set S1 [$ns node]
set R1 [$ns node]
$ns duplex-link $S1 $R1 1Mb 10ms DropTail
# TCP_Reno type으로 전송 설정
set tcpreno [new Agent/TCP/Reno]
$ns attach-agent $S1 $tcpreno
set tcpsink [new Agent/TCPSink]
$ns attach-agent $R1 $tcpsink
$ns connect $tcpreno $tcpsink
#TCP Reno의 CWND tracing 하기
set cwndf [open tcp_Reno_cwnd_drop7.tr w]
$tcpreno attach $cwndf
$tcpreno trace cwnd_
참고 자료
없음