Chapter 15 The Addressing Structure in NS. The Default Address Format 32 lower bits for port-id, 1 higher bit for mcast and the rest 32 higher bits for.

Slides:



Advertisements
Similar presentations
1 NS Fundamentals (contd..) Padma Haldar USC/ISI.
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
DSR The Dynamic Source Routing Protocol Students: Mirko Gilioli Mohammed El Allali.
Simulation of GPRS MS-BS Interface Using ns-Network Simulator Dual Degree Presentation by Richa Jain (96D07007) Department of Electrical Engineering, Indian.
報告者:黃亮維 NS2 Chapter 26 Trace Support. Outline  Trace Support ‧ OTcl Helper Functions  Library support and examples  The C++ Trace Class  Trace File.
A Performance Comparison of Multi-Hop Wireless Ad Hoc Network Routing Protocols By Josh Broch, David A. Maltz, David B. Johnson, Yih- Chun Hu, Jorjeta.
Oct 26, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
1 Review of Important Networking Concepts Introductory material. This module uses the example from the previous module to review important networking concepts:
Computer Networks: Wireless Networks Ivan Marsic Rutgers University Chapter 6 – Wireless Networks.
Ns Simulation of IEEE SC546 Project (Fall 2002) SOO IL KIM JISUN YOON
Introduction to Network Simulator NS-2 Part II
Ad Hoc Wireless Routing COS 461: Computer Networks
Lecture 8 Modeling & Simulation of Communication Networks.
Chapter 4: Managing LAN Traffic
G64INC Introduction to Network Communications Ho Sooi Hock Internet Protocol.
Itrat Rasool Quadri ST ID COE-543 Wireless and Mobile Networks
1 / 10 Mobile Networking in ns Speaker : Mark Yang
NS2 - Wireless Network Ming-Feng Yang. 2 2 Outline Basic wireless model Extensions wireless model Example - Ad hoc network Example – WLAN Example – Mobile.
Define options(1/2) #channel type set val(chan) Channel/WirelessChannel # radio-propagation model set val(prop) Propagation/TwoRayGround # network interface.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 5: Ethernet Introduction to Networks.
10/8/2015CST Computer Networks1 IP Routing CST 415.
MOBILE IP SOMULATION IN NS2 Presenter: 吳寶緣. Outlines  Overview  Hierarchical Address Format  Hierarchical Address Format-ex  MoblieIP Demo  Additional.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
MARCH : A Medium Access Control Protocol For Multihop Wireless Ad Hoc Networks 성 백 동
Hyung-Min Lee ©Networking Lab., 2001 Chapter 8 ARP and RARP.
COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 3.
Dynamic Source Routing (DSR) Sandeep Gupta M.Tech - WCC.
COP 5611 Operating Systems Spring 2010 Dan C. Marinescu Office: HEC 439 B Office hours: M-Wd 2:00-3:00 PM.
BAI513 - PROTOCOLS ARP BAIST – Network Management.
Group Management in Mobile Ad Hoc Networks Revathi Ranganathan Preeti Venkateswaran.
Chapter 2 Network Models
The Creation of NS2 Simulated Environment ( 1 ) LI Chengbo
Data Link Layer and Ethernet COM211 Communications and Networks CDA College Theodoros Christophides
1 12-Jan-16 OSI network layer CCNA Exploration Semester 1 Chapter 5.
1 Connectivity with ARP and RARP. 2 There needs to be a mapping between the layer 2 and layer 3 addresses (i.e. IP to Ethernet). Mapping should be dynamic.
Ad Hoc On-Demand Distance Vector Routing (AODV) ietf
Delivery and Forwarding Chapter 18 COMP 3270 Computer Networks Computing Science Thompson Rivers University.
+ Lecture#2: Ethernet Asma ALOsaimi. + Objectives In this chapter, you will learn to: Describe the operation of the Ethernet sublayers. Identify the major.
Performance Comparison of Ad Hoc Network Routing Protocols Presented by Venkata Suresh Tamminiedi Computer Science Department Georgia State University.
Ch7: Link and Buffer Management. 2 Portrait of A Mobile Node Node ARP Propagation and antenna models MobileNode LL MAC PHY LL CHANNEL LL MAC PHY Classifier:
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Scaling the Network Chapters 3-4 Part 2
A quick intro to networking
Lecture 28 Mobile Ad hoc Network Dr. Ghalib A. Shah
Chapter 16 Mobile Networking in ns
Scaling the Network: The Internet Protocol
Chapter 8 ARP(Address Resolution Protocol)
Chap. 2 Network Models.
Part I. Overview of Data Communications and Networking
Mobicom ‘99 Per Johansson, Tony Larsson, Nicklas Hedman
Chapter 6 – Routing.
ADDRESSING Before you can send a message, you must know the destination address. It is extremely important to understand that each computer has several.
Network Architecture Introductory material
Net 323: NETWORK Protocols
Chapter 2 Network Models.
CPE 401 / 601 Computer Network Systems
Chapter 10: Ethernet Network Basics Chapter 10: Ethernet
Review of Important Networking Concepts
Distributed Routing Protocol in Wireless Network Simulation
Network Protocol Layers
Review of Important Networking Concepts
Chapter 2 Network Models.
Chapter 2 Network Models.
Scaling the Network: The Internet Protocol
Delivery, Forwarding, and Routing of IP Packets
Vinay Singh Graduate school of Software Dongseo University
Review of Important Networking Concepts
LAN Addresses and ARP IP address: drives the packet to destination network LAN (or MAC or Physical) address: drives the packet to the destination node’s.
Computer Networks: Wireless Networks
Presentation transcript:

Chapter 15 The Addressing Structure in NS

The Default Address Format 32 lower bits for port-id, 1 higher bit for mcast and the rest 32 higher bits for node-id. $ns set-address-format def

The Hierarchical Address Format Default Hierarchical Setting  $ns set-address-format hierarchical  3 levels of hierarchy Specific Hierarchical Setting  $ns set-address-format hierarchical

The Expanded Node-Address Format address space to 30 bits, allocating 22 higher bits to node-id and lower 8 bits to port-id. this command is now obsolete given that node address and port address spaces are 32 bits wide.

Errors in setting address format if number of bits specified is less than 0. if bit positions clash (contiguous number of requested free bits not found). if total number of bits exceed MAXADDRSIZE_. if expand-port-field-bits is attempted with portbits less than or equal to the existing portsize. if number of hierarchy levels do not match with number of bits specified (for each level).

Hierarchical Address Format-ex -  set ns [new Simulator]  $ns set-address-format hierarchical -  AddParams set domain_num_ 區域數  AddParams set cluster_num_ 群組數  AddParams set nodes_num_ 節點數 design topology

Chapter 16 Mobile Networking in ns

Mobile Networking Mobile node Routing mechanisms Network components  Channel  Network interface  Radio propagation model  MAC protocols  Interface Queue  Link Layer  ARP

The basic wireless model in ns MobileNode object is a split object. The C++ class MobileNode is derived from parent class Node. (ref ch5) Difference added functionalities of a wireless mobile node like ability to move within a given topology not connected by means of Links to other nodes or mobilenodes. Routing mechanisms

Mobilenode Object Implemented in C++ The mobility features  node movement  periodic position updates  maintaining topology boundary  etc implemented in Otcl MobileNode itself  Classifiers  Dmux  LL  Mac  Channel  etc

Creating Node movements Start position:  $node set X_  $node set Y_  $node set Z_ Future destinations:  $ns at $time $node setdest  Ex: ns at 3.0 "$node (0) setdest the third dimension (Z) is not used.

Creating Node movements random movement  $mobilenode start Set topology  set topo [new Topography]  $topo load_flatgrid $opt(x) $opt(y) opt(x) and opt(y) are the boundaries used in simulation

Network Components in a mobilenode MobileNode method add-interface() in ~ns/tcl/lib/ns-mobilenode.tcl

MN components Link Layer-(ref.14)  ARP module connected to it which resolves all IP to hardware (Mac) address conversions ARP  O-writes it into the mac header of the packet  X-broadcasts an ARP query Interface Queue  priority to routing rotocol packets Mac Layer  carrier sense

MN components-cont. Tap Agents  defined in mac.h  register themselves with the mac object using method installTap() Network Interfaces  mobilenode to access the channel.  implemented Phy/WirelessPhy Radio Propagation Model  Friss-space attenuation (1/r2)  Two ray Ground (1/r4) Antenna

MAC layer protocols MAC protocol  See ~ns/mac-802_11.{cc,h} for implementation details. Preamble based TDMA protocol  ns supports a single hop, preamble-based TDMA MAC protocol  multi-hop environment are not considered  TDMA frame contains preamble data transmission slots  avoid unnecessary power consumption set_node_sleep().

Routing Agents DSDV  messages are exchanged between neighbouring mobilenodes  ~ns/dsdv directory and ~ns/tcl/mobility/dsdv.tc DSR  checks every data packet for source-route information. X-Routing queries  ~ns/tcl/mobility/dsr.tcl TORA  ns/tora directory and ns/tcl/mobility/tora.tcl AODV  ns/aodv and ns/tcl/lib/ns-lib.tcl

Trace Support cmu-trace objects are of three types  CMUTrace/Drop  CMUTrace/Recv  CMUTrace/Send ~ns/trace.{cc,h} and ~ns/tcl/lib/ns- cmutrace.tcl. tracing all packets that are sent out in a router  set sndT [cmu-trace Send "RTR" $self]

Example for wireless Default Script Options Main Program produce some simple node movements simulation ends

Trace Support-cont. The cmu-trace object CMUTrace is derived from the base class Trace.  See Chapter 26 for details on class Trace tracing packets  dropped, received and sent by agents, routers, mac layers or interface queues in ns. All traces are written to the buffer wrk_.

Trace Support-cont. An example of a trace for a tcp packet is as follows: r _6_ RTR tcp 1492 [a ] [65536: : ] [1 0] 2 0

Revised format for wireless traces cmu-trace objects This command should be called before the universal trace command  $ns trace-all Currently this new trace support is available for wireless

new trace format

Event type In the traces above, the first field (as in the older trace format) describes the type of event taking place at the node and can be one of the four types:  s send  r receive  d drop  f forward

new trace format General tag The second field starting with "-t" may stand for time or global setting  -t time  -t * (global setting)

抽考 - Hierarchical Address

抽考 -moblie node move