Skip to content

This project simulates a simple local area network communication using Python.

Notifications You must be signed in to change notification settings

Wendy-Ying/Minimum-Sim-LAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum Sim LAN

This project simulates a simple local area network communication using Python. The project introduction is here. The report is here.

cool!

image

task1: bus implementation

implemention here, test here

task2: star implementation

implemention here, test here

task3: more complex Sim-LAN

Switch table update when interface/MAC changes

When new source/destination is from an old mac with new interface/old interface with new mac, it will be update.

Key changes in add_mac(self, mac, interface).

Encrypted Packets

The packages are encrypted and decrypted.

Key changes in send_packet(self, dst_mac, payload, switch), receive_packet(self, packet).

Modulation

Using python to do modulation, we can transfer the string to digits and transmitt them. Write modulation module and demoulation module.

Key changes in string2digital(message), digital2string(message)

Firewall

Firewall is very important for the true network. The program allows adding firewall rule and block them.

Key changes in check_firewall(self, packet)

Final Result

All works are integrated into here.

About

This project simulates a simple local area network communication using Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages