dcrankshaw / vrouter Goto Github PK
View Code? Open in Web Editor NEWCNF Project 2
CNF Project 2
EN.600.344 Computer Network Fundamentals Project 2 - Virtual Network Server (VNS) Group 1 Dan Crankshaw Maddie Stone Adam Gross Our implementation of Stanford's VNS stub code provides for a fully functional router, allowing internal machines to create outbound connections and transfer packets. The router is capable of responding to ICMP and ARP queries. It forwards packets from the Internet at large to the internal application servers. Below is a breakdown of the specific designs: ARP packet handling: The router generates ARP requests when it doesn't know the MAC address of a specified IP address destination. When an interface of the router receives an ARP request, it replies with the interface's MAC address in an ARP reply packet. ICMP packet handling: Correctly handles pings and traceroutes through the router. The router generates ICMP responses based on ICMP "echo" packets (type 8). Any other ICMP requests are dropped by the router. When the router receives a packet for which the TTL has expired, an ICMP "timeout" packet is generated and sent back to the packet's sender. If 5 ARPs receive no response, an ICMP "destination unreachable: port unreachable" packet is generated and sent. If the flow table is full, an ICMP "destination unreachable: host unreachable" packet is generated and sent. TCP/UDP packet handling: Sends ICMP "port unreachable" when a TCP/UDP packet is destined for an internal interface. Correctly forwards packets destined for the internal application servers. Firewall access protection: The primary function of the firewall is to prevent the router from forwarding unwanted packets to the internal application servers. Interfaces are defined to be either external or internal. Packets arriving to the external interface and destined to an internal interface are silently dropped. Packets may only be forwarded if an internal application server has initiated the connection, or the external application matches a rule in the rule table. Configuration settings: To change the filenames for the rules table and the interface configuration, see the definitions in sr_router.c. To change the TTL values and maximum flow table size, see the definitions in fw.h. To change the ARP timeout value, see the definition in arp.h.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.