⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 changes

📁 obs网络试验平台
💻
字号:
Copyright (c) 2003, University of Maryland, Baltimore County.NOTE: A Basic familiarity with ns architecture is recommended before making thefollowing changes. The ns-2 extensions for OBS  is currently an ongoingdevelopment effort. Some of the components of the OBns is still undergoing development.Any suggestions, bug-reports or changes is welcome.Please check for further details at http://dawn.cs.umbc.eduSection 1. Installing obs-ns-0.9a.Step 1. Unzip the provided source in the "ns-allinone-2.26(or x)/ns-2.26" directory.        Section 2 (see below) has a list of the files present in the distribution.Step 2: Changes that need to be done to the existing ns-2 source1. To introduce a new packet ptype namely PT_IPKT (refer to Marc Greis's tutorial on   adding new packet/protocols etc.).   (a) In the file "common/packet.h " add the following packet type PT_IPKT       as shown below:	enum packet_t {		PT_TCP,		PT_UDP,        	......		// insert new packet types here 		PT_IPKT,        	PT_NTYPE // This MUST be the LAST one	};	p_info() {		name_[PT_TCP]= "tcp";		name_[PT_UDP]= "udp";                ........... 		name_[PT_TFRC]= "tcpFriend";		name_[PT_TFRC_ACK]= "tcpFriendCtl";		.		.		.                name_[PT_LMS_SETUP]="LMS_SETUP";                name_[PT_IPKT]="IPKT";  // add this line for IPKT                name_[PT_NTYPE]= "undefined";        }    (b) In the file tcl/lib/ns-packet.tcl add    	foreach prot {		AODV		ARP		.		....		IPinIP		IPKT   // add the following line for IPKT		IVS		....    	};Other changes may be necessary.Step 3: Changes to the ns-2 Makefile	Add the following lines to the OBJ_CC tag as shown below	OBJ_CC = \	.	.	.	.        obs-0.9a/cpp/debug.o obs-0.9a/cpp/fiber-delay.o obs-0.9a/cpp/integrated_agent.o \        obs-0.9a/cpp/classifier/classifier-base.o obs-0.9a/cpp/classifier/classifier-core.o \        obs-0.9a/cpp/classifier/classifier-edge.o obs-0.9a/cpp/classifier/classifier-obs-port.o \        obs-0.9a/cpp/scheduler/scheduler-group.o obs-0.9a/cpp/scheduler/lauc-scheduler.o \        obs-0.9a/cpp/scheduler/Table.o obs-0.9a/cpp/common/stat-collector.o \        $(OBJ_STL)	Add the following lines to NS_TCL_LIB tag as shown below	NS_TCL_LIB = \	.	.	.	obs-0.9a/tcl/lib/ns-obs-defaults.tcl \        obs-0.9a/tcl/lib/ns-obs-lib.tcl \        obs-0.9a/tcl/lib/ns-optic-link.tcl \        $(NS_TCL_LIB_STL)Step 4: Running the build.        (i) Run make clean; makeSection 2Files present in the obs-0.9a distribution.	obs-0.9a:		copyright.txt	obs-0.9a/cpp:		debug.{h,cc}		fiber-delay.{h,cc}		integrated_agent.{h,cc}	obs-0.9a/cpp/classifier:		classifier-base.{cc,h}		classifier-core.{cc,h}		classifier-edge.{cc,h}		classifier-obs-port.{cc,h}	obs-0.9a/cpp/common:		stat-collector.{cc,h}	obs-0.9a/cpp/scheduler:		lauc-scheduler.{cc,h}		scheduler-group.{cc,h}		Table.{cc,h}	obs-0.9a/tcl/examples:		basic.tcl	obs-0.9a/tcl/lib:		ns-obs-defaults.tcl		ns-obs-lib.tcl		ns-optic-link.tcl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -