{"id":9157,"date":"2023-03-10T23:23:38","date_gmt":"2023-03-10T23:23:38","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/csim-a-c-based-process-oriented-simulation-language-to-implement-inter-process-communication-protocol\/"},"modified":"2023-03-10T23:23:38","modified_gmt":"2023-03-10T23:23:38","slug":"csim-a-c-based-process-oriented-simulation-language-to-implement-inter-process-communication-protocol","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/csim-a-c-based-process-oriented-simulation-language-to-implement-inter-process-communication-protocol\/","title":{"rendered":"CSIM: A C-Based, Process-Oriented Simulation Language to Implement inter-process communication protocol"},"content":{"rendered":"<div class=\"col-sm-12 messageContent\">\n <b>Learning Goal: <\/b>I&#8217;m working on a c programming project and need the explanation and answer to help me learn.<\/p>\n<p>this project will need to be created in a remote server to create the following &#8221; <u>example program is attached <\/u>&#8221; please i will need the program to be run in the server and to deliver the following<strong><u> in addition to what to be <\/u><\/strong><u><strong>turn-in? <\/strong><\/u><\/p>\n<ul>\n<li>1. Implement a simple inter-process communication protocol that exchanges two control packets, Hello and Hello_Ack. Refer to the example code shown in lecture note #5\n<ul>\n<li>Suppose there are five nodes in a network, where each node is fully connected with others. Each node generates a Hello packet periodically by following inter-arrival time, i.e., exponential<\/li>\n<li>A sender node (in short, sender) transmits a Hello packet to a randomly chosen receiver node (in short, receiver). Upon receiving, the receiver replies to a Hello_Ack packet. If the sender receives the Hello_Ack packet, then the transmission is successful. Suppose it takes 0.2 seconds to transmit a packet over the network. A local processing delay before replying Hello_Ack is 0.1 second<\/li>\n<li>A packet can be lost during the transmission because of an unreliable link quality. Suppose a set of packet loss probabilities is 0.1, 0.2, 0.3, 0.4, and 0.5. If the sender does not receive the Hello_Ack packet within a timeout period (2 seconds), it retransmits a Hello packet. If the sender still does not receive the Hello_Ack packet, then the transmission is failed.<\/li>\n<li>Dump a snapshot of events (i.e., a packet loss probability is 0.3). Only one-page would be enough. For example,&#8230;<br \/>node.0 sends a Hello to node.3 at 100.2 seconds.<br \/>node.2 replies a Hello_Ack to node.1 at 100.5 seconds &#8230;<br \/>node.4 sends a Hello to node.3 at 110.5 seconds<br \/>node.1 receives a Hello_Ack from node.2 at 110.6 seconds node.4 re-sends a Hello to node.3 at 112.5 seconds<br \/>&#8230;<\/li>\n<li>The simulation ends when the simulation time reaches 1000 seconds.<\/li>\n<li>Draw two result graphs in terms of following performance metrics against the packet lossprobabilities (0.1, 0.2, 0.3, 0.4, or 0.5).Average number of successful transmissions Average number of failed transmissions2. Type the project number and your name (Last, First) at the top in your source code.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\/* Project #2; Bond, James *\/ ( example of the name of the project you creat )<\/p>\n<ul>\n<li><u><strong>What you turn-in? <\/strong><\/u><\/li>\n<li>\u00e2\u20ac\u00a2 Source code(s)o Your source code name should be \u00e2\u20ac\u0153project number\u00e2\u20ac\ufffd + \u00e2\u20ac\u0153last name\u00e2\u20ac\ufffd + \u00e2\u20ac\u0153first name\u00e2\u20ac\ufffd, e.g., \u00e2\u20ac\u0153pro2_bond_james.c\u00e2\u20ac\ufffd.<\/li>\n<li>\u00e2\u20ac\u00a2 Report (e.g., MS word file) including,<\/li>\n<li>Instruction how to run your program.<\/li>\n<li>o Two result graphs<\/li>\n<li>explanation how to upload and run the program on my server<\/li>\n<\/ul>\n<div class=\"questions-requirements\">\n<p class=\"requirement\">Requirements: 1 page<\/p>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learning Goal: I&#8217;m working on a c programming project and need the explanation and answer to help me learn. this project will need to be created in a remote server to create the following &#8221; example program is attached &#8221; please i will need the program to be run in the server and to deliver [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[733],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/9157"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=9157"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/9157\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=9157"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=9157"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=9157"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=9157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}