0% found this document useful (0 votes)
67 views11 pages

Analyzing 5G Protocols in Lab

This document provides instructions for a laboratory session to analyze 5G protocols by implementing a test setup using virtual machines. The objectives are to familiarize students with 5G protocols. The procedure guides importing virtual machines, configuring the network, running tests on the 5G core network to test registration using scripts, capturing network traffic, and analyzing the output using Wireshark.

Uploaded by

samitha deshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views11 pages

Analyzing 5G Protocols in Lab

This document provides instructions for a laboratory session to analyze 5G protocols by implementing a test setup using virtual machines. The objectives are to familiarize students with 5G protocols. The procedure guides importing virtual machines, configuring the network, running tests on the 5G core network to test registration using scripts, capturing network traffic, and analyzing the output using Wireshark.

Uploaded by

samitha deshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

FACULTY OF ENGINEERING, UNIVERSITY OF JAFFNA

EC9110 – MODERN MOBILE COMMUNICATION


LABORATARY SESSION 1

ANALYSING 5G PROTOCOLS

1. OBJECTIVE

● To familiarize 5G Protocols via implementation in lab setup.

2. APPARATUS
● A computer with the software
o Oracle VM Virtual Box
o Wireshark
o Putty
o FileZilla

3. PROCEDURE

I. Import VMs to Oracle VirtualBox

1. Open Oracle VM VirtualBox

Figure 1

Page 1 of 11
2. Click on the File and then click on Import Appliance. You can also import
the virtual machine by pressing CTRL+I on the keyboard.

Figure 2

3. Under Appliance to import choose the source to import the virtual machine
from. This can be a local system to import the OVF archive. Under file choose
the “free5gc.ova”.Click Next.

Figure 3

Page 2 of 11
4. Under Appliance settings perform the initial configurations. Under MAC
address Policy select the option Include all network address MAC
addresses and then click Import.

Figure 4

5. Wait until Oracle VM VirtualBox finishes the procedure of importing the


virtual machine.

Page 3 of 11
Figure 5

6. Congratulations. You have successfully imported your virtual machine.

Figure 6

7. Right click on the virtual machine, click Start and then click Normal Start.

Figure 7

8. Follow, the above steps again to import and run the VM for UERANSIM
using “ueransim.ova”.

9. Use the following credentials to login to both VMs.


Username: ubuntu

Page 4 of 11
Password: ubuntu
10. Run ifconfig in both VMs to see if the network settings.
For free5gc VM,

Figure 8

For ueransim VM,

Figure 9

Page 5 of 11
II. Use the Putty Terminal to SSH into the VM
1. Open Putty.

2. Enter the Host IP address

3. Select the option SSH

4. Click Open.

Figure 10

Page 6 of 11
III. Testing free5gc Core Network
1. In the VirtualBox Terminal for the free5gc VM ,

Run the command

sudo tcpdump –i lo –w 201xexxx.pcap

Figure 11

2. In the putty Terminal for the free5gc VM, login and run the following
commands.

(a) In order to run the tests, first,

cd ~/free5gc
(The tests are run within ~/free5gc)

(b) To test Registration,

./test.sh TestRegistration

Page 7 of 11
Figure 12

3. After the test is complete in Putty Terminal, Kill the process in the Virtual Box
terminal for the free5gc VM

Figure 13

Page 8 of 11
Figure 14

Page 9 of 11
IV. Moving a file from the VM to Host PC
In order to move the .pcap file generated,
1. Open FileZilla Client.
2. To login to the VM enter the credentials, and click Quickconnect.

Host : 192.168.56.101
Username : ubuntu
Password : ubuntu
Port : 22

3. Locate the file on the VM and drag and drop into a directory on the host PC.

Figure 15

Page 10 of 11
V. Analyzing .pcap using Wireshark
1. Open Wireshark

2. Go to File -> Open and select the .pcap file discussed above and click Open.

3. Apply ngap filter.

Expected Sample Output:

Figure 16

4. DISCUSSION

1. What is the protocol stack used in SCTP? port used between eNB and SMF?
2. What is PLMN Identity? MNC ? MCC?
3. What is user identity?

Page 11 of 11

You might also like