You copied the Doc URL to your clipboard.

HostBridge component

This section describes the HostBridge component.

HostBridge - about

This LISA+ component is a model of a networking gateway to exchange Ethernet packets with a TAP device on the host, and to forward packets to NIC models.

An alternative to this TAP/TUN method is user mode networking, which emulates a built-in IP router and DHCP server to route traffic by means of the host user mode socket layer.

HostBridge - ports

This section describes the ports.

Table 4-96 HostBridge ports

Name Protocol Type Description
eth VirtualEthernet Master Send or receive Ethernet frame

HostBridge - parameters

This section describes the parameters.

Table 4-97 HostBridge parameters

Name Type Allowed values Default value Description

interfaceName

string

Valid string characters

'ARM0'

Host interface.

userNetPorts string Formatted string ''

Specifies an optional port number mapping between listening ports on the host and listening ports on the model. The syntax is a comma-separated list of items in the form [host-ip:]hostport=[model-ip:]modelport. For example, 5022=22,5080=80 causes sshd and httpd services on the model to listen on ports 5022 and 5080 on the host. You can use the optional host-ip or model-ip to select a specific interface for the mapping, for example 127.0.0.1. The default is to accept connections on any interface (INADDR_ANY).

userNetSubnet string Formatted string '172.20.51.0/24' Presents a range of subnet network addresses to the model, in the ip-address/significant-bits syntax, for example 192.168.0.0/24 or 10.0.0.0/8. Omitting trailing zero octets is acceptable, for example 192.168/16. The default subnet is 172.20.51.0/24, taken from the RFC1918 private-use area.
userNetworking bool true, false false If true, the outgoing Ethernet packets of the model go to a proxy router that translates them into host socket calls. If false (default) the model attempts to open a TAP/TUN device.a

HostBridge - verification and testing

This component passes tests as part of a system with network functionalities.

HostBridge - performance

ARM® expects this component to have little effect on the performance of PV systems. However, heavy usage on the networking of the model, for example to run networking performance tests, might slow down the simulation.

a

TAP/TUN mode is enabled by default, and is disabled when user mode is in use.

Was this page helpful? Yes No