Lab #9
TA Labs, Office Hours Laboratory Polices
Lab Hours
CS 1150 L 05 T 11:00 am – 12:50 pm – 320 Oelman
CS 1150 L 06 R 11:00 am – 12:50 pm – 320 Oelman
TA Office Hours
1:00 PM – 2:00 PM, Tuesday/Thursday at Room 316 - Russ Engineer Center
By appointment – Please email to [email protected] or [email protected]
Refer to CS 1150 Course Syllabus for Class and Laboratory Policies
Zero tolerance policy for Academic Misconduct – All parties will get 0% marks
CS 1150 - Lab 2 - Exploring Number Systems
1
How to Submit Lab #9
Soft copy
Go to Pilot Course Page and Use the Dropbox Submission Link to upload your files
CS 1150 - Lab 2 - Exploring Number Systems
2
Lab #9 Overview
Study how networks route packets to various destinations
Learn how networks ensure reliable delivery
Lab #09 Due Date - November 23rd, 2018 11:59 PM
3
CS 1150 – Lab 15 – Networking
What is a Computer Network?
4
Group of computers (2 or more) that are connected together to share data
Eg – Internet
Connections between computers in a network can be physical using cables/wires or wireless via radio waves
CS 1150 – Lab 15 – Networking
Network Protocols
5
Protocol is a set of rules that governs a particular task. A network protocol governs how computers communicate in a network.
TCP/IP
Transmission Control Protocol – Reliable Communication
IP – Addressing
CS 1150 – Lab 15 – Networking
Network Topology
6
Network Topology is the arrangement of different elements in a computer network.
Bus
Star
Ring
CS 1150 – Lab 15 – Networking
Routing in a Network
7
Each node in the network has a routing table
Routing table keeps track of
What are the other nodes directly connected to a given node
What routes to take if a node is not directly connected to the given node
CS 1150 – Lab 15 – Networking
Source – http://en.wikipedia.org/wiki/Hop_(networking)#Next_hop_forwarding
TCP/IP Applet
8
TCP/IP applet simulates a reliable communication between two nodes (computers) in a network
DAT – Data packet
ACK – Acknowledgement that data was received without errors
NAK – Negative Acknowledgement which says there was an error in data receiving.
CS 1150 – Lab 15 – Networking
TCP/IP Applet Cont.
9
CS 1150 – Lab 15 – Networking
Data Packet
DAT 1 0 221
1 – Destination Address
0 – Sequence Number
221 – Checksum
TCP/IP Applet Cont.
10
CS 1150 – Lab 15 – Networking
ACK Packet
ACK 0 1 0
0 – Destination Address
1 – Sequence Number
0 – Checksum
TCP/IP Applet Cont.
11
CS 1150 – Lab 15 – Networking
NAK 0 1 0
0 – Destination Address
1 – Sequence Number
0 – Checksum
NAK Packet
Exercise 1 – Q4 Help
12
DAT 0 x xxx / ACK 1 x xxx – Consider all DAT and ACK messages (headers) have 9 Characters
All DAT messages can carry up to 10 characters of data (payload)
Your answer to this question should be 160. Show me the steps to get marks.
CS 1150 – Lab 15 – Networking
Exercise 1 – Q5 Help
13
Use the following formula to calculate overhead
CS 1150 – Lab 15 – Networking
Total No. of Characters Exchanged – Total No. Characters in Message
Total No. of Characters Exchanged
x 100
Exercise 1 – Q6 Help
14
How many DAT packets are needed to transfer 1,000,000 characters? (One DAT packet can carry 10 characters)
Each DAT packet will contain overhead of 9 characters per each message in addition to actual message content
Each ACK packet will contain overhead of 9 character and no message content
CS 1150 – Lab 15 – Networking
Exercise 4 Help
15
CS 1150 – Lab 15 – Networking