---
# System prepended metadata

title: ICN Final Project Network Emulator

---

# ICN Final Project Network Emulator

## VM Install
### Step1 download ubuntu20.04
[ubuntu20.04](https://ubuntu.com/download/desktop)

### Step2 create VM environment
![](https://imgur.com/Brc2TPY.png)

![](https://imgur.com/QOqTATd.png)

![](https://imgur.com/a9MwTMI.png)

![](https://imgur.com/jTYGGdL.png)

![](https://imgur.com/M9DbGE5.png)

![](https://imgur.com/o2Q0o3s.png)

![](https://imgur.com/ZFLibri.png)

### Step3 Insert disk file
![](https://imgur.com/fO5EmYH.png)

![](https://imgur.com/cykrOZl.png)

![](https://imgur.com/9vdsUwf.png)

![](https://imgur.com/CEJHFp9.png)

![](https://imgur.com/rR6zNDn.png)

## VM setting : NAT
![](https://i.imgur.com/mNC2lYz.png)
![](https://i.imgur.com/YyNGzlb.png)
![](https://i.imgur.com/gwJfsjY.png)
![](https://i.imgur.com/742EqpI.png)
![](https://i.imgur.com/50MsGlo.png)
![](https://i.imgur.com/Y052f7V.png)

## Install donet
```
$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
$ sudo dpkg -i packages-microsoft-prod.deb`
$ sudo apt-get update; \
  sudo apt-get install -y apt-transport-https && \
  sudo apt-get update && \
  sudo apt-get install -y dotnet-sdk-5.0
```  
## Setting Emulator
```
$ sudo tc qdisc add dev enp0s3 root netem delay 45ms 15ms loss 10%
```
## Build C# project
```
#location :  ../gameserver/gameserver
$ dotnet restore; \ dotnet build; \ dotnet run
```

## reference
[1] https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
[2] https://linux.die.net/man/8/tc