Ch2 Communication

Ch2 Communication
Aaron1. Benefit of networking devices
WAN Private/Pubilc
- larger geographic coverage
- Connect to virtual devicse 虚拟机
- Able to connect to the cloud
- Easy to expand users
LAN Private
- Faster transimate speed
- Lower latency (safer)
- Easy to set up
- Lower cost to set up & maintance
2. Difference between peer-to-peer &client-server
p2p
Features
- All computers are equal
- Data is distributed in many devices
- Each device responsible for its own data security (NO FIRE WALLS)
Advantages
File download separatlly & simultaneously
Client-Server
\[ \text{Client-Server} \Rightarrow \begin{cases} \text{Thick Client} \\ \text{Thin Client} \end{cases} \]
- Sever run applications,tests given by the client
- Client request data from server
- Server process data and send results back
- Client display results
Thick & Thin Client
- Thick: Client do some of the applications work
- Thin: Client only display results, server do all the applications work
3. Network Topology
BUS
- Advantages
- Easy to set up & extend
- Cheap
- One link shared by many devices (LAN)
- Disadvantages
- If one device fails, whole network fails
- Limit distance range
- Collisions CSMA/CD(见第7点)
- Lots of traffic on one spine
Ring
- Advantages
- Higher transimation speed (compare to BUS)
- Each device has equal access to the resource
- No need for centrol device
- Disadvantages
- Error effect to the whole system
- Highly dependent on wire
- Transimation speed slower than Star
Mesh
- Advantages:
- Data transmited simultaneasly
- Error do not effect the whole system
- Extnad with out distrubuting other devices
- Disadvantages:
- Costly
- Too much route unused
Star
- Advantages
- Easy to set up & extend
- Error do not effect the whole system
- Centralized management
- Disadvantages
- Dependent on central device
- Central device (Hub/Router) increase cost
- How packet transmitted in star:
- Packet contains destination address (IP)
- Sender send packet to central device
- Central device locate & send packet only to resever
4. Cloud computing
- Accessing a resource on a remote device
Advantages
- Access any where with internet
- Easyer to share
- More secure
- Muitple users work on one file
幽默CIE上下颠倒 $$
Disadvantages
- Can't access with out internet
- Reliant on server own security(Firewall)
- Can't access when server is down
5. Wired & Wireless networks
Wiredless network
- Advantage
- Devices can be more mobile
- No need for physical connection(cable)
- Easy set up & extend
- Muitple devices can share one connection
- Disadvantage
- Easy hacking
- Signal degrades quickly
- More interference
Different wires
- Fibre-optic compare to copper wire
- Less interference
- Need less signal boosting
- Difficult to hack
- Bigger bandwidth
- Disadvantage of Fiber-optic
- More expensive
- Fragile / Easy broken
- Transmit data in one direction
- Can't transmit POWER
| Type of connection | Descriptions |
|---|---|
| Fibre-optic | 1. Transmit data as light signal |
| 2. Made of glass/plastic | |
| Copper wire | 1. Transmit data as electrcal signal |
| 2.Connect with twised paires of copper wire | |
| Satellite | 1. At Earth's obrit |
| 2. Recives & transmits data | |
| Radio waves | 1. Transmit data as electromagnetic waves |
| 2. Carries data wireless(Wi-Fi) |
6.Router路由器
- Router is a device that connects two or more networks
- Receove packets from network/devices
- Find destination using IP address
- Send packets to destination
- Assign Private IP to devices on LAN
- Update & Maintain a Routing table (Mac- IP table) for faster transimition
- Procides the LAN with public IP
- Gateway to the internet 网关
- Used as Firewall
- As control device in some Topology(Star)
7. 以太网Ethernet
- 有线的LAN, 遵守CSMA/CD和TCP/IP(AS不考)协议
- A protocol (Alevel)
- Have CSMA/CD
- Data transmitted over wired networks
- Data transmitted as frames 帧
- Frame contains Data & destination IP address
- Frame header: Data & Destination IP address
- Frame trailer: Error checking
- Check if the frame is corrupted( By frame trailer)
How CSMA/CD works
Carrier Sense Multiple Access with Collision Detection
- Work station monitor the communcation channel
- If channel is free, send data
- Collision occurs when two or more work stations try to send data
- Delay for a random time(caculate by CSMA/CD) and try again
- Collision occurs again, delay time increases
7.Bit Streamming
- Data compressed before transmission
- Video/Sound signal transmitted as series of bits(bit stream)
- Signal is hosted on a media server
- Buffer stores the data in
- Binary data is converted to audio/video signal by software in user
8.Differernt between WWW & Internet
- Internet is a collection of global networks
- WWW is the muitmedia of pages
- Wab page of WWW is written in HTML
- WWW is accessed over the internet
- WWW use HTTP protoal
- Internet use HTTP,IP,(SMTP)... protocols
9. Communcation system
PSTN
- Public Switched Telephone Network 公共交换电话网络
- Consists of many different type
- Data transmitted in both direction
- Communcation pass through different switches 转换机
Other communcation system
- Dedicated line 专线
- Perment connection
- Used for SQL & big organizations
- Safer than other system
- Cell phone network
- Send data to cell towers 信号塔 over mobile devices
- Satellite
- Send data to satellite over wireless networks
Set up Dedicated lines
- Advantages
- Faster
- More consistant transmission speed
- Disadvantages
- Expensive to set up & maintance
- No alternative if line is off
10. IP in data transmission
Different between IP in Router & computers
- Router
- Public IP address to be identifiable on internet
- Private IP to be identifiable on LAN
- Computers
- Need Public IP only if direct connect to internet
- Private IP to be identifiable on LAN
- Do not need Public IP if connect to internet through Router
- More secure to hide under private IP
- Date need to pass through Router before reserve
11. How to loacte resource on WWW
- DNS, URL , IP
Steps for URL mathcing IP
- Broswer translate URL to Domain Name
- A list of domain name & comesponding IP is stored in devices
- Go to DNS is not found
- DNS is a database of domain name - IP
- Go to higher DNS untill IP if found
- Return the domain name to broswer
- Return 404 if not
\[ \begin{aligned} &\text{URL typed in broswer} \rightarrow \text{Broswer send URL to DNS}\rightarrow \text{Client-Server}\rightarrow \begin{cases} \text{Found} \rightarrow \text{DNS return IP to broswer} \\ \\ \text{Not found} \rightarrow \text{Go to other DNS} \\ \end{cases}\\ \end{aligned} \]








