[ns] help, the tcl code about satellite

2006-10-02 Thread

help, can somebody help me to trace that where is wrong with my tcl code ?

global ns

set ns [new Simulator]

 

# Note:  Even though "Static" is normally reserved for static

#topologies, the satellite code will trigger a recalculation

#of the routing tables whenever the topology changes.

#Therefore, it is not so much "static" as "omniscient", in that

#topology changes are known instantly throughout the topology.

#See documentation for discussion of dynamic routing protocols.

$ns rtproto Static

 

###

# Global configuration parameters (全域通用參數)#

###

 

###

#handoff的模擬是針對leo衛星網路模擬的部份。   #

###

 

HandoffManager/Term set elevation_mask_ 8.2;
#檢查當前衛星已經落到terminal的最小允許覆蓋角

HandoffManager/Term set term_handoff_int_ 10; #

HandoffManager set handoff_randomization_ false;

 

global opt

set opt(chan) Channel/Sat  ;  #衛星通道

set opt(bw_down)  10Mb;   ;  # Downlink bandwidth (satellite
to ground)(下行頻寬,衛星至地面)

set opt(bw_up)   10Mb;   ;  # Uplink bandwidth(上行頻寬
)

set opt(phy)  Phy/Sat  ;  #物理層:衛星

set opt(mac)  Mac/Sat;  #MAC層:衛星

set opt(ifq)  Queue/DropTail; #佇列型態:DropTail

set opt(qlim)  512  ;  #Queue的最大值:256個
封包

set opt(ll)   LL/Sat   ;  #鏈結層:衛星

set opt(wiredRouting)   ON  ;   #三個事件:"+"進佇列;"-"離開佇列;
"r"接收到封包

 

 

 

# IMPORTANT This tracing enabling (trace-all) must precede link and node 

#   creation.  Then following all node, link, and error model

#   creation, invoke "$ns trace-all-satlinks $outfile" 

#重要:這個TRACE使(trace-all)必須在鏈接和結點建立之前。

#  然後跟隨的所有結點, 鏈接, 和錯誤模型的建立後,必須加入"$ns
trace-all-satlinks $outfile"

 

set outfile [open throughput_0.tr w]

$ns trace-all $outfile

 

###

# Set up satellite and terrestrial nodes  #

###

 

# Let's first create a single orbital plane of Iridium-like satellites

# 11 satellites in a plane

 

# Set up the node configuration

#建立geo衛星

 

$ns node-config -satNodeType geo \

 -llType $opt(ll) \

 -ifqType $opt(ifq) \

 -ifqLen $opt(qlim) \

 -macType $opt(mac) \

 -phyType $opt(phy) \

 -channelType $opt(chan) \

 -downlinkBW 10Mb \

 -wiredRouting $opt(wiredRouting)  

 

 

 

# Create nodes n0 through n1

set n0 [$ns node]; 

 

###

#n3<>n1<>n0<>n2<>n4   #

# 3<->1<->0<->2<->4   #

#  (satellite link)   #

###

 

# GEO satellite:  above North America-- lets put it at 100 deg. W

#設定geo衛星的位置

#n0設東經:100度

 

$n0 set-position 100

 

###

#Terminal #

###

# Terminals:  Let's put two within the US, two around the prime meridian

$ns node-config -satNodeType terminal 

set n1 [$ns node]

$n1 set-position 50 100;

set n2 [$ns node]

$n2 set-position -50 100;

###

# Set up links#

###

 

# Add any necessary ISLs or GSLs

# GSLs to the geo satellite:

#GEO-->Terminal

#$n0 set downlink_ 10Mb

#$n0 set uplink_ 10Mb

$n1 add-gsl geo $opt(ll) $opt(ifq) $opt(qlim) $opt(mac) $opt(bw_up) \

  $opt(phy) [$n0 set downlink_ ] [$n0 set uplink_]

$n2 add-gsl geo $opt(ll) $opt(ifq) $opt(qlim) $opt(mac) $opt(bw_up) \

  $opt(phy) [$n0 set downlink_] [$n0 set uplink_]

  

puts "$n0 set_downlink"

 

###

# wired link  #

###


$ns unset satNodeType_

set n3 [$ns node]  

set n4 [$ns node]

 

$ns duplex-link $n3 $n1 10Mb 1ms DropTail;

$ns duplex-link

[ns] FW: how do i transfrom "Bit Error Rate" to "Packet Error Rate"?

2006-10-02 Thread



-Original Message-
From: 林泰邑 [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 02, 2006 6:39 PM
To: 'Abdul Jabbar'
Subject: RE: [ns] how do i transfrom "Bit Error Rate" to "Packet Error
Rate"?

for example :
when I give ber=10^-3, packet size=1000bytes, what is PER?

-Original Message-
From: Abdul Jabbar [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 02, 2006 6:24 PM
To: 林泰邑
Cc: ns-users@isi.edu
Subject: Re: [ns] how do i transfrom "Bit Error Rate" to "Packet Error
Rate"?

As far as I know, the relationship between BER and PER , assuming that 
bit errors are independent and uniformly distributed is,

PER=1-(1-BER)^N where N is the number of bits.

However, the above formula is only approximate because in real life 
scenarios, the bit errors are not completely independent but may occur 
in bursts. Further, the error distribution is also not exactly uniform.

Hope it helps

Cheers,
Abdul.

林泰邑 wrote:
> 
>
> Hi all, how can I transform “Bit error Rate” to “packet error rate”?
>
>  
>
> Is there any formulas for this ?
>
>  
>
> Can any body help me?
>
>  
>
>   






[ns] how do i transfrom "Bit Error Rate" to "Packet Error Rate"?

2006-10-02 Thread

Hi all, how can I transform “Bit error Rate” to “packet error rate”?

 

Is there any formulas for this ?

 

Can any body help me?

 



Re: [ns] help ! Does Anyone have TCP-Peach Module

2006-09-25 Thread

This page can give the tcp-peach implementation in linux kernel,

but I need the model in ns2.

 

anyway thanks a lot.

 

 

  _  

From: D V Phani Kumar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 12:34 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [ns] help ! Does Anyone have TCP-Peach Module

 

Hi, 

  Do check this link. Hope u may get some info.

 

http://users.ece.gatech.edu/~jfang/satellite/implementation.html

 

phani



The information contained in this e-mail message and/or attachments to it
may

contain confidential or privileged information. If you are not the intended
recipient, any dissemination, use, review, distribution, printing or copying
of the information contained in this e-mail message and/or attachments to it
are strictly prohibited. If you have received this communication in error,
please notify us by reply e-mail immediately and permanently delete the
message and any attachments.




[ns] help ! Does Anyone have TCP-Peach Module?

2006-09-25 Thread



OK, do you have any information or data about TCP-Peach? 
or do you know this model in detail ?
and I also appreciate your help. 
thanks

forgive my poor English. 



-Original Message-
From: zenith siea [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 24, 2006 9:47 AM
To: 林泰邑
Cc: ns-users@isi.edu
Subject: 回复: help ! Does Anyone have TCP-Peach Module?

Hello, Tai-Yei Lin, I need it too, in my expenmentation. will you
please let me know if you get tcppeach module and share the module and
the research between us? I am happy to get help and give help

Thanks a lot

2006/9/22, 林泰邑 <[EMAIL PROTECTED]>:
>
>
>





[ns] help ! Does Anyone have TCP-Peach Module?

2006-09-21 Thread

Help, everybody, I need TCP-Peach Module to simulate my experimentation, so
does anyone have TCP-Peach Module?

 

Please help me , and I am happy to discuss about any kind of TCP agent on
satellite. 

 

Thanks a lot.

 

   Tai-Yei Lin