1.11.1 User mode networking

User mode networking emulates a built-in IP router and DHCP server, and routes TCP and UDP traffic between the guest and host. It uses the user mode socket layer of the host to communicate with other hosts.

This allows the use of a significant number of IP network services without requiring administrative privileges, or the installation of a separate driver on the host on which the model is running. Fast Models supports the following kinds of Ethernet device models:

SMSC_91C111
This is paired with an external HostBridge component. The user mode networking specification is set on the external HostBridge.
VirtioNetMMIO
This has a built-in HostBridge sub-component. The user mode networking specification is set on the internal HostBridge.

Note:

  • You can use TCP and UDP over IP, but not ICMP (ping).
  • You can only use DHCP within the private network.
  • You can only make inward connections by mapping ports on the host to the model. This is common to all implementations that provide host connectivity using NAT.
  • Operations that require privileged source ports, for example NFS in its default configuration, do not work.
  • If setup fails, or the parameter syntax is incorrect, there is no error reporting.

To set up user mode networking, run the model with CADI parameters that activate the components:

SMSC_91C111:
-C motherboard.hostbridge.userNetworking=true
-C motherboard.smsc_91c111.enabled=true
VirtioNetMMIO:
-C motherboard.virtio_net.hostbridge.userNetworking=true
-C motherboard.virtio_net.enabled=true

To map a host port to a model port, run the model with userNetPorts:

SMSC_91C111:
-C motherboard.hostbridge.userNetPorts=8022=22
VirtioNetMMIO:
-C motherboard.virtio_net.hostbridge.userNetPorts=8022=22

This parameter maps port 8022 on the host to port 22 on the model.

Non-ConfidentialPDF file icon PDF version100964_1161_00_en
Copyright © 2014–2019 Arm Limited or its affiliates. All rights reserved.