Below is a browsable image of the model.
Here the Camera module is a traffic generator. There are many configurations that need to be setup. The user will start with a VisualSim distribution-driven workload generation. If the designers have any trace files captured from the real hardware then those files can be used as source files. AVB_Node and the AVB Switch are provided as a library block in VisualSim. Every Traffic generator (Camera) will be connected to a Node block. Multiple Nodes will be connected to the AVB_Switch. The Network Config will define the following BW for each type, Class to Type mapping, Master Clock schedule, traffic schedule, bandwidth for each link. The Recorder can do the capture and storage.
Reservation of bandwidth for a specific stream type can be defined in a table as shown below
ID Type
Node_1
Node_2
Node_3
Bridge_4
Node_5
;
0
0
25.0
25.0
25.0
25.0 0.0 ; /*
Background
*/
1
1
0.0
0.0
0.0
0.0
0.0 ; /* Best
Effort
*/
2
2
0.0
0.0
0.0
0.0
0.0 ; /* Excellent
Effort
*/
3
3
40.0
40.0
40.0
40.0 50.0
; /* Video 50ms latency
*/
4
4
0.0
0.0
0.0
0.0
0.0 ; /* Critical
Apps
*/
5
5
25.0
25.0
25.0
35.0 45.0
; /* Video 2ms
latency */
6
6
0.0
0.0
0.0
0.0
0.0 ; /* Internet
Control
*/
This pre-allocates bandwidth, based on AVB, other Ethernet Type bits. The bandwidth can be allocated at each node, or bridge; as long as it is equal to or less than 100.0 Mbps or 1.0 Gbps speed of Ethernet. If the bandwidth is greater than 100.0 at a Bridge, for example, the model will generate an exception to the user. Type 0, is Ethernet background traffic in this example.
Similarly, in the Traffic database blocks, one can set the bandwidth for each traffic stream, notice column in bold:
ID Identifier
Task_Source Task_Destination Mbps Task_Size
Start_Time Stop_Time
Protocol Type ;
1
"00:01"
Node_1 Node_5
2.0
128 10.0E-03
0.5 UDP
1 ;
2
"00:02"
Node_1 Node_5
2.0 512 10.0E-03
0.5 UDP
1 ;
3
"00:03"
Node_1 Node_5
5.0
1024 10.0E-03
0.5 UDP
1 ;
So, by a combination of pre-allocating bandwidth for the nodes and bridges by Type; and sending in Traffic streams with a predetermined bandwidth; one will see the effect of over allocating data streams for an available bandwidth.
AVB streams have 25.0 to 50.0 Mbps bandwidth pre-allocated in the above table. If a node or bridge does not have an AVB packets to send, based on their bandwidth allocation, then this bandwidth will be available to other Ethernet Types, such as data packets. This way AVB model adapts to current AVB traffic, data traffic.
The model generates mainly 4 different pieces of information; latency stats for all AVB streams, activity stats for listeners, bridge and talkers, graphical latency plot for each AVB stream, histogram of the latency for each stream. Figure 2.0 is the sample latency graph.