Twisted Pair | Coaxial | Fiber-Optic | |
---|---|---|---|
Cost | |||
Attenuation at high frequency | Affected | Most affected | Least affected |
Interference | Most affected | Less affected | Least affected |
Need for repeaters | |||
Bandwidth |
Comparisons of cabled media
9608/11/O/N/15
e.g. In a WWW application, the user's browser (client) makes request to the HTTP server
Server response with the data that client is asking for
Nowadays the network is powerful enough such that computer application can be run on server and client computers only require to input and display results.
e.g. Gamestream services, which the game is not downloaded but run on server. The client computer only displays the result and get user inputs.
The application is downloaded to client computer and only some of the data is stored and processed in the server.
e.g. Traditional games is downloaded and maybe only online multiplayer or save data is stored in server
Bus
Work as a group of 4, give at least 2 advantages and disadvantages of the assigned network topology
Draw a diagram to connect the following devices in a home network:
Router, switch, modem, Wireless AP, Firewall
Printer Server, PS5, Nintendo Switch, iPad, Desktop computer
Make sure to label the type of cable / wireless connection used
Bit rate the number of bit per second (bps) of data flow
Buffer temporary store the data
Low water mark buffer running out soon and needed to be "refill" from the server - if not then the media might be paused
High water mark should stop from downloading as buffer will be full
Client
Web server
1. Request (e.g.
http://www.facebook.com/)
2. Server side script
Generate user specific content with data from database
3. Response
HTML content, images, CSS, Javascript
4. HTML content displayed, Client side script (usually js) executed
Javascript (browser) | PHP (server side) | Python | |
---|---|---|---|
Declare variable called tempC | var tempC = 10; | $tempC = 10; | tempC = 10 |
Get input and assign to tempC | tempC = prompt("please input something") | $tempC = $_GET["celc"] | tempC = input('please input something') |
Note: | Prompt is a popup box in browser | GET from the parameter in URL, e.g. index.php?celc=10 | |
Output something | alert("The value is :" + tempC) | echo ("The value is: ") echo $tempC; | print('The value is: ', tempC) |
Note: | Popup box in browser | Echo will output to the page result, i.e. as plain text (usually HTML document) | |
Script blocks declaration | (in html) <script> // javascript here </script> |
(.php file) <?php // Lines of php codes ?> |
Quick Reference for Scripting
-learning objectives
Hierarchical scheme of IPv4
Suffix
10-bit netID
22-bit hostID
Example of DNS resolve sequence:
Example hierarchy of DNS Servers