160 likes | 376 Views
Network Simulator NS-2. Wired-cum-Wireless Networks. 공주대학교 노승환 2009-11-10. Wired-cum-wireless Network. Wired-cum-wireless simulation example Network toplogy of multiple LANs connected through wired nodes. Mixed scenario consisting of a wireless and a wired domain.
E N D
Network Simulator NS-2 Wired-cum-Wireless Networks 공주대학교 노승환 2009-11-10
Wired-cum-wireless Network • Wired-cum-wireless simulation example • Network toplogy of multiple LANs connected through wired nodes. • Mixed scenario consisting of a wireless and a wired domain. • Creating wired-cum-wireless scenario wireless2.tcl by modifying wireless1.tcl • Topology • 2 wired nodes, W(0) and W(1) connected to wireless domain • 3 mobilenodes in wireless domain via base station node.
Wired-cum-wireless Network • Topology
Wired-cum-wireless Network • Definition of the type of network components • Adhoc routing protocol : DSDV • TCP and CBR connections between wired and wireless nodes. • Don’t use connection pattern file. • opt() : scope is defined only in the test script.
Wired-cum-wireless Network • Hierarchical routing • In order to route pkts between wireless and wired domains. • Adhoc routing is used in wireless domain routing. No concept of “link” in wireless domain. • Base station is used as gateway between two domains. • Wired and wireless nodes are segregated by placing them in different domains.
Wired-cum-wireless Network • Tracing for simulation • Traces are generated for both wired and wireless domains. • Wireless traces begin with “WL”. • Setting up traces and nam traces. • Address hierarchy • for wired nodes(2 nodes) • Node 1 : 0(domain 0).0(cluster 0).0(only node) • Node 2 : 1(domain 0).1(cluster 1).0(only node) • for wireless nodes(4 nodes) • Base-station : 1(domain 1).0(cluster 0).0(first node in cluster) • WL node#1 : 1.0.1(second node in cluster) • WL node#1 : 1.0.2(third node in cluster) • WL node#1 : 1.0.3(fourth node in cluster)
Wired-cum-wireless Network • Creating wired, wireless and base-station • Configure for base-station
Wired-cum-wireless Network • Creating base-station and wireless nodes
Wired-cum-wireless Network • Setup traffic between wired and wireless nodes
Mobile IP in a simple wired-cum-wireless Network • Extend mobile IP support in the wired-cum-wireless scenario(wireless3.tcl) • Roaming outside the domain of its basestation. • 2 basestations : HA(Home Agent), FA(Foreign Agent) • MH(Mobile Host) roams from HA to FA.
Mobile IP in a simple wired-cum-wireless Network • Number of mobilenode and time of simulation • Don’t use connection type and movement pattern files • Define the TCP flow starttime. • Number of wired, base-station and mobile nodes. • The base-station nodes, HA and FA, are individually created and handled.
Mobile IP in a simple wired-cum-wireless Network • Cluster and node parameters • Setup ns trace and nam files.
Mobile IP in a simple wired-cum-wireless Network • Configure for FA and HA nodes.
Mobile IP in a simple wired-cum-wireless Network • Configure for mobilehost.
Mobile IP in a simple wired-cum-wireless Network • Create link between Wired node and HA/FA and setup TCP Connection.