# LAN Architectures

### Network Topology Types

* **Star** - when several devices all connect to one central device. It is often called **star topology**.
* **Full Mesh** - when all devices are connected to each other.
* **Partial Mesh** - when some devices are connected to each other but not all.

<figure><img src="https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2FUUqzQhYFwuAlMl6lW44d%2Fimage.png?alt=media&#x26;token=4e0544a8-8047-4871-b4a0-f32603931d1a" alt="types of network topology" width="563"><figcaption></figcaption></figure>

### Two-Tier LAN

The two-tier LAN (aka **Collapsed Core**) design consists of two hierarchical layers: **Access Layer** and **Distribution Layer** (aka **Aggregation Layer**).

The functions of the Access Layer:

* connects to end hosts (PCs, printers, cameras, etc.)
* typically Access Layer switches have lots of ports for end hosts to connect to
* QoS marking is typically done here
* security services like port security, DAI, etc. are typically performed here
* switchports might be PoE-enabled for wireless APs, IP phones, etc.

The functions of the Distribution Layer:

* aggregates connections from the Access Layer Switches
* typically is the border between Layer 2 and Layer 3
* connects to services (Internet, WAN, etc.)

<figure><img src="https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2F0EEg9uWHJ5BZYNafcpZQ%2Fimage.png?alt=media&#x26;token=3c036f90-8b82-4641-bb77-68428eea2779" alt="2-tier LAN example" width="563"><figcaption></figcaption></figure>

### Three-Tier LAN

In large networks with many Distribution Layer switches, the number of connections required between Distribution Layer switches grows rapidly. To help scale LAN networks, a Core Layer can be added. It is recommended to add a Core Layer if there are more than three Distribution Layers in a single location.

The function of the Core Layer:

* connects Distribution Layers in large LAN networks
* the focus is speed (**fast transport**)
* CPU-intensive operations like security, QoS marking/classification, etc. should be avoided at this Layer
* connections are all Layer 3, no spanning tree
* should maintain connectivity throughout the LAN even if devices fail

<figure><img src="https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2F6iSY4DTJjklcCGab284v%2Fimage.png?alt=media&#x26;token=5e319621-f183-4b11-85fa-80bd73726c89" alt="3-tier LAN example" width="563"><figcaption></figcaption></figure>

### Spine-Leaf Architecture

**Data centers** are dedicated spaces/buildings used to store computer systems like servers and network devices. Traditional data center designs used a three-tier architecture. This worked well when most of the traffic in data centers was North-South. With the precedence of virtual servers, applications are often deployed in a distributed manner (across multiple physical servers) which increases the amount of East-West traffic.

<figure><img src="https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2FgQq7DMMGqi14WVNfZAKn%2Fimage.png?alt=media&#x26;token=fa0bfa13-fe81-4624-a08f-2c5627dba58c" alt="north-south, east-west traffic " width="563"><figcaption></figcaption></figure>

The traditional three-tier architecture led to bottlenecks in bandwidth and variability in server-to-server latency. To solve this, Spine-Leaf architecture (aka Clos architecture) was developed.&#x20;

The rules of Spine-Leaf architecture:

* Every Leaf switch is connected to every Spine switch.
* Leaf switches do not connect to other Leaf switches.
* Spine switches do not connect to other Spine switches.
* End hosts only connect to Leaf switches.

The path of traffic is randomly chosen to balance the traffic load among the Spine switches. Each server is separated by the same number of hops (except those connected to the same Leaf). It provides consistent latency for East-West traffic.

<figure><img src="https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2FXoH1vUG6N12LPe6wjBAu%2Fimage.png?alt=media&#x26;token=59c3725a-14ab-4add-acce-a108a522d4bf" alt="Spine-Leaf architecture demo" width="563"><figcaption></figcaption></figure>

### SOHO

**SOHO** (Small Office/Home Office) is the office of a small company or a home with few devices. SOHO networks don't have complex needs, so all networking functions are typically provided by a single device, often called a **home router** or **wireless router**. This one device can serve as a router, switch, firewall, wireless access point, and modem at the same time.

<figure><img src="https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2FcTVbvm6MvfY6jKR3sbmN%2Fimage.png?alt=media&#x26;token=d4f36c22-6f19-48d4-a9e5-e739c088215b" alt="SOHO example" width="563"><figcaption></figcaption></figure>

{% file src="<https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2FJHlhDIdmEWXnpj9mqvcB%2FDay%2052%20%20Flashcards%20-%20LAN%20Architectures.apkg?alt=media&token=ef552efe-e08a-425c-9298-f7a02b1f28bf>" %}

{% file src="<https://3642595937-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKsHxwINrQaKCeVpC90i9%2Fuploads%2F2v84KqTw7TQX5mTULSlm%2FDay%2052%20Lab%20-%20STP%20_%20HSRP%20Synchronization.pkt?alt=media&token=7d6cee8b-5779-4c35-8131-ffb05233a4cc>" %}

{% embed url="<https://youtu.be/BgIEhyoETgU>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://citizenseven.gitbook.io/ccna-prep/lan-architectures.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
