The ethernet-traffic-generator (etg) device emulates a network adapter and generates traffic.
conf_object, log_object, ethernet_common, ethernet_cable
- cell-change
- Notifier that is triggered after the object's cell was changed.
- object-delete
- Notifier that is triggered just before Simics object is deleted.
- queue-change
- Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.
-
info
– print information about the object
-
packet-rate
– set or display the packets per second rate
-
packet-size
– set or display the packet size
-
start
– start generating traffic
-
status
– print status of the object
-
stop
– stop generating traffic
-
start_count
-
Optional attribute;
read/write access; type:
i
The number of packets to send after starting traffic generator, intended to be used by start signal.Zero value means an unlimited number of packets.
-
led_enabled_target
-
Optional attribute;
read/write access; type:
n|o|[os]
Enabled status LED, signal target.
-
countdown_target
-
Optional attribute;
read/write access; type:
n|o|[os]
Packets left to send (countdown), signal target.
-
crc_errors_target
-
Optional attribute;
read/write access; type:
n|o|[os]
The number of CRC errors seen, signal target.
-
link
-
Optional attribute;
read/write access; type:
o|n
The network link that this service node Ethernet device is attached to.
-
link_state
-
Optional attribute;
read/write access; type:
o|n
The network link that this service node Ethernet device is attached to (for checkpointing).
-
mac_address
-
Optional attribute;
read/write access; type:
s
Ethernet (MAC) address of the network interface.
-
ip
-
Required attribute;
read/write access; type:
s
IP address assigned to the device.
-
netmask
-
Required attribute;
read/write access; type:
s|i
Netmask defining the subnet for the device.
-
dst_ip
-
Required attribute;
read/write access; type:
s
IP address to send packets to.
-
gateway
-
Optional attribute;
read/write access; type:
s|n
IP address of gateway.
-
port
-
Optional attribute;
read/write access; type:
i
The port to send packets to and receive packets on.
-
pps
-
Optional attribute;
read/write access; type:
i
Number of packets per second to send.
-
packet_size
-
Optional attribute;
read/write access; type:
i
The size of data packets to send.
-
count
-
Optional attribute;
read/write access; type:
i|n
The number of packets left to send until traffic generation stops. A nil value means an unlimited number of packets.
-
state
-
Optional attribute;
read/write access; type:
i
Current state of traffic generator.
-
enabled
-
Optional attribute;
read/write access; type:
i
Set to 1 to enable traffic generation.
-
probe
-
Optional attribute;
read/write access; type:
b
Probe the connection with ICMP ECHO before generating traffic. This might help fill ARP caches in routers on the way to reduce the risk of dropping the first real packet.
-
model_crc
-
Optional attribute;
read/write access; type:
b
If set to true, the device will calculate and include an Ethernet CRC on all transmitted frames, and check the CRC on received frames.
-
ip_id
-
Optional attribute;
read/write access; type:
i
Internal state.
-
receive_stats
-
Optional attribute;
read/write access; type:
i
Internal state.
-
rx_packets
-
Optional attribute;
read/write access; type:
i
Internal state.
-
rx_bytes
-
Optional attribute;
read/write access; type:
i
Internal state.
-
neighbors
-
Optional attribute;
read/write access; type:
D
Internal state.
-
total_rx_packets
-
Optional attribute;
read/write access; type:
i
Total number of UDP packets received on the test port.
-
total_tx_packets
-
Optional attribute;
read/write access; type:
i
Total number of UDP packets transmitted on the test port.
-
crc_errors
-
Optional attribute;
read/write access; type:
i
The number of CRC errors seen.
etg