Skip to content

Commit

Permalink
commit 2
Browse files Browse the repository at this point in the history
Phong Ngo committed Sep 17, 2024
1 parent 62110ad commit e78bbec
Showing 16 changed files with 111 additions and 113 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ jobs:
cp -R public/* ${GITHUB_WORKSPACE}/built-site/
cd ${GITHUB_WORKSPACE}/built-site
git add .
git config user.name 'dhij'
git config user.email 'davidhwang.ij@gmail.com'
git config user.name 'PhongNgoLam'
git config user.email 'ngophong010@gmail.com'
git commit -m 'Updated site'
git push
git push
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.hugo_build.lock
public/
resources/
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[submodule "themes/hugo-theme-learn"]
path = themes/hugo-theme-learn
url = https://github.com/matcornic/hugo-theme-learn.git

[submodule "public"]
path = public
url = https://github.com/ngophong010/Workshop001.git
10 changes: 5 additions & 5 deletions content/1-Introduce/_index.md
Original file line number Diff line number Diff line change
@@ -25,22 +25,22 @@ If you prefer this content in video form, check out these videos from Practical
- [Network Devices - Hub, Bridge, Switch, Router - Networking Fundamentals - Lesson 1b](https://www.youtube.com/watch?v=H7-NR3Q3BeI&list=PLIFyRwBY_4bRLmKfP1KnZA6rZbRHtxmXi&index=3)

**Host** are any devices which send or receive traffic.
![Host](/images/1.introduce/001-host.png)
![Host](/Workshop001/images/1.introduce/001-host.png)

**IP Address** the identity of each host.
![IP Address](/images/1.introduce/002-IPAddress.png)
![IP Address](/Workshop001/images/1.introduce/002-IPAddress.png)

**Network** is what transports traffic between hosts. If we did not have networks there would be a lot of manual movement of data!

A logical group of hosts which require similar connectivity.
![Network](/images/1.introduce/003-network.png)
![Network](/Workshop001/images/1.introduce/003-network.png)

**Switches** facilitate communication **within** a network. A switch forwards data packets between hosts. A switch sends packets directly to hosts.

- Network: A Grouping of hosts which require similar connectivity.
- Hosts on a Network share the same IP address space.

![Switch](/images/1.introduce/004-switches.png)
![Switch](/Workshop001/images/1.introduce/004-switches.png)

**Router** facilitates communication between networks. As we said before that a switch looks after communication within a network a router allows us to join these networks together or at least give them access to each other if permitted.

@@ -51,7 +51,7 @@ Routers learn which networks they are attached to. These are known as routes, a
A router has an IP address in the networks they are attached to. This IP is also going to be each host's way out of their local network also known as a gateway.

Routers also create the hierarchy in networks I mentioned earlier.
![Switch](/images/1.introduce/005-router.png)
![Switch](/Workshop001/images/1.introduce/005-router.png)

### Switches vs Routers
**Routing** is the process of moving data between networks.
10 changes: 5 additions & 5 deletions content/1-Introduce/_index.vi.md
Original file line number Diff line number Diff line change
@@ -26,24 +26,24 @@ Nếu bạn thích nội dung này dưới dạng video, hãy xem các video t

**Host** là bất kỳ thiết bị nào gửi hoặc nhận lưu lượng.

![Host](/images/1.introduce/001-host.png)
![Host](/Workshop001/images/1.introduce/001-host.png)

**Địa chỉ IP** là danh tính của mỗi host.

![Địa chỉ IP](/images/1.introduce/002-IPAddress.png)
![Địa chỉ IP](/Workshop001/images/1.introduce/002-IPAddress.png)

**Mạng** là cái gì đó vận chuyển lưu lượng giữa các host. Nếu không có mạng, sẽ có rất nhiều chuyển động dữ liệu thủ công!

Một nhóm logic của các host cần có kết nối tương tự.

![Mạng](/images/1.introduce/003-network.png)
![Mạng](/Workshop001/images/1.introduce/003-network.png)

**Switch** tạo điều kiện cho việc giao tiếp **trong** một mạng. Một switch chuyển tiếp các gói dữ liệu giữa các host. Một switch gửi gói đến trực tiếp các host.

- Mạng: Một nhóm các host cần có kết nối tương tự.
- Các host trên một mạng chia sẻ cùng một không gian địa chỉ IP.

![Switch](/images/1.introduce/004-switches.png)
![Switch](/Workshop001/images/1.introduce/004-switches.png)

**Router** tạo điều kiện cho việc giao tiếp giữa các mạng. Như chúng ta đã nói trước đó, một switch quản lý giao tiếp trong một mạng, trong khi router cho phép chúng ta kết nối các mạng này với nhau hoặc ít nhất là cho phép chúng truy cập lẫn nhau nếu được phép.

@@ -55,7 +55,7 @@ Một router có một địa chỉ IP trong các mạng mà nó được kết

Router cũng tạo ra sự phân cấp trong các mạng mà tôi đã đề cập trước đó.

![Router](/images/1.introduce/005-router.png)
![Router](/Workshop001/images/1.introduce/005-router.png)

### Switch so với Router
**Định tuyến** là quá trình di chuyển dữ liệu giữa các mạng.
16 changes: 8 additions & 8 deletions content/2-OSIModel/_index.md
Original file line number Diff line number Diff line change
@@ -20,21 +20,21 @@ The rules for networking are divided into seven different layers and those layer

#### Introduction to the OSI Model
The OSI Model (Open Systems Interconnection Model) is a framework used to describe the functions of a networking system. The OSI model characterises computing functions into a universal set of rules and requirements to support interoperability between different products and software. In the OSI reference model, the communications between a computing system are split into seven different abstraction layers: **Physical, Data Link, Network, Transport, Session, Presentation, and Application.**
![the OSI Model](/images/2.OSIModel/001-theOSIModel.png)
![the OSI Model](/Workshop001/images/2.OSIModel/001-theOSIModel.png)

#### Physical
Layer 1 in the OSI model and this is known as physical, the premise of being able to get data from one host to another through a means be it physical cable or we could also consider Wi-Fi in this layer as well. We might also see some more legacy hardware seen here around hubs and repeaters to transport the data from one host to another.
![Physical Layer](/images/2.OSIModel/002-physical.png)
![Physical Layer](/Workshop001/images/2.OSIModel/002-physical.png)

#### Data Link
Layer 2, the data link enables a node to node transfer where data is packaged into frames. There is also a level of error correcting that might have occurred at the physical layer. This is also where we introduce or first see MAC addresses.
![Data Link Layer](/images/2.OSIModel/003-dataLink.png)
![Data Link Layer](/Workshop001/images/2.OSIModel/003-dataLink.png)

#### Network
You have likely heard the term layer 3 switches or layer 2 switches. In our OSI model Layer 3, the Network has a goal of an end to end delivery, this is where we see our IP addresses also mentioned in the first-day overview.

Routers and hosts exist at layer 3, remember the router is the ability to route between multiple networks. Anything with an IP could be considered Layer 3.
![Network Layer](/images/2.OSIModel/004-network.png)
![Network Layer](/Workshop001/images/2.OSIModel/004-network.png)

So why do we need addressing schemes on both Layers 2 and 3? (MAC Addresses vs IP Addresses)

@@ -50,7 +50,7 @@ Now there is a network protocol that we will get into but not today called ARP(A

#### Transport
Service to Service delivery, Layer 4 is there to distinguish data streams. In the same way that Layer 3 and Layer 2 both had their addressing schemes, in Layer 4 we have ports.
![Transport Layer](/images/2.OSIModel/005-transport.png)
![Transport Layer](/Workshop001/images/2.OSIModel/005-transport.png)

#### Session, Presentation, Application
The distinction between Layers 5,6,7 is or had become somewhat vague.
@@ -70,10 +70,10 @@ This segment is going to be passed down the OSI stack to layer 3, the network la
Layer 3 will then take that packet and hand it off to layer 2, layer 2 will once again add another header to that data to accomplish layer 2's goal of hop to hop delivery meaning this header will include a source and destination mac address. This is known as a frame when you have the layer 2 header and data.

That frame then gets converted into ones and zeros and sent over the Layer 1 Physical cable or wifi.
![OSI Model - Application](/images/2.OSIModel/006-application.png)
![OSI Model - Application](/Workshop001/images/2.OSIModel/006-application.png)

I did mention above the naming for each layer of header plus data but decided to draw this out as well.
![OSI Model - Data](/images/2.OSIModel/007-application.png)
![OSI Model - Data](/Workshop001/images/2.OSIModel/007-application.png)

The Application sending the data is being sent somewhere so the receiving is somewhat in reverse to get that back up the stack and into the receiving host.
![OSI Model - Application](/images/2.OSIModel/008-application.png)
![OSI Model - Application](/Workshop001/images/2.OSIModel/008-application.png)
16 changes: 8 additions & 8 deletions content/2-OSIModel/_index.vi.md
Original file line number Diff line number Diff line change
@@ -23,19 +23,19 @@ Các quy tắc cho mạng được chia thành bảy lớp khác nhau và các l
#### Giới Thiệu Về Mô Hình OSI
Mô Hình OSI (Mô Hình Kết Nối Hệ Mở) là một khung công tác được sử dụng để mô tả các chức năng của một hệ thống mạng. Mô hình OSI phân loại các chức năng máy tính thành một tập hợp các quy tắc và yêu cầu chung để hỗ trợ khả năng tương tác giữa các sản phẩm và phần mềm khác nhau. Trong mô hình tham chiếu OSI, các giao tiếp giữa một hệ thống máy tính được chia thành bảy lớp trừu tượng khác nhau: **Vật lý, Liên kết Dữ liệu, Mạng, Vận chuyển, Phiên, Trình bày, và Ứng dụng.**

![Mô Hình OSI](/images/2.OSIModel/001-theOSIModel.png)
![Mô Hình OSI](/Workshop001/images/2.OSIModel/001-theOSIModel.png)

#### Lớp Vật Lý
Lớp 1 trong mô hình OSI được gọi là vật lý, đề cập đến việc truyền dữ liệu từ một máy chủ này sang máy chủ khác thông qua một phương tiện, có thể là cáp vật lý hoặc Wi-Fi. Chúng ta cũng có thể thấy một số phần cứng cũ như hub và repeater để vận chuyển dữ liệu từ một máy chủ này sang máy chủ khác.
![Lớp Vật Lý](/images/2.OSIModel/002-physical.png)
![Lớp Vật Lý](/Workshop001/images/2.OSIModel/002-physical.png)

#### Lớp Liên Kết Dữ Liệu
Lớp 2, lớp liên kết dữ liệu cho phép chuyển giao dữ liệu từ nút này sang nút khác, nơi dữ liệu được đóng gói thành các khung. Cũng có một mức độ sửa lỗi có thể xảy ra tại lớp vật lý. Đây cũng là nơi chúng ta lần đầu tiên thấy địa chỉ MAC.
![Lớp Liên Kết Dữ Liệu](/images/2.OSIModel/003-dataLink.png)
![Lớp Liên Kết Dữ Liệu](/Workshop001/images/2.OSIModel/003-dataLink.png)

#### Lớp Mạng
Có lẽ bạn đã nghe thuật ngữ switch lớp 3 hoặc switch lớp 2. Trong mô hình OSI, Lớp 3, Mạng, có mục tiêu là cung cấp dịch vụ từ đầu đến cuối, đây là nơi chúng ta thấy địa chỉ IP được đề cập.
![Lớp Mạng](/images/2.OSIModel/004-network.png)
![Lớp Mạng](/Workshop001/images/2.OSIModel/004-network.png)

Vậy tại sao chúng ta cần các sơ đồ địa chỉ ở cả Lớp 2 và Lớp 3? (Địa chỉ MAC so với Địa chỉ IP)

@@ -49,7 +49,7 @@ Khi chúng ta nghĩ về việc đưa dữ liệu từ một máy chủ này san

#### Lớp Vận Chuyển
Dịch vụ giao hàng giữa các dịch vụ, Lớp 4 được thiết kế để phân biệt các luồng dữ liệu. Tương tự như cách mà Lớp 3 và Lớp 2 có các sơ đồ địa chỉ của riêng chúng, ở Lớp 4 chúng ta có các cổng.
![Lớp Vận Chuyển](/images/2.OSIModel/005-transport.png)
![Lớp Vận Chuyển](/Workshop001/images/2.OSIModel/005-transport.png)

#### Lớp Phiên, Trình Bày, Ứng Dụng
Sự phân biệt giữa các Lớp 5, 6, 7 đã trở nên khá mơ hồ.
@@ -67,10 +67,10 @@ Lớp 4 sẽ thêm một tiêu đề vào dữ liệu để thực hiện mục
Segment này sẽ được chuyển xuống ngăn xếp OSI đến lớp 3, lớp mạng, và lớp mạng sẽ thêm một tiêu đề khác vào dữ liệu này. Tiêu đề này sẽ thực hiện mục tiêu của lớp 3 là dịch vụ từ đầu đến cuối, nghĩa là trong tiêu đề này bạn sẽ có địa chỉ IP nguồn và địa chỉ IP đích, tiêu đề cộng với dữ liệu cũng có thể được gọi là một gói.

Lớp 3 sẽ lấy gói đó và chuyển nó cho lớp 2, lớp 2 sẽ lại thêm một tiêu đề khác vào dữ liệu đó để hoàn thành mục tiêu của lớp 2 là giao hàng từng bước nhảy, nghĩa là tiêu đề này sẽ bao gồm địa chỉ MAC nguồn và địa chỉ MAC đích. Điều này được gọi là một khung khi bạn có tiêu đề lớp 2 và dữ liệu.
![Mô Hình OSI - Ứng Dụng](/images/2.OSIModel/006-application.png)
![Mô Hình OSI - Ứng Dụng](/Workshop001/images/2.OSIModel/006-application.png)

Tôi đã đề cập ở trên về cái tên cho mỗi lớp của tiêu đề cộng với dữ liệu nhưng đã quyết định vẽ nó ra như sau.
![Mô Hình OSI - Dữ Liệu](/images/2.OSIModel/007-application.png)
![Mô Hình OSI - Dữ Liệu](/Workshop001/images/2.OSIModel/007-application.png)

Dữ liệu đến từ một ứng dụng đang được gửi đi, vì vậy việc nhận dữ liệu sẽ diễn ra ngược lại để đưa nó lên ngăn xếp và vào máy chủ nhận.
![Mô Hình OSI - Ứng Dụng](/images/2.OSIModel/008-application.png)
![Mô Hình OSI - Ứng Dụng](/Workshop001/images/2.OSIModel/008-application.png)
18 changes: 9 additions & 9 deletions content/3-NetworkProtocols/_index.md
Original file line number Diff line number Diff line change
@@ -13,32 +13,32 @@ A set of rules and messages that form a standard. An Internet Standard.
If you want to get really into the weeds on ARP you can read the Internet Standard here. [RFC 826](https://datatracker.ietf.org/doc/html/rfc826)

Connects IP addresses to fixed physical machine addresses, also known as MAC addresses across a layer 2 network.
![Network Protocols](/images/3.NetworkProtocols/001-networkProtocols.png)
![Network Protocols](/Workshop001/images/3.NetworkProtocols/001-networkProtocols.png)

- FTP - File Transfer Protocol

Allows for the transfer of files from source to destination. Generally, this process is authenticated but there is the ability if configured to use anonymous access. You will more frequently now see FTPS which provides SSL/TLS connectivity to FTP servers from the client for better security. This protocol would be found in the Application layer of the OSI Model.
![Network Protocols - FTP](/images/3.NetworkProtocols/002-ftp.png)
![Network Protocols - FTP](/Workshop001/images/3.NetworkProtocols/002-ftp.png)

- SMTP - Simple Mail Transfer Protocol

Used for email transmission, mail servers use SMTP to send and receive mail messages. You will still find even with Microsoft 365 that the SMTP protocol is used for the same purpose.
![Network Protocols - SMTP](/images/3.NetworkProtocols/003-smtp.png)
![Network Protocols - SMTP](/Workshop001/images/3.NetworkProtocols/003-smtp.png)

- HTTP - Hyper Text Transfer Protocol

HTTP is the foundation of the internet and browsing content. Giving us the ability to easily access our favourite websites. HTTP is still heavily used but HTTPS is more so used or should be used on most of your favourite sites.
![Network Protocols - HTTP](/images/3.NetworkProtocols/004-http.png)
![Network Protocols - HTTP](/Workshop001/images/3.NetworkProtocols/004-http.png)

- SSL - Secure Sockets Layer | TLS - Transport Layer Security

TLS has taken over from SSL, TLS is a **Cryptographic Protocol** that provides secure communications over a network. It can and will be found in the mail, Instant Messaging and other applications but most commonly it is used to secure HTTPS.
![Network Protocols - TLS/SSL](/images/3.NetworkProtocols/005-tlsssl.png)
![Network Protocols - TLS/SSL](/Workshop001/images/3.NetworkProtocols/005-tlsssl.png)

- HTTPS - HTTP secured with SSL/TLS

An extension of HTTP, used for secure communications over a network, HTTPS is encrypted with TLS as mentioned above. The focus here was to bring authentication, privacy and integrity whilst data is exchanged between hosts.
![Network Protocols - HTTPS](/images/3.NetworkProtocols/006-https.png)
![Network Protocols - HTTPS](/Workshop001/images/3.NetworkProtocols/006-https.png)

- DNS - Domain Name System

@@ -47,7 +47,7 @@ The DNS is used to map human-friendly domain names for example we all know [goog
This is where DNS comes in, it ensures that hosts, services and other resources are reachable.

On all hosts, if they require internet connectivity then they must have DNS to be able to resolve those domain names. DNS is an area you could spend Days and Years on learning. I would also say from experience that DNS is mostly the common cause of all errors when it comes to Networking. Not sure if a Network engineer would agree there though.
![Network Protocols - DNS](/images/3.NetworkProtocols/007-dns.png)
![Network Protocols - DNS](/Workshop001/images/3.NetworkProtocols/007-dns.png)

- DHCP - Dynamic Host Configuration Protocol

@@ -71,7 +71,7 @@ Then we have DNS as we just covered to help us convert complicated public IP add
As I said each host requires these 4 things, if you have 1000 or 10,000 hosts then that is going to take you a very long time to determine each one of these individually. This is where DHCP comes in and allows you to determine a scope for your network and then this protocol will distribute to all available hosts in your network.

Another example is you head into a coffee shop, grab a coffee and sit down with your laptop or your phone let's call that your host. You connect your host to the coffee shop WiFi and you gain access to the internet, messages and mail start pinging through and you can navigate web pages and social media. When you connected to the coffee shop WiFi your machine would have picked up a DHCP address either from a dedicated DHCP server or most likely from the router also handling DHCP.
![Network Protocols - DHCP](/images/3.NetworkProtocols/008-dhcp.png)
![Network Protocols - DHCP](/Workshop001/images/3.NetworkProtocols/008-dhcp.png)

#### Subnetting
A subnet is a logical subdivision of an IP network.
@@ -89,4 +89,4 @@ An organisation is responsible for determining the number and size of the subnet
Among other advantages, segmenting large networks into subnets enable IP address reallocation and relieves network congestion, streamlining, network communication and efficiency.

Subnets can also improve network security. If a section of a network is compromised, it can be quarantined, making it difficult for bad actors to move around the larger network.
![Network Protocols - Subnets](/images/3.NetworkProtocols/009-subnets.png)
![Network Protocols - Subnets](/Workshop001/images/3.NetworkProtocols/009-subnets.png)
Loading

0 comments on commit e78bbec

Please sign in to comment.