> For the complete documentation index, see [llms.txt](https://phiph.gitbook.io/foundation-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://phiph.gitbook.io/foundation-1/network/design.md). Agents can also search and read this documentation through its [MCP server](https://phiph.gitbook.io/foundation-1/~gitbook/mcp).

# Design

* Network Design Techniques
* Network Design Principles
* Network Design Fundamentals

## Network Design Fundamentals

These are `foundational` elements

* Mindset
* Requirements
* Design use cases
* The business
* Constraints
* Why

### Mindset

* You need to have design mindset
* Implementation mindset will not work

### Requirements

Functional requirements

* What system will delivery to the business from technological point of view
* Find and document functional requirements - designers responsibility

Technical requirements

* These are non functional requirements
* Provide details about security, availability and integration
* They are very dynamic, change often
* Example 1: support high level of network availability: FHRP
* Example 2: Support integratioon with network services: Netflow
* They help to specify features and protocols, software versions which support them

Application requirements

* End users: customers, internal users, business partners
* Network should deliver the desired level of user expectation
* Application requirements can generate functional requirements

+Unstated requirements

### Design use cases

* Greenfield - from scratch
* Brownfield - Production environment already exists
* Add technology or application
* Replace technology
* Merge or divest different networks - one of the most difficult
* Scaling a network
* Design failure - when you are asked to fix - example: STP root bridge and FHRP active device are different devices

### The buisiness

* We do design for business to make money

### Constraints

* Business constarints - budjet, staff...
* Application constraints - mandatory L2, hard coded IPs....
* Technology constraints - vendor

Some of main constraints

* Cost
* Time
* Location - no fiber on site
* Infrastructure
* Staff expertise

## Network Design Principles

* Security
* Scalability
* Availability
* Cost
* Manageability

### Security

* Perimeter security - turtle shell - legacy - firewall on perimeter - east-west is not limited
* Session and transaction based security - 100% authentication and 100% authorization - ?
* Zero Trust Architecture - AI - Every device, user, application, server, service is assigned a trust score

### Availability

* Redundancy - multiple resources doing the same role
* Resilience - the ability of network to automatically failover
* Reliability - how much data passes network without loses
* The more availability - the more complexity and cost
* Main goal is app and service availability
* Network is a plumbing
* Availability requirements are unstated by the customer
* You need to talk to app developers and understand what it is dependent on

### Manageability

* Keep it super simple
* Do not create networks which require CCIE
* Your design should be managed by staff who operates the networks

### Scalability

* Grow with business

### Cost

* Not only money - personel, time, technical cost

## Network design techniques

* Failure isolation - large l2 domain is dangerous - we may connect hub and generate
* Can be done in every network protocol

## RA VPN

* Where to put VPN termination device
  * `Internet > VPN server > Firewall > Core`
  * `Internet > VPN server > Core`
  * `Internet > Firewall > VPN Server (DMZ) > Firewall > Core`
* How it wil propogate routes to VPN IP pools? Routing protocol? NAT?
* How user will be authenticated?
* Split tunneling?
* Firewall rules
* Number of simulteneous VPN connections
* Bandwidth
* Two factor authentication
* Protocol used - SSL or IPSec.
* Differentiated access—The remote access VPN is configured to provide different access policies depending on assigned user roles.
* Strong encryption for data privacy—The Advanced Encryption Standard (AES) cipher with a key length of 256 bits is used for encrypting user data. Additional ciphers are also supported.
* Hashing for data integrity—The Secure Hash Standard 1 (SHA-1) cryptographic hash function with a 160-bit message digest is used to ensure that data has not been modified during transit.
* Internet link resiliency—A backup server reachable through the secondary ISP is configured in the AnyConnect client profile. This backup server is automatically used if the primary server is not reachable.
* Default route via corporate Firewall/IPS for remote users
* User groups which are allowed to access VPN

## Firewall

* Firewall is always connected to switch only, usually with LACP, and all vlans are delivired via it.
* The perfect scheme is to use different switches for internal and external connection.
* Firewall have to be connected with 2 stacked switches via fiber via LACP!!!
* So, in most cases all interfaces will be called bond1.X except management 🙂
* Draw L3 diagramm using routing tables.
* Draw schematic L2 diagram to fully understand a network.
* Diagram should be symmetric and streched
* Power via different UPS
* Check which cables and speeds are used between main switches in order to understand which speed is required to connect Firewall
* All networks, even if the same VLAN and interface draw as separate networks
* How backup is organized? It will clutter any fw. It should work directly

Possible network segments:

* Security
* Infrastructure systems
* Information systems
* Crytical systems
* Management
* Campus
* Technological
* DMZ

Data to request:

* L2 diagram
* L3 diagram
* Location of network devices
* Configs of network devices
* Routing table of network devices

L2 mode

If we inject firewall in L2 mode, several options exist:

* Between two incontrollable switches
* Inline (impossible if we use cluster)
* On the side of controllable switch via forward domains

Pre-Deployment checklist

* Latest firmware and updates are installed - negotiate with customer
* License
* Management network routing, how logs are sent, how AD integration is made
* Hardware and software acceleration - provision in advance
* Prepare suitable USB sticks
* Think over RAID levels if it is required
* Prepare data sheets, hardware guides, quick start guides
* Think over exact location in rack, units number
* Amount of patch cords and their length
* Шестигранники, отвертки, стяжки, болты, гайки, салазки, нож
* USB to com converter
* Обжимщик, принтер, коннекторы
* Провода питания - длина, разьем
* Check access via LOM and MGMT if applicable
* Console cable
* Распечатать таблицу коммутации, все схемы
* Download all required guides
* Copy to laptop all docs
* Exact address, contact person, pass
* IPs for all interfaces
* Make sure that devices have arrived
* Packets to take tailings back
* After installation check everything with pings
* Check that cables are connected VERY well
* One device installation is about 3 hours
* Think over sync cables connection based on real ports location
* Check both nodes in a cluster
* Enable portfast - ?

PFR checklist:

* LAN
* TKTS
* DMZ
* Inet
* Proxy address - and connection to it
* Континент СУФД
* Прописать в випнете для связи с Менеджером
* Default route to ZS\_C
* Draw L2 mode on L3 diagram
* Use only approved transit networks
* Which vipnet is a default gateway for every server
* Full L2 diagram!!!!
* 238, 236 VLAN
* Mark new networks with red
* Mark L2 mode with green

Post-deployment check list

* Hostname
* VDOMS
* NTP
* DNS
* Session timeout
* Password policy
* Interfaces + mask
* Routes
* Management interfaces
* HA
* Logging
* Admin password + admin accounts
