
Model a Packet Switch
5-17
Generate Packets
The packet switch example models each packet as an entity. The Time-Based Entity
Generator block creates entities. To implement exponentially distributed intergeneration
times between successive entities from each source, the block has its Distribution
parameter set to Exponential.
Attached to each entity are these pieces of data, stored in attributes:
• The source of the packet, an integer between 1 and 3
• The destination of the packet, a random integer between 1 and 3
• The length of the packet, a random integer between 6 and 10
Kommentare zu diesen Handbüchern