91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫CS345、代做Java,Python程序設計

時間:2023-12-21  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯


CS345/912 Sensor Networks and Mobile Data Communications Term 1, 202**024

_________________________________________________________________________________________

__________________________________________________________________________

Victor Sanchez

Department of Computer Science, University of Warwick 1

Coursework Specification

I. Introduction

Two villages 10 kilometres apart communicate through a Delay Tolerant Network (DTN).

Village 1, which has the transceiver Node 0, sends packets to transceiver Node 1. Node 1 is

located in a bus that travels to the vicinity of Village 2, where it will transfer the packets to

transceiver Node 2. The position of all nodes is depicted in Fig. 1, where d = 3 m.

Fig. 1. Initial position of nodes

Node operation

Village 1 - Node 0

Several readings are generated by Node 0 at a rate of 1 reading per second. These readings

are stamped with the order in which they are generated and stored in a buffer. The elements

in the buffer are represented in the simulation by two variables: head and tail. The buffer

in Node 0 can only accommodate three readings; when the buffer is full, the oldest reading

in the buffer is thrown away. Assuming no data is transmitted to Node 1, the contents of

Node 0’s buffer change as tabulated in Table 1.

d

10000 m

Node 0 Node 2

Node 1

x

y

CS345/912 Sensor Networks and Mobile Data Communications Term 1, 202**024

_________________________________________________________________________________________

__________________________________________________________________________

Victor Sanchez

Department of Computer Science, University of Warwick 2

Table 1. Contents of Node 0’s buffer assuming no data transmission.

No. of readings

generated

No. of readings

stored in buffer Stamps Simulation variables

Head Tail

0 0 0 0

1 1 [1] 1 1

2 2 [1,2] 2 1

3 3 [1,2,3] 3 1

4 3 [2,3,4] 4 2

5 3 [3,4,5] 5 3

… … … … …

As long as the buffer is not empty, Node 0 encapsulates the buffer’s contents into a packet

and transmits it to Node 1 at the rate of 4 packets per second. Upon receiving an

acknowledgement from Node 1, Node 0 clears the contents of its buffer.

The bus - Node 1

After receiving a data packet from Node 0, Node 1 stores the contents of the packet into its

buffer, and then acknowledges the reception of the packet. After acknowledging the packet,

Node 1 repeatedly transmits data packets to Node 2 at the rate of 4 packets per second. Node

1 also encapsulates its buffer into a packet. Node 1 only stops transmitting a data packet

upon receiving an acknowledgement from Node 2. Note, however, that Node 1’s buffer can

change before it can successfully send a packet to Node 2. This will happen for instance

when it receives a new packet from Node 0.

Village 2- Node 2

Upon receiving a data packet from Node 1, Node 2 sends an acknowledgement.

II. Methods

Use code CS345_BASE_2023.cc, which is available on the module webpage, to complete

this coursework. The bus as simulated in the code does not move. You can verify this by

running the code: it is only the bus and Village 1 that interact.

a. Introduce a mobility model such that Node 1 moves at a constant speed of 20m/s.

Make sure that the bus moves in a straight line up to the x-coordinate of Village 2

(Node 1 should stop once it reaches this destination). After implementing the

mobility of the bus, make sure that all nodes interact according to the behaviour

described before. [15 marks]

b. Determine the transmission range of Village 1 and Village 2 and the region where the

bus can receive/transmit to both villages (if any). When running your simulations,

make sure that the duration of the simulation is long enough for Node 1 to move to

the same x-coordinate as that of Node 2. [5 marks]

CS345/912 Sensor Networks and Mobile Data Communications Term 1, 202**024

_________________________________________________________________________________________

__________________________________________________________________________

Victor Sanchez

Department of Computer Science, University of Warwick 3

c. Modify the code so that every time Node 2 receives a unique packet, it also prints the

number of readings received so far. [5 marks]

d. Plot the relationship between the speed of Node 1, distance d, and the number of

readings received by Node 2. To this end, test a speed from 20m/s to 200m/s

(increments of 10m/s) and a distance d from 3m to 303m (increments of 6 m). Note

that this relationship can be plotted in different ways, e.g., line plots or 3D plots.

How does the speed of Node 1 and distance d affect the number of readings received

by Node 2? Explain. [10 marks]

e. Modify the behaviour of Node 1 so that it keeps all received readings in its buffer.

For example:

Node 1’s current buffer: [1, 2, 3]

EVENT: data packet is received by Node 1 with readings [4, 5, 6]

Node 1’s new buffer: [1, 2, 3, 4, 5, 6]

[10 marks]

f. Repeat the experiment in II.d, but this time using the modified code from II.e. Plot

the relationship between the speed of Node 1, distance d, and the number of readings

received by Node 2. Explain any differences with the plot obtained in II.d.

[5 marks]

g. Add a mobile node (Node 3) to the DTN. This additional node must be initially

located to the left of Node 1 at a distance d2 = 250 m (see Fig. 3). Node 3 must have

the same y-coordinate and speed as those of Node 1. Node 3 must have the same

behaviour as that of Node 1 (after all previous modifications introduced); i.e., it

should be able to receive packets from Node 0 and transmit packets to Node 2.

Fig. 3. Initial position of nodes with additional node.

d

10000 m

Node 0 Node 2

Node 1

x

y

Node 3 d2 = 250 m

CS345/912 Sensor Networks and Mobile Data Communications Term 1, 202**024

_________________________________________________________________________________________

__________________________________________________________________________

Victor Sanchez

Department of Computer Science, University of Warwick 4

Note that by adding Node 3 to the DTN, the following aspects should be considered:

• Node 0 is originally hard-coded to transmit exclusively to Node 1. You should

modify Node 0’s behaviour so that it can transmit (broadcast) to both Node 1 and

Node 3. Hint: you may use the method SetAllowBroadcast.

• Node 2 should be able to receive data packets from Node 1 and Node 3. Node 2

must be able to properly count the number of readings received. It is possible for

the readings transmitted by Node 1 and Node 3 to overlap. For example, Node 1

may transmit readings **6, while Node 3 may transmit readings 4-7. The total

number of received readings, in this case, is 7; i.e., [1, 2, 3, 4, 5, 6,

7]. It is also possible for Node 1 and Node 3 to transmit different readings. For

example, Node 1 may transmit readings **6, while Node 3 may transmit readings

10-12. The total number of received readings in this case is 9; i.e., [1, 2, 3,

4, 5, 6, 10, 11, 12]. Node 2 must be able to deal with both cases

properly. [30 marks]

h. Plot the relationship between distance d2, as depicted in Fig. 3, distance d, and the

total number of readings received by Node 2. Set the speed of Node 1 and Node 3 to

20m/s. Test distance d from 3m to 303m (increments of 6 m). Test distance d2 from

50m to 1000m (increments of 50 m). When running your simulations, make sure that

the duration of the simulation is long enough for Node 3 to move to the same xcoordinate as that of Node 2. Explain and discuss any differences in the plot

compared to the one obtained in II.f for a speed of 20m/s. [10 marks]

III. Deliverables

Submit the following via Tabula:

1. A report with a description of how the DTN was modified according to each subsection

of Section II, as well as the requested explanations, discussions, and plots. Make sure to

include snippets of code showing your modifications to the code. Cleary explain these

modifications.

2. Your final solution for II.g as a cc file. Please make sure that the submitted code

compiles and works correctly before submitting.

A total of 10 marks are available for the quality and presentation of reports, as well as the

organization and explanation of your code (comment your code appropriately to indicate the

changes made). Documents should be clearly and logically structured, well-written, and

adequately proof-read before submission. The suggested length is between 1600-1800

words. The standard department late penalties and plagiarism policies are in effect.

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

 

掃一掃在手機打開當前頁
  • 上一篇:XJCO3811代寫、C++程序設計代做
  • 下一篇:COMP 250代做、代寫java編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    欧美私模裸体表演在线观看| 久久久国产一区二区三区四区小说| 欧美视频久久| 91丝袜美腿高跟国产极品老师 | 91福利精品视频| 色88888久久久久久影院野外 | 国产精品色呦呦| 欧美激情艳妇裸体舞| 国产精品网站导航| 亚洲男人天堂av| 亚洲一区二区三区小说| 天堂成人免费av电影一区| 日韩精品视频网| 久久精品二区亚洲w码| 韩国av一区二区| bt欧美亚洲午夜电影天堂| 欧美区国产区| 亚洲一区综合| 欧美夫妻性生活| 久久网站最新地址| 亚洲丝袜精品丝袜在线| 亚洲成人激情社区| 精品一区二区免费看| 波多野结衣在线一区| 激情六月综合| 久久资源av| 日韩精品一区二区三区四区| 国产日韩精品一区二区浪潮av| 亚洲视频在线观看一区| 亚洲v中文字幕| 国产精品66部| 黄色欧美成人| 欧美亚洲自拍偷拍| 国产喷白浆一区二区三区| 一区二区三区丝袜| 激情伊人五月天久久综合| 97se亚洲国产综合在线| 国产精品一区二区欧美| 91超碰这里只有精品国产| 国产嫩草影院久久久久| 婷婷一区二区三区| a级精品国产片在线观看| 一区二区国产日产| 日韩欧美国产综合| 一区二区三区在线高清| 国产精品一区二区黑丝| 一本色道久久综合亚洲精品按摩| 日韩欧美一区二区久久婷婷| 亚洲欧美一区二区视频| 美女视频一区在线观看| 欧美日韩一区二区视频在线 | 色吊一区二区三区| 国产日韩精品视频一区| 日本欧美一区二区三区| 99精品一区二区三区| 欧美综合一区二区| 中文字幕在线不卡| 丁香桃色午夜亚洲一区二区三区| 国产日产精品一区二区三区四区的观看方式 | 欧美日韩高清一区| 一区二区久久久久| jlzzjlzz亚洲女人18| 久久久久欧美| 国产精品免费久久久久| 国产原创一区二区| 亚洲欧美成人| 国产欧美精品一区二区色综合| 麻豆成人91精品二区三区| 国模大胆一区二区三区| 日韩欧美卡一卡二| 日本不卡高清视频| 亚洲二区免费| 国产亚洲污的网站| 国产成人免费在线观看不卡| 亚洲男女自偷自拍| 国产拍揄自揄精品视频麻豆| 国产成人av电影在线播放| 一本久道中文字幕精品亚洲嫩| 亚洲国产精品av| 成人黄色777网| 在线成人免费视频| 麻豆精品久久久| 亚洲一区二区精品在线| 日韩美女视频一区二区 | 亚洲影院一区| 一区二区三区国产精华| 伊人蜜桃色噜噜激情综合| 久久久久国产成人精品亚洲午夜| 国产成人亚洲综合a∨婷婷图片| 色老汉av一区二区三区| 亚洲国产成人va在线观看天堂| 国内精品久久久久久久影视蜜臀 | 99热在这里有精品免费| 欧美一区午夜视频在线观看| 狠狠狠色丁香婷婷综合激情| 在线影视一区二区三区| 蜜臀精品一区二区三区在线观看 | 国产精品久久99| 午夜久久久久| 中文字幕一区免费在线观看| 亚洲无线视频| 亚洲欧美激情视频在线观看一区二区三区| 欧美精品导航| 自拍偷拍亚洲综合| 国产区二精品视| 天天综合网 天天综合色| 久久天堂成人| 久久99最新地址| 日韩午夜精品视频| 99在线精品一区二区三区| 国产欧美精品一区aⅴ影院 | 欧美在线|欧美| 狠狠色狠狠色综合| 欧美一级专区免费大片| 国产成人午夜视频| 久久日韩精品一区二区五区| 欧美国产91| 亚洲精品成人精品456| 亚洲综合社区| 国内成人精品2018免费看| 日韩欧美资源站| 欧美日韩国产综合视频在线| 亚洲欧美电影一区二区| 久久黄色影院| 国产精品一区在线观看你懂的| 日韩欧美亚洲国产另类 | 精品精品国产高清a毛片牛牛| 色综合久久综合网97色综合 | 92国产精品观看| 综合自拍亚洲综合图不卡区| 麻豆精品传媒视频| 国产成人综合在线| 国产精品日韩成人| 久久aⅴ国产紧身牛仔裤| 国产精品一区在线观看你懂的| 久久无码av三级| 欧美一级一区| 成人av在线资源网| 一区二区在线看| 欧美日韩不卡视频| 欧美午夜在线| 精品一区二区三区视频 | 国产成人免费视频网站高清观看视频| 久久精品一级爱片| 久久国产精品亚洲va麻豆| 国产精品一区二区久激情瑜伽| 国产精品乱码一区二区三区软件 | 最新日韩av| 国产精品一区二区果冻传媒| 亚洲视频综合在线| 91精品国产麻豆| 亚洲免费久久| 风间由美性色一区二区三区| 一区二区在线观看免费| 日韩欧美的一区二区| 亚洲影视在线| 色综合色狠狠天天综合色| 天堂成人国产精品一区| 欧美国产97人人爽人人喊| 日本乱人伦一区| 亚洲视频一区| 国产精品一级二级三级| 一区二区三区av电影| 久久影院午夜片一区| 日本韩国精品在线| 亚洲成色精品| 成人av资源在线| 蜜臂av日日欢夜夜爽一区| 1区2区3区欧美| 亚洲精品在线观看网站| 91成人免费在线| 国产精品久久久久久久久婷婷| 成人综合婷婷国产精品久久蜜臀| 亚洲国产成人av好男人在线观看| 久久美女艺术照精彩视频福利播放| 在线观看不卡视频| 亚洲欧洲久久| 欧美激情一区| 成人av电影在线| 国产呦萝稀缺另类资源| 日韩成人免费看| 亚洲成人免费观看| 亚洲美女视频在线| 亚洲国产成人一区二区三区| 日韩精品一区二区三区蜜臀 | 精品一区二区三区在线观看国产| 亚洲精品国产a久久久久久 | 国产高清不卡一区二区| 乱中年女人伦av一区二区| 日韩黄色一级片| 亚洲自拍偷拍麻豆| 亚洲精品视频免费看| 日韩一区中文字幕| 国产日韩精品一区二区三区| 久久亚洲综合色一区二区三区 | 日本欧美在线观看| 日韩综合一区二区| 日韩电影一区二区三区四区| 亚洲va欧美va人人爽午夜| 亚洲成av人影院在线观看网|