Skip to content

File Downloading

Here we will be demostrating the use case of downloading a file file from a server where both the server and client utlizes 5G for their connectiity. In this example, two User Equipments(UEs) will created where one will act as a simple HTTP server which includes several files available to be downloaded. The other UE will be used for downloading a selected file from the server as a client through the 5G network. An overall system overview is shown the below diagram.

Connection Diagram

System architecture for downloading files

Deployment Guide

For this example, we need to have the 5G core network, 5G gNB and 2 UEs running on the server. You can refer to the Initial Network Connection for necessary instructions. Once two UEs are deployed and running, we need to open a terminal window inside the UE, for this purpose click attach shell on both the UE containers as shown below.

Console Attach UE

Attaching a shell to the NR-UEs (Click to zoom)

Now we can set up one container as the Server and the other as the Client.

Creating the Server

We will be using a node-js based program to create the server and it is already included in the AWS image file. Therefore to start the server, simply type the following command in the terminal inside the server UE.

http-server

If the server starts successfully, you can see an output similar to the following image on your terminal. The server ip address is also mentioned there, which you will need when connecting from the client, therefore copy it or keep it noted down. (In this case it is http://12.1.1.2:8080)

HTTP Server

Starting the HTTP server on the server UE. Note the 5G network IP address of the format 12.1.1.X.

Connecting from the client

To connect and download file from the server, first open a terminal window inside the client UE and then type the following command. Please note that you have to replace the IP address portion of the command with the IP address you obtained when creating the server in the previos step.

wget http://12.1.1.2:8080/Test_Video.mp4

Now you can see that the file is being downloaded from the server to the client over the 5G network. The network speed and other performance parametrics heavil depend on the system specifications as this is a simulation and the performance observed here might not accurately depict real life performance.

WGET

Successful file download from the server NR-UE (Click to zoom)

Below are some of the downlink speed figures we obtained at our testing sessions for different file sizes. In the AWS setup these values will eoughly remain the same if you follow our exact specifications while largely deviate on any change in the system specifications

File Size Speed Total Time
10 Mb 1.06 Mb/s 9.3s
100 Mb 1.01 Mb/s 99s
440 Mb 1.01 Mb/s 7m 15s