computer networking workshop · 2018. 10. 19. · ieee 802.11 802.11a 802.11b 802.11g 802.11n...

50
COMPUTER NETWORKING WORKSHOP Private Cloud and Remote PC Control Instructor: Forte, Sit King Lok ([email protected]) Version 1.2

Upload: others

Post on 01-Dec-2020

15 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

COMPUTER NETWORKINGWORKSHOP

Private Cloud and Remote PC ControlInstructor: Forte, Sit King Lok ([email protected])

Version 1.2

Page 2: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

AGENDA• Cabling (Quick review)

• Wi-Fi (Quick review)

• Router purchase (Quick review)

• IP

• TCP/IP port

• Application layer service

• Troubleshooting

Page 3: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

CABLING

Review

Page 4: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ISP

Local Overseas

PCCWHKBN

3 HK (Hutchison)Wharf T&T

i-Cable

AT&TNTT (docomo)

4

Page 5: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ISP• Dial-up

• Use existing telephony network

• DSL

• Use metal cable network

5

• FTTx

• FTTB(Fiber To The Building)

• FTTH (Fiber To The Home)

Page 6: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

NETWORK DIAGRAM

6

Page 7: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

MODEM

• Analog ⇔Digital

• Provided by ISP

7

Page 8: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

CABLE TYPES

• LAN cable

• RJ45 head

8

Page 9: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

CABLE TYPES• Cat5

• Usually100Mbps Max.

• Cat5e

• Improved Cat5 support 1000Mbps Max.

• Cat6

• Improved Cat5/5e support 1000Mbps Max. and reduce noise

9

Page 10: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

WI-FI

Review

Page 11: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

IEEE 802.11

• Protocol(standard) adopted by Wi-Fi

• IEEE802.11a/b/g/n/ac

• Both the router and your devices should support the same protocol

11

Page 12: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

IEEE 802.11

802.11a 802.11b 802.11g 802.11n 802.11ac

Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps 290-6900Mbps

Frequency 3.7/5GHz 2.4GHz 2.4GHz 2.4/5GHz 5GHz

Bandwidth 20MHz 22MHz 20MHz 20/40MHz 20/40/80/160MHz

Release date Sep 1999 Sep 1999 Jun 2003 Oct 2009 Dec 2013

12

Page 13: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

IEEE 802.11

13

Page 14: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

WEP, WPA, WPA2• Security protocol to encrypt/decrypt wireless data

• WEP

• Can be easily hacked in few minutes

• WPA

• Better security than WEP but still can be hacked 14

Page 15: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

WEP, WPA, WPA2• WPA2

• Currently best security protocol

• Hard to be hacked provided that a “secure” password is used

• Mode / Version

• WPA2 Personal

• WPA2 Enterprise

• Encryption

• TKIP

• CCMP (AES, AES-CCMP)

15

Page 16: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

PASSWORD• Set a secured password

• Long enough (>8 characters)

• Combination of numbers, characters (upper & lower case) and punctuations

• No birthday, phone number, HKID, or any other personal information

• No dictionary words

• Good password examples

• t9^Xo03#”!yzTyUf48>

• G00dP@ssw0rd

16

Page 17: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

SSID

• The identifier(name) of the Wi-Fi network

• Can be hidden from end users, but not hackers

17

Page 18: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ROUTER PURCHASE

Review

Page 19: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ROUTER PURCHASE• Know the price range by your usage

• Only need to have a stable, fast-enough, secured Internet connection →$200~400

• Need to have very fast LAN communication (e.g. transferring large files among your PCs) →$400~700

• Require advanced features / high performance(e.g. sharing drive thru USB3.0 / QoS / high wall penetrating power) →$700~

19

Page 20: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ROUTER PURCHASE• Metrics

• Support 802.11ac?

• Support Dual Band (802.11n+ac)?

• What is the wireless speed?

• How many LAN ports?

• Does it have USB2.0/3.0?

• Can it fully cover your home? (no. of antenna / penetrating power)

• Does the firmware provide the feature you need?

20

Page 21: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ROUTER PURCHASE

• A web site which has many information about router purchase

• http://upsangel.com

• TP-LINK emulators

• http://www.tp-link.com/en/emulators.html 21

Page 22: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

IP

Page 23: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

IP• IP (Internet Protocol) address

• Address standard for computing devices over network

• Version

• IPv4

• IPv6

• One IP per network interface 23

Page 24: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

FORMAT• Four octets separated by dots

• From 0.0.0.0 to 255.255.255.255

• Examples

• 192.168.1.1

• 27.126.208.30 24

Page 25: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

SUBNET MASK• An IP address helping to represent a range of continuous IP addresses (subnet)

• Can be abbreviated to “/x”, where x is a number from 0 to 32

• Example of a subnet mask

• 255.255.255.0

• Examples of a subnet representation

• 192.168.1.0/255.255.255.0

• 192.168.1.0/24

25

Page 26: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

SUBNET MASKCIDR Subnet Mask Total IPs/32 255.255.255.255 1/31 255.255.255.254 2/30 255.255.255.252 4/29 255.255.255.248 8/28 255.255.255.240 16/27 255.255.255.224 32/26 255.255.255.192 64/25 255.255.255.128 128/24 255.255.255.0 256/23 255.255.254.0 512/22 255.255.252.0 1024/21 255.255.248.0 2048/20 255.255.240.0 4096/19 255.255.224.0 8192/18 255.255.192.0 16,384/17 255.255.128.0 32,768/16 255.255.0.0 65,536/15 255.254.0.0 131,072/14 255.252.0.0 262,144/13 255.248.0.0 524,288/12 255.240.0.0 1,048,576/11 255.224.0.0 2,097,152/10 255.192.0.0 4,194,304/9 255.128.0.0 8,388,608/8 255.0.0.0 16,777,216

26

Page 27: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

PRIVATE IP• Reserved IP ranges used within LAN (Local Area Network)

Class Range Subnet Mask Total IPs

Class A 10.0.0.0 - 10.255.255.255 255.0.0.0 16,777,216

(16,777,216 × 1 subnet)

Class B 172.16.0.0 - 172.31.255.255 255.240.0.0 1,048,576

(65,536 × 16 subnet)

Class C 192.168.0.0 - 192.168.255.255 255.255.0.0 65,536

(256 × 256 subnet)

27

Page 28: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

NAT• Translate IP address

• Use one IP address to represent a subnet

• Common use of NAT

• Get one WAN IP from ISP

• Create many LAN IPs by the router 28

Page 29: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

DHCP

• Automatically “create” and assign IPs to each of your devices

• DHCP pool

• A private IP subnet reserved for DHCP

29

Page 30: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

STATIC AND DYNAMIC IP• Static IP

• Does not change from time to time

• Dynamic IP

• IPs assigned by DHCP

• Reassignment occurs from time to time

• Most ISP gives you a dynamic IP 30

Page 31: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

MAC ADDRESS• Yet another address system

• One MAC address per network interface

• Unique throughout the world

• Six octets in hexadecimal separated by colons or hyphens

• From 00:00:00:00:00:00 to FF:FF:FF:FF:FF:FF

• Examples

• 04-A3-43-5F-43-23

• 32:61:3C:4E:B6:05

31

Page 32: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

TCP/IP PORT

Page 33: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

TCP/IP PORT• Identifier which recognizes to the level of services

(processes)

• On both ends of a communication

• Two types

• TCP

• UDP 33

Page 34: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

FORMAT• From 0 to 65535

• Specified after an IP, separated by a colon

• Examples

• 192.168.1.1:22

• 27.126.208.30:80 34

Page 35: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

PORT FORWARDING

35

Page 36: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

PORT FORWARDING

36

Page 37: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

PORT FORWARDING

37

Page 38: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

APPLICATION LAYER SERVICE

Page 39: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

APPLICATION LAYER SERVICE• Process

• The “working man” of an application

• One application can have many processes

• Service

• Process that serve other computers

• In general, we call the computer running services a “server” 39

Page 40: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

FTP

• FTP (File Transfer Protocol)

• Used for file sharing

• Allow you to create a PRIVATE CLOUD DRIVE

• Common port: 20/TCP, 21/TCP

40

Page 41: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

VNC

• VNC (Virtual Network Computing)

• Used for remotely controlling a computer

• Allow you to use your PC from anywhere as if you are in front of it

• Common port: 5900/TCP, UDP 41

Page 42: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

RDC

• RDC (Remote Desktop Connection)

• Simular to VNC

• Microsoft-proprietary software

• Common port: 3389/TCP, UDP

42

Page 43: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

WEB• HTTP

• Used for hosting web sites (No encryption)

• Common port: 80/TCP, UDP

• HTTPS

• Same as HTTP but with encryption (i.e. secured)

• Common port: 443/TCP, UDP 43

Optional

Page 44: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

VPN

• VPN (Virtual Private Network)

• Used for connecting to your LAN from anywhere

• Common VPN solution

• PPTP, L2TP, OpenVPN 44

Optional

Page 45: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

TROUBLESHOOT

45

Page 46: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

FIREWALL ISSUE

• Firewall (sometimes bundled with anti-virus softwares) may block incoming traffics

• Solution

• Set the firewall to allow traffics of specific destination port to pass through

46

Page 47: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

ISP ISSUE

• Some ISP may block traffics destined to a specific port (e.g. Blocking all traffics to port 80 disallows you from setting up web server)

• Workaround

• Use other “non-common” port numbers (e.g. Use 81 instead of 80 for web server)

47

Page 48: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

DDNS

• DNS (Domain Name System) translate IPs to meaningful domain names (e.g. www.cuhk.edu.hk)

• ISP usually provides dynamic IPs for home users

• DDNS (Dynamic Domain Name System) updates the mapping of IP to domain name once the IP changed

48

Optional

Page 49: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

USEFUL COMMAND• ifconfig

• ping

• traceroute

• nslookup

• nmap

• netstat 49

Optional

Page 50: COMPUTER NETWORKING WORKSHOP · 2018. 10. 19. · IEEE 802.11 802.11a 802.11b 802.11g 802.11n 802.11ac Speed 54Mbps 11/22Mbps 54Mbps 65-600Mbps ... 15. PASSWORD • Set a secured

REFERENCE• Explanation of subnet mask in details

• https://www.iplocation.net/subnet-mask

• Port forwarding tutorial video

• https://www.youtube.com/watch?v=FFR8Tz0Q6T8

• File sharing tutorial video

• https://www.youtube.com/watch?v=uFQhawnWOrI

• A company providing free DDNS service

• http://www.noip.com

50