Skip to content

Commit

Permalink
- Changed the name to BeASwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Albrecht committed Mar 5, 2021
1 parent bdefa06 commit c8f384a
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 28 deletions.
4 changes: 2 additions & 2 deletions App.xaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Application x:Class="VLANSimulator.App"
<Application x:Class="BeASwitch.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:VLANSimulator"
xmlns:local="clr-namespace:BeASwitch"
StartupUri="MainWindow.xaml">
<Application.Resources>

Expand Down
2 changes: 1 addition & 1 deletion App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Threading.Tasks;
using System.Windows;

namespace VLANSimulator
namespace BeASwitch
{
/// <summary>
/// Interaction logic for App.xaml
Expand Down
15 changes: 8 additions & 7 deletions VLANSimulator.csproj → BeASwitch.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
<UseWPF>true</UseWPF>
<ApplicationIcon>networkswitch_Xpb_icon.ico</ApplicationIcon>
<Authors>Philipp Albrecht</Authors>
<Product>VLAN Simulator</Product>
<PackageProjectUrl>https://github.com/muqiuq/vlansimulator</PackageProjectUrl>
<Product>Be a Switch</Product>
<PackageProjectUrl>https://github.com/muqiuq/BeASwitch</PackageProjectUrl>
<PackageIcon>networkswitch.png</PackageIcon>
<RepositoryUrl>https://github.com/muqiuq/vlansimulator</RepositoryUrl>
<StartupObject>VLANSimulator.App</StartupObject>
<AssemblyVersion>1.3.0.0</AssemblyVersion>
<FileVersion>1.3.0.0</FileVersion>
<Version>1.3.0</Version>
<RepositoryUrl>https://github.com/muqiuq/BeASwitch</RepositoryUrl>
<StartupObject>BeASwitch.App</StartupObject>
<AssemblyVersion>1.3.1.0</AssemblyVersion>
<FileVersion>1.3.1.0</FileVersion>
<Version>1.3.1</Version>
<PackageId>BeASwitch</PackageId>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion CustomExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public static class CustomExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion EthernetFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Windows.Media;
using System.Windows.Shapes;

namespace VLANSimulator
namespace BeASwitch
{
public class EthernetFrame
{
Expand Down
2 changes: 1 addition & 1 deletion EthernetHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public class EthernetHost
{
Expand Down
2 changes: 1 addition & 1 deletion GameEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Text;
using System.Linq;

namespace VLANSimulator
namespace BeASwitch
{
public class GameEngine
{
Expand Down
2 changes: 1 addition & 1 deletion GameState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public enum GameState
{
Expand Down
2 changes: 1 addition & 1 deletion MacTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public class MacTable
{
Expand Down
6 changes: 3 additions & 3 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Window x:Class="VLANSimulator.MainWindow"
<Window x:Class="BeASwitch.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:VLANSimulator"
xmlns:local="clr-namespace:BeASwitch"
mc:Ignorable="d"
Title="VLAN Switch Simulator by Philipp Albrecht &lt;[email protected]&gt; https://github.com/muqiuq/vlansimulator" Height="630" Width="930" ResizeMode="NoResize">
Title="Be a Switch - https://github.com/muqiuq/BeASwitch" Height="630" Width="930" ResizeMode="NoResize">
<Grid x:Name="mainGrid">
<Button x:Name="buttonCheck" Content="Start" HorizontalAlignment="Left" Margin="320,449,0,0" VerticalAlignment="Top" Click="buttonCheckClick" Width="270" Height="41" FontSize="16"/>
<TextBox x:Name="textBoxMacTables" HorizontalAlignment="Left" Margin="320,10,0,0" Text="MAC address tables are empty" TextWrapping="Wrap" VerticalAlignment="Top" Width="270" Height="433" FontFamily="Courier New" FontSize="14"/>
Expand Down
2 changes: 1 addition & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace VLANSimulator
namespace BeASwitch
{
/// <summary>
/// Interaction logic for MainWindow.xaml
Expand Down
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# VLAN Simulator
# Be a switch

This application allows to train the switching logic of vlan enabled switches.
Understanding the basic concepts of an ethernet switch can be challenging in the beginning. All the new technical terms, IEEE industry standards names and CLI configuration can easily overwhelm a young networker.

This application is a draft for a concept where the user learns how a switch works by making the switching decisions himself.
The user is prompted one ethernet frame after another. For each those he decides on which ports the frames should be sent. He learns by try-and-error. When he reaches a 100% success rate, he’s able to “think like a switch”.

This current available version focuses on VLANs and is shipped as a Windows WPF application. Long term goal is to develop a lightweight WebApp.
Feel free to use this application for your class or self-studying.
Feedback is welcome!


# About me

I'm a young teacher and I like to develop learning tools in my free time for my students. Any support is highly appreciated.

<a href="https://www.buymeacoffee.com/muqiuq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 108px !important;" ></a>
2 changes: 1 addition & 1 deletion SendAndTagDecisionPerPort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public class SendAndTagDecisionPerPort
{
Expand Down
2 changes: 1 addition & 1 deletion SwitchAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public class SwitchAction
{
Expand Down
2 changes: 1 addition & 1 deletion SwitchActionType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public enum SwitchActionType
{
Expand Down
2 changes: 1 addition & 1 deletion SwitchEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public class SwitchEngine : ICollection<SwitchPort>
{
Expand Down
2 changes: 1 addition & 1 deletion SwitchPort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace VLANSimulator
namespace BeASwitch
{
public class SwitchPort
{
Expand Down
2 changes: 1 addition & 1 deletion UserScore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace VLANSimulator
namespace BeASwitch
{
public class UserScore
{
Expand Down

0 comments on commit c8f384a

Please sign in to comment.