Create a network consisting of two nodes: PC1 and PC2. Node PC1 should generate and send packets (with incremental packet IDs i.e., Pk1, Pk2, Pk3,..) to PC2 node. At node PC2, it should send back numbered acknowledgement (i.e., Ack1, Ack2, Ack3,...) messages to node PC1. Hint: To generate a message/packet having different sequence number each time, following code snippet will be helpful: msgname [20]; sprintf (msgname, "tic-%d", ++seq); CMessage *msg = new cMessage (msgname); char

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Practice Tasks
Assignment4 1.
Create a network consisting of two nodes: PC1 and PC2. Node PC1 should generate and
send packets (with incremental packet IDs i.e., Pk1, Pk2, Pk3,...) to PC2 node. At node
PC2, it should send back numbered acknowledgement (i.e., Ack1, Ack2, Ack3,...)
messages to node PC1. Hint: To generate a message/packet having different sequence
number each time, following code snippet will be helpful:
msgname [20];
sprintf (msgname, "tic-%d", ++seq);
CMessage *msg = new cMessage (msgname);
char
Assignment5 2.
Create a network consisting of three nodes i.e., Server, PC1, and PC2 (Topology shown
in Figure 4.15). Both nodes PC1 and PC2 should generate and send a message to the
Server. On receiving a packet, the Server should send back the same packet to the sending
node. Similarly, whenever a node receives a message from a server, it should send back
that message to the server within a time delay of 500 ms.
Server
PC1
PC2
Figure 4.15: Network topology for practice task 2
Transcribed Image Text:Practice Tasks Assignment4 1. Create a network consisting of two nodes: PC1 and PC2. Node PC1 should generate and send packets (with incremental packet IDs i.e., Pk1, Pk2, Pk3,...) to PC2 node. At node PC2, it should send back numbered acknowledgement (i.e., Ack1, Ack2, Ack3,...) messages to node PC1. Hint: To generate a message/packet having different sequence number each time, following code snippet will be helpful: msgname [20]; sprintf (msgname, "tic-%d", ++seq); CMessage *msg = new cMessage (msgname); char Assignment5 2. Create a network consisting of three nodes i.e., Server, PC1, and PC2 (Topology shown in Figure 4.15). Both nodes PC1 and PC2 should generate and send a message to the Server. On receiving a packet, the Server should send back the same packet to the sending node. Similarly, whenever a node receives a message from a server, it should send back that message to the server within a time delay of 500 ms. Server PC1 PC2 Figure 4.15: Network topology for practice task 2
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

good greeting Please solve this assignment

 

Create a network consisting of two nodes: PC1 and PC2. Node PC1 should generate andsend packets (with incremental packet IDs i.e., Pk1, Pk2, Pk3,…) to PC2 node. At nodePC2, it should send back numbered acknowledgement (i.e., Ack1, Ack2, Ack3,…)messages to node PC1. Hint: To generate a message/packet having different sequencenumber each time, following code snippet will be helpful:
char msgname[20];
sprintf(msgname, "tic-%d", ++seq);
cMessage *msg = new cMessage(msgname);

Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY