Lab7 PDF
Lab7 PDF
Introduction
This tutorial assumes that you completed the Packet
Switching I tutorial.
1
The Expanded Network
2
Getting Started
Begin by opening the project you created in the
Packet Switching I lesson.
1 Close any editors you still have open from the last
lesson.
3
Enhancing the Node Model
4
Transmitter and Receiver Added to the Hub Node
6
Associating Transmitters and Receivers
To ensure the correct transmitter/receiver pairs are
used when connecting links to nodes at the network
level, you can logically associate pairs of transmitters
and receivers:
7
3 When you are finished, save the node model and
close the Node Editor.
8
Adding a New Subnet
Now that an extra transmitter/receiver pair is available,
the network model can be expanded to connect an
additional subnet using point-to-point links.
9
Placing the Second Subnet
10
Adding a user id Attribute
You also need to add a user id attribute so each
subnet can be uniquely identified when routing
packets.
11
Redefining the Packet Format
There are several ways to deal with the problem of
node addressing in different subnets. Adding a packet
field that identifies the subnet of the destination node
is an easy method.
12
Changing the Attributes
13
Modifying the Process Model
Before the new network configuration will work, the
hub and peripheral node process models must be
modified to handle the routing of packets between the
two subnets.
14
op_pk_send (pkptr, XMT_OUT_STRM);
FOUT;
15
1 Open the <initials>_pksw_hub_proc model in
the Process Editor.
16
1 Open the Header Block and add the line of code
marked in bold text:
#define PK_ARRVL (op_intrpt_type () == OPC_INTRPT_STRM)
#define OTHER_SUBNET_STRM 4
17
The second statement uses this value as an
argument to the op_ima_obj_attr_get_int32()
procedure to obtain the user id attribute of the
subnet.
19
Running the Simulation
Now that all the enhancements to the model are
complete, you can run the simulations.
21
Viewing Results
You can now determine how the addition of a second
subnet affects the simulation results by reviewing the
graph of ETE delay:
22
Choosing ETE Delay Statistics
4 Click Show.
➥ The graph opens in a new window.
23
ETE Delay Graph