![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
peersim
w747328720
这个作者很懒,什么都没留下…
展开
-
peersim learn1
1、环境安装https://blog.csdn.net/niutianzhuang/article/details/79639531参考以上网页,但是最后一步config不一样,参数我选择的是下图原创 2018-04-01 13:41:48 · 244 阅读 · 0 评论 -
peersim-step4 参考文献
peersim主要参考文献http://blog.sina.com.cn/s/blog_70e9ecab0100o28s.html学习peersim的主要参考文献来自:[1] http://peersim.sourceforge.net/tutorial1/tutorial1.html[2] http://peersim.sourceforge.net/tutorial2/tutorial2.ht...转载 2018-04-12 14:53:24 · 239 阅读 · 0 评论 -
peersim-step3 两种仿真模式
http://blog.sina.com.cn/s/blog_70e9ecab0100nzzb.htmlPeersim的两种仿真模式 PeerSim有两种仿真模式:Cycle-based模式和Event-Driven模式。各自的特点如下:1、Cycle-based模式:(1)基于peersim.cdsim包中的CDSimulator类(2)简化、忽略了细节;(3)扩展性非常好,最多可支持千万级别节...转载 2018-04-12 14:50:13 · 509 阅读 · 0 评论 -
peersim-Step2
http://blog.sina.com.cn/s/blog_4abdb3d001010iwb.htmlhttp://blog.sina.com.cn/s/blog_5362cb8101009nfe.htmlPeerSim有基于周期和基于事件两种模型:周期驱动的引擎基于周期。在每个周期里面,模拟器遍历网络中的每个节点以及执行节点的每个协议,Controls也被正确地执行并用来控制模拟器。它基于pe...转载 2018-04-12 14:46:25 · 148 阅读 · 0 评论 -
PEERSIM-step1
1、配置JAVA环境2、安装ECLIPSE ,解压peersim包,在ECLIPSE 中新建包,然后导入4个JAR,导入配置文件,就可以运行了。参见:https://blog.csdn.net/niutianzhuang/article/details/79639531运行: 主函数在peersim包下,直接运行里面的Simulator类,此时会报如下的错误:Simulator: lo...原创 2018-04-11 14:11:28 · 163 阅读 · 0 评论 -
Eclipse中运行kademlia
http://blog.sina.com.cn/s/blog_62ae875a0100yn19.html首先从http://peersim.sourceforge.net/下载kademlia源码;创建工程时选择从已经存在的文件创建,选择kademlia;下面主要是配置:在Run configurations里配置 ...转载 2018-04-10 19:52:49 · 281 阅读 · 0 评论 -
内存不足 java.lang.OutOfMemoryError: Java heap space
http://blog.sina.com.cn/s/blog_4abdb3d001013y8r.html在做PeerSim仿真的过程中,因为要仿真的节点数很大,很多时候会出现内存不足的错误错误信息:Exception in thread "main" java.lang.OutOfMemoryError: Java heap space出错原因:jvm虚拟机的默认Heap大小是64M,可以通过设置...转载 2018-04-10 19:16:00 · 168 阅读 · 0 评论 -
P2P 模拟
1、模拟的一般思路是这样的(1)选择网络大小即设定节点数(2)选择要实验的一个或多个协议并进行初始化(3)选择一个或多个Control对象来监视所关心的属性,并在模拟过程中修改一些参数(例如网络大小,协议的内部状态等)(4)根据配置文件,调用Simulator类进行模拟2、如何在PeerSim中表示protocol协议、Contorol等组件对象?在peersim中所有的组件对象实际上就是一些Ja...转载 2018-04-10 19:14:06 · 876 阅读 · 0 评论 -
peerrsim学习-chord代码解析
http://blog.sina.com.cn/s/blog_62746c3d0100o2ss.html使用peersim已经有一段时间了,但是对如何能够编制高效程序,使用peersim提供的接口还有很多不足,今天开始学习官网上提供的协议模拟包,希望能够学习到peersim高手的一些技巧。CreateNw:对chord协议进行初始化,构造chord环的后继表,初始化finger表;ChordPro...转载 2018-04-10 17:15:14 · 400 阅读 · 0 评论 -
Peersim的两种仿真模式
PeerSim有两种仿真模式:Cycle-based模式和Event-Driven模式。各自的特点如下:1、Cycle-based模式:(1)基于peersim.cdsim包中的CDSimulator类(2)简化、忽略了细节;(3)扩展性非常好,最多可支持千万级别节点数;(4)不支持传输层模拟( nodes和protocols直接对话);(5)不支持并发处理2、event-based模式(1)基于...转载 2018-04-10 17:06:45 · 508 阅读 · 0 评论 -
peersim主要参考文献
学习peersim的主要参考文献来自:[1] http://peersim.sourceforge.net/tutorial1/tutorial1.html[2] http://peersim.sourceforge.net/tutorial2/tutorial2.html[3] http://peersim.sourceforge.net/tutorialed/[4] http://peersi...转载 2018-04-10 17:06:26 · 160 阅读 · 0 评论 -
PeerSim 安装 & 自带例子的运行
http://blog.sina.com.cn/s/blog_4abdb3d001010iwb.html环境信息:系统: window xp;JDK: 1.6.0_26eclipse: Version: 3.5.0PeerSim: 1.0.5安装步骤:1. 首先安装JDK,配置好环境变量,以本机为例子:新建JAVA_HOME: C:\Program Files\Java\jdk1.6.0_26新建...转载 2018-04-10 16:56:59 · 392 阅读 · 0 评论 -
分析peersim.chord
http://blog.sina.com.cn/s/blog_78ceb2bb0100ulwd.html对Chord还不太熟悉,将源码分解之分析之。peersim. chord的src包中有10个类或接口(1)ChordInitilizer.java :初始化chord1)ChordInitializer(String prefix)2)initialize(Node n)3)join(Node ...转载 2018-04-10 16:49:34 · 314 阅读 · 0 评论 -
peersim如何安装使用
转载:http://blog.sina.com.cn/s/blog_54eb9d9e0101asqy.html不同于周期驱动,事件驱动的引擎,通过事件来安排协议等执行的顺序。事件或者消息发送到不同的协议后,相应的协议能够处理这些消息并作出正确的反应。由于它依赖于信息,事件驱动的模拟器能够模拟运输层,因此给该模拟器添加了更加实用的功能。它基于peesim.edsim包的EDSimulator类。 ...转载 2018-04-10 16:11:42 · 931 阅读 · 0 评论 -
peersim运行和调试
转载 :http://blog.sina.com.cn/s/blog_3d25e30f0100g6cv.html peersim是用JAVA写的一个仿真P2P网络的工具,P2P仿真工具主要有P2PSIM和peersim,p2psim是用C++写的,本人对C++不是很熟悉,选择用JAVA写的Peersim作为我论文的仿真工具。 早些时候我在LINUX上装过P2Psim,刚开始接触pee...转载 2018-04-10 16:04:26 · 1178 阅读 · 0 评论 -
PeerSim中文教程(1)
PeerSim中文教程(1):解析 Cycle-based 模式仿真本文介绍了PeerSim的基本概念,并解析了两个示例以更清晰地说明PeeSim的仿真流程。Peersim支持两种仿真模式,即Cycle-based的模型和传统的event-based的模型,本文专注于前者,Cycle-based模型是一个简化的模型,拥有更好的伸缩性及性能,在拥有4GB内存的情况下,event-driven模式目前...转载 2018-05-01 13:58:28 · 2664 阅读 · 1 评论